ImFusion Web SDK

useDisplayOptions2d

ts

Returns the reactive 2D display options for a dataset.

Subscribes to DisplayOptions2d.onChanged. The hook triggers a re-render whenever the options change.

Parameters

ParameterTypeDescription
sisSharedImageSetThe dataset whose 2D display options to observe

Returns

DisplayOptions2d

The DisplayOptions2d handle

Throws

If called outside of an ImFusionProvider

Throws

If called before the SDK has finished initializing

Example

tsx

See

useDisplayOptions3d