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

Cine: Improve dynamic volume cine stopping logic #1582

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

sedghi
Copy link
Member

@sedghi sedghi commented Nov 12, 2024

  • Refactor _stopDynamicVolumeCine to ensure type checking for VolumeViewport before accessing volume
  • Move the check for dynamic volume playback inside the type check for VolumeViewport
  • Add type safety in _getVolumeFromViewport by returning undefined if the viewport is not an instance of VolumeViewport

Context

Changes & Results

Testing

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] "OS:
  • [] "Node version:
  • [] "Browser:

-  Refactor `_stopDynamicVolumeCine` to ensure type checking for `VolumeViewport` before accessing volume
-  Move the check for dynamic volume playback inside the type check for `VolumeViewport`
-  Add type safety in `_getVolumeFromViewport` by returning `undefined` if the viewport is not an instance of `VolumeViewport`
Copy link

stackblitz bot commented Nov 12, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Nov 12, 2024

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit de0d758
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/6733d24d91973d00087f694c
😎 Deploy Preview https://deploy-preview-1582--cornerstone-3d-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sedghi sedghi merged commit 794fb07 into main Nov 12, 2024
26 checks passed
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