@mlightcad/cad-simple-viewer 1.4.13 → 1.5.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/index.js +16972 -11328
- package/dist/index.umd.cjs +158 -34
- package/dist/libredwg-parser-worker.js +4828 -4464
- package/dist/mtext-renderer-worker.js +3587 -3534
- package/lib/app/AcApDocManager.d.ts +14 -5
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +62 -19
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/command/AcApLogCmd.d.ts +1 -1
- package/lib/command/AcApLogCmd.d.ts.map +1 -1
- package/lib/command/AcApLogCmd.js +1 -1
- package/lib/command/AcApLogCmd.js.map +1 -1
- package/lib/command/AcApOpenCmd.d.ts +1 -1
- package/lib/command/AcApOpenCmd.d.ts.map +1 -1
- package/lib/command/AcApOpenCmd.js +1 -2
- package/lib/command/AcApOpenCmd.js.map +1 -1
- package/lib/command/AcApPanCmd.d.ts +1 -1
- package/lib/command/AcApPanCmd.d.ts.map +1 -1
- package/lib/command/AcApPanCmd.js +1 -2
- package/lib/command/AcApPanCmd.js.map +1 -1
- package/lib/command/AcApQNewCmd.d.ts +1 -1
- package/lib/command/AcApQNewCmd.d.ts.map +1 -1
- package/lib/command/AcApQNewCmd.js +1 -1
- package/lib/command/AcApQNewCmd.js.map +1 -1
- package/lib/command/AcApRegenCmd.d.ts +1 -1
- package/lib/command/AcApRegenCmd.d.ts.map +1 -1
- package/lib/command/AcApRegenCmd.js +1 -1
- package/lib/command/AcApRegenCmd.js.map +1 -1
- package/lib/command/AcApSelectCmd.d.ts +1 -1
- package/lib/command/AcApSelectCmd.d.ts.map +1 -1
- package/lib/command/AcApSelectCmd.js +1 -2
- package/lib/command/AcApSelectCmd.js.map +1 -1
- package/lib/command/{AcApConvertToDxfCmd.d.ts → convert/AcApConvertToDxfCmd.d.ts} +2 -2
- package/lib/command/convert/AcApConvertToDxfCmd.d.ts.map +1 -0
- package/lib/command/{AcApConvertToDxfCmd.js → convert/AcApConvertToDxfCmd.js} +1 -1
- package/lib/command/convert/AcApConvertToDxfCmd.js.map +1 -0
- package/lib/command/{AcApConvertToPngCmd.d.ts → convert/AcApConvertToPngCmd.d.ts} +23 -5
- package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -0
- package/lib/command/{AcApConvertToPngCmd.js → convert/AcApConvertToPngCmd.js} +88 -15
- package/lib/command/convert/AcApConvertToPngCmd.js.map +1 -0
- package/lib/command/{AcApConvertToSvgCmd.d.ts → convert/AcApConvertToSvgCmd.d.ts} +2 -2
- package/lib/command/convert/AcApConvertToSvgCmd.d.ts.map +1 -0
- package/lib/command/{AcApConvertToSvgCmd.js → convert/AcApConvertToSvgCmd.js} +1 -1
- package/lib/command/convert/AcApConvertToSvgCmd.js.map +1 -0
- package/lib/command/convert/AcApDxfConvertor.d.ts.map +1 -0
- package/lib/command/{AcApDxfConvertor.js → convert/AcApDxfConvertor.js} +1 -1
- package/lib/command/convert/AcApDxfConvertor.js.map +1 -0
- package/lib/command/{AcApPngConvertor.d.ts → convert/AcApPngConvertor.d.ts} +20 -35
- package/lib/command/convert/AcApPngConvertor.d.ts.map +1 -0
- package/lib/command/{AcApPngConvertor.js → convert/AcApPngConvertor.js} +99 -71
- package/lib/command/convert/AcApPngConvertor.js.map +1 -0
- package/lib/command/convert/AcApSvgConvertor.d.ts.map +1 -0
- package/lib/command/{AcApSvgConvertor.js → convert/AcApSvgConvertor.js} +1 -1
- package/lib/command/convert/AcApSvgConvertor.js.map +1 -0
- package/lib/command/convert/index.d.ts +6 -0
- package/lib/command/convert/index.d.ts.map +1 -0
- package/lib/command/convert/index.js +6 -0
- package/lib/command/convert/index.js.map +1 -0
- package/lib/command/draw/AcApArcCmd.d.ts +297 -0
- package/lib/command/draw/AcApArcCmd.d.ts.map +1 -0
- package/lib/command/{AcApArcCmd.js → draw/AcApArcCmd.js} +793 -12
- package/lib/command/draw/AcApArcCmd.js.map +1 -0
- package/lib/command/{AcApCircleCmd.d.ts → draw/AcApCircleCmd.d.ts} +2 -2
- package/lib/command/draw/AcApCircleCmd.d.ts.map +1 -0
- package/lib/command/{AcApCircleCmd.js → draw/AcApCircleCmd.js} +3 -3
- package/lib/command/draw/AcApCircleCmd.js.map +1 -0
- package/lib/command/{AcApDimLinearCmd.d.ts → draw/AcApDimLinearCmd.d.ts} +2 -2
- package/lib/command/draw/AcApDimLinearCmd.d.ts.map +1 -0
- package/lib/command/{AcApDimLinearCmd.js → draw/AcApDimLinearCmd.js} +3 -3
- package/lib/command/draw/AcApDimLinearCmd.js.map +1 -0
- package/lib/command/{AcApEllipseCmd.d.ts → draw/AcApEllipseCmd.d.ts} +2 -2
- package/lib/command/draw/AcApEllipseCmd.d.ts.map +1 -0
- package/lib/command/{AcApEllipseCmd.js → draw/AcApEllipseCmd.js} +3 -3
- package/lib/command/draw/AcApEllipseCmd.js.map +1 -0
- package/lib/command/{AcApHatchCmd.d.ts → draw/AcApHatchCmd.d.ts} +54 -17
- package/lib/command/draw/AcApHatchCmd.d.ts.map +1 -0
- package/lib/command/{AcApHatchCmd.js → draw/AcApHatchCmd.js} +122 -30
- package/lib/command/draw/AcApHatchCmd.js.map +1 -0
- package/lib/command/{AcApLineCmd.d.ts → draw/AcApLineCmd.d.ts} +2 -2
- package/lib/command/draw/AcApLineCmd.d.ts.map +1 -0
- package/lib/command/{AcApLineCmd.js → draw/AcApLineCmd.js} +3 -3
- package/lib/command/draw/AcApLineCmd.js.map +1 -0
- package/lib/command/draw/AcApMLineCmd.d.ts +31 -0
- package/lib/command/draw/AcApMLineCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApMLineCmd.js +531 -0
- package/lib/command/draw/AcApMLineCmd.js.map +1 -0
- package/lib/command/{AcApMTextCmd.d.ts → draw/AcApMTextCmd.d.ts} +2 -2
- package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -0
- package/lib/command/{AcApMTextCmd.js → draw/AcApMTextCmd.js} +3 -3
- package/lib/command/draw/AcApMTextCmd.js.map +1 -0
- package/lib/command/draw/AcApPointCmd.d.ts +16 -0
- package/lib/command/draw/AcApPointCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApPointCmd.js +98 -0
- package/lib/command/draw/AcApPointCmd.js.map +1 -0
- package/lib/command/{AcApPolygonCmd.d.ts → draw/AcApPolygonCmd.d.ts} +2 -2
- package/lib/command/draw/AcApPolygonCmd.d.ts.map +1 -0
- package/lib/command/{AcApPolygonCmd.js → draw/AcApPolygonCmd.js} +3 -3
- package/lib/command/draw/AcApPolygonCmd.js.map +1 -0
- package/lib/command/{AcApPolylineCmd.d.ts → draw/AcApPolylineCmd.d.ts} +2 -2
- package/lib/command/draw/AcApPolylineCmd.d.ts.map +1 -0
- package/lib/command/{AcApPolylineCmd.js → draw/AcApPolylineCmd.js} +3 -3
- package/lib/command/draw/AcApPolylineCmd.js.map +1 -0
- package/lib/command/draw/AcApRayCmd.d.ts +10 -0
- package/lib/command/draw/AcApRayCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApRayCmd.js +145 -0
- package/lib/command/draw/AcApRayCmd.js.map +1 -0
- package/lib/command/{AcApRectCmd.d.ts → draw/AcApRectCmd.d.ts} +2 -2
- package/lib/command/draw/AcApRectCmd.d.ts.map +1 -0
- package/lib/command/{AcApRectCmd.js → draw/AcApRectCmd.js} +3 -3
- package/lib/command/draw/AcApRectCmd.js.map +1 -0
- package/lib/command/{AcApSplineCmd.d.ts → draw/AcApSplineCmd.d.ts} +2 -2
- package/lib/command/draw/AcApSplineCmd.d.ts.map +1 -0
- package/lib/command/{AcApSplineCmd.js → draw/AcApSplineCmd.js} +3 -3
- package/lib/command/draw/AcApSplineCmd.js.map +1 -0
- package/lib/command/draw/AcApXLineCmd.d.ts +25 -0
- package/lib/command/draw/AcApXLineCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApXLineCmd.js +210 -0
- package/lib/command/draw/AcApXLineCmd.js.map +1 -0
- package/lib/command/draw/index.d.ts +16 -0
- package/lib/command/draw/index.d.ts.map +1 -0
- package/lib/command/draw/index.js +16 -0
- package/lib/command/draw/index.js.map +1 -0
- package/lib/command/index.d.ts +6 -32
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +6 -32
- package/lib/command/index.js.map +1 -1
- package/lib/command/layer/AcApLayerCloseCmd.d.ts +23 -0
- package/lib/command/layer/AcApLayerCloseCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerCloseCmd.js +86 -0
- package/lib/command/layer/AcApLayerCloseCmd.js.map +1 -0
- package/lib/command/{AcApLayerCmd.d.ts → layer/AcApLayerCmd.d.ts} +3 -5
- package/lib/command/layer/AcApLayerCmd.d.ts.map +1 -0
- package/lib/command/{AcApLayerCmd.js → layer/AcApLayerCmd.js} +5 -8
- package/lib/command/layer/AcApLayerCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerCurCmd.d.ts +43 -0
- package/lib/command/layer/AcApLayerCurCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerCurCmd.js +183 -0
- package/lib/command/layer/AcApLayerCurCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerDelCmd.d.ts +112 -0
- package/lib/command/layer/AcApLayerDelCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerDelCmd.js +446 -0
- package/lib/command/layer/AcApLayerDelCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerFreezeCmd.d.ts +103 -0
- package/lib/command/layer/AcApLayerFreezeCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerFreezeCmd.js +398 -0
- package/lib/command/layer/AcApLayerFreezeCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerIsoCmd.d.ts +99 -0
- package/lib/command/layer/AcApLayerIsoCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerIsoCmd.js +485 -0
- package/lib/command/layer/AcApLayerIsoCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerIsoState.d.ts +68 -0
- package/lib/command/layer/AcApLayerIsoState.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerIsoState.js +53 -0
- package/lib/command/layer/AcApLayerIsoState.js.map +1 -0
- package/lib/command/layer/AcApLayerLockCmd.d.ts +50 -0
- package/lib/command/layer/AcApLayerLockCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerLockCmd.js +175 -0
- package/lib/command/layer/AcApLayerLockCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerOffCmd.d.ts +95 -0
- package/lib/command/layer/AcApLayerOffCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerOffCmd.js +384 -0
- package/lib/command/layer/AcApLayerOffCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerOnCmd.d.ts +30 -0
- package/lib/command/layer/AcApLayerOnCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerOnCmd.js +138 -0
- package/lib/command/layer/AcApLayerOnCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerPCmd.d.ts +83 -0
- package/lib/command/layer/AcApLayerPCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerPCmd.js +241 -0
- package/lib/command/layer/AcApLayerPCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerThawCmd.d.ts +37 -0
- package/lib/command/layer/AcApLayerThawCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerThawCmd.js +150 -0
- package/lib/command/layer/AcApLayerThawCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerUnisoCmd.d.ts +52 -0
- package/lib/command/layer/AcApLayerUnisoCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerUnisoCmd.js +199 -0
- package/lib/command/layer/AcApLayerUnisoCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerUnlockCmd.d.ts +50 -0
- package/lib/command/layer/AcApLayerUnlockCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerUnlockCmd.js +175 -0
- package/lib/command/layer/AcApLayerUnlockCmd.js.map +1 -0
- package/lib/command/layer/index.d.ts +14 -0
- package/lib/command/layer/index.d.ts.map +1 -0
- package/lib/command/layer/index.js +14 -0
- package/lib/command/layer/index.js.map +1 -0
- package/lib/command/{AcApClearMeasurementsCmd.d.ts → measure/AcApClearMeasurementsCmd.d.ts} +2 -2
- package/lib/command/measure/AcApClearMeasurementsCmd.d.ts.map +1 -0
- package/lib/command/{AcApClearMeasurementsCmd.js → measure/AcApClearMeasurementsCmd.js} +1 -1
- package/lib/command/measure/AcApClearMeasurementsCmd.js.map +1 -0
- package/lib/command/{AcApMeasureAngleCmd.d.ts → measure/AcApMeasureAngleCmd.d.ts} +2 -2
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -0
- package/lib/command/{AcApMeasureAngleCmd.js → measure/AcApMeasureAngleCmd.js} +3 -3
- package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -0
- package/lib/command/{AcApMeasureArcCmd.d.ts → measure/AcApMeasureArcCmd.d.ts} +2 -2
- package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -0
- package/lib/command/{AcApMeasureArcCmd.js → measure/AcApMeasureArcCmd.js} +3 -3
- package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -0
- package/lib/command/{AcApMeasureAreaCmd.d.ts → measure/AcApMeasureAreaCmd.d.ts} +2 -2
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -0
- package/lib/command/{AcApMeasureAreaCmd.js → measure/AcApMeasureAreaCmd.js} +3 -3
- package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -0
- package/lib/command/{AcApMeasureDistanceCmd.d.ts → measure/AcApMeasureDistanceCmd.d.ts} +2 -2
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -0
- package/lib/command/{AcApMeasureDistanceCmd.js → measure/AcApMeasureDistanceCmd.js} +3 -3
- package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -0
- package/lib/command/measure/index.d.ts +6 -0
- package/lib/command/measure/index.d.ts.map +1 -0
- package/lib/command/measure/index.js +6 -0
- package/lib/command/measure/index.js.map +1 -0
- package/lib/command/modify/AcApCopyCmd.d.ts +94 -0
- package/lib/command/modify/AcApCopyCmd.d.ts.map +1 -0
- package/lib/command/modify/AcApCopyCmd.js +549 -0
- package/lib/command/modify/AcApCopyCmd.js.map +1 -0
- package/lib/command/{AcApEraseCmd.d.ts → modify/AcApEraseCmd.d.ts} +2 -2
- package/lib/command/modify/AcApEraseCmd.d.ts.map +1 -0
- package/lib/command/{AcApEraseCmd.js → modify/AcApEraseCmd.js} +3 -5
- package/lib/command/modify/AcApEraseCmd.js.map +1 -0
- package/lib/command/{AcApMoveCmd.d.ts → modify/AcApMoveCmd.d.ts} +2 -2
- package/lib/command/modify/AcApMoveCmd.d.ts.map +1 -0
- package/lib/command/{AcApMoveCmd.js → modify/AcApMoveCmd.js} +3 -4
- package/lib/command/modify/AcApMoveCmd.js.map +1 -0
- package/lib/command/modify/AcApRotateCmd.d.ts +81 -0
- package/lib/command/modify/AcApRotateCmd.d.ts.map +1 -0
- package/lib/command/modify/AcApRotateCmd.js +487 -0
- package/lib/command/modify/AcApRotateCmd.js.map +1 -0
- package/lib/command/modify/index.d.ts +5 -0
- package/lib/command/modify/index.d.ts.map +1 -0
- package/lib/command/modify/index.js +5 -0
- package/lib/command/modify/index.js.map +1 -0
- package/lib/command/{AcApBaseRevCmd.d.ts → review/AcApBaseRevCmd.d.ts} +2 -2
- package/lib/command/review/AcApBaseRevCmd.d.ts.map +1 -0
- package/lib/command/{AcApBaseRevCmd.js → review/AcApBaseRevCmd.js} +2 -2
- package/lib/command/review/AcApBaseRevCmd.js.map +1 -0
- package/lib/command/{AcApRevCircleCmd.d.ts → review/AcApRevCircleCmd.d.ts} +1 -1
- package/lib/command/review/AcApRevCircleCmd.d.ts.map +1 -0
- package/lib/command/{AcApRevCircleCmd.js → review/AcApRevCircleCmd.js} +4 -4
- package/lib/command/review/AcApRevCircleCmd.js.map +1 -0
- package/lib/command/{AcApRevCloudCmd.d.ts → review/AcApRevCloudCmd.d.ts} +2 -2
- package/lib/command/review/AcApRevCloudCmd.d.ts.map +1 -0
- package/lib/command/{AcApRevCloudCmd.js → review/AcApRevCloudCmd.js} +3 -3
- package/lib/command/review/AcApRevCloudCmd.js.map +1 -0
- package/lib/command/{AcApRevRectCmd.d.ts → review/AcApRevRectCmd.d.ts} +1 -1
- package/lib/command/review/AcApRevRectCmd.d.ts.map +1 -0
- package/lib/command/{AcApRevRectCmd.js → review/AcApRevRectCmd.js} +3 -3
- package/lib/command/review/AcApRevRectCmd.js.map +1 -0
- package/lib/command/{AcApRevVisibilityCmd.d.ts → review/AcApRevVisibilityCmd.d.ts} +1 -1
- package/lib/command/review/AcApRevVisibilityCmd.d.ts.map +1 -0
- package/lib/command/{AcApRevVisibilityCmd.js → review/AcApRevVisibilityCmd.js} +2 -2
- package/lib/command/review/AcApRevVisibilityCmd.js.map +1 -0
- package/lib/command/{AcApSketchCmd.d.ts → review/AcApSketchCmd.d.ts} +2 -2
- package/lib/command/review/AcApSketchCmd.d.ts.map +1 -0
- package/lib/command/{AcApSketchCmd.js → review/AcApSketchCmd.js} +3 -3
- package/lib/command/review/AcApSketchCmd.js.map +1 -0
- package/lib/command/review/index.d.ts +7 -0
- package/lib/command/review/index.d.ts.map +1 -0
- package/lib/command/review/index.js +7 -0
- package/lib/command/review/index.js.map +1 -0
- package/lib/editor/global/eventBus.d.ts +4 -6
- package/lib/editor/global/eventBus.d.ts.map +1 -1
- package/lib/editor/global/eventBus.js.map +1 -1
- package/lib/editor/input/AcEditor.d.ts +17 -0
- package/lib/editor/input/AcEditor.d.ts.map +1 -1
- package/lib/editor/input/AcEditor.js +23 -0
- package/lib/editor/input/AcEditor.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts +6 -0
- package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptBoxOptions.js +16 -0
- package/lib/editor/input/prompt/AcEdPromptBoxOptions.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +6 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js +16 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
- package/lib/editor/input/ui/AcEdCommandLine.d.ts +25 -23
- package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdCommandLine.js +101 -43
- package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +4 -2
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts +21 -0
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +34 -4
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdMessageType.d.ts +10 -0
- package/lib/editor/input/ui/AcEdMessageType.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMessageType.js +2 -0
- package/lib/editor/input/ui/AcEdMessageType.js.map +1 -0
- package/lib/editor/input/ui/index.d.ts +1 -0
- package/lib/editor/input/ui/index.d.ts.map +1 -1
- package/lib/editor/input/ui/index.js +1 -0
- package/lib/editor/input/ui/index.js.map +1 -1
- package/lib/editor/view/AcEdBaseView.d.ts +3 -8
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +3 -5
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- package/lib/editor/view/AcEdHoverController.d.ts +2 -3
- package/lib/editor/view/AcEdHoverController.d.ts.map +1 -1
- package/lib/editor/view/AcEdHoverController.js +7 -0
- package/lib/editor/view/AcEdHoverController.js.map +1 -1
- package/lib/editor/view/AcEdSelectionAction.d.ts +108 -0
- package/lib/editor/view/AcEdSelectionAction.d.ts.map +1 -0
- package/lib/editor/view/AcEdSelectionAction.js +74 -0
- package/lib/editor/view/AcEdSelectionAction.js.map +1 -0
- package/lib/editor/view/index.d.ts +1 -0
- package/lib/editor/view/index.d.ts.map +1 -1
- package/lib/editor/view/index.js +1 -0
- package/lib/editor/view/index.js.map +1 -1
- package/lib/i18n/en/command.d.ts +135 -15
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +144 -24
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +571 -212
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +661 -302
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +135 -15
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +145 -25
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +571 -212
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +660 -301
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts +136 -2
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js +154 -16
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js.map +1 -1
- package/lib/view/AcTrLayout.d.ts +17 -0
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +34 -2
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrPickResultUtil.d.ts +4 -0
- package/lib/view/AcTrPickResultUtil.d.ts.map +1 -0
- package/lib/view/AcTrPickResultUtil.js +54 -0
- package/lib/view/AcTrPickResultUtil.js.map +1 -0
- package/lib/view/AcTrView2d.d.ts +25 -0
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +225 -100
- package/lib/view/AcTrView2d.js.map +1 -1
- package/package.json +6 -6
- package/lib/command/AcApArcCmd.d.ts +0 -140
- package/lib/command/AcApArcCmd.d.ts.map +0 -1
- package/lib/command/AcApArcCmd.js.map +0 -1
- package/lib/command/AcApBaseRevCmd.d.ts.map +0 -1
- package/lib/command/AcApBaseRevCmd.js.map +0 -1
- package/lib/command/AcApCircleCmd.d.ts.map +0 -1
- package/lib/command/AcApCircleCmd.js.map +0 -1
- package/lib/command/AcApClearMeasurementsCmd.d.ts.map +0 -1
- package/lib/command/AcApClearMeasurementsCmd.js.map +0 -1
- package/lib/command/AcApConvertToDxfCmd.d.ts.map +0 -1
- package/lib/command/AcApConvertToDxfCmd.js.map +0 -1
- package/lib/command/AcApConvertToPngCmd.d.ts.map +0 -1
- package/lib/command/AcApConvertToPngCmd.js.map +0 -1
- package/lib/command/AcApConvertToSvgCmd.d.ts.map +0 -1
- package/lib/command/AcApConvertToSvgCmd.js.map +0 -1
- package/lib/command/AcApDimLinearCmd.d.ts.map +0 -1
- package/lib/command/AcApDimLinearCmd.js.map +0 -1
- package/lib/command/AcApDxfConvertor.d.ts.map +0 -1
- package/lib/command/AcApDxfConvertor.js.map +0 -1
- package/lib/command/AcApEllipseCmd.d.ts.map +0 -1
- package/lib/command/AcApEllipseCmd.js.map +0 -1
- package/lib/command/AcApEraseCmd.d.ts.map +0 -1
- package/lib/command/AcApEraseCmd.js.map +0 -1
- package/lib/command/AcApHatchCmd.d.ts.map +0 -1
- package/lib/command/AcApHatchCmd.js.map +0 -1
- package/lib/command/AcApLayerCmd.d.ts.map +0 -1
- package/lib/command/AcApLayerCmd.js.map +0 -1
- package/lib/command/AcApLineCmd.d.ts.map +0 -1
- package/lib/command/AcApLineCmd.js.map +0 -1
- package/lib/command/AcApMTextCmd.d.ts.map +0 -1
- package/lib/command/AcApMTextCmd.js.map +0 -1
- package/lib/command/AcApMeasureAngleCmd.d.ts.map +0 -1
- package/lib/command/AcApMeasureAngleCmd.js.map +0 -1
- package/lib/command/AcApMeasureArcCmd.d.ts.map +0 -1
- package/lib/command/AcApMeasureArcCmd.js.map +0 -1
- package/lib/command/AcApMeasureAreaCmd.d.ts.map +0 -1
- package/lib/command/AcApMeasureAreaCmd.js.map +0 -1
- package/lib/command/AcApMeasureDistanceCmd.d.ts.map +0 -1
- package/lib/command/AcApMeasureDistanceCmd.js.map +0 -1
- package/lib/command/AcApMoveCmd.d.ts.map +0 -1
- package/lib/command/AcApMoveCmd.js.map +0 -1
- package/lib/command/AcApPngConvertor.d.ts.map +0 -1
- package/lib/command/AcApPngConvertor.js.map +0 -1
- package/lib/command/AcApPolygonCmd.d.ts.map +0 -1
- package/lib/command/AcApPolygonCmd.js.map +0 -1
- package/lib/command/AcApPolylineCmd.d.ts.map +0 -1
- package/lib/command/AcApPolylineCmd.js.map +0 -1
- package/lib/command/AcApRectCmd.d.ts.map +0 -1
- package/lib/command/AcApRectCmd.js.map +0 -1
- package/lib/command/AcApRevCircleCmd.d.ts.map +0 -1
- package/lib/command/AcApRevCircleCmd.js.map +0 -1
- package/lib/command/AcApRevCloudCmd.d.ts.map +0 -1
- package/lib/command/AcApRevCloudCmd.js.map +0 -1
- package/lib/command/AcApRevRectCmd.d.ts.map +0 -1
- package/lib/command/AcApRevRectCmd.js.map +0 -1
- package/lib/command/AcApRevVisibilityCmd.d.ts.map +0 -1
- package/lib/command/AcApRevVisibilityCmd.js.map +0 -1
- package/lib/command/AcApSketchCmd.d.ts.map +0 -1
- package/lib/command/AcApSketchCmd.js.map +0 -1
- package/lib/command/AcApSplineCmd.d.ts.map +0 -1
- package/lib/command/AcApSplineCmd.js.map +0 -1
- package/lib/command/AcApSvgConvertor.d.ts.map +0 -1
- package/lib/command/AcApSvgConvertor.js.map +0 -1
- /package/lib/command/{AcApDxfConvertor.d.ts → convert/AcApDxfConvertor.d.ts} +0 -0
- /package/lib/command/{AcApSvgConvertor.d.ts → convert/AcApSvgConvertor.d.ts} +0 -0
|
@@ -0,0 +1 @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AC,QAAQ,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;wBAC7C,qBAAM,OAAO,CAAC,GAAG,CAAC,UAAA,MAAM,IAAI,OAAA,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAA/C,CAA+C,CAAC,EAAA;;wBAA5E,SAA4E,CAAA;wBAE5E,IAAI,CAAC,YAAY,EAAE,CAAC;4BAClB,YAAY,CAAC,KAAK,EAAE,CAAA;4BACpB,sBAAM;wBACR,CAAC;wBAEK,MAAM,GAAG,IAAI,YAAY,EAAE,CAAC,eAAe,CAC/C,YAAY,CAAC,CAAC,EACd,YAAY,CAAC,CAAC,EACd,YAAY,CAAC,CAAC,CACf,CAAA;wBACD,GAAG,CAAC,OAAO,CAAC,UAAA,EAAE;4BACZ,IAAM,MAAM,GAAG,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,CAAA;4BAC3C,IAAI,CAAC,MAAM;gCAAE,OAAM;4BACnB,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;4BAC1B,MAAM,CAAC,oBAAoB,EAAE,CAAA;wBAC/B,CAAC,CAAC,CAAA;wBACF,YAAY,CAAC,KAAK,EAAE,CAAA;;;;;KACrB;IACH,kBAAC;AAAD,CAAC,AAvLD,CAAiC,WAAW,GAuL3C"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { AcGeMatrix3d, AcGePoint3dLike } from '@mlightcad/data-model';
|
|
2
|
+
import { AcApContext } from '../../app';
|
|
3
|
+
import { AcEdCommand } from '../../editor';
|
|
4
|
+
/**
|
|
5
|
+
* Command to rotate selected entities around a base point.
|
|
6
|
+
*
|
|
7
|
+
* Supported workflow:
|
|
8
|
+
* 1) Select entities (or reuse preselection),
|
|
9
|
+
* 2) Specify base point,
|
|
10
|
+
* 3) Specify rotation angle, or choose `Copy` / `Reference`,
|
|
11
|
+
* 4) Apply rotation to originals or append rotated copies.
|
|
12
|
+
*/
|
|
13
|
+
export declare class AcApRotateCmd extends AcEdCommand {
|
|
14
|
+
/**
|
|
15
|
+
* Creates the ROTATE command and marks it as a review-mode command.
|
|
16
|
+
*/
|
|
17
|
+
constructor();
|
|
18
|
+
/**
|
|
19
|
+
* Builds a world-space rotation matrix around a given base point.
|
|
20
|
+
*
|
|
21
|
+
* @param basePoint - Rotation origin.
|
|
22
|
+
* @param angleRad - Rotation angle in radians.
|
|
23
|
+
* @returns Composite transform that rotates around `basePoint`.
|
|
24
|
+
*/
|
|
25
|
+
static createRotationMatrix(basePoint: AcGePoint3dLike, angleRad: number): AcGeMatrix3d;
|
|
26
|
+
/**
|
|
27
|
+
* Adds one localized ROTATE keyword to an angle prompt.
|
|
28
|
+
*
|
|
29
|
+
* @param prompt - Angle prompt that should expose the keyword.
|
|
30
|
+
* @param key - Translation key suffix describing which keyword to add.
|
|
31
|
+
*/
|
|
32
|
+
private addKeyword;
|
|
33
|
+
/**
|
|
34
|
+
* Shows a localized warning for invalid reference-point input.
|
|
35
|
+
*
|
|
36
|
+
* @param key - Warning message key suffix.
|
|
37
|
+
*/
|
|
38
|
+
private warnInvalidInput;
|
|
39
|
+
/**
|
|
40
|
+
* Computes the planar direction angle from one point to another.
|
|
41
|
+
*
|
|
42
|
+
* @param start - Start/reference point.
|
|
43
|
+
* @param end - End/target point.
|
|
44
|
+
* @returns Direction angle in degrees, or `undefined` when points are coincident.
|
|
45
|
+
*/
|
|
46
|
+
private computeAngleDeg;
|
|
47
|
+
/**
|
|
48
|
+
* Prompts for a reference angle used by the ROTATE `Reference` option.
|
|
49
|
+
*
|
|
50
|
+
* The user can either enter the angle directly or define it from two points.
|
|
51
|
+
* When the point-based definition is degenerate, the command warns and asks again.
|
|
52
|
+
*
|
|
53
|
+
* @param context - Current application/document context.
|
|
54
|
+
* @param sourceEntities - Entities used to build transient preview geometry.
|
|
55
|
+
* @param basePoint - Rotation base point shared by subsequent angle prompts.
|
|
56
|
+
* @returns Reference angle in degrees, or `undefined` when input is canceled.
|
|
57
|
+
*/
|
|
58
|
+
private promptReferenceAngle;
|
|
59
|
+
/**
|
|
60
|
+
* Prompts for the final rotation angle and optional ROTATE sub-modes.
|
|
61
|
+
*
|
|
62
|
+
* The prompt supports `Copy` to preserve originals and `Reference` to derive
|
|
63
|
+
* the final rotation from an existing angle and a new target angle.
|
|
64
|
+
*
|
|
65
|
+
* @param context - Current application/document context.
|
|
66
|
+
* @param sourceEntities - Entities selected for rotation.
|
|
67
|
+
* @param basePoint - Rotation base point.
|
|
68
|
+
* @returns Rotation settings, or `undefined` when input is canceled.
|
|
69
|
+
*/
|
|
70
|
+
private promptRotationAngle;
|
|
71
|
+
/**
|
|
72
|
+
* Executes ROTATE using selection reuse, base-point input, and angle prompts.
|
|
73
|
+
*
|
|
74
|
+
* The command rotates the original entities in place unless the user chooses
|
|
75
|
+
* `Copy`, in which case rotated clones are appended to model space instead.
|
|
76
|
+
*
|
|
77
|
+
* @param context - Current application/document context.
|
|
78
|
+
*/
|
|
79
|
+
execute(context: AcApContext): Promise<void>;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=AcApRotateCmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApRotateCmd.d.ts","sourceRoot":"","sources":["../../../src/command/modify/AcApRotateCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAEZ,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAkB,WAAW,EAAkB,MAAM,WAAW,CAAA;AACvE,OAAO,EAEL,WAAW,EAQZ,MAAM,cAAc,CAAA;AAiJrB;;;;;;;;GAQG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;;IAMH;;;;;;OAMG;IACH,MAAM,CAAC,oBAAoB,CAAC,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM;IAaxE;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAWlB;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAOxB;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IAUvB;;;;;;;;;;OAUG;YACW,oBAAoB;IAkElC;;;;;;;;;;OAUG;YACW,mBAAmB;IA4EjC;;;;;;;OAOG;IACG,OAAO,CAAC,OAAO,EAAE,WAAW;CAgFnC"}
|
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
20
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
21
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
22
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
26
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
27
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
|
+
function step(op) {
|
|
30
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
32
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
|
+
switch (op[0]) {
|
|
35
|
+
case 0: case 1: t = op; break;
|
|
36
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
37
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
38
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
39
|
+
default:
|
|
40
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
41
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
42
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
44
|
+
if (t[2]) _.ops.pop();
|
|
45
|
+
_.trys.pop(); continue;
|
|
46
|
+
}
|
|
47
|
+
op = body.call(thisArg, _);
|
|
48
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
49
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
import { AcGeMatrix3d, AcGePoint3d } from '@mlightcad/data-model';
|
|
53
|
+
import { AcApAnnotation, AcApDocManager } from '../../app';
|
|
54
|
+
import { AcEdCommand, AcEdOpenMode, AcEdPreviewJig, AcEdPromptAngleOptions, AcEdPromptPointOptions, AcEdPromptSelectionOptions, AcEdPromptStatus, eventBus } from '../../editor';
|
|
55
|
+
import { AcApI18n } from '../../i18n';
|
|
56
|
+
var ANGLE_EPSILON = 1e-9;
|
|
57
|
+
/**
|
|
58
|
+
* Static preview jig used while ROTATE asks for supporting inputs such as
|
|
59
|
+
* reference points. It keeps cloned source entities visible without mutating
|
|
60
|
+
* database entities.
|
|
61
|
+
*/
|
|
62
|
+
var AcApRotateStaticJig = /** @class */ (function (_super) {
|
|
63
|
+
__extends(AcApRotateStaticJig, _super);
|
|
64
|
+
/**
|
|
65
|
+
* Creates a static transient preview for prompts that do not modify geometry.
|
|
66
|
+
*
|
|
67
|
+
* @param view - Active editor view that renders transient entities.
|
|
68
|
+
* @param sourceEntities - Original entities cloned for preview display.
|
|
69
|
+
*/
|
|
70
|
+
function AcApRotateStaticJig(view, sourceEntities) {
|
|
71
|
+
var _this = _super.call(this, view) || this;
|
|
72
|
+
_this._view = view;
|
|
73
|
+
_this._previewEntities = sourceEntities
|
|
74
|
+
.map(function (entity) { return entity.clone(); })
|
|
75
|
+
.filter(function (entity) { return !!entity; });
|
|
76
|
+
return _this;
|
|
77
|
+
}
|
|
78
|
+
Object.defineProperty(AcApRotateStaticJig.prototype, "entity", {
|
|
79
|
+
/**
|
|
80
|
+
* Gets the first preview entity so the jig can integrate with the editor API.
|
|
81
|
+
*
|
|
82
|
+
* @returns First transient preview entity, or `null` when cloning failed.
|
|
83
|
+
*/
|
|
84
|
+
get: function () {
|
|
85
|
+
var _a;
|
|
86
|
+
return (_a = this._previewEntities[0]) !== null && _a !== void 0 ? _a : null;
|
|
87
|
+
},
|
|
88
|
+
enumerable: false,
|
|
89
|
+
configurable: true
|
|
90
|
+
});
|
|
91
|
+
/**
|
|
92
|
+
* Accepts prompt updates without changing geometry because this preview is static.
|
|
93
|
+
*
|
|
94
|
+
* @param _value - Prompt value supplied by the editor, ignored by this jig.
|
|
95
|
+
*/
|
|
96
|
+
AcApRotateStaticJig.prototype.update = function (_value) {
|
|
97
|
+
// Static preview only.
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Adds the cloned entities to the view as transient preview graphics.
|
|
101
|
+
*/
|
|
102
|
+
AcApRotateStaticJig.prototype.render = function () {
|
|
103
|
+
if (this._previewEntities.length === 0)
|
|
104
|
+
return;
|
|
105
|
+
this._view.addTransientEntity(this._previewEntities);
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Removes every transient preview entity from the view.
|
|
109
|
+
*/
|
|
110
|
+
AcApRotateStaticJig.prototype.end = function () {
|
|
111
|
+
var _this = this;
|
|
112
|
+
this._previewEntities.forEach(function (entity) {
|
|
113
|
+
return _this._view.removeTransientEntity(entity.objectId);
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
return AcApRotateStaticJig;
|
|
117
|
+
}(AcEdPreviewJig));
|
|
118
|
+
/**
|
|
119
|
+
* ROTATE preview jig.
|
|
120
|
+
*
|
|
121
|
+
* It clones source entities once and applies only the incremental delta angle
|
|
122
|
+
* to those clones as the cursor moves, so database entities remain unchanged
|
|
123
|
+
* until command commit.
|
|
124
|
+
*/
|
|
125
|
+
var AcApRotatePreviewJig = /** @class */ (function (_super) {
|
|
126
|
+
__extends(AcApRotatePreviewJig, _super);
|
|
127
|
+
/**
|
|
128
|
+
* Creates a dynamic ROTATE preview jig.
|
|
129
|
+
*
|
|
130
|
+
* @param view - Active editor view that renders transient entities.
|
|
131
|
+
* @param sourceEntities - Original entities cloned for preview display.
|
|
132
|
+
* @param basePoint - Rotation base point.
|
|
133
|
+
* @param referenceAngleDeg - Reference angle in degrees used for reference-based rotation prompts.
|
|
134
|
+
*/
|
|
135
|
+
function AcApRotatePreviewJig(view, sourceEntities, basePoint, referenceAngleDeg) {
|
|
136
|
+
if (referenceAngleDeg === void 0) { referenceAngleDeg = 0; }
|
|
137
|
+
var _this = _super.call(this, view) || this;
|
|
138
|
+
_this._lastAngleRad = 0;
|
|
139
|
+
_this._view = view;
|
|
140
|
+
_this._basePoint = new AcGePoint3d(basePoint);
|
|
141
|
+
_this._referenceAngleDeg = referenceAngleDeg;
|
|
142
|
+
_this._previewEntities = sourceEntities
|
|
143
|
+
.map(function (entity) { return entity.clone(); })
|
|
144
|
+
.filter(function (entity) { return !!entity; });
|
|
145
|
+
return _this;
|
|
146
|
+
}
|
|
147
|
+
Object.defineProperty(AcApRotatePreviewJig.prototype, "entity", {
|
|
148
|
+
/**
|
|
149
|
+
* Gets the first transient preview entity required by the jig API.
|
|
150
|
+
*
|
|
151
|
+
* @returns First preview entity, or `null` when cloning failed.
|
|
152
|
+
*/
|
|
153
|
+
get: function () {
|
|
154
|
+
var _a;
|
|
155
|
+
return (_a = this._previewEntities[0]) !== null && _a !== void 0 ? _a : null;
|
|
156
|
+
},
|
|
157
|
+
enumerable: false,
|
|
158
|
+
configurable: true
|
|
159
|
+
});
|
|
160
|
+
/**
|
|
161
|
+
* Applies only the incremental rotation delta to preview clones.
|
|
162
|
+
*
|
|
163
|
+
* @param angleDeg - Current angle input in degrees from the editor prompt.
|
|
164
|
+
*/
|
|
165
|
+
AcApRotatePreviewJig.prototype.update = function (angleDeg) {
|
|
166
|
+
if (this._previewEntities.length === 0)
|
|
167
|
+
return;
|
|
168
|
+
var angleRad = ((angleDeg - this._referenceAngleDeg) * Math.PI) / 180;
|
|
169
|
+
var deltaRad = angleRad - this._lastAngleRad;
|
|
170
|
+
if (Math.abs(deltaRad) < ANGLE_EPSILON)
|
|
171
|
+
return;
|
|
172
|
+
var matrix = AcApRotateCmd.createRotationMatrix(this._basePoint, deltaRad);
|
|
173
|
+
this._previewEntities.forEach(function (entity) { return entity.transformBy(matrix); });
|
|
174
|
+
this._lastAngleRad = angleRad;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Adds rotated preview clones to the view as transient geometry.
|
|
178
|
+
*/
|
|
179
|
+
AcApRotatePreviewJig.prototype.render = function () {
|
|
180
|
+
if (this._previewEntities.length === 0)
|
|
181
|
+
return;
|
|
182
|
+
this._view.addTransientEntity(this._previewEntities);
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Removes transient preview clones from the view.
|
|
186
|
+
*/
|
|
187
|
+
AcApRotatePreviewJig.prototype.end = function () {
|
|
188
|
+
var _this = this;
|
|
189
|
+
this._previewEntities.forEach(function (entity) {
|
|
190
|
+
return _this._view.removeTransientEntity(entity.objectId);
|
|
191
|
+
});
|
|
192
|
+
};
|
|
193
|
+
return AcApRotatePreviewJig;
|
|
194
|
+
}(AcEdPreviewJig));
|
|
195
|
+
/**
|
|
196
|
+
* Command to rotate selected entities around a base point.
|
|
197
|
+
*
|
|
198
|
+
* Supported workflow:
|
|
199
|
+
* 1) Select entities (or reuse preselection),
|
|
200
|
+
* 2) Specify base point,
|
|
201
|
+
* 3) Specify rotation angle, or choose `Copy` / `Reference`,
|
|
202
|
+
* 4) Apply rotation to originals or append rotated copies.
|
|
203
|
+
*/
|
|
204
|
+
var AcApRotateCmd = /** @class */ (function (_super) {
|
|
205
|
+
__extends(AcApRotateCmd, _super);
|
|
206
|
+
/**
|
|
207
|
+
* Creates the ROTATE command and marks it as a review-mode command.
|
|
208
|
+
*/
|
|
209
|
+
function AcApRotateCmd() {
|
|
210
|
+
var _this = _super.call(this) || this;
|
|
211
|
+
_this.mode = AcEdOpenMode.Review;
|
|
212
|
+
return _this;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Builds a world-space rotation matrix around a given base point.
|
|
216
|
+
*
|
|
217
|
+
* @param basePoint - Rotation origin.
|
|
218
|
+
* @param angleRad - Rotation angle in radians.
|
|
219
|
+
* @returns Composite transform that rotates around `basePoint`.
|
|
220
|
+
*/
|
|
221
|
+
AcApRotateCmd.createRotationMatrix = function (basePoint, angleRad) {
|
|
222
|
+
return new AcGeMatrix3d()
|
|
223
|
+
.makeTranslation(basePoint.x, basePoint.y, basePoint.z)
|
|
224
|
+
.multiply(new AcGeMatrix3d().makeRotationZ(angleRad))
|
|
225
|
+
.multiply(new AcGeMatrix3d().makeTranslation(-basePoint.x, -basePoint.y, -basePoint.z));
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Adds one localized ROTATE keyword to an angle prompt.
|
|
229
|
+
*
|
|
230
|
+
* @param prompt - Angle prompt that should expose the keyword.
|
|
231
|
+
* @param key - Translation key suffix describing which keyword to add.
|
|
232
|
+
*/
|
|
233
|
+
AcApRotateCmd.prototype.addKeyword = function (prompt, key) {
|
|
234
|
+
prompt.keywords.add(AcApI18n.t("jig.rotate.keywords.".concat(key, ".display")), AcApI18n.t("jig.rotate.keywords.".concat(key, ".global")), AcApI18n.t("jig.rotate.keywords.".concat(key, ".local")));
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Shows a localized warning for invalid reference-point input.
|
|
238
|
+
*
|
|
239
|
+
* @param key - Warning message key suffix.
|
|
240
|
+
*/
|
|
241
|
+
AcApRotateCmd.prototype.warnInvalidInput = function (key) {
|
|
242
|
+
eventBus.emit('message', {
|
|
243
|
+
message: AcApI18n.t("jig.rotate.invalid.".concat(key)),
|
|
244
|
+
type: 'warning'
|
|
245
|
+
});
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Computes the planar direction angle from one point to another.
|
|
249
|
+
*
|
|
250
|
+
* @param start - Start/reference point.
|
|
251
|
+
* @param end - End/target point.
|
|
252
|
+
* @returns Direction angle in degrees, or `undefined` when points are coincident.
|
|
253
|
+
*/
|
|
254
|
+
AcApRotateCmd.prototype.computeAngleDeg = function (start, end) {
|
|
255
|
+
var dx = end.x - start.x;
|
|
256
|
+
var dy = end.y - start.y;
|
|
257
|
+
if (Math.hypot(dx, dy) < ANGLE_EPSILON)
|
|
258
|
+
return undefined;
|
|
259
|
+
return (Math.atan2(dy, dx) * 180) / Math.PI;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Prompts for a reference angle used by the ROTATE `Reference` option.
|
|
263
|
+
*
|
|
264
|
+
* The user can either enter the angle directly or define it from two points.
|
|
265
|
+
* When the point-based definition is degenerate, the command warns and asks again.
|
|
266
|
+
*
|
|
267
|
+
* @param context - Current application/document context.
|
|
268
|
+
* @param sourceEntities - Entities used to build transient preview geometry.
|
|
269
|
+
* @param basePoint - Rotation base point shared by subsequent angle prompts.
|
|
270
|
+
* @returns Reference angle in degrees, or `undefined` when input is canceled.
|
|
271
|
+
*/
|
|
272
|
+
AcApRotateCmd.prototype.promptReferenceAngle = function (context, sourceEntities, basePoint) {
|
|
273
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
274
|
+
var prompt_1, result, firstPrompt, firstResult, secondPrompt, secondResult, angle;
|
|
275
|
+
var _a;
|
|
276
|
+
return __generator(this, function (_b) {
|
|
277
|
+
switch (_b.label) {
|
|
278
|
+
case 0:
|
|
279
|
+
if (!true) return [3 /*break*/, 5];
|
|
280
|
+
prompt_1 = new AcEdPromptAngleOptions(AcApI18n.t('jig.rotate.referenceAngleOrPoints'));
|
|
281
|
+
this.addKeyword(prompt_1, 'points');
|
|
282
|
+
prompt_1.useBasePoint = true;
|
|
283
|
+
prompt_1.useDashedLine = true;
|
|
284
|
+
prompt_1.basePoint = basePoint;
|
|
285
|
+
prompt_1.allowNegative = true;
|
|
286
|
+
prompt_1.allowZero = true;
|
|
287
|
+
prompt_1.useDefaultValue = true;
|
|
288
|
+
prompt_1.defaultValue = 0;
|
|
289
|
+
prompt_1.jig = new AcApRotateStaticJig(context.view, sourceEntities);
|
|
290
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getAngle(prompt_1)];
|
|
291
|
+
case 1:
|
|
292
|
+
result = _b.sent();
|
|
293
|
+
if (result.status === AcEdPromptStatus.OK) {
|
|
294
|
+
return [2 /*return*/, (_a = result.value) !== null && _a !== void 0 ? _a : 0];
|
|
295
|
+
}
|
|
296
|
+
if (!(result.status === AcEdPromptStatus.Keyword &&
|
|
297
|
+
result.stringResult === 'Points')) return [3 /*break*/, 4];
|
|
298
|
+
firstPrompt = new AcEdPromptPointOptions(AcApI18n.t('jig.rotate.firstReferencePoint'));
|
|
299
|
+
firstPrompt.jig = new AcApRotateStaticJig(context.view, sourceEntities);
|
|
300
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(firstPrompt)];
|
|
301
|
+
case 2:
|
|
302
|
+
firstResult = _b.sent();
|
|
303
|
+
if (firstResult.status !== AcEdPromptStatus.OK)
|
|
304
|
+
return [2 /*return*/, undefined];
|
|
305
|
+
secondPrompt = new AcEdPromptPointOptions(AcApI18n.t('jig.rotate.secondReferencePoint'));
|
|
306
|
+
secondPrompt.useBasePoint = true;
|
|
307
|
+
secondPrompt.useDashedLine = true;
|
|
308
|
+
secondPrompt.basePoint = new AcGePoint3d(firstResult.value);
|
|
309
|
+
secondPrompt.jig = new AcApRotateStaticJig(context.view, sourceEntities);
|
|
310
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(secondPrompt)];
|
|
311
|
+
case 3:
|
|
312
|
+
secondResult = _b.sent();
|
|
313
|
+
if (secondResult.status !== AcEdPromptStatus.OK)
|
|
314
|
+
return [2 /*return*/, undefined];
|
|
315
|
+
angle = this.computeAngleDeg(firstResult.value, secondResult.value);
|
|
316
|
+
if (angle == null) {
|
|
317
|
+
this.warnInvalidInput('referencePoints');
|
|
318
|
+
return [3 /*break*/, 0];
|
|
319
|
+
}
|
|
320
|
+
return [2 /*return*/, angle];
|
|
321
|
+
case 4: return [2 /*return*/, undefined];
|
|
322
|
+
case 5: return [2 /*return*/];
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
};
|
|
327
|
+
/**
|
|
328
|
+
* Prompts for the final rotation angle and optional ROTATE sub-modes.
|
|
329
|
+
*
|
|
330
|
+
* The prompt supports `Copy` to preserve originals and `Reference` to derive
|
|
331
|
+
* the final rotation from an existing angle and a new target angle.
|
|
332
|
+
*
|
|
333
|
+
* @param context - Current application/document context.
|
|
334
|
+
* @param sourceEntities - Entities selected for rotation.
|
|
335
|
+
* @param basePoint - Rotation base point.
|
|
336
|
+
* @returns Rotation settings, or `undefined` when input is canceled.
|
|
337
|
+
*/
|
|
338
|
+
AcApRotateCmd.prototype.promptRotationAngle = function (context, sourceEntities, basePoint) {
|
|
339
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
340
|
+
var copyMode, prompt_2, result, keyword, referenceAngleDeg, newAnglePrompt, newAngleResult;
|
|
341
|
+
var _a, _b, _c;
|
|
342
|
+
return __generator(this, function (_d) {
|
|
343
|
+
switch (_d.label) {
|
|
344
|
+
case 0:
|
|
345
|
+
copyMode = false;
|
|
346
|
+
_d.label = 1;
|
|
347
|
+
case 1:
|
|
348
|
+
if (!true) return [3 /*break*/, 5];
|
|
349
|
+
prompt_2 = new AcEdPromptAngleOptions(AcApI18n.t('jig.rotate.rotationAngleOrOptions'));
|
|
350
|
+
this.addKeyword(prompt_2, 'copy');
|
|
351
|
+
this.addKeyword(prompt_2, 'reference');
|
|
352
|
+
prompt_2.useBasePoint = true;
|
|
353
|
+
prompt_2.useDashedLine = true;
|
|
354
|
+
prompt_2.basePoint = basePoint;
|
|
355
|
+
prompt_2.allowNegative = true;
|
|
356
|
+
prompt_2.allowZero = true;
|
|
357
|
+
prompt_2.jig = new AcApRotatePreviewJig(context.view, sourceEntities, basePoint);
|
|
358
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getAngle(prompt_2)];
|
|
359
|
+
case 2:
|
|
360
|
+
result = _d.sent();
|
|
361
|
+
if (result.status === AcEdPromptStatus.OK) {
|
|
362
|
+
return [2 /*return*/, {
|
|
363
|
+
copyMode: copyMode,
|
|
364
|
+
angleRad: (((_a = result.value) !== null && _a !== void 0 ? _a : 0) * Math.PI) / 180
|
|
365
|
+
}];
|
|
366
|
+
}
|
|
367
|
+
if (result.status !== AcEdPromptStatus.Keyword)
|
|
368
|
+
return [2 /*return*/, undefined];
|
|
369
|
+
keyword = (_b = result.stringResult) !== null && _b !== void 0 ? _b : '';
|
|
370
|
+
if (keyword === 'Copy') {
|
|
371
|
+
copyMode = true;
|
|
372
|
+
return [3 /*break*/, 1];
|
|
373
|
+
}
|
|
374
|
+
if (keyword !== 'Reference')
|
|
375
|
+
return [2 /*return*/, undefined];
|
|
376
|
+
return [4 /*yield*/, this.promptReferenceAngle(context, sourceEntities, basePoint)];
|
|
377
|
+
case 3:
|
|
378
|
+
referenceAngleDeg = _d.sent();
|
|
379
|
+
if (referenceAngleDeg == null)
|
|
380
|
+
return [2 /*return*/, undefined];
|
|
381
|
+
newAnglePrompt = new AcEdPromptAngleOptions(AcApI18n.t('jig.rotate.newAngle'));
|
|
382
|
+
newAnglePrompt.useBasePoint = true;
|
|
383
|
+
newAnglePrompt.useDashedLine = true;
|
|
384
|
+
newAnglePrompt.basePoint = basePoint;
|
|
385
|
+
newAnglePrompt.allowNegative = true;
|
|
386
|
+
newAnglePrompt.allowZero = true;
|
|
387
|
+
newAnglePrompt.jig = new AcApRotatePreviewJig(context.view, sourceEntities, basePoint, referenceAngleDeg);
|
|
388
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getAngle(newAnglePrompt)];
|
|
389
|
+
case 4:
|
|
390
|
+
newAngleResult = _d.sent();
|
|
391
|
+
if (newAngleResult.status !== AcEdPromptStatus.OK)
|
|
392
|
+
return [2 /*return*/, undefined];
|
|
393
|
+
return [2 /*return*/, {
|
|
394
|
+
copyMode: copyMode,
|
|
395
|
+
angleRad: ((((_c = newAngleResult.value) !== null && _c !== void 0 ? _c : 0) - referenceAngleDeg) * Math.PI) / 180
|
|
396
|
+
}];
|
|
397
|
+
case 5: return [2 /*return*/];
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* Executes ROTATE using selection reuse, base-point input, and angle prompts.
|
|
404
|
+
*
|
|
405
|
+
* The command rotates the original entities in place unless the user chooses
|
|
406
|
+
* `Copy`, in which case rotated clones are appended to model space instead.
|
|
407
|
+
*
|
|
408
|
+
* @param context - Current application/document context.
|
|
409
|
+
*/
|
|
410
|
+
AcApRotateCmd.prototype.execute = function (context) {
|
|
411
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
412
|
+
var selectionSet, annotation, blockTable, selectionIds, _a, ids, sourceEntities, basePointPrompt, basePointResult, basePoint, rotation, matrix, clones;
|
|
413
|
+
var _b, _c;
|
|
414
|
+
return __generator(this, function (_d) {
|
|
415
|
+
switch (_d.label) {
|
|
416
|
+
case 0:
|
|
417
|
+
selectionSet = context.view.selectionSet;
|
|
418
|
+
annotation = new AcApAnnotation(context.doc.database);
|
|
419
|
+
blockTable = context.doc.database.tables.blockTable;
|
|
420
|
+
if (!(selectionSet.count > 0)) return [3 /*break*/, 1];
|
|
421
|
+
_a = selectionSet.ids;
|
|
422
|
+
return [3 /*break*/, 3];
|
|
423
|
+
case 1: return [4 /*yield*/, AcApDocManager.instance.editor.getSelection(new AcEdPromptSelectionOptions(AcApI18n.sysCmdPrompt('rotate')))];
|
|
424
|
+
case 2:
|
|
425
|
+
_a = ((_c = (_b = (_d.sent()).value) === null || _b === void 0 ? void 0 : _b.ids) !== null && _c !== void 0 ? _c : []);
|
|
426
|
+
_d.label = 3;
|
|
427
|
+
case 3:
|
|
428
|
+
selectionIds = _a;
|
|
429
|
+
if (selectionIds.length === 0)
|
|
430
|
+
return [2 /*return*/];
|
|
431
|
+
ids = context.doc.openMode == AcEdOpenMode.Review
|
|
432
|
+
? annotation.filterAnnotationEntities(selectionIds)
|
|
433
|
+
: selectionIds;
|
|
434
|
+
if (ids.length === 0) {
|
|
435
|
+
selectionSet.clear();
|
|
436
|
+
return [2 /*return*/];
|
|
437
|
+
}
|
|
438
|
+
sourceEntities = ids
|
|
439
|
+
.map(function (id) { return blockTable.getEntityById(id); })
|
|
440
|
+
.filter(function (entity) { return !!entity; });
|
|
441
|
+
if (sourceEntities.length === 0) {
|
|
442
|
+
selectionSet.clear();
|
|
443
|
+
return [2 /*return*/];
|
|
444
|
+
}
|
|
445
|
+
basePointPrompt = new AcEdPromptPointOptions(AcApI18n.t('jig.rotate.basePoint'));
|
|
446
|
+
basePointPrompt.jig = new AcApRotateStaticJig(context.view, sourceEntities);
|
|
447
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(basePointPrompt)];
|
|
448
|
+
case 4:
|
|
449
|
+
basePointResult = _d.sent();
|
|
450
|
+
if (basePointResult.status !== AcEdPromptStatus.OK) {
|
|
451
|
+
selectionSet.clear();
|
|
452
|
+
return [2 /*return*/];
|
|
453
|
+
}
|
|
454
|
+
basePoint = new AcGePoint3d(basePointResult.value);
|
|
455
|
+
return [4 /*yield*/, this.promptRotationAngle(context, sourceEntities, basePoint)];
|
|
456
|
+
case 5:
|
|
457
|
+
rotation = _d.sent();
|
|
458
|
+
if (!rotation) {
|
|
459
|
+
selectionSet.clear();
|
|
460
|
+
return [2 /*return*/];
|
|
461
|
+
}
|
|
462
|
+
matrix = AcApRotateCmd.createRotationMatrix(basePoint, rotation.angleRad);
|
|
463
|
+
if (rotation.copyMode) {
|
|
464
|
+
clones = sourceEntities
|
|
465
|
+
.map(function (entity) { return entity.clone(); })
|
|
466
|
+
.filter(function (entity) { return !!entity; });
|
|
467
|
+
clones.forEach(function (entity) { return entity.transformBy(matrix); });
|
|
468
|
+
if (clones.length > 0) {
|
|
469
|
+
blockTable.modelSpace.appendEntity(clones);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
else {
|
|
473
|
+
sourceEntities.forEach(function (entity) {
|
|
474
|
+
entity.transformBy(matrix);
|
|
475
|
+
entity.triggerModifiedEvent();
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
selectionSet.clear();
|
|
479
|
+
return [2 /*return*/];
|
|
480
|
+
}
|
|
481
|
+
});
|
|
482
|
+
});
|
|
483
|
+
};
|
|
484
|
+
return AcApRotateCmd;
|
|
485
|
+
}(AcEdCommand));
|
|
486
|
+
export { AcApRotateCmd };
|
|
487
|
+
//# sourceMappingURL=AcApRotateCmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApRotateCmd.js","sourceRoot":"","sources":["../../../src/command/modify/AcApRotateCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAEL,YAAY,EACZ,WAAW,EAEZ,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,cAAc,EAAe,cAAc,EAAE,MAAM,WAAW,CAAA;AACvE,OAAO,EAEL,WAAW,EACX,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,gBAAgB,EAChB,QAAQ,EACT,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,IAAM,aAAa,GAAG,IAAI,CAAA;AAE1B;;;;GAIG;AACH;IAAqC,uCAAiB;IAIpD;;;;;OAKG;IACH,6BAAY,IAAkB,EAAE,cAA4B;QAC1D,YAAA,MAAK,YAAC,IAAI,CAAC,SAAA;QACX,KAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,KAAI,CAAC,gBAAgB,GAAG,cAAc;aACnC,GAAG,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,KAAK,EAAE,EAAd,CAAc,CAAC;aAC7B,MAAM,CAAC,UAAC,MAAM,IAA2B,OAAA,CAAC,CAAC,MAAM,EAAR,CAAQ,CAAC,CAAA;;IACvD,CAAC;IAOD,sBAAI,uCAAM;QALV;;;;WAIG;aACH;;YACE,OAAO,MAAA,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,mCAAI,IAAI,CAAA;QACzC,CAAC;;;OAAA;IAED;;;;OAIG;IACH,oCAAM,GAAN,UAAO,M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AAC,OAAO,CAAC,UAAA,MAAM;gCAC3B,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;gCAC1B,MAAM,CAAC,oBAAoB,EAAE,CAAA;4BAC/B,CAAC,CAAC,CAAA;wBACJ,CAAC;wBAED,YAAY,CAAC,KAAK,EAAE,CAAA;;;;;KACrB;IACH,oBAAC;AAAD,CAAC,AAvUD,CAAmC,WAAW,GAuU7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/command/modify/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/command/modify/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApBaseRevCmd.d.ts","sourceRoot":"","sources":["../../../src/command/review/AcApBaseRevCmd.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,WAAW,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,WAAW,EAAgB,MAAM,cAAc,CAAA;AAExD;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,OAAO,CAAC,cAAc,CAAC,CAAQ;IAC/B;;OAEG;IACH,OAAO,CAAC,cAAc,CAAC,CAAQ;IAC/B;;OAEG;IACH,OAAO,CAAC,gBAAgB,CAAC,CAAQ;IACjC;;OAEG;IACH,OAAO,CAAC,kBAAkB,CAAC,CAAgB;IAC3C;;OAEG;IACH,OAAO,CAAC,6BAA6B,CAAS;;IAQ9C;;OAEG;IACH,IAAI,4BAA4B,IAGQ,OAAO,CAD9C;IACD,IAAI,4BAA4B,CAAC,KAAK,EAAE,OAAO,EAE9C;IAED,SAAS,CAAC,kBAAkB,CAAC,OAAO,EAAE,WAAW;IAUjD,SAAS,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW;CAU9C"}
|
|
@@ -14,8 +14,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
};
|
|
15
15
|
})();
|
|
16
16
|
import { AcCmColor } from '@mlightcad/data-model';
|
|
17
|
-
import { AcApAnnotation } from '
|
|
18
|
-
import { AcEdCommand, AcEdOpenMode } from '
|
|
17
|
+
import { AcApAnnotation } from '../../app';
|
|
18
|
+
import { AcEdCommand, AcEdOpenMode } from '../../editor';
|
|
19
19
|
/**
|
|
20
20
|
* Base command for revision commands.
|
|
21
21
|
*/
|