@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,549 @@
|
|
|
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
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
53
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
54
|
+
if (!m) return o;
|
|
55
|
+
var i = m.call(o), r, ar = [], e;
|
|
56
|
+
try {
|
|
57
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
58
|
+
}
|
|
59
|
+
catch (error) { e = { error: error }; }
|
|
60
|
+
finally {
|
|
61
|
+
try {
|
|
62
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
63
|
+
}
|
|
64
|
+
finally { if (e) throw e.error; }
|
|
65
|
+
}
|
|
66
|
+
return ar;
|
|
67
|
+
};
|
|
68
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
69
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
70
|
+
if (ar || !(i in from)) {
|
|
71
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
72
|
+
ar[i] = from[i];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
76
|
+
};
|
|
77
|
+
import { AcGeMatrix3d, AcGePoint3d } from '@mlightcad/data-model';
|
|
78
|
+
import { AcApAnnotation, AcApDocManager } from '../../app';
|
|
79
|
+
import { AcEdCommand, AcEdOpenMode, AcEdPreviewJig, AcEdPromptIntegerOptions, AcEdPromptKeywordOptions, AcEdPromptPointOptions, AcEdPromptSelectionOptions, AcEdPromptStatus } from '../../editor';
|
|
80
|
+
import { AcApI18n } from '../../i18n';
|
|
81
|
+
/**
|
|
82
|
+
* COPY preview jig.
|
|
83
|
+
*
|
|
84
|
+
* It clones the source entities once and keeps those transient copies moving
|
|
85
|
+
* with the cursor. For array previews, each clone batch uses a different
|
|
86
|
+
* displacement multiplier so users can see the full result before committing.
|
|
87
|
+
*/
|
|
88
|
+
var AcApCopyPreviewJig = /** @class */ (function (_super) {
|
|
89
|
+
__extends(AcApCopyPreviewJig, _super);
|
|
90
|
+
/**
|
|
91
|
+
* Creates a transient COPY preview jig.
|
|
92
|
+
*
|
|
93
|
+
* @param view - Active editor view that owns transient preview entities.
|
|
94
|
+
* @param sourceEntities - Original entities used as clone sources.
|
|
95
|
+
* @param basePoint - Copy base point from which cursor displacement is measured.
|
|
96
|
+
* @param copyCount - Number of preview placements to show.
|
|
97
|
+
* @param fitMode - Whether copies should be evenly distributed between base and end points.
|
|
98
|
+
*/
|
|
99
|
+
function AcApCopyPreviewJig(view, sourceEntities, basePoint, copyCount, fitMode) {
|
|
100
|
+
if (copyCount === void 0) { copyCount = 1; }
|
|
101
|
+
if (fitMode === void 0) { fitMode = false; }
|
|
102
|
+
var _this = _super.call(this, view) || this;
|
|
103
|
+
_this._view = view;
|
|
104
|
+
_this._basePoint = new AcGePoint3d(basePoint);
|
|
105
|
+
_this._copyCount = Math.max(0, copyCount);
|
|
106
|
+
_this._fitMode = fitMode;
|
|
107
|
+
_this._previewItems = [];
|
|
108
|
+
var _loop_1 = function (factor) {
|
|
109
|
+
sourceEntities
|
|
110
|
+
.map(function (entity) { return entity.clone(); })
|
|
111
|
+
.filter(function (entity) { return !!entity; })
|
|
112
|
+
.forEach(function (entity) {
|
|
113
|
+
_this._previewItems.push({
|
|
114
|
+
entity: entity,
|
|
115
|
+
factor: factor,
|
|
116
|
+
lastDisplacement: new AcGePoint3d(0, 0, 0)
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
for (var factor = 1; factor <= _this._copyCount; factor++) {
|
|
121
|
+
_loop_1(factor);
|
|
122
|
+
}
|
|
123
|
+
return _this;
|
|
124
|
+
}
|
|
125
|
+
Object.defineProperty(AcApCopyPreviewJig.prototype, "entity", {
|
|
126
|
+
/**
|
|
127
|
+
* Gets the first preview entity so the jig can satisfy the editor API contract.
|
|
128
|
+
*
|
|
129
|
+
* @returns First transient clone, or `null` when nothing could be cloned.
|
|
130
|
+
*/
|
|
131
|
+
get: function () {
|
|
132
|
+
var _a, _b;
|
|
133
|
+
return (_b = (_a = this._previewItems[0]) === null || _a === void 0 ? void 0 : _a.entity) !== null && _b !== void 0 ? _b : null;
|
|
134
|
+
},
|
|
135
|
+
enumerable: false,
|
|
136
|
+
configurable: true
|
|
137
|
+
});
|
|
138
|
+
/**
|
|
139
|
+
* Moves each transient clone to its latest preview displacement.
|
|
140
|
+
*
|
|
141
|
+
* The input point is interpreted as the current placement point. Each preview
|
|
142
|
+
* batch then applies either a direct multiple of the displacement or a
|
|
143
|
+
* normalized fit displacement, depending on the current array mode.
|
|
144
|
+
*
|
|
145
|
+
* @param point - Current cursor point supplied by the prompt/jig system.
|
|
146
|
+
*/
|
|
147
|
+
AcApCopyPreviewJig.prototype.update = function (point) {
|
|
148
|
+
var _this = this;
|
|
149
|
+
if (this._previewItems.length === 0)
|
|
150
|
+
return;
|
|
151
|
+
var displacement = new AcGePoint3d(point.x - this._basePoint.x, point.y - this._basePoint.y, point.z - this._basePoint.z);
|
|
152
|
+
this._previewItems.forEach(function (item) {
|
|
153
|
+
var desired = _this.scaleDisplacement(displacement, item.factor);
|
|
154
|
+
var delta = new AcGePoint3d(desired.x - item.lastDisplacement.x, desired.y - item.lastDisplacement.y, desired.z - item.lastDisplacement.z);
|
|
155
|
+
if (delta.x === 0 && delta.y === 0 && delta.z === 0)
|
|
156
|
+
return;
|
|
157
|
+
item.entity.transformBy(new AcGeMatrix3d().makeTranslation(delta.x, delta.y, delta.z));
|
|
158
|
+
item.lastDisplacement = desired;
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Adds all preview clones to the view as transient geometry.
|
|
163
|
+
*/
|
|
164
|
+
AcApCopyPreviewJig.prototype.render = function () {
|
|
165
|
+
if (this._previewItems.length === 0)
|
|
166
|
+
return;
|
|
167
|
+
this._view.addTransientEntity(this._previewItems.map(function (item) { return item.entity; }));
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Removes every transient preview clone from the view.
|
|
171
|
+
*/
|
|
172
|
+
AcApCopyPreviewJig.prototype.end = function () {
|
|
173
|
+
var _this = this;
|
|
174
|
+
this._previewItems.forEach(function (item) {
|
|
175
|
+
return _this._view.removeTransientEntity(item.entity.objectId);
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Computes the displacement assigned to one preview copy.
|
|
180
|
+
*
|
|
181
|
+
* @param displacement - Raw cursor displacement from the base point.
|
|
182
|
+
* @param factor - One-based copy index used to scale the displacement.
|
|
183
|
+
* @returns Scaled displacement for the indexed preview clone.
|
|
184
|
+
*/
|
|
185
|
+
AcApCopyPreviewJig.prototype.scaleDisplacement = function (displacement, factor) {
|
|
186
|
+
var scale = this._fitMode && this._copyCount > 0 ? factor / this._copyCount : factor;
|
|
187
|
+
return new AcGePoint3d(displacement.x * scale, displacement.y * scale, displacement.z * scale);
|
|
188
|
+
};
|
|
189
|
+
return AcApCopyPreviewJig;
|
|
190
|
+
}(AcEdPreviewJig));
|
|
191
|
+
/**
|
|
192
|
+
* Command to copy selected entities by cloning and translating them.
|
|
193
|
+
*
|
|
194
|
+
* Supported AutoCAD-like workflow:
|
|
195
|
+
* 1) Select entities (or reuse preselection),
|
|
196
|
+
* 2) Specify base point or choose `Displacement` / `Mode` / `Multiple`,
|
|
197
|
+
* 3) Specify placement point, or create an evenly spaced array,
|
|
198
|
+
* 4) Append cloned copies without modifying the originals.
|
|
199
|
+
*/
|
|
200
|
+
var AcApCopyCmd = /** @class */ (function (_super) {
|
|
201
|
+
__extends(AcApCopyCmd, _super);
|
|
202
|
+
/**
|
|
203
|
+
* Creates the COPY command and marks it as a review-mode command.
|
|
204
|
+
*/
|
|
205
|
+
function AcApCopyCmd() {
|
|
206
|
+
var _this = _super.call(this) || this;
|
|
207
|
+
_this.mode = AcEdOpenMode.Review;
|
|
208
|
+
return _this;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Adds one localized keyword entry to a point/keyword prompt.
|
|
212
|
+
*
|
|
213
|
+
* @param prompt - Prompt instance that should expose the keyword.
|
|
214
|
+
* @param key - Translation key suffix describing which keyword to add.
|
|
215
|
+
*/
|
|
216
|
+
AcApCopyCmd.prototype.addKeyword = function (prompt, key) {
|
|
217
|
+
prompt.keywords.add(AcApI18n.t("jig.copy.keywords.".concat(key, ".display")), AcApI18n.t("jig.copy.keywords.".concat(key, ".global")), AcApI18n.t("jig.copy.keywords.".concat(key, ".local")));
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Computes the vector from a copy base point to a target point.
|
|
221
|
+
*
|
|
222
|
+
* @param basePoint - Copy base point.
|
|
223
|
+
* @param targetPoint - Destination point selected by the user.
|
|
224
|
+
* @returns Translation vector that moves a clone from base to target.
|
|
225
|
+
*/
|
|
226
|
+
AcApCopyCmd.prototype.computeDisplacement = function (basePoint, targetPoint) {
|
|
227
|
+
return new AcGePoint3d(targetPoint.x - basePoint.x, targetPoint.y - basePoint.y, targetPoint.z - basePoint.z);
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Scales a displacement for one copy in a repeated copy/array operation.
|
|
231
|
+
*
|
|
232
|
+
* @param displacement - Raw placement displacement from the base point.
|
|
233
|
+
* @param factor - One-based copy index.
|
|
234
|
+
* @param copyCount - Total number of copies to generate.
|
|
235
|
+
* @param fitMode - Whether indexed copies should be distributed across the full span.
|
|
236
|
+
* @returns Displacement assigned to the requested copy index.
|
|
237
|
+
*/
|
|
238
|
+
AcApCopyCmd.prototype.scaleDisplacement = function (displacement, factor, copyCount, fitMode) {
|
|
239
|
+
var scale = fitMode && copyCount > 0 ? factor / copyCount : factor;
|
|
240
|
+
return new AcGePoint3d(displacement.x * scale, displacement.y * scale, displacement.z * scale);
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Clones source entities and translates each clone batch into its final position.
|
|
244
|
+
*
|
|
245
|
+
* @param sourceEntities - Entities to duplicate.
|
|
246
|
+
* @param displacement - Raw placement displacement from base point to end point.
|
|
247
|
+
* @param copyCount - Number of translated copy batches to produce.
|
|
248
|
+
* @param fitMode - Whether batches should be distributed evenly across the full displacement.
|
|
249
|
+
* @returns Newly cloned and transformed entities ready to append to model space.
|
|
250
|
+
*/
|
|
251
|
+
AcApCopyCmd.prototype.buildCopies = function (sourceEntities, displacement, copyCount, fitMode) {
|
|
252
|
+
if (copyCount === void 0) { copyCount = 1; }
|
|
253
|
+
if (fitMode === void 0) { fitMode = false; }
|
|
254
|
+
var copies = [];
|
|
255
|
+
var _loop_2 = function (factor) {
|
|
256
|
+
var batch = sourceEntities
|
|
257
|
+
.map(function (entity) { return entity.clone(); })
|
|
258
|
+
.filter(function (entity) { return !!entity; });
|
|
259
|
+
var stepDisplacement = this_1.scaleDisplacement(displacement, factor, copyCount, fitMode);
|
|
260
|
+
var matrix = new AcGeMatrix3d().makeTranslation(stepDisplacement.x, stepDisplacement.y, stepDisplacement.z);
|
|
261
|
+
batch.forEach(function (entity) { return entity.transformBy(matrix); });
|
|
262
|
+
copies.push.apply(copies, __spreadArray([], __read(batch), false));
|
|
263
|
+
};
|
|
264
|
+
var this_1 = this;
|
|
265
|
+
for (var factor = 1; factor <= copyCount; factor++) {
|
|
266
|
+
_loop_2(factor);
|
|
267
|
+
}
|
|
268
|
+
return copies;
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* Prompts the user to choose between single-copy and repeated-copy behavior.
|
|
272
|
+
*
|
|
273
|
+
* @param currentMode - Mode shown as the current default in the prompt.
|
|
274
|
+
* @returns Selected mode, the current mode on empty input, or `undefined` on cancel/error.
|
|
275
|
+
*/
|
|
276
|
+
AcApCopyCmd.prototype.promptCopyMode = function (currentMode) {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
278
|
+
var prompt, result, keyword;
|
|
279
|
+
var _a;
|
|
280
|
+
return __generator(this, function (_b) {
|
|
281
|
+
switch (_b.label) {
|
|
282
|
+
case 0:
|
|
283
|
+
prompt = new AcEdPromptKeywordOptions("".concat(AcApI18n.t('jig.copy.modePrompt'), " <").concat(currentMode, ">"));
|
|
284
|
+
prompt.allowNone = true;
|
|
285
|
+
this.addKeyword(prompt, 'single');
|
|
286
|
+
this.addKeyword(prompt, 'multiple');
|
|
287
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getKeywords(prompt)];
|
|
288
|
+
case 1:
|
|
289
|
+
result = _b.sent();
|
|
290
|
+
if (result.status === AcEdPromptStatus.None) {
|
|
291
|
+
return [2 /*return*/, currentMode];
|
|
292
|
+
}
|
|
293
|
+
if (result.status !== AcEdPromptStatus.OK) {
|
|
294
|
+
return [2 /*return*/, undefined];
|
|
295
|
+
}
|
|
296
|
+
keyword = (_a = result.stringResult) !== null && _a !== void 0 ? _a : '';
|
|
297
|
+
if (keyword === 'Single' || keyword === 'Multiple') {
|
|
298
|
+
return [2 /*return*/, keyword];
|
|
299
|
+
}
|
|
300
|
+
return [2 /*return*/, currentMode];
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* Collects array placement settings for the `Array` COPY option.
|
|
307
|
+
*
|
|
308
|
+
* The routine first asks for the number of items, then asks for the final
|
|
309
|
+
* placement point. If the user chooses `Fit`, the returned placement marks
|
|
310
|
+
* copies as evenly distributed across the overall span.
|
|
311
|
+
*
|
|
312
|
+
* @param context - Current application/document context.
|
|
313
|
+
* @param sourceEntities - Entities used to build the transient preview.
|
|
314
|
+
* @param basePoint - Array start point shared by all placements.
|
|
315
|
+
* @returns Array placement settings, or `undefined` when input is canceled.
|
|
316
|
+
*/
|
|
317
|
+
AcApCopyCmd.prototype.promptArrayPlacement = function (context, sourceEntities, basePoint) {
|
|
318
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
319
|
+
var itemCountPrompt, itemCountResult, itemCount, copyCount, pointPrompt, pointResult, fitPrompt, fitResult;
|
|
320
|
+
var _a;
|
|
321
|
+
return __generator(this, function (_b) {
|
|
322
|
+
switch (_b.label) {
|
|
323
|
+
case 0:
|
|
324
|
+
itemCountPrompt = new AcEdPromptIntegerOptions(AcApI18n.t('jig.copy.arrayItemCount'), 2);
|
|
325
|
+
itemCountPrompt.lowerLimit = 2;
|
|
326
|
+
itemCountPrompt.allowNegative = false;
|
|
327
|
+
itemCountPrompt.allowZero = false;
|
|
328
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getInteger(itemCountPrompt)];
|
|
329
|
+
case 1:
|
|
330
|
+
itemCountResult = _b.sent();
|
|
331
|
+
if (itemCountResult.status !== AcEdPromptStatus.OK) {
|
|
332
|
+
return [2 /*return*/, undefined];
|
|
333
|
+
}
|
|
334
|
+
itemCount = (_a = itemCountResult.value) !== null && _a !== void 0 ? _a : 2;
|
|
335
|
+
copyCount = Math.max(1, itemCount - 1);
|
|
336
|
+
_b.label = 2;
|
|
337
|
+
case 2:
|
|
338
|
+
if (!true) return [3 /*break*/, 6];
|
|
339
|
+
pointPrompt = new AcEdPromptPointOptions(AcApI18n.t('jig.copy.arraySecondPointOrFit'));
|
|
340
|
+
this.addKeyword(pointPrompt, 'fit');
|
|
341
|
+
pointPrompt.useBasePoint = true;
|
|
342
|
+
pointPrompt.useDashedLine = true;
|
|
343
|
+
pointPrompt.basePoint = basePoint;
|
|
344
|
+
pointPrompt.jig = new AcApCopyPreviewJig(context.view, sourceEntities, basePoint, copyCount);
|
|
345
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(pointPrompt)];
|
|
346
|
+
case 3:
|
|
347
|
+
pointResult = _b.sent();
|
|
348
|
+
if (pointResult.status === AcEdPromptStatus.OK) {
|
|
349
|
+
return [2 /*return*/, {
|
|
350
|
+
copyCount: copyCount,
|
|
351
|
+
endPoint: new AcGePoint3d(pointResult.value),
|
|
352
|
+
fitMode: false
|
|
353
|
+
}];
|
|
354
|
+
}
|
|
355
|
+
if (!(pointResult.status === AcEdPromptStatus.Keyword &&
|
|
356
|
+
pointResult.stringResult === 'Fit')) return [3 /*break*/, 5];
|
|
357
|
+
fitPrompt = new AcEdPromptPointOptions(AcApI18n.t('jig.copy.arrayFitSecondPoint'));
|
|
358
|
+
fitPrompt.useBasePoint = true;
|
|
359
|
+
fitPrompt.useDashedLine = true;
|
|
360
|
+
fitPrompt.basePoint = basePoint;
|
|
361
|
+
fitPrompt.jig = new AcApCopyPreviewJig(context.view, sourceEntities, basePoint, copyCount, true);
|
|
362
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(fitPrompt)];
|
|
363
|
+
case 4:
|
|
364
|
+
fitResult = _b.sent();
|
|
365
|
+
if (fitResult.status === AcEdPromptStatus.OK) {
|
|
366
|
+
return [2 /*return*/, {
|
|
367
|
+
copyCount: copyCount,
|
|
368
|
+
endPoint: new AcGePoint3d(fitResult.value),
|
|
369
|
+
fitMode: true
|
|
370
|
+
}];
|
|
371
|
+
}
|
|
372
|
+
_b.label = 5;
|
|
373
|
+
case 5: return [2 /*return*/, undefined];
|
|
374
|
+
case 6: return [2 /*return*/];
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* Runs the placement loop that repeatedly creates copies until the command ends.
|
|
381
|
+
*
|
|
382
|
+
* @param context - Current application/document context.
|
|
383
|
+
* @param sourceEntities - Entities selected for copying.
|
|
384
|
+
* @param basePoint - Base/displacement point used by the current copy session.
|
|
385
|
+
* @param copyMode - Whether the loop should stop after one placement or continue.
|
|
386
|
+
* @param useDisplacementPrompt - Whether prompt text should describe displacement instead of second point placement.
|
|
387
|
+
*/
|
|
388
|
+
AcApCopyCmd.prototype.executeCopyLoop = function (context_1, sourceEntities_1, basePoint_1, copyMode_1) {
|
|
389
|
+
return __awaiter(this, arguments, void 0, function (context, sourceEntities, basePoint, copyMode, useDisplacementPrompt) {
|
|
390
|
+
var blockTable, pointPrompt, pointResult, copies, placement, copies;
|
|
391
|
+
if (useDisplacementPrompt === void 0) { useDisplacementPrompt = false; }
|
|
392
|
+
return __generator(this, function (_a) {
|
|
393
|
+
switch (_a.label) {
|
|
394
|
+
case 0:
|
|
395
|
+
blockTable = context.doc.database.tables.blockTable;
|
|
396
|
+
_a.label = 1;
|
|
397
|
+
case 1:
|
|
398
|
+
if (!true) return [3 /*break*/, 5];
|
|
399
|
+
pointPrompt = new AcEdPromptPointOptions(AcApI18n.t(useDisplacementPrompt
|
|
400
|
+
? 'jig.copy.displacementOrArray'
|
|
401
|
+
: 'jig.copy.secondPointOrArray'));
|
|
402
|
+
this.addKeyword(pointPrompt, 'array');
|
|
403
|
+
pointPrompt.useBasePoint = true;
|
|
404
|
+
pointPrompt.useDashedLine = true;
|
|
405
|
+
pointPrompt.basePoint = basePoint;
|
|
406
|
+
pointPrompt.allowNone = copyMode === 'Multiple';
|
|
407
|
+
pointPrompt.jig = new AcApCopyPreviewJig(context.view, sourceEntities, basePoint);
|
|
408
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(pointPrompt)];
|
|
409
|
+
case 2:
|
|
410
|
+
pointResult = _a.sent();
|
|
411
|
+
if (pointResult.status === AcEdPromptStatus.OK) {
|
|
412
|
+
copies = this.buildCopies(sourceEntities, this.computeDisplacement(basePoint, pointResult.value));
|
|
413
|
+
if (copies.length > 0) {
|
|
414
|
+
blockTable.modelSpace.appendEntity(copies);
|
|
415
|
+
}
|
|
416
|
+
if (copyMode === 'Single')
|
|
417
|
+
return [2 /*return*/];
|
|
418
|
+
return [3 /*break*/, 1];
|
|
419
|
+
}
|
|
420
|
+
if (!(pointResult.status === AcEdPromptStatus.Keyword &&
|
|
421
|
+
pointResult.stringResult === 'Array')) return [3 /*break*/, 4];
|
|
422
|
+
return [4 /*yield*/, this.promptArrayPlacement(context, sourceEntities, basePoint)];
|
|
423
|
+
case 3:
|
|
424
|
+
placement = _a.sent();
|
|
425
|
+
if (!placement)
|
|
426
|
+
return [3 /*break*/, 1];
|
|
427
|
+
copies = this.buildCopies(sourceEntities, this.computeDisplacement(basePoint, placement.endPoint), placement.copyCount, placement.fitMode);
|
|
428
|
+
if (copies.length > 0) {
|
|
429
|
+
blockTable.modelSpace.appendEntity(copies);
|
|
430
|
+
}
|
|
431
|
+
if (copyMode === 'Single')
|
|
432
|
+
return [2 /*return*/];
|
|
433
|
+
return [3 /*break*/, 1];
|
|
434
|
+
case 4: return [2 /*return*/];
|
|
435
|
+
case 5: return [2 /*return*/];
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* Executes COPY using AutoCAD-like selection, base-point, and placement prompts.
|
|
442
|
+
*
|
|
443
|
+
* Existing selection is reused when available; otherwise the command requests
|
|
444
|
+
* a new selection. The command then resolves copy mode/base point options and
|
|
445
|
+
* appends cloned entities into model space for each accepted placement.
|
|
446
|
+
*
|
|
447
|
+
* @param context - Current application/document context.
|
|
448
|
+
*/
|
|
449
|
+
AcApCopyCmd.prototype.execute = function (context) {
|
|
450
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
451
|
+
var selectionSet, annotation, blockTable, selectionIds, _a, ids, sourceEntities, copyMode, basePoint, useDisplacementPrompt, pointPrompt, pointResult, keyword, modeResult;
|
|
452
|
+
var _b, _c, _d;
|
|
453
|
+
return __generator(this, function (_e) {
|
|
454
|
+
switch (_e.label) {
|
|
455
|
+
case 0:
|
|
456
|
+
selectionSet = context.view.selectionSet;
|
|
457
|
+
annotation = new AcApAnnotation(context.doc.database);
|
|
458
|
+
blockTable = context.doc.database.tables.blockTable;
|
|
459
|
+
if (!(selectionSet.count > 0)) return [3 /*break*/, 1];
|
|
460
|
+
_a = selectionSet.ids;
|
|
461
|
+
return [3 /*break*/, 3];
|
|
462
|
+
case 1: return [4 /*yield*/, AcApDocManager.instance.editor.getSelection(new AcEdPromptSelectionOptions(AcApI18n.sysCmdPrompt('copy')))];
|
|
463
|
+
case 2:
|
|
464
|
+
_a = ((_c = (_b = (_e.sent()).value) === null || _b === void 0 ? void 0 : _b.ids) !== null && _c !== void 0 ? _c : []);
|
|
465
|
+
_e.label = 3;
|
|
466
|
+
case 3:
|
|
467
|
+
selectionIds = _a;
|
|
468
|
+
if (selectionIds.length === 0)
|
|
469
|
+
return [2 /*return*/];
|
|
470
|
+
ids = context.doc.openMode == AcEdOpenMode.Review
|
|
471
|
+
? annotation.filterAnnotationEntities(selectionIds)
|
|
472
|
+
: selectionIds;
|
|
473
|
+
if (ids.length === 0) {
|
|
474
|
+
selectionSet.clear();
|
|
475
|
+
return [2 /*return*/];
|
|
476
|
+
}
|
|
477
|
+
sourceEntities = ids
|
|
478
|
+
.map(function (id) { return blockTable.getEntityById(id); })
|
|
479
|
+
.filter(function (entity) { return !!entity; });
|
|
480
|
+
if (sourceEntities.length === 0) {
|
|
481
|
+
selectionSet.clear();
|
|
482
|
+
return [2 /*return*/];
|
|
483
|
+
}
|
|
484
|
+
copyMode = AcApCopyCmd._defaultMode;
|
|
485
|
+
useDisplacementPrompt = false;
|
|
486
|
+
_e.label = 4;
|
|
487
|
+
case 4:
|
|
488
|
+
if (!!basePoint) return [3 /*break*/, 7];
|
|
489
|
+
pointPrompt = new AcEdPromptPointOptions(AcApI18n.t('jig.copy.basePointOrOptions'));
|
|
490
|
+
pointPrompt.allowNone = true;
|
|
491
|
+
this.addKeyword(pointPrompt, 'displacement');
|
|
492
|
+
this.addKeyword(pointPrompt, 'mode');
|
|
493
|
+
if (copyMode !== 'Multiple') {
|
|
494
|
+
this.addKeyword(pointPrompt, 'multiple');
|
|
495
|
+
}
|
|
496
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(pointPrompt)];
|
|
497
|
+
case 5:
|
|
498
|
+
pointResult = _e.sent();
|
|
499
|
+
if (pointResult.status === AcEdPromptStatus.OK) {
|
|
500
|
+
basePoint = new AcGePoint3d(pointResult.value);
|
|
501
|
+
return [3 /*break*/, 7];
|
|
502
|
+
}
|
|
503
|
+
if (pointResult.status === AcEdPromptStatus.None) {
|
|
504
|
+
basePoint = new AcGePoint3d(0, 0, 0);
|
|
505
|
+
useDisplacementPrompt = true;
|
|
506
|
+
return [3 /*break*/, 7];
|
|
507
|
+
}
|
|
508
|
+
if (pointResult.status !== AcEdPromptStatus.Keyword) {
|
|
509
|
+
selectionSet.clear();
|
|
510
|
+
return [2 /*return*/];
|
|
511
|
+
}
|
|
512
|
+
keyword = (_d = pointResult.stringResult) !== null && _d !== void 0 ? _d : '';
|
|
513
|
+
if (keyword === 'Displacement') {
|
|
514
|
+
basePoint = new AcGePoint3d(0, 0, 0);
|
|
515
|
+
useDisplacementPrompt = true;
|
|
516
|
+
return [3 /*break*/, 7];
|
|
517
|
+
}
|
|
518
|
+
if (keyword === 'Multiple') {
|
|
519
|
+
copyMode = 'Multiple';
|
|
520
|
+
return [3 /*break*/, 4];
|
|
521
|
+
}
|
|
522
|
+
if (keyword !== 'Mode') {
|
|
523
|
+
selectionSet.clear();
|
|
524
|
+
return [2 /*return*/];
|
|
525
|
+
}
|
|
526
|
+
return [4 /*yield*/, this.promptCopyMode(copyMode)];
|
|
527
|
+
case 6:
|
|
528
|
+
modeResult = _e.sent();
|
|
529
|
+
if (!modeResult) {
|
|
530
|
+
selectionSet.clear();
|
|
531
|
+
return [2 /*return*/];
|
|
532
|
+
}
|
|
533
|
+
copyMode = modeResult;
|
|
534
|
+
AcApCopyCmd._defaultMode = modeResult;
|
|
535
|
+
return [3 /*break*/, 4];
|
|
536
|
+
case 7: return [4 /*yield*/, this.executeCopyLoop(context, sourceEntities, basePoint, copyMode, useDisplacementPrompt)];
|
|
537
|
+
case 8:
|
|
538
|
+
_e.sent();
|
|
539
|
+
selectionSet.clear();
|
|
540
|
+
return [2 /*return*/];
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
});
|
|
544
|
+
};
|
|
545
|
+
AcApCopyCmd._defaultMode = 'Multiple';
|
|
546
|
+
return AcApCopyCmd;
|
|
547
|
+
}(AcEdCommand));
|
|
548
|
+
export { AcApCopyCmd };
|
|
549
|
+
//# sourceMappingURL=AcApCopyCmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApCopyCmd.js","sourceRoot":"","sources":["../../../src/command/modify/AcApCopyCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,E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C,QAAQ,CAAC,EAAA;;wBAAhD,UAAU,GAAG,SAAmC;wBACtD,IAAI,CAAC,UAAU,EAAE,CAAC;4BAChB,YAAY,CAAC,KAAK,EAAE,CAAA;4BACpB,sBAAM;wBACR,CAAC;wBACD,QAAQ,GAAG,UAAU,CAAA;wBACrB,WAAW,CAAC,YAAY,GAAG,UAAU,CAAA;;4BAGvC,qBAAM,IAAI,CAAC,eAAe,CACxB,OAAO,EACP,cAAc,EACd,SAAS,EACT,QAAQ,EACR,qBAAqB,CACtB,EAAA;;wBAND,SAMC,CAAA;wBACD,YAAY,CAAC,KAAK,EAAE,CAAA;;;;;KACrB;IAhac,wBAAY,GAAa,UAAU,CAAA;IAiapD,kBAAC;CAAA,AAlaD,CAAiC,WAAW,GAka3C;SAlaY,WAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApEraseCmd.d.ts","sourceRoot":"","sources":["../../../src/command/modify/AcApEraseCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,WAAW,EAAkB,MAAM,WAAW,CAAA;AACvE,OAAO,EACL,WAAW,EAIZ,MAAM,cAAc,CAAA;AAGrB;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;;IAM3C;;;;OAIG;IACG,OAAO,CAAC,OAAO,EAAE,WAAW;CA+BnC"}
|
|
@@ -49,11 +49,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49
49
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
import { AcApAnnotation, AcApDocManager } from '
|
|
53
|
-
import { AcEdCommand } from '
|
|
54
|
-
import {
|
|
55
|
-
import { AcEdOpenMode } from '../editor/view';
|
|
56
|
-
import { AcApI18n } from '../i18n';
|
|
52
|
+
import { AcApAnnotation, AcApDocManager } from '../../app';
|
|
53
|
+
import { AcEdCommand, AcEdOpenMode, AcEdPromptSelectionOptions, AcEdPromptStatus } from '../../editor';
|
|
54
|
+
import { AcApI18n } from '../../i18n';
|
|
57
55
|
/**
|
|
58
56
|
* Command to delete selected objects from the drawing.
|
|
59
57
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApEraseCmd.js","sourceRoot":"","sources":["../../../src/command/modify/AcApEraseCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAe,cAAc,EAAE,MAAM,WAAW,CAAA;AACvE,OAAO,EACL,WAAW,EACX,YAAY,EACZ,0BAA0B,EAC1B,gBAAgB,EACjB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC;;GAEG;AACH;IAAkC,gCAAW;IAC3C;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,IAAI,GAAG,YAAY,CAAC,MAAM,CAAA;;IACjC,CAAC;IAED;;;;OAIG;IACG,8BAAO,GAAb,UAAc,OAAoB;;;;;;wBAC1B,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,YAAY,CAAA;wBACxC,UAAU,GAAG,IAAI,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;6BACvD,CAAA,YAAY,CAAC,KAAK,GAAG,CAAC,CAAA,EAAtB,wBAAsB;wBAElB,GAAG,GACP,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,YAAY,CAAC,MAAM;4BACzC,CAAC,CAAC,UAAU,CAAC,wBAAwB,CAAC,YAAY,CAAC,GAAG,CAAC;4BACvD,CAAC,CAAC,YAAY,CAAC,GAAG,CAAA;wBACtB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;wBACxD,YAAY,CAAC,KAAK,EAAE,CAAA;;;wBAEd,OAAO,GAAG,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;wBACxC,OAAO,GAAG,IAAI,0BAA0B,CAAC,OAAO,CAAC,CAAA;wBAErD,qBAAM,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,EAAA;;wBADtD,eAAe,GACnB,SAA0D;wBAC5D,IACE,eAAe,CAAC,MAAM,KAAK,gBAAgB,CAAC,EAAE;4BAC9C,eAAe,CAAC,KAAK;4BACrB,eAAe,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,EAC/B,CAAC;4BACG,GAAG,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,CAAA;4BACnC,mEAAmE;4BACnE,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,YAAY,CAAC,MAAM,EAAE,CAAC;gCAChD,GAAG,GAAG,UAAU,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAA;4BAChD,CAAC;4BACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,CAAA;4BACxD,YAAY,CAAC,KAAK,EAAE,CAAA;wBACtB,CAAC;;;;;;KAEJ;IACH,mBAAC;AAAD,CAAC,AA1CD,CAAkC,WAAW,GA0C5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApMoveCmd.d.ts","sourceRoot":"","sources":["../../../src/command/modify/AcApMoveCmd.ts"],"names":[],"mappings":"AAOA,OAAO,EAAkB,WAAW,EAAkB,MAAM,WAAW,CAAA;AACvE,OAAO,EAEL,WAAW,EAUZ,MAAM,cAAc,CAAA;AAuErB;;;;;;;;GAQG;AACH,qBAAa,WAAY,SAAQ,WAAW;;IAMpC,OAAO,CAAC,OAAO,EAAE,WAAW;CAiLnC"}
|
|
@@ -50,10 +50,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
import { AcGeMatrix3d, AcGePoint3d } from '@mlightcad/data-model';
|
|
53
|
-
import { AcApAnnotation, AcApDocManager } from '
|
|
54
|
-
import { AcEdCommand } from '
|
|
55
|
-
import {
|
|
56
|
-
import { AcApI18n } from '../i18n';
|
|
53
|
+
import { AcApAnnotation, AcApDocManager } from '../../app';
|
|
54
|
+
import { AcEdCommand, AcEdOpenMode, AcEdPreviewJig, AcEdPromptPointOptions, AcEdPromptSelectionOptions, AcEdPromptStateMachine, AcEdPromptStatus } from '../../editor';
|
|
55
|
+
import { AcApI18n } from '../../i18n';
|
|
57
56
|
/**
|
|
58
57
|
* MOVE preview jig.
|
|
59
58
|
*
|