@mlightcad/cad-simple-viewer 1.5.5 → 1.5.7
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/LICENSE +1 -1
- package/README.md +69 -1
- package/dist/{index.js → cad-simple-viewer.js} +34247 -29923
- package/dist/cad-simple-viewer.umd.cjs +913 -0
- package/dist/dxf-parser-worker.js +2091 -0
- package/dist/libredwg-parser-worker.js +5388 -5122
- package/dist/mtext-renderer-worker.js +3061 -2858
- package/lib/app/AcApContext.d.ts.map +1 -1
- package/lib/app/AcApContext.js +15 -2
- package/lib/app/AcApContext.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts +63 -0
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +195 -23
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApDocument.d.ts +81 -0
- package/lib/app/AcApDocument.d.ts.map +1 -1
- package/lib/app/AcApDocument.js +154 -0
- package/lib/app/AcApDocument.js.map +1 -1
- package/lib/app/AcApLayerSessionState.d.ts +15 -0
- package/lib/app/AcApLayerSessionState.d.ts.map +1 -0
- package/lib/app/AcApLayerSessionState.js +2 -0
- package/lib/app/AcApLayerSessionState.js.map +1 -0
- package/lib/app/AcApOpenFileDialog.d.ts +35 -0
- package/lib/app/AcApOpenFileDialog.d.ts.map +1 -0
- package/lib/app/AcApOpenFileDialog.js +192 -0
- package/lib/app/AcApOpenFileDialog.js.map +1 -0
- package/lib/app/AcApWebworkerReadiness.d.ts +18 -0
- package/lib/app/AcApWebworkerReadiness.d.ts.map +1 -0
- package/lib/app/AcApWebworkerReadiness.js +126 -0
- package/lib/app/AcApWebworkerReadiness.js.map +1 -0
- package/lib/app/AcDbOpenDatabaseOptions.d.ts +29 -0
- package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +1 -1
- package/lib/app/AcDbOpenDatabaseOptions.js +10 -1
- package/lib/app/AcDbOpenDatabaseOptions.js.map +1 -1
- package/lib/app/index.d.ts +4 -0
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +3 -0
- package/lib/app/index.js.map +1 -1
- package/lib/command/AcApCacheFontCmd.d.ts +25 -0
- package/lib/command/AcApCacheFontCmd.d.ts.map +1 -0
- package/lib/command/AcApCacheFontCmd.js +142 -0
- package/lib/command/AcApCacheFontCmd.js.map +1 -0
- package/lib/command/AcApOpenCmd.d.ts +3 -22
- package/lib/command/AcApOpenCmd.d.ts.map +1 -1
- package/lib/command/AcApOpenCmd.js +3 -22
- package/lib/command/AcApOpenCmd.js.map +1 -1
- package/lib/command/AcApRedoCmd.d.ts +10 -0
- package/lib/command/AcApRedoCmd.d.ts.map +1 -0
- package/lib/command/AcApRedoCmd.js +85 -0
- package/lib/command/AcApRedoCmd.js.map +1 -0
- package/lib/command/AcApSysVarCmd.d.ts.map +1 -1
- package/lib/command/AcApSysVarCmd.js +5 -11
- package/lib/command/AcApSysVarCmd.js.map +1 -1
- package/lib/command/AcApUndoCmd.d.ts +10 -0
- package/lib/command/AcApUndoCmd.d.ts.map +1 -0
- package/lib/command/AcApUndoCmd.js +85 -0
- package/lib/command/AcApUndoCmd.js.map +1 -0
- package/lib/command/convert/AcApPngConvertor.d.ts +1 -1
- package/lib/command/convert/AcApPngConvertor.d.ts.map +1 -1
- package/lib/command/convert/AcApPngConvertor.js +5 -2
- package/lib/command/convert/AcApPngConvertor.js.map +1 -1
- package/lib/command/draw/AcApArcCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApArcCmd.js +2 -5
- package/lib/command/draw/AcApArcCmd.js.map +1 -1
- package/lib/command/draw/AcApEllipseCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApEllipseCmd.js +14 -9
- package/lib/command/draw/AcApEllipseCmd.js.map +1 -1
- package/lib/command/draw/AcApHatchCmd.d.ts +1 -1
- package/lib/command/draw/AcApLineCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApLineCmd.js +8 -2
- package/lib/command/draw/AcApLineCmd.js.map +1 -1
- package/lib/command/draw/AcApMLineCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApMLineCmd.js +4 -2
- package/lib/command/draw/AcApMLineCmd.js.map +1 -1
- package/lib/command/draw/AcApPolygonCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApPolygonCmd.js +2 -5
- package/lib/command/draw/AcApPolygonCmd.js.map +1 -1
- package/lib/command/draw/AcApPolylineCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApPolylineCmd.js +3 -0
- package/lib/command/draw/AcApPolylineCmd.js.map +1 -1
- package/lib/command/draw/AcApRectCmd.d.ts +6 -0
- package/lib/command/draw/AcApRectCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApRectCmd.js +12 -10
- package/lib/command/draw/AcApRectCmd.js.map +1 -1
- package/lib/command/draw/AcApSplineCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApSplineCmd.js +2 -0
- package/lib/command/draw/AcApSplineCmd.js.map +1 -1
- package/lib/command/draw/AcApXLineCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApXLineCmd.js +1 -1
- package/lib/command/draw/AcApXLineCmd.js.map +1 -1
- package/lib/command/index.d.ts +3 -0
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +3 -0
- package/lib/command/index.js.map +1 -1
- package/lib/command/layer/AcApLayerCmd.d.ts +3 -194
- package/lib/command/layer/AcApLayerCmd.d.ts.map +1 -1
- package/lib/command/layer/AcApLayerCmd.js +64 -398
- package/lib/command/layer/AcApLayerCmd.js.map +1 -1
- package/lib/command/layer/AcApLayerCurCmd.d.ts +2 -34
- package/lib/command/layer/AcApLayerCurCmd.d.ts.map +1 -1
- package/lib/command/layer/AcApLayerCurCmd.js +18 -77
- package/lib/command/layer/AcApLayerCurCmd.js.map +1 -1
- package/lib/command/layer/AcApLayerDelCmd.d.ts +2 -32
- package/lib/command/layer/AcApLayerDelCmd.d.ts.map +1 -1
- package/lib/command/layer/AcApLayerDelCmd.js +26 -169
- package/lib/command/layer/AcApLayerDelCmd.js.map +1 -1
- package/lib/command/layer/AcApLayerFreezeCmd.d.ts +2 -16
- package/lib/command/layer/AcApLayerFreezeCmd.d.ts.map +1 -1
- package/lib/command/layer/AcApLayerFreezeCmd.js +32 -54
- package/lib/command/layer/AcApLayerFreezeCmd.js.map +1 -1
- package/lib/command/layer/AcApLayerIsoCmd.d.ts +2 -31
- package/lib/command/layer/AcApLayerIsoCmd.d.ts.map +1 -1
- package/lib/command/layer/AcApLayerIsoCmd.js +19 -198
- package/lib/command/layer/AcApLayerIsoCmd.js.map +1 -1
- package/lib/command/layer/AcApLayerLockCmd.d.ts +2 -40
- package/lib/command/layer/AcApLayerLockCmd.d.ts.map +1 -1
- package/lib/command/layer/AcApLayerLockCmd.js +18 -65
- package/lib/command/layer/AcApLayerLockCmd.js.map +1 -1
- package/lib/command/layer/AcApLayerMutationCmd.d.ts +13 -0
- package/lib/command/layer/AcApLayerMutationCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerMutationCmd.js +42 -0
- package/lib/command/layer/AcApLayerMutationCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerOffCmd.d.ts +2 -9
- package/lib/command/layer/AcApLayerOffCmd.d.ts.map +1 -1
- package/lib/command/layer/AcApLayerOffCmd.js +32 -43
- package/lib/command/layer/AcApLayerOffCmd.js.map +1 -1
- package/lib/command/layer/AcApLayerOnCmd.d.ts +2 -22
- package/lib/command/layer/AcApLayerOnCmd.d.ts.map +1 -1
- package/lib/command/layer/AcApLayerOnCmd.js +8 -62
- package/lib/command/layer/AcApLayerOnCmd.js.map +1 -1
- package/lib/command/layer/AcApLayerPCmd.d.ts +2 -75
- package/lib/command/layer/AcApLayerPCmd.d.ts.map +1 -1
- package/lib/command/layer/AcApLayerPCmd.js +6 -165
- package/lib/command/layer/AcApLayerPCmd.js.map +1 -1
- package/lib/command/layer/AcApLayerThawCmd.d.ts +2 -29
- package/lib/command/layer/AcApLayerThawCmd.d.ts.map +1 -1
- package/lib/command/layer/AcApLayerThawCmd.js +8 -74
- package/lib/command/layer/AcApLayerThawCmd.js.map +1 -1
- package/lib/command/layer/AcApLayerUnisoCmd.d.ts +2 -44
- package/lib/command/layer/AcApLayerUnisoCmd.d.ts.map +1 -1
- package/lib/command/layer/AcApLayerUnisoCmd.js +10 -122
- package/lib/command/layer/AcApLayerUnisoCmd.js.map +1 -1
- package/lib/command/layer/AcApLayerUnlockCmd.d.ts +2 -40
- package/lib/command/layer/AcApLayerUnlockCmd.d.ts.map +1 -1
- package/lib/command/layer/AcApLayerUnlockCmd.js +18 -65
- package/lib/command/layer/AcApLayerUnlockCmd.js.map +1 -1
- package/lib/command/modify/AcApCopyCmd.d.ts +12 -0
- package/lib/command/modify/AcApCopyCmd.d.ts.map +1 -1
- package/lib/command/modify/AcApCopyCmd.js +67 -177
- package/lib/command/modify/AcApCopyCmd.js.map +1 -1
- package/lib/command/modify/AcApCopyPreviewJig.d.ts +21 -0
- package/lib/command/modify/AcApCopyPreviewJig.d.ts.map +1 -0
- package/lib/command/modify/AcApCopyPreviewJig.js +61 -0
- package/lib/command/modify/AcApCopyPreviewJig.js.map +1 -0
- package/lib/command/modify/AcApEraseCmd.d.ts +0 -6
- package/lib/command/modify/AcApEraseCmd.d.ts.map +1 -1
- package/lib/command/modify/AcApEraseCmd.js +11 -38
- package/lib/command/modify/AcApEraseCmd.js.map +1 -1
- package/lib/command/modify/AcApHideObjectsCmd.d.ts +0 -7
- package/lib/command/modify/AcApHideObjectsCmd.d.ts.map +1 -1
- package/lib/command/modify/AcApHideObjectsCmd.js +1 -8
- package/lib/command/modify/AcApHideObjectsCmd.js.map +1 -1
- package/lib/command/modify/AcApMoveCmd.d.ts +0 -6
- package/lib/command/modify/AcApMoveCmd.d.ts.map +1 -1
- package/lib/command/modify/AcApMoveCmd.js +26 -105
- package/lib/command/modify/AcApMoveCmd.js.map +1 -1
- package/lib/command/modify/AcApMovePreviewJig.d.ts +18 -0
- package/lib/command/modify/AcApMovePreviewJig.d.ts.map +1 -0
- package/lib/command/modify/AcApMovePreviewJig.js +45 -0
- package/lib/command/modify/AcApMovePreviewJig.js.map +1 -0
- package/lib/command/modify/AcApOffsetCmd.d.ts.map +1 -1
- package/lib/command/modify/AcApOffsetCmd.js +14 -37
- package/lib/command/modify/AcApOffsetCmd.js.map +1 -1
- package/lib/command/modify/AcApRotateCmd.d.ts +2 -2
- package/lib/command/modify/AcApRotateCmd.d.ts.map +1 -1
- package/lib/command/modify/AcApRotateCmd.js +38 -204
- package/lib/command/modify/AcApRotateCmd.js.map +1 -1
- package/lib/command/modify/AcApRotatePreviewJig.d.ts +47 -0
- package/lib/command/modify/AcApRotatePreviewJig.d.ts.map +1 -0
- package/lib/command/modify/AcApRotatePreviewJig.js +97 -0
- package/lib/command/modify/AcApRotatePreviewJig.js.map +1 -0
- package/lib/command/modify/AcApUnisolateObjectsCmd.d.ts.map +1 -1
- package/lib/command/modify/AcApUnisolateObjectsCmd.js +3 -3
- package/lib/command/modify/AcApUnisolateObjectsCmd.js.map +1 -1
- package/lib/editor/command/AcEdCommand.d.ts +24 -0
- package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommand.js +71 -5
- package/lib/editor/command/AcEdCommand.js.map +1 -1
- package/lib/editor/global/AcEdUiColor.d.ts +13 -13
- package/lib/editor/global/AcEdUiColor.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiColor.js +21 -20
- package/lib/editor/global/AcEdUiColor.js.map +1 -1
- package/lib/editor/global/eventBus.d.ts +16 -2
- package/lib/editor/global/eventBus.d.ts.map +1 -1
- package/lib/editor/global/eventBus.js.map +1 -1
- package/lib/editor/grip/AcEdGripAppearance.d.ts +18 -0
- package/lib/editor/grip/AcEdGripAppearance.d.ts.map +1 -0
- package/lib/editor/grip/AcEdGripAppearance.js +30 -0
- package/lib/editor/grip/AcEdGripAppearance.js.map +1 -0
- package/lib/editor/grip/AcEdGripEditSession.d.ts +29 -0
- package/lib/editor/grip/AcEdGripEditSession.d.ts.map +1 -0
- package/lib/editor/grip/AcEdGripEditSession.js +83 -0
- package/lib/editor/grip/AcEdGripEditSession.js.map +1 -0
- package/lib/editor/grip/AcEdGripHandle.d.ts +21 -0
- package/lib/editor/grip/AcEdGripHandle.d.ts.map +1 -0
- package/lib/editor/grip/AcEdGripHandle.js +62 -0
- package/lib/editor/grip/AcEdGripHandle.js.map +1 -0
- package/lib/editor/grip/AcEdGripManager.d.ts +171 -0
- package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -0
- package/lib/editor/grip/AcEdGripManager.js +376 -0
- package/lib/editor/grip/AcEdGripManager.js.map +1 -0
- package/lib/editor/grip/AcEdGripPolicy.d.ts +6 -0
- package/lib/editor/grip/AcEdGripPolicy.d.ts.map +1 -0
- package/lib/editor/grip/AcEdGripPolicy.js +30 -0
- package/lib/editor/grip/AcEdGripPolicy.js.map +1 -0
- package/lib/editor/grip/AcEdGripPreviewJig.d.ts +21 -0
- package/lib/editor/grip/AcEdGripPreviewJig.d.ts.map +1 -0
- package/lib/editor/grip/AcEdGripPreviewJig.js +73 -0
- package/lib/editor/grip/AcEdGripPreviewJig.js.map +1 -0
- package/lib/editor/grip/index.d.ts +5 -0
- package/lib/editor/grip/index.d.ts.map +1 -0
- package/lib/editor/grip/index.js +5 -0
- package/lib/editor/grip/index.js.map +1 -0
- package/lib/editor/index.d.ts +1 -0
- package/lib/editor/index.d.ts.map +1 -1
- package/lib/editor/index.js +1 -0
- package/lib/editor/index.js.map +1 -1
- package/lib/editor/input/AcEdBatchPreview.d.ts +96 -0
- package/lib/editor/input/AcEdBatchPreview.d.ts.map +1 -0
- package/lib/editor/input/AcEdBatchPreview.js +125 -0
- package/lib/editor/input/AcEdBatchPreview.js.map +1 -0
- package/lib/editor/input/AcEdCursorManager.d.ts.map +1 -1
- package/lib/editor/input/AcEdCursorManager.js +2 -2
- package/lib/editor/input/AcEdCursorManager.js.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.d.ts +34 -0
- package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -0
- package/lib/editor/input/AcEdOsnapResolver.js +117 -0
- package/lib/editor/input/AcEdOsnapResolver.js.map +1 -0
- package/lib/editor/input/AcEdPreviewJig.d.ts +1 -1
- package/lib/editor/input/AcEdPreviewJig.d.ts.map +1 -1
- package/lib/editor/input/AcEdPreviewJig.js +14 -0
- package/lib/editor/input/AcEdPreviewJig.js.map +1 -1
- package/lib/editor/input/AcEdSelectionPreviewJig.d.ts +109 -0
- package/lib/editor/input/AcEdSelectionPreviewJig.d.ts.map +1 -0
- package/lib/editor/input/AcEdSelectionPreviewJig.js +185 -0
- package/lib/editor/input/AcEdSelectionPreviewJig.js.map +1 -0
- package/lib/editor/input/handler/AcEdAngleHandler.d.ts +2 -1
- package/lib/editor/input/handler/AcEdAngleHandler.d.ts.map +1 -1
- package/lib/editor/input/handler/AcEdAngleHandler.js +6 -0
- package/lib/editor/input/handler/AcEdAngleHandler.js.map +1 -1
- package/lib/editor/input/handler/AcEdInputHandler.d.ts +20 -1
- package/lib/editor/input/handler/AcEdInputHandler.d.ts.map +1 -1
- package/lib/editor/input/handler/AcEdKeywordHandler.d.ts +2 -1
- package/lib/editor/input/handler/AcEdKeywordHandler.d.ts.map +1 -1
- package/lib/editor/input/handler/AcEdKeywordHandler.js +3 -0
- package/lib/editor/input/handler/AcEdKeywordHandler.js.map +1 -1
- package/lib/editor/input/handler/AcEdNumericalHandler.d.ts +2 -1
- package/lib/editor/input/handler/AcEdNumericalHandler.d.ts.map +1 -1
- package/lib/editor/input/handler/AcEdNumericalHandler.js +6 -0
- package/lib/editor/input/handler/AcEdNumericalHandler.js.map +1 -1
- package/lib/editor/input/handler/AcEdPointHandler.d.ts +17 -1
- package/lib/editor/input/handler/AcEdPointHandler.d.ts.map +1 -1
- package/lib/editor/input/handler/AcEdPointHandler.js +89 -0
- package/lib/editor/input/handler/AcEdPointHandler.js.map +1 -1
- package/lib/editor/input/handler/AcEdStringHandler.d.ts +2 -1
- package/lib/editor/input/handler/AcEdStringHandler.d.ts.map +1 -1
- package/lib/editor/input/handler/AcEdStringHandler.js +3 -0
- package/lib/editor/input/handler/AcEdStringHandler.js.map +1 -1
- package/lib/editor/input/index.d.ts +3 -0
- package/lib/editor/input/index.d.ts.map +1 -1
- package/lib/editor/input/index.js +3 -0
- package/lib/editor/input/index.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts +7 -0
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.js +17 -0
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.js.map +1 -1
- package/lib/editor/input/session/AcEdInputSession.d.ts +11 -1
- package/lib/editor/input/session/AcEdInputSession.d.ts.map +1 -1
- package/lib/editor/input/session/AcEdInputSession.js.map +1 -1
- package/lib/editor/input/session/AcEdPromptInputSession.d.ts +51 -0
- package/lib/editor/input/session/AcEdPromptInputSession.d.ts.map +1 -0
- package/lib/editor/input/session/AcEdPromptInputSession.js +109 -0
- package/lib/editor/input/session/AcEdPromptInputSession.js.map +1 -0
- package/lib/editor/input/session/index.d.ts +1 -0
- package/lib/editor/input/session/index.d.ts.map +1 -1
- package/lib/editor/input/session/index.js +1 -0
- package/lib/editor/input/session/index.js.map +1 -1
- package/lib/editor/input/ui/AcEdCommandLine.d.ts +10 -0
- package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdCommandLine.js +67 -35
- package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +0 -11
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +9 -119
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputBox.js +10 -2
- package/lib/editor/input/ui/AcEdFloatingInputBox.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.js +9 -4
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.js.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts +26 -23
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +135 -83
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdMTextEditor.js +2 -2
- package/lib/editor/input/ui/AcEdMTextEditor.js.map +1 -1
- package/lib/editor/view/AcEdBaseView.d.ts +44 -2
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +26 -12
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- package/lib/editor/view/AcEdSpatialQueryResult.d.ts +28 -0
- package/lib/editor/view/AcEdSpatialQueryResult.d.ts.map +1 -1
- package/lib/editor/view/AcEdSpatialQueryResult.js +65 -1
- package/lib/editor/view/AcEdSpatialQueryResult.js.map +1 -1
- package/lib/i18n/AcApI18n.d.ts +42 -0
- package/lib/i18n/AcApI18n.d.ts.map +1 -1
- package/lib/i18n/AcApI18n.js +56 -4
- package/lib/i18n/AcApI18n.js.map +1 -1
- package/lib/i18n/en/command.d.ts +26 -0
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +26 -0
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +26 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +134 -108
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/en/main.d.ts +3 -0
- package/lib/i18n/en/main.d.ts.map +1 -1
- package/lib/i18n/en/main.js +4 -1
- package/lib/i18n/en/main.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +26 -0
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +26 -0
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +26 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +134 -108
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/i18n/zh/main.d.ts +3 -0
- package/lib/i18n/zh/main.d.ts.map +1 -1
- package/lib/i18n/zh/main.js +4 -1
- package/lib/i18n/zh/main.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/plugin/AcApLazyPluginRegistration.d.ts +3 -8
- package/lib/plugin/AcApLazyPluginRegistration.d.ts.map +1 -1
- package/lib/service/AcApEntitySelection.d.ts +42 -0
- package/lib/service/AcApEntitySelection.d.ts.map +1 -0
- package/lib/service/AcApEntitySelection.js +156 -0
- package/lib/service/AcApEntitySelection.js.map +1 -0
- package/lib/service/AcApEntityService.d.ts +115 -0
- package/lib/service/AcApEntityService.d.ts.map +1 -0
- package/lib/service/AcApEntityService.js +194 -0
- package/lib/service/AcApEntityService.js.map +1 -0
- package/lib/{command/layer → service}/AcApLayerIsoState.d.ts +6 -24
- package/lib/service/AcApLayerIsoState.d.ts.map +1 -0
- package/lib/service/AcApLayerIsoState.js +28 -0
- package/lib/service/AcApLayerIsoState.js.map +1 -0
- package/lib/service/AcApLayerService.d.ts +400 -0
- package/lib/service/AcApLayerService.d.ts.map +1 -0
- package/lib/service/AcApLayerService.js +1240 -0
- package/lib/service/AcApLayerService.js.map +1 -0
- package/lib/service/AcApLayerStore.d.ts +198 -0
- package/lib/service/AcApLayerStore.d.ts.map +1 -0
- package/lib/service/AcApLayerStore.js +335 -0
- package/lib/service/AcApLayerStore.js.map +1 -0
- package/lib/service/AcApServiceEdit.d.ts +18 -0
- package/lib/service/AcApServiceEdit.d.ts.map +1 -0
- package/lib/service/AcApServiceEdit.js +34 -0
- package/lib/service/AcApServiceEdit.js.map +1 -0
- package/lib/service/index.d.ts +16 -0
- package/lib/service/index.d.ts.map +1 -0
- package/lib/service/index.js +16 -0
- package/lib/service/index.js.map +1 -0
- package/lib/service/types.d.ts +116 -0
- package/lib/service/types.d.ts.map +1 -0
- package/lib/service/types.js +5 -0
- package/lib/service/types.js.map +1 -0
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts +22 -7
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js +58 -12
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js.map +1 -1
- package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts +2 -2
- package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrLinearSpatialIndex.js +9 -3
- package/lib/spatialIndex/AcTrLinearSpatialIndex.js.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts +2 -2
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js +19 -5
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
- package/lib/spatialIndex/AcTrSpatialIndex.d.ts +10 -1
- package/lib/spatialIndex/AcTrSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrSpatialIndex.js +7 -1
- package/lib/spatialIndex/AcTrSpatialIndex.js.map +1 -1
- package/lib/util/AcApDatabaseEdit.d.ts +11 -0
- package/lib/util/AcApDatabaseEdit.d.ts.map +1 -0
- package/lib/util/AcApDatabaseEdit.js +20 -0
- package/lib/util/AcApDatabaseEdit.js.map +1 -0
- package/lib/util/AcApFontUtil.d.ts +14 -2
- package/lib/util/AcApFontUtil.d.ts.map +1 -1
- package/lib/util/AcApFontUtil.js +18 -0
- package/lib/util/AcApFontUtil.js.map +1 -1
- package/lib/util/AcApGeTransform.d.ts +10 -0
- package/lib/util/AcApGeTransform.d.ts.map +1 -0
- package/lib/util/AcApGeTransform.js +15 -0
- package/lib/util/AcApGeTransform.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/view/AcEdViewKeyHandler.d.ts +32 -0
- package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -0
- package/lib/view/AcEdViewKeyHandler.js +101 -0
- package/lib/view/AcEdViewKeyHandler.js.map +1 -0
- package/lib/view/AcTrEntityDisplayController.d.ts +46 -0
- package/lib/view/AcTrEntityDisplayController.d.ts.map +1 -0
- package/lib/view/AcTrEntityDisplayController.js +114 -0
- package/lib/view/AcTrEntityDisplayController.js.map +1 -0
- package/lib/view/AcTrGroupWcsBboxAssert.d.ts +43 -0
- package/lib/view/AcTrGroupWcsBboxAssert.d.ts.map +1 -0
- package/lib/view/AcTrGroupWcsBboxAssert.js +84 -0
- package/lib/view/AcTrGroupWcsBboxAssert.js.map +1 -0
- package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts +49 -0
- package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts.map +1 -0
- package/lib/view/AcTrInheritedLayerMaterialMapper.js +138 -0
- package/lib/view/AcTrInheritedLayerMaterialMapper.js.map +1 -0
- package/lib/view/AcTrLayer.d.ts +33 -2
- package/lib/view/AcTrLayer.d.ts.map +1 -1
- package/lib/view/AcTrLayer.js +75 -2
- package/lib/view/AcTrLayer.js.map +1 -1
- package/lib/view/AcTrLayerAppearanceController.d.ts +55 -0
- package/lib/view/AcTrLayerAppearanceController.d.ts.map +1 -0
- package/lib/view/AcTrLayerAppearanceController.js +86 -0
- package/lib/view/AcTrLayerAppearanceController.js.map +1 -0
- package/lib/view/AcTrLayout.d.ts +37 -2
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +161 -15
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrProgressiveOpenFitController.d.ts +64 -0
- package/lib/view/AcTrProgressiveOpenFitController.d.ts.map +1 -0
- package/lib/view/AcTrProgressiveOpenFitController.js +209 -0
- package/lib/view/AcTrProgressiveOpenFitController.js.map +1 -0
- package/lib/view/AcTrScene.d.ts +47 -1
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +78 -3
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +118 -27
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +584 -362
- package/lib/view/AcTrView2d.js.map +1 -1
- package/lib/view/index.d.ts +3 -0
- package/lib/view/index.d.ts.map +1 -1
- package/lib/view/index.js +3 -0
- package/lib/view/index.js.map +1 -1
- package/package.json +13 -11
- package/dist/index.umd.cjs +0 -897
- package/lib/command/layer/AcApLayerIsoState.d.ts.map +0 -1
- package/lib/command/layer/AcApLayerIsoState.js +0 -53
- package/lib/command/layer/AcApLayerIsoState.js.map +0 -1
|
@@ -1,83 +1,10 @@
|
|
|
1
1
|
import { AcApContext } from '../../app';
|
|
2
|
-
import {
|
|
3
|
-
/**
|
|
4
|
-
* Global store for layer state snapshots to support LAYERP command.
|
|
5
|
-
*/
|
|
6
|
-
declare class AcApLayerPreviousStateManager {
|
|
7
|
-
private previousSnapshot;
|
|
8
|
-
/**
|
|
9
|
-
* Captures the current layer state.
|
|
10
|
-
* @param context - Active application context
|
|
11
|
-
*/
|
|
12
|
-
captureState(context: AcApContext): void;
|
|
13
|
-
/**
|
|
14
|
-
* Restores the previous layer state.
|
|
15
|
-
* @param context - Active application context
|
|
16
|
-
* @returns true if restoration was successful
|
|
17
|
-
*/
|
|
18
|
-
restorePreviousState(context: AcApContext): boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Clears the previous state snapshot.
|
|
21
|
-
*/
|
|
22
|
-
clearPreviousState(): void;
|
|
23
|
-
/**
|
|
24
|
-
* Checks if a layer is locked.
|
|
25
|
-
* @param layer - Layer table record
|
|
26
|
-
*/
|
|
27
|
-
private isLayerLocked;
|
|
28
|
-
/**
|
|
29
|
-
* Sets or clears the locked bit in layer flags.
|
|
30
|
-
* @param layer - Layer table record
|
|
31
|
-
* @param locked - Whether the layer should be locked
|
|
32
|
-
*/
|
|
33
|
-
private setLayerLocked;
|
|
34
|
-
/**
|
|
35
|
-
* Sets or clears the frozen bit in layer flags.
|
|
36
|
-
* @param layer - Layer table record
|
|
37
|
-
* @param frozen - Whether the layer should be frozen
|
|
38
|
-
*/
|
|
39
|
-
private setLayerFrozen;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Exposes layer previous state manager for external use.
|
|
43
|
-
*/
|
|
44
|
-
export declare function getLayerPreviousStateManager(): AcApLayerPreviousStateManager;
|
|
2
|
+
import { AcApLayerMutationCmd } from './AcApLayerMutationCmd';
|
|
45
3
|
/**
|
|
46
4
|
* AutoCAD-like `LAYERP` command.
|
|
47
|
-
*
|
|
48
|
-
* The command restores the layer state to what it was before the last
|
|
49
|
-
* layer-modifying operation. This includes changes to layer on/off,
|
|
50
|
-
* freeze/thaw, and lock/unlock states.
|
|
51
|
-
*
|
|
52
|
-
* Note: This is a simplified implementation that tracks one previous state.
|
|
53
|
-
* A full implementation would maintain a stack of states.
|
|
54
5
|
*/
|
|
55
|
-
export declare class AcApLayerPCmd extends
|
|
56
|
-
/**
|
|
57
|
-
* Creates a write-enabled `LAYERP` command instance.
|
|
58
|
-
*/
|
|
6
|
+
export declare class AcApLayerPCmd extends AcApLayerMutationCmd {
|
|
59
7
|
constructor();
|
|
60
|
-
/**
|
|
61
|
-
* Runs the restore-previous-layer-state workflow.
|
|
62
|
-
*
|
|
63
|
-
* @param context - Active application context used to update the current drawing.
|
|
64
|
-
* @returns Resolves when the restoration is complete or if there is nothing to restore.
|
|
65
|
-
*/
|
|
66
8
|
execute(context: AcApContext): Promise<void>;
|
|
67
|
-
/**
|
|
68
|
-
* Sends a localized status message through the command-line output.
|
|
69
|
-
*
|
|
70
|
-
* @param message - Text to display to the user.
|
|
71
|
-
* @param type - Visual severity mapped to command-line message styles.
|
|
72
|
-
*/
|
|
73
|
-
private notify;
|
|
74
9
|
}
|
|
75
|
-
/**
|
|
76
|
-
* Captures layer state before executing a layer-modifying command.
|
|
77
|
-
* Should be called before executing commands like LAYOFF, LAYFRZ, LAYLCK, etc.
|
|
78
|
-
*
|
|
79
|
-
* @param context - Active application context
|
|
80
|
-
*/
|
|
81
|
-
export declare function captureLayerStateBeforeOperation(context: AcApContext): void;
|
|
82
|
-
export {};
|
|
83
10
|
//# sourceMappingURL=AcApLayerPCmd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApLayerPCmd.d.ts","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerPCmd.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AcApLayerPCmd.d.ts","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerPCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAGvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D;;GAEG;AACH,qBAAa,aAAc,SAAQ,oBAAoB;;IAM/C,OAAO,CAAC,OAAO,EAAE,WAAW;CASnC"}
|
|
@@ -49,193 +49,34 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49
49
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
|
|
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';
|
|
52
|
+
import { AcEdOpenMode } from '../../editor';
|
|
79
53
|
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
|
-
}
|
|
54
|
+
import { AcApLayerMutationCmd } from './AcApLayerMutationCmd';
|
|
179
55
|
/**
|
|
180
56
|
* 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
57
|
*/
|
|
189
58
|
var AcApLayerPCmd = /** @class */ (function (_super) {
|
|
190
59
|
__extends(AcApLayerPCmd, _super);
|
|
191
|
-
/**
|
|
192
|
-
* Creates a write-enabled `LAYERP` command instance.
|
|
193
|
-
*/
|
|
194
60
|
function AcApLayerPCmd() {
|
|
195
61
|
var _this = _super.call(this) || this;
|
|
196
62
|
_this.mode = AcEdOpenMode.Write;
|
|
197
63
|
return _this;
|
|
198
64
|
}
|
|
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
65
|
AcApLayerPCmd.prototype.execute = function (context) {
|
|
206
66
|
return __awaiter(this, void 0, void 0, function () {
|
|
207
67
|
return __generator(this, function (_a) {
|
|
208
|
-
if (
|
|
209
|
-
this.
|
|
68
|
+
if (context.doc.restoreLayerPreviousState()) {
|
|
69
|
+
this.showMessage(AcApI18n.t('jig.layerp.restored'), 'success');
|
|
210
70
|
}
|
|
211
71
|
else {
|
|
212
|
-
this.
|
|
72
|
+
this.showMessage(AcApI18n.t('jig.layerp.noPreviousState'));
|
|
213
73
|
}
|
|
214
74
|
context.view.selectionSet.clear();
|
|
215
75
|
return [2 /*return*/];
|
|
216
76
|
});
|
|
217
77
|
});
|
|
218
78
|
};
|
|
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
79
|
return AcApLayerPCmd;
|
|
230
|
-
}(
|
|
80
|
+
}(AcApLayerMutationCmd));
|
|
231
81
|
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
82
|
//# sourceMappingURL=AcApLayerPCmd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApLayerPCmd.js","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerPCmd.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AcApLayerPCmd.js","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerPCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D;;GAEG;AACH;IAAmC,iCAAoB;IACrD;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,IAAI,GAAG,YAAY,CAAC,KAAK,CAAA;;IAChC,CAAC;IAEK,+BAAO,GAAb,UAAc,OAAoB;;;gBAChC,IAAI,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,CAAC;oBAC5C,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,qBAAqB,CAAC,EAAE,SAAS,CAAC,CAAA;gBAChE,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAA;gBAC5D,CAAC;gBAED,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAA;;;;KAClC;IACH,oBAAC;AAAD,CAAC,AAfD,CAAmC,oBAAoB,GAetD"}
|
|
@@ -1,37 +1,10 @@
|
|
|
1
1
|
import { AcApContext } from '../../app';
|
|
2
|
-
import {
|
|
2
|
+
import { AcApLayerMutationCmd } from './AcApLayerMutationCmd';
|
|
3
3
|
/**
|
|
4
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
5
|
*/
|
|
10
|
-
export declare class AcApLayerThawCmd extends
|
|
11
|
-
/**
|
|
12
|
-
* Creates a write-enabled `LAYTHW` command instance.
|
|
13
|
-
*/
|
|
6
|
+
export declare class AcApLayerThawCmd extends AcApLayerMutationCmd {
|
|
14
7
|
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
8
|
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
9
|
}
|
|
37
10
|
//# sourceMappingURL=AcApLayerThawCmd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApLayerThawCmd.d.ts","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerThawCmd.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AcApLayerThawCmd.d.ts","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerThawCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAIvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,oBAAoB;;IAMlD,OAAO,CAAC,OAAO,EAAE,WAAW;CAWnC"}
|
|
@@ -49,102 +49,36 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49
49
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
|
|
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';
|
|
52
|
+
import { AcEdOpenMode } from '../../editor';
|
|
79
53
|
import { AcApI18n } from '../../i18n';
|
|
54
|
+
import { AcApLayerService } from '../../service';
|
|
55
|
+
import { AcApLayerMutationCmd } from './AcApLayerMutationCmd';
|
|
80
56
|
/**
|
|
81
57
|
* 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
58
|
*/
|
|
87
59
|
var AcApLayerThawCmd = /** @class */ (function (_super) {
|
|
88
60
|
__extends(AcApLayerThawCmd, _super);
|
|
89
|
-
/**
|
|
90
|
-
* Creates a write-enabled `LAYTHW` command instance.
|
|
91
|
-
*/
|
|
92
61
|
function AcApLayerThawCmd() {
|
|
93
62
|
var _this = _super.call(this) || this;
|
|
94
63
|
_this.mode = AcEdOpenMode.Write;
|
|
95
64
|
return _this;
|
|
96
65
|
}
|
|
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
66
|
AcApLayerThawCmd.prototype.execute = function (context) {
|
|
104
67
|
return __awaiter(this, void 0, void 0, function () {
|
|
105
|
-
var
|
|
106
|
-
var _this = this;
|
|
68
|
+
var thawed;
|
|
107
69
|
return __generator(this, function (_a) {
|
|
108
|
-
|
|
109
|
-
thawed = 0;
|
|
110
|
-
layers.forEach(function (layer) {
|
|
111
|
-
if (!layer.isFrozen)
|
|
112
|
-
return;
|
|
113
|
-
_this.setLayerFrozen(layer, false);
|
|
114
|
-
thawed++;
|
|
115
|
-
});
|
|
70
|
+
thawed = new AcApLayerService(context.doc.database).thawAllLayers();
|
|
116
71
|
context.view.selectionSet.clear();
|
|
117
72
|
if (thawed === 0) {
|
|
118
|
-
this.
|
|
73
|
+
this.showMessage(AcApI18n.t('jig.laythw.alreadyThawed'));
|
|
119
74
|
return [2 /*return*/];
|
|
120
75
|
}
|
|
121
|
-
this.
|
|
76
|
+
this.showMessage("".concat(AcApI18n.t('jig.laythw.thawed'), ": ").concat(thawed), 'success');
|
|
122
77
|
return [2 /*return*/];
|
|
123
78
|
});
|
|
124
79
|
});
|
|
125
80
|
};
|
|
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
81
|
return AcApLayerThawCmd;
|
|
148
|
-
}(
|
|
82
|
+
}(AcApLayerMutationCmd));
|
|
149
83
|
export { AcApLayerThawCmd };
|
|
150
84
|
//# sourceMappingURL=AcApLayerThawCmd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApLayerThawCmd.js","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerThawCmd.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AcApLayerThawCmd.js","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerThawCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D;;GAEG;AACH;IAAsC,oCAAoB;IACxD;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,IAAI,GAAG,YAAY,CAAC,KAAK,CAAA;;IAChC,CAAC;IAEK,kCAAO,GAAb,UAAc,OAAoB;;;;gBAC1B,MAAM,GAAG,IAAI,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,CAAA;gBACzE,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAA;gBAEjC,IAAI,MAAM,KAAK,CAAC,EAAE,CAAC;oBACjB,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAA;oBACxD,sBAAM;gBACR,CAAC;gBAED,IAAI,CAAC,WAAW,CAAC,UAAG,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,eAAK,MAAM,CAAE,EAAE,SAAS,CAAC,CAAA;;;;KAC7E;IACH,uBAAC;AAAD,CAAC,AAjBD,CAAsC,oBAAoB,GAiBzD"}
|
|
@@ -1,52 +1,10 @@
|
|
|
1
1
|
import { AcApContext } from '../../app';
|
|
2
|
-
import {
|
|
2
|
+
import { AcApLayerMutationCmd } from './AcApLayerMutationCmd';
|
|
3
3
|
/**
|
|
4
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
5
|
*/
|
|
10
|
-
export declare class AcApLayerUnisoCmd extends
|
|
11
|
-
/**
|
|
12
|
-
* Creates a write-enabled `LAYUNISO` command instance.
|
|
13
|
-
*/
|
|
6
|
+
export declare class AcApLayerUnisoCmd extends AcApLayerMutationCmd {
|
|
14
7
|
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
8
|
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
9
|
}
|
|
52
10
|
//# sourceMappingURL=AcApLayerUnisoCmd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApLayerUnisoCmd.d.ts","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerUnisoCmd.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AcApLayerUnisoCmd.d.ts","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerUnisoCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAGvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,oBAAoB;;IAMnD,OAAO,CAAC,OAAO,EAAE,WAAW;CAoBnC"}
|