You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.
In OHIF we have a resize handler which is debounced to fire 100ms after resizing stops. This prevents needless re-computation / redraws while the browser is being resized (or the device is being rotated to a new orientation).
The VTK plugin should incorporate something similar. Somehow I think it makes more sense to implement this at the plugin level.
You can call volumeViewport.resize(), as is done here:
In OHIF we have a resize handler which is debounced to fire 100ms after resizing stops. This prevents needless re-computation / redraws while the browser is being resized (or the device is being rotated to a new orientation).
The VTK plugin should incorporate something similar. Somehow I think it makes more sense to implement this at the plugin level.
You can call volumeViewport.resize(), as is done here:
VTKPlugin/volumeRendering/main.js
Lines 34 to 39 in 8ca0a96
For reference: https://github.com/OHIF/Viewers/blob/master/Packages/ohif-viewerbase/client/lib/classes/ResizeViewportManager.js#L127
The text was updated successfully, but these errors were encountered: