@mlightcad/cad-simple-viewer 1.4.13 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +26532 -44513
- package/dist/index.umd.cjs +163 -52
- package/dist/libredwg-parser-worker.js +4378 -7481
- package/dist/mtext-renderer-worker.js +4107 -3865
- package/dist/viewer-runtime.iife.js +3879 -0
- package/lib/app/AcApAnnotation.js +4 -4
- package/lib/app/AcApAnnotation.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts +59 -6
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +188 -28
- 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/AcApZoomCmd.js +3 -3
- package/lib/command/AcApZoomCmd.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/convert/AcApExportHtmlCmd.d.ts +22 -0
- package/lib/command/convert/AcApExportHtmlCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApExportHtmlCmd.js +93 -0
- package/lib/command/convert/AcApExportHtmlCmd.js.map +1 -0
- package/lib/command/convert/AcApHtmlConvertor.d.ts +61 -0
- package/lib/command/convert/AcApHtmlConvertor.d.ts.map +1 -0
- package/lib/command/convert/AcApHtmlConvertor.js +223 -0
- package/lib/command/convert/AcApHtmlConvertor.js.map +1 -0
- package/lib/command/convert/AcApHtmlSnapshotBuilder.d.ts +65 -0
- package/lib/command/convert/AcApHtmlSnapshotBuilder.d.ts.map +1 -0
- package/lib/command/convert/AcApHtmlSnapshotBuilder.js +301 -0
- package/lib/command/convert/AcApHtmlSnapshotBuilder.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 +9 -0
- package/lib/command/convert/index.d.ts.map +1 -0
- package/lib/command/convert/index.js +9 -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} +839 -32
- 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} +8 -9
- 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} +7 -9
- 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 +528 -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} +6 -4
- 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} +7 -8
- package/lib/command/draw/AcApPolygonCmd.js.map +1 -0
- package/lib/command/{AcApPolylineCmd.d.ts → draw/AcApPolylineCmd.d.ts} +51 -2
- package/lib/command/draw/AcApPolylineCmd.d.ts.map +1 -0
- package/lib/command/{AcApPolylineCmd.js → draw/AcApPolylineCmd.js} +203 -21
- 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 +144 -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} +12 -13
- 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} +6 -9
- 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 +209 -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/measure/AcApClearMeasurementsCmd.d.ts +24 -0
- package/lib/command/measure/AcApClearMeasurementsCmd.d.ts.map +1 -0
- package/lib/command/{AcApClearMeasurementsCmd.js → measure/AcApClearMeasurementsCmd.js} +16 -5
- 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} +18 -9
- 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} +14 -7
- 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} +14 -7
- package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -0
- package/lib/command/{AcApMeasureDistanceCmd.d.ts → measure/AcApMeasureDistanceCmd.d.ts} +5 -4
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -0
- package/lib/command/{AcApMeasureDistanceCmd.js → measure/AcApMeasureDistanceCmd.js} +17 -9
- 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/AcApOffsetCmd.d.ts +30 -0
- package/lib/command/modify/AcApOffsetCmd.d.ts.map +1 -0
- package/lib/command/modify/AcApOffsetCmd.js +424 -0
- package/lib/command/modify/AcApOffsetCmd.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 +486 -0
- package/lib/command/modify/AcApRotateCmd.js.map +1 -0
- package/lib/command/modify/index.d.ts +6 -0
- package/lib/command/modify/index.d.ts.map +1 -0
- package/lib/command/modify/index.js +6 -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} +8 -5
- 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/AcEdSelectionFilter.js +7 -6
- package/lib/editor/input/AcEdSelectionFilter.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/AcEdPromptDistanceOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js +1 -1
- package/lib/editor/input/prompt/AcEdPromptDistanceOptions.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 +9 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +25 -5
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts +46 -6
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +153 -43
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdMTextEditor.d.ts +67 -2
- package/lib/editor/input/ui/AcEdMTextEditor.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdMTextEditor.js +210 -19
- package/lib/editor/input/ui/AcEdMTextEditor.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/AcEdRubberBand.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdRubberBand.js +16 -8
- package/lib/editor/input/ui/AcEdRubberBand.js.map +1 -1
- 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 +187 -13
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +195 -21
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +579 -212
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +669 -302
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +187 -13
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +196 -22
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +579 -212
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +668 -301
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.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/util/AcApFontUtil.d.ts +69 -0
- package/lib/util/AcApFontUtil.d.ts.map +1 -0
- package/lib/util/AcApFontUtil.js +161 -0
- package/lib/util/AcApFontUtil.js.map +1 -0
- package/lib/util/index.d.ts +2 -0
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +2 -0
- package/lib/util/index.js.map +1 -1
- package/lib/util/yieldToMain.d.ts +5 -0
- package/lib/util/yieldToMain.d.ts.map +1 -0
- package/lib/util/yieldToMain.js +11 -0
- package/lib/util/yieldToMain.js.map +1 -0
- 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/AcTrLayoutView.d.ts +12 -0
- package/lib/view/AcTrLayoutView.d.ts.map +1 -1
- package/lib/view/AcTrLayoutView.js +18 -0
- package/lib/view/AcTrLayoutView.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/AcTrScene.d.ts +38 -6
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +57 -30
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +191 -0
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +795 -137
- package/lib/view/AcTrView2d.js.map +1 -1
- package/package.json +14 -8
- 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 +0 -13
- 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,241 @@
|
|
|
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 { AcApDocManager } from '../../app';
|
|
78
|
+
import { AcEdCommand, AcEdOpenMode } from '../../editor';
|
|
79
|
+
import { AcApI18n } from '../../i18n';
|
|
80
|
+
/**
|
|
81
|
+
* Global store for layer state snapshots to support LAYERP command.
|
|
82
|
+
*/
|
|
83
|
+
var AcApLayerPreviousStateManager = /** @class */ (function () {
|
|
84
|
+
function AcApLayerPreviousStateManager() {
|
|
85
|
+
this.previousSnapshot = null;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Captures the current layer state.
|
|
89
|
+
* @param context - Active application context
|
|
90
|
+
*/
|
|
91
|
+
AcApLayerPreviousStateManager.prototype.captureState = function (context) {
|
|
92
|
+
var _this = this;
|
|
93
|
+
var db = context.doc.database;
|
|
94
|
+
this.previousSnapshot = {
|
|
95
|
+
clayer: db.clayer,
|
|
96
|
+
states: __spreadArray([], __read(db.tables.layerTable.newIterator()), false).map(function (layer) { return ({
|
|
97
|
+
name: layer.name,
|
|
98
|
+
isOn: !layer.isOff,
|
|
99
|
+
isFrozen: layer.isFrozen,
|
|
100
|
+
isLocked: _this.isLayerLocked(layer)
|
|
101
|
+
}); })
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Restores the previous layer state.
|
|
106
|
+
* @param context - Active application context
|
|
107
|
+
* @returns true if restoration was successful
|
|
108
|
+
*/
|
|
109
|
+
AcApLayerPreviousStateManager.prototype.restorePreviousState = function (context) {
|
|
110
|
+
var _this = this;
|
|
111
|
+
if (!this.previousSnapshot) {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
var db = context.doc.database;
|
|
115
|
+
var snapshot = this.previousSnapshot;
|
|
116
|
+
// Apply layer state changes
|
|
117
|
+
snapshot.states.forEach(function (state) {
|
|
118
|
+
var layer = db.tables.layerTable.getAt(state.name);
|
|
119
|
+
if (!layer)
|
|
120
|
+
return;
|
|
121
|
+
layer.isOff = !state.isOn;
|
|
122
|
+
_this.setLayerFrozen(layer, state.isFrozen);
|
|
123
|
+
_this.setLayerLocked(layer, state.isLocked);
|
|
124
|
+
});
|
|
125
|
+
// Restore current layer
|
|
126
|
+
var currentLayer = db.tables.layerTable.getAt(snapshot.clayer);
|
|
127
|
+
if (currentLayer) {
|
|
128
|
+
currentLayer.isOff = false;
|
|
129
|
+
this.setLayerFrozen(currentLayer, false);
|
|
130
|
+
db.clayer = currentLayer.name;
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
return false;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Clears the previous state snapshot.
|
|
137
|
+
*/
|
|
138
|
+
AcApLayerPreviousStateManager.prototype.clearPreviousState = function () {
|
|
139
|
+
this.previousSnapshot = null;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Checks if a layer is locked.
|
|
143
|
+
* @param layer - Layer table record
|
|
144
|
+
*/
|
|
145
|
+
AcApLayerPreviousStateManager.prototype.isLayerLocked = function (layer) {
|
|
146
|
+
var _a;
|
|
147
|
+
return (((_a = layer.standardFlags) !== null && _a !== void 0 ? _a : 0) & 0x04) !== 0;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Sets or clears the locked bit in layer flags.
|
|
151
|
+
* @param layer - Layer table record
|
|
152
|
+
* @param locked - Whether the layer should be locked
|
|
153
|
+
*/
|
|
154
|
+
AcApLayerPreviousStateManager.prototype.setLayerLocked = function (layer, locked) {
|
|
155
|
+
var _a;
|
|
156
|
+
var flags = (_a = layer.standardFlags) !== null && _a !== void 0 ? _a : 0;
|
|
157
|
+
layer.standardFlags = locked ? flags | 0x04 : flags & ~0x04;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Sets or clears the frozen bit in layer flags.
|
|
161
|
+
* @param layer - Layer table record
|
|
162
|
+
* @param frozen - Whether the layer should be frozen
|
|
163
|
+
*/
|
|
164
|
+
AcApLayerPreviousStateManager.prototype.setLayerFrozen = function (layer, frozen) {
|
|
165
|
+
var _a;
|
|
166
|
+
var flags = (_a = layer.standardFlags) !== null && _a !== void 0 ? _a : 0;
|
|
167
|
+
layer.standardFlags = frozen ? flags | 0x01 : flags & ~0x01;
|
|
168
|
+
};
|
|
169
|
+
return AcApLayerPreviousStateManager;
|
|
170
|
+
}());
|
|
171
|
+
// Global instance
|
|
172
|
+
var layerPreviousStateManager = new AcApLayerPreviousStateManager();
|
|
173
|
+
/**
|
|
174
|
+
* Exposes layer previous state manager for external use.
|
|
175
|
+
*/
|
|
176
|
+
export function getLayerPreviousStateManager() {
|
|
177
|
+
return layerPreviousStateManager;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* AutoCAD-like `LAYERP` command.
|
|
181
|
+
*
|
|
182
|
+
* The command restores the layer state to what it was before the last
|
|
183
|
+
* layer-modifying operation. This includes changes to layer on/off,
|
|
184
|
+
* freeze/thaw, and lock/unlock states.
|
|
185
|
+
*
|
|
186
|
+
* Note: This is a simplified implementation that tracks one previous state.
|
|
187
|
+
* A full implementation would maintain a stack of states.
|
|
188
|
+
*/
|
|
189
|
+
var AcApLayerPCmd = /** @class */ (function (_super) {
|
|
190
|
+
__extends(AcApLayerPCmd, _super);
|
|
191
|
+
/**
|
|
192
|
+
* Creates a write-enabled `LAYERP` command instance.
|
|
193
|
+
*/
|
|
194
|
+
function AcApLayerPCmd() {
|
|
195
|
+
var _this = _super.call(this) || this;
|
|
196
|
+
_this.mode = AcEdOpenMode.Write;
|
|
197
|
+
return _this;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Runs the restore-previous-layer-state workflow.
|
|
201
|
+
*
|
|
202
|
+
* @param context - Active application context used to update the current drawing.
|
|
203
|
+
* @returns Resolves when the restoration is complete or if there is nothing to restore.
|
|
204
|
+
*/
|
|
205
|
+
AcApLayerPCmd.prototype.execute = function (context) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
207
|
+
return __generator(this, function (_a) {
|
|
208
|
+
if (layerPreviousStateManager.restorePreviousState(context)) {
|
|
209
|
+
this.notify(AcApI18n.t('jig.layerp.restored'), 'success');
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
this.notify(AcApI18n.t('jig.layerp.noPreviousState'));
|
|
213
|
+
}
|
|
214
|
+
context.view.selectionSet.clear();
|
|
215
|
+
return [2 /*return*/];
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Sends a localized status message through the command-line output.
|
|
221
|
+
*
|
|
222
|
+
* @param message - Text to display to the user.
|
|
223
|
+
* @param type - Visual severity mapped to command-line message styles.
|
|
224
|
+
*/
|
|
225
|
+
AcApLayerPCmd.prototype.notify = function (message, type) {
|
|
226
|
+
if (type === void 0) { type = 'info'; }
|
|
227
|
+
AcApDocManager.instance.editor.showMessage(message, type);
|
|
228
|
+
};
|
|
229
|
+
return AcApLayerPCmd;
|
|
230
|
+
}(AcEdCommand));
|
|
231
|
+
export { AcApLayerPCmd };
|
|
232
|
+
/**
|
|
233
|
+
* Captures layer state before executing a layer-modifying command.
|
|
234
|
+
* Should be called before executing commands like LAYOFF, LAYFRZ, LAYLCK, etc.
|
|
235
|
+
*
|
|
236
|
+
* @param context - Active application context
|
|
237
|
+
*/
|
|
238
|
+
export function captureLayerStateBeforeOperation(context) {
|
|
239
|
+
layerPreviousStateManager.captureState(context);
|
|
240
|
+
}
|
|
241
|
+
//# sourceMappingURL=AcApLayerPCmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApLayerPCmd.js","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerPCmd.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AcApContext } from '../../app';
|
|
2
|
+
import { AcEdCommand } from '../../editor';
|
|
3
|
+
/**
|
|
4
|
+
* AutoCAD-like `LAYTHW` command.
|
|
5
|
+
*
|
|
6
|
+
* The command thaws every frozen layer in the current drawing by clearing the
|
|
7
|
+
* global frozen flag. Per-viewport layer freeze state is not represented in
|
|
8
|
+
* the current viewer, matching the command to database-wide layer thawing only.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AcApLayerThawCmd extends AcEdCommand {
|
|
11
|
+
/**
|
|
12
|
+
* Creates a write-enabled `LAYTHW` command instance.
|
|
13
|
+
*/
|
|
14
|
+
constructor();
|
|
15
|
+
/**
|
|
16
|
+
* Runs the thaw-all-layers workflow.
|
|
17
|
+
*
|
|
18
|
+
* @param context - Active application context used to update the current drawing.
|
|
19
|
+
* @returns Resolves when all layer states have been processed.
|
|
20
|
+
*/
|
|
21
|
+
execute(context: AcApContext): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Clears or sets the frozen bit while preserving other layer flags.
|
|
24
|
+
*
|
|
25
|
+
* @param layer - Target layer table record.
|
|
26
|
+
* @param frozen - Whether the layer should be marked frozen.
|
|
27
|
+
*/
|
|
28
|
+
private setLayerFrozen;
|
|
29
|
+
/**
|
|
30
|
+
* Sends a localized status message through the command-line output.
|
|
31
|
+
*
|
|
32
|
+
* @param message - Text to display to the user.
|
|
33
|
+
* @param type - Visual severity mapped to command-line message styles.
|
|
34
|
+
*/
|
|
35
|
+
private notify;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=AcApLayerThawCmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApLayerThawCmd.d.ts","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerThawCmd.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,WAAW,EAAiC,MAAM,cAAc,CAAA;AAGzE;;;;;;GAMG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;;IAMH;;;;;OAKG;IACG,OAAO,CAAC,OAAO,EAAE,WAAW;IAoBlC;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAKtB;;;;;OAKG;IACH,OAAO,CAAC,MAAM;CAGf"}
|
|
@@ -0,0 +1,150 @@
|
|
|
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 { AcApDocManager } from '../../app';
|
|
78
|
+
import { AcEdCommand, AcEdOpenMode } from '../../editor';
|
|
79
|
+
import { AcApI18n } from '../../i18n';
|
|
80
|
+
/**
|
|
81
|
+
* AutoCAD-like `LAYTHW` command.
|
|
82
|
+
*
|
|
83
|
+
* The command thaws every frozen layer in the current drawing by clearing the
|
|
84
|
+
* global frozen flag. Per-viewport layer freeze state is not represented in
|
|
85
|
+
* the current viewer, matching the command to database-wide layer thawing only.
|
|
86
|
+
*/
|
|
87
|
+
var AcApLayerThawCmd = /** @class */ (function (_super) {
|
|
88
|
+
__extends(AcApLayerThawCmd, _super);
|
|
89
|
+
/**
|
|
90
|
+
* Creates a write-enabled `LAYTHW` command instance.
|
|
91
|
+
*/
|
|
92
|
+
function AcApLayerThawCmd() {
|
|
93
|
+
var _this = _super.call(this) || this;
|
|
94
|
+
_this.mode = AcEdOpenMode.Write;
|
|
95
|
+
return _this;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Runs the thaw-all-layers workflow.
|
|
99
|
+
*
|
|
100
|
+
* @param context - Active application context used to update the current drawing.
|
|
101
|
+
* @returns Resolves when all layer states have been processed.
|
|
102
|
+
*/
|
|
103
|
+
AcApLayerThawCmd.prototype.execute = function (context) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
105
|
+
var layers, thawed;
|
|
106
|
+
var _this = this;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
layers = __spreadArray([], __read(context.doc.database.tables.layerTable.newIterator()), false);
|
|
109
|
+
thawed = 0;
|
|
110
|
+
layers.forEach(function (layer) {
|
|
111
|
+
if (!layer.isFrozen)
|
|
112
|
+
return;
|
|
113
|
+
_this.setLayerFrozen(layer, false);
|
|
114
|
+
thawed++;
|
|
115
|
+
});
|
|
116
|
+
context.view.selectionSet.clear();
|
|
117
|
+
if (thawed === 0) {
|
|
118
|
+
this.notify(AcApI18n.t('jig.laythw.alreadyThawed'));
|
|
119
|
+
return [2 /*return*/];
|
|
120
|
+
}
|
|
121
|
+
this.notify("".concat(AcApI18n.t('jig.laythw.thawed'), ": ").concat(thawed), 'success');
|
|
122
|
+
return [2 /*return*/];
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Clears or sets the frozen bit while preserving other layer flags.
|
|
128
|
+
*
|
|
129
|
+
* @param layer - Target layer table record.
|
|
130
|
+
* @param frozen - Whether the layer should be marked frozen.
|
|
131
|
+
*/
|
|
132
|
+
AcApLayerThawCmd.prototype.setLayerFrozen = function (layer, frozen) {
|
|
133
|
+
var _a;
|
|
134
|
+
var flags = (_a = layer.standardFlags) !== null && _a !== void 0 ? _a : 0;
|
|
135
|
+
layer.standardFlags = frozen ? flags | 0x01 : flags & ~0x01;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Sends a localized status message through the command-line output.
|
|
139
|
+
*
|
|
140
|
+
* @param message - Text to display to the user.
|
|
141
|
+
* @param type - Visual severity mapped to command-line message styles.
|
|
142
|
+
*/
|
|
143
|
+
AcApLayerThawCmd.prototype.notify = function (message, type) {
|
|
144
|
+
if (type === void 0) { type = 'info'; }
|
|
145
|
+
AcApDocManager.instance.editor.showMessage(message, type);
|
|
146
|
+
};
|
|
147
|
+
return AcApLayerThawCmd;
|
|
148
|
+
}(AcEdCommand));
|
|
149
|
+
export { AcApLayerThawCmd };
|
|
150
|
+
//# sourceMappingURL=AcApLayerThawCmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApLayerThawCmd.js","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerThawCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAe,cAAc,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,WAAW,EAAmB,YAAY,EAAE,MAAM,cAAc,CAAA;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC;;;;;;GAMG;AACH;IAAsC,oCAAW;IAC/C;;OAEG;IACH;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,IAAI,GAAG,YAAY,CAAC,KAAK,CAAA;;IAChC,CAAC;IAED;;;;;OAKG;IACG,kCAAO,GAAb,UAAc,OAAoB;;;;;gBAC1B,MAAM,4BAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,SAAC,CAAA;gBACpE,MAAM,GAAG,CAAC,CAAA;gBAEd,MAAM,CAAC,OAAO,CAAC,UAAA,KAAK;oBAClB,IAAI,CAAC,KAAK,CAAC,QAAQ;wBAAE,OAAM;oBAC3B,KAAI,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;oBACjC,MAAM,EAAE,CAAA;gBACV,CAAC,CAAC,CAAA;gBAEF,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAA;gBAEjC,IAAI,MAAM,KAAK,CAAC,EAAE,CAAC;oBACjB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAA;oBACnD,sBAAM;gBACR,CAAC;gBAED,IAAI,CAAC,MAAM,CAAC,UAAG,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,eAAK,MAAM,CAAE,EAAE,SAAS,CAAC,CAAA;;;;KACxE;IAED;;;;;OAKG;IACK,yCAAc,GAAtB,UAAuB,KAA2B,EAAE,MAAe;;QACjE,IAAM,KAAK,GAAG,MAAA,KAAK,CAAC,aAAa,mCAAI,CAAC,CAAA;QACtC,KAAK,CAAC,aAAa,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,IAAI,CAAA;IAC7D,CAAC;IAED;;;;;OAKG;IACK,iCAAM,GAAd,UAAe,OAAe,EAAE,IAA8B;QAA9B,qBAAA,EAAA,aAA8B;QAC5D,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IAC3D,CAAC;IACH,uBAAC;AAAD,CAAC,AAvDD,CAAsC,WAAW,GAuDhD"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { AcApContext } from '../../app';
|
|
2
|
+
import { AcEdCommand } from '../../editor';
|
|
3
|
+
/**
|
|
4
|
+
* AutoCAD-like `LAYUNISO` command.
|
|
5
|
+
*
|
|
6
|
+
* The command restores the layer state captured by the previous `LAYISO`.
|
|
7
|
+
* It only reverts properties that still match the value applied by `LAYISO`,
|
|
8
|
+
* so layer edits made after isolation are retained.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AcApLayerUnisoCmd extends AcEdCommand {
|
|
11
|
+
/**
|
|
12
|
+
* Creates a write-enabled `LAYUNISO` command instance.
|
|
13
|
+
*/
|
|
14
|
+
constructor();
|
|
15
|
+
/**
|
|
16
|
+
* Restores the previous `LAYISO` layer state when available.
|
|
17
|
+
*
|
|
18
|
+
* @param context - Active application context used to update layer states.
|
|
19
|
+
* @returns Resolves after restoration is attempted.
|
|
20
|
+
*/
|
|
21
|
+
execute(context: AcApContext): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Restores tracked layer flags that were not changed after `LAYISO`.
|
|
24
|
+
*
|
|
25
|
+
* @param layer - Layer to restore.
|
|
26
|
+
* @param snapshot - Before/after state captured for this layer by `LAYISO`.
|
|
27
|
+
* @returns `true` if any tracked flag was restored.
|
|
28
|
+
*/
|
|
29
|
+
private restoreLayerIfUnchanged;
|
|
30
|
+
/**
|
|
31
|
+
* Sets or clears the frozen bit while preserving other layer flags.
|
|
32
|
+
*
|
|
33
|
+
* @param layer - Target layer table record.
|
|
34
|
+
* @param frozen - Whether the layer should be marked frozen.
|
|
35
|
+
*/
|
|
36
|
+
private setLayerFrozen;
|
|
37
|
+
/**
|
|
38
|
+
* Sets or clears the locked bit while preserving other layer flags.
|
|
39
|
+
*
|
|
40
|
+
* @param layer - Target layer table record.
|
|
41
|
+
* @param locked - Whether the layer should be marked locked.
|
|
42
|
+
*/
|
|
43
|
+
private setLayerLocked;
|
|
44
|
+
/**
|
|
45
|
+
* Sends a localized status message through the command-line output.
|
|
46
|
+
*
|
|
47
|
+
* @param message - Text to display to the user.
|
|
48
|
+
* @param type - Visual severity mapped to command-line message styles.
|
|
49
|
+
*/
|
|
50
|
+
private notify;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=AcApLayerUnisoCmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApLayerUnisoCmd.d.ts","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerUnisoCmd.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,WAAW,EAAiC,MAAM,cAAc,CAAA;AAOzE;;;;;;GAMG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;OAEG;;IAMH;;;;;OAKG;IACG,OAAO,CAAC,OAAO,EAAE,WAAW;IA+ClC;;;;;;OAMG;IACH,OAAO,CAAC,uBAAuB;IAiC/B;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAKtB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAKtB;;;;;OAKG;IACH,OAAO,CAAC,MAAM;CAGf"}
|