Function: scroll()
scroll(
viewport
,options
):void
It scrolls one slice in the Stack or Volume Viewport, it uses the options provided to determine the slice to scroll to. For Stack Viewport, it scrolls in the 1 or -1 direction, for Volume Viewport, it uses the camera and focal point to determine the slice to scroll to based on the spacings.
Parameters
• viewport: Viewport
| VideoViewport
The viewport in which to scroll
• options: ScrollOptions
Options to use for scrolling, including direction, invert, and volumeId
Returns
void