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

Option to include gizmos in canvas snapshots #606

Closed
xeolabs opened this issue Mar 31, 2021 · 0 comments
Closed

Option to include gizmos in canvas snapshots #606

xeolabs opened this issue Mar 31, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@xeolabs
Copy link
Member

xeolabs commented Mar 31, 2021

Problem

Sometimes we want to capture things like the SectionPlanesPlugin editing gizmo in canvas snapshots we capture with Scene#getSnapshot.

This is currently needed by the FastNavPlugin``` added for #601, which needs to include the SectionPlanesPlugin```` editing gizmo in the snapshot that it uses for its fade transition effect.

Solution

Add a includeGizmos boolean option to Scene#getSnapshot, which is false by default.

Usage

myViewer.scene.getSnapshot({
    includeGizmos: true
});
@xeolabs xeolabs changed the title Option to include gizmos in canvas snapshot Option to include gizmos in canvas snapshots Mar 31, 2021
@xeolabs xeolabs added this to the 1.8 milestone Mar 31, 2021
@xeolabs xeolabs added the enhancement New feature or request label Mar 31, 2021
@xeolabs xeolabs self-assigned this Mar 31, 2021
@xeolabs xeolabs closed this as completed Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant