Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 4056x 12x | import type { Segmentation } from '../../types/SegmentationStateTypes'; import { getActiveSegmentation as _getActiveSegmentation } from './getActiveSegmentation'; import { setActiveSegmentation as _setActiveSegmentation } from './setActiveSegmentation'; /** * Get the active segmentation representation for viewportId * @param viewportId - The id of the viewport to get the active segmentation for. * @returns The active segmentation representation for the tool group. */ function getActiveSegmentation(viewportId: string): Segmentation { return _getActiveSegmentation(viewportId); } /** * Set the active segmentation for viewportId * @param viewportId - The id of the viewport to set the active segmentation for. * @param segmentationId - The id of the segmentation to set as active. * @param suppressEvent - Whether to suppress the event triggered by the change - default false. */ function setActiveSegmentation( viewportId: string, segmentationId: string ): void { _setActiveSegmentation(viewportId, segmentationId); } export { // get getActiveSegmentation, // set setActiveSegmentation, }; |