-
Notifications
You must be signed in to change notification settings - Fork 285
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: jumpToSlice and scaling of images in renderToCanvas #78
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments to address, but otherwise good.
How are we doing publishing of cornerstone3D beta btw? We are still currently changing public API a lot during this phase, but we shouldn't increment major versions until its out of beta. Do we make each breaking change a feature change. I.e. 0.X.0.?
): void { | ||
const annotationManager = getViewportSpecificAnnotationManager(element); | ||
let annotationManager = getDefaultAnnotationManager(); | ||
if (element) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a great solution that makes sense, allows us to have the annotation-only-api whilst also allowing for element specific managers if we ever need them. I know @swederik is away, but want to tag him for visibility about this decision (sure we can merge before he sees it, can always make another change).
packages/tools/src/utilities/stackScrollTool/scrollThroughStack.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment above naming of event variable, then good to go.
removeAnnotation
for the annotation to get removedrenderToCanvas
functionscrollThroughStack
utility and fix the problem with deltaFrames = 0 by caching previous direction