@cornerstonejs/tools 1.50.3 → 1.51.1
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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getClosestLineSegmentIntersection.js","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getClosestLineSegmentIntersection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AAWxE,MAAM,CAAC,OAAO,UAAU,iCAAiC,CACvD,MAAsB,EACtB,EAAgB,EAChB,EAAgB,EAChB,MAAM,GAAG,IAAI;IAEb,IAAI,cAAc,CAAC;IACnB,IAAI,OAAO,CAAC;IAEZ,IAAI,MAAM,EAAE;QACV,OAAO,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QAC5B,cAAc,GAAG,CAAC,CAAC;KACpB;SAAM;QACL,OAAO,GAAG,CAAC,CAAC;QACZ,cAAc,GAAG,CAAC,CAAC;KACpB;IAED,MAAM,aAAa,GAAG,EAAE,CAAC;IAEzB,KAAK,IAAI,OAAO,GAAG,cAAc,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3B,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;QAE3B,IAAI,2BAA2B,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;YAC/C,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;SACxC;QAED,OAAO,GAAG,OAAO,CAAC;KACnB;IAED,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE;QAC9B,OAAO;KACR;IAGD,MAAM,SAAS,GAAG,EAAE,CAAC;IAErB,aAAa,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,EAAE;QACrC,MAAM,kBAAkB,GAAG;YACzB,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YACvB,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;SACxB,CAAC;QAEF,MAAM,QAAQ,GAAG;YACf,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;YACzD,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;SAC1D,CAAC;QAEF,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAO,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,CAAC;IAC3C,MAAM,kBAAkB,GAAG,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAE1D,OAAO;QACL,OAAO,EAAE,aAAa,CAAC,kBAAkB,CAAC;QAC1C,QAAQ,EAAE,WAAW;KACtB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import areLineSegmentsIntersecting from './areLineSegmentsIntersecting';
|
|
2
|
+
export default function getFirstLineSegmentIntersectionIndexes(points, p1, q1, closed = true) {
|
|
3
|
+
let initialI;
|
|
4
|
+
let j;
|
|
5
|
+
if (closed) {
|
|
6
|
+
j = points.length - 1;
|
|
7
|
+
initialI = 0;
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
j = 0;
|
|
11
|
+
initialI = 1;
|
|
12
|
+
}
|
|
13
|
+
for (let i = initialI; i < points.length; i++) {
|
|
14
|
+
const p2 = points[j];
|
|
15
|
+
const q2 = points[i];
|
|
16
|
+
if (areLineSegmentsIntersecting(p1, q1, p2, q2)) {
|
|
17
|
+
return [j, i];
|
|
18
|
+
}
|
|
19
|
+
j = i;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=getFirstLineSegmentIntersectionIndexes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFirstLineSegmentIntersectionIndexes.js","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getFirstLineSegmentIntersectionIndexes.ts"],"names":[],"mappings":"AACA,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AAaxE,MAAM,CAAC,OAAO,UAAU,sCAAsC,CAC5D,MAAsB,EACtB,EAAgB,EAChB,EAAgB,EAChB,MAAM,GAAG,IAAI;IAEb,IAAI,QAAQ,CAAC;IACb,IAAI,CAAC,CAAC;IAEN,IAAI,MAAM,EAAE;QACV,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QACtB,QAAQ,GAAG,CAAC,CAAC;KACd;SAAM;QACL,CAAC,GAAG,CAAC,CAAC;QACN,QAAQ,GAAG,CAAC,CAAC;KACd;IAED,KAAK,IAAI,CAAC,GAAG,QAAQ,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAC7C,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACrB,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QAErB,IAAI,2BAA2B,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;YAC/C,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;SACf;QAED,CAAC,GAAG,CAAC,CAAC;KACP;AACH,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import getLineSegmentIntersectionsIndexes from './getLineSegmentIntersectionsIndexes';
|
|
2
|
+
import getLineSegmentsIntersection from './getLineSegmentsIntersection';
|
|
3
|
+
export default function getLineSegmentIntersectionsCoordinates(points, p1, q1, closed = true) {
|
|
4
|
+
const result = [];
|
|
5
|
+
const polylineIndexes = getLineSegmentIntersectionsIndexes(points, p1, q1, closed);
|
|
6
|
+
for (let i = 0; i < polylineIndexes.length; i++) {
|
|
7
|
+
const p2 = points[polylineIndexes[i][0]];
|
|
8
|
+
const q2 = points[polylineIndexes[i][1]];
|
|
9
|
+
const intersection = getLineSegmentsIntersection(p1, q1, p2, q2);
|
|
10
|
+
result.push(intersection);
|
|
11
|
+
}
|
|
12
|
+
return result;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=getLineSegmentIntersectionsCoordinates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLineSegmentIntersectionsCoordinates.js","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getLineSegmentIntersectionsCoordinates.ts"],"names":[],"mappings":"AACA,OAAO,kCAAkC,MAAM,sCAAsC,CAAC;AACtF,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AAKxE,MAAM,CAAC,OAAO,UAAU,sCAAsC,CAC5D,MAAsB,EACtB,EAAgB,EAChB,EAAgB,EAChB,MAAM,GAAG,IAAI;IAEb,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,MAAM,eAAe,GAAG,kCAAkC,CACxD,MAAM,EACN,EAAE,EACF,EAAE,EACF,MAAM,CACP,CAAC;IAEF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,eAAe,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAC/C,MAAM,EAAE,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzC,MAAM,EAAE,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzC,MAAM,YAAY,GAAG,2BAA2B,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QACjE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KAC3B;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import areLineSegmentsIntersecting from './areLineSegmentsIntersecting';
|
|
2
|
+
export default function getLineSegmentIntersectionsIndexes(polyline, p1, q1, closed = true) {
|
|
3
|
+
const intersections = [];
|
|
4
|
+
const numPoints = polyline.length;
|
|
5
|
+
const maxI = numPoints - (closed ? 1 : 2);
|
|
6
|
+
for (let i = 0; i <= maxI; i++) {
|
|
7
|
+
const p2 = polyline[i];
|
|
8
|
+
const j = i === numPoints - 1 ? 0 : i + 1;
|
|
9
|
+
const q2 = polyline[j];
|
|
10
|
+
if (areLineSegmentsIntersecting(p1, q1, p2, q2)) {
|
|
11
|
+
intersections.push([i, j]);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return intersections;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=getLineSegmentIntersectionsIndexes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLineSegmentIntersectionsIndexes.js","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getLineSegmentIntersectionsIndexes.ts"],"names":[],"mappings":"AACA,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AAWxE,MAAM,CAAC,OAAO,UAAU,kCAAkC,CACxD,QAAwB,EACxB,EAAgB,EAChB,EAAgB,EAChB,MAAM,GAAG,IAAI;IAEb,MAAM,aAAa,GAAmB,EAAE,CAAC;IACzC,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC;IAClC,MAAM,IAAI,GAAG,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE1C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,EAAE,EAAE;QAC9B,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAEvB,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC1C,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAEvB,IAAI,2BAA2B,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;YAC/C,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;SAC5B;KACF;IAED,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default function getLineSegmentsIntersection(p1, q1, p2, q2) {
|
|
2
|
+
const diffQ1P1 = [q1[0] - p1[0], q1[1] - p1[1]];
|
|
3
|
+
const diffQ2P2 = [q2[0] - p2[0], q2[1] - p2[1]];
|
|
4
|
+
const denominator = diffQ2P2[1] * diffQ1P1[0] - diffQ2P2[0] * diffQ1P1[1];
|
|
5
|
+
if (denominator == 0) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
let a = p1[1] - p2[1];
|
|
9
|
+
let b = p1[0] - p2[0];
|
|
10
|
+
const numerator1 = diffQ2P2[0] * a - diffQ2P2[1] * b;
|
|
11
|
+
const numerator2 = diffQ1P1[0] * a - diffQ1P1[1] * b;
|
|
12
|
+
a = numerator1 / denominator;
|
|
13
|
+
b = numerator2 / denominator;
|
|
14
|
+
const resultX = p1[0] + a * diffQ1P1[0];
|
|
15
|
+
const resultY = p1[1] + a * diffQ1P1[1];
|
|
16
|
+
return [resultX, resultY];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=getLineSegmentsIntersection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLineSegmentsIntersection.js","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getLineSegmentsIntersection.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,UAAU,2BAA2B,CACjD,EAAgB,EAChB,EAAgB,EAChB,EAAgB,EAChB,EAAgB;IAEhB,MAAM,QAAQ,GAAG,CAAC,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,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNormal2.js","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getNormal2.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAS5C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,QAAwB;IACzD,MAAM,IAAI,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;IAIrC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAiB,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { vec3 } from 'gl-matrix';
|
|
2
|
+
function _getAreaVector(polyline) {
|
|
3
|
+
const vecArea = vec3.create();
|
|
4
|
+
const refPoint = polyline[0];
|
|
5
|
+
for (let i = 0, len = polyline.length; i < len; i++) {
|
|
6
|
+
const p1 = polyline[i];
|
|
7
|
+
const p2Index = i === len - 1 ? 0 : i + 1;
|
|
8
|
+
const p2 = polyline[p2Index];
|
|
9
|
+
const aX = p1[0] - refPoint[0];
|
|
10
|
+
const aY = p1[1] - refPoint[1];
|
|
11
|
+
const aZ = p1[2] - refPoint[2];
|
|
12
|
+
const bX = p2[0] - refPoint[0];
|
|
13
|
+
const bY = p2[1] - refPoint[1];
|
|
14
|
+
const bZ = p2[2] - refPoint[2];
|
|
15
|
+
vecArea[0] += aY * bZ - aZ * bY;
|
|
16
|
+
vecArea[1] += aZ * bX - aX * bZ;
|
|
17
|
+
vecArea[2] += aX * bY - aY * bX;
|
|
18
|
+
}
|
|
19
|
+
vec3.scale(vecArea, vecArea, 0.5);
|
|
20
|
+
return vecArea;
|
|
21
|
+
}
|
|
22
|
+
export default function getNormal3(polyline) {
|
|
23
|
+
const vecArea = _getAreaVector(polyline);
|
|
24
|
+
return vec3.normalize(vecArea, vecArea);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=getNormal3.js.map
|
|
@@ -0,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GAAG,EAAE,GAAG,EAAE,CAAC;QAChC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;QAChC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;KACjC;IAGD,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;IAGlC,OAAqB,OAAO,CAAC;AAC/B,CAAC;AAOD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,QAAwB;IACzD,MAAM,OAAO,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;IAEzC,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAiB,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default function getSignedArea(polyline) {
|
|
2
|
+
const refPoint = polyline[0];
|
|
3
|
+
let area = 0;
|
|
4
|
+
for (let i = 0, len = polyline.length; i < len; i++) {
|
|
5
|
+
const p1 = polyline[i];
|
|
6
|
+
const p2Index = i === len - 1 ? 0 : i + 1;
|
|
7
|
+
const p2 = polyline[p2Index];
|
|
8
|
+
const aX = p1[0] - refPoint[0];
|
|
9
|
+
const aY = p1[1] - refPoint[1];
|
|
10
|
+
const bX = p2[0] - refPoint[0];
|
|
11
|
+
const bY = p2[1] - refPoint[1];
|
|
12
|
+
area += aX * bY - aY * bX;
|
|
13
|
+
}
|
|
14
|
+
area *= 0.5;
|
|
15
|
+
return area;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=getSignedArea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSignedArea.js","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/getSignedArea.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,QAAwB;IAE5D,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC7B,IAAI,IAAI,GAAG,CAAC,CAAC;IAUb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;QACnD,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAEvB,MAAM,OAAO,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC1C,MAAM,EAAE,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC7B,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAI/B,IAAI,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;KAC3B;IAGD,IAAI,IAAI,GAAG,CAAC;IAEZ,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -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.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import getFirstLineSegmentIntersectionIndexes from './getFirstLineSegmentIntersectionIndexes';
|
|
2
|
+
export default function intersectPolyline(sourcePolyline, targetPolyline) {
|
|
3
|
+
for (let i = 0, sourceLen = sourcePolyline.length; i < sourceLen; i++) {
|
|
4
|
+
const sourceP1 = sourcePolyline[i];
|
|
5
|
+
const sourceP2Index = i === sourceLen - 1 ? 0 : i + 1;
|
|
6
|
+
const sourceP2 = sourcePolyline[sourceP2Index];
|
|
7
|
+
const intersectionPointIndexes = getFirstLineSegmentIntersectionIndexes(targetPolyline, sourceP1, sourceP2);
|
|
8
|
+
if (intersectionPointIndexes?.length === 2) {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=intersectPolyline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intersectPolyline.js","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/intersectPolyline.ts"],"names":[],"mappings":"AACA,OAAO,sCAAsC,MAAM,0CAA0C,CAAC;AAQ9F,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,cAA8B,EAC9B,cAA8B;IAK9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,SAAS,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE;QACrE,MAAM,QAAQ,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;QACnC,MAAM,aAAa,GAAG,CAAC,KAAK,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACtD,MAAM,QAAQ,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;QAE/C,MAAM,wBAAwB,GAAG,sCAAsC,CACrE,cAAc,EACd,QAAQ,EACR,QAAQ,CACT,CAAC;QAEF,IAAI,wBAAwB,EAAE,MAAM,KAAK,CAAC,EAAE;YAC1C,OAAO,IAAI,CAAC;SACb;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { glMatrix } from 'gl-matrix';
|
|
2
|
+
import * as math from '..';
|
|
3
|
+
export default function isClosed(polyline) {
|
|
4
|
+
if (polyline.length < 3) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
const numPolylinePoints = polyline.length;
|
|
8
|
+
const firstPoint = polyline[0];
|
|
9
|
+
const lastPoint = polyline[numPolylinePoints - 1];
|
|
10
|
+
const distFirstToLastPoints = math.point.distanceToPointSquared(firstPoint, lastPoint);
|
|
11
|
+
return glMatrix.equals(0, distFirstToLastPoints);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=isClosed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isClosed.js","sourceRoot":"","sources":["../../../../../src/utilities/math/polyline/isClosed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,KAAK,IAAI,MAAM,IAAI,CAAC;AAQ3B,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,QAAwB;IACvD,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;QACvB,OAAO,KAAK,CAAC;KACd;IAED,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC;IAE1C,MAAM,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC/B,MAAM,SAAS,GAAG,QAAQ,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC;IAClD,MAAM,qBAAqB,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAC7D,UAAU,EACV,SAAS,CACV,CAAC;IAEF,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotationCompletedListener.d.ts","sourceRoot":"","sources":["../../../../src/eventListeners/annotations/annotationCompletedListener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAItE,MAAM,CAAC,OAAO,UAAU,2BAA2B,CACjD,GAAG,EAAE,4BAA4B,QAOlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contourSegmentationCompleted.d.ts","sourceRoot":"","sources":["../../../../../src/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAQzE,MAAM,CAAC,OAAO,UAAU,oCAAoC,CAC1D,GAAG,EAAE,4BAA4B,QA6ClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/eventListeners/annotations/contourSegmentation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import annotationCompletedListener from './annotationCompletedListener';
|
|
1
2
|
import annotationSelectionListener from './annotationSelectionListener';
|
|
2
3
|
import annotationModifiedListener from './annotationModifiedListener';
|
|
3
|
-
export { annotationSelectionListener, annotationModifiedListener };
|
|
4
|
+
export { annotationCompletedListener, annotationSelectionListener, annotationModifiedListener, };
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/eventListeners/annotations/index.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AACxE,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AAEtE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/eventListeners/annotations/index.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AACxE,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AACxE,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,GAC3B,CAAC"}
|
|
@@ -3,6 +3,6 @@ import touchEventListeners from './touch';
|
|
|
3
3
|
import wheelEventListener from './wheel';
|
|
4
4
|
import keyEventListener from './keyboard';
|
|
5
5
|
import { segmentationDataModifiedEventListener, segmentationRepresentationModifiedEventListener, segmentationRepresentationRemovedEventListener, segmentationModifiedListener, imageChangeEventListener } from './segmentation';
|
|
6
|
-
import { annotationSelectionListener, annotationModifiedListener } from './annotations';
|
|
7
|
-
export { mouseEventListeners, touchEventListeners, wheelEventListener, keyEventListener, segmentationRepresentationModifiedEventListener, segmentationModifiedListener, segmentationRepresentationRemovedEventListener, segmentationDataModifiedEventListener, imageChangeEventListener, annotationSelectionListener, annotationModifiedListener, };
|
|
6
|
+
import { annotationCompletedListener, annotationSelectionListener, annotationModifiedListener } from './annotations';
|
|
7
|
+
export { mouseEventListeners, touchEventListeners, wheelEventListener, keyEventListener, segmentationRepresentationModifiedEventListener, segmentationModifiedListener, segmentationRepresentationRemovedEventListener, segmentationDataModifiedEventListener, imageChangeEventListener, annotationCompletedListener, annotationSelectionListener, annotationModifiedListener, };
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eventListeners/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,SAAS,CAAC;AAC1C,OAAO,mBAAmB,MAAM,SAAS,CAAC;AAC1C,OAAO,kBAAkB,MAAM,SAAS,CAAC;AACzC,OAAO,gBAAgB,MAAM,YAAY,CAAC;AAC1C,OAAO,EACL,qCAAqC,EACrC,+CAA+C,EAC/C,8CAA8C,EAC9C,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC3B,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,+CAA+C,EAC/C,4BAA4B,EAC5B,8CAA8C,EAC9C,qCAAqC,EACrC,wBAAwB,EACxB,2BAA2B,EAC3B,0BAA0B,GAC3B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eventListeners/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,SAAS,CAAC;AAC1C,OAAO,mBAAmB,MAAM,SAAS,CAAC;AAC1C,OAAO,kBAAkB,MAAM,SAAS,CAAC;AACzC,OAAO,gBAAgB,MAAM,YAAY,CAAC;AAC1C,OAAO,EACL,qCAAqC,EACrC,+CAA+C,EAC/C,8CAA8C,EAC9C,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,EAC3B,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,+CAA+C,EAC/C,4BAA4B,EAC5B,8CAA8C,EAC9C,qCAAqC,EACrC,wBAAwB,EACxB,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,GAC3B,CAAC"}
|
package/dist/types/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SegmentationDataModifiedEventType } from '../../../types/EventTypes';
|
|
2
|
+
declare const onLabelmapSegmentationDataModified: (evt: SegmentationDataModifiedEventType) => void;
|
|
3
|
+
export default onLabelmapSegmentationDataModified;
|
|
4
|
+
//# sourceMappingURL=onLabelmapSegmentationDataModified.d.ts.map
|
package/dist/types/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onLabelmapSegmentationDataModified.d.ts","sourceRoot":"","sources":["../../../../../src/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iCAAiC,EAAE,MAAM,2BAA2B,CAAC;AAW9E,QAAA,MAAM,kCAAkC,QACjC,iCAAiC,KACrC,IA6FF,CAAC;AAEF,eAAe,kCAAkC,CAAC"}
|
package/dist/types/eventListeners/segmentation/segmentationDataModifiedEventListener.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmentationDataModifiedEventListener.d.ts","sourceRoot":"","sources":["../../../../src/eventListeners/segmentation/segmentationDataModifiedEventListener.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"segmentationDataModifiedEventListener.d.ts","sourceRoot":"","sources":["../../../../src/eventListeners/segmentation/segmentationDataModifiedEventListener.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAC;AAM3E,QAAA,MAAM,0BAA0B,QACzB,iCAAiC,KACrC,IAcF,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
package/dist/types/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/init.ts"],"names":[],"mappings":"AA2BA,wBAAgB,IAAI,CAAC,oBAAoB,KAAK,GAAG,IAAI,CASpD;AAOD,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AA2ID,eAAe,IAAI,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Annotation } from '../../../types/AnnotationTypes';
|
|
2
2
|
declare function triggerAnnotationAddedForElement(annotation: Annotation, element: HTMLDivElement): void;
|
|
3
3
|
declare function triggerAnnotationAddedForFOR(annotation: Annotation): void;
|
|
4
|
-
|
|
4
|
+
declare function triggerAnnotationModified(annotation: Annotation, element: HTMLDivElement): void;
|
|
5
|
+
declare function triggerAnnotationCompleted(annotation: Annotation): void;
|
|
6
|
+
export { triggerAnnotationAddedForElement, triggerAnnotationAddedForFOR, triggerAnnotationModified, triggerAnnotationCompleted, };
|
|
5
7
|
//# sourceMappingURL=state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../src/stateManagement/annotation/helpers/state.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../src/stateManagement/annotation/helpers/state.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAa5D,iBAAS,gCAAgC,CACvC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,cAAc,QAcxB;AAOD,iBAAS,4BAA4B,CAAC,UAAU,EAAE,UAAU,QAqC3D;AAKD,iBAAS,yBAAyB,CAChC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,cAAc,GACtB,IAAI,CAWN;AAKD,iBAAS,0BAA0B,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAOhE;AAED,OAAO,EACL,gCAAgC,EAChC,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,GAC3B,CAAC"}
|
|
@@ -12,6 +12,7 @@ export default class ToolGroup implements IToolGroup {
|
|
|
12
12
|
getViewportIds(): string[];
|
|
13
13
|
getViewportsInfo(): Array<Types.IViewportId>;
|
|
14
14
|
getToolInstance(toolInstanceName: string): any;
|
|
15
|
+
hasTool(toolName: string): boolean;
|
|
15
16
|
addTool(toolName: string, configuration?: ToolConfiguration): void;
|
|
16
17
|
addToolInstance(toolName: string, parentClassName: string, configuration?: {}): void;
|
|
17
18
|
addViewport(viewportId: string, renderingEngineId?: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolGroup.d.ts","sourceRoot":"","sources":["../../../../src/store/ToolGroupManager/ToolGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAWvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAOjD,OAAO,EAGL,UAAU,EACV,mBAAmB,EACnB,e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,CAAC,4BAA4B;CAcrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addTool.d.ts","sourceRoot":"","sources":["../../../src/store/addTool.ts"],"names":[],"mappings":"AAeA,wBAAgB,OAAO,CAAC,SAAS,KAAA,GAAG,IAAI,CAiBvC;AAOD,wBAAgB,UAAU,CAAC,SAAS,KAAA,GAAG,IAAI,CAc1C;AAED,eAAe,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"addTool.d.ts","sourceRoot":"","sources":["../../../src/store/addTool.ts"],"names":[],"mappings":"AAeA,wBAAgB,OAAO,CAAC,SAAS,KAAA,GAAG,IAAI,CAiBvC;AAOD,wBAAgB,OAAO,CAAC,SAAS,KAAA,GAAG,OAAO,CAI1C;AAOD,wBAAgB,UAAU,CAAC,SAAS,KAAA,GAAG,IAAI,CAc1C;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addTool, removeTool } from './addTool';
|
|
1
|
+
import { addTool, hasTool, removeTool } from './addTool';
|
|
2
2
|
import addEnabledElement from './addEnabledElement';
|
|
3
3
|
import removeEnabledElement from './removeEnabledElement';
|
|
4
4
|
import cancelActiveManipulations from './cancelActiveManipulations';
|
|
@@ -7,5 +7,5 @@ import svgNodeCache from './svgNodeCache';
|
|
|
7
7
|
import state from './state';
|
|
8
8
|
import * as ToolGroupManager from './ToolGroupManager';
|
|
9
9
|
import * as SynchronizerManager from './SynchronizerManager';
|
|
10
|
-
export { state, addTool, removeTool, addEnabledElement, removeEnabledElement, cancelActiveManipulations, svgNodeCache, ToolGroupManager, SynchronizerManager, Synchronizer, };
|
|
10
|
+
export { state, addTool, hasTool, removeTool, addEnabledElement, removeEnabledElement, cancelActiveManipulations, svgNodeCache, ToolGroupManager, SynchronizerManager, Synchronizer, };
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AAGpE,OAAO,YAAY,MAAM,oCAAoC,CAAC;AAE9D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAEL,KAAK,EACL,OAAO,EACP,OAAO,EACP,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,YAAY,EAEZ,gBAAgB,EAChB,mBAAmB,EAEnB,YAAY,GACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeEnabledElement.d.ts","sourceRoot":"","sources":["../../../src/store/removeEnabledElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,EAAE,MAAM,qBAAqB,CAAC;AA6B/D,iBAAS,oBAAoB,CAC3B,kBAAkB,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,GACxD,IAAI,
|
|
1
|
+
{"version":3,"file":"removeEnabledElement.d.ts","sourceRoot":"","sources":["../../../src/store/removeEnabledElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,EAAE,MAAM,qBAAqB,CAAC;AA6B/D,iBAAS,oBAAoB,CAC3B,kBAAkB,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,GACxD,IAAI,CAoCN;AAoED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedMagnifyTool.d.ts","sourceRoot":"","sources":["../../../src/tools/AdvancedMagnifyTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"AdvancedMagnifyTool.d.ts","sourceRoot":"","sources":["../../../src/tools/AdvancedMagnifyTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAGxC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAoBjD,OAAO,EACL,UAAU,EACV,UAAU,EACV,eAAe,EACf,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAKjF,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAG9E,aAAK,0BAA0B;IAC7B,mBAAmB,wBAAwB;CAC5C;AAED,cAAM,mBAAoB,SAAQ,cAAc;IAC9C,MAAM,CAAC,QAAQ,MAAC;IAChB,MAAM,CAAC,OAAO,oCAA8B;IAE5C,sBAAsB,EAAE,8BAA8B,CAAC;IACvD,iBAAiB,EAAE,GAAG,CAAC;IACvB,iBAAiB,EAAE,GAAG,CAAC;IACvB,QAAQ,EAAE;QACR,UAAU,EAAE,GAAG,CAAC;QAChB,mBAAmB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACnC,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;gBAGjB,SAAS,GAAE,eAAoB,EAC/B,gBAAgB,GAAE,SAyBjB;IAcH,gBAAgB,QACT,WAAW,oBAAoB,KACnC,yBAAyB,CAqF1B;IAaK,eAAe,YACX,cAAc,cACX,yBAAyB,yCAE1B,MAAM,KAChB,OAAO,CA+BR;IAEF,oBAAoB,QACb,WAAW,oBAAoB,cACxB,yBAAyB,KACpC,IAAI,CA0BL;IAEF,sBAAsB,QACf,WAAW,oBAAoB,cACxB,yBAAyB,UAC7B,UAAU,KACjB,IAAI,CA+BL;IAEF,YAAY,QAAS,WAAW,oBAAoB,KAAG,IAAI,CAwBzD;IAEF,iBAAiB,QAAS,WAAW,oBAAoB,KAAG,IAAI,CAqB9D;IAEF,mBAAmB,QAAS,WAAW,oBAAoB,KAAG,IAAI,CA8BhE;IAEF,WAAW,QAAS,WAAW,oBAAoB,KAAG,IAAI,CAsCxD;IAEF,MAAM,YAAa,cAAc,SA2B/B;IAEF,eAAe,yBAUb;IAEF,iBAAiB,yBAUf;IAUF,gBAAgB,mBACE,MAAM,eAAe,oBACnB,gBAAgB,KACjC,OAAO,CAsHR;IAIK,mBAAmB,CACxB,GAAG,EAAE,UAAU,CAAC,oBAAoB,EACpC,UAAU,EAAE,yBAAyB;IAgCvC,OAAO,CAAC,2BAA2B;IA4CnC,OAAO,CAAC,sBAAsB,CAiB5B;CACH;AAID,OAAO,EAAE,mBAAmB,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AngleTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/AngleTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AngleTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/AngleTool.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA8BzC,OAAO,EACL,UAAU,EACV,UAAU,EAEV,eAAe,EACf,SAAS,EACT,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,eAAe,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CA6LR;IAEF,qBAAqB,CAAC,UAAU,KAAA,EAAE,eAAe,KAAA,EAAE,cAAc,KAAA;CA2ClE;AAgBD,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowAnnotateTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/ArrowAnnotateTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArrowAnnotateTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/ArrowAnnotateTool.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA4BzC,OAAO,EACL,UAAU,EACV,UAAU,EAEV,eAAe,EACf,SAAS,EAET,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAG1E,cAAM,iBAAkB,SAAQ,cAAc;IAC5C,MAAM,CAAC,QAAQ,MAAC;IAET,iBAAiB,EAAE,GAAG,CAAC;IACvB,iBAAiB,EAAE,GAAG,CAAC;IAC9B,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,SASjB;IAaH,gBAAgB,QACT,WAAW,oBAAoB,KACnC,eAAe,CA4EhB;IAaF,eAAe,YACJ,cAAc,cACX,eAAe,yCAEhB,MAAM,KAChB,OAAO,CA8BR;IAEF,oBAAoB,QACb,WAAW,oBAAoB,cACxB,eAAe,KAC1B,IAAI,CA2BL;IAEF,sBAAsB,CACpB,GAAG,EAAE,UAAU,CAAC,oBAAoB,EACpC,UAAU,EAAE,eAAe,EAC3B,MAAM,EAAE,UAAU,GACjB,IAAI;IAwCP,YAAY,QAAS,WAAW,oBAAoB,KAAG,IAAI,CAwDzD;IAEF,aAAa,QAAS,WAAW,oBAAoB,KAAG,IAAI,CAkD1D;IAEF,gBAAgB,QAAS,WAAW,iBAAiB,UAInD;IAEF,mBAAmB,QAAS,WAAW,iBAAiB,KAAG,IAAI,CA4C7D;IAEF,yBAAyB,CAAC,OAAO,KAAA,EAAE,UAAU,KAAA,EAAE,WAAW,KAAA,GAAG,IAAI;IAgBjE,MAAM,YAAa,cAAc,SA4B/B;IAEF,eAAe,YAAa,cAAc,UA4BxC;IAEF,iBAAiB,YAAa,cAAc,UA4B1C;IAEF,aAAa,YAAa,cAAc,UAgCtC;IAEF,eAAe,YAAa,cAAc,UAgCxC;IAUF,gBAAgB,mBACE,MAAM,eAAe,oBACnB,gBAAgB,KACjC,OAAO,CAiKR;IAEF,eAAe,CAAC,MAAM,KAAA,EAAE,MAAM,KAAA,EAAE,UAAU,KAAA;CAM3C;AAWD,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BidirectionalTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/BidirectionalTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BidirectionalTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/BidirectionalTool.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAOjD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA2BzC,OAAO,EACL,UAAU,EACV,UAAU,EAEV,eAAe,EACf,SAAS,EAET,gB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IAEF,eAAe,yBAmBb;IAEF,iBAAiB,yBAmBf;IAUF,gBAAgB,mBACE,MAAM,eAAe,oBACnB,gBAAgB,KACjC,OAAO,CA+LR;IAEF,yCAAyC,6DAsCvC;IAEF,gBAAgB,CAAC,IAAI,KAAA,EAAE,IAAI,KAAA;IAQ3B,qBAAqB,sEAqDnB;IAEF,eAAe,2EAAiD,OAAO,CAOrE;IAEF,eAAe,yCAKb;CACH;AAyBD,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircleROITool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/CircleROITool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"CircleROITool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/CircleROITool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAOzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAmCjD,OAAO,EACL,UAAU,EACV,UAAU,EAEV,eAAe,EACf,SAAS,EACT,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AA+D9E,cAAM,aAAc,SAAQ,cAAc;IACxC,MAAM,CAAC,QAAQ,MAAC;IAEhB,iBAAiB,EAAE,GAAG,CAAC;IACvB,iBAAiB,EAAE,GAAG,CAAC;IACvB,8BAA8B,EAAE,GAAG,CAAC;IACpC,QAAQ,EAAE;QACR,UAAU,EAAE,GAAG,CAAC;QAChB,mBAAmB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACnC,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,UAAS;gBAG3B,SAAS,GAAE,eAAoB,EAC/B,gBAAgB,GAAE,SAWjB;IAmBH,gBAAgB,QACT,WAAW,oBAAoB,KACnC,mBAAmB,CA6EpB;IAaF,eAAe,YACJ,cAAc,cACX,mBAAmB,yCAEpB,MAAM,KAChB,OAAO,CAyBR;IAEF,oBAAoB,QACb,WAAW,oBAAoB,cACxB,mBAAmB,KAC9B,IAAI,CA2BL;IAEF,sBAAsB,QACf,WAAW,oBAAoB,cACxB,mBAAmB,UACvB,UAAU,KACjB,IAAI,CAwCL;IAEF,YAAY,QAAS,WAAW,oBAAoB,KAAG,IAAI,CAyCzD;IAEF,iBAAiB,QAAS,WAAW,oBAAoB,KAAG,IAAI,CAwB9D;IAEF,mBAAmB,QAAS,WAAW,oBAAoB,KAAG,IAAI,CA2ChE;IAEF,WAAW,QAAS,WAAW,oBAAoB,KAAG,IAAI,CAmCxD;IAEF,MAAM,YAAa,cAAc,SA4B/B;IAEF,eAAe,yBAUb;IAEF,iBAAiB,yBAUf;IAEF,aAAa,yBAWX;IAEF,eAAe,yBAWb;IAUF,gBAAgB,mBACE,MAAM,eAAe,oBACnB,gBAAgB,KACjC,OAAO,CAqPR;IAEF,qBAAqB,qFA4JnB;IAEF,eAAe,yDAKb;CACH;AA+CD,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CobbAngleTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/CobbAngleTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CobbAngleTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/CobbAngleTool.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAgCzC,OAAO,EACL,UAAU,EACV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WAAW,mBAAmB,UAqCjE;IAEF,kBAAkB,QACX,WAAW,kBAAkB,GAAG,WAAW,kBAAkB,UAuElE;IAEF,MAAM,YAAa,cAAc,SAkC/B;IAEF,eAAe,YAAa,cAAc,UAkBxC;IAEF,iBAAiB,YAAa,cAAc,UAkB1C;IAEF,aAAa,YAAa,cAAc,UA0BtC;IAEF,eAAe,YAAa,cAAc,UA0BxC;IAUF,gBAAgB,mBACE,MAAM,eAAe,oBACnB,gBAAgB,KACjC,OAAO,CA4SR;IAEF,qBAAqB,CAAC,UAAU,KAAA,EAAE,eAAe,KAAA,EAAE,cAAc,KAAA;IAiGjE,eAAe;;;;;;;;;;MAuDb;IAEF,qBAAqB;;;;;;;;;;mBAUR,MAAM;mBACN,MAAM;MAqGjB;CACH;AAgBD,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EllipticalROITool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/EllipticalROITool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"EllipticalROITool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/EllipticalROITool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAOzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAsCjD,OAAO,EACL,UAAU,EACV,UAAU,EAEV,eAAe,EACf,SAAS,EACT,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AA6DlF,cAAM,iBAAkB,SAAQ,cAAc;IAC5C,MAAM,CAAC,QAAQ,MAAC;IAEhB,iBAAiB,EAAE,GAAG,CAAC;IACvB,iBAAiB,EAAE,GAAG,CAAC;IACvB,8BAA8B,EAAE,GAAG,CAAC;IACpC,QAAQ,EAAE;QACR,UAA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eAAe,yDAKb;IAWF,qBAAqB,CAAC,OAAO,KAAA,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,GAAG,OAAO;IAyB/D,uBAAuB,CAAC,mBAAmB,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM;CAS3E;AAgCD,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyImageTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/KeyImageTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KeyImageTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/KeyImageTool.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAkBzC,OAAO,EACL,UAAU,EACV,UAAU,EACV,eAAe,EACf,SAAS,EACT,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC,cAAM,YAAa,SAAQ,cAAc;IACvC,MAAM,CAAC,QAAQ,MAAC;IAET,iBAAiB,EAAE,GAAG,CAAC;IACvB,iBAAiB,EAAE,GAAG,CAAC;IAC9B,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;IAaH,gBAAgB,QAAS,WAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiFtD;IAEK,MAAM;IAeb,eAAe,YACJ,cAAc,cACX,UAAU,yCAEX,MAAM,KAChB,OAAO,CAkBR;IAEF,oBAAoB,QACb,WAAW,oBAAoB,cACxB,UAAU,KACrB,IAAI,CAIL;IAEF,sBAAsB,CACpB,GAAG,EAAE,UAAU,CAAC,oBAAoB,EACpC,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,UAAU,GACjB,IAAI;IAIP,YAAY,QAAS,WAAW,oBAAoB,KAAG,IAAI,CAMzD;IAEF,mBAAmB,QAAS,WAAW,iBAAiB,KAAG,IAAI,CA2C7D;IAEF,yBAAyB,CAAC,OAAO,KAAA,EAAE,UAAU,KAAA,EAAE,WAAW,KAAA,GAAG,IAAI;IAgBjE,eAAe,YAAa,cAAc,UAoBxC;IAEF,iBAAiB,YAAa,cAAc,UAoB1C;IAUF,gBAAgB,mBACE,MAAM,eAAe,oBACnB,gBAAgB,KACjC,OAAO,CAiER;IAEF,eAAe,CAAC,MAAM,KAAA,EAAE,MAAM,KAAA,EAAE,UAAU,KAAA;CAM3C;AAYD,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LengthTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/LengthTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LengthTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/LengthTool.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA8BzC,OAAO,EACL,UAAU,EACV,UAAU,EAEV,eAAe,EACf,SAAS,EACT,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAwC3E,cAAM,UAAW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BAAqB,CAAC,UAAU,KAAA,EAAE,eAAe,KAAA,EAAE,cAAc,KAAA;IAuDjE,eAAe,CAAC,MAAM,KAAA,EAAE,MAAM,KAAA,EAAE,UAAU,KAAA;CAM3C;AAiBD,eAAe,UAAU,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
|
+
import { ChangeTypes } from '../../enums';
|
|
2
3
|
import type { Annotation, EventTypes, ToolHandle, PublicToolProps, ToolProps, SVGDrawingHelper } from '../../types';
|
|
3
4
|
import { LivewireContourAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
4
5
|
import { LivewirePath } from '../../utilities/livewire/LiveWirePath';
|
|
@@ -33,12 +34,14 @@ declare class LivewireContourTool extends ContourSegmentationBaseTool {
|
|
|
33
34
|
toolSelectedCallback: (evt: EventTypes.InteractionEventType, annotation: LivewireContourAnnotation) => void;
|
|
34
35
|
handleSelectedCallback: (evt: EventTypes.InteractionEventType, annotation: LivewireContourAnnotation, handle: ToolHandle) => void;
|
|
35
36
|
_endCallback: (evt: EventTypes.InteractionEventType) => void;
|
|
37
|
+
triggerAnnotationCompleted: (annotation: LivewireContourAnnotation) => void;
|
|
38
|
+
triggerAnnotationModified: (annotation: LivewireContourAnnotation, enabledElement: Types.IEnabledElement, changeType?: ChangeTypes) => void;
|
|
39
|
+
triggerChangeEvent: (annotation: LivewireContourAnnotation, enabledElement: Types.IEnabledElement, changeType?: ChangeTypes) => void;
|
|
36
40
|
private _mouseDownCallback;
|
|
37
41
|
private _mouseMoveCallback;
|
|
38
42
|
editHandle(worldPos: Types.Point3, element: any, annotation: any, handleIndex: number): void;
|
|
39
43
|
private _dragCallback;
|
|
40
44
|
cancel: (element: HTMLDivElement) => string;
|
|
41
|
-
triggerAnnotationModified: (annotation: LivewireContourAnnotation, enabledElement: Types.IEnabledElement) => void;
|
|
42
45
|
private _activateModify;
|
|
43
46
|
private _deactivateModify;
|
|
44
47
|
private _activateDraw;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LivewireContourTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/LivewireContourTool.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"LivewireContourTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/LivewireContourTool.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAU,WAAW,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,eAAe,EACf,SAAS,EACT,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAQpF,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAErE,OAAO,2BAA2B,MAAM,qCAAqC,CAAC;AAM9E,cAAM,mBAAoB,SAAQ,2BAA2B;IAC3D,OAAc,QAAQ,EAAE,MAAM,CAAC;IAC/B,OAAO,CAAC,QAAQ,CAAmB;IAEnC,OAAO,CAAC,aAAa,CAAmB;IAExC,iBAAiB,EAAE,GAAG,CAAC;IACvB,iBAAiB,EAAE,GAAG,CAAC;IACvB,QAAQ,EAAE;QACR,UAAU,EAAE,yBAAyB,CAAC;QACtC,mBAAmB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACnC,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC;QAC/B,aAAa,CAAC,EAAE,YAAY,CAAC;QAC7B,WAAW,CAAC,EAAE,YAAY,CAAC;QAE3B,kBAAkB,CAAC,EAAE,YAAY,CAAC;QAClC,MA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nB;IAEF,MAAM,YAAa,cAAc,YAyB/B;IAEF,OAAO,CAAC,eAAe,CAUrB;IAEF,OAAO,CAAC,iBAAiB,CAUvB;IAEF,OAAO,CAAC,aAAa,CAWnB;IAEF,OAAO,CAAC,eAAe,CAWrB;IAEK,gBAAgB,CACrB,cAAc,EAAE,KAAK,CAAC,eAAe,EACrC,gBAAgB,EAAE,gBAAgB,GACjC,OAAO;IAUV,SAAS,CAAC,yBAAyB,IAAI,OAAO;IAM9C,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,UAAU,CAAC,oBAAoB,GAAG,UAAU;IAqB5E,SAAS,CAAC,wBAAwB,CAAC,aAAa,EAAE;QAChD,cAAc,EAAE,KAAK,CAAC,eAAe,CAAC;QACtC,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,UAAU,CAAC;QACvB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACrC,gBAAgB,EAAE,gBAAgB,CAAC;KACpC,GAAG,OAAO;IAwCX,OAAO,CAAC,iBAAiB;CAyB1B;AAGD,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { PublicToolProps } from '../../types';
|
|
1
|
+
import type { PublicToolProps, AnnotationRenderContext } from '../../types';
|
|
2
2
|
import PlanarFreehandROITool from './PlanarFreehandROITool';
|
|
3
3
|
declare class PlanarFreehandContourSegmentationTool extends PlanarFreehandROITool {
|
|
4
4
|
static toolName: any;
|
|
5
5
|
constructor(toolProps: PublicToolProps);
|
|
6
6
|
protected isContourSegmentationTool(): boolean;
|
|
7
|
+
protected renderAnnotationInstance(renderContext: AnnotationRenderContext): boolean;
|
|
7
8
|
}
|
|
8
9
|
export default PlanarFreehandContourSegmentationTool;
|
|
9
10
|
//# sourceMappingURL=PlanarFreehandContourSegmentationTool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanarFreehandContourSegmentationTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/PlanarFreehandContourSegmentationTool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PlanarFreehandContourSegmentationTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/annotation/PlanarFreehandContourSegmentationTool.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAG5D,cAAM,qCAAsC,SAAQ,qBAAqB;IACvE,MAAM,CAAC,QAAQ,MAAC;gBAEJ,SAAS,EAAE,eAAe;IAmBtC,SAAS,CAAC,yBAAyB,IAAI,OAAO;IAK9C,SAAS,CAAC,wBAAwB,CAChC,aAAa,EAAE,uBAAuB,GACrC,OAAO;CAgBX;AAKD,eAAe,qCAAqC,CAAC"}
|