@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
package/lib/view/AcTrLayout.js
CHANGED
|
@@ -154,6 +154,19 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
154
154
|
enumerable: false,
|
|
155
155
|
configurable: true
|
|
156
156
|
});
|
|
157
|
+
Object.defineProperty(AcTrLayout.prototype, "insertLayerByObjectId", {
|
|
158
|
+
/**
|
|
159
|
+
* INSERT object id → INSERT's own layer name.
|
|
160
|
+
*
|
|
161
|
+
* Used by HTML export to reparent cross-layer INSERT fragments onto a frozen
|
|
162
|
+
* INSERT layer so the offline layer panel can show the whole reference.
|
|
163
|
+
*/
|
|
164
|
+
get: function () {
|
|
165
|
+
return this._insertLayerByObjectId;
|
|
166
|
+
},
|
|
167
|
+
enumerable: false,
|
|
168
|
+
configurable: true
|
|
169
|
+
});
|
|
157
170
|
Object.defineProperty(AcTrLayout.prototype, "box", {
|
|
158
171
|
/**
|
|
159
172
|
* Gets the bounding box that contains all entities in this layout.
|
|
@@ -390,6 +403,12 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
390
403
|
AcTrLayout.prototype.repaintForegroundMaterials = function (color) {
|
|
391
404
|
this._layers.forEach(function (layer) { return layer.repaintForegroundMaterials(color); });
|
|
392
405
|
};
|
|
406
|
+
/**
|
|
407
|
+
* Applies LWDISPLAY to owned batch material clones in this layout.
|
|
408
|
+
*/
|
|
409
|
+
AcTrLayout.prototype.applyShowLineWeight = function (show) {
|
|
410
|
+
this._layers.forEach(function (layer) { return layer.applyShowLineWeight(show); });
|
|
411
|
+
};
|
|
393
412
|
/**
|
|
394
413
|
* Updates wipeout / background-fill materials after a canvas theme flip.
|
|
395
414
|
*/
|
|
@@ -518,6 +537,63 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
518
537
|
}
|
|
519
538
|
return result;
|
|
520
539
|
};
|
|
540
|
+
/**
|
|
541
|
+
* Removes many entities from this layout, compacting each layer's batches
|
|
542
|
+
* once instead of once per entity.
|
|
543
|
+
*
|
|
544
|
+
* @param objectIds - Object ids to remove.
|
|
545
|
+
* @returns Ids removed from at least one layer of this layout.
|
|
546
|
+
*/
|
|
547
|
+
AcTrLayout.prototype.removeEntities = function (objectIds) {
|
|
548
|
+
var e_2, _a, e_3, _b, e_4, _c;
|
|
549
|
+
var removed = new Set();
|
|
550
|
+
if (objectIds.length === 0)
|
|
551
|
+
return removed;
|
|
552
|
+
try {
|
|
553
|
+
for (var _d = __values(this._layers), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
554
|
+
var _f = __read(_e.value, 2), _2 = _f[0], layer = _f[1];
|
|
555
|
+
try {
|
|
556
|
+
for (var _g = (e_3 = void 0, __values(layer.removeEntities(objectIds))), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
557
|
+
var objectId = _h.value;
|
|
558
|
+
removed.add(objectId);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
562
|
+
finally {
|
|
563
|
+
try {
|
|
564
|
+
if (_h && !_h.done && (_b = _g.return)) _b.call(_g);
|
|
565
|
+
}
|
|
566
|
+
finally { if (e_3) throw e_3.error; }
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
571
|
+
finally {
|
|
572
|
+
try {
|
|
573
|
+
if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
|
|
574
|
+
}
|
|
575
|
+
finally { if (e_2) throw e_2.error; }
|
|
576
|
+
}
|
|
577
|
+
if (removed.size > 0) {
|
|
578
|
+
try {
|
|
579
|
+
for (var removed_1 = __values(removed), removed_1_1 = removed_1.next(); !removed_1_1.done; removed_1_1 = removed_1.next()) {
|
|
580
|
+
var objectId = removed_1_1.value;
|
|
581
|
+
this._spatialIndex.removeById(objectId);
|
|
582
|
+
this._extentExcludedObjectIds.delete(objectId);
|
|
583
|
+
this._insertLayerByObjectId.delete(objectId);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
587
|
+
finally {
|
|
588
|
+
try {
|
|
589
|
+
if (removed_1_1 && !removed_1_1.done && (_c = removed_1.return)) _c.call(removed_1);
|
|
590
|
+
}
|
|
591
|
+
finally { if (e_4) throw e_4.error; }
|
|
592
|
+
}
|
|
593
|
+
this.invalidateBox();
|
|
594
|
+
}
|
|
595
|
+
return removed;
|
|
596
|
+
};
|
|
521
597
|
/**
|
|
522
598
|
* Update the specified entity in this layout.
|
|
523
599
|
*
|
|
@@ -525,10 +601,10 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
525
601
|
* @returns Return true if update the specified entity successfully. Otherwise, return false.
|
|
526
602
|
*/
|
|
527
603
|
AcTrLayout.prototype.updateEntity = function (entity) {
|
|
528
|
-
var
|
|
604
|
+
var e_5, _a;
|
|
529
605
|
try {
|
|
530
606
|
for (var _b = __values(this._layers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
531
|
-
var _d = __read(_c.value, 2),
|
|
607
|
+
var _d = __read(_c.value, 2), _3 = _d[0], layer = _d[1];
|
|
532
608
|
if (layer.updateEntity(entity)) {
|
|
533
609
|
var insertLayerName = entity.userData.insertLayerName;
|
|
534
610
|
if (insertLayerName) {
|
|
@@ -541,12 +617,12 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
541
617
|
}
|
|
542
618
|
}
|
|
543
619
|
}
|
|
544
|
-
catch (
|
|
620
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
545
621
|
finally {
|
|
546
622
|
try {
|
|
547
623
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
548
624
|
}
|
|
549
|
-
finally { if (
|
|
625
|
+
finally { if (e_5) throw e_5.error; }
|
|
550
626
|
}
|
|
551
627
|
return false;
|
|
552
628
|
};
|
|
@@ -554,21 +630,21 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
554
630
|
* Returns true when any layer in this layout contains the entity.
|
|
555
631
|
*/
|
|
556
632
|
AcTrLayout.prototype.hasEntity = function (objectId) {
|
|
557
|
-
var
|
|
633
|
+
var e_6, _a;
|
|
558
634
|
try {
|
|
559
635
|
for (var _b = __values(this._layers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
560
|
-
var _d = __read(_c.value, 2),
|
|
636
|
+
var _d = __read(_c.value, 2), _4 = _d[0], layer = _d[1];
|
|
561
637
|
if (layer.hasEntity(objectId)) {
|
|
562
638
|
return true;
|
|
563
639
|
}
|
|
564
640
|
}
|
|
565
641
|
}
|
|
566
|
-
catch (
|
|
642
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
567
643
|
finally {
|
|
568
644
|
try {
|
|
569
645
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
570
646
|
}
|
|
571
|
-
finally { if (
|
|
647
|
+
finally { if (e_6) throw e_6.error; }
|
|
572
648
|
}
|
|
573
649
|
return false;
|
|
574
650
|
};
|
|
@@ -576,22 +652,22 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
576
652
|
* Updates entity visibility without rebuilding batched geometry.
|
|
577
653
|
*/
|
|
578
654
|
AcTrLayout.prototype.setEntityVisible = function (objectId, visible) {
|
|
579
|
-
var
|
|
655
|
+
var e_7, _a;
|
|
580
656
|
var updated = false;
|
|
581
657
|
try {
|
|
582
658
|
for (var _b = __values(this._layers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
583
|
-
var _d = __read(_c.value, 2),
|
|
659
|
+
var _d = __read(_c.value, 2), _5 = _d[0], layer = _d[1];
|
|
584
660
|
if (layer.setEntityVisible(objectId, visible)) {
|
|
585
661
|
updated = true;
|
|
586
662
|
}
|
|
587
663
|
}
|
|
588
664
|
}
|
|
589
|
-
catch (
|
|
665
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
590
666
|
finally {
|
|
591
667
|
try {
|
|
592
668
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
593
669
|
}
|
|
594
|
-
finally { if (
|
|
670
|
+
finally { if (e_7) throw e_7.error; }
|
|
595
671
|
}
|
|
596
672
|
if (updated) {
|
|
597
673
|
this.invalidateBox();
|
|
@@ -602,22 +678,22 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
602
678
|
* Returns the current scene visibility for one entity.
|
|
603
679
|
*/
|
|
604
680
|
AcTrLayout.prototype.getEntityVisible = function (objectId) {
|
|
605
|
-
var
|
|
681
|
+
var e_8, _a;
|
|
606
682
|
try {
|
|
607
683
|
for (var _b = __values(this._layers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
608
|
-
var _d = __read(_c.value, 2),
|
|
684
|
+
var _d = __read(_c.value, 2), _6 = _d[0], layer = _d[1];
|
|
609
685
|
var visible = layer.getEntityVisible(objectId);
|
|
610
686
|
if (visible !== undefined) {
|
|
611
687
|
return visible;
|
|
612
688
|
}
|
|
613
689
|
}
|
|
614
690
|
}
|
|
615
|
-
catch (
|
|
691
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
616
692
|
finally {
|
|
617
693
|
try {
|
|
618
694
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
619
695
|
}
|
|
620
|
-
finally { if (
|
|
696
|
+
finally { if (e_8) throw e_8.error; }
|
|
621
697
|
}
|
|
622
698
|
return undefined;
|
|
623
699
|
};
|
|
@@ -631,7 +707,7 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
631
707
|
* true (default), every id must be present; otherwise at least one id is enough
|
|
632
708
|
*/
|
|
633
709
|
AcTrLayout.prototype.canCreateEntityPreview = function (entityIds, options) {
|
|
634
|
-
var
|
|
710
|
+
var e_9, _a;
|
|
635
711
|
var _b;
|
|
636
712
|
if (entityIds.length === 0) {
|
|
637
713
|
return false;
|
|
@@ -651,12 +727,12 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
651
727
|
}
|
|
652
728
|
}
|
|
653
729
|
}
|
|
654
|
-
catch (
|
|
730
|
+
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
|
655
731
|
finally {
|
|
656
732
|
try {
|
|
657
733
|
if (entityIds_1_1 && !entityIds_1_1.done && (_a = entityIds_1.return)) _a.call(entityIds_1);
|
|
658
734
|
}
|
|
659
|
-
finally { if (
|
|
735
|
+
finally { if (e_9) throw e_9.error; }
|
|
660
736
|
}
|
|
661
737
|
return true;
|
|
662
738
|
}
|
|
@@ -668,7 +744,7 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
668
744
|
* @param entityIds - Database object ids to check
|
|
669
745
|
*/
|
|
670
746
|
AcTrLayout.prototype.findPreviewableEntityIds = function (entityIds) {
|
|
671
|
-
var
|
|
747
|
+
var e_10, _a;
|
|
672
748
|
var previewable = [];
|
|
673
749
|
try {
|
|
674
750
|
for (var entityIds_2 = __values(entityIds), entityIds_2_1 = entityIds_2.next(); !entityIds_2_1.done; entityIds_2_1 = entityIds_2.next()) {
|
|
@@ -683,12 +759,12 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
683
759
|
}
|
|
684
760
|
}
|
|
685
761
|
}
|
|
686
|
-
catch (
|
|
762
|
+
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
687
763
|
finally {
|
|
688
764
|
try {
|
|
689
765
|
if (entityIds_2_1 && !entityIds_2_1.done && (_a = entityIds_2.return)) _a.call(entityIds_2);
|
|
690
766
|
}
|
|
691
|
-
finally { if (
|
|
767
|
+
finally { if (e_10) throw e_10.error; }
|
|
692
768
|
}
|
|
693
769
|
return previewable;
|
|
694
770
|
};
|
|
@@ -702,7 +778,7 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
702
778
|
* @returns Axis-aligned bounds box, empty when nothing matched
|
|
703
779
|
*/
|
|
704
780
|
AcTrLayout.prototype.computeEntityPreviewBoundsBox = function (entityIds, target) {
|
|
705
|
-
var
|
|
781
|
+
var e_11, _a;
|
|
706
782
|
if (target === void 0) { target = new THREE.Box3(); }
|
|
707
783
|
target.makeEmpty();
|
|
708
784
|
if (entityIds.length === 0) {
|
|
@@ -719,12 +795,12 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
719
795
|
}
|
|
720
796
|
}
|
|
721
797
|
}
|
|
722
|
-
catch (
|
|
798
|
+
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
|
723
799
|
finally {
|
|
724
800
|
try {
|
|
725
801
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
726
802
|
}
|
|
727
|
-
finally { if (
|
|
803
|
+
finally { if (e_11) throw e_11.error; }
|
|
728
804
|
}
|
|
729
805
|
return target;
|
|
730
806
|
};
|
|
@@ -749,7 +825,7 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
749
825
|
* @returns Preview root group, or `null` when no preview geometry was extracted
|
|
750
826
|
*/
|
|
751
827
|
AcTrLayout.prototype.createEntityPreviewRoot = function (entityIds, options) {
|
|
752
|
-
var
|
|
828
|
+
var e_12, _a, e_13, _b, e_14, _c, e_15, _d;
|
|
753
829
|
var _e, _f;
|
|
754
830
|
var missingEntity = (_e = options === null || options === void 0 ? void 0 : options.missingEntity) !== null && _e !== void 0 ? _e : 'fail';
|
|
755
831
|
var requireAllEntities = (_f = options === null || options === void 0 ? void 0 : options.requireAllEntities) !== null && _f !== void 0 ? _f : false;
|
|
@@ -762,12 +838,12 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
762
838
|
}
|
|
763
839
|
}
|
|
764
840
|
}
|
|
765
|
-
catch (
|
|
841
|
+
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
|
766
842
|
finally {
|
|
767
843
|
try {
|
|
768
844
|
if (entityIds_3_1 && !entityIds_3_1.done && (_a = entityIds_3.return)) _a.call(entityIds_3);
|
|
769
845
|
}
|
|
770
|
-
finally { if (
|
|
846
|
+
finally { if (e_12) throw e_12.error; }
|
|
771
847
|
}
|
|
772
848
|
}
|
|
773
849
|
var idsByLayer = new Map();
|
|
@@ -782,7 +858,7 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
782
858
|
continue;
|
|
783
859
|
}
|
|
784
860
|
try {
|
|
785
|
-
for (var layers_1 = (
|
|
861
|
+
for (var layers_1 = (e_14 = void 0, __values(layers)), layers_1_1 = layers_1.next(); !layers_1_1.done; layers_1_1 = layers_1.next()) {
|
|
786
862
|
var layer = layers_1_1.value;
|
|
787
863
|
var layerIds = idsByLayer.get(layer);
|
|
788
864
|
if (!layerIds) {
|
|
@@ -792,21 +868,21 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
792
868
|
layerIds.add(id);
|
|
793
869
|
}
|
|
794
870
|
}
|
|
795
|
-
catch (
|
|
871
|
+
catch (e_14_1) { e_14 = { error: e_14_1 }; }
|
|
796
872
|
finally {
|
|
797
873
|
try {
|
|
798
874
|
if (layers_1_1 && !layers_1_1.done && (_c = layers_1.return)) _c.call(layers_1);
|
|
799
875
|
}
|
|
800
|
-
finally { if (
|
|
876
|
+
finally { if (e_14) throw e_14.error; }
|
|
801
877
|
}
|
|
802
878
|
}
|
|
803
879
|
}
|
|
804
|
-
catch (
|
|
880
|
+
catch (e_13_1) { e_13 = { error: e_13_1 }; }
|
|
805
881
|
finally {
|
|
806
882
|
try {
|
|
807
883
|
if (entityIds_4_1 && !entityIds_4_1.done && (_b = entityIds_4.return)) _b.call(entityIds_4);
|
|
808
884
|
}
|
|
809
|
-
finally { if (
|
|
885
|
+
finally { if (e_13) throw e_13.error; }
|
|
810
886
|
}
|
|
811
887
|
if (idsByLayer.size === 0) {
|
|
812
888
|
return null;
|
|
@@ -832,12 +908,137 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
832
908
|
previewRoot.add(subset);
|
|
833
909
|
}
|
|
834
910
|
}
|
|
835
|
-
catch (
|
|
911
|
+
catch (e_15_1) { e_15 = { error: e_15_1 }; }
|
|
836
912
|
finally {
|
|
837
913
|
try {
|
|
838
914
|
if (idsByLayer_1_1 && !idsByLayer_1_1.done && (_d = idsByLayer_1.return)) _d.call(idsByLayer_1);
|
|
839
915
|
}
|
|
840
|
-
finally { if (
|
|
916
|
+
finally { if (e_15) throw e_15.error; }
|
|
917
|
+
}
|
|
918
|
+
if (previewRoot.children.length === 0) {
|
|
919
|
+
return null;
|
|
920
|
+
}
|
|
921
|
+
return previewRoot;
|
|
922
|
+
};
|
|
923
|
+
/**
|
|
924
|
+
* Resolves CAD layer names to layer groups in this layout.
|
|
925
|
+
*
|
|
926
|
+
* Matching is case-insensitive (AutoCAD layer names are). Names without a
|
|
927
|
+
* layer group here — unknown layers, or layers with no geometry in this
|
|
928
|
+
* layout — are skipped. Each layer group is returned at most once.
|
|
929
|
+
*
|
|
930
|
+
* @param layerNames - CAD layer names to look up
|
|
931
|
+
* @returns Matching layer groups in request order
|
|
932
|
+
*/
|
|
933
|
+
AcTrLayout.prototype.findLayers = function (layerNames) {
|
|
934
|
+
var e_16, _a, e_17, _b;
|
|
935
|
+
var _c;
|
|
936
|
+
var byUpperName = new Map();
|
|
937
|
+
try {
|
|
938
|
+
for (var _d = __values(this._layers.values()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
939
|
+
var layer = _e.value;
|
|
940
|
+
byUpperName.set(layer.name.toUpperCase(), layer);
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
catch (e_16_1) { e_16 = { error: e_16_1 }; }
|
|
944
|
+
finally {
|
|
945
|
+
try {
|
|
946
|
+
if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
|
|
947
|
+
}
|
|
948
|
+
finally { if (e_16) throw e_16.error; }
|
|
949
|
+
}
|
|
950
|
+
var found = [];
|
|
951
|
+
try {
|
|
952
|
+
for (var layerNames_1 = __values(layerNames), layerNames_1_1 = layerNames_1.next(); !layerNames_1_1.done; layerNames_1_1 = layerNames_1.next()) {
|
|
953
|
+
var name_1 = layerNames_1_1.value;
|
|
954
|
+
var layer = (_c = this._layers.get(name_1)) !== null && _c !== void 0 ? _c : byUpperName.get(name_1.toUpperCase());
|
|
955
|
+
if (layer && !found.includes(layer)) {
|
|
956
|
+
found.push(layer);
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
catch (e_17_1) { e_17 = { error: e_17_1 }; }
|
|
961
|
+
finally {
|
|
962
|
+
try {
|
|
963
|
+
if (layerNames_1_1 && !layerNames_1_1.done && (_b = layerNames_1.return)) _b.call(layerNames_1);
|
|
964
|
+
}
|
|
965
|
+
finally { if (e_17) throw e_17.error; }
|
|
966
|
+
}
|
|
967
|
+
return found;
|
|
968
|
+
};
|
|
969
|
+
/**
|
|
970
|
+
* Computes the union of batch bounds of the given CAD layers in this layout.
|
|
971
|
+
*
|
|
972
|
+
* Only geometry bucketed on those layers counts — INSERT fragments that
|
|
973
|
+
* live on other layers are excluded. Layer on/off/frozen state is ignored
|
|
974
|
+
* so explicitly requested layers can always be framed.
|
|
975
|
+
*
|
|
976
|
+
* @param layerNames - CAD layer names (case-insensitive)
|
|
977
|
+
* @param target - Optional output box
|
|
978
|
+
* @returns Axis-aligned bounds, empty when no geometry matched
|
|
979
|
+
*/
|
|
980
|
+
AcTrLayout.prototype.computeLayerPreviewBoundsBox = function (layerNames, target) {
|
|
981
|
+
var e_18, _a;
|
|
982
|
+
if (target === void 0) { target = new THREE.Box3(); }
|
|
983
|
+
target.makeEmpty();
|
|
984
|
+
var scratch = new THREE.Box3();
|
|
985
|
+
try {
|
|
986
|
+
for (var _b = __values(this.findLayers(layerNames)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
987
|
+
var layer = _c.value;
|
|
988
|
+
layer.computeContentBoundingBox(scratch);
|
|
989
|
+
if (!scratch.isEmpty()) {
|
|
990
|
+
target.union(scratch);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
catch (e_18_1) { e_18 = { error: e_18_1 }; }
|
|
995
|
+
finally {
|
|
996
|
+
try {
|
|
997
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
998
|
+
}
|
|
999
|
+
finally { if (e_18) throw e_18.error; }
|
|
1000
|
+
}
|
|
1001
|
+
return target;
|
|
1002
|
+
};
|
|
1003
|
+
/**
|
|
1004
|
+
* Builds one preview root containing all geometry of the given CAD layers.
|
|
1005
|
+
*
|
|
1006
|
+
* Unlike {@link createEntityPreviewRoot}, extraction is restricted to the
|
|
1007
|
+
* requested layer groups, so an INSERT contributes only its fragments on
|
|
1008
|
+
* those layers.
|
|
1009
|
+
*
|
|
1010
|
+
* @param layerNames - CAD layer names (case-insensitive)
|
|
1011
|
+
* @returns Preview root group, or `null` when no geometry was extracted
|
|
1012
|
+
*/
|
|
1013
|
+
AcTrLayout.prototype.createLayerPreviewRoot = function (layerNames) {
|
|
1014
|
+
var e_19, _a;
|
|
1015
|
+
var previewRoot = new THREE.Group();
|
|
1016
|
+
previewRoot.name = 'LayerPreviewRoot';
|
|
1017
|
+
try {
|
|
1018
|
+
for (var _b = __values(this.findLayers(layerNames)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1019
|
+
var layer = _c.value;
|
|
1020
|
+
var ids = layer.getEntityIds();
|
|
1021
|
+
if (ids.length === 0) {
|
|
1022
|
+
continue;
|
|
1023
|
+
}
|
|
1024
|
+
var subset = layer.createPreviewSubset(ids, {
|
|
1025
|
+
// A finite cap makes createPreviewSubset drop the whole layer once
|
|
1026
|
+
// exceeded; the caller asked for the full layer, so extract all slots.
|
|
1027
|
+
maxSlots: Number.POSITIVE_INFINITY,
|
|
1028
|
+
missingEntity: 'skip'
|
|
1029
|
+
});
|
|
1030
|
+
if (!subset || subset.children.length === 0) {
|
|
1031
|
+
continue;
|
|
1032
|
+
}
|
|
1033
|
+
previewRoot.add(subset);
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
catch (e_19_1) { e_19 = { error: e_19_1 }; }
|
|
1037
|
+
finally {
|
|
1038
|
+
try {
|
|
1039
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1040
|
+
}
|
|
1041
|
+
finally { if (e_19) throw e_19.error; }
|
|
841
1042
|
}
|
|
842
1043
|
if (previewRoot.children.length === 0) {
|
|
843
1044
|
return null;
|
|
@@ -903,7 +1104,7 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
903
1104
|
* @returns Object ids whose cross-layer visibility was changed.
|
|
904
1105
|
*/
|
|
905
1106
|
AcTrLayout.prototype.applyInsertLayerFreeze = function (insertLayerName, frozen) {
|
|
906
|
-
var
|
|
1107
|
+
var e_20, _a, e_21, _b;
|
|
907
1108
|
var touched = [];
|
|
908
1109
|
try {
|
|
909
1110
|
for (var _c = __values(this._insertLayerByObjectId), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
@@ -913,7 +1114,7 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
913
1114
|
}
|
|
914
1115
|
var changed = false;
|
|
915
1116
|
try {
|
|
916
|
-
for (var _f = (
|
|
1117
|
+
for (var _f = (e_21 = void 0, __values(this.getLayersByObjectId(objectId))), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
917
1118
|
var layer = _g.value;
|
|
918
1119
|
// INSERT-layer bucket visibility comes from the layer group itself.
|
|
919
1120
|
if (layer.name === insertLayerName) {
|
|
@@ -924,24 +1125,24 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
924
1125
|
}
|
|
925
1126
|
}
|
|
926
1127
|
}
|
|
927
|
-
catch (
|
|
1128
|
+
catch (e_21_1) { e_21 = { error: e_21_1 }; }
|
|
928
1129
|
finally {
|
|
929
1130
|
try {
|
|
930
1131
|
if (_g && !_g.done && (_b = _f.return)) _b.call(_f);
|
|
931
1132
|
}
|
|
932
|
-
finally { if (
|
|
1133
|
+
finally { if (e_21) throw e_21.error; }
|
|
933
1134
|
}
|
|
934
1135
|
if (changed) {
|
|
935
1136
|
touched.push(objectId);
|
|
936
1137
|
}
|
|
937
1138
|
}
|
|
938
1139
|
}
|
|
939
|
-
catch (
|
|
1140
|
+
catch (e_20_1) { e_20 = { error: e_20_1 }; }
|
|
940
1141
|
finally {
|
|
941
1142
|
try {
|
|
942
1143
|
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
943
1144
|
}
|
|
944
|
-
finally { if (
|
|
1145
|
+
finally { if (e_20) throw e_20.error; }
|
|
945
1146
|
}
|
|
946
1147
|
if (touched.length > 0) {
|
|
947
1148
|
this.invalidateBox();
|
|
@@ -1008,14 +1209,14 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
1008
1209
|
* @param apply - Layer callback invoked once per layer with its grouped entity ids.
|
|
1009
1210
|
*/
|
|
1010
1211
|
AcTrLayout.prototype.applyHighlightToLayers = function (ids, apply) {
|
|
1011
|
-
var
|
|
1212
|
+
var e_22, _a, e_23, _b;
|
|
1012
1213
|
var layerToIds = new Map();
|
|
1013
1214
|
try {
|
|
1014
1215
|
for (var ids_1 = __values(ids), ids_1_1 = ids_1.next(); !ids_1_1.done; ids_1_1 = ids_1.next()) {
|
|
1015
1216
|
var id = ids_1_1.value;
|
|
1016
1217
|
var layers = this.getLayersByObjectId(id);
|
|
1017
1218
|
try {
|
|
1018
|
-
for (var layers_2 = (
|
|
1219
|
+
for (var layers_2 = (e_23 = void 0, __values(layers)), layers_2_1 = layers_2.next(); !layers_2_1.done; layers_2_1 = layers_2.next()) {
|
|
1019
1220
|
var layer = layers_2_1.value;
|
|
1020
1221
|
var bucket = layerToIds.get(layer);
|
|
1021
1222
|
if (bucket) {
|
|
@@ -1026,21 +1227,21 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
1026
1227
|
}
|
|
1027
1228
|
}
|
|
1028
1229
|
}
|
|
1029
|
-
catch (
|
|
1230
|
+
catch (e_23_1) { e_23 = { error: e_23_1 }; }
|
|
1030
1231
|
finally {
|
|
1031
1232
|
try {
|
|
1032
1233
|
if (layers_2_1 && !layers_2_1.done && (_b = layers_2.return)) _b.call(layers_2);
|
|
1033
1234
|
}
|
|
1034
|
-
finally { if (
|
|
1235
|
+
finally { if (e_23) throw e_23.error; }
|
|
1035
1236
|
}
|
|
1036
1237
|
}
|
|
1037
1238
|
}
|
|
1038
|
-
catch (
|
|
1239
|
+
catch (e_22_1) { e_22 = { error: e_22_1 }; }
|
|
1039
1240
|
finally {
|
|
1040
1241
|
try {
|
|
1041
1242
|
if (ids_1_1 && !ids_1_1.done && (_a = ids_1.return)) _a.call(ids_1);
|
|
1042
1243
|
}
|
|
1043
|
-
finally { if (
|
|
1244
|
+
finally { if (e_22) throw e_22.error; }
|
|
1044
1245
|
}
|
|
1045
1246
|
layerToIds.forEach(function (entityIds, layer) { return apply(layer, entityIds); });
|
|
1046
1247
|
};
|
|
@@ -1151,22 +1352,22 @@ var AcTrLayout = /** @class */ (function () {
|
|
|
1151
1352
|
* returns an empty array if no matching layers are found
|
|
1152
1353
|
*/
|
|
1153
1354
|
AcTrLayout.prototype.getLayersByObjectId = function (objectId) {
|
|
1154
|
-
var
|
|
1355
|
+
var e_24, _a;
|
|
1155
1356
|
var layers = [];
|
|
1156
1357
|
try {
|
|
1157
1358
|
for (var _b = __values(this._layers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1158
|
-
var _d = __read(_c.value, 2),
|
|
1359
|
+
var _d = __read(_c.value, 2), _7 = _d[0], layer = _d[1];
|
|
1159
1360
|
if (layer.hasEntity(objectId)) {
|
|
1160
1361
|
layers.push(layer);
|
|
1161
1362
|
}
|
|
1162
1363
|
}
|
|
1163
1364
|
}
|
|
1164
|
-
catch (
|
|
1365
|
+
catch (e_24_1) { e_24 = { error: e_24_1 }; }
|
|
1165
1366
|
finally {
|
|
1166
1367
|
try {
|
|
1167
1368
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1168
1369
|
}
|
|
1169
|
-
finally { if (
|
|
1370
|
+
finally { if (e_24) throw e_24.error; }
|
|
1170
1371
|
}
|
|
1171
1372
|
return layers;
|
|
1172
1373
|
};
|