@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdGripPolicy.js","sourceRoot":"","sources":["../../../src/editor/grip/AcEdGripPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD;;;;;;GAMG;AACH,SAAS,oCAAoC,CAC3C,cAAsB,EACtB,YAAoB;IAEpB,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;QACtB,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,cAAc,GAAG,YAAY,CAAA;AACtC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CACjC,QAAsB,EACtB,YAAqB,EACrB,iBAA0B,EAC1B,cAAsB,EACtB,YAAoB;IAEpB,IAAI,QAAQ,KAAK,YAAY,CAAC,KAAK,EAAE,CAAC;QACpC,OAAO,KAAK,CAAA;IACd,CAAC;IACD,IAAI,YAAY,EAAE,CAAC;QACjB,OAAO,KAAK,CAAA;IACd,CAAC;IACD,IAAI,iBAAiB,EAAE,CAAC;QACtB,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,CAAC,oCAAoC,CAAC,cAAc,EAAE,YAAY,CAAC,CAAA;AAC5E,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AcDbEntity, AcGePoint3dLike, AcGeVector3d } from '@mlightcad/data-model';
|
|
2
|
+
import { AcEdPreviewJig } from '../input/AcEdPreviewJig';
|
|
3
|
+
import { AcEdBaseView } from '../view/AcEdBaseView';
|
|
4
|
+
/**
|
|
5
|
+
* Preview jig that applies {@link AcDbEntity.subMoveGripPointsAt} on a clone
|
|
6
|
+
* while the user drags a grip handle.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AcEdGripPreviewJig extends AcEdPreviewJig<AcGePoint3dLike> {
|
|
9
|
+
private readonly _view;
|
|
10
|
+
private readonly _sourceClone;
|
|
11
|
+
private readonly _gripIndex;
|
|
12
|
+
private readonly _gripBaseWcs;
|
|
13
|
+
private _previewEntity;
|
|
14
|
+
constructor(view: AcEdBaseView, entity: AcDbEntity, gripIndex: number, gripBaseWcs: AcGePoint3dLike);
|
|
15
|
+
get entity(): AcDbEntity | null;
|
|
16
|
+
update(point: AcGePoint3dLike): void;
|
|
17
|
+
computeOffset(point: AcGePoint3dLike): AcGeVector3d;
|
|
18
|
+
render(): void;
|
|
19
|
+
end(): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=AcEdGripPreviewJig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdGripPreviewJig.d.ts","sourceRoot":"","sources":["../../../src/editor/grip/AcEdGripPreviewJig.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAEV,eAAe,EACf,YAAY,EACb,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,cAAc,CAAC,eAAe,CAAC;IACrE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAY;IACzC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAQ;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAa;IAC1C,OAAO,CAAC,cAAc,CAA0B;gBAG9C,IAAI,EAAE,YAAY,EAClB,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,eAAe;IAa9B,IAAI,MAAM,IAAI,UAAU,GAAG,IAAI,CAE9B;IAED,MAAM,CAAC,KAAK,EAAE,eAAe;IAa7B,aAAa,CAAC,KAAK,EAAE,eAAe,GAAG,YAAY;IAQ1C,MAAM,IAAI,IAAI;IAMd,GAAG,IAAI,IAAI;CAMrB"}
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
import { AcGePoint3d, AcGeVector3d } from '@mlightcad/data-model';
|
|
17
|
+
import { AcEdPreviewJig } from '../input/AcEdPreviewJig';
|
|
18
|
+
/**
|
|
19
|
+
* Preview jig that applies {@link AcDbEntity.subMoveGripPointsAt} on a clone
|
|
20
|
+
* while the user drags a grip handle.
|
|
21
|
+
*/
|
|
22
|
+
var AcEdGripPreviewJig = /** @class */ (function (_super) {
|
|
23
|
+
__extends(AcEdGripPreviewJig, _super);
|
|
24
|
+
function AcEdGripPreviewJig(view, entity, gripIndex, gripBaseWcs) {
|
|
25
|
+
var _this = _super.call(this, view) || this;
|
|
26
|
+
_this._previewEntity = null;
|
|
27
|
+
_this._view = view;
|
|
28
|
+
var sourceClone = entity.clone();
|
|
29
|
+
if (!sourceClone) {
|
|
30
|
+
throw new Error('Failed to clone entity for grip preview.');
|
|
31
|
+
}
|
|
32
|
+
_this._sourceClone = sourceClone;
|
|
33
|
+
_this._gripIndex = gripIndex;
|
|
34
|
+
_this._gripBaseWcs = new AcGePoint3d(gripBaseWcs);
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
Object.defineProperty(AcEdGripPreviewJig.prototype, "entity", {
|
|
38
|
+
get: function () {
|
|
39
|
+
return this._previewEntity;
|
|
40
|
+
},
|
|
41
|
+
enumerable: false,
|
|
42
|
+
configurable: true
|
|
43
|
+
});
|
|
44
|
+
AcEdGripPreviewJig.prototype.update = function (point) {
|
|
45
|
+
if (this._previewEntity) {
|
|
46
|
+
this._view.removeTransientEntity(this._previewEntity.objectId);
|
|
47
|
+
this._previewEntity = null;
|
|
48
|
+
}
|
|
49
|
+
var preview = this._sourceClone.clone();
|
|
50
|
+
if (!preview)
|
|
51
|
+
return;
|
|
52
|
+
preview.subMoveGripPointsAt([this._gripIndex], this.computeOffset(point));
|
|
53
|
+
this._previewEntity = preview;
|
|
54
|
+
};
|
|
55
|
+
AcEdGripPreviewJig.prototype.computeOffset = function (point) {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
return new AcGeVector3d(point.x - this._gripBaseWcs.x, point.y - this._gripBaseWcs.y, ((_a = point.z) !== null && _a !== void 0 ? _a : 0) - ((_b = this._gripBaseWcs.z) !== null && _b !== void 0 ? _b : 0));
|
|
58
|
+
};
|
|
59
|
+
AcEdGripPreviewJig.prototype.render = function () {
|
|
60
|
+
if (this._previewEntity) {
|
|
61
|
+
this._view.addTransientEntity(this._previewEntity);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
AcEdGripPreviewJig.prototype.end = function () {
|
|
65
|
+
if (this._previewEntity) {
|
|
66
|
+
this._view.removeTransientEntity(this._previewEntity.objectId);
|
|
67
|
+
this._previewEntity = null;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
return AcEdGripPreviewJig;
|
|
71
|
+
}(AcEdPreviewJig));
|
|
72
|
+
export { AcEdGripPreviewJig };
|
|
73
|
+
//# sourceMappingURL=AcEdGripPreviewJig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdGripPreviewJig.js","sourceRoot":"","sources":["../../../src/editor/grip/AcEdGripPreviewJig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAEL,WAAW,EAEX,YAAY,EACb,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAGxD;;;GAGG;AACH;IAAwC,sCAA+B;IAOrE,4BACE,IAAkB,EAClB,MAAkB,EAClB,SAAiB,EACjB,WAA4B;QAE5B,YAAA,MAAK,YAAC,IAAI,CAAC,SAAA;QARL,oBAAc,GAAsB,IAAI,CAAA;QAS9C,KAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,IAAM,WAAW,GAAG,MAAM,CAAC,KAAK,EAAE,CAAA;QAClC,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;QAC7D,CAAC;QACD,KAAI,CAAC,YAAY,GAAG,WAAW,CAAA;QAC/B,KAAI,CAAC,UAAU,GAAG,SAAS,CAAA;QAC3B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qB,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAA;YAC9D,IAAI,CAAC,cAAc,GAAG,IAAI,CAAA;QAC5B,CAAC;IACH,CAAC;IACH,yBAAC;AAAD,CAAC,AA7DD,CAAwC,cAAc,GA6DrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/grip/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/grip/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA"}
|
package/lib/editor/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA"}
|
package/lib/editor/index.js
CHANGED
package/lib/editor/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { AcDbObjectId, AcGeMatrix3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/data-model';
|
|
2
|
+
import { AcEdBaseView } from '../view/AcEdBaseView';
|
|
3
|
+
/**
|
|
4
|
+
* Manages batched entity preview overlays for command jigs.
|
|
5
|
+
*
|
|
6
|
+
* Used by MOVE, ROTATE, COPY, and similar modify jigs. When batch preview
|
|
7
|
+
* creation succeeds, the overlay reuses GPU-resident geometry and is updated
|
|
8
|
+
* each frame via {@link AcEdBaseView.updateEntityPreview}. When creation
|
|
9
|
+
* fails, callers fall back to legacy transient entity clones.
|
|
10
|
+
*
|
|
11
|
+
* Pass `copyCount` of `1` (default) for a single transformed preview, or a
|
|
12
|
+
* larger value for COPY array previews with independent placements.
|
|
13
|
+
*/
|
|
14
|
+
export declare class AcEdBatchedPreview {
|
|
15
|
+
/**
|
|
16
|
+
* Preview handle ids returned by {@link AcEdBaseView.createEntityPreview}.
|
|
17
|
+
*
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
20
|
+
private readonly _handleIds;
|
|
21
|
+
/**
|
|
22
|
+
* Whether this instance is driving batched GPU-resident previews.
|
|
23
|
+
*
|
|
24
|
+
* When `false`, callers should use the legacy transient-entity preview path.
|
|
25
|
+
*/
|
|
26
|
+
readonly useBatchPreview: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Number of preview overlays managed by this instance.
|
|
29
|
+
*
|
|
30
|
+
* Zero when no previews were requested at construction time.
|
|
31
|
+
*/
|
|
32
|
+
readonly copyCount: number;
|
|
33
|
+
/**
|
|
34
|
+
* Creates one or more batched preview overlays for the given entities.
|
|
35
|
+
*
|
|
36
|
+
* Batch preview is disabled when `copyCount` is zero, the view cannot
|
|
37
|
+
* create batch previews, or any individual overlay fails to initialize.
|
|
38
|
+
* On partial failure, all successfully created overlays are disposed
|
|
39
|
+
* before returning.
|
|
40
|
+
*
|
|
41
|
+
* @param view - View that owns preview creation and scene updates
|
|
42
|
+
* @param entityIds - Object ids of entities to include in each overlay
|
|
43
|
+
* @param copyCount - Number of overlays to create (default `1`)
|
|
44
|
+
*/
|
|
45
|
+
constructor(view: AcEdBaseView, entityIds: AcDbObjectId[], copyCount?: number);
|
|
46
|
+
/**
|
|
47
|
+
* Applies a world-space transform to the single preview overlay.
|
|
48
|
+
*
|
|
49
|
+
* No-op when batch preview was not created, has been disposed, or
|
|
50
|
+
* {@link copyCount} is not `1`.
|
|
51
|
+
*
|
|
52
|
+
* @param view - View that owns the preview overlay
|
|
53
|
+
* @param matrix - World transform to apply to the preview geometry
|
|
54
|
+
*/
|
|
55
|
+
updateMatrix(view: AcEdBaseView, matrix: AcGeMatrix3d): void;
|
|
56
|
+
/**
|
|
57
|
+
* Updates the world-space placement of every copy overlay.
|
|
58
|
+
*
|
|
59
|
+
* Each overlay receives a translation matrix derived from `displacement`,
|
|
60
|
+
* scaled by its copy factor and optional fit mode via
|
|
61
|
+
* {@link scaleCopyDisplacement}. No-op when {@link useBatchPreview} is `false`.
|
|
62
|
+
*
|
|
63
|
+
* @param view - View that owns the preview overlays
|
|
64
|
+
* @param displacement - Base displacement from the copy base point to the
|
|
65
|
+
* current cursor position
|
|
66
|
+
* @param fitMode - When `true`, scales displacements so the last copy lands
|
|
67
|
+
* on the cursor (`factor / copyCount`); otherwise uses full multiples
|
|
68
|
+
*/
|
|
69
|
+
updatePlacements(view: AcEdBaseView, displacement: AcGePoint3dLike, fitMode: boolean): void;
|
|
70
|
+
/**
|
|
71
|
+
* Removes every batched preview overlay and clears internal handles.
|
|
72
|
+
*
|
|
73
|
+
* Safe to call multiple times. After disposal, update methods are no-ops.
|
|
74
|
+
*
|
|
75
|
+
* @param view - View that owns the preview overlays
|
|
76
|
+
*/
|
|
77
|
+
dispose(view: AcEdBaseView): void;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Scales a copy preview displacement for one array index.
|
|
81
|
+
*
|
|
82
|
+
* Computes the world-space offset for copy factor `factor` along a COPY array
|
|
83
|
+
* preview. In fit mode, displacements are distributed evenly between the base
|
|
84
|
+
* point and the cursor so the final copy reaches the cursor exactly.
|
|
85
|
+
*
|
|
86
|
+
* @param displacement - Base displacement from the copy base point to the
|
|
87
|
+
* current cursor position
|
|
88
|
+
* @param factor - One-based copy index (`1` for the first copy, `2` for the
|
|
89
|
+
* second, and so on)
|
|
90
|
+
* @param copyCount - Total number of copies in the array preview
|
|
91
|
+
* @param fitMode - When `true`, scales by `factor / copyCount`; otherwise
|
|
92
|
+
* scales by `factor`
|
|
93
|
+
* @returns Scaled displacement as a new {@link AcGePoint3d}
|
|
94
|
+
*/
|
|
95
|
+
export declare function scaleCopyDisplacement(displacement: AcGePoint3dLike, factor: number, copyCount: number, fitMode: boolean): AcGePoint3d;
|
|
96
|
+
//# sourceMappingURL=AcEdBatchPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdBatchPreview.d.ts","sourceRoot":"","sources":["../../../src/editor/input/AcEdBatchPreview.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD;;;;;;;;;;GAUG;AACH,qBAAa,kBAAkB;IAC7B;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAe;IAE1C;;;;OAIG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAE1B;;;;;;;;;;;OAWG;gBACS,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,SAAS,SAAI;IAqBxE;;;;;;;;OAQG;IACH,YAAY,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,GAAG,IAAI;IAO5D;;;;;;;;;;;;OAYG;IACH,gBAAgB,CACd,IAAI,EAAE,YAAY,EAClB,YAAY,EAAE,eAAe,EAC7B,OAAO,EAAE,OAAO,GACf,IAAI;IAoBP;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI;CAIlC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,eAAe,EAC7B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,OAAO,GACf,WAAW,CAOb"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { AcGeMatrix3d, AcGePoint3d } from '@mlightcad/data-model';
|
|
2
|
+
/**
|
|
3
|
+
* Manages batched entity preview overlays for command jigs.
|
|
4
|
+
*
|
|
5
|
+
* Used by MOVE, ROTATE, COPY, and similar modify jigs. When batch preview
|
|
6
|
+
* creation succeeds, the overlay reuses GPU-resident geometry and is updated
|
|
7
|
+
* each frame via {@link AcEdBaseView.updateEntityPreview}. When creation
|
|
8
|
+
* fails, callers fall back to legacy transient entity clones.
|
|
9
|
+
*
|
|
10
|
+
* Pass `copyCount` of `1` (default) for a single transformed preview, or a
|
|
11
|
+
* larger value for COPY array previews with independent placements.
|
|
12
|
+
*/
|
|
13
|
+
var AcEdBatchedPreview = /** @class */ (function () {
|
|
14
|
+
/**
|
|
15
|
+
* Creates one or more batched preview overlays for the given entities.
|
|
16
|
+
*
|
|
17
|
+
* Batch preview is disabled when `copyCount` is zero, the view cannot
|
|
18
|
+
* create batch previews, or any individual overlay fails to initialize.
|
|
19
|
+
* On partial failure, all successfully created overlays are disposed
|
|
20
|
+
* before returning.
|
|
21
|
+
*
|
|
22
|
+
* @param view - View that owns preview creation and scene updates
|
|
23
|
+
* @param entityIds - Object ids of entities to include in each overlay
|
|
24
|
+
* @param copyCount - Number of overlays to create (default `1`)
|
|
25
|
+
*/
|
|
26
|
+
function AcEdBatchedPreview(view, entityIds, copyCount) {
|
|
27
|
+
if (copyCount === void 0) { copyCount = 1; }
|
|
28
|
+
/**
|
|
29
|
+
* Preview handle ids returned by {@link AcEdBaseView.createEntityPreview}.
|
|
30
|
+
*
|
|
31
|
+
* @private
|
|
32
|
+
*/
|
|
33
|
+
this._handleIds = [];
|
|
34
|
+
this.copyCount = Math.max(0, copyCount);
|
|
35
|
+
if (this.copyCount === 0 || entityIds.length === 0) {
|
|
36
|
+
this.useBatchPreview = false;
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
for (var i = 0; i < this.copyCount; i++) {
|
|
40
|
+
var handleId = view.createEntityPreview(entityIds);
|
|
41
|
+
if (!handleId) {
|
|
42
|
+
this._handleIds.forEach(function (id) { return view.removeEntityPreview(id); });
|
|
43
|
+
this._handleIds.length = 0;
|
|
44
|
+
this.useBatchPreview = false;
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
this._handleIds.push(handleId);
|
|
48
|
+
view.updateEntityPreview(handleId, new AcGeMatrix3d());
|
|
49
|
+
}
|
|
50
|
+
this.useBatchPreview = this._handleIds.length === this.copyCount;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Applies a world-space transform to the single preview overlay.
|
|
54
|
+
*
|
|
55
|
+
* No-op when batch preview was not created, has been disposed, or
|
|
56
|
+
* {@link copyCount} is not `1`.
|
|
57
|
+
*
|
|
58
|
+
* @param view - View that owns the preview overlay
|
|
59
|
+
* @param matrix - World transform to apply to the preview geometry
|
|
60
|
+
*/
|
|
61
|
+
AcEdBatchedPreview.prototype.updateMatrix = function (view, matrix) {
|
|
62
|
+
if (!this.useBatchPreview || this._handleIds.length !== 1) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
view.updateEntityPreview(this._handleIds[0], matrix);
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Updates the world-space placement of every copy overlay.
|
|
69
|
+
*
|
|
70
|
+
* Each overlay receives a translation matrix derived from `displacement`,
|
|
71
|
+
* scaled by its copy factor and optional fit mode via
|
|
72
|
+
* {@link scaleCopyDisplacement}. No-op when {@link useBatchPreview} is `false`.
|
|
73
|
+
*
|
|
74
|
+
* @param view - View that owns the preview overlays
|
|
75
|
+
* @param displacement - Base displacement from the copy base point to the
|
|
76
|
+
* current cursor position
|
|
77
|
+
* @param fitMode - When `true`, scales displacements so the last copy lands
|
|
78
|
+
* on the cursor (`factor / copyCount`); otherwise uses full multiples
|
|
79
|
+
*/
|
|
80
|
+
AcEdBatchedPreview.prototype.updatePlacements = function (view, displacement, fitMode) {
|
|
81
|
+
var _this = this;
|
|
82
|
+
if (!this.useBatchPreview) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
this._handleIds.forEach(function (handleId, index) {
|
|
86
|
+
var factor = index + 1;
|
|
87
|
+
var scaled = scaleCopyDisplacement(displacement, factor, _this.copyCount, fitMode);
|
|
88
|
+
view.updateEntityPreview(handleId, new AcGeMatrix3d().makeTranslation(scaled.x, scaled.y, scaled.z));
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Removes every batched preview overlay and clears internal handles.
|
|
93
|
+
*
|
|
94
|
+
* Safe to call multiple times. After disposal, update methods are no-ops.
|
|
95
|
+
*
|
|
96
|
+
* @param view - View that owns the preview overlays
|
|
97
|
+
*/
|
|
98
|
+
AcEdBatchedPreview.prototype.dispose = function (view) {
|
|
99
|
+
this._handleIds.forEach(function (handleId) { return view.removeEntityPreview(handleId); });
|
|
100
|
+
this._handleIds.length = 0;
|
|
101
|
+
};
|
|
102
|
+
return AcEdBatchedPreview;
|
|
103
|
+
}());
|
|
104
|
+
export { AcEdBatchedPreview };
|
|
105
|
+
/**
|
|
106
|
+
* Scales a copy preview displacement for one array index.
|
|
107
|
+
*
|
|
108
|
+
* Computes the world-space offset for copy factor `factor` along a COPY array
|
|
109
|
+
* preview. In fit mode, displacements are distributed evenly between the base
|
|
110
|
+
* point and the cursor so the final copy reaches the cursor exactly.
|
|
111
|
+
*
|
|
112
|
+
* @param displacement - Base displacement from the copy base point to the
|
|
113
|
+
* current cursor position
|
|
114
|
+
* @param factor - One-based copy index (`1` for the first copy, `2` for the
|
|
115
|
+
* second, and so on)
|
|
116
|
+
* @param copyCount - Total number of copies in the array preview
|
|
117
|
+
* @param fitMode - When `true`, scales by `factor / copyCount`; otherwise
|
|
118
|
+
* scales by `factor`
|
|
119
|
+
* @returns Scaled displacement as a new {@link AcGePoint3d}
|
|
120
|
+
*/
|
|
121
|
+
export function scaleCopyDisplacement(displacement, factor, copyCount, fitMode) {
|
|
122
|
+
var scale = fitMode && copyCount > 0 ? factor / copyCount : factor;
|
|
123
|
+
return new AcGePoint3d(displacement.x * scale, displacement.y * scale, displacement.z * scale);
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=AcEdBatchPreview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdBatchPreview.js","sourceRoot":"","sources":["../../../src/editor/input/AcEdBatchPreview.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,WAAW,EAEZ,MAAM,uBAAuB,CAAA;AAI9B;;;;;;;;;;GAUG;AACH;IAsBE;;;;;;;;;;;OAWG;IACH,4BAAY,IAAkB,EAAE,SAAyB,EAAE,SAAa;QAAb,0BAAA,EAAA,aAAa;QAjCxE;;;;WAIG;QACc,eAAU,GAAa,EAAE,CAAA;QA6BxC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;QACvC,IAAI,IAAI,CAAC,SAAS,KAAK,CAAC,IAAI,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/AcEdCursorManager.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC;;;;;;;;;;;;;;;;;;GAkBG;AACH,oBAAY,cAAc;IACxB,+CAA+C;IAC/C,eAAe,KAAK;IACpB,mDAAmD;IACnD,SAAS,IAAI;IACb,0CAA0C;IAC1C,UAAU,IAAA;IACV,6CAA6C;IAC7C,UAAU,IAAA;IACV,yBAAyB;IACzB,UAAU,IAAA;IACV,4CAA4C;IAC5C,SAAS,IAAA;IACT,+BAA+B;IAC/B,gBAAgB,IAAA;IAChB,8CAA8C;IAC9C,iBAAiB,IAAA;IACjB,yCAAyC;IACzC,SAAS,IAAA;IACT,8BAA8B;IAC9B,YAAY,IAAA;IACZ,iDAAiD;IACjD,aAAa,IAAA;IACb,+CAA+C;IAC/C,mBAAmB,KAAA;IACnB,gDAAgD;IAChD,cAAc,KAAA;IACd,8BAA8B;IAC9B,eAAe,KAAA;IACf,mCAAmC;IACnC,IAAI,KAAA;CACL;AAED;;;;;;;;;GASG;AACH,qBAAa,iBAAiB;IAC5B,kDAAkD;IAClD,OAAO,CAAC,KAAK,CAAc;IAE3B,oDAAoD;IACpD,OAAO,CAAC,cAAc,CAAiB;IAEvC,wDAAwD;IACxD,OAAO,CAAC,UAAU,CAA6B;IAC/C,mCAAmC;IACnC,OAAO,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"AcEdCursorManager.d.ts","sourceRoot":"","sources":["../../../src/editor/input/AcEdCursorManager.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC;;;;;;;;;;;;;;;;;;GAkBG;AACH,oBAAY,cAAc;IACxB,+CAA+C;IAC/C,eAAe,KAAK;IACpB,mDAAmD;IACnD,SAAS,IAAI;IACb,0CAA0C;IAC1C,UAAU,IAAA;IACV,6CAA6C;IAC7C,UAAU,IAAA;IACV,yBAAyB;IACzB,UAAU,IAAA;IACV,4CAA4C;IAC5C,SAAS,IAAA;IACT,+BAA+B;IAC/B,gBAAgB,IAAA;IAChB,8CAA8C;IAC9C,iBAAiB,IAAA;IACjB,yCAAyC;IACzC,SAAS,IAAA;IACT,8BAA8B;IAC9B,YAAY,IAAA;IACZ,iDAAiD;IACjD,aAAa,IAAA;IACb,+CAA+C;IAC/C,mBAAmB,KAAA;IACnB,gDAAgD;IAChD,cAAc,KAAA;IACd,8BAA8B;IAC9B,eAAe,KAAA;IACf,mCAAmC;IACnC,IAAI,KAAA;CACL;AAED;;;;;;;;;GASG;AACH,qBAAa,iBAAiB;IAC5B,kDAAkD;IAClD,OAAO,CAAC,KAAK,CAAc;IAE3B,oDAAoD;IACpD,OAAO,CAAC,cAAc,CAAiB;IAEvC,wDAAwD;IACxD,OAAO,CAAC,UAAU,CAA6B;IAC/C,mCAAmC;IACnC,OAAO,CAAC,gBAAgB,CAAsC;IAC9D,2CAA2C;IAC3C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAa;IAE1C;;;;OAIG;gBACS,IAAI,EAAE,YAAY;IAsB9B;;OAEG;IACH,IAAI,aAAa,mBAEhB;IAED;;;;OAIG;IACH,SAAS,CAAC,UAAU,EAAE,cAAc;IAepC;;OAEG;IACH,mBAAmB,CAAC,eAAe,EAAE,MAAM;IAK3C;;;;OAIG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM;IAa5B;;;;;;;;;;;;;;;;;OAiBG;IACH,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAIrE;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;CAsB5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AcDbSystemVariables, AcDbSysVarManager } from '@mlightcad/data-model';
|
|
2
|
-
import {
|
|
2
|
+
import { ACGI_MODEL_SPACE_BACKGROUND, cursorColorForBackground } from '../global/AcEdUiColor';
|
|
3
3
|
/**
|
|
4
4
|
* Enumeration of cursor types available in the CAD editor.
|
|
5
5
|
*
|
|
@@ -71,7 +71,7 @@ var AcEdCursorManager = /** @class */ (function () {
|
|
|
71
71
|
function AcEdCursorManager(view) {
|
|
72
72
|
var _this = this;
|
|
73
73
|
/** The current background color */
|
|
74
|
-
this._backgroundColor =
|
|
74
|
+
this._backgroundColor = ACGI_MODEL_SPACE_BACKGROUND;
|
|
75
75
|
/** Total length of the cursor crosshair */
|
|
76
76
|
this._totalLength = 20;
|
|
77
77
|
this._view = view;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdCursorManager.js","sourceRoot":"","sources":["../../../src/editor/input/AcEdCursorManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAE9E,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"AcEdCursorManager.js","sourceRoot":"","sources":["../../../src/editor/input/AcEdCursorManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAE9E,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,uBAAuB,CAAA;AAG9B;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAN,IAAY,cA+BX;AA/BD,WAAY,cAAc;IACxB,+CAA+C;IAC/C,0EAAoB,CAAA;IACpB,mDAAmD;IACnD,6DAAa,CAAA;IACb,0CAA0C;IAC1C,+DAAU,CAAA;IACV,6CAA6C;IAC7C,+DAAU,CAAA;IACV,yBAAyB;IACzB,+DAAU,CAAA;IACV,4CAA4C;IAC5C,6DAAS,CAAA;IACT,+BAA+B;IAC/B,2EAAgB,CAAA;IAChB,8CAA8C;IAC9C,6EAAiB,CAAA;IACjB,yCAAyC;IACzC,6DAAS,CAAA;IACT,8BAA8B;IAC9B,mEAAY,CAAA;IACZ,iDAAiD;IACjD,qEAAa,CAAA;IACb,+CAA+C;IAC/C,kFAAmB,CA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
import { AcDbOsnapMode, AcGePoint2dLike, AcGePoint3dLike } from '@mlightcad/data-model';
|
|
2
|
+
import { AcEdBaseView } from '../view/AcEdBaseView';
|
|
3
|
+
import { AcEdMarkerType } from './marker/AcEdMarker';
|
|
4
|
+
export type AcEdOsnapPoint = AcGePoint3dLike & {
|
|
5
|
+
type: AcDbOsnapMode;
|
|
6
|
+
};
|
|
7
|
+
export interface AcEdOsnapResolveOptions {
|
|
8
|
+
/** WCS point used as the osnap pick and proximity reference. */
|
|
9
|
+
cursorWcs: AcGePoint2dLike;
|
|
10
|
+
/** Previous point passed to entity osnap queries. */
|
|
11
|
+
lastPoint?: AcGePoint3dLike;
|
|
12
|
+
/** Screen-space pick aperture radius in pixels. */
|
|
13
|
+
hitRadiusPx?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Resolves object snap points for a view during interactive input.
|
|
17
|
+
*/
|
|
18
|
+
export declare class AcEdOsnapResolver {
|
|
19
|
+
private readonly _view;
|
|
20
|
+
constructor(view: AcEdBaseView);
|
|
21
|
+
/**
|
|
22
|
+
* Resolves the best osnap point near the cursor, matching command-input behavior.
|
|
23
|
+
*/
|
|
24
|
+
resolve(options: AcEdOsnapResolveOptions): AcEdOsnapPoint | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Maps an osnap mode to the marker shape shown at the snap location.
|
|
27
|
+
*/
|
|
28
|
+
static osnapModeToMarkerType(osnapMode: AcDbOsnapMode): AcEdMarkerType;
|
|
29
|
+
private static osnapModePriority;
|
|
30
|
+
private collectOsnapPointsByMode;
|
|
31
|
+
private collectOsnapPointsInAvailableModes;
|
|
32
|
+
private collectOsnapPoints;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=AcEdOsnapResolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdOsnapResolver.d.ts","sourceRoot":"","sources":["../../../src/editor/input/AcEdOsnapResolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EAEb,eAAe,EACf,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG;IAC7C,IAAI,EAAE,aAAa,CAAA;CACpB,CAAA;AAED,MAAM,WAAW,uBAAuB;IACtC,gEAAgE;IAChE,SAAS,EAAE,eAAe,CAAA;IAC1B,qDAAqD;IACrD,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAID;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;gBAExB,IAAI,EAAE,YAAY;IAI9B;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,uBAAuB,GAAG,cAAc,GAAG,SAAS;IAuCrE;;OAEG;IACH,MAAM,CAAC,qBAAqB,CAAC,SAAS,EAAE,aAAa,GAAG,cAAc;IAiBtE,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAehC,OAAO,CAAC,wBAAwB;IAsBhC,OAAO,CAAC,kCAAkC;IAoB1C,OAAO,CAAC,kBAAkB;CAsC3B"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { acdbHostApplicationServices, acdbMaskToOsnapModes, AcDbOsnapMode, AcGeGeometryUtil } from '@mlightcad/data-model';
|
|
2
|
+
import { AcApSettingManager } from '../../app';
|
|
3
|
+
var DEFAULT_HIT_RADIUS_PX = 20;
|
|
4
|
+
/**
|
|
5
|
+
* Resolves object snap points for a view during interactive input.
|
|
6
|
+
*/
|
|
7
|
+
var AcEdOsnapResolver = /** @class */ (function () {
|
|
8
|
+
function AcEdOsnapResolver(view) {
|
|
9
|
+
this._view = view;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Resolves the best osnap point near the cursor, matching command-input behavior.
|
|
13
|
+
*/
|
|
14
|
+
AcEdOsnapResolver.prototype.resolve = function (options) {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
var hitRadiusPx = (_a = options.hitRadiusPx) !== null && _a !== void 0 ? _a : DEFAULT_HIT_RADIUS_PX;
|
|
17
|
+
var lastPoint = (_b = options.lastPoint) !== null && _b !== void 0 ? _b : options.cursorWcs;
|
|
18
|
+
var snapPoints = this.collectOsnapPoints(options.cursorWcs, lastPoint, hitRadiusPx);
|
|
19
|
+
if (snapPoints.length === 0)
|
|
20
|
+
return undefined;
|
|
21
|
+
var p1 = this._view.screenToWorld({ x: 0, y: 0 });
|
|
22
|
+
var p2 = this._view.screenToWorld({ x: hitRadiusPx, y: 0 });
|
|
23
|
+
var threshold = p2.x - p1.x;
|
|
24
|
+
var bestPriority = Number.MAX_VALUE;
|
|
25
|
+
var bestDist = Number.MAX_VALUE;
|
|
26
|
+
var bestIndex = -1;
|
|
27
|
+
for (var i = 0; i < snapPoints.length; i++) {
|
|
28
|
+
var snap = snapPoints[i];
|
|
29
|
+
var dx = options.cursorWcs.x - snap.x;
|
|
30
|
+
var dy = options.cursorWcs.y - snap.y;
|
|
31
|
+
var dist = Math.hypot(dx, dy);
|
|
32
|
+
if (dist >= threshold)
|
|
33
|
+
continue;
|
|
34
|
+
var priority = AcEdOsnapResolver.osnapModePriority(snap.type);
|
|
35
|
+
if (priority < bestPriority ||
|
|
36
|
+
(priority === bestPriority && dist < bestDist)) {
|
|
37
|
+
bestPriority = priority;
|
|
38
|
+
bestDist = dist;
|
|
39
|
+
bestIndex = i;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return bestIndex !== -1 ? snapPoints[bestIndex] : undefined;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Maps an osnap mode to the marker shape shown at the snap location.
|
|
46
|
+
*/
|
|
47
|
+
AcEdOsnapResolver.osnapModeToMarkerType = function (osnapMode) {
|
|
48
|
+
switch (osnapMode) {
|
|
49
|
+
case AcDbOsnapMode.EndPoint:
|
|
50
|
+
return 'rect';
|
|
51
|
+
case AcDbOsnapMode.MidPoint:
|
|
52
|
+
return 'triangle';
|
|
53
|
+
case AcDbOsnapMode.Center:
|
|
54
|
+
return 'circle';
|
|
55
|
+
case AcDbOsnapMode.Quadrant:
|
|
56
|
+
return 'diamond';
|
|
57
|
+
case AcDbOsnapMode.Nearest:
|
|
58
|
+
return 'x';
|
|
59
|
+
default:
|
|
60
|
+
return 'rect';
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
AcEdOsnapResolver.osnapModePriority = function (mode) {
|
|
64
|
+
switch (mode) {
|
|
65
|
+
case AcDbOsnapMode.EndPoint:
|
|
66
|
+
case AcDbOsnapMode.MidPoint:
|
|
67
|
+
case AcDbOsnapMode.Center:
|
|
68
|
+
return 0;
|
|
69
|
+
case AcDbOsnapMode.Quadrant:
|
|
70
|
+
return 1;
|
|
71
|
+
case AcDbOsnapMode.Nearest:
|
|
72
|
+
return 2;
|
|
73
|
+
default:
|
|
74
|
+
return 1;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
AcEdOsnapResolver.prototype.collectOsnapPointsByMode = function (entity, osnapMode, osnapPoints, pickPoint, lastPoint, gsMark) {
|
|
78
|
+
var start = osnapPoints.length;
|
|
79
|
+
entity.subGetOsnapPoints(osnapMode, pickPoint, lastPoint, osnapPoints, gsMark);
|
|
80
|
+
for (var i = start; i < osnapPoints.length; i++) {
|
|
81
|
+
osnapPoints[i].type = osnapMode;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
AcEdOsnapResolver.prototype.collectOsnapPointsInAvailableModes = function (entity, osnapPoints, pickPoint, lastPoint, gsMark) {
|
|
85
|
+
var _this = this;
|
|
86
|
+
var modes = acdbMaskToOsnapModes(AcApSettingManager.instance.osnapModes);
|
|
87
|
+
modes.forEach(function (mode) {
|
|
88
|
+
return _this.collectOsnapPointsByMode(entity, mode, osnapPoints, pickPoint, lastPoint, gsMark);
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
AcEdOsnapResolver.prototype.collectOsnapPoints = function (cursorWcs, lastPoint, hitRadiusPx) {
|
|
92
|
+
var _this = this;
|
|
93
|
+
var results = this._view.pick(cursorWcs, hitRadiusPx);
|
|
94
|
+
var db = acdbHostApplicationServices().workingDatabase;
|
|
95
|
+
var modelSpace = db.tables.blockTable.modelSpace;
|
|
96
|
+
var osnapPoints = [];
|
|
97
|
+
var pickPoint = AcGeGeometryUtil.point2dToPoint3d(cursorWcs);
|
|
98
|
+
var last = AcGeGeometryUtil.point2dToPoint3d(lastPoint);
|
|
99
|
+
results.forEach(function (item) {
|
|
100
|
+
var entity = modelSpace.getIdAt(item.id);
|
|
101
|
+
if (!entity)
|
|
102
|
+
return;
|
|
103
|
+
if (item.children && item.children.length > 0) {
|
|
104
|
+
item.children.forEach(function (child) {
|
|
105
|
+
return _this.collectOsnapPointsInAvailableModes(entity, osnapPoints, pickPoint, last, child.id);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
_this.collectOsnapPointsInAvailableModes(entity, osnapPoints, pickPoint, last);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
return osnapPoints;
|
|
113
|
+
};
|
|
114
|
+
return AcEdOsnapResolver;
|
|
115
|
+
}());
|
|
116
|
+
export { AcEdOsnapResolver };
|
|
117
|
+
//# sourceMappingURL=AcEdOsnapResolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdOsnapResolver.js","sourceRoot":"","sources":["../../../src/editor/input/AcEdOsnapResolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,2BAA2B,EAC3B,oBAAoB,EAEpB,aAAa,EACb,gBAAgB,EAGjB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAiB9C,IAAM,qBAAqB,GAAG,EAAE,CAAA;AAE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IACH,
|
|
1
|
+
{"version":3,"file":"AcEdPreviewJig.d.ts","sourceRoot":"","sources":["../../../src/editor/input/AcEdPreviewJig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,8BAAsB,cAAc,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,CAAc;IAE1B;;;;;OAKG;gBACS,IAAI,EAAE,YAAY;IAI9B;;;;;;OAMG;IACH,IAAI,MAAM,IAAI,UAAU,GAAG,IAAI,CAE9B;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IAE/B;;;;OAIG;IACH,MAAM,IAAI,IAAI;IAMd;;;;;OAKG;IACH,GAAG,IAAI,IAAI;CAKZ"}
|
|
@@ -55,6 +55,20 @@ var AcEdPreviewJig = /** @class */ (function () {
|
|
|
55
55
|
function AcEdPreviewJig(view) {
|
|
56
56
|
this.view = view;
|
|
57
57
|
}
|
|
58
|
+
Object.defineProperty(AcEdPreviewJig.prototype, "entity", {
|
|
59
|
+
/**
|
|
60
|
+
* Assign the preview entity used by the jig.
|
|
61
|
+
*
|
|
62
|
+
* The entity should be transient (not yet added to the model database).
|
|
63
|
+
*
|
|
64
|
+
* @param ent The preview entity to display.
|
|
65
|
+
*/
|
|
66
|
+
get: function () {
|
|
67
|
+
return null;
|
|
68
|
+
},
|
|
69
|
+
enumerable: false,
|
|
70
|
+
configurable: true
|
|
71
|
+
});
|
|
58
72
|
/**
|
|
59
73
|
* Render the preview entity through the associated view.
|
|
60
74
|
*
|