Skip to main content

Function: jumpToSlice()

jumpToSlice(element, options): Promise<void>

It uses the imageIndex in the Options to scroll to the slice that is intended. It works for both Stack and Volume viewports. In VolumeViewports, the imageIndex should be given with respect to the index in the 3D image in the view direction (i.e. the index of the slice in Axial, Sagittal, Coronal, or Oblique).

Parameters​

• element: HTMLDivElement

the HTML Div element scrolling inside

• options: JumpToSliceOptions = ...

the options used for jumping to a slice

Returns​

Promise<void>

Promise that resolves to ImageIdIndex

Defined in​

packages/core/src/utilities/jumpToSlice.ts:21