@mlightcad/cad-simple-viewer 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +185 -180
- package/dist/cad-simple-viewer.js +17061 -12706
- package/dist/cad-simple-viewer.umd.cjs +981 -114
- package/dist/mtext-renderer-worker.js +1908 -1765
- package/icons.ts +7 -7
- package/lib/app/AcApContext.d.ts.map +1 -1
- package/lib/app/AcApContext.js +4 -3
- package/lib/app/AcApContext.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts +38 -18
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +59 -45
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApOpenDatabaseOptions.d.ts +17 -1
- package/lib/app/AcApOpenDatabaseOptions.d.ts.map +1 -1
- package/lib/app/AcApOpenDatabaseOptions.js +1 -1
- package/lib/app/AcApOpenDatabaseOptions.js.map +1 -1
- package/lib/app/AcApOpenFileProgressController.d.ts +4 -2
- package/lib/app/AcApOpenFileProgressController.d.ts.map +1 -1
- package/lib/app/AcApOpenFileProgressController.js +4 -2
- package/lib/app/AcApOpenFileProgressController.js.map +1 -1
- package/lib/app/index.d.ts +1 -0
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +1 -0
- package/lib/app/index.js.map +1 -1
- package/lib/app/notification/AcApNotificationEventBridge.d.ts +130 -0
- package/lib/app/notification/AcApNotificationEventBridge.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationEventBridge.js +309 -0
- package/lib/app/notification/AcApNotificationEventBridge.js.map +1 -0
- package/lib/app/notification/AcApNotificationService.d.ts +185 -0
- package/lib/app/notification/AcApNotificationService.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationService.js +271 -0
- package/lib/app/notification/AcApNotificationService.js.map +1 -0
- package/lib/app/notification/AcApNotificationStore.d.ts +147 -0
- package/lib/app/notification/AcApNotificationStore.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationStore.js +345 -0
- package/lib/app/notification/AcApNotificationStore.js.map +1 -0
- package/lib/app/notification/AcApNotificationTypes.d.ts +195 -0
- package/lib/app/notification/AcApNotificationTypes.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationTypes.js +78 -0
- package/lib/app/notification/AcApNotificationTypes.js.map +1 -0
- package/lib/app/notification/index.d.ts +13 -0
- package/lib/app/notification/index.d.ts.map +1 -0
- package/lib/app/notification/index.js +13 -0
- package/lib/app/notification/index.js.map +1 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js +11 -7
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js.map +1 -1
- package/lib/command/AcApSwitchBgCmd.d.ts.map +1 -1
- package/lib/command/AcApSwitchBgCmd.js +7 -2
- package/lib/command/AcApSwitchBgCmd.js.map +1 -1
- package/lib/command/AcApToolbarDocBind.d.ts +19 -0
- package/lib/command/AcApToolbarDocBind.d.ts.map +1 -0
- package/lib/command/AcApToolbarDocBind.js +62 -0
- package/lib/command/AcApToolbarDocBind.js.map +1 -0
- package/lib/command/convert/AcApConvertToBmpCmd.d.ts +14 -0
- package/lib/command/convert/AcApConvertToBmpCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToBmpCmd.js +34 -0
- package/lib/command/convert/AcApConvertToBmpCmd.js.map +1 -0
- package/lib/command/convert/AcApConvertToJpgCmd.d.ts +14 -0
- package/lib/command/convert/AcApConvertToJpgCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToJpgCmd.js +34 -0
- package/lib/command/convert/AcApConvertToJpgCmd.js.map +1 -0
- package/lib/command/convert/AcApConvertToPngCmd.d.ts +4 -36
- package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -1
- package/lib/command/convert/AcApConvertToPngCmd.js +4 -138
- package/lib/command/convert/AcApConvertToPngCmd.js.map +1 -1
- package/lib/command/convert/AcApConvertToRasterImageCmd.d.ts +40 -0
- package/lib/command/convert/AcApConvertToRasterImageCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToRasterImageCmd.js +161 -0
- package/lib/command/convert/AcApConvertToRasterImageCmd.js.map +1 -0
- package/lib/command/convert/{AcApPngConvertor.d.ts → AcApRasterImageConvertor.d.ts} +36 -12
- package/lib/command/convert/AcApRasterImageConvertor.d.ts.map +1 -0
- package/lib/command/convert/{AcApPngConvertor.js → AcApRasterImageConvertor.js} +163 -32
- package/lib/command/convert/AcApRasterImageConvertor.js.map +1 -0
- package/lib/command/convert/index.d.ts +4 -1
- package/lib/command/convert/index.d.ts.map +1 -1
- package/lib/command/convert/index.js +4 -1
- package/lib/command/convert/index.js.map +1 -1
- package/lib/command/index.d.ts +2 -0
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +2 -0
- package/lib/command/index.js.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.js +51 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts +5 -0
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.js +27 -9
- package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.js +49 -1
- package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -1
- package/lib/editor/global/AcEdUiLayout.d.ts +6 -0
- package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiLayout.js +6 -0
- package/lib/editor/global/AcEdUiLayout.js.map +1 -1
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.d.ts +31 -0
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.js +67 -0
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.js.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +2 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +13 -2
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +6 -0
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +47 -7
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js +2 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js.map +1 -1
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts +18 -4
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js +14 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js.map +1 -1
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts +10 -2
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js +15 -4
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js.map +1 -1
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts +1 -1
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdTouchPointTiming.js +1 -1
- package/lib/editor/input/ui/AcEdTouchPointTiming.js.map +1 -1
- package/lib/editor/input/ui/index.d.ts +1 -0
- package/lib/editor/input/ui/index.d.ts.map +1 -1
- package/lib/editor/input/ui/index.js +1 -0
- package/lib/editor/input/ui/index.js.map +1 -1
- package/lib/editor/view/AcEdBaseView.d.ts +12 -0
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +19 -9
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts +36 -0
- package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts.map +1 -0
- package/lib/editor/view/AcEdSelectionBoxIntersect.js +113 -0
- package/lib/editor/view/AcEdSelectionBoxIntersect.js.map +1 -0
- package/lib/editor/view/index.d.ts +1 -0
- package/lib/editor/view/index.d.ts.map +1 -1
- package/lib/editor/view/index.js +1 -0
- package/lib/editor/view/index.js.map +1 -1
- package/lib/i18n/AcApI18n.d.ts +2 -1
- package/lib/i18n/AcApI18n.d.ts.map +1 -1
- package/lib/i18n/AcApI18n.js +4 -1
- package/lib/i18n/AcApI18n.js.map +1 -1
- package/lib/i18n/ar/command.d.ts +9 -0
- package/lib/i18n/ar/command.d.ts.map +1 -1
- package/lib/i18n/ar/command.js +1 -1
- package/lib/i18n/ar/command.js.map +1 -1
- package/lib/i18n/ar/jig.d.ts +47 -0
- package/lib/i18n/ar/jig.d.ts.map +1 -1
- package/lib/i18n/ar/jig.js +17 -1
- package/lib/i18n/ar/jig.js.map +1 -1
- package/lib/i18n/ar/main.d.ts +30 -0
- package/lib/i18n/ar/main.d.ts.map +1 -1
- package/lib/i18n/ar/main.js +34 -4
- package/lib/i18n/ar/main.js.map +1 -1
- package/lib/i18n/cs/command.d.ts +9 -0
- package/lib/i18n/cs/command.d.ts.map +1 -1
- package/lib/i18n/cs/command.js +9 -0
- package/lib/i18n/cs/command.js.map +1 -1
- package/lib/i18n/cs/jig.d.ts +47 -0
- package/lib/i18n/cs/jig.d.ts.map +1 -1
- package/lib/i18n/cs/jig.js +47 -0
- package/lib/i18n/cs/jig.js.map +1 -1
- package/lib/i18n/cs/main.d.ts +30 -0
- package/lib/i18n/cs/main.d.ts.map +1 -1
- package/lib/i18n/cs/main.js +34 -4
- package/lib/i18n/cs/main.js.map +1 -1
- package/lib/i18n/en/command.d.ts +9 -0
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +9 -0
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +47 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +47 -0
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/en/main.d.ts +30 -0
- package/lib/i18n/en/main.d.ts.map +1 -1
- package/lib/i18n/en/main.js +34 -4
- package/lib/i18n/en/main.js.map +1 -1
- package/lib/i18n/index.d.ts +2 -2
- package/lib/i18n/index.d.ts.map +1 -1
- package/lib/i18n/index.js.map +1 -1
- package/lib/i18n/tr/command.d.ts +9 -0
- package/lib/i18n/tr/command.d.ts.map +1 -1
- package/lib/i18n/tr/command.js +9 -0
- package/lib/i18n/tr/command.js.map +1 -1
- package/lib/i18n/tr/jig.d.ts +47 -0
- package/lib/i18n/tr/jig.d.ts.map +1 -1
- package/lib/i18n/tr/jig.js +47 -0
- package/lib/i18n/tr/jig.js.map +1 -1
- package/lib/i18n/tr/main.d.ts +30 -0
- package/lib/i18n/tr/main.d.ts.map +1 -1
- package/lib/i18n/tr/main.js +34 -4
- package/lib/i18n/tr/main.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +9 -0
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +9 -0
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +47 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +47 -0
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/i18n/zh/main.d.ts +30 -0
- package/lib/i18n/zh/main.d.ts.map +1 -1
- package/lib/i18n/zh/main.js +34 -4
- package/lib/i18n/zh/main.js.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts +6 -0
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js +10 -0
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js.map +1 -1
- package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts +4 -0
- package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrLinearSpatialIndex.js +9 -0
- package/lib/spatialIndex/AcTrLinearSpatialIndex.js.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts +4 -0
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js +9 -0
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
- package/lib/ui/AcUiDefaultNotificationUi.d.ts +167 -0
- package/lib/ui/AcUiDefaultNotificationUi.d.ts.map +1 -0
- package/lib/ui/AcUiDefaultNotificationUi.js +603 -0
- package/lib/ui/AcUiDefaultNotificationUi.js.map +1 -0
- package/lib/ui/AcUiDrawStyle.d.ts +2 -1
- package/lib/ui/AcUiDrawStyle.d.ts.map +1 -1
- package/lib/ui/AcUiDrawStyle.js +2 -1
- package/lib/ui/AcUiDrawStyle.js.map +1 -1
- package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts.map +1 -1
- package/lib/ui/AcUiDrawStyleSessionAccessory.js +5 -1
- package/lib/ui/AcUiDrawStyleSessionAccessory.js.map +1 -1
- package/lib/ui/AcUiMobileSessionPanel.d.ts +73 -8
- package/lib/ui/AcUiMobileSessionPanel.d.ts.map +1 -1
- package/lib/ui/AcUiMobileSessionPanel.js +314 -49
- package/lib/ui/AcUiMobileSessionPanel.js.map +1 -1
- package/lib/ui/AcUiShortCutToolbar.d.ts +24 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -1
- package/lib/ui/AcUiShortCutToolbar.js +73 -5
- package/lib/ui/AcUiShortCutToolbar.js.map +1 -1
- package/lib/ui/index.d.ts +2 -0
- package/lib/ui/index.d.ts.map +1 -1
- package/lib/ui/index.js +2 -0
- package/lib/ui/index.js.map +1 -1
- package/lib/ui/toolbar/AcUiDropdownMenu.d.ts +48 -0
- package/lib/ui/toolbar/AcUiDropdownMenu.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiDropdownMenu.js +116 -0
- package/lib/ui/toolbar/AcUiDropdownMenu.js.map +1 -0
- package/lib/ui/toolbar/AcUiSubToolbar.d.ts +125 -0
- package/lib/ui/toolbar/AcUiSubToolbar.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiSubToolbar.js +625 -0
- package/lib/ui/toolbar/AcUiSubToolbar.js.map +1 -0
- package/lib/ui/toolbar/AcUiToolbar.d.ts +446 -0
- package/lib/ui/toolbar/AcUiToolbar.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiToolbar.js +1550 -0
- package/lib/ui/toolbar/AcUiToolbar.js.map +1 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.d.ts +20 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.js +34 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.js.map +1 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.d.ts +19 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.d.ts.map +1 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.js +36 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.js.map +1 -0
- package/lib/ui/toolbar/index.d.ts +19 -0
- package/lib/ui/toolbar/index.d.ts.map +1 -0
- package/lib/ui/toolbar/index.js +15 -0
- package/lib/ui/toolbar/index.js.map +1 -0
- package/lib/ui/toolbar/resolveToolbarChrome.d.ts +14 -0
- package/lib/ui/toolbar/resolveToolbarChrome.d.ts.map +1 -0
- package/lib/ui/toolbar/resolveToolbarChrome.js +35 -0
- package/lib/ui/toolbar/resolveToolbarChrome.js.map +1 -0
- package/lib/ui/toolbar/resolveToolbarItemState.d.ts +63 -0
- package/lib/ui/toolbar/resolveToolbarItemState.d.ts.map +1 -0
- package/lib/ui/toolbar/resolveToolbarItemState.js +171 -0
- package/lib/ui/toolbar/resolveToolbarItemState.js.map +1 -0
- package/lib/ui/toolbar/toolbarItemUtils.d.ts +62 -0
- package/lib/ui/toolbar/toolbarItemUtils.d.ts.map +1 -0
- package/lib/ui/toolbar/toolbarItemUtils.js +184 -0
- package/lib/ui/toolbar/toolbarItemUtils.js.map +1 -0
- package/lib/ui/toolbar/types.d.ts +268 -0
- package/lib/ui/toolbar/types.d.ts.map +1 -0
- package/lib/ui/toolbar/types.js +8 -0
- package/lib/ui/toolbar/types.js.map +1 -0
- package/lib/ui-html-entry.d.ts +8 -1
- package/lib/ui-html-entry.d.ts.map +1 -1
- package/lib/ui-html-entry.js +6 -1
- package/lib/ui-html-entry.js.map +1 -1
- package/lib/util/AcApAnalyzeUnsupportedDrawing.d.ts +53 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.d.ts.map +1 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.js +164 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.js.map +1 -0
- package/lib/util/AcApFormatFontMissedMessage.d.ts +32 -0
- package/lib/util/AcApFormatFontMissedMessage.d.ts.map +1 -0
- package/lib/util/AcApFormatFontMissedMessage.js +46 -0
- package/lib/util/AcApFormatFontMissedMessage.js.map +1 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.d.ts +44 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.d.ts.map +1 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.js +105 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.js.map +1 -0
- package/lib/util/index.d.ts +3 -0
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +3 -0
- package/lib/util/index.js.map +1 -1
- package/lib/view/AcTrLayer.d.ts +13 -1
- package/lib/view/AcTrLayer.d.ts.map +1 -1
- package/lib/view/AcTrLayer.js +28 -11
- package/lib/view/AcTrLayer.js.map +1 -1
- package/lib/view/AcTrLayout.d.ts +17 -2
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +44 -3
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrScene.d.ts +4 -0
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +6 -0
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +93 -14
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +382 -102
- package/lib/view/AcTrView2d.js.map +1 -1
- package/package.json +8 -8
- package/src/ui/icons.ts +387 -387
- package/lib/command/convert/AcApPngConvertor.d.ts.map +0 -1
- package/lib/command/convert/AcApPngConvertor.js.map +0 -1
package/icons.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Subpath entry for `@mlightcad/cad-simple-viewer/icons`.
|
|
3
|
-
*
|
|
4
|
-
* Lets Node10 module resolution and the HTML viewer IIFE import icon
|
|
5
|
-
* strings without loading the rest of the viewer.
|
|
6
|
-
*/
|
|
7
|
-
export * from './src/ui/icons'
|
|
1
|
+
/**
|
|
2
|
+
* Subpath entry for `@mlightcad/cad-simple-viewer/icons`.
|
|
3
|
+
*
|
|
4
|
+
* Lets Node10 module resolution and the HTML viewer IIFE import icon
|
|
5
|
+
* strings without loading the rest of the viewer.
|
|
6
|
+
*/
|
|
7
|
+
export * from './src/ui/icons'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApContext.d.ts","sourceRoot":"","sources":["../../src/app/AcApContext.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAU7C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,WAAW;IACtB,sDAAsD;IACtD,OAAO,CAAC,KAAK,CAAc;IAC3B,+CAA+C;IAC/C,OAAO,CAAC,IAAI,CAAc;IAC1B,iFAAiF;IACjF,OAAO,CAAC,OAAO,CAAO;IACtB,sDAAsD;IACtD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAwB;IAEnD;;;;;;;;;;;OAWG;gBACS,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"AcApContext.d.ts","sourceRoot":"","sources":["../../src/app/AcApContext.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAU7C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,WAAW;IACtB,sDAAsD;IACtD,OAAO,CAAC,KAAK,CAAc;IAC3B,+CAA+C;IAC/C,OAAO,CAAC,IAAI,CAAc;IAC1B,iFAAiF;IACjF,OAAO,CAAC,OAAO,CAAO;IACtB,sDAAsD;IACtD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAwB;IAEnD;;;;;;;;;;;OAWG;gBACS,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY;IAiHjD;;;;OAIG;IACH,IAAI,IAAI,iBAEP;IAED;;;;OAIG;IACH,IAAI,GAAG,IAAI,YAAY,CAEtB;IAED;;OAEG;IACH,IAAI,QAAQ,YAEX;IAED;;OAEG;IACH,OAAO;IAIP;;OAEG;IACH,MAAM;IAIN;;OAEG;IACH,OAAO;CAOR"}
|
package/lib/app/AcApContext.js
CHANGED
|
@@ -114,14 +114,15 @@ var AcApContext = /** @class */ (function () {
|
|
|
114
114
|
return;
|
|
115
115
|
_this._view.updateLayer(args.layer, args.changes);
|
|
116
116
|
});
|
|
117
|
-
// Set point display mode. Sysvars are global; ignore other documents.
|
|
117
|
+
// Set point display mode / size. Sysvars are global; ignore other documents.
|
|
118
118
|
bind(AcDbSysVarManager.instance().events.sysVarChanged, function (args) {
|
|
119
119
|
if (!_this._active || args.database !== _this._doc.database) {
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
|
-
if (args.name == AcDbSystemVariables.PDMODE.toLowerCase()
|
|
122
|
+
if (args.name == AcDbSystemVariables.PDMODE.toLowerCase() ||
|
|
123
|
+
args.name == AcDbSystemVariables.PDSIZE.toLowerCase()) {
|
|
123
124
|
;
|
|
124
|
-
_this._view.rerenderPoints(args.database.pdmode);
|
|
125
|
+
_this._view.rerenderPoints(args.database.pdmode, args.database.pdsize);
|
|
125
126
|
}
|
|
126
127
|
else if (args.name == AcDbSystemVariables.LWDISPLAY.toLowerCase()) {
|
|
127
128
|
var currentView = _this._view;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApContext.js","sourceRoot":"","sources":["../../src/app/AcApContext.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAGL,UAAU,EACV,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC,OAAO,EAEL,iCAAiC,EAClC,MAAM,oBAAoB,CAAA;AAE3B,SAAS,YAAY,CAAC,MAAiC;IACrD,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;AAClD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IAUE;;;;;;;;;;;OAWG;IACH,qBAAY,IAAkB,EAAE,GAAiB;QAAjD,
|
|
1
|
+
{"version":3,"file":"AcApContext.js","sourceRoot":"","sources":["../../src/app/AcApContext.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAGL,UAAU,EACV,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,uBAAuB,CA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ACJ,CAAC;IAOD,sBAAI,6BAAI;QALR;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,KAAK,CAAA;QACnB,CAAC;;;OAAA;IAOD,sBAAI,4BAAG;QALP;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAA;QAClB,CAAC;;;OAAA;IAKD,sBAAI,iCAAQ;QAHZ;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,OAAO,CAAA;QACrB,CAAC;;;OAAA;IAED;;OAEG;IACH,6BAAO,GAAP;QACE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;IACtB,CAAC;IAED;;OAEG;IACH,4BAAM,GAAN;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;IACrB,CAAC;IAED;;OAEG;IACH,6BAAO,GAAP;;QACE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;;YACpB,KAAsB,IAAA,KAAA,SAAA,IAAI,CAAC,UAAU,CAAA,gBAAA,4BAAE,CAAC;gBAAnC,IAAM,OAAO,WAAA;gBAChB,OAAO,EAAE,CAAA;YACX,CAAC;;;;;;;;;QACD,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAA;IAC5B,CAAC;IACH,kBAAC;AAAD,CAAC,AAxLD,IAwLC"}
|
|
@@ -9,6 +9,7 @@ import { AcApDocSession } from './AcApDocSession';
|
|
|
9
9
|
import { AcApDocument } from './AcApDocument';
|
|
10
10
|
import { AcApOpenDatabaseOptions } from './AcApOpenDatabaseOptions';
|
|
11
11
|
import { type AcApOpenDocumentDefaultsResolver } from './AcApOpenFileDialog';
|
|
12
|
+
import { type AcUiNotificationBellPlacement } from './notification';
|
|
12
13
|
/**
|
|
13
14
|
* Event arguments for document-related events.
|
|
14
15
|
*/
|
|
@@ -180,8 +181,8 @@ export interface AcApDocManagerOptions {
|
|
|
180
181
|
builtinOpenFileDialog?: boolean;
|
|
181
182
|
/**
|
|
182
183
|
* When true, drawing export commands are not registered (`cdxf`, `pngout`,
|
|
183
|
-
* and host UI / lazy plugins for HTML, PDF, SVG export).
|
|
184
|
-
* (export remains enabled).
|
|
184
|
+
* `jpgout`, `bmpout`, and host UI / lazy plugins for HTML, PDF, SVG export).
|
|
185
|
+
* Defaults to false (export remains enabled).
|
|
185
186
|
*
|
|
186
187
|
* Useful for deployments that must hide export entry points. This is a
|
|
187
188
|
* product/UX gate, not a DRM boundary: drawing data still exists in memory.
|
|
@@ -193,6 +194,33 @@ export interface AcApDocManagerOptions {
|
|
|
193
194
|
* Can be updated later via {@link AcApDocManager.setOpenDocumentDefaults}.
|
|
194
195
|
*/
|
|
195
196
|
openDocumentDefaults?: AcApOpenDocumentDefaultsResolver;
|
|
197
|
+
/**
|
|
198
|
+
* Built-in notification center (font missing, unsupported entities, etc.).
|
|
199
|
+
*
|
|
200
|
+
* Notifications are scoped per document session (MDI). The default DOM UI is
|
|
201
|
+
* positioned relative to the canvas host, not the browser window.
|
|
202
|
+
*
|
|
203
|
+
* - omitted / `true`: install event bridge + default DOM bell UI
|
|
204
|
+
* - `false`: do not install bridge or UI (host handles events itself)
|
|
205
|
+
* - `{ showDefaultUi: false }`: bridge only — host should call
|
|
206
|
+
* {@link acapSetNotificationCenter} to supply UI (as cad-viewer does)
|
|
207
|
+
*/
|
|
208
|
+
notificationCenter?: boolean | {
|
|
209
|
+
/**
|
|
210
|
+
* Host for the default bell/panel. Defaults to the active view canvas
|
|
211
|
+
* container (`curView.container`).
|
|
212
|
+
*/
|
|
213
|
+
host?: HTMLElement;
|
|
214
|
+
/** When false, skip the built-in DOM UI. Default true. */
|
|
215
|
+
showDefaultUi?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Corner for the built-in notification bell.
|
|
218
|
+
*
|
|
219
|
+
* When omitted: phone `top-right`, pad / desktop `bottom-right`.
|
|
220
|
+
* Change later with {@link acapSetNotificationUiPlacement}.
|
|
221
|
+
*/
|
|
222
|
+
placement?: AcUiNotificationBellPlacement;
|
|
223
|
+
};
|
|
196
224
|
}
|
|
197
225
|
/**
|
|
198
226
|
* Document manager that handles CAD document lifecycle and provides the main entry point for the CAD viewer.
|
|
@@ -232,6 +260,12 @@ export declare class AcApDocManager {
|
|
|
232
260
|
private _busyIndicator;
|
|
233
261
|
/** Open-file progress overlay and event normalization */
|
|
234
262
|
private _openFileProgress;
|
|
263
|
+
/**
|
|
264
|
+
* When true, the open progress overlay waits for deferred text geometry
|
|
265
|
+
* ({@link AcTrView2d.isProcessingEntities}). Driven by
|
|
266
|
+
* {@link AcApOpenDatabaseOptions.waitForTextGeometry}.
|
|
267
|
+
*/
|
|
268
|
+
private _waitForTextGeometryOnOpen;
|
|
235
269
|
/** Optional OPENPROF session profiler (console stage timings) */
|
|
236
270
|
private _openFileProfiler;
|
|
237
271
|
/** Command manager */
|
|
@@ -790,7 +824,8 @@ export declare class AcApDocManager {
|
|
|
790
824
|
*
|
|
791
825
|
* This method sets up the command system by registering built-in commands including:
|
|
792
826
|
* - cdxf: Convert to DXF (when {@link AcApDocManagerOptions.disableExport} is false)
|
|
793
|
-
* - pngout: Export
|
|
827
|
+
* - pngout / jpgout / bmpout: Export raster images (when
|
|
828
|
+
* {@link AcApDocManagerOptions.disableExport} is false)
|
|
794
829
|
* - log: Output debug information in console
|
|
795
830
|
* - open: Open document
|
|
796
831
|
* - qnew: Quick new document
|
|
@@ -927,21 +962,6 @@ export declare class AcApDocManager {
|
|
|
927
962
|
* @protected
|
|
928
963
|
*/
|
|
929
964
|
protected onAfterOpenDocument(isSuccess: boolean, options?: AcApOpenDatabaseOptions): void;
|
|
930
|
-
/**
|
|
931
|
-
* Checks whether EXTMIN/EXTMAX describe a real drawing area usable for
|
|
932
|
-
* view framing.
|
|
933
|
-
*
|
|
934
|
-
* AutoCAD marks unsaved/invalid extents with ±1e20 sentinel values (and
|
|
935
|
-
* some writers emit other degenerate near-zero/huge pairs). Framing such
|
|
936
|
-
* a box zooms the camera out to effectively infinity and the drawing
|
|
937
|
-
* renders as a black canvas, so those sentinels must fall through to
|
|
938
|
-
* `zoomToFitDrawing()` instead.
|
|
939
|
-
*
|
|
940
|
-
* @param db - Input database whose header extents are checked.
|
|
941
|
-
* @returns True when EXTMIN/EXTMAX are finite, sane and span a real area.
|
|
942
|
-
* @private
|
|
943
|
-
*/
|
|
944
|
-
private hasUsableDrawingExtents;
|
|
945
965
|
/**
|
|
946
966
|
* Checks whether the current document's database already has usable content
|
|
947
967
|
* even though the open operation reported failure.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApDocManager.d.ts","sourceRoot":"","sources":["../../src/app/AcApDocManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,YAAY,EAGZ,uBAAuB,
|
|
1
|
+
{"version":3,"file":"AcApDocManager.d.ts","sourceRoot":"","sources":["../../src/app/AcApDocManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,YAAY,EAGZ,uBAAuB,EAGxB,MAAM,uBAAuB,CAAA;AA2E9B,OAAO,EAEL,WAAW,EACX,gBAAgB,EAChB,YAAY,EAEb,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAG/D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAGpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAKjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EACL,uBAAuB,EAExB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAEL,KAAK,gCAAgC,EAGtC,MAAM,sBAAsB,CAAA;AAS7B,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,gBAAgB,CAAA;AAyDv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IAAI,IAAI;IAIzB;;;;OAIG;IACH,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI9C;;;;;OAKG;IACG,iBAAiB,CAAC,CAAC,EACvB,IAAI,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAC1B,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,CAAC;IAIb;;;;;;;;OAQG;IACH,OAAO,CAAC,eAAe;IAUvB;;;;;;;;OAQG;YACW,WAAW;IAyDzB;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAsBxB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAKzB;;;;;;;;;OASG;YACW,iBAAiB;IAuC/B;;OAEG;YACW,sBAAsB;IAOpC;;;;OAIG;IACH,OAAO,CAAC,4BAA4B;IA0BpC;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAS5B;;;;OAIG;IACH,OAAO,CAAC,eAAe;CAKxB"}
|
|
@@ -92,10 +92,10 @@ 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, AcDbFileType, acdbHostApplicationServices, AcDbSysVarManager,
|
|
95
|
+
import { AcCmEventManager, AcDbDatabase, AcDbFileType, acdbHostApplicationServices, 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, AcApConvertToDxfCmd, AcApConvertToPngCmd, AcApCopyCmd, AcApDimLinearCmd, 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, 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, AcApCopyCmd, AcApDimLinearCmd, 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, 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';
|
|
99
99
|
import { acapGetDrawStyleSessionAccessory } from '../command/AcApDrawStyleSession';
|
|
100
100
|
import { registerMarkupCommands } from '../command/markup/AcApRegisterMarkupCommands';
|
|
101
101
|
import { registerMeasureCommands } from '../command/measure/AcApRegisterMeasureCommands';
|
|
@@ -117,6 +117,7 @@ import { AcApOpenFileProfiler } from './AcApOpenFileProfiler';
|
|
|
117
117
|
import { AcApOpenFileProgressController } from './AcApOpenFileProgressController';
|
|
118
118
|
import { checkWebworkerReadiness, DEFAULT_WEBWORKER_FILE_URLS, resetWebworkerReadinessCache } from './AcApWebworkerReadiness';
|
|
119
119
|
import { AcApXrefManager } from './AcApXrefManager';
|
|
120
|
+
import { acapDisposeNotificationService, acapInstallNotificationService } from './notification';
|
|
120
121
|
var DEFAULT_BASE_URL = 'https://cdn.jsdelivr.net/gh/mlightcad/cad-data';
|
|
121
122
|
/** Default ISO drawing template loaded by {@link AcApDocManager.newDocument}. */
|
|
122
123
|
var DEFAULT_NEW_DRAWING_TEMPLATE = 'templates/acadiso.dxf';
|
|
@@ -203,6 +204,12 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
203
204
|
this._sessions = [];
|
|
204
205
|
/** Monotonic id suffix for {@link AcApDocSession.id}. */
|
|
205
206
|
this._nextSessionId = 1;
|
|
207
|
+
/**
|
|
208
|
+
* When true, the open progress overlay waits for deferred text geometry
|
|
209
|
+
* ({@link AcTrView2d.isProcessingEntities}). Driven by
|
|
210
|
+
* {@link AcApOpenDatabaseOptions.waitForTextGeometry}.
|
|
211
|
+
*/
|
|
212
|
+
this._waitForTextGeometryOnOpen = false;
|
|
206
213
|
/** Optional OPENPROF session profiler (console stage timings) */
|
|
207
214
|
this._openFileProfiler = new AcApOpenFileProfiler();
|
|
208
215
|
/** Cached worker readiness; null until checked, then true or false */
|
|
@@ -286,6 +293,10 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
286
293
|
var fontsUrl = this.resolveFontsBaseUrl();
|
|
287
294
|
this._fontLoader.baseUrl = fontsUrl;
|
|
288
295
|
FontManager.instance.baseUrl = fontsUrl;
|
|
296
|
+
// Always push the URL into AcTrMTextRenderer (workers). DefaultFontLoader
|
|
297
|
+
// skips onFontUrlChanged when the value equals its built-in default, which
|
|
298
|
+
// would leave workers on an unset/stale font base URL.
|
|
299
|
+
AcTrMTextRenderer.getInstance().setFontUrl(fontsUrl);
|
|
289
300
|
acdbHostApplicationServices().workingDatabase = doc.database;
|
|
290
301
|
this._commandManager = new AcEdCommandStack();
|
|
291
302
|
this.registerCommands();
|
|
@@ -293,7 +304,12 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
293
304
|
var busyHost = (_e = options.busyIndicatorHost) !== null && _e !== void 0 ? _e : view.container;
|
|
294
305
|
this._busyIndicatorHost = busyHost;
|
|
295
306
|
this._openFileProgress = new AcApOpenFileProgressController(busyHost);
|
|
296
|
-
this._openFileProgress.setSceneBusyGate(function () {
|
|
307
|
+
this._openFileProgress.setSceneBusyGate(function () {
|
|
308
|
+
if (_this._waitForTextGeometryOnOpen) {
|
|
309
|
+
return _this.openProgressView.isProcessingEntities;
|
|
310
|
+
}
|
|
311
|
+
return _this.openProgressView.isConvertingEntities;
|
|
312
|
+
});
|
|
297
313
|
this._openFileProgress.setOnHidden(function () { return _this.onOpenProgressHidden(); });
|
|
298
314
|
this._busyIndicator = new AcApBusyIndicator(busyHost);
|
|
299
315
|
acapBindCommandServices({
|
|
@@ -330,6 +346,17 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
330
346
|
enabled: options.builtinOpenFileDialog !== false,
|
|
331
347
|
getOpenDocumentDefaults: function () { return _this.resolveOpenDocumentDefaults(); }
|
|
332
348
|
});
|
|
349
|
+
if (options.notificationCenter !== false) {
|
|
350
|
+
var ncOptions = typeof options.notificationCenter === 'object'
|
|
351
|
+
? options.notificationCenter
|
|
352
|
+
: {};
|
|
353
|
+
acapInstallNotificationService(this, {
|
|
354
|
+
host: ncOptions.host,
|
|
355
|
+
showDefaultUi: ncOptions.showDefaultUi !== false,
|
|
356
|
+
placement: ncOptions.placement,
|
|
357
|
+
enableBridge: true
|
|
358
|
+
});
|
|
359
|
+
}
|
|
333
360
|
}
|
|
334
361
|
/**
|
|
335
362
|
* Creates the singleton instance with an optional canvas element.
|
|
@@ -390,8 +417,6 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
390
417
|
case 0: return [4 /*yield*/, this._pluginManager.unloadAllPlugins()];
|
|
391
418
|
case 1:
|
|
392
419
|
_e.sent();
|
|
393
|
-
(_d = this._splitView) === null || _d === void 0 ? void 0 : _d.stopAnimationLoop();
|
|
394
|
-
this._splitView = undefined;
|
|
395
420
|
try {
|
|
396
421
|
for (_a = __values(__spreadArray([], __read(this._sessions), false)), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
397
422
|
session = _b.value;
|
|
@@ -410,7 +435,11 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
410
435
|
finally { if (e_1) throw e_1.error; }
|
|
411
436
|
}
|
|
412
437
|
this._sessions = [];
|
|
438
|
+
(_d = this._splitView) === null || _d === void 0 ? void 0 : _d.dispose();
|
|
439
|
+
this._splitView = undefined;
|
|
440
|
+
this._mainView.dispose();
|
|
413
441
|
acapUninstallOpenFileDialog();
|
|
442
|
+
acapDisposeNotificationService();
|
|
414
443
|
AcTrMTextRenderer.resetInstance();
|
|
415
444
|
resetWebworkerReadinessCache();
|
|
416
445
|
AcApDocManager._instance = undefined;
|
|
@@ -1569,7 +1598,8 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1569
1598
|
*
|
|
1570
1599
|
* This method sets up the command system by registering built-in commands including:
|
|
1571
1600
|
* - cdxf: Convert to DXF (when {@link AcApDocManagerOptions.disableExport} is false)
|
|
1572
|
-
* - pngout: Export
|
|
1601
|
+
* - pngout / jpgout / bmpout: Export raster images (when
|
|
1602
|
+
* {@link AcApDocManagerOptions.disableExport} is false)
|
|
1573
1603
|
* - log: Output debug information in console
|
|
1574
1604
|
* - open: Open document
|
|
1575
1605
|
* - qnew: Quick new document
|
|
@@ -1605,7 +1635,9 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1605
1635
|
addSystemCommand('circle', 'circle', new AcApCircleCmd());
|
|
1606
1636
|
addSystemCommand('close', 'close', new AcApCloseCmd());
|
|
1607
1637
|
if (!this._disableExport) {
|
|
1638
|
+
addSystemCommand('bmpout', 'bmpout', new AcApConvertToBmpCmd());
|
|
1608
1639
|
addSystemCommand('cdxf', 'cdxf', new AcApConvertToDxfCmd());
|
|
1640
|
+
addSystemCommand('jpgout', 'jpgout', new AcApConvertToJpgCmd());
|
|
1609
1641
|
addSystemCommand('pngout', 'pngout', new AcApConvertToPngCmd());
|
|
1610
1642
|
}
|
|
1611
1643
|
addSystemCommand('entout', 'entout', new AcApEntityPreviewCmd());
|
|
@@ -1995,6 +2027,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1995
2027
|
// open view mode uses zoom-to-fit — not for restored VPORT/saved views.
|
|
1996
2028
|
this.openProgressView.progressiveRendering =
|
|
1997
2029
|
(_a = options === null || options === void 0 ? void 0 : options.progressiveRendering) !== null && _a !== void 0 ? _a : false;
|
|
2030
|
+
this._waitForTextGeometryOnOpen = (options === null || options === void 0 ? void 0 : options.waitForTextGeometry) === true;
|
|
1998
2031
|
this._openFileProgress.setSeeThroughOverlay((_b = options === null || options === void 0 ? void 0 : options.progressiveRendering) !== null && _b !== void 0 ? _b : false);
|
|
1999
2032
|
// OPENPROF: start stage timings before db.read / entity flush.
|
|
2000
2033
|
this._openFileProfiler.begin(this.context.doc.database);
|
|
@@ -2045,7 +2078,10 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2045
2078
|
// and frame batch-derived geometry bounds once entities land.
|
|
2046
2079
|
//
|
|
2047
2080
|
// 3. **Saved** (Write default) in model space: restore VPORT
|
|
2048
|
-
// `*ACTIVE
|
|
2081
|
+
// `*ACTIVE` via `getActiveVportBox(aspect)` (structural / max-span
|
|
2082
|
+
// checks only — not vs header EXTMIN/EXTMAX, which often span
|
|
2083
|
+
// outliers and reject a valid tight saved view). When missing or
|
|
2084
|
+
// implausible, poll `zoomToFitDrawing`.
|
|
2049
2085
|
//
|
|
2050
2086
|
// 4. **Fallback** (paper without limits, or model with empty
|
|
2051
2087
|
// extents 鈥?typically DXF): poll `zoomToFitDrawing` and frame
|
|
@@ -2076,20 +2112,21 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2076
2112
|
}
|
|
2077
2113
|
else if (!isPaperSpaceActive) {
|
|
2078
2114
|
var canvasAspect = view.width / Math.max(view.height, 1);
|
|
2079
|
-
|
|
2080
|
-
//
|
|
2081
|
-
//
|
|
2082
|
-
// (
|
|
2083
|
-
|
|
2115
|
+
// Restore *ACTIVE without comparing to header EXTMIN/EXTMAX.
|
|
2116
|
+
// Extents-relative heuristics reject valid saved views that sit in a
|
|
2117
|
+
// dense island while $EXTMAX still spans a mirrored/outlier wing
|
|
2118
|
+
// (center offset fails). Raw `modelViewBox` alone still accepts
|
|
2119
|
+
// stale zoomed-out saves; `getActiveVportBox` without extents keeps
|
|
2120
|
+
// structural checks + a max-span guard for those.
|
|
2121
|
+
var activeModelViewBox = db.tables.viewportTable.getActiveVportBox(canvasAspect);
|
|
2084
2122
|
if (activeModelViewBox) {
|
|
2085
2123
|
view.zoomTo(activeModelViewBox);
|
|
2086
2124
|
framedSynchronously = true;
|
|
2087
2125
|
}
|
|
2088
|
-
else if (this.hasUsableDrawingExtents(db)) {
|
|
2089
|
-
view.zoomTo(new AcGeBox2d(db.extmin, db.extmax));
|
|
2090
|
-
framedSynchronously = true;
|
|
2091
|
-
}
|
|
2092
2126
|
else {
|
|
2127
|
+
// No plausible saved view (missing VPORT or zoomed absurdly far).
|
|
2128
|
+
// Frame converted scene bounds — do not trust header extents alone
|
|
2129
|
+
// (often a title-block island while model content sits far away).
|
|
2093
2130
|
if (progressiveRendering) {
|
|
2094
2131
|
view.beginProgressiveOpenFit();
|
|
2095
2132
|
}
|
|
@@ -2123,33 +2160,6 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2123
2160
|
this.regen();
|
|
2124
2161
|
}
|
|
2125
2162
|
};
|
|
2126
|
-
/**
|
|
2127
|
-
* Checks whether EXTMIN/EXTMAX describe a real drawing area usable for
|
|
2128
|
-
* view framing.
|
|
2129
|
-
*
|
|
2130
|
-
* AutoCAD marks unsaved/invalid extents with ±1e20 sentinel values (and
|
|
2131
|
-
* some writers emit other degenerate near-zero/huge pairs). Framing such
|
|
2132
|
-
* a box zooms the camera out to effectively infinity and the drawing
|
|
2133
|
-
* renders as a black canvas, so those sentinels must fall through to
|
|
2134
|
-
* `zoomToFitDrawing()` instead.
|
|
2135
|
-
*
|
|
2136
|
-
* @param db - Input database whose header extents are checked.
|
|
2137
|
-
* @returns True when EXTMIN/EXTMAX are finite, sane and span a real area.
|
|
2138
|
-
* @private
|
|
2139
|
-
*/
|
|
2140
|
-
AcApDocManager.prototype.hasUsableDrawingExtents = function (db) {
|
|
2141
|
-
if (db.extents.isEmpty())
|
|
2142
|
-
return false;
|
|
2143
|
-
// Anything at or beyond this magnitude is a "no saved extents"
|
|
2144
|
-
// sentinel, not a coordinate a real drawing occupies.
|
|
2145
|
-
var SENTINEL_LIMIT = 1e15;
|
|
2146
|
-
var values = [db.extmin.x, db.extmin.y, db.extmax.x, db.extmax.y];
|
|
2147
|
-
if (values.some(function (value) { return !Number.isFinite(value); }) ||
|
|
2148
|
-
values.some(function (value) { return Math.abs(value) >= SENTINEL_LIMIT; })) {
|
|
2149
|
-
return false;
|
|
2150
|
-
}
|
|
2151
|
-
return db.extmax.x > db.extmin.x && db.extmax.y > db.extmin.y;
|
|
2152
|
-
};
|
|
2153
2163
|
/**
|
|
2154
2164
|
* Checks whether the current document's database already has usable content
|
|
2155
2165
|
* even though the open operation reported failure.
|
|
@@ -2184,7 +2194,8 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2184
2194
|
if (options == null) {
|
|
2185
2195
|
options = {
|
|
2186
2196
|
drawNoPlotLayers: false,
|
|
2187
|
-
progressiveRendering: false
|
|
2197
|
+
progressiveRendering: false,
|
|
2198
|
+
waitForTextGeometry: false
|
|
2188
2199
|
};
|
|
2189
2200
|
}
|
|
2190
2201
|
else {
|
|
@@ -2195,6 +2206,9 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2195
2206
|
if (options.progressiveRendering == null) {
|
|
2196
2207
|
options.progressiveRendering = false;
|
|
2197
2208
|
}
|
|
2209
|
+
if (options.waitForTextGeometry == null) {
|
|
2210
|
+
options.waitForTextGeometry = false;
|
|
2211
|
+
}
|
|
2198
2212
|
}
|
|
2199
2213
|
return options;
|
|
2200
2214
|
};
|
|
@@ -2349,7 +2363,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2349
2363
|
var _a;
|
|
2350
2364
|
var mtextRenderer = AcTrMTextRenderer.getInstance();
|
|
2351
2365
|
mtextRenderer.initialize((_a = webworkerFileUrls === null || webworkerFileUrls === void 0 ? void 0 : webworkerFileUrls.mtextRender) !== null && _a !== void 0 ? _a : DEFAULT_WEBWORKER_FILE_URLS.mtextRender);
|
|
2352
|
-
void mtextRenderer.setDefaultFonts(
|
|
2366
|
+
void mtextRenderer.setDefaultFonts(__spreadArray([], __read(FontManager.instance.defaultFonts), false));
|
|
2353
2367
|
};
|
|
2354
2368
|
/**
|
|
2355
2369
|
* Loads plugins automatically based on the provided configuration.
|