@mlightcad/cad-simple-viewer 1.8.0-preview.3 → 1.8.0-preview.4
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 +21 -21
- package/README.md +206 -204
- package/dist/cad-simple-viewer-AcApSimpleUiChrome-D_0b6okm.js +890 -0
- package/dist/cad-simple-viewer-AcApSimpleUiChrome-DcZiBNvh.js +1 -0
- package/dist/cad-simple-viewer-AcUiFileOpenSession-AGSCe0Nv.js +324 -0
- package/dist/{cad-simple-viewer-AcUiFileOpenSession-BCcqBAH9.js → cad-simple-viewer-AcUiFileOpenSession-Bo3U3wCu.js} +707 -167
- package/dist/cad-simple-viewer-file-open-panel.js +26 -24
- package/dist/cad-simple-viewer-file-open-panel.umd.cjs +1 -1
- package/dist/cad-simple-viewer.js +64409 -41558
- package/dist/cad-simple-viewer.umd.cjs +1659 -497
- package/dist/mtext-renderer-worker.js +4 -5
- package/file-open-panel.ts +6 -6
- package/icons.ts +7 -7
- package/lib/app/AcApClipboard.d.ts +97 -0
- package/lib/app/AcApClipboard.d.ts.map +1 -0
- package/lib/app/AcApClipboard.js +270 -0
- package/lib/app/AcApClipboard.js.map +1 -0
- package/lib/app/AcApContext.d.ts +10 -0
- package/lib/app/AcApContext.d.ts.map +1 -1
- package/lib/app/AcApContext.js +24 -8
- 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 +264 -35
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApDocument.d.ts.map +1 -1
- package/lib/app/AcApDocument.js +11 -11
- package/lib/app/AcApDocument.js.map +1 -1
- package/lib/app/AcApOpenFileDialog.d.ts +2 -2
- package/lib/app/AcApOpenFileDialog.js +2 -2
- package/lib/app/AcApPaletteService.d.ts +154 -0
- package/lib/app/AcApPaletteService.d.ts.map +1 -0
- package/lib/app/AcApPaletteService.js +327 -0
- package/lib/app/AcApPaletteService.js.map +1 -0
- package/lib/app/acapHealModelLayoutLink.d.ts +30 -0
- package/lib/app/acapHealModelLayoutLink.d.ts.map +1 -0
- package/lib/app/acapHealModelLayoutLink.js +192 -0
- package/lib/app/acapHealModelLayoutLink.js.map +1 -0
- package/lib/app/dataSource/AcApLocalDataSource.d.ts +1 -1
- package/lib/app/dataSource/AcApLocalDataSource.js +2 -2
- package/lib/app/dataSource/AcApLocalDataSource.js.map +1 -1
- package/lib/app/dataSource/AcApUrlDataSource.js +1 -1
- package/lib/app/dataSource/AcApUrlDataSource.js.map +1 -1
- package/lib/app/index.d.ts +2 -0
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +2 -0
- package/lib/app/index.js.map +1 -1
- package/lib/command/AcApShortCutToolbarDocBind.d.ts.map +1 -1
- package/lib/command/AcApShortCutToolbarDocBind.js +30 -3
- package/lib/command/AcApShortCutToolbarDocBind.js.map +1 -1
- package/lib/command/AcApUcsCmd.d.ts +26 -0
- package/lib/command/AcApUcsCmd.d.ts.map +1 -0
- package/lib/command/AcApUcsCmd.js +545 -0
- package/lib/command/AcApUcsCmd.js.map +1 -0
- package/lib/command/AcApViewRestoreCmd.d.ts +13 -0
- package/lib/command/AcApViewRestoreCmd.d.ts.map +1 -0
- package/lib/command/AcApViewRestoreCmd.js +101 -0
- package/lib/command/AcApViewRestoreCmd.js.map +1 -0
- package/lib/command/block/AcApDashBSearchCmd.d.ts +57 -0
- package/lib/command/block/AcApDashBSearchCmd.d.ts.map +1 -0
- package/lib/command/block/AcApDashBSearchCmd.js +618 -0
- package/lib/command/block/AcApDashBSearchCmd.js.map +1 -0
- package/lib/command/block/index.d.ts +2 -0
- package/lib/command/block/index.d.ts.map +1 -0
- package/lib/command/block/index.js +2 -0
- package/lib/command/block/index.js.map +1 -0
- package/lib/command/clipboard/AcApClipboardUtils.d.ts +61 -0
- package/lib/command/clipboard/AcApClipboardUtils.d.ts.map +1 -0
- package/lib/command/clipboard/AcApClipboardUtils.js +203 -0
- package/lib/command/clipboard/AcApClipboardUtils.js.map +1 -0
- package/lib/command/clipboard/AcApCopyBaseCmd.d.ts +13 -0
- package/lib/command/clipboard/AcApCopyBaseCmd.d.ts.map +1 -0
- package/lib/command/clipboard/AcApCopyBaseCmd.js +95 -0
- package/lib/command/clipboard/AcApCopyBaseCmd.js.map +1 -0
- package/lib/command/clipboard/AcApCopyClipCmd.d.ts +15 -0
- package/lib/command/clipboard/AcApCopyClipCmd.d.ts.map +1 -0
- package/lib/command/clipboard/AcApCopyClipCmd.js +85 -0
- package/lib/command/clipboard/AcApCopyClipCmd.js.map +1 -0
- package/lib/command/clipboard/AcApCutClipCmd.d.ts +11 -0
- package/lib/command/clipboard/AcApCutClipCmd.d.ts.map +1 -0
- package/lib/command/clipboard/AcApCutClipCmd.js +91 -0
- package/lib/command/clipboard/AcApCutClipCmd.js.map +1 -0
- package/lib/command/clipboard/AcApPasteBlockCmd.d.ts +23 -0
- package/lib/command/clipboard/AcApPasteBlockCmd.d.ts.map +1 -0
- package/lib/command/clipboard/AcApPasteBlockCmd.js +127 -0
- package/lib/command/clipboard/AcApPasteBlockCmd.js.map +1 -0
- package/lib/command/clipboard/AcApPasteClipCmd.d.ts +14 -0
- package/lib/command/clipboard/AcApPasteClipCmd.d.ts.map +1 -0
- package/lib/command/clipboard/AcApPasteClipCmd.js +100 -0
- package/lib/command/clipboard/AcApPasteClipCmd.js.map +1 -0
- package/lib/command/clipboard/AcApPasteOrigCmd.d.ts +15 -0
- package/lib/command/clipboard/AcApPasteOrigCmd.d.ts.map +1 -0
- package/lib/command/clipboard/AcApPasteOrigCmd.js +99 -0
- package/lib/command/clipboard/AcApPasteOrigCmd.js.map +1 -0
- package/lib/command/clipboard/AcApPastePreviewJig.d.ts +37 -0
- package/lib/command/clipboard/AcApPastePreviewJig.d.ts.map +1 -0
- package/lib/command/clipboard/AcApPastePreviewJig.js +87 -0
- package/lib/command/clipboard/AcApPastePreviewJig.js.map +1 -0
- package/lib/command/clipboard/index.d.ts +9 -0
- package/lib/command/clipboard/index.d.ts.map +1 -0
- package/lib/command/clipboard/index.js +9 -0
- package/lib/command/clipboard/index.js.map +1 -0
- package/lib/command/convert/AcApBlockPreviewConvertor.d.ts +8 -0
- package/lib/command/convert/AcApBlockPreviewConvertor.d.ts.map +1 -1
- package/lib/command/convert/AcApBlockPreviewConvertor.js +16 -0
- package/lib/command/convert/AcApBlockPreviewConvertor.js.map +1 -1
- package/lib/command/convert/AcApEntityPreviewConvertor.d.ts +32 -0
- package/lib/command/convert/AcApEntityPreviewConvertor.d.ts.map +1 -1
- package/lib/command/convert/AcApEntityPreviewConvertor.js +70 -14
- package/lib/command/convert/AcApEntityPreviewConvertor.js.map +1 -1
- package/lib/command/draw/AcApDimBlockUtil.d.ts +7 -0
- package/lib/command/draw/AcApDimBlockUtil.d.ts.map +1 -1
- package/lib/command/draw/AcApDimBlockUtil.js +16 -54
- package/lib/command/draw/AcApDimBlockUtil.js.map +1 -1
- package/lib/command/draw/AcApLeaderCmd.d.ts +49 -0
- package/lib/command/draw/AcApLeaderCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApLeaderCmd.js +611 -0
- package/lib/command/draw/AcApLeaderCmd.js.map +1 -0
- package/lib/command/draw/AcApMLeaderCmd.d.ts +41 -0
- package/lib/command/draw/AcApMLeaderCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApMLeaderCmd.js +632 -0
- package/lib/command/draw/AcApMLeaderCmd.js.map +1 -0
- package/lib/command/draw/AcApMLeaderCmdUtil.d.ts +137 -0
- package/lib/command/draw/AcApMLeaderCmdUtil.d.ts.map +1 -0
- package/lib/command/draw/AcApMLeaderCmdUtil.js +411 -0
- package/lib/command/draw/AcApMLeaderCmdUtil.js.map +1 -0
- package/lib/command/draw/AcApMLeaderEditCmd.d.ts +13 -0
- package/lib/command/draw/AcApMLeaderEditCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApMLeaderEditCmd.js +245 -0
- package/lib/command/draw/AcApMLeaderEditCmd.js.map +1 -0
- package/lib/command/draw/acedRenderDimStylePreview.d.ts +7 -0
- package/lib/command/draw/acedRenderDimStylePreview.d.ts.map +1 -0
- package/lib/command/draw/acedRenderDimStylePreview.js +141 -0
- package/lib/command/draw/acedRenderDimStylePreview.js.map +1 -0
- package/lib/command/draw/dimStylePreview.d.ts +62 -0
- package/lib/command/draw/dimStylePreview.d.ts.map +1 -0
- package/lib/command/draw/dimStylePreview.js +723 -0
- package/lib/command/draw/dimStylePreview.js.map +1 -0
- package/lib/command/draw/index.d.ts +6 -0
- package/lib/command/draw/index.d.ts.map +1 -1
- package/lib/command/draw/index.js +6 -0
- package/lib/command/draw/index.js.map +1 -1
- package/lib/command/group/AcApDashGroupCmd.d.ts +18 -0
- package/lib/command/group/AcApDashGroupCmd.d.ts.map +1 -0
- package/lib/command/group/AcApDashGroupCmd.js +457 -0
- package/lib/command/group/AcApDashGroupCmd.js.map +1 -0
- package/lib/command/group/AcApGroupCmd.d.ts +18 -0
- package/lib/command/group/AcApGroupCmd.d.ts.map +1 -0
- package/lib/command/group/AcApGroupCmd.js +253 -0
- package/lib/command/group/AcApGroupCmd.js.map +1 -0
- package/lib/command/group/AcApGroupEditCmd.d.ts +14 -0
- package/lib/command/group/AcApGroupEditCmd.d.ts.map +1 -0
- package/lib/command/group/AcApGroupEditCmd.js +241 -0
- package/lib/command/group/AcApGroupEditCmd.js.map +1 -0
- package/lib/command/group/AcApUngroupCmd.d.ts +20 -0
- package/lib/command/group/AcApUngroupCmd.d.ts.map +1 -0
- package/lib/command/group/AcApUngroupCmd.js +249 -0
- package/lib/command/group/AcApUngroupCmd.js.map +1 -0
- package/lib/command/group/index.d.ts +5 -0
- package/lib/command/group/index.d.ts.map +1 -0
- package/lib/command/group/index.js +5 -0
- package/lib/command/group/index.js.map +1 -0
- package/lib/command/index.d.ts +5 -0
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +5 -0
- package/lib/command/index.js.map +1 -1
- package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts +9 -1
- package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupSessionBootstrap.js +21 -7
- package/lib/command/markup/AcApMarkupSessionBootstrap.js.map +1 -1
- package/lib/command/markup/index.d.ts +1 -1
- package/lib/command/markup/index.d.ts.map +1 -1
- package/lib/command/markup/index.js +4 -2
- package/lib/command/markup/index.js.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.d.ts +7 -0
- package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.js +183 -73
- package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureArcLock.d.ts +23 -1
- package/lib/command/measure/AcApMeasureArcLock.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureArcLock.js +57 -1
- package/lib/command/measure/AcApMeasureArcLock.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +3 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js +44 -4
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -1
- package/lib/command/modify/AcApScaleCmd.d.ts +115 -0
- package/lib/command/modify/AcApScaleCmd.d.ts.map +1 -0
- package/lib/command/modify/AcApScaleCmd.js +347 -0
- package/lib/command/modify/AcApScaleCmd.js.map +1 -0
- package/lib/command/modify/AcApScalePreviewJig.d.ts +56 -0
- package/lib/command/modify/AcApScalePreviewJig.d.ts.map +1 -0
- package/lib/command/modify/AcApScalePreviewJig.js +115 -0
- package/lib/command/modify/AcApScalePreviewJig.js.map +1 -0
- package/lib/command/modify/index.d.ts +1 -0
- package/lib/command/modify/index.d.ts.map +1 -1
- package/lib/command/modify/index.js +1 -0
- package/lib/command/modify/index.js.map +1 -1
- package/lib/command/ui/AcApFindUiCmd.d.ts +26 -0
- package/lib/command/ui/AcApFindUiCmd.d.ts.map +1 -0
- package/lib/command/ui/AcApFindUiCmd.js +83 -0
- package/lib/command/ui/AcApFindUiCmd.js.map +1 -0
- package/lib/command/ui/AcApLayerUiCmd.d.ts +65 -0
- package/lib/command/ui/AcApLayerUiCmd.d.ts.map +1 -0
- package/lib/command/ui/AcApLayerUiCmd.js +142 -0
- package/lib/command/ui/AcApLayerUiCmd.js.map +1 -0
- package/lib/command/ui/AcApMarkupPanelUiCmd.d.ts +26 -0
- package/lib/command/ui/AcApMarkupPanelUiCmd.d.ts.map +1 -0
- package/lib/command/ui/AcApMarkupPanelUiCmd.js +83 -0
- package/lib/command/ui/AcApMarkupPanelUiCmd.js.map +1 -0
- package/lib/command/ui/AcApMeasurementPanelUiCmd.d.ts +26 -0
- package/lib/command/ui/AcApMeasurementPanelUiCmd.d.ts.map +1 -0
- package/lib/command/ui/AcApMeasurementPanelUiCmd.js +83 -0
- package/lib/command/ui/AcApMeasurementPanelUiCmd.js.map +1 -0
- package/lib/command/ui/index.d.ts +5 -0
- package/lib/command/ui/index.d.ts.map +1 -0
- package/lib/command/ui/index.js +5 -0
- package/lib/command/ui/index.js.map +1 -0
- package/lib/editor/grip/AcEdGripEditSession.d.ts +13 -0
- package/lib/editor/grip/AcEdGripEditSession.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripEditSession.js +44 -9
- package/lib/editor/grip/AcEdGripEditSession.js.map +1 -1
- package/lib/editor/grip/AcEdGripManager.d.ts +21 -1
- package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripManager.js +204 -22
- package/lib/editor/grip/AcEdGripManager.js.map +1 -1
- package/lib/editor/grip/AcEdGripPreviewJig.d.ts +7 -0
- package/lib/editor/grip/AcEdGripPreviewJig.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripPreviewJig.js +18 -1
- package/lib/editor/grip/AcEdGripPreviewJig.js.map +1 -1
- package/lib/editor/grip/AcEdGripViewport.d.ts +35 -0
- package/lib/editor/grip/AcEdGripViewport.d.ts.map +1 -0
- package/lib/editor/grip/AcEdGripViewport.js +68 -0
- package/lib/editor/grip/AcEdGripViewport.js.map +1 -0
- package/lib/editor/grip/AcEdGroupGripEditSession.d.ts +24 -0
- package/lib/editor/grip/AcEdGroupGripEditSession.d.ts.map +1 -0
- package/lib/editor/grip/AcEdGroupGripEditSession.js +76 -0
- package/lib/editor/grip/AcEdGroupGripEditSession.js.map +1 -0
- package/lib/editor/grip/AcEdGroupGripPolicy.d.ts +46 -0
- package/lib/editor/grip/AcEdGroupGripPolicy.d.ts.map +1 -0
- package/lib/editor/grip/AcEdGroupGripPolicy.js +187 -0
- package/lib/editor/grip/AcEdGroupGripPolicy.js.map +1 -0
- package/lib/editor/grip/index.d.ts +3 -0
- package/lib/editor/grip/index.d.ts.map +1 -1
- package/lib/editor/grip/index.js +3 -0
- package/lib/editor/grip/index.js.map +1 -1
- package/lib/editor/input/AcEdOrthoMode.d.ts +2 -2
- package/lib/editor/input/AcEdOrthoMode.d.ts.map +1 -1
- package/lib/editor/input/AcEdOrthoMode.js +20 -7
- package/lib/editor/input/AcEdOrthoMode.js.map +1 -1
- package/lib/editor/input/AcEdOsnapCenterMarks.d.ts +16 -0
- package/lib/editor/input/AcEdOsnapCenterMarks.d.ts.map +1 -1
- package/lib/editor/input/AcEdOsnapCenterMarks.js +24 -3
- package/lib/editor/input/AcEdOsnapCenterMarks.js.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.d.ts +0 -1
- package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.js +3 -16
- package/lib/editor/input/AcEdOsnapResolver.js.map +1 -1
- package/lib/editor/input/AcEdPolarTracking.d.ts.map +1 -1
- package/lib/editor/input/AcEdPolarTracking.js +16 -10
- package/lib/editor/input/AcEdPolarTracking.js.map +1 -1
- package/lib/editor/input/handler/AcEdPointHandler.d.ts +1 -1
- package/lib/editor/input/handler/AcEdPointHandler.d.ts.map +1 -1
- package/lib/editor/input/handler/AcEdPointHandler.js +36 -16
- package/lib/editor/input/handler/AcEdPointHandler.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptSelectionOptions.d.ts +12 -0
- package/lib/editor/input/prompt/AcEdPromptSelectionOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptSelectionOptions.js +20 -0
- package/lib/editor/input/prompt/AcEdPromptSelectionOptions.js.map +1 -1
- package/lib/editor/input/ui/AcEdCommandLine.d.ts +5 -0
- package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdCommandLine.js +33 -5
- package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +30 -7
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/view/AcEdBaseView.d.ts +47 -0
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +80 -0
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts +40 -4
- package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts.map +1 -1
- package/lib/editor/view/AcEdSelectionBoxIntersect.js +199 -3
- package/lib/editor/view/AcEdSelectionBoxIntersect.js.map +1 -1
- package/lib/editor/view/AcEdViewportBoxSelection.d.ts +10 -0
- package/lib/editor/view/AcEdViewportBoxSelection.d.ts.map +1 -1
- package/lib/editor/view/AcEdViewportBoxSelection.js +15 -8
- package/lib/editor/view/AcEdViewportBoxSelection.js.map +1 -1
- package/lib/file-open-panel.d.ts.map +1 -1
- package/lib/file-open-panel.js +4 -0
- package/lib/file-open-panel.js.map +1 -1
- package/lib/find/AcApFindNavigator.d.ts +47 -0
- package/lib/find/AcApFindNavigator.d.ts.map +1 -1
- package/lib/find/AcApFindNavigator.js +13 -5
- package/lib/find/AcApFindNavigator.js.map +1 -1
- package/lib/find/findDrawing.d.ts +1 -1
- package/lib/find/findDrawing.d.ts.map +1 -1
- package/lib/find/findDrawing.js +4 -3
- package/lib/find/findDrawing.js.map +1 -1
- package/lib/find/findText.d.ts +40 -13
- package/lib/find/findText.d.ts.map +1 -1
- package/lib/find/findText.js +100 -44
- package/lib/find/findText.js.map +1 -1
- package/lib/find/index.d.ts +8 -0
- package/lib/find/index.d.ts.map +1 -1
- package/lib/find/index.js +8 -0
- package/lib/find/index.js.map +1 -1
- package/lib/i18n/AcApI18n.d.ts +1 -1
- package/lib/i18n/AcApI18n.d.ts.map +1 -1
- package/lib/i18n/AcApI18n.js +2 -0
- package/lib/i18n/AcApI18n.js.map +1 -1
- package/lib/i18n/AcUiI18n.d.ts +23 -0
- package/lib/i18n/AcUiI18n.d.ts.map +1 -0
- package/lib/i18n/AcUiI18n.js +126 -0
- package/lib/i18n/AcUiI18n.js.map +1 -0
- package/lib/i18n/ar/command.d.ts +103 -6
- package/lib/i18n/ar/command.d.ts.map +1 -1
- package/lib/i18n/ar/command.js +601 -11
- package/lib/i18n/ar/command.js.map +1 -1
- package/lib/i18n/ar/jig.d.ts +1423 -579
- package/lib/i18n/ar/jig.d.ts.map +1 -1
- package/lib/i18n/ar/jig.js +2096 -322
- package/lib/i18n/ar/jig.js.map +1 -1
- package/lib/i18n/ar/main.d.ts +22 -0
- package/lib/i18n/ar/main.d.ts.map +1 -1
- package/lib/i18n/ar/main.js +22 -0
- package/lib/i18n/ar/main.js.map +1 -1
- package/lib/i18n/ar/simpleUi.d.ts +170 -0
- package/lib/i18n/ar/simpleUi.d.ts.map +1 -0
- package/lib/i18n/ar/simpleUi.js +169 -0
- package/lib/i18n/ar/simpleUi.js.map +1 -0
- package/lib/i18n/cs/command.d.ts +111 -1
- package/lib/i18n/cs/command.d.ts.map +1 -1
- package/lib/i18n/cs/command.js +112 -2
- package/lib/i18n/cs/command.js.map +1 -1
- package/lib/i18n/cs/jig.d.ts +867 -0
- package/lib/i18n/cs/jig.d.ts.map +1 -1
- package/lib/i18n/cs/jig.js +988 -24
- package/lib/i18n/cs/jig.js.map +1 -1
- package/lib/i18n/cs/main.d.ts +22 -0
- package/lib/i18n/cs/main.d.ts.map +1 -1
- package/lib/i18n/cs/main.js +23 -1
- package/lib/i18n/cs/main.js.map +1 -1
- package/lib/i18n/cs/simpleUi.d.ts +170 -0
- package/lib/i18n/cs/simpleUi.d.ts.map +1 -0
- package/lib/i18n/cs/simpleUi.js +169 -0
- package/lib/i18n/cs/simpleUi.js.map +1 -0
- package/lib/i18n/en/command.d.ts +98 -1
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +99 -2
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +844 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +801 -1
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/en/main.d.ts +22 -0
- package/lib/i18n/en/main.d.ts.map +1 -1
- package/lib/i18n/en/main.js +22 -0
- package/lib/i18n/en/main.js.map +1 -1
- package/lib/i18n/en/simpleUi.d.ts +170 -0
- package/lib/i18n/en/simpleUi.d.ts.map +1 -0
- package/lib/i18n/en/simpleUi.js +169 -0
- package/lib/i18n/en/simpleUi.js.map +1 -0
- package/lib/i18n/index.d.ts +1 -0
- package/lib/i18n/index.d.ts.map +1 -1
- package/lib/i18n/index.js +37 -6
- package/lib/i18n/index.js.map +1 -1
- package/lib/i18n/ja/command.d.ts +605 -0
- package/lib/i18n/ja/command.d.ts.map +1 -0
- package/lib/i18n/ja/command.js +604 -0
- package/lib/i18n/ja/command.js.map +1 -0
- package/lib/i18n/ja/jig.d.ts +2425 -0
- package/lib/i18n/ja/jig.d.ts.map +1 -0
- package/lib/i18n/ja/jig.js +2316 -0
- package/lib/i18n/ja/jig.js.map +1 -0
- package/lib/i18n/ja/main.d.ts +216 -0
- package/lib/i18n/ja/main.d.ts.map +1 -0
- package/lib/i18n/ja/main.js +215 -0
- package/lib/i18n/ja/main.js.map +1 -0
- package/lib/i18n/ja/simpleUi.d.ts +170 -0
- package/lib/i18n/ja/simpleUi.d.ts.map +1 -0
- package/lib/i18n/ja/simpleUi.js +169 -0
- package/lib/i18n/ja/simpleUi.js.map +1 -0
- package/lib/i18n/ko/command.d.ts +605 -0
- package/lib/i18n/ko/command.d.ts.map +1 -0
- package/lib/i18n/ko/command.js +604 -0
- package/lib/i18n/ko/command.js.map +1 -0
- package/lib/i18n/ko/jig.d.ts +2425 -0
- package/lib/i18n/ko/jig.d.ts.map +1 -0
- package/lib/i18n/ko/jig.js +2316 -0
- package/lib/i18n/ko/jig.js.map +1 -0
- package/lib/i18n/ko/main.d.ts +216 -0
- package/lib/i18n/ko/main.d.ts.map +1 -0
- package/lib/i18n/ko/main.js +215 -0
- package/lib/i18n/ko/main.js.map +1 -0
- package/lib/i18n/ko/simpleUi.d.ts +170 -0
- package/lib/i18n/ko/simpleUi.d.ts.map +1 -0
- package/lib/i18n/ko/simpleUi.js +169 -0
- package/lib/i18n/ko/simpleUi.js.map +1 -0
- package/lib/i18n/tr/command.d.ts +111 -1
- package/lib/i18n/tr/command.d.ts.map +1 -1
- package/lib/i18n/tr/command.js +112 -2
- package/lib/i18n/tr/command.js.map +1 -1
- package/lib/i18n/tr/jig.d.ts +867 -0
- package/lib/i18n/tr/jig.d.ts.map +1 -1
- package/lib/i18n/tr/jig.js +1096 -24
- package/lib/i18n/tr/jig.js.map +1 -1
- package/lib/i18n/tr/main.d.ts +22 -0
- package/lib/i18n/tr/main.d.ts.map +1 -1
- package/lib/i18n/tr/main.js +23 -1
- package/lib/i18n/tr/main.js.map +1 -1
- package/lib/i18n/tr/simpleUi.d.ts +170 -0
- package/lib/i18n/tr/simpleUi.d.ts.map +1 -0
- package/lib/i18n/tr/simpleUi.js +169 -0
- package/lib/i18n/tr/simpleUi.js.map +1 -0
- package/lib/i18n/zh/command.d.ts +98 -1
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +99 -2
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +844 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +793 -1
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/i18n/zh/main.d.ts +22 -0
- package/lib/i18n/zh/main.d.ts.map +1 -1
- package/lib/i18n/zh/main.js +22 -0
- package/lib/i18n/zh/main.js.map +1 -1
- package/lib/i18n/zh/simpleUi.d.ts +170 -0
- package/lib/i18n/zh/simpleUi.d.ts.map +1 -0
- package/lib/i18n/zh/simpleUi.js +169 -0
- package/lib/i18n/zh/simpleUi.js.map +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/service/AcApEntityService.d.ts +36 -2
- package/lib/service/AcApEntityService.d.ts.map +1 -1
- package/lib/service/AcApEntityService.js +92 -23
- package/lib/service/AcApEntityService.js.map +1 -1
- package/lib/service/AcApGroup.d.ts +95 -0
- package/lib/service/AcApGroup.d.ts.map +1 -0
- package/lib/service/AcApGroup.js +421 -0
- package/lib/service/AcApGroup.js.map +1 -0
- package/lib/service/AcApLlmSettingsService.d.ts +74 -0
- package/lib/service/AcApLlmSettingsService.d.ts.map +1 -0
- package/lib/service/AcApLlmSettingsService.js +126 -0
- package/lib/service/AcApLlmSettingsService.js.map +1 -0
- package/lib/service/AcApNamedViewService.d.ts +139 -0
- package/lib/service/AcApNamedViewService.d.ts.map +1 -0
- package/lib/service/AcApNamedViewService.js +407 -0
- package/lib/service/AcApNamedViewService.js.map +1 -0
- package/lib/service/AcApTextRecognitionService.d.ts +107 -0
- package/lib/service/AcApTextRecognitionService.d.ts.map +1 -0
- package/lib/service/AcApTextRecognitionService.js +304 -0
- package/lib/service/AcApTextRecognitionService.js.map +1 -0
- package/lib/service/AcApUcsService.d.ts +101 -0
- package/lib/service/AcApUcsService.d.ts.map +1 -0
- package/lib/service/AcApUcsService.js +753 -0
- package/lib/service/AcApUcsService.js.map +1 -0
- package/lib/service/index.d.ts +5 -0
- package/lib/service/index.d.ts.map +1 -1
- package/lib/service/index.js +5 -0
- package/lib/service/index.js.map +1 -1
- package/lib/smartBlock/AcApSmartBlockConvert.d.ts +98 -0
- package/lib/smartBlock/AcApSmartBlockConvert.d.ts.map +1 -0
- package/lib/smartBlock/AcApSmartBlockConvert.js +300 -0
- package/lib/smartBlock/AcApSmartBlockConvert.js.map +1 -0
- package/lib/smartBlock/AcApSmartBlockDetect.d.ts +149 -0
- package/lib/smartBlock/AcApSmartBlockDetect.d.ts.map +1 -0
- package/lib/smartBlock/AcApSmartBlockDetect.js +1464 -0
- package/lib/smartBlock/AcApSmartBlockDetect.js.map +1 -0
- package/lib/smartBlock/AcApSmartBlockSearch.d.ts +161 -0
- package/lib/smartBlock/AcApSmartBlockSearch.d.ts.map +1 -0
- package/lib/smartBlock/AcApSmartBlockSearch.js +712 -0
- package/lib/smartBlock/AcApSmartBlockSearch.js.map +1 -0
- package/lib/smartBlock/AcApSmartBlockSession.d.ts +85 -0
- package/lib/smartBlock/AcApSmartBlockSession.d.ts.map +1 -0
- package/lib/smartBlock/AcApSmartBlockSession.js +233 -0
- package/lib/smartBlock/AcApSmartBlockSession.js.map +1 -0
- package/lib/smartBlock/AcEdShapeFeatures.d.ts +33 -0
- package/lib/smartBlock/AcEdShapeFeatures.d.ts.map +1 -0
- package/lib/smartBlock/AcEdShapeFeatures.js +571 -0
- package/lib/smartBlock/AcEdShapeFeatures.js.map +1 -0
- package/lib/smartBlock/AcEdShapeMatcher.d.ts +146 -0
- package/lib/smartBlock/AcEdShapeMatcher.d.ts.map +1 -0
- package/lib/smartBlock/AcEdShapeMatcher.js +749 -0
- package/lib/smartBlock/AcEdShapeMatcher.js.map +1 -0
- package/lib/smartBlock/index.d.ts +7 -0
- package/lib/smartBlock/index.d.ts.map +1 -0
- package/lib/smartBlock/index.js +7 -0
- package/lib/smartBlock/index.js.map +1 -0
- package/lib/ui/AcApSimpleUiChrome.d.ts +374 -0
- package/lib/ui/AcApSimpleUiChrome.d.ts.map +1 -0
- package/lib/ui/AcApSimpleUiChrome.js +1308 -0
- package/lib/ui/AcApSimpleUiChrome.js.map +1 -0
- package/lib/ui/AcUiColorPicker.d.ts +47 -0
- package/lib/ui/AcUiColorPicker.d.ts.map +1 -0
- package/lib/ui/AcUiColorPicker.js +133 -0
- package/lib/ui/AcUiColorPicker.js.map +1 -0
- package/lib/ui/AcUiFileOpenPanel.js +1 -1
- package/lib/ui/AcUiFileOpenPanel.js.map +1 -1
- package/lib/ui/AcUiFindPaletteView.d.ts +99 -0
- package/lib/ui/AcUiFindPaletteView.d.ts.map +1 -0
- package/lib/ui/AcUiFindPaletteView.js +426 -0
- package/lib/ui/AcUiFindPaletteView.js.map +1 -0
- package/lib/ui/AcUiLayerListView.d.ts +114 -0
- package/lib/ui/AcUiLayerListView.d.ts.map +1 -0
- package/lib/ui/AcUiLayerListView.js +443 -0
- package/lib/ui/AcUiLayerListView.js.map +1 -0
- package/lib/ui/AcUiMeasurementPaletteView.d.ts +83 -0
- package/lib/ui/AcUiMeasurementPaletteView.d.ts.map +1 -0
- package/lib/ui/AcUiMeasurementPaletteView.js +341 -0
- package/lib/ui/AcUiMeasurementPaletteView.js.map +1 -0
- package/lib/ui/AcUiReviewPaletteView.d.ts +141 -0
- package/lib/ui/AcUiReviewPaletteView.d.ts.map +1 -0
- package/lib/ui/AcUiReviewPaletteView.js +524 -0
- package/lib/ui/AcUiReviewPaletteView.js.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts +24 -2
- package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -1
- package/lib/ui/AcUiShortCutToolbar.js +48 -6
- package/lib/ui/AcUiShortCutToolbar.js.map +1 -1
- package/lib/ui/AcUiSimpleUiOptions.d.ts +88 -0
- package/lib/ui/AcUiSimpleUiOptions.d.ts.map +1 -0
- package/lib/ui/AcUiSimpleUiOptions.js +2 -0
- package/lib/ui/AcUiSimpleUiOptions.js.map +1 -0
- package/lib/ui/AcUiSimpleUiStyles.d.ts +12 -0
- package/lib/ui/AcUiSimpleUiStyles.d.ts.map +1 -0
- package/lib/ui/AcUiSimpleUiStyles.js +28 -0
- package/lib/ui/AcUiSimpleUiStyles.js.map +1 -0
- package/lib/ui/AcUiThemeSync.d.ts +58 -0
- package/lib/ui/AcUiThemeSync.d.ts.map +1 -0
- package/lib/ui/AcUiThemeSync.js +114 -0
- package/lib/ui/AcUiThemeSync.js.map +1 -0
- package/lib/ui/acuiNormalizeSimpleUiOptions.d.ts +20 -0
- package/lib/ui/acuiNormalizeSimpleUiOptions.d.ts.map +1 -0
- package/lib/ui/acuiNormalizeSimpleUiOptions.js +46 -0
- package/lib/ui/acuiNormalizeSimpleUiOptions.js.map +1 -0
- package/lib/ui/dock/AcUiDockPanel.d.ts +204 -0
- package/lib/ui/dock/AcUiDockPanel.d.ts.map +1 -0
- package/lib/ui/dock/AcUiDockPanel.js +926 -0
- package/lib/ui/dock/AcUiDockPanel.js.map +1 -0
- package/lib/ui/dock/acuiDockPanelStyles.d.ts +9 -0
- package/lib/ui/dock/acuiDockPanelStyles.d.ts.map +1 -0
- package/lib/ui/dock/acuiDockPanelStyles.js +27 -0
- package/lib/ui/dock/acuiDockPanelStyles.js.map +1 -0
- package/lib/ui/dock/index.d.ts +3 -0
- package/lib/ui/dock/index.d.ts.map +1 -0
- package/lib/ui/dock/index.js +3 -0
- package/lib/ui/dock/index.js.map +1 -0
- package/lib/ui/icons.d.ts +22 -14
- package/lib/ui/icons.d.ts.map +1 -1
- package/lib/ui/icons.js +42 -32
- package/lib/ui/icons.js.map +1 -1
- package/lib/ui/index.d.ts +12 -0
- package/lib/ui/index.d.ts.map +1 -1
- package/lib/ui/index.js +11 -0
- package/lib/ui/index.js.map +1 -1
- package/lib/ui/toolbar/AcUiToolbar.d.ts +1 -1
- package/lib/ui/toolbar/AcUiToolbar.js +1 -1
- package/lib/ui/toolbar/createLayoutToolbarItem.d.ts +41 -0
- package/lib/ui/toolbar/createLayoutToolbarItem.d.ts.map +1 -0
- package/lib/ui/toolbar/createLayoutToolbarItem.js +103 -0
- package/lib/ui/toolbar/createLayoutToolbarItem.js.map +1 -0
- package/lib/ui/toolbar/createToolbarLayoutSwitcher.d.ts +40 -0
- package/lib/ui/toolbar/createToolbarLayoutSwitcher.d.ts.map +1 -0
- package/lib/ui/toolbar/createToolbarLayoutSwitcher.js +65 -0
- package/lib/ui/toolbar/createToolbarLayoutSwitcher.js.map +1 -0
- package/lib/ui/toolbar/defaultToolbarItems.d.ts +44 -0
- package/lib/ui/toolbar/defaultToolbarItems.d.ts.map +1 -0
- package/lib/ui/toolbar/defaultToolbarItems.js +614 -0
- package/lib/ui/toolbar/defaultToolbarItems.js.map +1 -0
- package/lib/ui/toolbar/index.d.ts +3 -1
- package/lib/ui/toolbar/index.d.ts.map +1 -1
- package/lib/ui/toolbar/index.js +1 -0
- package/lib/ui/toolbar/index.js.map +1 -1
- package/lib/ui/toolbar/mergeToolbarOptionsForLayout.d.ts +25 -0
- package/lib/ui/toolbar/mergeToolbarOptionsForLayout.d.ts.map +1 -0
- package/lib/ui/toolbar/mergeToolbarOptionsForLayout.js +164 -0
- package/lib/ui/toolbar/mergeToolbarOptionsForLayout.js.map +1 -0
- package/lib/ui/toolbar/resolveDockMountTarget.d.ts +22 -0
- package/lib/ui/toolbar/resolveDockMountTarget.d.ts.map +1 -0
- package/lib/ui/toolbar/resolveDockMountTarget.js +47 -0
- package/lib/ui/toolbar/resolveDockMountTarget.js.map +1 -0
- package/lib/ui/toolbar/resolveToolbarItems.d.ts +46 -0
- package/lib/ui/toolbar/resolveToolbarItems.d.ts.map +1 -0
- package/lib/ui/toolbar/resolveToolbarItems.js +161 -0
- package/lib/ui/toolbar/resolveToolbarItems.js.map +1 -0
- package/lib/ui/toolbar/resolveToolbarMountTarget.d.ts +17 -0
- package/lib/ui/toolbar/resolveToolbarMountTarget.d.ts.map +1 -0
- package/lib/ui/toolbar/resolveToolbarMountTarget.js +39 -0
- package/lib/ui/toolbar/resolveToolbarMountTarget.js.map +1 -0
- package/lib/ui/toolbar/simpleUiPresets.d.ts +15 -0
- package/lib/ui/toolbar/simpleUiPresets.d.ts.map +1 -0
- package/lib/ui/toolbar/simpleUiPresets.js +14 -0
- package/lib/ui/toolbar/simpleUiPresets.js.map +1 -0
- package/lib/ui/toolbar/types.d.ts +18 -0
- package/lib/ui/toolbar/types.d.ts.map +1 -1
- package/lib/util/AcApFontUtil.d.ts +19 -0
- package/lib/util/AcApFontUtil.d.ts.map +1 -1
- package/lib/util/AcApFontUtil.js +108 -13
- package/lib/util/AcApFontUtil.js.map +1 -1
- package/lib/util/AcApGeTransform.d.ts +8 -0
- package/lib/util/AcApGeTransform.d.ts.map +1 -1
- package/lib/util/AcApGeTransform.js +13 -0
- package/lib/util/AcApGeTransform.js.map +1 -1
- package/lib/util/AcApTextMeasure.d.ts +43 -0
- package/lib/util/AcApTextMeasure.d.ts.map +1 -0
- package/lib/util/AcApTextMeasure.js +82 -0
- package/lib/util/AcApTextMeasure.js.map +1 -0
- package/lib/util/acapResolveOpenFileType.d.ts +12 -0
- package/lib/util/acapResolveOpenFileType.d.ts.map +1 -0
- package/lib/util/acapResolveOpenFileType.js +22 -0
- package/lib/util/acapResolveOpenFileType.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/AcApUcsIconOverlay.d.ts +26 -0
- package/lib/view/AcApUcsIconOverlay.d.ts.map +1 -0
- package/lib/view/AcApUcsIconOverlay.js +143 -0
- package/lib/view/AcApUcsIconOverlay.js.map +1 -0
- package/lib/view/AcEdViewKeyHandler.d.ts +11 -0
- package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
- package/lib/view/AcEdViewKeyHandler.js +39 -3
- package/lib/view/AcEdViewKeyHandler.js.map +1 -1
- package/lib/view/AcTrEntityDisplayController.d.ts +5 -0
- package/lib/view/AcTrEntityDisplayController.d.ts.map +1 -1
- package/lib/view/AcTrEntityDisplayController.js +5 -0
- package/lib/view/AcTrEntityDisplayController.js.map +1 -1
- package/lib/view/AcTrLayer.d.ts +27 -0
- package/lib/view/AcTrLayer.d.ts.map +1 -1
- package/lib/view/AcTrLayer.js +40 -0
- package/lib/view/AcTrLayer.js.map +1 -1
- package/lib/view/AcTrLayout.d.ts +55 -1
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +252 -51
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrLayoutView.d.ts +0 -12
- package/lib/view/AcTrLayoutView.d.ts.map +1 -1
- package/lib/view/AcTrLayoutView.js +0 -20
- package/lib/view/AcTrLayoutView.js.map +1 -1
- package/lib/view/AcTrLayoutViewManager.d.ts +6 -0
- package/lib/view/AcTrLayoutViewManager.d.ts.map +1 -1
- package/lib/view/AcTrLayoutViewManager.js +8 -0
- package/lib/view/AcTrLayoutViewManager.js.map +1 -1
- package/lib/view/AcTrScene.d.ts +12 -0
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +65 -16
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +92 -1
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +367 -92
- package/lib/view/AcTrView2d.js.map +1 -1
- package/lib/view/AcTrViewSessionState.d.ts +5 -0
- package/lib/view/AcTrViewSessionState.d.ts.map +1 -1
- package/package.json +12 -16
- package/src/file-open-panel.ts +93 -89
- package/src/ui/icons.ts +428 -411
- package/dist/cad-simple-viewer-AcUiFileOpenSession-drptdOYc.js +0 -324
- package/find.ts +0 -7
- package/src/find/AcApFindNavigator.ts +0 -190
- package/src/find/findDrawing.ts +0 -211
- package/src/find/findText.ts +0 -624
- package/src/find/index.ts +0 -2
|
@@ -92,26 +92,29 @@ var __values = (this && this.__values) || function(o) {
|
|
|
92
92
|
};
|
|
93
93
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
94
94
|
};
|
|
95
|
-
import { AcCmEventManager, AcDbDatabase,
|
|
95
|
+
import { AcCmEventManager, AcDbDatabase, acdbHostApplicationServices, AcDbSystemVariables, AcDbSysVarManager, log } from '@mlightcad/data-model';
|
|
96
96
|
import { FontManager } from '@mlightcad/mtext-renderer';
|
|
97
97
|
import { AcTrMTextRenderer } from '@mlightcad/three-renderer';
|
|
98
|
-
import { AcApAboutCmd, AcApArcCmd, acapBindMarkupSession, AcApCacheFontCmd, AcApCircleCmd, AcApCloseCmd, AcApConvertToBmpCmd, AcApConvertToDxfCmd, AcApConvertToJpgCmd, AcApConvertToPngCmd, AcApCopyCmd, AcApDimAlignedCmd, AcApDimAngularCmd, AcApDimArcCmd, AcApDimBaselineCmd, AcApDimContinueCmd, AcApDimDiameterCmd, AcApDimLinearCmd, AcApDimOrdinateCmd, AcApDimRadiusCmd, acapDisposeMarkupSession, AcApEllipseCmd, AcApEntityPreviewCmd, AcApEraseCmd, AcApHatchCmd, AcApHideObjectsCmd, AcApImageAttachCmd, AcApInsertCmd, AcApLayerCloseCmd, AcApLayerCmd, AcApLayerCurCmd, AcApLayerDelCmd, AcApLayerFreezeCmd, AcApLayerIsoCmd, AcApLayerLockCmd, AcApLayerOnCmd, AcApLayerPCmd, AcApLayerThawCmd, AcApLayerUnisoCmd, AcApLayerUnlockCmd, AcApLayoffCmd, AcApLineCmd, AcApLogCmd, AcApMLineCmd, AcApMoveCmd, AcApMTextCmd, AcApObjectScaleCmd, AcApOffsetCmd, AcApOpenCmd, AcApPanCmd, AcApPointCmd, AcApPolygonCmd, AcApPolylineCmd, AcApQNewCmd, AcApRayCmd, AcApReadingModeCmd, AcApRectCmd, AcApRedoCmd, AcApRegenCmd, AcApRevCloudCmd, AcApRotateCmd, AcApSelectCmd, AcApSketchCmd, AcApSplineCmd, AcApSwitchBgCmd, AcApSysVarCmd, AcApUndoCmd, AcApUnisolateObjectsCmd, AcApXAttachCmd, AcApXLineCmd, AcApZoomCmd, resetMarkupSession, resetMeasurementSession } from '../command';
|
|
98
|
+
import { AcApAboutCmd, AcApArcCmd, acapBindMarkupSession, AcApCacheFontCmd, AcApCircleCmd, AcApCloseCmd, AcApConvertToBmpCmd, AcApConvertToDxfCmd, AcApConvertToJpgCmd, AcApConvertToPngCmd, AcApCopyBaseCmd, AcApCopyClipCmd, AcApCopyCmd, AcApCutClipCmd, AcApDashBSearchCmd, AcApDashGroupCmd, AcApDimAlignedCmd, AcApDimAngularCmd, AcApDimArcCmd, AcApDimBaselineCmd, AcApDimContinueCmd, AcApDimDiameterCmd, AcApDimLinearCmd, AcApDimOrdinateCmd, AcApDimRadiusCmd, acapDisposeMarkupSession, AcApEllipseCmd, AcApEntityPreviewCmd, AcApEraseCmd, AcApGroupCmd, AcApGroupEditCmd, AcApHatchCmd, AcApHideObjectsCmd, AcApImageAttachCmd, AcApInsertCmd, acapInstallMarkupSessionBootstrap, AcApLayerCloseCmd, AcApLayerCmd, AcApLayerCurCmd, AcApLayerDelCmd, AcApLayerFreezeCmd, AcApLayerIsoCmd, AcApLayerLockCmd, AcApLayerOnCmd, AcApLayerPCmd, AcApLayerThawCmd, AcApLayerUnisoCmd, AcApLayerUnlockCmd, AcApLayoffCmd, AcApLeaderCmd, AcApLineCmd, AcApLogCmd, AcApMLeaderCmd, AcApMLeaderEditCmd, AcApMLineCmd, AcApMoveCmd, AcApMTextCmd, AcApObjectScaleCmd, AcApOffsetCmd, AcApOpenCmd, AcApPanCmd, AcApPasteBlockCmd, AcApPasteClipCmd, AcApPasteOrigCmd, AcApPointCmd, AcApPolygonCmd, AcApPolylineCmd, AcApQNewCmd, AcApRayCmd, AcApReadingModeCmd, AcApRectCmd, AcApRedoCmd, AcApRegenCmd, AcApRevCloudCmd, AcApRotateCmd, AcApScaleCmd, AcApSelectCmd, AcApSketchCmd, AcApSplineCmd, AcApSwitchBgCmd, AcApSysVarCmd, AcApUcsCmd, AcApUndoCmd, AcApUngroupCmd, AcApUnisolateObjectsCmd, AcApViewRestoreCmd, AcApXAttachCmd, AcApXLineCmd, AcApZoomCmd, resetMarkupSession, resetMeasurementSession } from '../command';
|
|
99
99
|
import { acapGetDrawStyleSessionAccessory } from '../command/AcApDrawStyleSession';
|
|
100
100
|
import { registerMarkupCommands } from '../command/markup/AcApRegisterMarkupCommands';
|
|
101
101
|
import { registerMeasureCommands } from '../command/measure/AcApRegisterMeasureCommands';
|
|
102
102
|
import { AcEdCommandStack, AcEdOpenMode, eventBus } from '../editor';
|
|
103
103
|
import { AcApPluginManager } from '../plugin/AcApPluginManager';
|
|
104
104
|
import { acapCollectPaperViewportsBox, acapResolveLayoutFrameBox } from '../util/AcApLayoutViewFraming';
|
|
105
|
+
import { acapResolveOpenFileType } from '../util/acapResolveOpenFileType';
|
|
105
106
|
import { isScriptQuitCommand, parseScriptLines } from '../util/AcApScriptParser';
|
|
106
107
|
import { acapWithSecondaryDatabase } from '../util/AcApSecondaryDatabase';
|
|
107
108
|
import { AcTrView2d } from '../view';
|
|
108
109
|
import { AcApBusyIndicator } from './AcApBusyIndicator';
|
|
110
|
+
import { AcApClipboard } from './AcApClipboard';
|
|
109
111
|
import { acapBindCommandServices } from './AcApCommandServices';
|
|
110
112
|
import { AcApContext } from './AcApContext';
|
|
111
113
|
import { AcApDocSession } from './AcApDocSession';
|
|
112
114
|
import { ACAP_DEFAULT_DOCS_BASE_URL, acapSetDocsBaseUrl } from './AcApDocsUrl';
|
|
113
115
|
import { AcApDocument } from './AcApDocument';
|
|
114
116
|
import { AcApFontLoader } from './AcApFontLoader';
|
|
117
|
+
import { acapHealModelLayoutLink } from './acapHealModelLayoutLink';
|
|
115
118
|
import { AcApOpenViewMode } from './AcApOpenDatabaseOptions';
|
|
116
119
|
import { acapInstallOpenFileDialog, acapUninstallOpenFileDialog, acapUpdateOpenFileDialogOptions } from './AcApOpenFileDialog';
|
|
117
120
|
import { AcApOpenFileProfiler } from './AcApOpenFileProfiler';
|
|
@@ -162,11 +165,13 @@ var DEFAULT_COMMAND_ALIASES = {
|
|
|
162
165
|
'-LAYER': ['-LA'],
|
|
163
166
|
LINE: ['L'],
|
|
164
167
|
MLINE: ['ML'],
|
|
168
|
+
MLEADEREDIT: ['MLE'],
|
|
165
169
|
MTEXT: ['T'],
|
|
166
170
|
MOVE: ['M'],
|
|
167
171
|
OFFSET: ['O'],
|
|
168
172
|
COPY: ['CO'],
|
|
169
173
|
ROTATE: ['RO'],
|
|
174
|
+
SCALE: ['SC'],
|
|
170
175
|
OPEN: ['OP'],
|
|
171
176
|
PAN: ['P'],
|
|
172
177
|
POINT: ['PO'],
|
|
@@ -213,10 +218,14 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
213
218
|
var _a, _b, _c, _d, _e;
|
|
214
219
|
/** Open document sessions (MDI). The shared view shows {@link _activeSession}. */
|
|
215
220
|
this._sessions = [];
|
|
221
|
+
/** Drawing clipboard shared by every open document (COPYCLIP / PASTECLIP). */
|
|
222
|
+
this._clipboard = new AcApClipboard();
|
|
216
223
|
/** Monotonic id suffix for {@link AcApDocSession.id}. */
|
|
217
224
|
this._nextSessionId = 1;
|
|
218
225
|
/** Optional OPENPROF session profiler (console stage timings) */
|
|
219
226
|
this._openFileProfiler = new AcApOpenFileProfiler();
|
|
227
|
+
/** Resolved when built-in simple UI chrome finishes loading (or skipped). */
|
|
228
|
+
this._simpleUiReady = Promise.resolve(undefined);
|
|
220
229
|
/** Cached worker readiness; null until checked, then true or false */
|
|
221
230
|
this._workersReady = null;
|
|
222
231
|
/** Monotonically increasing counter used to generate overlay ids */
|
|
@@ -298,6 +307,8 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
298
307
|
var context = new AcApContext(view, doc);
|
|
299
308
|
this._activeSession = new AcApDocSession("doc-".concat(this._nextSessionId++), context);
|
|
300
309
|
this._sessions = [this._activeSession];
|
|
310
|
+
// Hard value import keeps the factory alive under narrow package sideEffects.
|
|
311
|
+
acapInstallMarkupSessionBootstrap();
|
|
301
312
|
acapBindMarkupSession(this._activeSession.id);
|
|
302
313
|
this._fontLoader = new AcApFontLoader();
|
|
303
314
|
// Share one DefaultFontLoader cache between UI catalog and on-demand draws.
|
|
@@ -311,6 +322,9 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
311
322
|
AcTrMTextRenderer.getInstance().setFontUrl(fontsUrl);
|
|
312
323
|
this.installFontFileLoadTimeout();
|
|
313
324
|
acdbHostApplicationServices().workingDatabase = doc.database;
|
|
325
|
+
// Bind the empty drawing's model space after workingDatabase is set so
|
|
326
|
+
// worldToScreen / UCS icon have a layout camera during the first db.read.
|
|
327
|
+
this.setActiveLayout(view, doc.database);
|
|
314
328
|
this._commandManager = new AcEdCommandStack();
|
|
315
329
|
this.registerCommands();
|
|
316
330
|
// Annotative display depends on CANNOSCALE / ANNOALLVISIBLE; redraw when
|
|
@@ -383,6 +397,10 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
383
397
|
enableBridge: true
|
|
384
398
|
});
|
|
385
399
|
}
|
|
400
|
+
if (options.simpleUi !== false) {
|
|
401
|
+
var simpleUiOptions = typeof options.simpleUi === 'object' ? options.simpleUi : {};
|
|
402
|
+
this._simpleUiReady = this.loadSimpleUi(simpleUiOptions);
|
|
403
|
+
}
|
|
386
404
|
}
|
|
387
405
|
/**
|
|
388
406
|
* Creates the singleton instance with an optional canvas element.
|
|
@@ -435,7 +453,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
435
453
|
*/
|
|
436
454
|
AcApDocManager.prototype.destroy = function () {
|
|
437
455
|
return __awaiter(this, void 0, void 0, function () {
|
|
438
|
-
var _a, _b, session;
|
|
456
|
+
var chrome, _a, _b, session;
|
|
439
457
|
var e_1, _c;
|
|
440
458
|
var _d, _e;
|
|
441
459
|
return __generator(this, function (_f) {
|
|
@@ -445,8 +463,14 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
445
463
|
// entity commits do not read a torn-down singleton.
|
|
446
464
|
this._mainView.abortConversion();
|
|
447
465
|
(_d = this._splitView) === null || _d === void 0 ? void 0 : _d.abortConversion();
|
|
448
|
-
return [4 /*yield*/, this.
|
|
466
|
+
return [4 /*yield*/, this._simpleUiReady.catch(function () { return undefined; })];
|
|
449
467
|
case 1:
|
|
468
|
+
chrome = _f.sent();
|
|
469
|
+
chrome === null || chrome === void 0 ? void 0 : chrome.dispose(this._commandManager);
|
|
470
|
+
this._simpleUiChrome = undefined;
|
|
471
|
+
this._simpleUiReady = Promise.resolve(undefined);
|
|
472
|
+
return [4 /*yield*/, this._pluginManager.unloadAllPlugins()];
|
|
473
|
+
case 2:
|
|
450
474
|
_f.sent();
|
|
451
475
|
try {
|
|
452
476
|
for (_a = __values(__spreadArray([], __read(this._sessions), false)), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
@@ -580,6 +604,20 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
580
604
|
AcApDocManager.prototype.sessionFor = function (doc) {
|
|
581
605
|
return this._sessions.find(function (session) { return session.doc === doc; });
|
|
582
606
|
};
|
|
607
|
+
Object.defineProperty(AcApDocManager.prototype, "clipboard", {
|
|
608
|
+
/**
|
|
609
|
+
* Gets the drawing clipboard used by COPYCLIP, CUTCLIP, COPYBASE and the
|
|
610
|
+
* PASTE* commands.
|
|
611
|
+
*
|
|
612
|
+
* It is shared by every open document so objects can be pasted into another
|
|
613
|
+
* drawing.
|
|
614
|
+
*/
|
|
615
|
+
get: function () {
|
|
616
|
+
return this._clipboard;
|
|
617
|
+
},
|
|
618
|
+
enumerable: false,
|
|
619
|
+
configurable: true
|
|
620
|
+
});
|
|
583
621
|
Object.defineProperty(AcApDocManager.prototype, "curDocument", {
|
|
584
622
|
/**
|
|
585
623
|
* Gets the currently open CAD document.
|
|
@@ -874,6 +912,28 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
874
912
|
enumerable: false,
|
|
875
913
|
configurable: true
|
|
876
914
|
});
|
|
915
|
+
Object.defineProperty(AcApDocManager.prototype, "simpleUi", {
|
|
916
|
+
/**
|
|
917
|
+
* Built-in simple UI chrome when {@link AcApDocManagerOptions.simpleUi} is
|
|
918
|
+
* enabled; `undefined` until {@link simpleUiReady} resolves or when opted out.
|
|
919
|
+
*/
|
|
920
|
+
get: function () {
|
|
921
|
+
return this._simpleUiChrome;
|
|
922
|
+
},
|
|
923
|
+
enumerable: false,
|
|
924
|
+
configurable: true
|
|
925
|
+
});
|
|
926
|
+
Object.defineProperty(AcApDocManager.prototype, "simpleUiReady", {
|
|
927
|
+
/**
|
|
928
|
+
* Resolves when built-in simple UI chrome has finished loading, or with
|
|
929
|
+
* `undefined` when {@link AcApDocManagerOptions.simpleUi} is `false`.
|
|
930
|
+
*/
|
|
931
|
+
get: function () {
|
|
932
|
+
return this._simpleUiReady;
|
|
933
|
+
},
|
|
934
|
+
enumerable: false,
|
|
935
|
+
configurable: true
|
|
936
|
+
});
|
|
877
937
|
Object.defineProperty(AcApDocManager.prototype, "dataSourceManager", {
|
|
878
938
|
/**
|
|
879
939
|
* Gets data source manager for opening drawings from local, URL, or cloud.
|
|
@@ -1298,20 +1358,18 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1298
1358
|
*/
|
|
1299
1359
|
AcApDocManager.prototype.loadOverlay = function (fileName_1, content_1) {
|
|
1300
1360
|
return __awaiter(this, arguments, void 0, function (fileName, content, options) {
|
|
1301
|
-
var targetView, dbOptions, db
|
|
1361
|
+
var targetView, dbOptions, db;
|
|
1302
1362
|
var _this = this;
|
|
1303
|
-
var _a;
|
|
1304
1363
|
if (options === void 0) { options = {}; }
|
|
1305
|
-
return __generator(this, function (
|
|
1306
|
-
switch (
|
|
1364
|
+
return __generator(this, function (_a) {
|
|
1365
|
+
switch (_a.label) {
|
|
1307
1366
|
case 0:
|
|
1308
1367
|
targetView = options.targetView, dbOptions = __rest(options, ["targetView"]);
|
|
1309
1368
|
db = new AcDbDatabase();
|
|
1310
|
-
fileExtension = (_a = fileName.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase();
|
|
1311
1369
|
return [4 /*yield*/, acapWithSecondaryDatabase(db, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
1312
1370
|
return __generator(this, function (_a) {
|
|
1313
1371
|
switch (_a.label) {
|
|
1314
|
-
case 0: return [4 /*yield*/, db.read(content, __assign({ readOnly: true }, dbOptions),
|
|
1372
|
+
case 0: return [4 /*yield*/, db.read(content, __assign({ readOnly: true }, dbOptions), acapResolveOpenFileType(fileName))];
|
|
1315
1373
|
case 1:
|
|
1316
1374
|
_a.sent();
|
|
1317
1375
|
return [2 /*return*/];
|
|
@@ -1319,7 +1377,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1319
1377
|
});
|
|
1320
1378
|
}); })];
|
|
1321
1379
|
case 1:
|
|
1322
|
-
|
|
1380
|
+
_a.sent();
|
|
1323
1381
|
return [2 /*return*/, this.registerOverlayDatabase(db, { targetView: targetView })];
|
|
1324
1382
|
}
|
|
1325
1383
|
});
|
|
@@ -1654,7 +1712,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1654
1712
|
* for missed fonts so that the drawing can apply new fonts.
|
|
1655
1713
|
*/
|
|
1656
1714
|
AcApDocManager.prototype.regen = function () {
|
|
1657
|
-
this.curView.
|
|
1715
|
+
this.curView.clearForRegen();
|
|
1658
1716
|
this.context.doc.database.regen();
|
|
1659
1717
|
};
|
|
1660
1718
|
/**
|
|
@@ -1751,6 +1809,49 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1751
1809
|
AcApDocManager.prototype.searchCommandsByPrefix = function (prefix) {
|
|
1752
1810
|
return this._commandManager.searchCommandsByPrefix(prefix, this.curDocument.openMode);
|
|
1753
1811
|
};
|
|
1812
|
+
/**
|
|
1813
|
+
* Returns whether `cmdName` is the trigger of a lazy plugin that has not
|
|
1814
|
+
* registered the command yet.
|
|
1815
|
+
*
|
|
1816
|
+
* Such commands do not exist in the command stack until their plugin loads,
|
|
1817
|
+
* which {@link sendStringToExecute} does on demand. Interactive callers (the
|
|
1818
|
+
* command line) use this to accept them instead of reporting an unknown
|
|
1819
|
+
* command.
|
|
1820
|
+
*
|
|
1821
|
+
* @param cmdName - Command name as typed (case-insensitive).
|
|
1822
|
+
*/
|
|
1823
|
+
AcApDocManager.prototype.isLazyPluginCommand = function (cmdName) {
|
|
1824
|
+
var name = cmdName.trim();
|
|
1825
|
+
if (!name)
|
|
1826
|
+
return false;
|
|
1827
|
+
return (this._pluginManager.isLazyPluginTrigger(name) &&
|
|
1828
|
+
!this._commandManager.lookupGlobalCmd(name));
|
|
1829
|
+
};
|
|
1830
|
+
/**
|
|
1831
|
+
* Lazy plugin trigger commands not loaded yet whose names start with
|
|
1832
|
+
* `prefix`, for command-line auto-completion next to
|
|
1833
|
+
* {@link searchCommandsByPrefix}.
|
|
1834
|
+
*
|
|
1835
|
+
* Their required open mode is unknown until the plugin loads, so they are
|
|
1836
|
+
* not filtered by the document's mode; running one in a mode it does not
|
|
1837
|
+
* support reports that when the command starts.
|
|
1838
|
+
*
|
|
1839
|
+
* @param prefix - Prefix to match (case-insensitive).
|
|
1840
|
+
* @returns Upper-case trigger names, sorted.
|
|
1841
|
+
*/
|
|
1842
|
+
AcApDocManager.prototype.searchLazyCommandsByPrefix = function (prefix) {
|
|
1843
|
+
var _this = this;
|
|
1844
|
+
var normalized = prefix.trim().toUpperCase();
|
|
1845
|
+
if (!normalized)
|
|
1846
|
+
return [];
|
|
1847
|
+
return this._pluginManager
|
|
1848
|
+
.getLazyPluginTriggers()
|
|
1849
|
+
.filter(function (trigger) {
|
|
1850
|
+
return trigger.startsWith(normalized) &&
|
|
1851
|
+
!_this._commandManager.lookupGlobalCmd(trigger);
|
|
1852
|
+
})
|
|
1853
|
+
.sort();
|
|
1854
|
+
};
|
|
1754
1855
|
/**
|
|
1755
1856
|
* Registers all default commands available in the CAD viewer.
|
|
1756
1857
|
*
|
|
@@ -1801,6 +1902,11 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1801
1902
|
addSystemCommand('entout', 'entout', new AcApEntityPreviewCmd());
|
|
1802
1903
|
addSystemCommand('ellipse', 'ellipse', new AcApEllipseCmd());
|
|
1803
1904
|
addSystemCommand('erase', 'erase', new AcApEraseCmd());
|
|
1905
|
+
addSystemCommand('group', 'group', new AcApGroupCmd());
|
|
1906
|
+
addSystemCommand('-bsearch', '-bsearch', new AcApDashBSearchCmd());
|
|
1907
|
+
addSystemCommand('-group', '-group', new AcApDashGroupCmd());
|
|
1908
|
+
addSystemCommand('groupedit', 'groupedit', new AcApGroupEditCmd());
|
|
1909
|
+
addSystemCommand('ungroup', 'ungroup', new AcApUngroupCmd());
|
|
1804
1910
|
addSystemCommand('hideobjects', 'hideobjects', new AcApHideObjectsCmd());
|
|
1805
1911
|
addSystemCommand('dimlinear', 'dimlinear', new AcApDimLinearCmd());
|
|
1806
1912
|
addSystemCommand('dimaligned', 'dimaligned', new AcApDimAlignedCmd());
|
|
@@ -1833,12 +1939,23 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1833
1939
|
addSystemCommand('layerp', 'layerp', new AcApLayerPCmd());
|
|
1834
1940
|
addSystemCommand('layerclose', 'layerclose', new AcApLayerCloseCmd());
|
|
1835
1941
|
addSystemCommand('line', 'line', new AcApLineCmd());
|
|
1942
|
+
addSystemCommand('leader', 'leader', new AcApLeaderCmd());
|
|
1943
|
+
addSystemCommand('mleader', 'mleader', new AcApMLeaderCmd());
|
|
1944
|
+
addSystemCommand('mleaderedit', 'mleaderedit', new AcApMLeaderEditCmd('add'));
|
|
1945
|
+
addSystemCommand('mleadereditremove', 'mleadereditremove', new AcApMLeaderEditCmd('remove'));
|
|
1836
1946
|
addSystemCommand('mline', 'mline', new AcApMLineCmd());
|
|
1837
1947
|
addSystemCommand('mtext', 'mtext', new AcApMTextCmd());
|
|
1838
1948
|
addSystemCommand('copy', 'copy', new AcApCopyCmd());
|
|
1949
|
+
addSystemCommand('copyclip', 'copyclip', new AcApCopyClipCmd());
|
|
1950
|
+
addSystemCommand('copybase', 'copybase', new AcApCopyBaseCmd());
|
|
1951
|
+
addSystemCommand('cutclip', 'cutclip', new AcApCutClipCmd());
|
|
1952
|
+
addSystemCommand('pasteclip', 'pasteclip', new AcApPasteClipCmd());
|
|
1953
|
+
addSystemCommand('pasteorig', 'pasteorig', new AcApPasteOrigCmd());
|
|
1954
|
+
addSystemCommand('pasteblock', 'pasteblock', new AcApPasteBlockCmd());
|
|
1839
1955
|
addSystemCommand('move', 'move', new AcApMoveCmd());
|
|
1840
1956
|
addSystemCommand('offset', 'offset', new AcApOffsetCmd());
|
|
1841
1957
|
addSystemCommand('rotate', 'rotate', new AcApRotateCmd());
|
|
1958
|
+
addSystemCommand('scale', 'scale', new AcApScaleCmd());
|
|
1842
1959
|
addSystemCommand('log', 'log', new AcApLogCmd());
|
|
1843
1960
|
addSystemCommand('objectscale', 'objectscale', new AcApObjectScaleCmd());
|
|
1844
1961
|
addSystemCommand('open', 'open', new AcApOpenCmd());
|
|
@@ -1865,6 +1982,8 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1865
1982
|
addSystemCommand('undo', 'undo', new AcApUndoCmd());
|
|
1866
1983
|
addSystemCommand('redo', 'redo', new AcApRedoCmd());
|
|
1867
1984
|
addSystemCommand('zoom', 'zoom', new AcApZoomCmd());
|
|
1985
|
+
addSystemCommand('viewrestore', 'viewrestore', new AcApViewRestoreCmd());
|
|
1986
|
+
addSystemCommand('ucs', 'ucs', new AcApUcsCmd());
|
|
1868
1987
|
// Register system variables as commands
|
|
1869
1988
|
var sysVars = AcDbSysVarManager.instance().getAllDescriptors();
|
|
1870
1989
|
sysVars.forEach(function (sysVar) {
|
|
@@ -2165,8 +2284,15 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2165
2284
|
AcApDocManager.prototype.setActiveLayout = function (view, database) {
|
|
2166
2285
|
var currentView = view !== null && view !== void 0 ? view : this.curView;
|
|
2167
2286
|
var db = database !== null && database !== void 0 ? database : this.curDocument.database;
|
|
2168
|
-
|
|
2169
|
-
|
|
2287
|
+
// Heal Model / paper layout → BTR links before activating. Stale or empty
|
|
2288
|
+
// layout BTR ids leave `activeLayoutView` undefined (blank canvas + zoomTo
|
|
2289
|
+
// crash) and hide paper tabs (R14 DWGs with empty BLOCK_RECORD.layout).
|
|
2290
|
+
var modelSpaceId = acapHealModelLayoutLink(db);
|
|
2291
|
+
var activeSpaceId = db.currentSpaceId || modelSpaceId;
|
|
2292
|
+
currentView.ensureLayoutView(activeSpaceId);
|
|
2293
|
+
currentView.ensureLayoutView(modelSpaceId);
|
|
2294
|
+
currentView.activeLayoutBtrId = activeSpaceId;
|
|
2295
|
+
currentView.modelSpaceBtrId = modelSpaceId;
|
|
2170
2296
|
};
|
|
2171
2297
|
/**
|
|
2172
2298
|
* Performs cleanup operations before opening a new document.
|
|
@@ -2194,6 +2320,10 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2194
2320
|
this.openProgressView.clear();
|
|
2195
2321
|
}
|
|
2196
2322
|
this.openProgressView.bindDrawDatabase(this.context.doc.database);
|
|
2323
|
+
// Activate layout views before db.read streams entities. Otherwise
|
|
2324
|
+
// mid-open UCS / worldToScreen run with no camera and WCS +Y appears
|
|
2325
|
+
// to point down on screen until onAfterOpenDocument.
|
|
2326
|
+
this.setActiveLayout(this.openProgressView, this.context.doc.database);
|
|
2197
2327
|
// `progressiveRendering` gates both stages: time-sliced mid-open paints
|
|
2198
2328
|
// in batchConvert, and whether the open overlay waits for deferred text.
|
|
2199
2329
|
// Camera auto-fit is started separately in onAfter when the open view
|
|
@@ -2235,6 +2365,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2235
2365
|
* @protected
|
|
2236
2366
|
*/
|
|
2237
2367
|
AcApDocManager.prototype.onAfterOpenDocument = function (isSuccess, options) {
|
|
2368
|
+
var _this = this;
|
|
2238
2369
|
var _a, _b;
|
|
2239
2370
|
var recoveredPartialContent = !isSuccess && this.hasRecoverablePartialContent();
|
|
2240
2371
|
if (isSuccess || recoveredPartialContent) {
|
|
@@ -2242,14 +2373,28 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2242
2373
|
var view_1 = session.context.view;
|
|
2243
2374
|
session.doc.destroy();
|
|
2244
2375
|
var doc = session.doc;
|
|
2245
|
-
var
|
|
2376
|
+
var db_1 = doc.database;
|
|
2377
|
+
// Heal layout→BTR links before `$TILEMODE` sync / tab snapshot so paper
|
|
2378
|
+
// layouts with an empty blockTableRecordId (R14 LibreDWG) are visible and
|
|
2379
|
+
// selectable. setActiveLayout heals again (idempotent) before activate.
|
|
2380
|
+
acapHealModelLayoutLink(db_1);
|
|
2246
2381
|
// Header parsing stores `$TILEMODE` but leaves currentSpaceId on model.
|
|
2247
2382
|
// Sync once at open (not in setActiveLayout) so later Model-tab visits
|
|
2248
2383
|
// survive session reactivation. Do this before documentActivated so
|
|
2249
2384
|
// layout tabs snapshot the correct active layout.
|
|
2250
|
-
syncCurrentSpaceFromTileMode(
|
|
2251
|
-
this.setActiveLayout(view_1,
|
|
2252
|
-
|
|
2385
|
+
syncCurrentSpaceFromTileMode(db_1);
|
|
2386
|
+
this.setActiveLayout(view_1, db_1);
|
|
2387
|
+
// Open-into-paper does not fire `layoutSwitched`, and model entities may
|
|
2388
|
+
// land under a remapped *Model_Space id. Load both spaces from the BTR
|
|
2389
|
+
// here — not inside setActiveLayout, which also runs during
|
|
2390
|
+
// createInstance before the DocManager singleton exists.
|
|
2391
|
+
var modelSpaceIdForLoad = db_1.tables.blockTable.modelSpace.objectId;
|
|
2392
|
+
var activeSpaceIdForLoad = db_1.currentSpaceId || modelSpaceIdForLoad;
|
|
2393
|
+
view_1.ensureLayoutEntitiesLoaded(activeSpaceIdForLoad);
|
|
2394
|
+
if (modelSpaceIdForLoad !== activeSpaceIdForLoad) {
|
|
2395
|
+
view_1.ensureLayoutEntitiesLoaded(modelSpaceIdForLoad);
|
|
2396
|
+
}
|
|
2397
|
+
view_1.syncDisplaySysVars(db_1);
|
|
2253
2398
|
this.events.documentActivated.dispatch({
|
|
2254
2399
|
doc: doc,
|
|
2255
2400
|
mode: this.getDocumentEventMode(options)
|
|
@@ -2268,9 +2413,9 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2268
2413
|
// The pre-fix code used `db.extmin/db.extmax` (always model-space
|
|
2269
2414
|
// EXTMIN/EXTMAX sysvars) even when opening into paper. See
|
|
2270
2415
|
// `next_14_viewports_full.md` Bug C-open.
|
|
2271
|
-
var modelSpaceId =
|
|
2272
|
-
var isPaperSpaceActive =
|
|
2273
|
-
var activeLayout = acdbHostApplicationServices().layoutManager.getActiveLayout(
|
|
2416
|
+
var modelSpaceId = db_1.tables.blockTable.modelSpace.objectId;
|
|
2417
|
+
var isPaperSpaceActive = db_1.currentSpaceId !== modelSpaceId;
|
|
2418
|
+
var activeLayout = acdbHostApplicationServices().layoutManager.getActiveLayout(db_1);
|
|
2274
2419
|
var layoutLimits = activeLayout === null || activeLayout === void 0 ? void 0 : activeLayout.limits;
|
|
2275
2420
|
var openViewMode = this.resolveOpenViewMode(options);
|
|
2276
2421
|
view_1.setOpenViewMode(openViewMode);
|
|
@@ -2283,12 +2428,11 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2283
2428
|
view_1.zoomToFitDrawing();
|
|
2284
2429
|
view_1.requestOpenLineworkFrame();
|
|
2285
2430
|
};
|
|
2286
|
-
if (isPaperSpaceActive &&
|
|
2287
|
-
openViewMode === AcApOpenViewMode.Saved) {
|
|
2431
|
+
if (isPaperSpaceActive && openViewMode === AcApOpenViewMode.Saved) {
|
|
2288
2432
|
var layoutExtents = activeLayout === null || activeLayout === void 0 ? void 0 : activeLayout.extents;
|
|
2289
2433
|
var paperFrame = acapResolveLayoutFrameBox({
|
|
2290
2434
|
limits: layoutLimits,
|
|
2291
|
-
viewportsBox: acapCollectPaperViewportsBox(
|
|
2435
|
+
viewportsBox: acapCollectPaperViewportsBox(db_1, db_1.currentSpaceId),
|
|
2292
2436
|
layoutExtents: layoutExtents && !layoutExtents.isEmpty()
|
|
2293
2437
|
? {
|
|
2294
2438
|
min: { x: layoutExtents.min.x, y: layoutExtents.min.y },
|
|
@@ -2308,7 +2452,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2308
2452
|
openViewMode === AcApOpenViewMode.Saved) {
|
|
2309
2453
|
var canvasAspect = view_1.width / Math.max(view_1.height, 1);
|
|
2310
2454
|
// Restore *ACTIVE without comparing to header EXTMIN/EXTMAX.
|
|
2311
|
-
var activeModelViewBox =
|
|
2455
|
+
var activeModelViewBox = db_1.tables.viewportTable.getActiveVportBox(canvasAspect);
|
|
2312
2456
|
if (activeModelViewBox) {
|
|
2313
2457
|
view_1.zoomTo(activeModelViewBox);
|
|
2314
2458
|
framedSynchronously = true;
|
|
@@ -2327,12 +2471,65 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2327
2471
|
// state on this layout. Cast is intentional: `setActiveLayout`
|
|
2328
2472
|
// above relies on `curView` being an `AcTrView2d`, and the
|
|
2329
2473
|
// markLayoutAsInitialized method is part of that contract.
|
|
2330
|
-
view_1.markLayoutAsInitialized(
|
|
2474
|
+
view_1.markLayoutAsInitialized(db_1.currentSpaceId);
|
|
2331
2475
|
// `zoomToFitDrawing` frames asynchronously; capture original view in
|
|
2332
2476
|
// its completion callback instead of here (pre-fit camera is wrong).
|
|
2333
2477
|
if (framedSynchronously) {
|
|
2334
|
-
AcApZoomCmd.rememberOriginalView(view_1,
|
|
2478
|
+
AcApZoomCmd.rememberOriginalView(view_1, db_1.currentSpaceId);
|
|
2335
2479
|
}
|
|
2480
|
+
// R14 / remapped-handle opens can leave the active sheet with `isLoaded`
|
|
2481
|
+
// set but zero scene entities. After the open drain, force a BTR reload
|
|
2482
|
+
// and re-fit when the canvas would otherwise stay blank.
|
|
2483
|
+
void view_1.waitUntilIdle(120000).then(function (idle) { return __awaiter(_this, void 0, void 0, function () {
|
|
2484
|
+
var activeId, modelId, activeLayout, dbBlock, dbEntityCount, _a, _b, _1, sceneEmpty, reloaded, box;
|
|
2485
|
+
var e_8, _c;
|
|
2486
|
+
var _d;
|
|
2487
|
+
return __generator(this, function (_e) {
|
|
2488
|
+
switch (_e.label) {
|
|
2489
|
+
case 0:
|
|
2490
|
+
if (!idle)
|
|
2491
|
+
return [2 /*return*/];
|
|
2492
|
+
activeId = db_1.currentSpaceId;
|
|
2493
|
+
modelId = db_1.tables.blockTable.modelSpace.objectId;
|
|
2494
|
+
activeLayout = (_d = view_1.cadScene) === null || _d === void 0 ? void 0 : _d.layouts.get(activeId);
|
|
2495
|
+
dbBlock = db_1.tables.blockTable.getIdAt(activeId);
|
|
2496
|
+
dbEntityCount = 0;
|
|
2497
|
+
if (dbBlock === null || dbBlock === void 0 ? void 0 : dbBlock.newIterator) {
|
|
2498
|
+
try {
|
|
2499
|
+
for (_a = __values(dbBlock.newIterator()), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
2500
|
+
_1 = _b.value;
|
|
2501
|
+
dbEntityCount++;
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
2505
|
+
finally {
|
|
2506
|
+
try {
|
|
2507
|
+
if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
|
|
2508
|
+
}
|
|
2509
|
+
finally { if (e_8) throw e_8.error; }
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
sceneEmpty = !activeLayout || activeLayout.entityCount === 0;
|
|
2513
|
+
if (!(dbEntityCount > 0 && sceneEmpty))
|
|
2514
|
+
return [2 /*return*/];
|
|
2515
|
+
view_1.ensureLayoutEntitiesLoaded(activeId, { forceIfEmpty: true });
|
|
2516
|
+
if (modelId !== activeId) {
|
|
2517
|
+
view_1.ensureLayoutEntitiesLoaded(modelId, { forceIfEmpty: true });
|
|
2518
|
+
}
|
|
2519
|
+
return [4 /*yield*/, view_1.waitUntilIdle(60000)];
|
|
2520
|
+
case 1:
|
|
2521
|
+
reloaded = _e.sent();
|
|
2522
|
+
if (!reloaded)
|
|
2523
|
+
return [2 /*return*/];
|
|
2524
|
+
box = view_1.getDrawingExtents();
|
|
2525
|
+
if (box) {
|
|
2526
|
+
view_1.zoomTo(box);
|
|
2527
|
+
AcApZoomCmd.rememberOriginalView(view_1, activeId);
|
|
2528
|
+
}
|
|
2529
|
+
return [2 /*return*/];
|
|
2530
|
+
}
|
|
2531
|
+
});
|
|
2532
|
+
}); });
|
|
2336
2533
|
// Headless multi-layout export: convert paper tabs the open stream did
|
|
2337
2534
|
// not already claim. `ensureEntitiesConvertedForExport` waits for the
|
|
2338
2535
|
// open drain first, so this must not be a second full pass over
|
|
@@ -2576,6 +2773,32 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2576
2773
|
mtextRenderer.initialize((_a = webworkerFileUrls === null || webworkerFileUrls === void 0 ? void 0 : webworkerFileUrls.mtextRender) !== null && _a !== void 0 ? _a : DEFAULT_WEBWORKER_FILE_URLS.mtextRender);
|
|
2577
2774
|
void mtextRenderer.setDefaultFonts(__spreadArray([], __read(FontManager.instance.defaultFonts), false));
|
|
2578
2775
|
};
|
|
2776
|
+
/**
|
|
2777
|
+
* Dynamically loads built-in simple UI chrome (`toolbar` + dock palettes).
|
|
2778
|
+
*/
|
|
2779
|
+
AcApDocManager.prototype.loadSimpleUi = function (options) {
|
|
2780
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2781
|
+
var AcApSimpleUiChrome, chrome, error_3;
|
|
2782
|
+
return __generator(this, function (_a) {
|
|
2783
|
+
switch (_a.label) {
|
|
2784
|
+
case 0:
|
|
2785
|
+
_a.trys.push([0, 2, , 3]);
|
|
2786
|
+
return [4 /*yield*/, import('../ui/AcApSimpleUiChrome')];
|
|
2787
|
+
case 1:
|
|
2788
|
+
AcApSimpleUiChrome = (_a.sent()).AcApSimpleUiChrome;
|
|
2789
|
+
chrome = new AcApSimpleUiChrome(options);
|
|
2790
|
+
chrome.start(this.commandManager);
|
|
2791
|
+
this._simpleUiChrome = chrome;
|
|
2792
|
+
return [2 /*return*/, chrome];
|
|
2793
|
+
case 2:
|
|
2794
|
+
error_3 = _a.sent();
|
|
2795
|
+
log.error('[AcApDocManager] Error loading simple UI chrome:', error_3);
|
|
2796
|
+
return [2 /*return*/, undefined];
|
|
2797
|
+
case 3: return [2 /*return*/];
|
|
2798
|
+
}
|
|
2799
|
+
});
|
|
2800
|
+
});
|
|
2801
|
+
};
|
|
2579
2802
|
/**
|
|
2580
2803
|
* Loads plugins automatically based on the provided configuration.
|
|
2581
2804
|
*
|
|
@@ -2587,7 +2810,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2587
2810
|
*/
|
|
2588
2811
|
AcApDocManager.prototype.loadPlugins = function (pluginsConfig) {
|
|
2589
2812
|
return __awaiter(this, void 0, void 0, function () {
|
|
2590
|
-
var result,
|
|
2813
|
+
var result, error_4, result, error_5;
|
|
2591
2814
|
var _a;
|
|
2592
2815
|
return __generator(this, function (_b) {
|
|
2593
2816
|
switch (_b.label) {
|
|
@@ -2610,8 +2833,8 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2610
2833
|
}
|
|
2611
2834
|
return [3 /*break*/, 4];
|
|
2612
2835
|
case 3:
|
|
2613
|
-
|
|
2614
|
-
log.error('[AcApDocManager] Error loading plugins from config:',
|
|
2836
|
+
error_4 = _b.sent();
|
|
2837
|
+
log.error('[AcApDocManager] Error loading plugins from config:', error_4);
|
|
2615
2838
|
return [3 /*break*/, 4];
|
|
2616
2839
|
case 4:
|
|
2617
2840
|
if (!pluginsConfig.fromFolder) return [3 /*break*/, 8];
|
|
@@ -2632,8 +2855,8 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2632
2855
|
}
|
|
2633
2856
|
return [3 /*break*/, 8];
|
|
2634
2857
|
case 7:
|
|
2635
|
-
|
|
2636
|
-
log.error('[AcApDocManager] Error loading plugins from folder:',
|
|
2858
|
+
error_5 = _b.sent();
|
|
2859
|
+
log.error('[AcApDocManager] Error loading plugins from folder:', error_5);
|
|
2637
2860
|
return [3 /*break*/, 8];
|
|
2638
2861
|
case 8: return [2 /*return*/];
|
|
2639
2862
|
}
|
|
@@ -2676,6 +2899,11 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2676
2899
|
view.ltscale = doc.database.ltscale;
|
|
2677
2900
|
view.celtscale = doc.database.celtscale;
|
|
2678
2901
|
view.renderer.showLineWeight = doc.database.lwdisplay;
|
|
2902
|
+
// Open-with-LWDISPLAY-on converts fat geometry up front; later toggles
|
|
2903
|
+
// can flip linewidth without another upgrade regen.
|
|
2904
|
+
if (doc.database.lwdisplay) {
|
|
2905
|
+
view.markLineWeightGeometryReady();
|
|
2906
|
+
}
|
|
2679
2907
|
});
|
|
2680
2908
|
};
|
|
2681
2909
|
/**
|
|
@@ -2783,6 +3011,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2783
3011
|
this._pluginManager.setContext(context);
|
|
2784
3012
|
this.bindOpenProgress(doc);
|
|
2785
3013
|
this.curView.bindDrawDatabase(doc.database);
|
|
3014
|
+
this.setActiveLayout(this.curView, doc.database);
|
|
2786
3015
|
};
|
|
2787
3016
|
/**
|
|
2788
3017
|
* Removes overlay layouts belonging to a session being closed.
|
|
@@ -2790,7 +3019,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2790
3019
|
* @param session - Session whose overlays should be disposed.
|
|
2791
3020
|
*/
|
|
2792
3021
|
AcApDocManager.prototype.clearSessionOverlays = function (session) {
|
|
2793
|
-
var
|
|
3022
|
+
var e_9, _a;
|
|
2794
3023
|
var scene = this.sessionCadScene(session);
|
|
2795
3024
|
try {
|
|
2796
3025
|
for (var _b = __values(session.overlays.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
@@ -2799,12 +3028,12 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2799
3028
|
overlay.layout.clear();
|
|
2800
3029
|
}
|
|
2801
3030
|
}
|
|
2802
|
-
catch (
|
|
3031
|
+
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
|
2803
3032
|
finally {
|
|
2804
3033
|
try {
|
|
2805
3034
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2806
3035
|
}
|
|
2807
|
-
finally { if (
|
|
3036
|
+
finally { if (e_9) throw e_9.error; }
|
|
2808
3037
|
}
|
|
2809
3038
|
session.overlays.clear();
|
|
2810
3039
|
};
|