-
Notifications
You must be signed in to change notification settings - Fork 67
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
feat(createLayerInterface): add download button #723
Conversation
type: 'SAVE_ROI', | ||
data: { | ||
name: event.data.name, | ||
layerName: event.data.layerName, | ||
croppingPlanes, | ||
}, |
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.
Thee emited event payload.
@@ -183,6 +183,9 @@ const createViewer = async ( | |||
break | |||
case 'TAKE_SCREENSHOT': | |||
break | |||
case 'SAVE_ROI': | |||
eventEmitter.emit('saveRoi', event.data) |
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.
The event.
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.
The workflow for itkwidgets / python side is:
- create a viewer
- select an roi
- there are getters to get the current roi on the viewer
- the client code calls the getter and their logic to save the image to file
The download button should bring up a modal to select format and file name parameters and a download button that saves the file locally.
We should not be emitting an event / payload for the save ROI.
The download button is not used for this because of a) how event processing occurs in jupyter and b) how the roi is obtained and save logic is implemented in Python.
-> please add the download modal and remove the event
Closing in favor of #727 |
No description provided.