@cornerstonejs/tools 1.50.3 → 1.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/eventListeners/annotations/annotationCompletedListener.d.ts +2 -0
- package/dist/cjs/eventListeners/annotations/annotationCompletedListener.js +35 -0
- package/dist/cjs/eventListeners/annotations/annotationCompletedListener.js.map +1 -0
- package/dist/cjs/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.d.ts +2 -0
- package/dist/cjs/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.js +174 -0
- package/dist/cjs/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.js.map +1 -0
- package/dist/cjs/eventListeners/annotations/contourSegmentation/index.d.ts +1 -0
- package/dist/cjs/eventListeners/annotations/contourSegmentation/index.js +9 -0
- package/dist/cjs/eventListeners/annotations/contourSegmentation/index.js.map +1 -0
- package/dist/cjs/eventListeners/annotations/index.d.ts +2 -1
- package/dist/cjs/eventListeners/annotations/index.js +3 -1
- package/dist/cjs/eventListeners/annotations/index.js.map +1 -1
- package/dist/cjs/eventListeners/index.d.ts +2 -2
- package/dist/cjs/eventListeners/index.js +2 -1
- package/dist/cjs/eventListeners/index.js.map +1 -1
- package/dist/cjs/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.d.ts +3 -0
- package/dist/cjs/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.js +89 -0
- package/dist/cjs/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.js.map +1 -0
- package/dist/cjs/eventListeners/segmentation/segmentationDataModifiedEventListener.js +5 -53
- package/dist/cjs/eventListeners/segmentation/segmentationDataModifiedEventListener.js.map +1 -1
- package/dist/cjs/init.js +2 -0
- package/dist/cjs/init.js.map +1 -1
- package/dist/cjs/stateManagement/annotation/helpers/state.d.ts +3 -1
- package/dist/cjs/stateManagement/annotation/helpers/state.js +21 -1
- package/dist/cjs/stateManagement/annotation/helpers/state.js.map +1 -1
- package/dist/cjs/store/ToolGroupManager/ToolGroup.d.ts +1 -0
- package/dist/cjs/store/ToolGroupManager/ToolGroup.js +3 -0
- package/dist/cjs/store/ToolGroupManager/ToolGroup.js.map +1 -1
- package/dist/cjs/store/addTool.d.ts +1 -0
- package/dist/cjs/store/addTool.js +6 -1
- package/dist/cjs/store/addTool.js.map +1 -1
- package/dist/cjs/store/index.d.ts +2 -2
- package/dist/cjs/store/index.js +2 -1
- package/dist/cjs/store/index.js.map +1 -1
- package/dist/cjs/store/removeEnabledElement.js +1 -2
- package/dist/cjs/store/removeEnabledElement.js.map +1 -1
- package/dist/cjs/tools/AdvancedMagnifyTool.js +3 -10
- package/dist/cjs/tools/AdvancedMagnifyTool.js.map +1 -1
- package/dist/cjs/tools/annotation/AngleTool.js +5 -18
- package/dist/cjs/tools/annotation/AngleTool.js.map +1 -1
- package/dist/cjs/tools/annotation/ArrowAnnotateTool.js +9 -28
- package/dist/cjs/tools/annotation/ArrowAnnotateTool.js.map +1 -1
- package/dist/cjs/tools/annotation/BidirectionalTool.js +7 -22
- package/dist/cjs/tools/annotation/BidirectionalTool.js.map +1 -1
- package/dist/cjs/tools/annotation/CircleROITool.js +7 -22
- package/dist/cjs/tools/annotation/CircleROITool.js.map +1 -1
- package/dist/cjs/tools/annotation/CobbAngleTool.js +5 -18
- package/dist/cjs/tools/annotation/CobbAngleTool.js.map +1 -1
- package/dist/cjs/tools/annotation/EllipticalROITool.js +7 -22
- package/dist/cjs/tools/annotation/EllipticalROITool.js.map +1 -1
- package/dist/cjs/tools/annotation/KeyImageTool.js +5 -12
- package/dist/cjs/tools/annotation/KeyImageTool.js.map +1 -1
- package/dist/cjs/tools/annotation/LengthTool.js +5 -18
- package/dist/cjs/tools/annotation/LengthTool.js.map +1 -1
- package/dist/cjs/tools/annotation/LivewireContourTool.d.ts +4 -1
- package/dist/cjs/tools/annotation/LivewireContourTool.js +30 -22
- package/dist/cjs/tools/annotation/LivewireContourTool.js.map +1 -1
- package/dist/cjs/tools/annotation/PlanarFreehandContourSegmentationTool.d.ts +2 -1
- package/dist/cjs/tools/annotation/PlanarFreehandContourSegmentationTool.js +11 -0
- package/dist/cjs/tools/annotation/PlanarFreehandContourSegmentationTool.js.map +1 -1
- package/dist/cjs/tools/annotation/PlanarFreehandROITool.d.ts +2 -10
- package/dist/cjs/tools/annotation/PlanarFreehandROITool.js +6 -22
- package/dist/cjs/tools/annotation/PlanarFreehandROITool.js.map +1 -1
- package/dist/cjs/tools/annotation/ProbeTool.js +8 -23
- package/dist/cjs/tools/annotation/ProbeTool.js.map +1 -1
- package/dist/cjs/tools/annotation/RectangleROITool.js +8 -22
- package/dist/cjs/tools/annotation/RectangleROITool.js.map +1 -1
- package/dist/cjs/tools/annotation/SplineROITool.d.ts +8 -9
- package/dist/cjs/tools/annotation/SplineROITool.js +27 -10
- package/dist/cjs/tools/annotation/SplineROITool.js.map +1 -1
- package/dist/cjs/tools/annotation/UltrasoundDirectionalTool.js +5 -18
- package/dist/cjs/tools/annotation/UltrasoundDirectionalTool.js.map +1 -1
- package/dist/cjs/tools/annotation/planarFreehandROITool/closedContourEditLoop.js +7 -6
- package/dist/cjs/tools/annotation/planarFreehandROITool/closedContourEditLoop.js.map +1 -1
- package/dist/cjs/tools/annotation/planarFreehandROITool/drawLoop.js +8 -5
- package/dist/cjs/tools/annotation/planarFreehandROITool/drawLoop.js.map +1 -1
- package/dist/cjs/tools/annotation/planarFreehandROITool/editLoopCommon.js +8 -8
- package/dist/cjs/tools/annotation/planarFreehandROITool/editLoopCommon.js.map +1 -1
- package/dist/cjs/tools/annotation/planarFreehandROITool/openContourEditLoop.js +6 -5
- package/dist/cjs/tools/annotation/planarFreehandROITool/openContourEditLoop.js.map +1 -1
- package/dist/cjs/tools/base/ContourBaseTool.d.ts +2 -8
- package/dist/cjs/tools/base/ContourBaseTool.js.map +1 -1
- package/dist/cjs/tools/base/ContourSegmentationBaseTool.d.ts +3 -2
- package/dist/cjs/tools/base/ContourSegmentationBaseTool.js +13 -1
- package/dist/cjs/tools/base/ContourSegmentationBaseTool.js.map +1 -1
- package/dist/cjs/tools/segmentation/RectangleROIStartEndThresholdTool.js +3 -9
- package/dist/cjs/tools/segmentation/RectangleROIStartEndThresholdTool.js.map +1 -1
- package/dist/cjs/tools/segmentation/RectangleROIThresholdTool.js +3 -9
- package/dist/cjs/tools/segmentation/RectangleROIThresholdTool.js.map +1 -1
- package/dist/cjs/types/AnnotationRenderContext.d.ts +11 -0
- package/dist/cjs/types/AnnotationRenderContext.js +3 -0
- package/dist/cjs/types/AnnotationRenderContext.js.map +1 -0
- package/dist/cjs/types/IToolGroup.d.ts +2 -1
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/cjs/utilities/contourSegmentation/areSameSegment.d.ts +2 -0
- package/dist/cjs/utilities/contourSegmentation/areSameSegment.js +12 -0
- package/dist/cjs/utilities/contourSegmentation/areSameSegment.js.map +1 -0
- package/dist/cjs/utilities/contourSegmentation/index.d.ts +2 -0
- package/dist/cjs/utilities/contourSegmentation/index.js +11 -0
- package/dist/cjs/utilities/contourSegmentation/index.js.map +1 -0
- package/dist/cjs/utilities/contourSegmentation/isContourSegmentationAnnotation.d.ts +3 -0
- package/dist/cjs/utilities/contourSegmentation/isContourSegmentationAnnotation.js +8 -0
- package/dist/cjs/utilities/contourSegmentation/isContourSegmentationAnnotation.js.map +1 -0
- package/dist/cjs/utilities/contours/areCoplanarContours.d.ts +2 -0
- package/dist/cjs/utilities/contours/areCoplanarContours.js +19 -0
- package/dist/cjs/utilities/contours/areCoplanarContours.js.map +1 -0
- package/dist/cjs/utilities/contours/index.d.ts +2 -1
- package/dist/cjs/utilities/contours/index.js +3 -1
- package/dist/cjs/utilities/contours/index.js.map +1 -1
- package/dist/cjs/utilities/contours/reverseIfAntiClockwise.js +3 -22
- package/dist/cjs/utilities/contours/reverseIfAntiClockwise.js.map +1 -1
- package/dist/cjs/utilities/math/aabb/index.d.ts +1 -0
- package/dist/cjs/utilities/math/aabb/index.js +3 -1
- package/dist/cjs/utilities/math/aabb/index.js.map +1 -1
- package/dist/cjs/utilities/math/aabb/intersectAABB.d.ts +2 -0
- package/dist/cjs/utilities/math/aabb/intersectAABB.js +10 -0
- package/dist/cjs/utilities/math/aabb/intersectAABB.js.map +1 -0
- package/dist/cjs/utilities/math/point/distanceToPointSquared.js +4 -1
- package/dist/cjs/utilities/math/point/distanceToPointSquared.js.map +1 -1
- package/dist/cjs/utilities/math/polyline/areLineSegmentsIntersecting.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/areLineSegmentsIntersecting.js +59 -0
- package/dist/cjs/utilities/math/polyline/areLineSegmentsIntersecting.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/combinePolyline.d.ts +4 -0
- package/dist/cjs/utilities/math/polyline/combinePolyline.js +213 -0
- package/dist/cjs/utilities/math/polyline/combinePolyline.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/containsPoint.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/containsPoint.js +36 -0
- package/dist/cjs/utilities/math/polyline/containsPoint.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/getAABB.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/getAABB.js +18 -0
- package/dist/cjs/utilities/math/polyline/getAABB.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/getArea.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/{calculateAreaOfPoints.js → getArea.js} +3 -3
- package/dist/cjs/utilities/math/polyline/getArea.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/getClosestLineSegmentIntersection.d.ts +5 -0
- package/dist/cjs/utilities/math/polyline/getClosestLineSegmentIntersection.js +51 -0
- package/dist/cjs/utilities/math/polyline/getClosestLineSegmentIntersection.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/getFirstLineSegmentIntersectionIndexes.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/getFirstLineSegmentIntersectionIndexes.js +28 -0
- package/dist/cjs/utilities/math/polyline/getFirstLineSegmentIntersectionIndexes.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/getLineSegmentIntersectionsCoordinates.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/getLineSegmentIntersectionsCoordinates.js +20 -0
- package/dist/cjs/utilities/math/polyline/getLineSegmentIntersectionsCoordinates.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/getLineSegmentIntersectionsIndexes.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/getLineSegmentIntersectionsIndexes.js +22 -0
- package/dist/cjs/utilities/math/polyline/getLineSegmentIntersectionsIndexes.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/getLineSegmentsIntersection.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/getLineSegmentsIntersection.js +21 -0
- package/dist/cjs/utilities/math/polyline/getLineSegmentsIntersection.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/getNormal2.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/getNormal2.js +12 -0
- package/dist/cjs/utilities/math/polyline/getNormal2.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/getNormal3.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/getNormal3.js +29 -0
- package/dist/cjs/utilities/math/polyline/getNormal3.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/getSignedArea.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/getSignedArea.js +20 -0
- package/dist/cjs/utilities/math/polyline/getSignedArea.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/index.d.ts +14 -3
- package/dist/cjs/utilities/math/polyline/index.js +28 -6
- package/dist/cjs/utilities/math/polyline/index.js.map +1 -1
- package/dist/cjs/utilities/math/polyline/intersectPolyline.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/intersectPolyline.js +20 -0
- package/dist/cjs/utilities/math/polyline/intersectPolyline.js.map +1 -0
- package/dist/cjs/utilities/math/polyline/isClosed.d.ts +2 -0
- package/dist/cjs/utilities/math/polyline/isClosed.js +39 -0
- package/dist/cjs/utilities/math/polyline/isClosed.js.map +1 -0
- package/dist/esm/eventListeners/annotations/annotationCompletedListener.js +9 -0
- package/dist/esm/eventListeners/annotations/annotationCompletedListener.js.map +1 -0
- package/dist/esm/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.js +153 -0
- package/dist/esm/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.js.map +1 -0
- package/dist/esm/eventListeners/annotations/contourSegmentation/index.js +2 -0
- package/dist/esm/eventListeners/annotations/contourSegmentation/index.js.map +1 -0
- package/dist/esm/eventListeners/annotations/index.js +2 -1
- package/dist/esm/eventListeners/annotations/index.js.map +1 -1
- package/dist/esm/eventListeners/index.js +2 -2
- package/dist/esm/eventListeners/index.js.map +1 -1
- package/dist/esm/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.js +61 -0
- package/dist/esm/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.js.map +1 -0
- package/dist/esm/eventListeners/segmentation/segmentationDataModifiedEventListener.js +5 -53
- package/dist/esm/eventListeners/segmentation/segmentationDataModifiedEventListener.js.map +1 -1
- package/dist/esm/init.js +3 -1
- package/dist/esm/init.js.map +1 -1
- package/dist/esm/stateManagement/annotation/helpers/state.js +19 -1
- package/dist/esm/stateManagement/annotation/helpers/state.js.map +1 -1
- package/dist/esm/store/ToolGroupManager/ToolGroup.js +3 -0
- package/dist/esm/store/ToolGroupManager/ToolGroup.js.map +1 -1
- package/dist/esm/store/addTool.js +4 -0
- package/dist/esm/store/addTool.js.map +1 -1
- package/dist/esm/store/index.js +2 -2
- package/dist/esm/store/index.js.map +1 -1
- package/dist/esm/store/removeEnabledElement.js +1 -2
- package/dist/esm/store/removeEnabledElement.js.map +1 -1
- package/dist/esm/tools/AdvancedMagnifyTool.js +4 -11
- package/dist/esm/tools/AdvancedMagnifyTool.js.map +1 -1
- package/dist/esm/tools/annotation/AngleTool.js +6 -19
- package/dist/esm/tools/annotation/AngleTool.js.map +1 -1
- package/dist/esm/tools/annotation/ArrowAnnotateTool.js +10 -29
- package/dist/esm/tools/annotation/ArrowAnnotateTool.js.map +1 -1
- package/dist/esm/tools/annotation/BidirectionalTool.js +8 -23
- package/dist/esm/tools/annotation/BidirectionalTool.js.map +1 -1
- package/dist/esm/tools/annotation/CircleROITool.js +8 -23
- package/dist/esm/tools/annotation/CircleROITool.js.map +1 -1
- package/dist/esm/tools/annotation/CobbAngleTool.js +6 -19
- package/dist/esm/tools/annotation/CobbAngleTool.js.map +1 -1
- package/dist/esm/tools/annotation/EllipticalROITool.js +8 -23
- package/dist/esm/tools/annotation/EllipticalROITool.js.map +1 -1
- package/dist/esm/tools/annotation/KeyImageTool.js +6 -13
- package/dist/esm/tools/annotation/KeyImageTool.js.map +1 -1
- package/dist/esm/tools/annotation/LengthTool.js +6 -19
- package/dist/esm/tools/annotation/LengthTool.js.map +1 -1
- package/dist/esm/tools/annotation/LivewireContourTool.js +31 -23
- package/dist/esm/tools/annotation/LivewireContourTool.js.map +1 -1
- package/dist/esm/tools/annotation/PlanarFreehandContourSegmentationTool.js +11 -0
- package/dist/esm/tools/annotation/PlanarFreehandContourSegmentationTool.js.map +1 -1
- package/dist/esm/tools/annotation/PlanarFreehandROITool.js +7 -23
- package/dist/esm/tools/annotation/PlanarFreehandROITool.js.map +1 -1
- package/dist/esm/tools/annotation/ProbeTool.js +9 -24
- package/dist/esm/tools/annotation/ProbeTool.js.map +1 -1
- package/dist/esm/tools/annotation/RectangleROITool.js +9 -23
- package/dist/esm/tools/annotation/RectangleROITool.js.map +1 -1
- package/dist/esm/tools/annotation/SplineROITool.js +26 -9
- package/dist/esm/tools/annotation/SplineROITool.js.map +1 -1
- package/dist/esm/tools/annotation/UltrasoundDirectionalTool.js +6 -19
- package/dist/esm/tools/annotation/UltrasoundDirectionalTool.js.map +1 -1
- package/dist/esm/tools/annotation/planarFreehandROITool/closedContourEditLoop.js +7 -6
- package/dist/esm/tools/annotation/planarFreehandROITool/closedContourEditLoop.js.map +1 -1
- package/dist/esm/tools/annotation/planarFreehandROITool/drawLoop.js +8 -5
- package/dist/esm/tools/annotation/planarFreehandROITool/drawLoop.js.map +1 -1
- package/dist/esm/tools/annotation/planarFreehandROITool/editLoopCommon.js +8 -8
- package/dist/esm/tools/annotation/planarFreehandROITool/editLoopCommon.js.map +1 -1
- package/dist/esm/tools/annotation/planarFreehandROITool/openContourEditLoop.js +6 -5
- package/dist/esm/tools/annotation/planarFreehandROITool/openContourEditLoop.js.map +1 -1
- package/dist/esm/tools/base/ContourBaseTool.js.map +1 -1
- package/dist/esm/tools/base/ContourSegmentationBaseTool.js +13 -1
- package/dist/esm/tools/base/ContourSegmentationBaseTool.js.map +1 -1
- package/dist/esm/tools/segmentation/RectangleROIStartEndThresholdTool.js +4 -10
- package/dist/esm/tools/segmentation/RectangleROIStartEndThresholdTool.js.map +1 -1
- package/dist/esm/tools/segmentation/RectangleROIThresholdTool.js +4 -10
- package/dist/esm/tools/segmentation/RectangleROIThresholdTool.js.map +1 -1
- package/dist/esm/types/AnnotationRenderContext.js +2 -0
- package/dist/esm/types/AnnotationRenderContext.js.map +1 -0
- package/dist/esm/utilities/contourSegmentation/areSameSegment.js +9 -0
- package/dist/esm/utilities/contourSegmentation/areSameSegment.js.map +1 -0
- package/dist/esm/utilities/contourSegmentation/index.js +3 -0
- package/dist/esm/utilities/contourSegmentation/index.js.map +1 -0
- package/dist/esm/utilities/contourSegmentation/isContourSegmentationAnnotation.js +4 -0
- package/dist/esm/utilities/contourSegmentation/isContourSegmentationAnnotation.js.map +1 -0
- package/dist/esm/utilities/contours/areCoplanarContours.js +16 -0
- package/dist/esm/utilities/contours/areCoplanarContours.js.map +1 -0
- package/dist/esm/utilities/contours/index.js +2 -1
- package/dist/esm/utilities/contours/index.js.map +1 -1
- package/dist/esm/utilities/contours/reverseIfAntiClockwise.js +3 -22
- package/dist/esm/utilities/contours/reverseIfAntiClockwise.js.map +1 -1
- package/dist/esm/utilities/math/aabb/index.js +1 -0
- package/dist/esm/utilities/math/aabb/index.js.map +1 -1
- package/dist/esm/utilities/math/aabb/intersectAABB.js +7 -0
- package/dist/esm/utilities/math/aabb/intersectAABB.js.map +1 -0
- package/dist/esm/utilities/math/point/distanceToPointSquared.js +4 -1
- package/dist/esm/utilities/math/point/distanceToPointSquared.js.map +1 -1
- package/dist/esm/utilities/math/polyline/areLineSegmentsIntersecting.js +56 -0
- package/dist/esm/utilities/math/polyline/areLineSegmentsIntersecting.js.map +1 -0
- package/dist/esm/utilities/math/polyline/combinePolyline.js +187 -0
- package/dist/esm/utilities/math/polyline/combinePolyline.js.map +1 -0
- package/dist/esm/utilities/math/polyline/containsPoint.js +30 -0
- package/dist/esm/utilities/math/polyline/containsPoint.js.map +1 -0
- package/dist/esm/utilities/math/polyline/getAABB.js +15 -0
- package/dist/esm/utilities/math/polyline/getAABB.js.map +1 -0
- package/dist/esm/utilities/math/polyline/{calculateAreaOfPoints.js → getArea.js} +2 -2
- package/dist/esm/utilities/math/polyline/getArea.js.map +1 -0
- package/dist/esm/utilities/math/polyline/getClosestLineSegmentIntersection.js +45 -0
- package/dist/esm/utilities/math/polyline/getClosestLineSegmentIntersection.js.map +1 -0
- package/dist/esm/utilities/math/polyline/getFirstLineSegmentIntersectionIndexes.js +22 -0
- package/dist/esm/utilities/math/polyline/getFirstLineSegmentIntersectionIndexes.js.map +1 -0
- package/dist/esm/utilities/math/polyline/getLineSegmentIntersectionsCoordinates.js +14 -0
- package/dist/esm/utilities/math/polyline/getLineSegmentIntersectionsCoordinates.js.map +1 -0
- package/dist/esm/utilities/math/polyline/getLineSegmentIntersectionsIndexes.js +16 -0
- package/dist/esm/utilities/math/polyline/getLineSegmentIntersectionsIndexes.js.map +1 -0
- package/dist/esm/utilities/math/polyline/getLineSegmentsIntersection.js +18 -0
- package/dist/esm/utilities/math/polyline/getLineSegmentsIntersection.js.map +1 -0
- package/dist/esm/utilities/math/polyline/getNormal2.js +6 -0
- package/dist/esm/utilities/math/polyline/getNormal2.js.map +1 -0
- package/dist/esm/utilities/math/polyline/getNormal3.js +26 -0
- package/dist/esm/utilities/math/polyline/getNormal3.js.map +1 -0
- package/dist/esm/utilities/math/polyline/getSignedArea.js +17 -0
- package/dist/esm/utilities/math/polyline/getSignedArea.js.map +1 -0
- package/dist/esm/utilities/math/polyline/index.js +14 -3
- package/dist/esm/utilities/math/polyline/index.js.map +1 -1
- package/dist/esm/utilities/math/polyline/intersectPolyline.js +14 -0
- package/dist/esm/utilities/math/polyline/intersectPolyline.js.map +1 -0
- package/dist/esm/utilities/math/polyline/isClosed.js +13 -0
- package/dist/esm/utilities/math/polyline/isClosed.js.map +1 -0
- package/dist/types/eventListeners/annotations/annotationCompletedListener.d.ts +3 -0
- package/dist/types/eventListeners/annotations/annotationCompletedListener.d.ts.map +1 -0
- package/dist/types/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.d.ts +3 -0
- package/dist/types/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.d.ts.map +1 -0
- package/dist/types/eventListeners/annotations/contourSegmentation/index.d.ts +2 -0
- package/dist/types/eventListeners/annotations/contourSegmentation/index.d.ts.map +1 -0
- package/dist/types/eventListeners/annotations/index.d.ts +2 -1
- package/dist/types/eventListeners/annotations/index.d.ts.map +1 -1
- package/dist/types/eventListeners/index.d.ts +2 -2
- package/dist/types/eventListeners/index.d.ts.map +1 -1
- package/dist/types/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.d.ts +4 -0
- package/dist/types/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.d.ts.map +1 -0
- package/dist/types/eventListeners/segmentation/segmentationDataModifiedEventListener.d.ts.map +1 -1
- package/dist/types/init.d.ts.map +1 -1
- package/dist/types/stateManagement/annotation/helpers/state.d.ts +3 -1
- package/dist/types/stateManagement/annotation/helpers/state.d.ts.map +1 -1
- package/dist/types/store/ToolGroupManager/ToolGroup.d.ts +1 -0
- package/dist/types/store/ToolGroupManager/ToolGroup.d.ts.map +1 -1
- package/dist/types/store/addTool.d.ts +1 -0
- package/dist/types/store/addTool.d.ts.map +1 -1
- package/dist/types/store/index.d.ts +2 -2
- package/dist/types/store/index.d.ts.map +1 -1
- package/dist/types/store/removeEnabledElement.d.ts.map +1 -1
- package/dist/types/tools/AdvancedMagnifyTool.d.ts.map +1 -1
- package/dist/types/tools/annotation/AngleTool.d.ts.map +1 -1
- package/dist/types/tools/annotation/ArrowAnnotateTool.d.ts.map +1 -1
- package/dist/types/tools/annotation/BidirectionalTool.d.ts.map +1 -1
- package/dist/types/tools/annotation/CircleROITool.d.ts.map +1 -1
- package/dist/types/tools/annotation/CobbAngleTool.d.ts.map +1 -1
- package/dist/types/tools/annotation/EllipticalROITool.d.ts.map +1 -1
- package/dist/types/tools/annotation/KeyImageTool.d.ts.map +1 -1
- package/dist/types/tools/annotation/LengthTool.d.ts.map +1 -1
- package/dist/types/tools/annotation/LivewireContourTool.d.ts +4 -1
- package/dist/types/tools/annotation/LivewireContourTool.d.ts.map +1 -1
- package/dist/types/tools/annotation/PlanarFreehandContourSegmentationTool.d.ts +2 -1
- package/dist/types/tools/annotation/PlanarFreehandContourSegmentationTool.d.ts.map +1 -1
- package/dist/types/tools/annotation/PlanarFreehandROITool.d.ts +2 -10
- package/dist/types/tools/annotation/PlanarFreehandROITool.d.ts.map +1 -1
- package/dist/types/tools/annotation/ProbeTool.d.ts.map +1 -1
- package/dist/types/tools/annotation/RectangleROITool.d.ts.map +1 -1
- package/dist/types/tools/annotation/SplineROITool.d.ts +8 -9
- package/dist/types/tools/annotation/SplineROITool.d.ts.map +1 -1
- package/dist/types/tools/annotation/UltrasoundDirectionalTool.d.ts.map +1 -1
- package/dist/types/tools/annotation/planarFreehandROITool/closedContourEditLoop.d.ts.map +1 -1
- package/dist/types/tools/annotation/planarFreehandROITool/drawLoop.d.ts.map +1 -1
- package/dist/types/tools/annotation/planarFreehandROITool/editLoopCommon.d.ts.map +1 -1
- package/dist/types/tools/annotation/planarFreehandROITool/openContourEditLoop.d.ts.map +1 -1
- package/dist/types/tools/base/ContourBaseTool.d.ts +2 -8
- package/dist/types/tools/base/ContourBaseTool.d.ts.map +1 -1
- package/dist/types/tools/base/ContourSegmentationBaseTool.d.ts +3 -2
- package/dist/types/tools/base/ContourSegmentationBaseTool.d.ts.map +1 -1
- package/dist/types/tools/segmentation/RectangleROIStartEndThresholdTool.d.ts.map +1 -1
- package/dist/types/tools/segmentation/RectangleROIThresholdTool.d.ts.map +1 -1
- package/dist/types/types/AnnotationRenderContext.d.ts +12 -0
- package/dist/types/types/AnnotationRenderContext.d.ts.map +1 -0
- package/dist/types/types/IToolGroup.d.ts +2 -1
- package/dist/types/types/IToolGroup.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +2 -1
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/utilities/contourSegmentation/areSameSegment.d.ts +3 -0
- package/dist/types/utilities/contourSegmentation/areSameSegment.d.ts.map +1 -0
- package/dist/types/utilities/contourSegmentation/index.d.ts +3 -0
- package/dist/types/utilities/contourSegmentation/index.d.ts.map +1 -0
- package/dist/types/utilities/contourSegmentation/isContourSegmentationAnnotation.d.ts +4 -0
- package/dist/types/utilities/contourSegmentation/isContourSegmentationAnnotation.d.ts.map +1 -0
- package/dist/types/utilities/contours/areCoplanarContours.d.ts +3 -0
- package/dist/types/utilities/contours/areCoplanarContours.d.ts.map +1 -0
- package/dist/types/utilities/contours/index.d.ts +2 -1
- package/dist/types/utilities/contours/index.d.ts.map +1 -1
- package/dist/types/utilities/contours/reverseIfAntiClockwise.d.ts.map +1 -1
- package/dist/types/utilities/math/aabb/index.d.ts +1 -0
- package/dist/types/utilities/math/aabb/index.d.ts.map +1 -1
- package/dist/types/utilities/math/aabb/intersectAABB.d.ts +3 -0
- package/dist/types/utilities/math/aabb/intersectAABB.d.ts.map +1 -0
- package/dist/types/utilities/math/point/distanceToPointSquared.d.ts.map +1 -1
- package/dist/types/utilities/math/polyline/areLineSegmentsIntersecting.d.ts +3 -0
- package/dist/types/utilities/math/polyline/areLineSegmentsIntersecting.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/combinePolyline.d.ts +5 -0
- package/dist/types/utilities/math/polyline/combinePolyline.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/containsPoint.d.ts +3 -0
- package/dist/types/utilities/math/polyline/containsPoint.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/getAABB.d.ts +3 -0
- package/dist/types/utilities/math/polyline/getAABB.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/getArea.d.ts +3 -0
- package/dist/types/utilities/math/polyline/getArea.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/getClosestLineSegmentIntersection.d.ts +6 -0
- package/dist/types/utilities/math/polyline/getClosestLineSegmentIntersection.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/getFirstLineSegmentIntersectionIndexes.d.ts +3 -0
- package/dist/types/utilities/math/polyline/getFirstLineSegmentIntersectionIndexes.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/getLineSegmentIntersectionsCoordinates.d.ts +3 -0
- package/dist/types/utilities/math/polyline/getLineSegmentIntersectionsCoordinates.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/getLineSegmentIntersectionsIndexes.d.ts +3 -0
- package/dist/types/utilities/math/polyline/getLineSegmentIntersectionsIndexes.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/getLineSegmentsIntersection.d.ts +3 -0
- package/dist/types/utilities/math/polyline/getLineSegmentsIntersection.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/getNormal2.d.ts +3 -0
- package/dist/types/utilities/math/polyline/getNormal2.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/getNormal3.d.ts +3 -0
- package/dist/types/utilities/math/polyline/getNormal3.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/getSignedArea.d.ts +3 -0
- package/dist/types/utilities/math/polyline/getSignedArea.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/index.d.ts +14 -3
- package/dist/types/utilities/math/polyline/index.d.ts.map +1 -1
- package/dist/types/utilities/math/polyline/intersectPolyline.d.ts +3 -0
- package/dist/types/utilities/math/polyline/intersectPolyline.d.ts.map +1 -0
- package/dist/types/utilities/math/polyline/isClosed.d.ts +3 -0
- package/dist/types/utilities/math/polyline/isClosed.d.ts.map +1 -0
- package/dist/umd/index.js +1 -2
- package/dist/umd/index.js.map +1 -1
- package/package.json +3 -3
- package/src/eventListeners/annotations/annotationCompletedListener.ts +13 -0
- package/src/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.ts +273 -0
- package/src/eventListeners/annotations/contourSegmentation/index.ts +1 -0
- package/src/eventListeners/annotations/index.ts +6 -1
- package/src/eventListeners/index.ts +2 -0
- package/src/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.ts +117 -0
- package/src/eventListeners/segmentation/segmentationDataModifiedEventListener.ts +5 -99
- package/src/init.ts +12 -1
- package/src/stateManagement/annotation/helpers/state.ts +42 -2
- package/src/store/ToolGroupManager/ToolGroup.ts +10 -0
- package/src/store/addTool.ts +11 -0
- package/src/store/index.ts +2 -1
- package/src/store/removeEnabledElement.ts +2 -1
- package/src/tools/AdvancedMagnifyTool.ts +4 -21
- package/src/tools/annotation/AngleTool.ts +8 -32
- package/src/tools/annotation/ArrowAnnotateTool.ts +12 -45
- package/src/tools/annotation/BidirectionalTool.ts +11 -39
- package/src/tools/annotation/CircleROITool.ts +10 -34
- package/src/tools/annotation/CobbAngleTool.ts +9 -32
- package/src/tools/annotation/EllipticalROITool.ts +10 -34
- package/src/tools/annotation/KeyImageTool.ts +9 -23
- package/src/tools/annotation/LengthTool.ts +9 -33
- package/src/tools/annotation/LivewireContourTool.ts +58 -33
- package/src/tools/annotation/PlanarFreehandContourSegmentationTool.ts +22 -1
- package/src/tools/annotation/PlanarFreehandROITool.ts +10 -53
- package/src/tools/annotation/ProbeTool.ts +11 -36
- package/src/tools/annotation/RectangleROITool.ts +11 -33
- package/src/tools/annotation/SplineROITool.ts +53 -24
- package/src/tools/annotation/UltrasoundDirectionalTool.ts +8 -29
- package/src/tools/annotation/planarFreehandROITool/closedContourEditLoop.ts +9 -11
- package/src/tools/annotation/planarFreehandROITool/drawLoop.ts +8 -5
- package/src/tools/annotation/planarFreehandROITool/editLoopCommon.ts +9 -8
- package/src/tools/annotation/planarFreehandROITool/openContourEditLoop.ts +7 -6
- package/src/tools/base/ContourBaseTool.ts +5 -8
- package/src/tools/base/ContourSegmentationBaseTool.ts +29 -6
- package/src/tools/segmentation/RectangleROIStartEndThresholdTool.ts +3 -13
- package/src/tools/segmentation/RectangleROIThresholdTool.ts +3 -14
- package/src/types/AnnotationRenderContext.ts +13 -0
- package/src/types/IToolGroup.ts +3 -1
- package/src/types/index.ts +3 -0
- package/src/utilities/contourSegmentation/areSameSegment.ts +24 -0
- package/src/utilities/contourSegmentation/index.ts +2 -0
- package/src/utilities/contourSegmentation/isContourSegmentationAnnotation.ts +8 -0
- package/src/utilities/contours/areCoplanarContours.ts +39 -0
- package/src/utilities/contours/index.ts +2 -0
- package/src/utilities/contours/reverseIfAntiClockwise.ts +6 -25
- package/src/utilities/math/aabb/index.ts +1 -0
- package/src/utilities/math/aabb/intersectAABB.ts +19 -0
- package/src/utilities/math/point/distanceToPointSquared.ts +6 -1
- package/src/utilities/math/polyline/areLineSegmentsIntersecting.ts +118 -0
- package/src/utilities/math/polyline/combinePolyline.ts +350 -0
- package/src/utilities/math/polyline/containsPoint.ts +63 -0
- package/src/utilities/math/polyline/getAABB.ts +20 -0
- package/src/utilities/math/polyline/{calculateAreaOfPoints.ts → getArea.ts} +1 -1
- package/src/utilities/math/polyline/getClosestLineSegmentIntersection.ts +72 -0
- package/src/utilities/math/polyline/getFirstLineSegmentIntersectionIndexes.ts +42 -0
- package/src/utilities/math/polyline/getLineSegmentIntersectionsCoordinates.ts +30 -0
- package/src/utilities/math/polyline/getLineSegmentIntersectionsIndexes.ts +35 -0
- package/src/utilities/math/polyline/getLineSegmentsIntersection.ts +47 -0
- package/src/utilities/math/polyline/getNormal2.ts +17 -0
- package/src/utilities/math/polyline/getNormal3.ts +53 -0
- package/src/utilities/math/polyline/getSignedArea.ts +47 -0
- package/src/utilities/math/polyline/index.ts +27 -8
- package/src/utilities/math/polyline/intersectPolyline.ts +34 -0
- package/src/utilities/math/polyline/isClosed.ts +26 -0
- package/dist/cjs/utilities/math/polyline/calculateAreaOfPoints.d.ts +0 -2
- package/dist/cjs/utilities/math/polyline/calculateAreaOfPoints.js.map +0 -1
- package/dist/cjs/utilities/math/polyline/getIntersectionWithPolyline.d.ts +0 -9
- package/dist/cjs/utilities/math/polyline/getIntersectionWithPolyline.js +0 -160
- package/dist/cjs/utilities/math/polyline/getIntersectionWithPolyline.js.map +0 -1
- package/dist/cjs/utilities/math/polyline/pointInPolyline.d.ts +0 -2
- package/dist/cjs/utilities/math/polyline/pointInPolyline.js +0 -15
- package/dist/cjs/utilities/math/polyline/pointInPolyline.js.map +0 -1
- package/dist/esm/utilities/math/polyline/calculateAreaOfPoints.js.map +0 -1
- package/dist/esm/utilities/math/polyline/getIntersectionWithPolyline.js +0 -154
- package/dist/esm/utilities/math/polyline/getIntersectionWithPolyline.js.map +0 -1
- package/dist/esm/utilities/math/polyline/pointInPolyline.js +0 -12
- package/dist/esm/utilities/math/polyline/pointInPolyline.js.map +0 -1
- package/dist/types/utilities/math/polyline/calculateAreaOfPoints.d.ts +0 -3
- package/dist/types/utilities/math/polyline/calculateAreaOfPoints.d.ts.map +0 -1
- package/dist/types/utilities/math/polyline/getIntersectionWithPolyline.d.ts +0 -10
- package/dist/types/utilities/math/polyline/getIntersectionWithPolyline.d.ts.map +0 -1
- package/dist/types/utilities/math/polyline/pointInPolyline.d.ts +0 -3
- package/dist/types/utilities/math/polyline/pointInPolyline.d.ts.map +0 -1
- package/dist/umd/index.js.LICENSE.txt +0 -6
- package/src/utilities/math/polyline/getIntersectionWithPolyline.ts +0 -275
- package/src/utilities/math/polyline/pointInPolyline.ts +0 -19
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
|
-
import type { EventTypes, ToolHandle, Annotation, Annotations, PublicToolProps, ToolProps,
|
|
2
|
+
import type { EventTypes, ToolHandle, Annotation, Annotations, PublicToolProps, ToolProps, AnnotationRenderContext } from '../../types';
|
|
3
3
|
import { PlanarFreehandROIAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
4
4
|
import ContourSegmentationBaseTool from '../base/ContourSegmentationBaseTool';
|
|
5
5
|
declare class PlanarFreehandROITool extends ContourSegmentationBaseTool {
|
|
@@ -28,20 +28,12 @@ declare class PlanarFreehandROITool extends ContourSegmentationBaseTool {
|
|
|
28
28
|
toolSelectedCallback: (evt: EventTypes.InteractionEventType, annotation: PlanarFreehandROIAnnotation) => void;
|
|
29
29
|
isPointNearTool: (element: HTMLDivElement, annotation: PlanarFreehandROIAnnotation, canvasCoords: Types.Point2, proximity: number) => boolean;
|
|
30
30
|
cancel: (element: HTMLDivElement) => void;
|
|
31
|
-
triggerAnnotationModified: (annotation: PlanarFreehandROIAnnotation, enabledElement: Types.IEnabledElement) => void;
|
|
32
|
-
triggerAnnotationCompleted: (annotation: PlanarFreehandROIAnnotation) => void;
|
|
33
31
|
filterInteractableAnnotationsForElement(element: HTMLDivElement, annotations: Annotations): Annotations | undefined;
|
|
34
32
|
private filterAnnotationsWithinSlice;
|
|
35
33
|
protected isContourSegmentationTool(): boolean;
|
|
36
34
|
protected createAnnotation(evt: EventTypes.InteractionEventType): Annotation;
|
|
37
35
|
protected getAnnotationStyle(context: any): any;
|
|
38
|
-
protected renderAnnotationInstance(renderContext:
|
|
39
|
-
enabledElement: Types.IEnabledElement;
|
|
40
|
-
targetId: string;
|
|
41
|
-
annotation: Annotation;
|
|
42
|
-
annotationStyle: Record<string, any>;
|
|
43
|
-
svgDrawingHelper: SVGDrawingHelper;
|
|
44
|
-
}): boolean;
|
|
36
|
+
protected renderAnnotationInstance(renderContext: AnnotationRenderContext): boolean;
|
|
45
37
|
_calculateStatsIfActive(annotation: PlanarFreehandROIAnnotation, targetId: string, viewport: any, renderingEngine: any, enabledElement: any): void;
|
|
46
38
|
private _calculateCachedStats;
|
|
47
39
|
private _renderStats;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanarFreehandROITool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/PlanarFreehandROITool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlanarFreehandROITool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/PlanarFreehandROITool.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAmBjD,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EAEX,eAAe,EACf,SAAS,EAET,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAStF,OAAO,2BAA2B,MAAM,qCAAqC,CAAC;AAoE9E,cAAM,qBAAsB,SAAQ,2BAA2B;IAC7D,MAAM,CAAC,QAAQ,MAAC;IAET,iBAAiB,EAAE,GAAG,CAAC;IACvB,iBAAiB,EAAE,GAAG,CAAC;IAC9B,8BAA8B,EAAE,GAAG,CAAC;IACpC,OAAO,CAAC,UAAU,CAAC,CAA8B;IACjD,SAAS,UAAS;IAClB,eAAe,UAAS;IACxB,aAAa,UAAS;IAEtB,SAAS,CAAC,YAAY,EAAE,CACtB,GAAG,EAAE,UAAU,CAAC,oBAAoB,EACpC,UAAU,EAAE,2BAA2B,EACvC,mBAAmB,EAAE,MAAM,EAAE,KAC1B,IAAI,CAAC;IACV,OAAO,CAAC,yBAAyB,CAIvB;IACV,OAAO,CAAC,uBAAuB,CAIrB;IACV,OAAO,CAAC,0BAA0B,CAKxB;IACV,OAAO,CAAC,aAAa,CAAoC;IACzD,OAAO,CAAC,uBAAuB,CAAoC;IACnE,OAAO,CAAC,qBAAqB,CAAoC;IAEjE,OAAO,CAAC,aAAa,CAIX;IACV,OAAO,CAAC,uBAAuB,CAIrB;IACV,OAAO,CAAC,8BAA8B,CAI5B;IACV,OAAO,CAAC,4BAA4B,CAI1B;gBAGR,SAAS,GAAE,eAAoB,EAC/B,gBAAgB,GAAE,SAyDjB;IA2BH,gBAAgB,QACT,WAAW,oBAAoB,KACnC,2BAA2B,CAsB5B;IAWF,sBAAsB,QACf,WAAW,oBAAoB,cACxB,2BAA2B,UAC/B,UAAU,KACjB,IAAI,CAeL;IAKF,oBAAoB,QACb,WAAW,oBAAoB,cACxB,2BAA2B,KACtC,IAAI,CAcL;IAaF,eAAe,YACJ,cAAc,cACX,2BAA2B,yCAE5B,MAAM,KAChB,OAAO,CAgCR;IAEF,MAAM,YAAa,cAAc,KAAG,IAAI,CAYtC;IAOF,uCAAuC,CACrC,OAAO,EAAE,cAAc,EACvB,WAAW,EAAE,WAAW,GACvB,WAAW,GAAG,SAAS;IAoC1B,OAAO,CAAC,4BAA4B;IA6DpC,SAAS,CAAC,yBAAyB,IAAI,OAAO;IAM9C,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,UAAU,CAAC,oBAAoB,GAAG,UAAU;IAe5E,SAAS,CAAC,kBAAkB,CAAC,OAAO,KAAA;IAMpC,SAAS,CAAC,wBAAwB,CAChC,aAAa,EAAE,uBAAuB,GACrC,OAAO;IAuEV,uBAAuB,CACrB,UAAU,EAAE,2BAA2B,EACvC,QAAQ,EAAE,MAAM,EAChB,QAAQ,KAAA,EACR,eAAe,KAAA,EACf,cAAc,KAAA;IA2ChB,OAAO,CAAC,qBAAqB,CAiL3B;IAEF,OAAO,CAAC,YAAY,CA2DlB;CACH;AAgCD,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProbeTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/ProbeTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProbeTool.d.ts","sourceRoot":"","sources":["../../../../src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Ae,yBAUb;IAEF,iBAAiB,yBAUf;IAUF,gBAAgB,mBACE,MAAM,eAAe,oBACnB,gBAAgB,KACjC,OAAO,CAqIR;IAEF,qBAAqB,CAAC,UAAU,KAAA,EAAE,eAAe,KAAA,EAAE,cAAc,KAAA;CA2HlE;AA0BD,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RectangleROITool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/RectangleROITool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"RectangleROITool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/RectangleROITool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAOzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAoCjD,OAAO,EACL,UAAU,EACV,UAAU,EAEV,SAAS,EACT,eAAe,EACf,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAgDjF,cAAM,gBAAiB,SAAQ,cAAc;IAC3C,MAAM,CAAC,QAAQ,MAAC;IAEhB,8BAA8B,EAAE,GAAG,CAAC;IACpC,QAAQ,EAAE;QACR,UAAU,EAAE,GAAG,CAAC;QAChB,mBAAmB,EAAE,MAAM,EAAE,CAAC;QAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,GAAG,IAAI,CAAC;IACT,SAAS,EAAE,OAAO,CAAC;IACnB,oBAAoB,EAAE,OAAO,CAAC;gBAG5B,SAAS,GAAE,eAAoB,EAC/B,gBAAgB,GAAE,SAQjB;IAmBH,gBAAgB,QACT,WAAW,oBAAoB,KACnC,sBAAsB,CAiFvB;IAaF,eAAe,YACJ,cAAc,cACX,sBAAsB,yCAEvB,MAAM,KAChB,OAAO,CA4BR;IAEF,oBAAoB,QACb,WAAW,oBAAoB,cACxB,sBAAsB,KACjC,IAAI,CA2BL;IAEF,sBAAsB,QACf,WAAW,oBAAoB,cACxB,sBAAsB,UAC1B,UAAU,KACjB,IAAI,CAsCL;IAEF,YAAY,QAAS,WAAW,oBAAoB,KAAG,IAAI,CAoCzD;IAEF,aAAa,QAAS,WAAW,oBAAoB,KAAG,IAAI,CA4G1D;IAEF,MAAM,YAAa,cAAc,SA6B/B;IAIF,aAAa,yBAWX;IAKF,eAAe,yBAWb;IAKF,eAAe,yBAUb;IAKF,iBAAiB,yBAUf;IAUF,gBAAgB,mBACE,MAAM,eAAe,oBACnB,gBAAgB,KACjC,OAAO,CA0NR;IAEF,6BAA6B,WACnB,MAAM,MAAM,MAAM,CAAC,KAC1B;QACD,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CASC;IAaF,qBAAqB,yGAgInB;IAEF,eAAe,yDAKb;CACH;AA4BD,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
2
|
import { ChangeTypes } from '../../enums';
|
|
3
|
-
import { Annotation, EventTypes, ToolHandle, PublicToolProps, ToolProps,
|
|
3
|
+
import type { Annotation, EventTypes, ToolHandle, PublicToolProps, ToolProps, AnnotationRenderContext } from '../../types';
|
|
4
4
|
import { SplineROIAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
5
5
|
import ContourSegmentationBaseTool from '../base/ContourSegmentationBaseTool';
|
|
6
6
|
declare enum SplineTypesEnum {
|
|
@@ -31,7 +31,10 @@ declare class SplineROITool extends ContourSegmentationBaseTool {
|
|
|
31
31
|
} | null;
|
|
32
32
|
isDrawing: boolean;
|
|
33
33
|
isHandleOutsideImage: boolean;
|
|
34
|
-
fireChangeOnUpdate:
|
|
34
|
+
fireChangeOnUpdate: {
|
|
35
|
+
annotationUID: string;
|
|
36
|
+
changeType: ChangeTypes;
|
|
37
|
+
};
|
|
35
38
|
constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps);
|
|
36
39
|
addNewAnnotation(evt: EventTypes.InteractionEventType): SplineROIAnnotation;
|
|
37
40
|
isPointNearTool: (element: HTMLDivElement, annotation: SplineROIAnnotation, canvasCoords: Types.Point2, proximity: number) => boolean;
|
|
@@ -43,19 +46,15 @@ declare class SplineROITool extends ContourSegmentationBaseTool {
|
|
|
43
46
|
private _mouseDownCallback;
|
|
44
47
|
private _dragCallback;
|
|
45
48
|
cancel(element: HTMLDivElement): string;
|
|
49
|
+
triggerAnnotationCompleted: (annotation: SplineROIAnnotation) => void;
|
|
46
50
|
triggerAnnotationModified: (annotation: SplineROIAnnotation, enabledElement: Types.IEnabledElement, changeType?: ChangeTypes) => void;
|
|
51
|
+
triggerChangeEvent: (annotation: SplineROIAnnotation, enabledElement: Types.IEnabledElement, changeType?: ChangeTypes) => void;
|
|
47
52
|
private _activateModify;
|
|
48
53
|
private _deactivateModify;
|
|
49
54
|
private _activateDraw;
|
|
50
55
|
private _deactivateDraw;
|
|
51
56
|
protected isContourSegmentationTool(): boolean;
|
|
52
|
-
protected renderAnnotationInstance(renderContext:
|
|
53
|
-
enabledElement: Types.IEnabledElement;
|
|
54
|
-
targetId: string;
|
|
55
|
-
annotation: Annotation;
|
|
56
|
-
annotationStyle: Record<string, any>;
|
|
57
|
-
svgDrawingHelper: SVGDrawingHelper;
|
|
58
|
-
}): boolean;
|
|
57
|
+
protected renderAnnotationInstance(renderContext: AnnotationRenderContext): boolean;
|
|
59
58
|
protected createInterpolatedSplineControl(annotation: any): void;
|
|
60
59
|
protected createAnnotation(evt: EventTypes.InteractionEventType): Annotation;
|
|
61
60
|
private _renderStats;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplineROITool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/SplineROITool.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AASjD,OAAO,EAIL,WAAW,EACZ,MAAM,aAAa,CAAC;AAErB,OAAO,
|
|
1
|
+
{"version":3,"file":"SplineROITool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/SplineROITool.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AASjD,OAAO,EAIL,WAAW,EACZ,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,UAAU,EAEV,eAAe,EACf,SAAS,EACT,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAYrB,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAU9E,OAAO,2BAA2B,MAAM,qCAAqC,CAAC;AAe9E,aAAK,eAAe;IAClB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB;AAED,aAAK,iBAAiB;IACpB,eAAe,oBAAoB;IACnC,kBAAkB,uBAAuB;CAC1C;AAED,cAAM,aAAc,SAAQ,2BAA2B;IACrD,MAAM,CAAC,QAAQ,MAAC;IAChB,MAAM,CAAC,WAAW,yBAAmB;IACrC,MAAM,CAAC,OAAO,2BAAqB;IAEnC,iBAAiB,EAAE,GAAG,CAAC;IACvB,iBAAiB,EAAE,GAAG,CAAC;IACvB,8BAA8B,EAAE,GAAG,CAAC;IACpC,QAAQ,EAAE;QACR,UAAU,EAAE,mBAAmB,CAAC;QAChC,mBAAmB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACnC,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,aAAa,CAAC,EAAE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E,uBAAuB,GACrC,OAAO;IAsJV,SAAS,CAAC,+BAA+B,CAAC,UAAU,KAAA;IAkBpD,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,UAAU,CAAC,oBAAoB,GAAG,UAAU;IAkC5E,OAAO,CAAC,YAAY,CAoDlB;IAEF,uBAAuB,QAChB,WAAW,oBAAoB,cACxB,mBAAmB,UAwC/B;IAEF,OAAO,CAAC,0BAA0B;IA0BlC,0BAA0B,QACnB,WAAW,oBAAoB,cACxB,mBAAmB,UA4B/B;IAOF,OAAO,CAAC,gBAAgB;IAOxB,OAAO,CAAC,qBAAqB;IAoC7B,OAAO,CAAC,qBAAqB,CAqE3B;CACH;AAmBD,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UltrasoundDirectionalTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/UltrasoundDirectionalTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UltrasoundDirectionalTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/UltrasoundDirectionalTool.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAWzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAkB1F,OAAO,EACL,UAAU,EACV,UAAU,EAEV,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAUrB,cAAM,yBAA0B,SAAQ,cAAc;IACpD,MAAM,CAAC,QAAQ,MAAC;IAET,iBAAiB,EAAE,GAAG,CAAC;IACvB,iBAAiB,EAAE,GAAG,CAAC;IAC9B,cAAc,EAAE,OAAO,CAAC;IACxB,8BAA8B,EAAE,GAAG,CAAC;IACpC,QAAQ,EAAE;QACR,UAAU,EAAE,GAAG,CAAC;QAChB,mB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ourceRoot":"","sources":["../../../../../src/tools/annotation/planarFreehandROITool/closedContourEditLoop.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"closedContourEditLoop.d.ts","sourceRoot":"","sources":["../../../../../src/tools/annotation/planarFreehandROITool/closedContourEditLoop.ts"],"names":[],"mappings":"AAmeA,iBAAS,6BAA6B,CAAC,YAAY,KAAA,GAAG,IAAI,CAiBzD;AAED,eAAe,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawLoop.d.ts","sourceRoot":"","sources":["../../../../../src/tools/annotation/planarFreehandROITool/drawLoop.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"drawLoop.d.ts","sourceRoot":"","sources":["../../../../../src/tools/annotation/planarFreehandROITool/drawLoop.ts"],"names":[],"mappings":"AAgeA,iBAAS,gBAAgB,CAAC,YAAY,KAAA,GAAG,IAAI,CAiB5C;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editLoopCommon.d.ts","sourceRoot":"","sources":["../../../../../src/tools/annotation/planarFreehandROITool/editLoopCommon.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"editLoopCommon.d.ts","sourceRoot":"","sources":["../../../../../src/tools/annotation/planarFreehandROITool/editLoopCommon.ts"],"names":[],"mappings":"AA8TA,iBAAS,sBAAsB,CAAC,YAAY,KAAA,QAW3C;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openContourEditLoop.d.ts","sourceRoot":"","sources":["../../../../../src/tools/annotation/planarFreehandROITool/openContourEditLoop.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"openContourEditLoop.d.ts","sourceRoot":"","sources":["../../../../../src/tools/annotation/planarFreehandROITool/openContourEditLoop.ts"],"names":[],"mappings":"AAklBA,iBAAS,2BAA2B,CAAC,YAAY,KAAA,QAsBhD;AAED,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
|
-
import { Annotation, ContourAnnotation, EventTypes, PublicToolProps, ToolProps, SVGDrawingHelper } from '../../types';
|
|
2
|
+
import type { Annotation, ContourAnnotation, EventTypes, PublicToolProps, ToolProps, SVGDrawingHelper, AnnotationRenderContext } from '../../types';
|
|
3
3
|
import AnnotationTool from './AnnotationTool';
|
|
4
4
|
declare abstract class ContourBaseTool extends AnnotationTool {
|
|
5
5
|
constructor(toolProps: PublicToolProps, defaultToolProps: ToolProps);
|
|
@@ -8,13 +8,7 @@ declare abstract class ContourBaseTool extends AnnotationTool {
|
|
|
8
8
|
protected addAnnotation(annotation: Annotation, element: HTMLDivElement): string;
|
|
9
9
|
protected cancelAnnotation(annotation: Annotation): void;
|
|
10
10
|
protected getPolylinePoints(annotation: ContourAnnotation): Types.Point3[];
|
|
11
|
-
protected renderAnnotationInstance(renderContext:
|
|
12
|
-
enabledElement: Types.IEnabledElement;
|
|
13
|
-
targetId: string;
|
|
14
|
-
annotation: Annotation;
|
|
15
|
-
annotationStyle: Record<string, any>;
|
|
16
|
-
svgDrawingHelper: SVGDrawingHelper;
|
|
17
|
-
}): boolean;
|
|
11
|
+
protected renderAnnotationInstance(renderContext: AnnotationRenderContext): boolean;
|
|
18
12
|
}
|
|
19
13
|
export { ContourBaseTool as default, ContourBaseTool };
|
|
20
14
|
//# sourceMappingURL=ContourBaseTool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContourBaseTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/base/ContourBaseTool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAKjD,OAAO,
|
|
1
|
+
{"version":3,"file":"ContourBaseTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/base/ContourBaseTool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAKjD,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAGrB,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAM9C,uBAAe,eAAgB,SAAQ,cAAc;gBACvC,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,SAAS;IAU5D,gBAAgB,CACrB,cAAc,EAAE,KAAK,CAAC,eAAe,EACrC,gBAAgB,EAAE,gBAAgB,GACjC,OAAO;IA8DV,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,UAAU,CAAC,oBAAoB,GAAG,UAAU;IA8D5E,SAAS,CAAC,aAAa,CACrB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,cAAc,GACtB,MAAM;IAWT,SAAS,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAUxD,SAAS,CAAC,iBAAiB,CAAC,UAAU,EAAE,iBAAiB,GAAG,KAAK,CAAC,MAAM,EAAE;IAS1E,SAAS,CAAC,wBAAwB,CAChC,aAAa,EAAE,uBAAuB,GACrC,OAAO;CA4BX;AAED,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Annotation, EventTypes, PublicToolProps, ToolProps } from '../../types';
|
|
2
|
-
import { StyleSpecifier } from '../../types/AnnotationStyle';
|
|
1
|
+
import type { Annotation, EventTypes, PublicToolProps, ToolProps, AnnotationRenderContext } from '../../types';
|
|
2
|
+
import type { StyleSpecifier } from '../../types/AnnotationStyle';
|
|
3
3
|
import ContourBaseTool from './ContourBaseTool';
|
|
4
4
|
declare abstract class ContourSegmentationBaseTool extends ContourBaseTool {
|
|
5
5
|
constructor(toolProps: PublicToolProps, defaultToolProps: ToolProps);
|
|
@@ -11,6 +11,7 @@ declare abstract class ContourSegmentationBaseTool extends ContourBaseTool {
|
|
|
11
11
|
annotation: Annotation;
|
|
12
12
|
styleSpecifier: StyleSpecifier;
|
|
13
13
|
}): any;
|
|
14
|
+
protected renderAnnotationInstance(renderContext: AnnotationRenderContext): boolean;
|
|
14
15
|
private _getContourSegmentationStyle;
|
|
15
16
|
private _registerContourSegmentationAnnotation;
|
|
16
17
|
private _unregisterContourSegmentationAnnotation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContourSegmentationBaseTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/base/ContourSegmentationBaseTool.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"ContourSegmentationBaseTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/base/ContourSegmentationBaseTool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,eAAe,EACf,SAAS,EACT,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAUrB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAQhD,uBAAe,2BAA4B,SAAQ,eAAe;gBACpD,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,SAAS;IAiBnE,SAAS,CAAC,yBAAyB,IAAI,OAAO;IAI9C,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,UAAU,CAAC,oBAAoB,GAAG,UAAU;IA0C5E,SAAS,CAAC,aAAa,CACrB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,cAAc,GACtB,MAAM;IAgBT,SAAS,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAoBxD,SAAS,CAAC,kBAAkB,CAAC,OAAO,EAAE;QACpC,UAAU,EAAE,UAAU,CAAC;QACvB,cAAc,EAAE,cAAc,CAAC;KAChC;IAYD,SAAS,CAAC,wBAAwB,CAChC,aAAa,EAAE,uBAAuB,GACrC,OAAO;IAsBV,OAAO,CAAC,4BAA4B;IAyGpC,OAAO,CAAC,sCAAsC;IAiB9C,OAAO,CAAC,wCAAwC;CAejD;AAED,OAAO,EAAE,2BAA2B,IAAI,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RectangleROIStartEndThresholdTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/segmentation/RectangleROIStartEndThresholdTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RectangleROIStartEndThresholdTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/segmentation/RectangleROIStartEndThresholdTool.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAgBjD,OAAO,EACL,eAAe,EACf,SAAS,EACT,UAAU,EACV,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAiB9D,cAAM,iCAAkC,SAAQ,gBAAgB;IAC9D,MAAM,CAAC,QAAQ,MAAC;IAChB,8BAA8B,EAAE,GAAG,CAAC;IACpC,QAAQ,EAAE;QACR,UAAU,EAAE,GAAG,CAAC;QAChB,mBAAmB,EAAE,MAAM,EAAE,CAAC;QAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,GAAG,IAAI,CAAC;IACT,SAAS,EAAE,OAAO,CAAC;IACnB,oBAAoB,EAAE,OAAO,CAAC;gBAG5B,SAAS,GAAE,eAAoB,EAC/B,gBAAgB,GAAE,SAIjB;IAmBH,gBAAgB,QAAS,WAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsHtD;IAGF,wBAAwB,CACtB,UAAU,EAAE,uCAAuC,EACnD,WAAW,EAAE,KAAK,CAAC,YAAY,GAC9B,IAAI;IAsDP,yBAAyB,CAAC,UAAU,KAAA,EAAE,cAAc,KAAA;IA4BpD,gBAAgB,mBACE,MAAM,eAAe,oBACnB,gBAAgB,KACjC,OAAO,CAqHR;IAEF,iBAAiB,CACf,WAAW,EAAE,KAAK,CAAC,YAAY,EAC/B,QAAQ,EAAE,KAAK,CAAC,MAAM,EACtB,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,KAAK,CAAC,MAAM,GAC5B,MAAM,GAAG,SAAS;CAqCtB;AAGD,eAAe,iCAAiC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RectangleROIThresholdTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/segmentation/RectangleROIThresholdTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RectangleROIThresholdTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/segmentation/RectangleROIThresholdTool.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAcjD,OAAO,EACL,eAAe,EACf,SAAS,EACT,UAAU,EACV,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAS9D,cAAM,yBAA0B,SAAQ,gBAAgB;IACtD,MAAM,CAAC,QAAQ,MAAC;IAChB,8BAA8B,EAAE,GAAG,CAAC;IACpC,QAAQ,EAAE;QACR,UAAU,EAAE,GAAG,CAAC;QAChB,mBAAmB,EAAE,MAAM,EAAE,CAAC;QAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,GAAG,IAAI,CAAC;IACT,SAAS,EAAE,OAAO,CAAC;IACnB,oBAAoB,EAAE,OAAO,CAAC;gBAG5B,SAAS,GAAE,eAAoB,EAC/B,gBAAgB,GAAE,SAMjB;IAaH,gBAAgB,QAAS,WAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;MAuFtD;IASF,gBAAgB,mBACE,MAAM,eAAe,oBACnB,gBAAgB,KACjC,OAAO,CA+FR;CACH;AAGD,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Types } from '@cornerstonejs/core';
|
|
2
|
+
import type { Annotation } from './AnnotationTypes';
|
|
3
|
+
import type SVGDrawingHelper from './SVGDrawingHelper';
|
|
4
|
+
declare type AnnotationRenderContext = {
|
|
5
|
+
enabledElement: Types.IEnabledElement;
|
|
6
|
+
targetId: string;
|
|
7
|
+
annotation: Annotation;
|
|
8
|
+
annotationStyle: Record<string, any>;
|
|
9
|
+
svgDrawingHelper: SVGDrawingHelper;
|
|
10
|
+
};
|
|
11
|
+
export default AnnotationRenderContext;
|
|
12
|
+
//# sourceMappingURL=AnnotationRenderContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnnotationRenderContext.d.ts","sourceRoot":"","sources":["../../../src/types/AnnotationRenderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,aAAK,uBAAuB,GAAG;IAC7B,cAAc,EAAE,KAAK,CAAC,eAAe,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -12,6 +12,7 @@ export default interface IToolGroup {
|
|
|
12
12
|
getToolInstance: {
|
|
13
13
|
(toolName: string): any;
|
|
14
14
|
};
|
|
15
|
+
hasTool(toolName: string): boolean;
|
|
15
16
|
addTool: {
|
|
16
17
|
(toolName: string, toolConfiguration?: ToolConfiguration): void;
|
|
17
18
|
};
|
|
@@ -49,7 +50,7 @@ export default interface IToolGroup {
|
|
|
49
50
|
(toolName: string, configuration: ToolConfiguration, overwrite?: boolean): void;
|
|
50
51
|
};
|
|
51
52
|
getToolConfiguration: {
|
|
52
|
-
(toolName: string, configurationPath
|
|
53
|
+
(toolName: string, configurationPath?: string): any;
|
|
53
54
|
};
|
|
54
55
|
getDefaultMousePrimary: {
|
|
55
56
|
(): MouseBindings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IToolGroup.d.ts","sourceRoot":"","sources":["../../../src/types/IToolGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAI7C,MAAM,CAAC,OAAO,WAAW,UAAU;IAEjC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEpC,EAAE,EAAE,MAAM,CAAC;IAEX,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAExC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEjC,cAAc,EAAE,MAAM,MAAM,EAAE,CAAC;IAE/B,gBAAgB,EAAE,MAAM,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAEjD,eAAe,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAE7C,OAAO,EAAE;QACP,CAAC,QAAQ,EA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AiB,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACxD,CAAC;IAEF,aAAa,EAAE;QACb,CAAC,QAAQ,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;KACpE,CAAC;IAEF,cAAc,EAAE;QACd,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B,CAAC;IAEF,cAAc,EAAE;QACd,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B,CAAC;IAEF,eAAe,EAAE;QACf,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B,CAAC;IAEF,cAAc,EAAE;QACd,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,CAAC;KACrC,CAAC;IACF,+BAA+B,EAAE;QAC/B,IAAI,SAAS,GAAG,MAAM,CAAC;KACxB,CAAC;IACF,4BAA4B,EAAE;QAC5B,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACjD,CAAC;IACF,oBAAoB,EAAE;QACpB,CACE,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,iBAAiB,EAChC,SAAS,CAAC,EAAE,OAAO,GAClB,IAAI,CAAC;KACT,CAAC;IACF,oBAAoB,EAAE;QACpB,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;KACrD,CAAC;IACF,sBAAsB,EAAE;QACtB,IAAI,aAAa,CAAC;KACnB,CAAC;IAEF,KAAK,EAAE;QACL,CACE,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,GAC1C,UAAU,CAAC;KACf,CAAC;CACH"}
|
|
@@ -29,6 +29,7 @@ import type IToolClassReference from './IToolClassReference';
|
|
|
29
29
|
import type { ContourSegmentationData } from './ContourTypes';
|
|
30
30
|
import type IAnnotationManager from './IAnnotationManager';
|
|
31
31
|
import type AnnotationGroupSelector from './AnnotationGroupSelector';
|
|
32
|
+
import type AnnotationRenderContext from './AnnotationRenderContext';
|
|
32
33
|
import type { Statistics } from './CalculatorTypes';
|
|
33
34
|
import type { CanvasCoordinates } from '../utilities/math/ellipse/getCanvasEllipseCorners';
|
|
34
35
|
import { LabelmapToolOperationData, LabelmapToolOperationDataStack, LabelmapToolOperationDataVolume } from './LabelmapToolOperationData';
|
|
@@ -43,5 +44,5 @@ import type { SplineCurveSegment } from './SplineCurveSegment';
|
|
|
43
44
|
import type { SplineLineSegment } from './SplineLineSegment';
|
|
44
45
|
import type { SplineProps } from './SplineProps';
|
|
45
46
|
import type { BidirectionalData } from '../utilities/segmentation/createBidirectionalToolData';
|
|
46
|
-
export type { Annotation, Annotations, ContourAnnotationData, ContourAnnotation, ContourSegmentationAnnotationData, ContourSegmentationAnnotation, BidirectionalData, CanvasCoordinates, IAnnotationManager, InterpolationViewportData, ImageInterpolationData, GroupSpecificAnnotations, AnnotationState, AnnotationStyle, ToolSpecificAnnotationTypes, JumpToSliceOptions, AnnotationGroupSelector, PlanarBoundingBox, ToolProps, PublicToolProps, ToolConfiguration, EventTypes, IPoints, ITouchPoints, IDistance, IToolBinding, SetToolBindingsType, ToolOptionsType, InteractionTypes, ToolAction, IToolGroup, IToolClassReference, ISynchronizerEventHandler, ToolHandle, AnnotationHandle, TextBoxHandle, Segmentation, SegmentationState, SegmentationRepresentationData, SegmentationRepresentationConfig, RepresentationConfig, ToolGroupSpecificRepresentationState, ToolGroupSpecificContourRepresentation, ToolGroupSpecificLabelmapRepresentation, ToolGroupSpecificRepresentation, RepresentationPublicInput, LabelmapTypes, SVGCursorDescriptor, SVGPoint, ScrollOptions, CINETypes, BoundsIJK, SVGDrawingHelper, FloodFillResult, FloodFillGetter, FloodFillOptions, ContourSegmentationData, Statistics, LabelmapToolOperationData, LabelmapToolOperationDataStack, LabelmapToolOperationDataVolume, CardinalSplineProps, ClosestControlPoint, ClosestPoint, ClosestSplinePoint, ControlPointInfo, ISpline, SplineCurveSegment, SplineLineSegment, SplineProps, };
|
|
47
|
+
export type { Annotation, Annotations, ContourAnnotationData, ContourAnnotation, ContourSegmentationAnnotationData, ContourSegmentationAnnotation, BidirectionalData, CanvasCoordinates, IAnnotationManager, InterpolationViewportData, ImageInterpolationData, GroupSpecificAnnotations, AnnotationState, AnnotationStyle, ToolSpecificAnnotationTypes, JumpToSliceOptions, AnnotationGroupSelector, AnnotationRenderContext, PlanarBoundingBox, ToolProps, PublicToolProps, ToolConfiguration, EventTypes, IPoints, ITouchPoints, IDistance, IToolBinding, SetToolBindingsType, ToolOptionsType, InteractionTypes, ToolAction, IToolGroup, IToolClassReference, ISynchronizerEventHandler, ToolHandle, AnnotationHandle, TextBoxHandle, Segmentation, SegmentationState, SegmentationRepresentationData, SegmentationRepresentationConfig, RepresentationConfig, ToolGroupSpecificRepresentationState, ToolGroupSpecificContourRepresentation, ToolGroupSpecificLabelmapRepresentation, ToolGroupSpecificRepresentation, RepresentationPublicInput, LabelmapTypes, SVGCursorDescriptor, SVGPoint, ScrollOptions, CINETypes, BoundsIJK, SVGDrawingHelper, FloodFillResult, FloodFillGetter, FloodFillOptions, ContourSegmentationData, Statistics, LabelmapToolOperationData, LabelmapToolOperationDataStack, LabelmapToolOperationDataVolume, CardinalSplineProps, ClosestControlPoint, ClosestPoint, ClosestSplinePoint, ControlPointInfo, ISpline, SplineCurveSegment, SplineLineSegment, SplineProps, };
|
|
47
48
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,eAAe,EACf,wBAAwB,EACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AA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AAe,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,YAAY,EAEV,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,iCAAiC,EACjC,6BAA6B,EAC7B,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,kBAAkB,EAClB,uBAAuB,EAEvB,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,iBAAiB,EAEjB,UAAU,EACV,OAAO,EACP,YAAY,EACZ,SAAS,EAET,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,UAAU,EAEV,UAAU,EACV,mBAAmB,EACnB,yBAAyB,EACzB,UAAU,EACV,gBAAgB,EAChB,aAAa,EAEb,YAAY,EACZ,iBAAiB,EACjB,8BAA8B,EAC9B,gCAAgC,EAChC,oBAAoB,EACpB,oCAAoC,EACpC,sCAAsC,EACtC,uCAAuC,EACvC,+BAA+B,EAC/B,yBAAyB,EACzB,aAAa,EAEb,mBAAmB,EACnB,QAAQ,EAER,aAAa,EAEb,SAAS,EACT,SAAS,EACT,gBAAgB,EAEhB,eAAe,EACf,eAAe,EACf,gBAAgB,EAEhB,uBAAuB,EAEvB,UAAU,EACV,yBAAyB,EACzB,8BAA8B,EAC9B,+BAA+B,EAE/B,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,GACZ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,eAAe,EACf,wBAAwB,EACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,qBAAqB,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AAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,YAAY,EAEV,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,iCAAiC,EACjC,6BAA6B,EAC7B,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,kBAAkB,EAClB,uBAAuB,EAEvB,uBAAuB,EAEvB,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,iBAAiB,EAEjB,UAAU,EACV,OAAO,EACP,YAAY,EACZ,SAAS,EAET,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,UAAU,EAEV,UAAU,EACV,mBAAmB,EACnB,yBAAyB,EACzB,UAAU,EACV,gBAAgB,EAChB,aAAa,EAEb,YAAY,EACZ,iBAAiB,EACjB,8BAA8B,EAC9B,gCAAgC,EAChC,oBAAoB,EACpB,oCAAoC,EACpC,sCAAsC,EACtC,uCAAuC,EACvC,+BAA+B,EAC/B,yBAAyB,EACzB,aAAa,EAEb,mBAAmB,EACnB,QAAQ,EAER,aAAa,EAEb,SAAS,EACT,SAAS,EACT,gBAAgB,EAEhB,eAAe,EACf,eAAe,EACf,gBAAgB,EAEhB,uBAAuB,EAEvB,UAAU,EACV,yBAAyB,EACzB,8BAA8B,EAC9B,+BAA+B,EAE/B,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,GACZ,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ContourSegmentationAnnotation } from '../../types/ContourSegmentationAnnotation';
|
|
2
|
+
export default function areSameSegment(firstAnnotation: ContourSegmentationAnnotation, secondAnnotation: ContourSegmentationAnnotation): boolean;
|
|
3
|
+
//# sourceMappingURL=areSameSegment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"areSameSegment.d.ts","sourceRoot":"","sources":["../../../../src/utilities/contourSegmentation/areSameSegment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAU1F,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,eAAe,EAAE,6BAA6B,EAC9C,gBAAgB,EAAE,6BAA6B,WAWhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/contourSegmentation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Annotation } from '../../types';
|
|
2
|
+
import { ContourSegmentationAnnotation } from '../../types/ContourSegmentationAnnotation';
|
|
3
|
+
export default function isContourSegmentationAnnotation(annotation: Annotation): annotation is ContourSegmentationAnnotation;
|
|
4
|
+
//# sourceMappingURL=isContourSegmentationAnnotation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isContourSegmentationAnnotation.d.ts","sourceRoot":"","sources":["../../../../src/utilities/contourSegmentation/isContourSegmentationAnnotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAE1F,MAAM,CAAC,OAAO,UAAU,+BAA+B,CACrD,UAAU,EAAE,UAAU,GACrB,UAAU,IAAI,6BAA6B,CAE7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"areCoplanarContours.d.ts","sourceRoot":"","sources":["../../../../src/utilities/contours/areCoplanarContours.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAalE,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,eAAe,EAAE,iBAAiB,EAClC,gBAAgB,EAAE,iBAAiB,WAsBpC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import areCoplanarContours from './areCoplanarContours';
|
|
1
2
|
import contourFinder from './contourFinder';
|
|
2
3
|
import mergePoints from './mergePoints';
|
|
3
4
|
import detectContourHoles from './detectContourHoles';
|
|
@@ -6,5 +7,5 @@ import AnnotationToPointData from './AnnotationToPointData';
|
|
|
6
7
|
import acceptAutogeneratedInterpolations from './interpolation/acceptAutogeneratedInterpolations';
|
|
7
8
|
import * as interpolation from './interpolation';
|
|
8
9
|
import findHandlePolylineIndex from './findHandlePolylineIndex';
|
|
9
|
-
export { contourFinder, mergePoints, detectContourHoles, generateContourSetsFromLabelmap, AnnotationToPointData, interpolation, acceptAutogeneratedInterpolations, findHandlePolylineIndex, };
|
|
10
|
+
export { areCoplanarContours, contourFinder, mergePoints, detectContourHoles, generateContourSetsFromLabelmap, AnnotationToPointData, interpolation, acceptAutogeneratedInterpolations, findHandlePolylineIndex, };
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/contours/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,iCAAiC,MAAM,mDAAmD,CAAC;AAClG,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EACL,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,+BAA+B,EAC/B,qBAAqB,EACrB,aAAa,EACb,iCAAiC,EACjC,uBAAuB,GACxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/contours/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,iCAAiC,MAAM,mDAAmD,CAAC;AAClG,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,+BAA+B,EAC/B,qBAAqB,EACrB,aAAa,EACb,iCAAiC,EACjC,uBAAuB,GACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reverseIfAntiClockwise.d.ts","sourceRoot":"","sources":["../../../../src/utilities/contours/reverseIfAntiClockwise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"reverseIfAntiClockwise.d.ts","sourceRoot":"","sources":["../../../../src/utilities/contours/reverseIfAntiClockwise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAY5C,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,EACtB,GAAG,mBAAmB,EAAE,OAAO,EAAE,EAAE,kBAcpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/aabb/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/aabb/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intersectAABB.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/aabb/intersectAABB.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAQ5C,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,GACjB,OAAO,CAOT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"distanceToPointSquared.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/point/distanceToPointSquared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,aAAK,KAAK,GAAG,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;AASzC,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"distanceToPointSquared.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/point/distanceToPointSquared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,aAAK,KAAK,GAAG,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;AASzC,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,GAAG,MAAM,CAc3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"areLineSegmentsIntersecting.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/areLineSegmentsIntersecting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAsBjD,MAAM,CAAC,OAAO,UAAU,2BAA2B,CACjD,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,EAAE,EAAE,KAAK,CAAC,MAAM,GACf,OAAO,CAsDT"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Types } from '@cornerstonejs/core';
|
|
2
|
+
declare function mergePolylines(targetPolyline: Types.Point2[], sourcePolyline: Types.Point2[]): Types.Point2[];
|
|
3
|
+
declare function subtractPolylines(targetPolyline: Types.Point2[], sourcePolyline: Types.Point2[]): Types.Point2[][];
|
|
4
|
+
export { mergePolylines, subtractPolylines };
|
|
5
|
+
//# sourceMappingURL=combinePolyline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combinePolyline.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/combinePolyline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AA4P5C,iBAAS,cAAc,CACrB,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,EAC9B,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,kBAyC/B;AAKD,iBAAS,iBAAiB,CACxB,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,EAC9B,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,GAC7B,KAAK,CAAC,MAAM,EAAE,EAAE,CA4ClB;AAED,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containsPoint.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/containsPoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAcjD,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,EACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EACnB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CA4CT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAABB.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getAABB.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CAiBrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getArea.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getArea.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AASjD,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,MAAM,CAa9D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Types } from '@cornerstonejs/core';
|
|
2
|
+
export default function getClosestLineSegmentIntersection(points: Types.Point2[], p1: Types.Point2, q1: Types.Point2, closed?: boolean): {
|
|
3
|
+
segment: Types.Point2;
|
|
4
|
+
distance: number;
|
|
5
|
+
} | undefined;
|
|
6
|
+
//# sourceMappingURL=getClosestLineSegmentIntersection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getClosestLineSegmentIntersection.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getClosestLineSegmentIntersection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAYjD,MAAM,CAAC,OAAO,UAAU,iCAAiC,CACvD,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,EACtB,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,MAAM,UAAO,GACZ;IAAE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAqDzD"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Types } from '@cornerstonejs/core';
|
|
2
|
+
export default function getFirstLineSegmentIntersectionIndexes(points: Types.Point2[], p1: Types.Point2, q1: Types.Point2, closed?: boolean): Types.Point2 | undefined;
|
|
3
|
+
//# sourceMappingURL=getFirstLineSegmentIntersectionIndexes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFirstLineSegmentIntersectionIndexes.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getFirstLineSegmentIntersectionIndexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAcjD,MAAM,CAAC,OAAO,UAAU,sCAAsC,CAC5D,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,EACtB,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,MAAM,UAAO,GACZ,KAAK,CAAC,MAAM,GAAG,SAAS,CAsB1B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Types } from '@cornerstonejs/core';
|
|
2
|
+
export default function getLineSegmentIntersectionsCoordinates(points: Types.Point2[], p1: Types.Point2, q1: Types.Point2, closed?: boolean): Types.Point2[];
|
|
3
|
+
//# sourceMappingURL=getLineSegmentIntersectionsCoordinates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLineSegmentIntersectionsCoordinates.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getLineSegmentIntersectionsCoordinates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAOjD,MAAM,CAAC,OAAO,UAAU,sCAAsC,CAC5D,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,EACtB,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,MAAM,UAAO,GACZ,KAAK,CAAC,MAAM,EAAE,CAiBhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLineSegmentIntersectionsIndexes.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getLineSegmentIntersectionsIndexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAYjD,MAAM,CAAC,OAAO,UAAU,kCAAkC,CACxD,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,EACxB,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,MAAM,UAAO,GACZ,KAAK,CAAC,MAAM,EAAE,CAiBhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLineSegmentsIntersection.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getLineSegmentsIntersection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAqB5C,MAAM,CAAC,OAAO,UAAU,2BAA2B,CACjD,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,EAAE,EAAE,KAAK,CAAC,MAAM,EAChB,EAAE,EAAE,KAAK,CAAC,MAAM,GACf,KAAK,CAAC,MAAM,CAoBd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNormal2.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getNormal2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAU5C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAMzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNormal3.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getNormal3.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AA+C5C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAIzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSignedArea.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getSignedArea.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAcjD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,MAAM,CAgCtE"}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import isClosed from './isClosed';
|
|
2
|
+
import containsPoint from './containsPoint';
|
|
3
|
+
import getAABB from './getAABB';
|
|
4
|
+
import getArea from './getArea';
|
|
5
|
+
import getSignedArea from './getSignedArea';
|
|
6
|
+
import getNormal3 from './getNormal3';
|
|
7
|
+
import getNormal2 from './getNormal2';
|
|
8
|
+
import { mergePolylines, subtractPolylines } from './combinePolyline';
|
|
9
|
+
import intersectPolyline from './intersectPolyline';
|
|
10
|
+
import getFirstLineSegmentIntersectionIndexes from './getFirstLineSegmentIntersectionIndexes';
|
|
11
|
+
import getLineSegmentIntersectionsIndexes from './getLineSegmentIntersectionsIndexes';
|
|
12
|
+
import getLineSegmentIntersectionsCoordinates from './getLineSegmentIntersectionsCoordinates';
|
|
13
|
+
import getClosestLineSegmentIntersection from './getClosestLineSegmentIntersection';
|
|
2
14
|
import getSubPixelSpacingAndXYDirections from './getSubPixelSpacingAndXYDirections';
|
|
3
15
|
import pointsAreWithinCloseContourProximity from './pointsAreWithinCloseContourProximity';
|
|
4
16
|
import addCanvasPointsToArray from './addCanvasPointsToArray';
|
|
5
17
|
import pointCanProjectOnLine from './pointCanProjectOnLine';
|
|
6
|
-
|
|
7
|
-
export { getFirstIntersectionWithPolyline, getClosestIntersectionWithPolyline, getSubPixelSpacingAndXYDirections, pointsAreWithinCloseContourProximity, addCanvasPointsToArray, pointCanProjectOnLine, calculateAreaOfPoints, };
|
|
18
|
+
export { isClosed, containsPoint, getAABB, getArea, getSignedArea, getNormal3, getNormal2, intersectPolyline, getFirstLineSegmentIntersectionIndexes, getLineSegmentIntersectionsIndexes, getLineSegmentIntersectionsCoordinates, getClosestLineSegmentIntersection, getSubPixelSpacingAndXYDirections, pointsAreWithinCloseContourProximity, addCanvasPointsToArray, pointCanProjectOnLine, mergePolylines, subtractPolylines, };
|
|
8
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,sCAAsC,MAAM,0CAA0C,CAAC;AAC9F,OAAO,kCAAkC,MAAM,sCAAsC,CAAC;AACtF,OAAO,sCAAsC,MAAM,0CAA0C,CAAC;AAC9F,OAAO,iCAAiC,MAAM,qCAAqC,CAAC;AACpF,OAAO,iCAAiC,MAAM,qCAAqC,CAAC;AACpF,OAAO,oCAAoC,MAAM,wCAAwC,CAAC;AAC1F,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EACL,QAAQ,EACR,aAAa,EACb,OAAO,EACP,OAAO,EACP,aAAa,EACb,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,sCAAsC,EACtC,kCAAkC,EAClC,sCAAsC,EACtC,iCAAiC,EACjC,iCAAiC,EACjC,oCAAoC,EACpC,sBAAsB,EACtB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,GAClB,CAAC"}
|