@mlightcad/cad-simple-viewer 1.6.3 → 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 +34895 -23320
- package/dist/cad-simple-viewer.umd.cjs +2570 -372
- package/dist/mtext-renderer-worker.js +15359 -15067
- package/icons.ts +7 -7
- package/lib/app/AcApBrand.d.ts +2 -2
- package/lib/app/AcApBrand.d.ts.map +1 -1
- package/lib/app/AcApBrand.js +2 -2
- package/lib/app/AcApBrand.js.map +1 -1
- 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 +107 -25
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +209 -93
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApDocsUrl.d.ts +57 -0
- package/lib/app/AcApDocsUrl.d.ts.map +1 -0
- package/lib/app/AcApDocsUrl.js +76 -0
- package/lib/app/AcApDocsUrl.js.map +1 -0
- package/lib/app/AcApDocument.d.ts +1 -1
- package/lib/app/AcApDocument.d.ts.map +1 -1
- package/lib/app/AcApDocument.js.map +1 -1
- package/lib/app/AcApFontLoader.d.ts +6 -0
- package/lib/app/AcApFontLoader.d.ts.map +1 -1
- package/lib/app/AcApFontLoader.js +11 -0
- package/lib/app/AcApFontLoader.js.map +1 -1
- package/lib/app/AcApOpenDatabaseOptions.d.ts +106 -0
- package/lib/app/AcApOpenDatabaseOptions.d.ts.map +1 -0
- package/lib/app/{AcDbOpenDatabaseOptions.js → AcApOpenDatabaseOptions.js} +2 -2
- package/lib/app/AcApOpenDatabaseOptions.js.map +1 -0
- package/lib/app/AcApOpenFileDialog.d.ts +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/AcApSettingManager.d.ts +156 -43
- package/lib/app/AcApSettingManager.d.ts.map +1 -1
- package/lib/app/AcApSettingManager.js +216 -66
- package/lib/app/AcApSettingManager.js.map +1 -1
- package/lib/app/index.d.ts +4 -2
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +3 -1
- 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/AcApDrawOverlayInput.d.ts +6 -0
- package/lib/command/AcApDrawOverlayInput.d.ts.map +1 -0
- package/lib/command/AcApDrawOverlayInput.js +64 -0
- package/lib/command/AcApDrawOverlayInput.js.map +1 -0
- package/lib/command/AcApDrawStyleDrawCmd.d.ts +9 -0
- package/lib/command/AcApDrawStyleDrawCmd.d.ts.map +1 -0
- package/lib/command/AcApDrawStyleDrawCmd.js +32 -0
- package/lib/command/AcApDrawStyleDrawCmd.js.map +1 -0
- package/lib/command/AcApDrawStyleSession.d.ts +20 -0
- package/lib/command/AcApDrawStyleSession.d.ts.map +1 -0
- package/lib/command/AcApDrawStyleSession.js +2 -0
- package/lib/command/AcApDrawStyleSession.js.map +1 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts +28 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts.map +1 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js +178 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js.map +1 -0
- package/lib/command/AcApReadingModeCmd.d.ts +17 -0
- package/lib/command/AcApReadingModeCmd.d.ts.map +1 -0
- package/lib/command/AcApReadingModeCmd.js +82 -0
- package/lib/command/AcApReadingModeCmd.js.map +1 -0
- package/lib/command/AcApShortCutSelectionAccessory.d.ts +14 -0
- package/lib/command/AcApShortCutSelectionAccessory.d.ts.map +1 -0
- package/lib/command/AcApShortCutSelectionAccessory.js +266 -0
- package/lib/command/AcApShortCutSelectionAccessory.js.map +1 -0
- package/lib/command/AcApShortCutToolbarDocBind.d.ts +20 -0
- package/lib/command/AcApShortCutToolbarDocBind.d.ts.map +1 -0
- package/lib/command/AcApShortCutToolbarDocBind.js +155 -0
- package/lib/command/AcApShortCutToolbarDocBind.js.map +1 -0
- 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/AcApZoomCmd.d.ts +39 -1
- package/lib/command/AcApZoomCmd.d.ts.map +1 -1
- package/lib/command/AcApZoomCmd.js +70 -6
- package/lib/command/AcApZoomCmd.js.map +1 -1
- 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/draw/AcApHatchCmd.js +1 -1
- package/lib/command/draw/AcApHatchCmd.js.map +1 -1
- package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApMTextCmd.js +11 -7
- package/lib/command/draw/AcApMTextCmd.js.map +1 -1
- 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/AcApMarkupArrowCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupArrowCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupArrowCmd.js +8 -9
- package/lib/command/markup/AcApMarkupArrowCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.js +69 -13
- package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCircleCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCircleCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCircleCmd.js +8 -9
- package/lib/command/markup/AcApMarkupCircleCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCloudCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCloudCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCloudCmd.js +8 -9
- package/lib/command/markup/AcApMarkupCloudCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts +12 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.js +37 -9
- package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -1
- package/lib/command/markup/AcApMarkupDrawCmd.d.ts +19 -0
- package/lib/command/markup/AcApMarkupDrawCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupDrawCmd.js +47 -0
- package/lib/command/markup/AcApMarkupDrawCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupGeometry.d.ts +19 -2
- package/lib/command/markup/AcApMarkupGeometry.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupGeometry.js +43 -2
- package/lib/command/markup/AcApMarkupGeometry.js.map +1 -1
- package/lib/command/markup/AcApMarkupHighlightCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupHighlightCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupHighlightCmd.js +9 -10
- package/lib/command/markup/AcApMarkupHighlightCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupLineCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupLineCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupLineCmd.js +18 -11
- package/lib/command/markup/AcApMarkupLineCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupPresenter.d.ts +16 -2
- package/lib/command/markup/AcApMarkupPresenter.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupPresenter.js +66 -14
- package/lib/command/markup/AcApMarkupPresenter.js.map +1 -1
- package/lib/command/markup/AcApMarkupRectCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupRectCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupRectCmd.js +8 -9
- package/lib/command/markup/AcApMarkupRectCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupShapeBuilder.d.ts +7 -4
- package/lib/command/markup/AcApMarkupShapeBuilder.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeBuilder.js +24 -11
- package/lib/command/markup/AcApMarkupShapeBuilder.js.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.js +61 -4
- package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -1
- package/lib/command/markup/AcApMarkupSidecar.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupSidecar.js +39 -5
- package/lib/command/markup/AcApMarkupSidecar.js.map +1 -1
- package/lib/command/markup/AcApMarkupStampCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupStampCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupStampCmd.js +6 -7
- package/lib/command/markup/AcApMarkupStampCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupTextCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupTextCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupTextCmd.js +13 -9
- package/lib/command/markup/AcApMarkupTextCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupTypes.d.ts +18 -2
- package/lib/command/markup/AcApMarkupTypes.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupUtil.d.ts +36 -7
- package/lib/command/markup/AcApMarkupUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupUtil.js +149 -34
- package/lib/command/markup/AcApMarkupUtil.js.map +1 -1
- package/lib/command/markup/AcApRegisterMarkupCommands.d.ts +8 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.d.ts.map +1 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.js +35 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.js +16 -15
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntity.d.ts +5 -1
- package/lib/command/markup/entity/AcApMarkupEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntity.js +19 -5
- package/lib/command/markup/entity/AcApMarkupEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts +8 -3
- package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntityGrips.js +15 -7
- package/lib/command/markup/entity/AcApMarkupEntityGrips.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.js +14 -12
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.js +8 -6
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupShapeEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupShapeEntity.js +23 -21
- package/lib/command/markup/entity/AcApMarkupShapeEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupStampEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupStampEntity.js +1 -0
- package/lib/command/markup/entity/AcApMarkupStampEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupTextEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupTextEntity.js +1 -0
- package/lib/command/markup/entity/AcApMarkupTextEntity.js.map +1 -1
- package/lib/command/markup/index.d.ts +2 -0
- package/lib/command/markup/index.d.ts.map +1 -1
- package/lib/command/markup/index.js +2 -0
- package/lib/command/markup/index.js.map +1 -1
- package/lib/command/measure/AcApMeasureAngleArc.d.ts +27 -0
- package/lib/command/measure/AcApMeasureAngleArc.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureAngleArc.js +22 -0
- package/lib/command/measure/AcApMeasureAngleArc.js.map +1 -0
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureAngleCmd.js +46 -45
- package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.js +71 -67
- package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureAreaCmd.js +102 -99
- package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureContinuousCmd.d.ts +44 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.js +317 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.js.map +1 -0
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts +3 -3
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureDistanceCmd.js +41 -37
- package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureDrawCmd.d.ts +32 -0
- package/lib/command/measure/AcApMeasureDrawCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureDrawCmd.js +56 -0
- package/lib/command/measure/AcApMeasureDrawCmd.js.map +1 -0
- package/lib/command/measure/AcApMeasurePointCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasurePointCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurePointCmd.js +20 -23
- package/lib/command/measure/AcApMeasurePointCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasurementGeometry.d.ts +19 -0
- package/lib/command/measure/AcApMeasurementGeometry.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementGeometry.js +53 -3
- package/lib/command/measure/AcApMeasurementGeometry.js.map +1 -1
- package/lib/command/measure/AcApMeasurementHistory.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementHistory.js +3 -1
- package/lib/command/measure/AcApMeasurementHistory.js.map +1 -1
- package/lib/command/measure/AcApMeasurementPlace.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementPlace.js +22 -5
- package/lib/command/measure/AcApMeasurementPlace.js.map +1 -1
- package/lib/command/measure/AcApMeasurementRepublish.d.ts +35 -0
- package/lib/command/measure/AcApMeasurementRepublish.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementRepublish.js +31 -0
- package/lib/command/measure/AcApMeasurementRepublish.js.map +1 -0
- package/lib/command/measure/AcApMeasurementSidecar.d.ts +2 -1
- package/lib/command/measure/AcApMeasurementSidecar.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementSidecar.js +55 -10
- package/lib/command/measure/AcApMeasurementSidecar.js.map +1 -1
- package/lib/command/measure/AcApMeasurementStore.d.ts +45 -2
- package/lib/command/measure/AcApMeasurementStore.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementStore.js +277 -33
- package/lib/command/measure/AcApMeasurementStore.js.map +1 -1
- package/lib/command/measure/AcApMeasurementTypes.d.ts +17 -1
- package/lib/command/measure/AcApMeasurementTypes.d.ts.map +1 -1
- package/lib/command/measure/AcApRegisterMeasureCommands.d.ts +8 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.d.ts.map +1 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.js +29 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts +3 -5
- package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAngleEntity.js +165 -56
- package/lib/command/measure/entity/AcApMeasureAngleEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts +5 -8
- package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureArcEntity.js +251 -53
- package/lib/command/measure/entity/AcApMeasureArcEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts +4 -3
- package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAreaEntity.js +154 -28
- package/lib/command/measure/entity/AcApMeasureAreaEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts +5 -3
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.js +180 -28
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +20 -8
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js +45 -19
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntity.d.ts +41 -6
- package/lib/command/measure/entity/AcApMeasureEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntity.js +48 -2
- package/lib/command/measure/entity/AcApMeasureEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts +2 -2
- package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityFactory.js +10 -3
- package/lib/command/measure/entity/AcApMeasureEntityFactory.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts +33 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.js +49 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts +3 -2
- package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasurePointEntity.js +130 -16
- package/lib/command/measure/entity/AcApMeasurePointEntity.js.map +1 -1
- package/lib/command/measure/entity/index.d.ts +1 -0
- package/lib/command/measure/entity/index.d.ts.map +1 -1
- package/lib/command/measure/entity/index.js +1 -0
- package/lib/command/measure/entity/index.js.map +1 -1
- package/lib/command/measure/index.d.ts +4 -0
- package/lib/command/measure/index.d.ts.map +1 -1
- package/lib/command/measure/index.js +4 -0
- package/lib/command/measure/index.js.map +1 -1
- package/lib/command/overlay/AcApHtmlLivePreview.d.ts +16 -4
- package/lib/command/overlay/AcApHtmlLivePreview.d.ts.map +1 -1
- package/lib/command/overlay/AcApHtmlLivePreview.js +42 -12
- package/lib/command/overlay/AcApHtmlLivePreview.js.map +1 -1
- package/lib/command/overlay/AcApOverlayDrawUtil.d.ts +113 -3
- package/lib/command/overlay/AcApOverlayDrawUtil.d.ts.map +1 -1
- package/lib/command/overlay/AcApOverlayDrawUtil.js +341 -7
- package/lib/command/overlay/AcApOverlayDrawUtil.js.map +1 -1
- package/lib/command/overlay/AcApOverlayGripHost.d.ts +19 -0
- package/lib/command/overlay/AcApOverlayGripHost.d.ts.map +1 -1
- package/lib/command/overlay/AcApOverlayGripHost.js +124 -6
- package/lib/command/overlay/AcApOverlayGripHost.js.map +1 -1
- package/lib/editor/command/AcEdCommand.d.ts +17 -0
- package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommand.js +81 -1
- package/lib/editor/command/AcEdCommand.js.map +1 -1
- package/lib/editor/command/AcEdCommandStack.d.ts +14 -3
- package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommandStack.js +39 -3
- package/lib/editor/command/AcEdCommandStack.js.map +1 -1
- package/lib/editor/command/AcEdSessionAccessory.d.ts +82 -0
- package/lib/editor/command/AcEdSessionAccessory.d.ts.map +1 -0
- package/lib/editor/command/AcEdSessionAccessory.js +15 -0
- package/lib/editor/command/AcEdSessionAccessory.js.map +1 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.d.ts +42 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.d.ts.map +1 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.js +54 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.js.map +1 -0
- package/lib/editor/command/index.d.ts +4 -0
- package/lib/editor/command/index.d.ts.map +1 -1
- package/lib/editor/command/index.js +3 -0
- package/lib/editor/command/index.js.map +1 -1
- package/lib/editor/global/AcEdUiColor.d.ts +10 -0
- package/lib/editor/global/AcEdUiColor.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiColor.js +14 -0
- package/lib/editor/global/AcEdUiColor.js.map +1 -1
- package/lib/editor/global/AcEdUiLayout.d.ts +108 -0
- package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiLayout.js +143 -0
- package/lib/editor/global/AcEdUiLayout.js.map +1 -1
- package/lib/editor/global/AcEdUiTheme.d.ts +15 -3
- package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiTheme.js +113 -6
- package/lib/editor/global/AcEdUiTheme.js.map +1 -1
- package/lib/editor/grip/AcEdGripAppearance.d.ts +18 -0
- package/lib/editor/grip/AcEdGripAppearance.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripAppearance.js +23 -1
- package/lib/editor/grip/AcEdGripAppearance.js.map +1 -1
- package/lib/editor/grip/AcEdGripEditSession.js +2 -2
- package/lib/editor/grip/AcEdGripEditSession.js.map +1 -1
- package/lib/editor/grip/AcEdGripHandle.d.ts +1 -2
- package/lib/editor/grip/AcEdGripHandle.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripHandle.js +4 -13
- package/lib/editor/grip/AcEdGripHandle.js.map +1 -1
- package/lib/editor/grip/AcEdGripManager.d.ts +3 -1
- package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripManager.js +30 -14
- package/lib/editor/grip/AcEdGripManager.js.map +1 -1
- package/lib/editor/grip/index.d.ts +1 -0
- package/lib/editor/grip/index.d.ts.map +1 -1
- package/lib/editor/grip/index.js +1 -0
- package/lib/editor/grip/index.js.map +1 -1
- package/lib/editor/input/AcEdDynamicInput.d.ts +15 -0
- package/lib/editor/input/AcEdDynamicInput.d.ts.map +1 -0
- package/lib/editor/input/AcEdDynamicInput.js +22 -0
- package/lib/editor/input/AcEdDynamicInput.js.map +1 -0
- package/lib/editor/input/AcEdOsnapCenterMarks.d.ts +19 -1
- package/lib/editor/input/AcEdOsnapCenterMarks.d.ts.map +1 -1
- package/lib/editor/input/AcEdOsnapCenterMarks.js +53 -9
- package/lib/editor/input/AcEdOsnapCenterMarks.js.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.js +216 -35
- package/lib/editor/input/AcEdOsnapResolver.js.map +1 -1
- package/lib/editor/input/AcEditor.d.ts +14 -1
- package/lib/editor/input/AcEditor.d.ts.map +1 -1
- package/lib/editor/input/AcEditor.js +18 -2
- package/lib/editor/input/AcEditor.js.map +1 -1
- package/lib/editor/input/index.d.ts +1 -0
- package/lib/editor/input/index.d.ts.map +1 -1
- package/lib/editor/input/index.js +1 -0
- package/lib/editor/input/index.js.map +1 -1
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts +12 -0
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts.map +1 -1
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.js +53 -18
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +15 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js +24 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.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/AcEdDesktopSessionAccessoryChrome.d.ts +33 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js +85 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts +57 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js +104 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +146 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +423 -13
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +8 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingMessage.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingMessage.js +2 -2
- package/lib/editor/input/ui/AcEdFloatingMessage.js.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts +100 -7
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +846 -165
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts +94 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.js +60 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts +52 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js +203 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts +103 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js +157 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts +29 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.js +37 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts +45 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.js +63 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.js.map +1 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts +121 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js +306 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js.map +1 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts +28 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js +86 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.d.ts +60 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.js +109 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.js.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts +47 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.js +50 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts +97 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.js +74 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.d.ts +198 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.js +329 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts +18 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.js +18 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.js.map +1 -0
- package/lib/editor/input/ui/index.d.ts +14 -0
- package/lib/editor/input/ui/index.d.ts.map +1 -1
- package/lib/editor/input/ui/index.js +14 -0
- package/lib/editor/input/ui/index.js.map +1 -1
- package/lib/editor/view/AcEdBaseView.d.ts +144 -39
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +200 -49
- 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/AcEdViewMode.d.ts +34 -0
- package/lib/editor/view/AcEdViewMode.d.ts.map +1 -0
- package/lib/editor/view/AcEdViewMode.js +35 -0
- package/lib/editor/view/AcEdViewMode.js.map +1 -0
- package/lib/editor/view/index.d.ts +2 -0
- package/lib/editor/view/index.d.ts.map +1 -1
- package/lib/editor/view/index.js +2 -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 +5 -2
- package/lib/i18n/AcApI18n.js.map +1 -1
- package/lib/i18n/ar/command.d.ts +18 -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 +67 -0
- package/lib/i18n/ar/jig.d.ts.map +1 -1
- package/lib/i18n/ar/jig.js +31 -3
- package/lib/i18n/ar/jig.js.map +1 -1
- package/lib/i18n/ar/main.d.ts +100 -1
- package/lib/i18n/ar/main.d.ts.map +1 -1
- package/lib/i18n/ar/main.js +101 -2
- package/lib/i18n/ar/main.js.map +1 -1
- package/lib/i18n/cs/command.d.ts +15 -0
- package/lib/i18n/cs/command.d.ts.map +1 -1
- package/lib/i18n/cs/command.js +15 -0
- package/lib/i18n/cs/command.js.map +1 -1
- package/lib/i18n/cs/jig.d.ts +67 -0
- package/lib/i18n/cs/jig.d.ts.map +1 -1
- package/lib/i18n/cs/jig.js +67 -0
- package/lib/i18n/cs/jig.js.map +1 -1
- package/lib/i18n/cs/main.d.ts +100 -1
- package/lib/i18n/cs/main.d.ts.map +1 -1
- package/lib/i18n/cs/main.js +101 -2
- package/lib/i18n/cs/main.js.map +1 -1
- package/lib/i18n/en/command.d.ts +18 -0
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +18 -0
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +67 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +67 -0
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/en/main.d.ts +100 -1
- package/lib/i18n/en/main.d.ts.map +1 -1
- package/lib/i18n/en/main.js +101 -2
- 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 +15 -0
- package/lib/i18n/tr/command.d.ts.map +1 -1
- package/lib/i18n/tr/command.js +15 -0
- package/lib/i18n/tr/command.js.map +1 -1
- package/lib/i18n/tr/jig.d.ts +67 -0
- package/lib/i18n/tr/jig.d.ts.map +1 -1
- package/lib/i18n/tr/jig.js +67 -0
- package/lib/i18n/tr/jig.js.map +1 -1
- package/lib/i18n/tr/main.d.ts +100 -1
- package/lib/i18n/tr/main.d.ts.map +1 -1
- package/lib/i18n/tr/main.js +101 -2
- package/lib/i18n/tr/main.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +18 -0
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +18 -0
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +67 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +67 -0
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/i18n/zh/main.d.ts +100 -1
- package/lib/i18n/zh/main.d.ts.map +1 -1
- package/lib/i18n/zh/main.js +102 -3
- 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 +20 -4
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
- package/lib/ui/AcUiAciColorDialog.d.ts +57 -0
- package/lib/ui/AcUiAciColorDialog.d.ts.map +1 -0
- package/lib/ui/AcUiAciColorDialog.js +91 -0
- package/lib/ui/AcUiAciColorDialog.js.map +1 -0
- package/lib/ui/AcUiAciPaletteUi.d.ts +118 -0
- package/lib/ui/AcUiAciPaletteUi.d.ts.map +1 -0
- package/lib/ui/AcUiAciPaletteUi.js +521 -0
- package/lib/ui/AcUiAciPaletteUi.js.map +1 -0
- 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/AcUiDialog.d.ts +38 -2
- package/lib/ui/AcUiDialog.d.ts.map +1 -1
- package/lib/ui/AcUiDialog.js +45 -16
- package/lib/ui/AcUiDialog.js.map +1 -1
- package/lib/ui/AcUiDrawStyle.d.ts +60 -0
- package/lib/ui/AcUiDrawStyle.d.ts.map +1 -0
- package/lib/ui/AcUiDrawStyle.js +95 -0
- package/lib/ui/AcUiDrawStyle.js.map +1 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts +108 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts.map +1 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.js +459 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.js.map +1 -0
- package/lib/ui/AcUiFullscreenPanel.d.ts +89 -0
- package/lib/ui/AcUiFullscreenPanel.d.ts.map +1 -0
- package/lib/ui/AcUiFullscreenPanel.js +224 -0
- package/lib/ui/AcUiFullscreenPanel.js.map +1 -0
- package/lib/ui/AcUiHelpPanel.d.ts +49 -0
- package/lib/ui/AcUiHelpPanel.d.ts.map +1 -0
- package/lib/ui/AcUiHelpPanel.js +124 -0
- package/lib/ui/AcUiHelpPanel.js.map +1 -0
- package/lib/ui/AcUiMobileSessionPanel.d.ts +239 -0
- package/lib/ui/AcUiMobileSessionPanel.d.ts.map +1 -0
- package/lib/ui/AcUiMobileSessionPanel.js +822 -0
- package/lib/ui/AcUiMobileSessionPanel.js.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts +160 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.js +318 -0
- package/lib/ui/AcUiShortCutToolbar.js.map +1 -0
- package/lib/ui/AcUiSimpleToolbar.d.ts +110 -0
- package/lib/ui/AcUiSimpleToolbar.d.ts.map +1 -0
- package/lib/ui/AcUiSimpleToolbar.js +431 -0
- package/lib/ui/AcUiSimpleToolbar.js.map +1 -0
- package/lib/ui/AcUiTextHeightDialog.d.ts +85 -0
- package/lib/ui/AcUiTextHeightDialog.d.ts.map +1 -0
- package/lib/ui/AcUiTextHeightDialog.js +205 -0
- package/lib/ui/AcUiTextHeightDialog.js.map +1 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.d.ts +54 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.d.ts.map +1 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.js +128 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.js.map +1 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.d.ts +18 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.d.ts.map +1 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.js +58 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.js.map +1 -0
- package/lib/ui/icons.d.ts +54 -27
- package/lib/ui/icons.d.ts.map +1 -1
- package/lib/ui/icons.js +79 -25
- package/lib/ui/icons.js.map +1 -1
- package/lib/ui/index.d.ts +15 -2
- package/lib/ui/index.d.ts.map +1 -1
- package/lib/ui/index.js +15 -2
- 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/touch-point-tutorial.d.ts +64 -0
- package/lib/ui/touch-point-tutorial.d.ts.map +1 -0
- package/lib/ui/touch-point-tutorial.js +271 -0
- package/lib/ui/touch-point-tutorial.js.map +1 -0
- package/lib/ui-html-entry.d.ts +38 -0
- package/lib/ui-html-entry.d.ts.map +1 -0
- package/lib/ui-html-entry.js +28 -0
- package/lib/ui-html-entry.js.map +1 -0
- package/lib/util/AcApAciPalette.d.ts +7 -0
- package/lib/util/AcApAciPalette.d.ts.map +1 -0
- package/lib/util/AcApAciPalette.js +51 -0
- package/lib/util/AcApAciPalette.js.map +1 -0
- 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/AcApCommandUtil.d.ts +15 -0
- package/lib/util/AcApCommandUtil.d.ts.map +1 -0
- package/lib/util/AcApCommandUtil.js +38 -0
- package/lib/util/AcApCommandUtil.js.map +1 -0
- package/lib/util/AcApCssColor.d.ts +10 -0
- package/lib/util/AcApCssColor.d.ts.map +1 -1
- package/lib/util/AcApCssColor.js +52 -0
- package/lib/util/AcApCssColor.js.map +1 -1
- 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/AcApMeasurementUnits.d.ts +13 -1
- package/lib/util/AcApMeasurementUnits.d.ts.map +1 -1
- package/lib/util/AcApMeasurementUnits.js +144 -10
- package/lib/util/AcApMeasurementUnits.js.map +1 -1
- package/lib/util/AcApMeasurementUtil.d.ts +30 -9
- package/lib/util/AcApMeasurementUtil.d.ts.map +1 -1
- package/lib/util/AcApMeasurementUtil.js +70 -40
- package/lib/util/AcApMeasurementUtil.js.map +1 -1
- package/lib/util/AcApOpenFileErrorMessage.d.ts +25 -0
- package/lib/util/AcApOpenFileErrorMessage.d.ts.map +1 -0
- package/lib/util/AcApOpenFileErrorMessage.js +121 -0
- package/lib/util/AcApOpenFileErrorMessage.js.map +1 -0
- package/lib/util/index.d.ts +6 -0
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +6 -0
- package/lib/util/index.js.map +1 -1
- package/lib/view/AcApReadingMode.d.ts +52 -0
- package/lib/view/AcApReadingMode.d.ts.map +1 -0
- package/lib/view/AcApReadingMode.js +81 -0
- package/lib/view/AcApReadingMode.js.map +1 -0
- package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
- package/lib/view/AcEdViewKeyHandler.js +6 -1
- package/lib/view/AcEdViewKeyHandler.js.map +1 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts +6 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts.map +1 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.js +9 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.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 +67 -15
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrLayoutView.d.ts +25 -1
- package/lib/view/AcTrLayoutView.d.ts.map +1 -1
- package/lib/view/AcTrLayoutView.js +62 -1
- package/lib/view/AcTrLayoutView.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 +128 -15
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +634 -149
- package/lib/view/AcTrView2d.js.map +1 -1
- package/lib/view/AcTrViewSessionState.d.ts +6 -0
- package/lib/view/AcTrViewSessionState.d.ts.map +1 -1
- package/lib/view/index.d.ts +1 -0
- package/lib/view/index.d.ts.map +1 -1
- package/lib/view/index.js +1 -0
- package/lib/view/index.js.map +1 -1
- package/package.json +8 -8
- package/src/ui/icons.ts +387 -293
- package/lib/app/AcDbOpenDatabaseOptions.d.ts +0 -63
- package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +0 -1
- package/lib/app/AcDbOpenDatabaseOptions.js.map +0 -1
- package/lib/command/convert/AcApPngConvertor.d.ts.map +0 -1
- package/lib/command/convert/AcApPngConvertor.js.map +0 -1
- package/lib/ui/AcApDrawStyle.d.ts +0 -81
- package/lib/ui/AcApDrawStyle.d.ts.map +0 -1
- package/lib/ui/AcApDrawStyle.js +0 -170
- package/lib/ui/AcApDrawStyle.js.map +0 -1
- package/lib/ui/AcApDrawStyleToolbar.d.ts +0 -129
- package/lib/ui/AcApDrawStyleToolbar.d.ts.map +0 -1
- package/lib/ui/AcApDrawStyleToolbar.js +0 -607
- package/lib/ui/AcApDrawStyleToolbar.js.map +0 -1
|
@@ -92,13 +92,15 @@ 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,
|
|
99
|
-
import {
|
|
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
|
+
import { acapGetDrawStyleSessionAccessory } from '../command/AcApDrawStyleSession';
|
|
100
|
+
import { registerMarkupCommands } from '../command/markup/AcApRegisterMarkupCommands';
|
|
101
|
+
import { registerMeasureCommands } from '../command/measure/AcApRegisterMeasureCommands';
|
|
102
|
+
import { AcEdCommandStack, AcEdOpenMode, eventBus } from '../editor';
|
|
100
103
|
import { AcApPluginManager } from '../plugin/AcApPluginManager';
|
|
101
|
-
import { AcApDrawStyleToolbar } from '../ui/AcApDrawStyleToolbar';
|
|
102
104
|
import { isScriptQuitCommand, parseScriptLines } from '../util/AcApScriptParser';
|
|
103
105
|
import { acapWithSecondaryDatabase } from '../util/AcApSecondaryDatabase';
|
|
104
106
|
import { AcTrView2d } from '../view';
|
|
@@ -106,14 +108,16 @@ import { AcApBusyIndicator } from './AcApBusyIndicator';
|
|
|
106
108
|
import { acapBindCommandServices } from './AcApCommandServices';
|
|
107
109
|
import { AcApContext } from './AcApContext';
|
|
108
110
|
import { AcApDocSession } from './AcApDocSession';
|
|
111
|
+
import { ACAP_DEFAULT_DOCS_BASE_URL, acapSetDocsBaseUrl } from './AcApDocsUrl';
|
|
109
112
|
import { AcApDocument } from './AcApDocument';
|
|
110
113
|
import { AcApFontLoader } from './AcApFontLoader';
|
|
114
|
+
import { AcApOpenViewMode } from './AcApOpenDatabaseOptions';
|
|
111
115
|
import { acapInstallOpenFileDialog, acapUninstallOpenFileDialog, acapUpdateOpenFileDialogOptions } from './AcApOpenFileDialog';
|
|
112
116
|
import { AcApOpenFileProfiler } from './AcApOpenFileProfiler';
|
|
113
117
|
import { AcApOpenFileProgressController } from './AcApOpenFileProgressController';
|
|
114
118
|
import { checkWebworkerReadiness, DEFAULT_WEBWORKER_FILE_URLS, resetWebworkerReadinessCache } from './AcApWebworkerReadiness';
|
|
115
119
|
import { AcApXrefManager } from './AcApXrefManager';
|
|
116
|
-
import {
|
|
120
|
+
import { acapDisposeNotificationService, acapInstallNotificationService } from './notification';
|
|
117
121
|
var DEFAULT_BASE_URL = 'https://cdn.jsdelivr.net/gh/mlightcad/cad-data';
|
|
118
122
|
/** Default ISO drawing template loaded by {@link AcApDocManager.newDocument}. */
|
|
119
123
|
var DEFAULT_NEW_DRAWING_TEMPLATE = 'templates/acadiso.dxf';
|
|
@@ -165,7 +169,8 @@ var DEFAULT_COMMAND_ALIASES = {
|
|
|
165
169
|
XLINE: ['XL'],
|
|
166
170
|
ZOOM: ['Z'],
|
|
167
171
|
UNDO: ['U'],
|
|
168
|
-
REDO: ['REDO']
|
|
172
|
+
REDO: ['REDO'],
|
|
173
|
+
READINGMODE: ['RM']
|
|
169
174
|
};
|
|
170
175
|
/** AutoCAD-era default font fallback chain used when glyphs are missing. */
|
|
171
176
|
var DEFAULT_FONTS_PRESET = 'modern';
|
|
@@ -194,11 +199,17 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
194
199
|
function AcApDocManager(options) {
|
|
195
200
|
if (options === void 0) { options = {}; }
|
|
196
201
|
var _this = this;
|
|
197
|
-
var _a, _b, _c, _d;
|
|
202
|
+
var _a, _b, _c, _d, _e;
|
|
198
203
|
/** Open document sessions (MDI). The shared view shows {@link _activeSession}. */
|
|
199
204
|
this._sessions = [];
|
|
200
205
|
/** Monotonic id suffix for {@link AcApDocSession.id}. */
|
|
201
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;
|
|
202
213
|
/** Optional OPENPROF session profiler (console stage timings) */
|
|
203
214
|
this._openFileProfiler = new AcApOpenFileProfiler();
|
|
204
215
|
/** Cached worker readiness; null until checked, then true or false */
|
|
@@ -223,8 +234,10 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
223
234
|
workersReady: new AcCmEventManager()
|
|
224
235
|
};
|
|
225
236
|
this._baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : DEFAULT_BASE_URL;
|
|
237
|
+
acapSetDocsBaseUrl((_b = options.docsBaseUrl) !== null && _b !== void 0 ? _b : ACAP_DEFAULT_DOCS_BASE_URL);
|
|
226
238
|
this._commandAliasOverrides = this.normalizeCommandAliasConfig(options.commandAliases);
|
|
227
239
|
this._openDocumentDefaults = options.openDocumentDefaults;
|
|
240
|
+
this._disableExport = options.disableExport === true;
|
|
228
241
|
if (options.useMainThreadDraw) {
|
|
229
242
|
AcTrMTextRenderer.getInstance().setRenderMode('main');
|
|
230
243
|
}
|
|
@@ -238,7 +251,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
238
251
|
void AcTrMTextRenderer.getInstance().setAwaitFontsBeforeDraw(true);
|
|
239
252
|
// Create one empty drawing
|
|
240
253
|
var doc = new AcApDocument();
|
|
241
|
-
var initialSize = (
|
|
254
|
+
var initialSize = (_d = (_c = options.container) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect()) !== null && _d !== void 0 ? _d : {
|
|
242
255
|
width: 300,
|
|
243
256
|
height: 150
|
|
244
257
|
};
|
|
@@ -274,20 +287,29 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
274
287
|
this._activeSession = new AcApDocSession("doc-".concat(this._nextSessionId++), context);
|
|
275
288
|
this._sessions = [this._activeSession];
|
|
276
289
|
acapBindMarkupSession(this._activeSession.id);
|
|
277
|
-
this._drawStyleToolbar = new AcApDrawStyleToolbar(view);
|
|
278
290
|
this._fontLoader = new AcApFontLoader();
|
|
291
|
+
// Share one DefaultFontLoader cache between UI catalog and on-demand draws.
|
|
292
|
+
FontManager.instance.setFontLoader(this._fontLoader.fontLoader);
|
|
279
293
|
var fontsUrl = this.resolveFontsBaseUrl();
|
|
280
294
|
this._fontLoader.baseUrl = fontsUrl;
|
|
281
|
-
// On-demand loads go through FontManager's loader, not AcApFontLoader.
|
|
282
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);
|
|
283
300
|
acdbHostApplicationServices().workingDatabase = doc.database;
|
|
284
301
|
this._commandManager = new AcEdCommandStack();
|
|
285
302
|
this.registerCommands();
|
|
286
303
|
this._pluginManager = new AcApPluginManager(this.context, this._commandManager);
|
|
287
|
-
var busyHost = (
|
|
304
|
+
var busyHost = (_e = options.busyIndicatorHost) !== null && _e !== void 0 ? _e : view.container;
|
|
288
305
|
this._busyIndicatorHost = busyHost;
|
|
289
306
|
this._openFileProgress = new AcApOpenFileProgressController(busyHost);
|
|
290
|
-
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
|
+
});
|
|
291
313
|
this._openFileProgress.setOnHidden(function () { return _this.onOpenProgressHidden(); });
|
|
292
314
|
this._busyIndicator = new AcApBusyIndicator(busyHost);
|
|
293
315
|
acapBindCommandServices({
|
|
@@ -324,6 +346,17 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
324
346
|
enabled: options.builtinOpenFileDialog !== false,
|
|
325
347
|
getOpenDocumentDefaults: function () { return _this.resolveOpenDocumentDefaults(); }
|
|
326
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
|
+
}
|
|
327
360
|
}
|
|
328
361
|
/**
|
|
329
362
|
* Creates the singleton instance with an optional canvas element.
|
|
@@ -364,6 +397,13 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
364
397
|
enumerable: false,
|
|
365
398
|
configurable: true
|
|
366
399
|
});
|
|
400
|
+
/**
|
|
401
|
+
* Returns the singleton when {@link createInstance} has finished, otherwise
|
|
402
|
+
* `undefined`. Safe to call while the constructor is still running.
|
|
403
|
+
*/
|
|
404
|
+
AcApDocManager.tryGetInstance = function () {
|
|
405
|
+
return AcApDocManager._instance;
|
|
406
|
+
};
|
|
367
407
|
/**
|
|
368
408
|
* Destroy the view and unload all plugins
|
|
369
409
|
*/
|
|
@@ -377,8 +417,6 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
377
417
|
case 0: return [4 /*yield*/, this._pluginManager.unloadAllPlugins()];
|
|
378
418
|
case 1:
|
|
379
419
|
_e.sent();
|
|
380
|
-
(_d = this._splitView) === null || _d === void 0 ? void 0 : _d.stopAnimationLoop();
|
|
381
|
-
this._splitView = undefined;
|
|
382
420
|
try {
|
|
383
421
|
for (_a = __values(__spreadArray([], __read(this._sessions), false)), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
384
422
|
session = _b.value;
|
|
@@ -397,7 +435,11 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
397
435
|
finally { if (e_1) throw e_1.error; }
|
|
398
436
|
}
|
|
399
437
|
this._sessions = [];
|
|
438
|
+
(_d = this._splitView) === null || _d === void 0 ? void 0 : _d.dispose();
|
|
439
|
+
this._splitView = undefined;
|
|
440
|
+
this._mainView.dispose();
|
|
400
441
|
acapUninstallOpenFileDialog();
|
|
442
|
+
acapDisposeNotificationService();
|
|
401
443
|
AcTrMTextRenderer.resetInstance();
|
|
402
444
|
resetWebworkerReadinessCache();
|
|
403
445
|
AcApDocManager._instance = undefined;
|
|
@@ -799,13 +841,12 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
799
841
|
enumerable: false,
|
|
800
842
|
configurable: true
|
|
801
843
|
});
|
|
802
|
-
Object.defineProperty(AcApDocManager.prototype, "
|
|
844
|
+
Object.defineProperty(AcApDocManager.prototype, "drawStyleSessionAccessory", {
|
|
803
845
|
/**
|
|
804
|
-
*
|
|
805
|
-
* drawing command is active.
|
|
846
|
+
* Color / font-size session accessory for measurement and markup drawing.
|
|
806
847
|
*/
|
|
807
848
|
get: function () {
|
|
808
|
-
return this.
|
|
849
|
+
return acapGetDrawStyleSessionAccessory(this._mainView);
|
|
809
850
|
},
|
|
810
851
|
enumerable: false,
|
|
811
852
|
configurable: true
|
|
@@ -820,6 +861,17 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
820
861
|
enumerable: false,
|
|
821
862
|
configurable: true
|
|
822
863
|
});
|
|
864
|
+
Object.defineProperty(AcApDocManager.prototype, "disableExport", {
|
|
865
|
+
/**
|
|
866
|
+
* Whether drawing export commands (and host export UI) are disabled.
|
|
867
|
+
* Set via {@link AcApDocManagerOptions.disableExport}; defaults to false.
|
|
868
|
+
*/
|
|
869
|
+
get: function () {
|
|
870
|
+
return this._disableExport;
|
|
871
|
+
},
|
|
872
|
+
enumerable: false,
|
|
873
|
+
configurable: true
|
|
874
|
+
});
|
|
823
875
|
/**
|
|
824
876
|
* Resolves colors for creating new entities.
|
|
825
877
|
*
|
|
@@ -868,6 +920,8 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
868
920
|
* Gets the list of available fonts that can be loaded.
|
|
869
921
|
*
|
|
870
922
|
* Note: These fonts are available for loading but may not be loaded yet.
|
|
923
|
+
* Prefer {@link getAvaiableFonts} when the catalog may not have been fetched yet
|
|
924
|
+
* (lazy font loading no longer preloads metadata at viewer init).
|
|
871
925
|
*
|
|
872
926
|
* @returns Array of available font names
|
|
873
927
|
*/
|
|
@@ -877,6 +931,31 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
877
931
|
enumerable: false,
|
|
878
932
|
configurable: true
|
|
879
933
|
});
|
|
934
|
+
/**
|
|
935
|
+
* Fetches font repository metadata (`fonts.json`) if not already cached.
|
|
936
|
+
* Emits `failed-to-get-avaiable-fonts` and returns `[]` when the catalog cannot
|
|
937
|
+
* be retrieved.
|
|
938
|
+
*/
|
|
939
|
+
AcApDocManager.prototype.getAvaiableFonts = function () {
|
|
940
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
941
|
+
var _a;
|
|
942
|
+
return __generator(this, function (_b) {
|
|
943
|
+
switch (_b.label) {
|
|
944
|
+
case 0:
|
|
945
|
+
_b.trys.push([0, 2, , 3]);
|
|
946
|
+
return [4 /*yield*/, this._fontLoader.getAvaiableFonts()];
|
|
947
|
+
case 1: return [2 /*return*/, _b.sent()];
|
|
948
|
+
case 2:
|
|
949
|
+
_a = _b.sent();
|
|
950
|
+
eventBus.emit('failed-to-get-avaiable-fonts', {
|
|
951
|
+
url: this._fontLoader.baseUrl
|
|
952
|
+
});
|
|
953
|
+
return [2 /*return*/, []];
|
|
954
|
+
case 3: return [2 /*return*/];
|
|
955
|
+
}
|
|
956
|
+
});
|
|
957
|
+
});
|
|
958
|
+
};
|
|
880
959
|
/**
|
|
881
960
|
* Loads the specified fonts for text rendering.
|
|
882
961
|
*
|
|
@@ -905,7 +984,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
905
984
|
*
|
|
906
985
|
* This method loads either the specified fonts or the configured default font
|
|
907
986
|
* fallback chains ({@link DEFAULT_FONTS_PRESET}, currently `modern`: text
|
|
908
|
-
* `
|
|
987
|
+
* `simsun` → `hztxt`, symbol `amgdt`) if no fonts are provided. The loaded
|
|
909
988
|
* fonts are used for rendering CAD text entities like MText and Text in the viewer.
|
|
910
989
|
*
|
|
911
990
|
* It is better to load default fonts when viewer is initialized so that the viewer can
|
|
@@ -1287,6 +1366,39 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1287
1366
|
var target = view !== null && view !== void 0 ? view : this.curView;
|
|
1288
1367
|
target.setCompareDisplay(options);
|
|
1289
1368
|
};
|
|
1369
|
+
/**
|
|
1370
|
+
* Whether transient reading mode is active on a view (default: current view).
|
|
1371
|
+
*
|
|
1372
|
+
* @param view - Target canvas; defaults to {@link curView}.
|
|
1373
|
+
*/
|
|
1374
|
+
AcApDocManager.prototype.isReadingModeEnabled = function (view) {
|
|
1375
|
+
var target = view !== null && view !== void 0 ? view : this.curView;
|
|
1376
|
+
return target.readingModeEnabled;
|
|
1377
|
+
};
|
|
1378
|
+
/**
|
|
1379
|
+
* Enables or disables transient reading mode on a view (default: current view).
|
|
1380
|
+
*
|
|
1381
|
+
* Reading mode forces black linework on a white canvas without modifying the
|
|
1382
|
+
* drawing database. It shares the compare-display colour path, so it is
|
|
1383
|
+
* mutually exclusive with active compare display on that view.
|
|
1384
|
+
*
|
|
1385
|
+
* @param enabled - When true, enables reading mode; when false, restores the
|
|
1386
|
+
* previous canvas background and entity colours.
|
|
1387
|
+
* @param view - Target canvas; defaults to {@link curView}.
|
|
1388
|
+
*/
|
|
1389
|
+
AcApDocManager.prototype.setReadingMode = function (enabled, view) {
|
|
1390
|
+
var target = view !== null && view !== void 0 ? view : this.curView;
|
|
1391
|
+
target.setReadingMode(enabled);
|
|
1392
|
+
};
|
|
1393
|
+
/**
|
|
1394
|
+
* Toggles transient reading mode on a view (default: current view).
|
|
1395
|
+
*
|
|
1396
|
+
* @param view - Target canvas; defaults to {@link curView}.
|
|
1397
|
+
*/
|
|
1398
|
+
AcApDocManager.prototype.toggleReadingMode = function (view) {
|
|
1399
|
+
var target = view !== null && view !== void 0 ? view : this.curView;
|
|
1400
|
+
target.toggleReadingMode();
|
|
1401
|
+
};
|
|
1290
1402
|
/**
|
|
1291
1403
|
* Applies compare-display coloring to one overlay layout.
|
|
1292
1404
|
*
|
|
@@ -1485,8 +1597,9 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1485
1597
|
* Registers all default commands available in the CAD viewer.
|
|
1486
1598
|
*
|
|
1487
1599
|
* This method sets up the command system by registering built-in commands including:
|
|
1488
|
-
* - cdxf: Convert to DXF
|
|
1489
|
-
* - pngout: Export
|
|
1600
|
+
* - cdxf: Convert to DXF (when {@link AcApDocManagerOptions.disableExport} is false)
|
|
1601
|
+
* - pngout / jpgout / bmpout: Export raster images (when
|
|
1602
|
+
* {@link AcApDocManagerOptions.disableExport} is false)
|
|
1490
1603
|
* - log: Output debug information in console
|
|
1491
1604
|
* - open: Open document
|
|
1492
1605
|
* - qnew: Quick new document
|
|
@@ -1521,22 +1634,21 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1521
1634
|
addSystemCommand('cachefont', 'cachefont', new AcApCacheFontCmd());
|
|
1522
1635
|
addSystemCommand('circle', 'circle', new AcApCircleCmd());
|
|
1523
1636
|
addSystemCommand('close', 'close', new AcApCloseCmd());
|
|
1524
|
-
|
|
1525
|
-
|
|
1637
|
+
if (!this._disableExport) {
|
|
1638
|
+
addSystemCommand('bmpout', 'bmpout', new AcApConvertToBmpCmd());
|
|
1639
|
+
addSystemCommand('cdxf', 'cdxf', new AcApConvertToDxfCmd());
|
|
1640
|
+
addSystemCommand('jpgout', 'jpgout', new AcApConvertToJpgCmd());
|
|
1641
|
+
addSystemCommand('pngout', 'pngout', new AcApConvertToPngCmd());
|
|
1642
|
+
}
|
|
1526
1643
|
addSystemCommand('entout', 'entout', new AcApEntityPreviewCmd());
|
|
1527
1644
|
addSystemCommand('ellipse', 'ellipse', new AcApEllipseCmd());
|
|
1528
1645
|
addSystemCommand('erase', 'erase', new AcApEraseCmd());
|
|
1529
1646
|
addSystemCommand('hideobjects', 'hideobjects', new AcApHideObjectsCmd());
|
|
1530
1647
|
addSystemCommand('dimlinear', 'dimlinear', new AcApDimLinearCmd());
|
|
1531
|
-
addSystemCommand
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
addSystemCommand('measurepoint', 'measurepoint', new AcApMeasurePointCmd());
|
|
1536
|
-
addSystemCommand('clearmeasurements', 'clearmeasurements', new AcApClearMeasurementsCmd());
|
|
1537
|
-
addSystemCommand('measurementvis', 'measurementvis', new AcApMeasurementVisibilityCmd());
|
|
1538
|
-
addSystemCommand('measurementexport', 'measurementexport', new AcApMeasurementExportCmd());
|
|
1539
|
-
addSystemCommand('measurementimport', 'measurementimport', new AcApMeasurementImportCmd());
|
|
1648
|
+
registerMeasureCommands(addSystemCommand, {
|
|
1649
|
+
view: this._mainView,
|
|
1650
|
+
commandManager: this._commandManager
|
|
1651
|
+
});
|
|
1540
1652
|
addSystemCommand('-hatch', '-hatch', new AcApHatchCmd());
|
|
1541
1653
|
addSystemCommand('imageattach', 'imageattach', new AcApImageAttachCmd());
|
|
1542
1654
|
addSystemCommand('-insert', '-insert', new AcApInsertCmd());
|
|
@@ -1572,23 +1684,15 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1572
1684
|
addSystemCommand('rectang', 'rectang', new AcApRectCmd());
|
|
1573
1685
|
addSystemCommand('regen', 'regen', new AcApRegenCmd());
|
|
1574
1686
|
addSystemCommand('revcloud', 'revcloud', new AcApRevCloudCmd());
|
|
1575
|
-
addSystemCommand
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
addSystemCommand('markuprect', 'markuprect', new AcApMarkupRectCmd());
|
|
1580
|
-
addSystemCommand('markupcircle', 'markupcircle', new AcApMarkupCircleCmd());
|
|
1581
|
-
addSystemCommand('markuphighlight', 'markuphighlight', new AcApMarkupHighlightCmd());
|
|
1582
|
-
addSystemCommand('markupcallout', 'markupcallout', new AcApMarkupCalloutCmd());
|
|
1583
|
-
addSystemCommand('markupstamp', 'markupstamp', new AcApMarkupStampCmd());
|
|
1584
|
-
addSystemCommand('markupvis', 'markupvis', new AcApMarkupVisibilityCmd());
|
|
1585
|
-
addSystemCommand('clearmarkups', 'clearmarkups', new AcApClearMarkupsCmd());
|
|
1586
|
-
addSystemCommand('markupexport', 'markupexport', new AcApMarkupExportCmd());
|
|
1587
|
-
addSystemCommand('markupimport', 'markupimport', new AcApMarkupImportCmd());
|
|
1687
|
+
registerMarkupCommands(addSystemCommand, {
|
|
1688
|
+
view: this._mainView,
|
|
1689
|
+
commandManager: this._commandManager
|
|
1690
|
+
});
|
|
1588
1691
|
addSystemCommand('select', 'select', new AcApSelectCmd());
|
|
1589
1692
|
addSystemCommand('sketch', 'sketch', new AcApSketchCmd());
|
|
1590
1693
|
addSystemCommand('spline', 'spline', new AcApSplineCmd());
|
|
1591
1694
|
addSystemCommand('switchbg', 'switchbg', new AcApSwitchBgCmd());
|
|
1695
|
+
addSystemCommand('readingmode', 'readingmode', new AcApReadingModeCmd());
|
|
1592
1696
|
addSystemCommand('unisolateobjects', 'unisolateobjects', new AcApUnisolateObjectsCmd());
|
|
1593
1697
|
addSystemCommand('xline', 'xline', new AcApXLineCmd());
|
|
1594
1698
|
addSystemCommand('undo', 'undo', new AcApUndoCmd());
|
|
@@ -1774,7 +1878,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1774
1878
|
*/
|
|
1775
1879
|
AcApDocManager.prototype.executeNamedCommand = function (cmdName, options) {
|
|
1776
1880
|
return __awaiter(this, void 0, void 0, function () {
|
|
1777
|
-
var documentMode, cmd, loaded
|
|
1881
|
+
var documentMode, cmd, loaded;
|
|
1778
1882
|
var _this = this;
|
|
1779
1883
|
var _a, _b;
|
|
1780
1884
|
return __generator(this, function (_c) {
|
|
@@ -1803,22 +1907,42 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1803
1907
|
// starting this one. The previous command's pending prompt is rejected
|
|
1804
1908
|
// with `AcEdPromptStatus.Cancel`, and we await its `trigger()` settlement
|
|
1805
1909
|
// so its `commandEnded` lifecycle finishes before the new one begins.
|
|
1806
|
-
return [4 /*yield*/, this._commandManager.cancelActive()
|
|
1910
|
+
return [4 /*yield*/, this._commandManager.cancelActive()
|
|
1911
|
+
// markActive must run before trigger(): the first getPoint prompt is
|
|
1912
|
+
// opened synchronously until the first await, and the mobile session
|
|
1913
|
+
// accessory reads commandManager.activeCommand.
|
|
1914
|
+
];
|
|
1807
1915
|
case 3:
|
|
1808
1916
|
// AutoCAD-style command exclusivity: cancel any in-flight command before
|
|
1809
1917
|
// starting this one. The previous command's pending prompt is rejected
|
|
1810
1918
|
// with `AcEdPromptStatus.Cancel`, and we await its `trigger()` settlement
|
|
1811
1919
|
// so its `commandEnded` lifecycle finishes before the new one begins.
|
|
1812
1920
|
_c.sent();
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1921
|
+
// markActive must run before trigger(): the first getPoint prompt is
|
|
1922
|
+
// opened synchronously until the first await, and the mobile session
|
|
1923
|
+
// accessory reads commandManager.activeCommand.
|
|
1924
|
+
return [4 /*yield*/, this._commandManager.runActive(cmd, this.curView, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
1925
|
+
return __generator(this, function (_a) {
|
|
1926
|
+
switch (_a.label) {
|
|
1927
|
+
case 0:
|
|
1928
|
+
_a.trys.push([0, , 2, 3]);
|
|
1929
|
+
return [4 /*yield*/, cmd.trigger(this.context)];
|
|
1930
|
+
case 1:
|
|
1931
|
+
_a.sent();
|
|
1932
|
+
return [3 /*break*/, 3];
|
|
1933
|
+
case 2:
|
|
1934
|
+
if (!options.preserveScriptInputs) {
|
|
1935
|
+
this.editor.clearScriptInputs();
|
|
1936
|
+
}
|
|
1937
|
+
return [7 /*endfinally*/];
|
|
1938
|
+
case 3: return [2 /*return*/];
|
|
1939
|
+
}
|
|
1940
|
+
});
|
|
1941
|
+
}); })];
|
|
1821
1942
|
case 4:
|
|
1943
|
+
// markActive must run before trigger(): the first getPoint prompt is
|
|
1944
|
+
// opened synchronously until the first await, and the mobile session
|
|
1945
|
+
// accessory reads commandManager.activeCommand.
|
|
1822
1946
|
_c.sent();
|
|
1823
1947
|
return [2 /*return*/];
|
|
1824
1948
|
}
|
|
@@ -1894,6 +2018,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1894
2018
|
// Drop overlay / markup history before view.clear() disposes HTML.
|
|
1895
2019
|
resetMeasurementSession();
|
|
1896
2020
|
resetMarkupSession();
|
|
2021
|
+
AcApZoomCmd.clearOriginalViews();
|
|
1897
2022
|
this.openProgressView.clear();
|
|
1898
2023
|
}
|
|
1899
2024
|
this.openProgressView.bindDrawDatabase(this.context.doc.database);
|
|
@@ -1902,6 +2027,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1902
2027
|
// open view mode uses zoom-to-fit — not for restored VPORT/saved views.
|
|
1903
2028
|
this.openProgressView.progressiveRendering =
|
|
1904
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;
|
|
1905
2031
|
this._openFileProgress.setSeeThroughOverlay((_b = options === null || options === void 0 ? void 0 : options.progressiveRendering) !== null && _b !== void 0 ? _b : false);
|
|
1906
2032
|
// OPENPROF: start stage timings before db.read / entity flush.
|
|
1907
2033
|
this._openFileProfiler.begin(this.context.doc.database);
|
|
@@ -1952,7 +2078,10 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1952
2078
|
// and frame batch-derived geometry bounds once entities land.
|
|
1953
2079
|
//
|
|
1954
2080
|
// 3. **Saved** (Write default) in model space: restore VPORT
|
|
1955
|
-
// `*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`.
|
|
1956
2085
|
//
|
|
1957
2086
|
// 4. **Fallback** (paper without limits, or model with empty
|
|
1958
2087
|
// extents 鈥?typically DXF): poll `zoomToFitDrawing` and frame
|
|
@@ -1970,8 +2099,10 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1970
2099
|
var layoutLimits = activeLayout === null || activeLayout === void 0 ? void 0 : activeLayout.limits;
|
|
1971
2100
|
var openViewMode = this.resolveOpenViewMode(options);
|
|
1972
2101
|
var progressiveRendering = (_b = options === null || options === void 0 ? void 0 : options.progressiveRendering) !== null && _b !== void 0 ? _b : false;
|
|
2102
|
+
var framedSynchronously = false;
|
|
1973
2103
|
if (isPaperSpaceActive && layoutLimits && !layoutLimits.isEmpty()) {
|
|
1974
2104
|
view.zoomTo(layoutLimits);
|
|
2105
|
+
framedSynchronously = true;
|
|
1975
2106
|
}
|
|
1976
2107
|
else if (openViewMode === AcApOpenViewMode.Extents) {
|
|
1977
2108
|
if (progressiveRendering) {
|
|
@@ -1981,18 +2112,21 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
1981
2112
|
}
|
|
1982
2113
|
else if (!isPaperSpaceActive) {
|
|
1983
2114
|
var canvasAspect = view.width / Math.max(view.height, 1);
|
|
1984
|
-
|
|
1985
|
-
//
|
|
1986
|
-
//
|
|
1987
|
-
// (
|
|
1988
|
-
|
|
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);
|
|
1989
2122
|
if (activeModelViewBox) {
|
|
1990
2123
|
view.zoomTo(activeModelViewBox);
|
|
1991
|
-
|
|
1992
|
-
else if (this.hasUsableDrawingExtents(db)) {
|
|
1993
|
-
view.zoomTo(new AcGeBox2d(db.extmin, db.extmax));
|
|
2124
|
+
framedSynchronously = true;
|
|
1994
2125
|
}
|
|
1995
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).
|
|
1996
2130
|
if (progressiveRendering) {
|
|
1997
2131
|
view.beginProgressiveOpenFit();
|
|
1998
2132
|
}
|
|
@@ -2012,6 +2146,11 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2012
2146
|
// above relies on `curView` being an `AcTrView2d`, and the
|
|
2013
2147
|
// markLayoutAsInitialized method is part of that contract.
|
|
2014
2148
|
view.markLayoutAsInitialized(db.currentSpaceId);
|
|
2149
|
+
// `zoomToFitDrawing` frames asynchronously; capture original view in
|
|
2150
|
+
// its completion callback instead of here (pre-fit camera is wrong).
|
|
2151
|
+
if (framedSynchronously) {
|
|
2152
|
+
AcApZoomCmd.rememberOriginalView(view, db.currentSpaceId);
|
|
2153
|
+
}
|
|
2015
2154
|
// OPENPROF: db.read is done; wait for batchConvert to drain, then print.
|
|
2016
2155
|
this._openFileProfiler.markReadCompleteAndScheduleReport(view);
|
|
2017
2156
|
}
|
|
@@ -2021,33 +2160,6 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2021
2160
|
this.regen();
|
|
2022
2161
|
}
|
|
2023
2162
|
};
|
|
2024
|
-
/**
|
|
2025
|
-
* Checks whether EXTMIN/EXTMAX describe a real drawing area usable for
|
|
2026
|
-
* view framing.
|
|
2027
|
-
*
|
|
2028
|
-
* AutoCAD marks unsaved/invalid extents with ±1e20 sentinel values (and
|
|
2029
|
-
* some writers emit other degenerate near-zero/huge pairs). Framing such
|
|
2030
|
-
* a box zooms the camera out to effectively infinity and the drawing
|
|
2031
|
-
* renders as a black canvas, so those sentinels must fall through to
|
|
2032
|
-
* `zoomToFitDrawing()` instead.
|
|
2033
|
-
*
|
|
2034
|
-
* @param db - Input database whose header extents are checked.
|
|
2035
|
-
* @returns True when EXTMIN/EXTMAX are finite, sane and span a real area.
|
|
2036
|
-
* @private
|
|
2037
|
-
*/
|
|
2038
|
-
AcApDocManager.prototype.hasUsableDrawingExtents = function (db) {
|
|
2039
|
-
if (db.extents.isEmpty())
|
|
2040
|
-
return false;
|
|
2041
|
-
// Anything at or beyond this magnitude is a "no saved extents"
|
|
2042
|
-
// sentinel, not a coordinate a real drawing occupies.
|
|
2043
|
-
var SENTINEL_LIMIT = 1e15;
|
|
2044
|
-
var values = [db.extmin.x, db.extmin.y, db.extmax.x, db.extmax.y];
|
|
2045
|
-
if (values.some(function (value) { return !Number.isFinite(value); }) ||
|
|
2046
|
-
values.some(function (value) { return Math.abs(value) >= SENTINEL_LIMIT; })) {
|
|
2047
|
-
return false;
|
|
2048
|
-
}
|
|
2049
|
-
return db.extmax.x > db.extmin.x && db.extmax.y > db.extmin.y;
|
|
2050
|
-
};
|
|
2051
2163
|
/**
|
|
2052
2164
|
* Checks whether the current document's database already has usable content
|
|
2053
2165
|
* even though the open operation reported failure.
|
|
@@ -2082,7 +2194,8 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2082
2194
|
if (options == null) {
|
|
2083
2195
|
options = {
|
|
2084
2196
|
drawNoPlotLayers: false,
|
|
2085
|
-
progressiveRendering: false
|
|
2197
|
+
progressiveRendering: false,
|
|
2198
|
+
waitForTextGeometry: false
|
|
2086
2199
|
};
|
|
2087
2200
|
}
|
|
2088
2201
|
else {
|
|
@@ -2093,6 +2206,9 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2093
2206
|
if (options.progressiveRendering == null) {
|
|
2094
2207
|
options.progressiveRendering = false;
|
|
2095
2208
|
}
|
|
2209
|
+
if (options.waitForTextGeometry == null) {
|
|
2210
|
+
options.waitForTextGeometry = false;
|
|
2211
|
+
}
|
|
2096
2212
|
}
|
|
2097
2213
|
return options;
|
|
2098
2214
|
};
|
|
@@ -2247,7 +2363,7 @@ var AcApDocManager = /** @class */ (function () {
|
|
|
2247
2363
|
var _a;
|
|
2248
2364
|
var mtextRenderer = AcTrMTextRenderer.getInstance();
|
|
2249
2365
|
mtextRenderer.initialize((_a = webworkerFileUrls === null || webworkerFileUrls === void 0 ? void 0 : webworkerFileUrls.mtextRender) !== null && _a !== void 0 ? _a : DEFAULT_WEBWORKER_FILE_URLS.mtextRender);
|
|
2250
|
-
void mtextRenderer.setDefaultFonts(
|
|
2366
|
+
void mtextRenderer.setDefaultFonts(__spreadArray([], __read(FontManager.instance.defaultFonts), false));
|
|
2251
2367
|
};
|
|
2252
2368
|
/**
|
|
2253
2369
|
* Loads plugins automatically based on the provided configuration.
|