@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
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { eventBus } from '../../editor/global/eventBus';
|
|
13
|
+
import { acapAnalyzeUnsupportedDrawing } from '../../util/AcApAnalyzeUnsupportedDrawing';
|
|
14
|
+
import { AcApFontUtil } from '../../util/AcApFontUtil';
|
|
15
|
+
import { acapFormatFontsMissedReplacement } from '../../util/AcApFormatFontMissedMessage';
|
|
16
|
+
import { acapFormatUnsupportedEntitiesMessage, acapI18nTranslate } from '../../util/AcApFormatUnsupportedEntitiesMessage';
|
|
17
|
+
import { acapFormatOpenFileErrorMessage, acapFormatOpenFileErrorTitle } from '../../util/AcApOpenFileErrorMessage';
|
|
18
|
+
/**
|
|
19
|
+
* Subscribes to engine events and forwards user-visible alerts into the active
|
|
20
|
+
* {@link AcApNotificationCenter}.
|
|
21
|
+
*
|
|
22
|
+
* Shared by the built-in DOM center and host overrides (e.g. cad-viewer).
|
|
23
|
+
* Notifications are tagged with the current {@link AcApDocSession.id}.
|
|
24
|
+
*/
|
|
25
|
+
var AcApNotificationEventBridge = /** @class */ (function () {
|
|
26
|
+
/**
|
|
27
|
+
* @param docManager - Manager whose events and active session are observed.
|
|
28
|
+
* @param getCenter - Accessor for the currently installed notification center.
|
|
29
|
+
*/
|
|
30
|
+
function AcApNotificationEventBridge(docManager, getCenter) {
|
|
31
|
+
var _this = this;
|
|
32
|
+
/** Parser unknown-entity counts keyed by {@link AcApDocSession.id}. */
|
|
33
|
+
this._pendingUnknownBySession = new Map();
|
|
34
|
+
/**
|
|
35
|
+
* Sessions that already received an unsupported-entity pass for the current
|
|
36
|
+
* open. Prevents tab switches from clearing and re-scanning (and from
|
|
37
|
+
* dropping warnings that depended solely on the one-shot PARSE stats).
|
|
38
|
+
*/
|
|
39
|
+
this._unsupportedNotifiedSessions = new Set();
|
|
40
|
+
/** Whether {@link install} has attached listeners. */
|
|
41
|
+
this._installed = false;
|
|
42
|
+
/**
|
|
43
|
+
* Handles generic `message` bus events and mirrors them into the center.
|
|
44
|
+
*
|
|
45
|
+
* @param params - Message text and severity.
|
|
46
|
+
*/
|
|
47
|
+
this._onMessage = function (params) {
|
|
48
|
+
var center = _this._getCenter();
|
|
49
|
+
var title = params.type === 'error'
|
|
50
|
+
? acapI18nTranslate('main.notification.title.systemError')
|
|
51
|
+
: params.type === 'warning'
|
|
52
|
+
? acapI18nTranslate('main.notification.title.systemWarning')
|
|
53
|
+
: params.type === 'success'
|
|
54
|
+
? acapI18nTranslate('main.notification.title.systemMessage')
|
|
55
|
+
: acapI18nTranslate('main.notification.title.systemInfo');
|
|
56
|
+
var options = _this.sessionOptions();
|
|
57
|
+
switch (params.type) {
|
|
58
|
+
case 'error':
|
|
59
|
+
center.error(title, params.message, options);
|
|
60
|
+
break;
|
|
61
|
+
case 'warning':
|
|
62
|
+
center.warning(title, params.message, options);
|
|
63
|
+
break;
|
|
64
|
+
case 'success':
|
|
65
|
+
center.success(title, params.message, options);
|
|
66
|
+
break;
|
|
67
|
+
default:
|
|
68
|
+
center.info(title, params.message, options);
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Handles fonts that failed to load from the remote repository.
|
|
74
|
+
*
|
|
75
|
+
* @param params - Failed font descriptors.
|
|
76
|
+
*/
|
|
77
|
+
this._onFontsNotLoaded = function (params) {
|
|
78
|
+
var fontNames = params.fonts.map(function (font) { return font.fontName; });
|
|
79
|
+
_this._getCenter().error(acapI18nTranslate('main.notification.title.fontNotLoaded'), acapI18nTranslate('main.message.fontsNotLoaded', {
|
|
80
|
+
fonts: acapFormatFontsMissedReplacement(fontNames)
|
|
81
|
+
}), __assign({ source: 'font-missed', fontNames: fontNames, persistent: true }, _this.sessionOptions()));
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Handles fonts that could not be found in the remote repository.
|
|
85
|
+
*
|
|
86
|
+
* @param params - Missing font names.
|
|
87
|
+
*/
|
|
88
|
+
this._onFontsNotFound = function (params) {
|
|
89
|
+
_this._getCenter().warning(acapI18nTranslate('main.notification.title.fontNotFound'), acapI18nTranslate('main.message.fontsNotFound', {
|
|
90
|
+
fonts: acapFormatFontsMissedReplacement(params.fonts)
|
|
91
|
+
}), __assign({ source: 'font-missed', fontNames: params.fonts }, _this.sessionOptions()));
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Handles a single font required by the drawing that is unavailable at render time.
|
|
95
|
+
*
|
|
96
|
+
* Replaces any prior `font-missed` entry for the same font name.
|
|
97
|
+
*
|
|
98
|
+
* @param params - Font name and how many text objects require it.
|
|
99
|
+
*/
|
|
100
|
+
this._onFontNotFound = function (params) {
|
|
101
|
+
var fontName = params.fontName.trim();
|
|
102
|
+
if (!fontName)
|
|
103
|
+
return;
|
|
104
|
+
var center = _this._getCenter();
|
|
105
|
+
center.removeWhere(function (notification) {
|
|
106
|
+
var _a;
|
|
107
|
+
return notification.source === 'font-missed' &&
|
|
108
|
+
((_a = notification.fontNames) === null || _a === void 0 ? void 0 : _a.includes(fontName)) === true;
|
|
109
|
+
});
|
|
110
|
+
center.warning(acapI18nTranslate('main.notification.title.fontNotFound'), acapI18nTranslate('main.message.fontMissedInDrawing', {
|
|
111
|
+
font: fontName,
|
|
112
|
+
count: params.count,
|
|
113
|
+
replacementFont: AcApFontUtil.getReplacementFontName(fontName)
|
|
114
|
+
}), __assign({ source: 'font-missed', fontNames: [fontName] }, _this.sessionOptions()));
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Prunes resolved `font-missed` notifications when missed-data changes.
|
|
118
|
+
*/
|
|
119
|
+
this._onMissedDataChanged = function () {
|
|
120
|
+
var missedFonts = Object.keys(_this._docManager.curView.missedData.fonts);
|
|
121
|
+
_this._getCenter().removeResolvedFontMissedNotifications(missedFonts);
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Handles failure to fetch the available-fonts catalog.
|
|
125
|
+
*
|
|
126
|
+
* @param params - Catalog URL that failed.
|
|
127
|
+
*/
|
|
128
|
+
this._onFailedToGetFonts = function (params) {
|
|
129
|
+
_this._getCenter().error(acapI18nTranslate('main.notification.title.systemError'), acapI18nTranslate('main.message.failedToGetAvaiableFonts', {
|
|
130
|
+
url: params.url
|
|
131
|
+
}), _this.sessionOptions());
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Handles open-file failures and writes a persistent error notification.
|
|
135
|
+
*
|
|
136
|
+
* @param params - File name and structured error metadata.
|
|
137
|
+
*/
|
|
138
|
+
this._onFailedToOpenFile = function (params) {
|
|
139
|
+
_this._getCenter().error(acapFormatOpenFileErrorTitle(params.errorCode), acapFormatOpenFileErrorMessage(params), _this.sessionOptions());
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Captures `unknownEntityCount` from PARSE END for the active session.
|
|
143
|
+
*
|
|
144
|
+
* @param data - Open-file progress payload.
|
|
145
|
+
*/
|
|
146
|
+
this._onOpenFileProgress = function (data) {
|
|
147
|
+
var _a;
|
|
148
|
+
if (data.stage === 'CONVERSION' &&
|
|
149
|
+
data.subStage === 'PARSE' &&
|
|
150
|
+
data.subStageStatus === 'END' &&
|
|
151
|
+
data.data) {
|
|
152
|
+
var stats = data.data;
|
|
153
|
+
var sessionId = _this._docManager.activeSessionId;
|
|
154
|
+
if (sessionId) {
|
|
155
|
+
_this._pendingUnknownBySession.set(sessionId, (_a = stats.unknownEntityCount) !== null && _a !== void 0 ? _a : 0);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Resets unsupported-entity bookkeeping before a new open starts.
|
|
161
|
+
*/
|
|
162
|
+
this._onDocumentToBeOpened = function () {
|
|
163
|
+
_this.syncActiveSession();
|
|
164
|
+
var sessionId = _this._docManager.activeSessionId;
|
|
165
|
+
if (sessionId) {
|
|
166
|
+
_this.forgetSession(sessionId);
|
|
167
|
+
_this._pendingUnknownBySession.set(sessionId, 0);
|
|
168
|
+
}
|
|
169
|
+
_this._getCenter().removeBySource('unsupported-entities');
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Syncs the active session when a document is created.
|
|
173
|
+
*/
|
|
174
|
+
this._onDocumentCreated = function () {
|
|
175
|
+
_this.syncActiveSession();
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Syncs the session and runs unsupported-entity analysis on first activation.
|
|
179
|
+
*
|
|
180
|
+
* Subsequent activations for the same open skip re-analysis.
|
|
181
|
+
*/
|
|
182
|
+
this._onDocumentActivated = function () {
|
|
183
|
+
_this.syncActiveSession();
|
|
184
|
+
var sessionId = _this._docManager.activeSessionId;
|
|
185
|
+
// Tab switch / re-activate: keep the existing unsupported warning and skip
|
|
186
|
+
// another full-database proxy scan.
|
|
187
|
+
if (sessionId && _this._unsupportedNotifiedSessions.has(sessionId)) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
_this.notifyUnsupportedEntities();
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Clears the closed session's notifications and local analysis state.
|
|
194
|
+
*
|
|
195
|
+
* @param args - Document about to be destroyed.
|
|
196
|
+
*/
|
|
197
|
+
this._onDocumentToBeDestroyed = function (args) {
|
|
198
|
+
var session = _this._docManager.sessionFor(args.doc);
|
|
199
|
+
if (session) {
|
|
200
|
+
_this.forgetSession(session.id);
|
|
201
|
+
_this._getCenter().clearSession(session.id);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
this._docManager = docManager;
|
|
205
|
+
this._getCenter = getCenter;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Builds options that stamp the active session id onto a new notification.
|
|
209
|
+
*
|
|
210
|
+
* @returns `{ sessionId }` when a session is active, otherwise `{}`.
|
|
211
|
+
*/
|
|
212
|
+
AcApNotificationEventBridge.prototype.sessionOptions = function () {
|
|
213
|
+
var sessionId = this._docManager.activeSessionId;
|
|
214
|
+
return sessionId ? { sessionId: sessionId } : {};
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Pushes the manager's active session id into the center.
|
|
218
|
+
*/
|
|
219
|
+
AcApNotificationEventBridge.prototype.syncActiveSession = function () {
|
|
220
|
+
this._getCenter().setActiveSession(this._docManager.activeSessionId);
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Drops per-session PARSE / analysis bookkeeping for a closed or reopened session.
|
|
224
|
+
*
|
|
225
|
+
* @param sessionId - Session to forget.
|
|
226
|
+
*/
|
|
227
|
+
AcApNotificationEventBridge.prototype.forgetSession = function (sessionId) {
|
|
228
|
+
this._pendingUnknownBySession.delete(sessionId);
|
|
229
|
+
this._unsupportedNotifiedSessions.delete(sessionId);
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Attaches event-bus and document-manager listeners. Idempotent.
|
|
233
|
+
*/
|
|
234
|
+
AcApNotificationEventBridge.prototype.install = function () {
|
|
235
|
+
if (this._installed)
|
|
236
|
+
return;
|
|
237
|
+
this._installed = true;
|
|
238
|
+
this.syncActiveSession();
|
|
239
|
+
eventBus.on('message', this._onMessage);
|
|
240
|
+
eventBus.on('fonts-not-loaded', this._onFontsNotLoaded);
|
|
241
|
+
eventBus.on('fonts-not-found', this._onFontsNotFound);
|
|
242
|
+
eventBus.on('font-not-found', this._onFontNotFound);
|
|
243
|
+
eventBus.on('missed-data-changed', this._onMissedDataChanged);
|
|
244
|
+
eventBus.on('failed-to-get-avaiable-fonts', this._onFailedToGetFonts);
|
|
245
|
+
eventBus.on('failed-to-open-file', this._onFailedToOpenFile);
|
|
246
|
+
eventBus.on('open-file-progress', this._onOpenFileProgress);
|
|
247
|
+
this._docManager.events.documentToBeOpened.addEventListener(this._onDocumentToBeOpened);
|
|
248
|
+
this._docManager.events.documentCreated.addEventListener(this._onDocumentCreated);
|
|
249
|
+
this._docManager.events.documentActivated.addEventListener(this._onDocumentActivated);
|
|
250
|
+
this._docManager.events.documentToBeDestroyed.addEventListener(this._onDocumentToBeDestroyed);
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Detaches all listeners and clears per-session analysis bookkeeping. Idempotent.
|
|
254
|
+
*/
|
|
255
|
+
AcApNotificationEventBridge.prototype.uninstall = function () {
|
|
256
|
+
if (!this._installed)
|
|
257
|
+
return;
|
|
258
|
+
this._installed = false;
|
|
259
|
+
eventBus.off('message', this._onMessage);
|
|
260
|
+
eventBus.off('fonts-not-loaded', this._onFontsNotLoaded);
|
|
261
|
+
eventBus.off('fonts-not-found', this._onFontsNotFound);
|
|
262
|
+
eventBus.off('font-not-found', this._onFontNotFound);
|
|
263
|
+
eventBus.off('missed-data-changed', this._onMissedDataChanged);
|
|
264
|
+
eventBus.off('failed-to-get-avaiable-fonts', this._onFailedToGetFonts);
|
|
265
|
+
eventBus.off('failed-to-open-file', this._onFailedToOpenFile);
|
|
266
|
+
eventBus.off('open-file-progress', this._onOpenFileProgress);
|
|
267
|
+
this._docManager.events.documentToBeOpened.removeEventListener(this._onDocumentToBeOpened);
|
|
268
|
+
this._docManager.events.documentCreated.removeEventListener(this._onDocumentCreated);
|
|
269
|
+
this._docManager.events.documentActivated.removeEventListener(this._onDocumentActivated);
|
|
270
|
+
this._docManager.events.documentToBeDestroyed.removeEventListener(this._onDocumentToBeDestroyed);
|
|
271
|
+
this._pendingUnknownBySession.clear();
|
|
272
|
+
this._unsupportedNotifiedSessions.clear();
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Analyzes the current document for unsupported entities and writes a warning
|
|
276
|
+
* when {@link AcApUnsupportedDrawingAnalysis.shouldWarn} is true.
|
|
277
|
+
*
|
|
278
|
+
* Marks the active session as notified so later tab switches do not rescan.
|
|
279
|
+
*/
|
|
280
|
+
AcApNotificationEventBridge.prototype.notifyUnsupportedEntities = function () {
|
|
281
|
+
var _a;
|
|
282
|
+
var doc = this._docManager.curDocument;
|
|
283
|
+
if (!doc)
|
|
284
|
+
return;
|
|
285
|
+
var sessionId = this._docManager.activeSessionId;
|
|
286
|
+
var unknownCount = sessionId
|
|
287
|
+
? ((_a = this._pendingUnknownBySession.get(sessionId)) !== null && _a !== void 0 ? _a : 0)
|
|
288
|
+
: 0;
|
|
289
|
+
var classOnly = acapAnalyzeUnsupportedDrawing(doc.database, unknownCount, {
|
|
290
|
+
scanProxies: false
|
|
291
|
+
});
|
|
292
|
+
var analysis = classOnly.isTianzhengDrawing || classOnly.unknownEntityCount > 0
|
|
293
|
+
? classOnly
|
|
294
|
+
: acapAnalyzeUnsupportedDrawing(doc.database, unknownCount, {
|
|
295
|
+
scanProxies: true
|
|
296
|
+
});
|
|
297
|
+
if (sessionId) {
|
|
298
|
+
this._unsupportedNotifiedSessions.add(sessionId);
|
|
299
|
+
}
|
|
300
|
+
var center = this._getCenter();
|
|
301
|
+
center.removeBySource('unsupported-entities');
|
|
302
|
+
if (!analysis.shouldWarn)
|
|
303
|
+
return;
|
|
304
|
+
center.warning(acapI18nTranslate('main.notification.title.parsingWarning'), acapFormatUnsupportedEntitiesMessage(analysis), __assign({ source: 'unsupported-entities', persistent: true }, this.sessionOptions()));
|
|
305
|
+
};
|
|
306
|
+
return AcApNotificationEventBridge;
|
|
307
|
+
}());
|
|
308
|
+
export { AcApNotificationEventBridge };
|
|
309
|
+
//# sourceMappingURL=AcApNotificationEventBridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApNotificationEventBridge.js","sourceRoot":"","sources":["../../../src/app/notification/AcApNotificationEventBridge.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AACvD,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAA;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB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YAAE,OAAM;QAEhB,IAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,CAAA;QAClD,IAAM,YAAY,GAAG,SAAS;YAC5B,CAAC,CAAC,CAAC,MAAA,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,SAAS,CAAC,mCAAI,CAAC,CAAC;YACrD,CAAC,CAAC,CAAC,CAAA;QAEL,IAAM,SAAS,GAAG,6BAA6B,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAY,EAAE;YAC1E,WAAW,EAAE,KAAK;SACnB,CAAC,CAAA;QACF,IAAM,QAAQ,GACZ,SAAS,CAAC,kBAAkB,IAAI,SAAS,CAAC,kBAAkB,GAAG,CAAC;YAC9D,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,6BAA6B,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAY,EAAE;gBACxD,WAAW,EAAE,IAAI;aAClB,CAAC,CAAA;QAER,IAAI,SAAS,EAAE,CAAC;YACd,IAAI,CAAC,4BAA4B,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;QAClD,CAAC;QAED,IAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAA;QAChC,MAAM,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAA;QAC7C,IAAI,CAAC,QAAQ,CAAC,UAAU;YAAE,OAAM;QAEhC,MAAM,CAAC,OAAO,CACZ,iBAAiB,CAAC,wCAAwC,CAAC,EAC3D,oCAAoC,CAAC,QAAQ,CAAC,aAE5C,MAAM,EAAE,sBAAsB,EAC9B,UAAU,EAAE,IAAI,IACb,IAAI,CAAC,cAAc,EAAE,EAE3B,CAAA;IACH,CAAC;IACH,kCAAC;AAAD,CAAC,AAvXD,IAuXC"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { type AcUiNotificationBellPlacement } from '../../ui/AcUiDefaultNotificationUi';
|
|
2
|
+
import type { AcApDocManager } from '../AcApDocManager';
|
|
3
|
+
import type { AcApNotificationCenter } from './AcApNotificationTypes';
|
|
4
|
+
export type { AcUiNotificationBellPlacement };
|
|
5
|
+
/**
|
|
6
|
+
* Options for {@link AcApNotificationService.install} /
|
|
7
|
+
* {@link acapInstallNotificationService}.
|
|
8
|
+
*/
|
|
9
|
+
export interface AcApNotificationServiceOptions {
|
|
10
|
+
/**
|
|
11
|
+
* Host element for the built-in notification bell/panel.
|
|
12
|
+
* Defaults to the active view canvas container (`curView.container`) so the
|
|
13
|
+
* chrome is positioned relative to the drawing area, not the browser window.
|
|
14
|
+
*/
|
|
15
|
+
host?: HTMLElement;
|
|
16
|
+
/**
|
|
17
|
+
* When `false`, skips installing the built-in DOM UI (bridge still runs so a
|
|
18
|
+
* later custom center receives events). Default `true`.
|
|
19
|
+
*/
|
|
20
|
+
showDefaultUi?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* When `false`, skips the event bridge entirely. Default `true`.
|
|
23
|
+
*/
|
|
24
|
+
enableBridge?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Corner for the built-in notification bell.
|
|
27
|
+
*
|
|
28
|
+
* When omitted: phone uses `top-right` (below the shortcut toolbar); pad and
|
|
29
|
+
* desktop use `bottom-right`. Pass a value to override, or call
|
|
30
|
+
* {@link acapSetNotificationUiPlacement} later.
|
|
31
|
+
*/
|
|
32
|
+
placement?: AcUiNotificationBellPlacement;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Owns the active {@link AcApNotificationCenter}, optional default DOM UI, and
|
|
36
|
+
* the shared event bridge.
|
|
37
|
+
*
|
|
38
|
+
* Hosts override the center with {@link acapSetNotificationCenter}; passing
|
|
39
|
+
* `null` restores the built-in store + UI.
|
|
40
|
+
*/
|
|
41
|
+
declare class AcApNotificationService {
|
|
42
|
+
/** Currently active center (built-in store or host adapter). */
|
|
43
|
+
private _center;
|
|
44
|
+
/** Built-in store instance used when no custom center is installed. */
|
|
45
|
+
private _defaultStore;
|
|
46
|
+
/** Optional default DOM bell / panel ({@link AcUiDefaultNotificationUi}). */
|
|
47
|
+
private _defaultUi?;
|
|
48
|
+
/** Shared event bridge that writes into {@link _center}. */
|
|
49
|
+
private _bridge?;
|
|
50
|
+
/** Explicit host for the default UI, when provided at install time. */
|
|
51
|
+
private _host?;
|
|
52
|
+
/** Whether the built-in DOM UI should be mounted when not overridden. */
|
|
53
|
+
private _showDefaultUi;
|
|
54
|
+
/** Explicit bell placement; `undefined` uses layout defaults. */
|
|
55
|
+
private _placement?;
|
|
56
|
+
/** `true` when {@link _center} is a host-supplied override. */
|
|
57
|
+
private _isCustom;
|
|
58
|
+
/** Document manager last passed to {@link install}. */
|
|
59
|
+
private _docManager?;
|
|
60
|
+
/**
|
|
61
|
+
* Installs bridge + default UI for a document manager instance.
|
|
62
|
+
* Safe to call once per {@link AcApDocManager.createInstance}.
|
|
63
|
+
*
|
|
64
|
+
* @param docManager - Manager whose sessions and events are observed.
|
|
65
|
+
* @param options - Bridge / UI install flags.
|
|
66
|
+
*/
|
|
67
|
+
install(docManager: AcApDocManager, options?: AcApNotificationServiceOptions): void;
|
|
68
|
+
/**
|
|
69
|
+
* Explicit bell placement, or `undefined` when using layout defaults.
|
|
70
|
+
*/
|
|
71
|
+
get placement(): AcUiNotificationBellPlacement | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Sets or clears the built-in notification bell corner.
|
|
74
|
+
*
|
|
75
|
+
* Applies immediately when the default DOM UI is mounted. Pass `undefined`
|
|
76
|
+
* to restore layout-based defaults.
|
|
77
|
+
*
|
|
78
|
+
* @param placement - Corner placement, or `undefined` for auto.
|
|
79
|
+
*/
|
|
80
|
+
setPlacement(placement: AcUiNotificationBellPlacement | undefined): void;
|
|
81
|
+
/**
|
|
82
|
+
* Active notification center (built-in or host override).
|
|
83
|
+
*/
|
|
84
|
+
get center(): AcApNotificationCenter;
|
|
85
|
+
/**
|
|
86
|
+
* Whether a host-supplied center is currently installed.
|
|
87
|
+
*/
|
|
88
|
+
get isCustom(): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Replaces the active notification center.
|
|
91
|
+
*
|
|
92
|
+
* @param center - Custom center, or `null` to restore the built-in default.
|
|
93
|
+
*/
|
|
94
|
+
setCenter(center: AcApNotificationCenter | null): void;
|
|
95
|
+
/**
|
|
96
|
+
* Restores the built-in store and remounts the default UI when enabled.
|
|
97
|
+
*/
|
|
98
|
+
private restoreDefault;
|
|
99
|
+
/**
|
|
100
|
+
* Resolves the DOM host for the default bell / panel.
|
|
101
|
+
*
|
|
102
|
+
* @returns Explicit host, view container, or `document.body`.
|
|
103
|
+
*/
|
|
104
|
+
private resolveHost;
|
|
105
|
+
/**
|
|
106
|
+
* Mounts (or remounts) {@link AcUiDefaultNotificationUi} on {@link resolveHost}.
|
|
107
|
+
*/
|
|
108
|
+
private mountDefaultUi;
|
|
109
|
+
/**
|
|
110
|
+
* Tears down the default DOM UI if present.
|
|
111
|
+
*/
|
|
112
|
+
private disposeDefaultUi;
|
|
113
|
+
/**
|
|
114
|
+
* Tears down bridge and UI (e.g. DocManager destroy).
|
|
115
|
+
*
|
|
116
|
+
* Resets to a fresh built-in store so a later {@link install} / host
|
|
117
|
+
* {@link setCenter} does not reuse a disposed custom center instance.
|
|
118
|
+
*/
|
|
119
|
+
dispose(): void;
|
|
120
|
+
}
|
|
121
|
+
/** Process-wide notification service singleton. */
|
|
122
|
+
declare const notificationService: AcApNotificationService;
|
|
123
|
+
/**
|
|
124
|
+
* Returns the active notification center (built-in or host override).
|
|
125
|
+
*
|
|
126
|
+
* @returns The center currently owned by the service.
|
|
127
|
+
*/
|
|
128
|
+
export declare function acapNotificationCenter(): AcApNotificationCenter;
|
|
129
|
+
/**
|
|
130
|
+
* Installs / replaces the host notification center.
|
|
131
|
+
*
|
|
132
|
+
* Pass `null` to restore the built-in DOM notification center.
|
|
133
|
+
*
|
|
134
|
+
* @param center - Custom center adapter, or `null` to restore the default.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```ts
|
|
138
|
+
* // cad-viewer
|
|
139
|
+
* acapSetNotificationCenter(vueNotificationAdapter)
|
|
140
|
+
*
|
|
141
|
+
* // later / on unmount
|
|
142
|
+
* acapSetNotificationCenter(null)
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
export declare function acapSetNotificationCenter(center: AcApNotificationCenter | null): void;
|
|
146
|
+
/**
|
|
147
|
+
* Returns the explicit built-in notification bell placement, if any.
|
|
148
|
+
*
|
|
149
|
+
* @returns Placement override, or `undefined` when using layout defaults.
|
|
150
|
+
*/
|
|
151
|
+
export declare function acapGetNotificationUiPlacement(): AcUiNotificationBellPlacement | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* Sets the built-in notification bell corner (default DOM UI only).
|
|
154
|
+
*
|
|
155
|
+
* Pass `undefined` / omit override via `null` to restore layout defaults:
|
|
156
|
+
* phone `top-right`, pad / desktop `bottom-right`.
|
|
157
|
+
*
|
|
158
|
+
* Has no effect when a custom center replaced the default UI
|
|
159
|
+
* (`showDefaultUi: false` or {@link acapSetNotificationCenter}).
|
|
160
|
+
*
|
|
161
|
+
* @param placement - Corner placement, or `null` / `undefined` for auto.
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* ```ts
|
|
165
|
+
* acapSetNotificationUiPlacement('bottom-left')
|
|
166
|
+
* acapSetNotificationUiPlacement(null) // restore auto
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
export declare function acapSetNotificationUiPlacement(placement: AcUiNotificationBellPlacement | null | undefined): void;
|
|
170
|
+
/**
|
|
171
|
+
* @internal Used by {@link AcApDocManager}.
|
|
172
|
+
*
|
|
173
|
+
* @param docManager - Manager to bind the bridge to.
|
|
174
|
+
* @param options - Bridge / UI install flags.
|
|
175
|
+
*/
|
|
176
|
+
export declare function acapInstallNotificationService(docManager: AcApDocManager, options?: AcApNotificationServiceOptions): void;
|
|
177
|
+
/**
|
|
178
|
+
* @internal Used by {@link AcApDocManager.destroy}.
|
|
179
|
+
*/
|
|
180
|
+
export declare function acapDisposeNotificationService(): void;
|
|
181
|
+
/**
|
|
182
|
+
* Process-wide service instance (bridge + center + optional default UI).
|
|
183
|
+
*/
|
|
184
|
+
export { notificationService as acapNotificationService };
|
|
185
|
+
//# sourceMappingURL=AcApNotificationService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApNotificationService.d.ts","sourceRoot":"","sources":["../../../src/app/notification/AcApNotificationService.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,oCAAoC,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAGvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAErE,YAAY,EAAE,6BAA6B,EAAE,CAAA;AAE7C;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,6BAA6B,CAAA;CAC1C;AAED;;;;;;GAMG;AACH,cAAM,uBAAuB;IAC3B,gEAAgE;IAChE,OAAO,CAAC,OAAO,CAAsD;IACrE,uEAAuE;IACvE,OAAO,CAAC,aAAa,CAAwC;IAC7D,6EAA6E;IAC7E,OAAO,CAAC,UAAU,CAAC,CAA2B;IAC9C,4DAA4D;IAC5D,OAAO,CAAC,OAAO,CAAC,CAA6B;IAC7C,uEAAuE;IACvE,OAAO,CAAC,KAAK,CAAC,CAAa;IAC3B,yEAAyE;IACzE,OAAO,CAAC,cAAc,CAAO;IAC7B,iEAAiE;IACjE,OAAO,CAAC,UAAU,CAAC,CAA+B;IAClD,+DAA+D;IAC/D,OAAO,CAAC,SAAS,CAAQ;IACzB,uDAAuD;IACvD,OAAO,CAAC,WAAW,CAAC,CAA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