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

fix: Navigation issues and naming issues for video/wsi #1386

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

wayfarer3130
Copy link
Collaborator

Context

There was a request to change the generic metadata provider as to how to stores metadata for object based metadata. Also, changed some navigation setup so that WSI and Video viewports navigate correctly.

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:

@wayfarer3130 wayfarer3130 requested a review from sedghi July 10, 2024 18:07
Copy link

netlify bot commented Jul 10, 2024

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit fe17213
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/668ecde4382f30000845cdc6
😎 Deploy Preview https://deploy-preview-1386--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.

@@ -175,5 +175,6 @@
"not dead",
"not ie < 11",
"not op_mini all"
]
],
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yarn now enforces updating this. Sigh.

@@ -224,7 +224,7 @@ class VideoViewport extends Viewport implements IVideoViewport {
public setDataIds(imageIds: string[], options?: ImageSetOptions) {
this.setVideo(
imageIds[0],
(options?.viewReference?.sliceIndex as number) || 1
((options?.viewReference?.sliceIndex as number) || 0) + 1
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong frame value as it is a frame#, not an index.

* class inheritance values and member functions/proxy instances, but runs
* the risk that the raw object can be modified through side affects.
*/
addRaw: (imageId: string, payload: { metadata: any; type: string }) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better

@sedghi sedghi merged commit db9d5ca into main Jul 10, 2024
15 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.

2 participants