Hooks
useMeasurements
A React hook that provides mapped measurements from the measurement service with automatic updates when measurements change.
useViewportSegmentations
A React hook that provides segmentation data and representations for the active viewport with automatic updates when segmentations change.
useMeasurementTracking
A React hook that provides measurement tracking information for a specific viewport, including tracking state and tracked measurement UIDs.
useViewportDisplaySets
A React hook that provides access to display sets associated with a viewport, including background, foreground, overlay, and potential display sets.
useViewportHover
A React hook that tracks mouse hover state and active status for a specific viewport.
usePatientInfo
A React hook that provides patient information from the active display sets and detects when multiple patients are loaded.
useSearchParams
A React hook that provides access to URL search parameters from both the query string and hash fragment.
useDynamicMaxHeight
A React hook that calculates the maximum height for an element based on its position in the viewport, with automatic recalculation on window resize or data changes.
useSessionStorage
A React hook that provides sessionStorage access with automatic JSON parsing/stringifying and an option to clear data when the page unloads.