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.