Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent viewer getSnapshot to add canvas on document #1107

Closed
wants to merge 2 commits into from

Conversation

Kurtil
Copy link
Contributor

@Kurtil Kurtil commented Jul 19, 2023

This change add a breaking change in the viewer.getSnapshot() API. I use the viewer with a distance measurement plugin with a specified container that is not document.body. But since this change, when a get a snapshot of the viewer, a canvas is also added on the document.body. I propose to add a capture parameter on getShapshot to prevent this behaviour if not requested (must be set to true if captured canvas are desired).

@ghost
Copy link

ghost commented Jul 19, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@Kurtil
Copy link
Contributor Author

Kurtil commented Aug 8, 2023

This may not be what we need :P @Amoki will make another PR related to the issue described here.

@Kurtil Kurtil closed this Aug 8, 2023
@Kurtil Kurtil deleted the patch-16 branch August 8, 2023 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant