@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,210 @@
|
|
|
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 { AcDbLine, AcGePoint3d } from '@mlightcad/data-model';
|
|
53
|
+
import { AcApDocManager } from '../../app';
|
|
54
|
+
import { AcEdCommand, AcEdOpenMode, AcEdPromptDoubleOptions, AcEdPromptPointOptions, AcEdPromptStatus } from '../../editor';
|
|
55
|
+
import { AcApI18n } from '../../i18n';
|
|
56
|
+
var ACAP_XLINE_MIN_VECTOR_LENGTH = 1e-9;
|
|
57
|
+
var ACAP_XLINE_HALF_LENGTH = 1000000;
|
|
58
|
+
/**
|
|
59
|
+
* Command to create AutoCAD-style construction lines.
|
|
60
|
+
*
|
|
61
|
+
* This implementation supports the core XLINE branches:
|
|
62
|
+
* - `Point`: two-point definition.
|
|
63
|
+
* - `Hor`: horizontal xline through a point.
|
|
64
|
+
* - `Ver`: vertical xline through a point.
|
|
65
|
+
* - `Ang`: xline at a user-specified angle through a point.
|
|
66
|
+
*/
|
|
67
|
+
var AcApXLineCmd = /** @class */ (function (_super) {
|
|
68
|
+
__extends(AcApXLineCmd, _super);
|
|
69
|
+
function AcApXLineCmd() {
|
|
70
|
+
var _this = _super.call(this) || this;
|
|
71
|
+
_this.mode = AcEdOpenMode.Write;
|
|
72
|
+
return _this;
|
|
73
|
+
}
|
|
74
|
+
AcApXLineCmd.prototype.execute = function (context) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
76
|
+
var currentMode, startPrompt, startResult, secondPrompt, secondResult, direction, throughPrompt_1, throughResult_1, throughPrompt_2, throughResult_2, anglePrompt, angleResult, throughPrompt, throughResult, angleRad;
|
|
77
|
+
return __generator(this, function (_a) {
|
|
78
|
+
switch (_a.label) {
|
|
79
|
+
case 0:
|
|
80
|
+
currentMode = 'point';
|
|
81
|
+
_a.label = 1;
|
|
82
|
+
case 1:
|
|
83
|
+
if (!true) return [3 /*break*/, 13];
|
|
84
|
+
startPrompt = new AcEdPromptPointOptions(AcApI18n.t('jig.xline.firstPointOrOptions'));
|
|
85
|
+
startPrompt.keywords.add(AcApI18n.t('jig.xline.keywords.hor.display'), AcApI18n.t('jig.xline.keywords.hor.global'), AcApI18n.t('jig.xline.keywords.hor.local'));
|
|
86
|
+
startPrompt.keywords.add(AcApI18n.t('jig.xline.keywords.ver.display'), AcApI18n.t('jig.xline.keywords.ver.global'), AcApI18n.t('jig.xline.keywords.ver.local'));
|
|
87
|
+
startPrompt.keywords.add(AcApI18n.t('jig.xline.keywords.ang.display'), AcApI18n.t('jig.xline.keywords.ang.global'), AcApI18n.t('jig.xline.keywords.ang.local'));
|
|
88
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(startPrompt)];
|
|
89
|
+
case 2:
|
|
90
|
+
startResult = _a.sent();
|
|
91
|
+
if (!(startResult.status === AcEdPromptStatus.Keyword)) return [3 /*break*/, 3];
|
|
92
|
+
if (startResult.stringResult === 'Hor') {
|
|
93
|
+
currentMode = 'hor';
|
|
94
|
+
}
|
|
95
|
+
else if (startResult.stringResult === 'Ver') {
|
|
96
|
+
currentMode = 'ver';
|
|
97
|
+
}
|
|
98
|
+
else if (startResult.stringResult === 'Ang') {
|
|
99
|
+
currentMode = 'ang';
|
|
100
|
+
}
|
|
101
|
+
return [3 /*break*/, 6];
|
|
102
|
+
case 3:
|
|
103
|
+
if (!(startResult.status === AcEdPromptStatus.OK &&
|
|
104
|
+
startResult.value)) return [3 /*break*/, 5];
|
|
105
|
+
currentMode = 'point';
|
|
106
|
+
secondPrompt = new AcEdPromptPointOptions(AcApI18n.t('jig.xline.secondPoint'));
|
|
107
|
+
secondPrompt.useBasePoint = true;
|
|
108
|
+
secondPrompt.useDashedLine = true;
|
|
109
|
+
secondPrompt.basePoint = new AcGePoint3d(startResult.value);
|
|
110
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(secondPrompt)];
|
|
111
|
+
case 4:
|
|
112
|
+
secondResult = _a.sent();
|
|
113
|
+
if (secondResult.status !== AcEdPromptStatus.OK || !secondResult.value)
|
|
114
|
+
return [2 /*return*/];
|
|
115
|
+
direction = {
|
|
116
|
+
x: secondResult.value.x - startResult.value.x,
|
|
117
|
+
y: secondResult.value.y - startResult.value.y,
|
|
118
|
+
z: secondResult.value.z - startResult.value.z
|
|
119
|
+
};
|
|
120
|
+
if (!this.appendFiniteXLine(context, startResult.value, direction)) {
|
|
121
|
+
AcApDocManager.instance.editor.showMessage(AcApI18n.t('jig.xline.invalidDirection'), 'warning');
|
|
122
|
+
}
|
|
123
|
+
return [3 /*break*/, 1];
|
|
124
|
+
case 5: return [2 /*return*/];
|
|
125
|
+
case 6:
|
|
126
|
+
if (!(currentMode === 'hor')) return [3 /*break*/, 8];
|
|
127
|
+
throughPrompt_1 = new AcEdPromptPointOptions(AcApI18n.t('jig.xline.throughPoint'));
|
|
128
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(throughPrompt_1)];
|
|
129
|
+
case 7:
|
|
130
|
+
throughResult_1 = _a.sent();
|
|
131
|
+
if (throughResult_1.status !== AcEdPromptStatus.OK ||
|
|
132
|
+
!throughResult_1.value)
|
|
133
|
+
return [2 /*return*/];
|
|
134
|
+
this.appendFiniteXLine(context, throughResult_1.value, {
|
|
135
|
+
x: 1,
|
|
136
|
+
y: 0,
|
|
137
|
+
z: 0
|
|
138
|
+
});
|
|
139
|
+
return [3 /*break*/, 1];
|
|
140
|
+
case 8:
|
|
141
|
+
if (!(currentMode === 'ver')) return [3 /*break*/, 10];
|
|
142
|
+
throughPrompt_2 = new AcEdPromptPointOptions(AcApI18n.t('jig.xline.throughPoint'));
|
|
143
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(throughPrompt_2)];
|
|
144
|
+
case 9:
|
|
145
|
+
throughResult_2 = _a.sent();
|
|
146
|
+
if (throughResult_2.status !== AcEdPromptStatus.OK ||
|
|
147
|
+
!throughResult_2.value)
|
|
148
|
+
return [2 /*return*/];
|
|
149
|
+
this.appendFiniteXLine(context, throughResult_2.value, {
|
|
150
|
+
x: 0,
|
|
151
|
+
y: 1,
|
|
152
|
+
z: 0
|
|
153
|
+
});
|
|
154
|
+
return [3 /*break*/, 1];
|
|
155
|
+
case 10:
|
|
156
|
+
anglePrompt = new AcEdPromptDoubleOptions(AcApI18n.t('jig.xline.angle'));
|
|
157
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getDouble(anglePrompt)];
|
|
158
|
+
case 11:
|
|
159
|
+
angleResult = _a.sent();
|
|
160
|
+
if (angleResult.status !== AcEdPromptStatus.OK ||
|
|
161
|
+
angleResult.value == null)
|
|
162
|
+
return [2 /*return*/];
|
|
163
|
+
throughPrompt = new AcEdPromptPointOptions(AcApI18n.t('jig.xline.throughPoint'));
|
|
164
|
+
return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(throughPrompt)];
|
|
165
|
+
case 12:
|
|
166
|
+
throughResult = _a.sent();
|
|
167
|
+
if (throughResult.status !== AcEdPromptStatus.OK || !throughResult.value)
|
|
168
|
+
return [2 /*return*/];
|
|
169
|
+
angleRad = (angleResult.value * Math.PI) / 180;
|
|
170
|
+
this.appendFiniteXLine(context, throughResult.value, {
|
|
171
|
+
x: Math.cos(angleRad),
|
|
172
|
+
y: Math.sin(angleRad),
|
|
173
|
+
z: 0
|
|
174
|
+
});
|
|
175
|
+
return [3 /*break*/, 1];
|
|
176
|
+
case 13: return [2 /*return*/];
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Creates one long finite line to mimic an infinite construction line.
|
|
183
|
+
*
|
|
184
|
+
* The underlying viewer already understands infinite entities, but this
|
|
185
|
+
* fallback keeps XLINE behavior stable without relying on runtime-specific
|
|
186
|
+
* infinite-entity constructors.
|
|
187
|
+
*/
|
|
188
|
+
AcApXLineCmd.prototype.appendFiniteXLine = function (context, throughPoint, direction) {
|
|
189
|
+
var unit = this.normalizeDirection(direction);
|
|
190
|
+
if (!unit)
|
|
191
|
+
return false;
|
|
192
|
+
var start = new AcGePoint3d(throughPoint.x - unit.x * ACAP_XLINE_HALF_LENGTH, throughPoint.y - unit.y * ACAP_XLINE_HALF_LENGTH, throughPoint.z - unit.z * ACAP_XLINE_HALF_LENGTH);
|
|
193
|
+
var end = new AcGePoint3d(throughPoint.x + unit.x * ACAP_XLINE_HALF_LENGTH, throughPoint.y + unit.y * ACAP_XLINE_HALF_LENGTH, throughPoint.z + unit.z * ACAP_XLINE_HALF_LENGTH);
|
|
194
|
+
context.doc.database.tables.blockTable.modelSpace.appendEntity(new AcDbLine(start, end));
|
|
195
|
+
return true;
|
|
196
|
+
};
|
|
197
|
+
AcApXLineCmd.prototype.normalizeDirection = function (vector) {
|
|
198
|
+
var length = Math.sqrt(vector.x * vector.x + vector.y * vector.y + vector.z * vector.z);
|
|
199
|
+
if (length <= ACAP_XLINE_MIN_VECTOR_LENGTH)
|
|
200
|
+
return undefined;
|
|
201
|
+
return {
|
|
202
|
+
x: vector.x / length,
|
|
203
|
+
y: vector.y / length,
|
|
204
|
+
z: vector.z / length
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
return AcApXLineCmd;
|
|
208
|
+
}(AcEdCommand));
|
|
209
|
+
export { AcApXLineCmd };
|
|
210
|
+
//# sourceMappingURL=AcApXLineCmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApXLineCmd.js","sourceRoot":"","sources":["../../../src/command/draw/AcApXLineCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAmB,MAAM,uBAAuB,CAAA;AAE9E,OAAO,EAAe,cAAc,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,WAAW,EACX,YAAY,EACZ,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,IAAM,4BAA4B,GAAG,IAAI,CAAA;AACzC,IAAM,sBAAsB,GAAG,OAAS,CAAA;AAIxC;;;;;;;;GAQG;AACH;IAAkC,gCAAW;IAC3C;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,IAAI,GAAG,YAAY,CAAC,KAAK,CAAA;;IAChC,CAAC;IAEK,8BAAO,GAAb,UAAc,OAAoB;;;;;;wBAC5B,WAAW,GAAc,OA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,CAAC,CAAC,GAAG,sBAAsB,EAChD,YAAY,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,sBAAsB,CACjD,CAAA;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,YAAY,CAC5D,IAAI,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CACzB,CAAA;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAEO,yCAAkB,GAA1B,UAA2B,MAAuB;QAChD,IAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CACtB,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAChE,CAAA;QACD,IAAI,MAAM,IAAI,4BAA4B;YAAE,OAAO,SAAS,CAAA;QAC5D,OAAO;YACL,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM;YACpB,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM;YACpB,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM;SACrB,CAAA;IACH,CAAC;IACH,mBAAC;AAAD,CAAC,AAjLD,CAAkC,WAAW,GAiL5C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './AcApArcCmd';
|
|
2
|
+
export * from './AcApCircleCmd';
|
|
3
|
+
export * from './AcApDimLinearCmd';
|
|
4
|
+
export * from './AcApEllipseCmd';
|
|
5
|
+
export * from './AcApHatchCmd';
|
|
6
|
+
export * from './AcApLineCmd';
|
|
7
|
+
export * from './AcApMLineCmd';
|
|
8
|
+
export * from './AcApMTextCmd';
|
|
9
|
+
export * from './AcApPointCmd';
|
|
10
|
+
export * from './AcApPolygonCmd';
|
|
11
|
+
export * from './AcApPolylineCmd';
|
|
12
|
+
export * from './AcApRayCmd';
|
|
13
|
+
export * from './AcApRectCmd';
|
|
14
|
+
export * from './AcApSplineCmd';
|
|
15
|
+
export * from './AcApXLineCmd';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/command/draw/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './AcApArcCmd';
|
|
2
|
+
export * from './AcApCircleCmd';
|
|
3
|
+
export * from './AcApDimLinearCmd';
|
|
4
|
+
export * from './AcApEllipseCmd';
|
|
5
|
+
export * from './AcApHatchCmd';
|
|
6
|
+
export * from './AcApLineCmd';
|
|
7
|
+
export * from './AcApMLineCmd';
|
|
8
|
+
export * from './AcApMTextCmd';
|
|
9
|
+
export * from './AcApPointCmd';
|
|
10
|
+
export * from './AcApPolygonCmd';
|
|
11
|
+
export * from './AcApPolylineCmd';
|
|
12
|
+
export * from './AcApRayCmd';
|
|
13
|
+
export * from './AcApRectCmd';
|
|
14
|
+
export * from './AcApSplineCmd';
|
|
15
|
+
export * from './AcApXLineCmd';
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/command/draw/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA"}
|
package/lib/command/index.d.ts
CHANGED
|
@@ -1,42 +1,16 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './AcApConvertToPngCmd';
|
|
8
|
-
export * from './AcApPngConvertor';
|
|
9
|
-
export * from './AcApConvertToSvgCmd';
|
|
10
|
-
export * from './AcApDimLinearCmd';
|
|
11
|
-
export * from './AcApDxfConvertor';
|
|
12
|
-
export * from './AcApEllipseCmd';
|
|
13
|
-
export * from './AcApClearMeasurementsCmd';
|
|
14
|
-
export * from './AcApMeasureAngleCmd';
|
|
15
|
-
export * from './AcApMeasureAreaCmd';
|
|
16
|
-
export * from './AcApMeasureArcCmd';
|
|
17
|
-
export * from './AcApMeasureDistanceCmd';
|
|
18
|
-
export * from './AcApEraseCmd';
|
|
19
|
-
export * from './AcApHatchCmd';
|
|
20
|
-
export * from './AcApLineCmd';
|
|
1
|
+
export * from './convert';
|
|
2
|
+
export * from './layer';
|
|
3
|
+
export * from './draw';
|
|
4
|
+
export * from './measure';
|
|
5
|
+
export * from './modify';
|
|
6
|
+
export * from './review';
|
|
21
7
|
export * from './AcApLogCmd';
|
|
22
|
-
export * from './AcApMTextCmd';
|
|
23
|
-
export * from './AcApMoveCmd';
|
|
24
|
-
export * from './AcApLayerCmd';
|
|
25
8
|
export * from './AcApOpenCmd';
|
|
26
9
|
export * from './AcApQNewCmd';
|
|
27
|
-
export * from './AcApRectCmd';
|
|
28
10
|
export * from './AcApRegenCmd';
|
|
29
|
-
export * from './AcApRevCloudCmd';
|
|
30
|
-
export * from './AcApRevCircleCmd';
|
|
31
|
-
export * from './AcApRevRectCmd';
|
|
32
|
-
export * from './AcApRevVisibilityCmd';
|
|
33
11
|
export * from './AcApSelectCmd';
|
|
34
|
-
export * from './AcApSketchCmd';
|
|
35
12
|
export * from './AcApSysVarCmd';
|
|
36
13
|
export * from './AcApSwitchBgCmd';
|
|
37
14
|
export * from './AcApZoomCmd';
|
|
38
15
|
export * from './AcApPanCmd';
|
|
39
|
-
export * from './AcApPolygonCmd';
|
|
40
|
-
export * from './AcApPolylineCmd';
|
|
41
|
-
export * from './AcApSplineCmd';
|
|
42
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
|
package/lib/command/index.js
CHANGED
|
@@ -1,42 +1,16 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './AcApConvertToPngCmd';
|
|
8
|
-
export * from './AcApPngConvertor';
|
|
9
|
-
export * from './AcApConvertToSvgCmd';
|
|
10
|
-
export * from './AcApDimLinearCmd';
|
|
11
|
-
export * from './AcApDxfConvertor';
|
|
12
|
-
export * from './AcApEllipseCmd';
|
|
13
|
-
export * from './AcApClearMeasurementsCmd';
|
|
14
|
-
export * from './AcApMeasureAngleCmd';
|
|
15
|
-
export * from './AcApMeasureAreaCmd';
|
|
16
|
-
export * from './AcApMeasureArcCmd';
|
|
17
|
-
export * from './AcApMeasureDistanceCmd';
|
|
18
|
-
export * from './AcApEraseCmd';
|
|
19
|
-
export * from './AcApHatchCmd';
|
|
20
|
-
export * from './AcApLineCmd';
|
|
1
|
+
export * from './convert';
|
|
2
|
+
export * from './layer';
|
|
3
|
+
export * from './draw';
|
|
4
|
+
export * from './measure';
|
|
5
|
+
export * from './modify';
|
|
6
|
+
export * from './review';
|
|
21
7
|
export * from './AcApLogCmd';
|
|
22
|
-
export * from './AcApMTextCmd';
|
|
23
|
-
export * from './AcApMoveCmd';
|
|
24
|
-
export * from './AcApLayerCmd';
|
|
25
8
|
export * from './AcApOpenCmd';
|
|
26
9
|
export * from './AcApQNewCmd';
|
|
27
|
-
export * from './AcApRectCmd';
|
|
28
10
|
export * from './AcApRegenCmd';
|
|
29
|
-
export * from './AcApRevCloudCmd';
|
|
30
|
-
export * from './AcApRevCircleCmd';
|
|
31
|
-
export * from './AcApRevRectCmd';
|
|
32
|
-
export * from './AcApRevVisibilityCmd';
|
|
33
11
|
export * from './AcApSelectCmd';
|
|
34
|
-
export * from './AcApSketchCmd';
|
|
35
12
|
export * from './AcApSysVarCmd';
|
|
36
13
|
export * from './AcApSwitchBgCmd';
|
|
37
14
|
export * from './AcApZoomCmd';
|
|
38
15
|
export * from './AcApPanCmd';
|
|
39
|
-
export * from './AcApPolygonCmd';
|
|
40
|
-
export * from './AcApPolylineCmd';
|
|
41
|
-
export * from './AcApSplineCmd';
|
|
42
16
|
//# sourceMappingURL=index.js.map
|
package/lib/command/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,cAAc
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AcApContext } from '../../app';
|
|
2
|
+
import { AcEdCommand } from '../../editor';
|
|
3
|
+
/**
|
|
4
|
+
* AutoCAD-style `LAYERCLOSE` command.
|
|
5
|
+
*
|
|
6
|
+
* Host applications decide how to map this request to concrete UI. In the
|
|
7
|
+
* viewer app, it closes the layer properties manager when that palette tab is
|
|
8
|
+
* currently active.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AcApLayerCloseCmd extends AcEdCommand {
|
|
11
|
+
/**
|
|
12
|
+
* Emits a request to close the layer properties manager.
|
|
13
|
+
*
|
|
14
|
+
* The viewer listens for this event and only closes the palette when the
|
|
15
|
+
* layer manager tab is currently active, which mirrors AutoCAD's
|
|
16
|
+
* `LAYERCLOSE` behavior.
|
|
17
|
+
*
|
|
18
|
+
* @param _context - Active application context (unused).
|
|
19
|
+
* @returns Resolves after the close request has been emitted.
|
|
20
|
+
*/
|
|
21
|
+
execute(_context: AcApContext): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=AcApLayerCloseCmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApLayerCloseCmd.d.ts","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerCloseCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,WAAW,EAAY,MAAM,cAAc,CAAA;AAEpD;;;;;;GAMG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;OASG;IACG,OAAO,CAAC,QAAQ,EAAE,WAAW;CAGpC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 { AcEdCommand, eventBus } from '../../editor';
|
|
53
|
+
/**
|
|
54
|
+
* AutoCAD-style `LAYERCLOSE` command.
|
|
55
|
+
*
|
|
56
|
+
* Host applications decide how to map this request to concrete UI. In the
|
|
57
|
+
* viewer app, it closes the layer properties manager when that palette tab is
|
|
58
|
+
* currently active.
|
|
59
|
+
*/
|
|
60
|
+
var AcApLayerCloseCmd = /** @class */ (function (_super) {
|
|
61
|
+
__extends(AcApLayerCloseCmd, _super);
|
|
62
|
+
function AcApLayerCloseCmd() {
|
|
63
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Emits a request to close the layer properties manager.
|
|
67
|
+
*
|
|
68
|
+
* The viewer listens for this event and only closes the palette when the
|
|
69
|
+
* layer manager tab is currently active, which mirrors AutoCAD's
|
|
70
|
+
* `LAYERCLOSE` behavior.
|
|
71
|
+
*
|
|
72
|
+
* @param _context - Active application context (unused).
|
|
73
|
+
* @returns Resolves after the close request has been emitted.
|
|
74
|
+
*/
|
|
75
|
+
AcApLayerCloseCmd.prototype.execute = function (_context) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
77
|
+
return __generator(this, function (_a) {
|
|
78
|
+
eventBus.emit('close-layer-manager', {});
|
|
79
|
+
return [2 /*return*/];
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
return AcApLayerCloseCmd;
|
|
84
|
+
}(AcEdCommand));
|
|
85
|
+
export { AcApLayerCloseCmd };
|
|
86
|
+
//# sourceMappingURL=AcApLayerCloseCmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApLayerCloseCmd.js","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerCloseCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEpD;;;;;;GAMG;AACH;IAAuC,qCAAW;IAAlD;;IAcA,CAAC;IAbC;;;;;;;;;OASG;IACG,mCAAO,GAAb,UAAc,QAAqB;;;gBACjC,QAAQ,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAA;;;;KACzC;IACH,wBAAC;AAAD,CAAC,AAdD,CAAuC,WAAW,GAcjD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AcApContext } from '
|
|
2
|
-
import { AcEdCommand } from '
|
|
1
|
+
import { AcApContext } from '../../app';
|
|
2
|
+
import { AcEdCommand } from '../../editor';
|
|
3
3
|
/**
|
|
4
4
|
* AutoCAD-style command-line layer command (`-LAYER`).
|
|
5
5
|
*
|
|
@@ -42,9 +42,7 @@ export declare class AcApLayerCmd extends AcEdCommand {
|
|
|
42
42
|
*/
|
|
43
43
|
private addKeyword;
|
|
44
44
|
/**
|
|
45
|
-
* Emits one user-facing message through the
|
|
46
|
-
*
|
|
47
|
-
* This keeps command logic decoupled from concrete UI rendering.
|
|
45
|
+
* Emits one user-facing message through the command-line output.
|
|
48
46
|
*
|
|
49
47
|
* @param message - Message text to display.
|
|
50
48
|
* @param type - Message severity category.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApLayerCmd.d.ts","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerCmd.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,WAAW,EAMZ,MAAM,cAAc,CAAA;AAuBrB;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;OAMG;;IAMH;;;;;;;;;OASG;IACG,OAAO,CAAC,OAAO,EAAE,WAAW;IA8ClC;;;;;;OAMG;YACW,iBAAiB;IAuB/B;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAuBlB;;;;;OAKG;IACH,OAAO,CAAC,MAAM;IAId;;;;;;;OAOG;IACH,OAAO,CAAC,UAAU;IAkBlB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,mBAAmB;IAW3B;;;;;;OAMG;IACH,OAAO,CAAC,aAAa;IAYrB;;;;;;;;OAQG;IACH,OAAO,CAAC,cAAc;IAKtB;;;;;;;;OAQG;IACH,OAAO,CAAC,cAAc;IAKtB;;;;;;;;;OASG;YACW,gBAAgB;IAmB9B;;;;;OAKG;YACW,qBAAqB;IAWnC;;;;;;;;OAQG;YACW,MAAM;IAuCpB;;;;;;;;OAQG;YACW,MAAM;IAiBpB;;;;;;;;OAQG;YACW,OAAO;IAwBrB;;;;;;;;;OASG;YACW,QAAQ;IAgCtB;;;;;;;;;OASG;YACW,SAAS;IAgCvB;;;;;;;;OAQG;YACW,OAAO;IAmBrB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,eAAe;IAuBvB;;;;;;;;OAQG;YACW,QAAQ;IAmCtB;;;;;;;;OAQG;YACW,cAAc;CAsB7B"}
|
|
@@ -75,10 +75,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
75
75
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
76
76
|
};
|
|
77
77
|
import { AcCmColor, AcCmColorMethod, AcDbLayerTableRecord } from '@mlightcad/data-model';
|
|
78
|
-
import { AcApDocManager } from '
|
|
79
|
-
import { AcEdCommand, AcEdOpenMode, AcEdPromptKeywordOptions, AcEdPromptStatus, AcEdPromptStringOptions } from '
|
|
80
|
-
import {
|
|
81
|
-
import { AcApI18n } from '../i18n';
|
|
78
|
+
import { AcApDocManager } from '../../app';
|
|
79
|
+
import { AcEdCommand, AcEdOpenMode, AcEdPromptKeywordOptions, AcEdPromptStatus, AcEdPromptStringOptions } from '../../editor';
|
|
80
|
+
import { AcApI18n } from '../../i18n';
|
|
82
81
|
/**
|
|
83
82
|
* AutoCAD-style command-line layer command (`-LAYER`).
|
|
84
83
|
*
|
|
@@ -238,16 +237,14 @@ var AcApLayerCmd = /** @class */ (function (_super) {
|
|
|
238
237
|
prompt.keywords.add(AcApI18n.t("jig.layer.keywords.".concat(keyword, ".display")), AcApI18n.t("jig.layer.keywords.".concat(keyword, ".global")), AcApI18n.t("jig.layer.keywords.".concat(keyword, ".local")));
|
|
239
238
|
};
|
|
240
239
|
/**
|
|
241
|
-
* Emits one user-facing message through the
|
|
242
|
-
*
|
|
243
|
-
* This keeps command logic decoupled from concrete UI rendering.
|
|
240
|
+
* Emits one user-facing message through the command-line output.
|
|
244
241
|
*
|
|
245
242
|
* @param message - Message text to display.
|
|
246
243
|
* @param type - Message severity category.
|
|
247
244
|
*/
|
|
248
245
|
AcApLayerCmd.prototype.notify = function (message, type) {
|
|
249
246
|
if (type === void 0) { type = 'info'; }
|
|
250
|
-
|
|
247
|
+
AcApDocManager.instance.editor.showMessage(message, type);
|
|
251
248
|
};
|
|
252
249
|
/**
|
|
253
250
|
* Prints all layer states to browser console and reports summary in UI.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApLayerCmd.js","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,eAAe,EACf,oBAAoB,EACrB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAe,cAAc,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,WAAW,EAEX,YAAY,EACZ,wBA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CAAC,CAC/C,EAAA;;wBAFK,IAAI,GAAG,SAEZ;wBACD,IAAI,CAAC,IAAI;4BAAE,sBAAM;wBAEX,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;wBAChE,IAAI,CAAC,KAAK,EAAE,CAAC;4BACX,IAAI,CAAC,MAAM,CAAC,UAAG,QAAQ,CAAC,CAAC,CAAC,oBAAoB,CAAC,eAAK,IAAI,CAAE,EAAE,SAAS,CAAC,CAAA;4BACtE,sBAAM;wBACR,CAAC;wBAEK,UAAU,GAAG,IAAI,uBAAuB,CAC5C,QAAQ,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAC/C,CAAA;wBACD,UAAU,CAAC,WAAW,GAAG,IAAI,CAAA;wBAC7B,UAAU,CAAC,UAAU,GAAG,IAAI,CAAA;wBACb,qBAAM,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,EAAA;;wBAAnE,MAAM,GAAG,SAA0D;wBACzE,IAAI,MAAM,CAAC,MAAM,KAAK,gBAAgB,CAAC,EAAE;4BAAE,sBAAM;wBAEjD,KAAK,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,YAAY,mCAAI,EAAE,CAAA;;;;;KAC9C;IACH,mBAAC;AAAD,CAAC,AAjmBD,CAAkC,WAAW,GAimB5C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AcApContext } from '../../app';
|
|
2
|
+
import { AcEdCommand } from '../../editor';
|
|
3
|
+
/**
|
|
4
|
+
* AutoCAD-like `LAYCUR` command.
|
|
5
|
+
*
|
|
6
|
+
* The command changes the layer property of selected objects to the current
|
|
7
|
+
* database layer (`CLAYER`). It supports both preselection and an interactive
|
|
8
|
+
* selection prompt, matching AutoCAD's object-first workflow.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AcApLayerCurCmd extends AcEdCommand {
|
|
11
|
+
/**
|
|
12
|
+
* Creates a write-enabled `LAYCUR` command instance.
|
|
13
|
+
*/
|
|
14
|
+
constructor();
|
|
15
|
+
/**
|
|
16
|
+
* Runs the change-selected-objects-to-current-layer workflow.
|
|
17
|
+
*
|
|
18
|
+
* @param context - Active application context used to read and update the current drawing.
|
|
19
|
+
* @returns Resolves when command execution completes or is canceled.
|
|
20
|
+
*/
|
|
21
|
+
execute(context: AcApContext): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Prompts for objects whose layer should be changed.
|
|
24
|
+
*
|
|
25
|
+
* @returns Selected object identifiers, or `undefined` when the prompt is canceled.
|
|
26
|
+
*/
|
|
27
|
+
private promptSelection;
|
|
28
|
+
/**
|
|
29
|
+
* Applies the current layer to selected entities.
|
|
30
|
+
*
|
|
31
|
+
* @param context - Active application context containing database and view.
|
|
32
|
+
* @param objectIds - Selected entity identifiers.
|
|
33
|
+
*/
|
|
34
|
+
private moveObjectsToCurrentLayer;
|
|
35
|
+
/**
|
|
36
|
+
* Sends a localized status message through the command-line output.
|
|
37
|
+
*
|
|
38
|
+
* @param message - Text to display to the user.
|
|
39
|
+
* @param type - Visual severity mapped to command-line message styles.
|
|
40
|
+
*/
|
|
41
|
+
private notify;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=AcApLayerCurCmd.d.ts.map
|