@mlightcad/cad-simple-viewer 1.6.2 → 1.7.0
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/dist/cad-simple-viewer.js +28736 -18706
- package/dist/cad-simple-viewer.umd.cjs +1639 -308
- package/dist/mtext-renderer-worker.js +14590 -14441
- package/icons.ts +7 -0
- 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/AcApBusyIndicator.d.ts +6 -0
- package/lib/app/AcApBusyIndicator.d.ts.map +1 -1
- package/lib/app/AcApBusyIndicator.js +8 -0
- package/lib/app/AcApBusyIndicator.js.map +1 -1
- package/lib/app/AcApContext.d.ts +24 -0
- package/lib/app/AcApContext.d.ts.map +1 -1
- package/lib/app/AcApContext.js +103 -18
- package/lib/app/AcApContext.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts +293 -31
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +972 -184
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApDocSession.d.ts +41 -0
- package/lib/app/AcApDocSession.d.ts.map +1 -0
- package/lib/app/AcApDocSession.js +29 -0
- package/lib/app/AcApDocSession.js.map +1 -0
- 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 +6 -1
- package/lib/app/AcApDocument.d.ts.map +1 -1
- package/lib/app/AcApDocument.js +21 -0
- 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/{AcDbOpenDatabaseOptions.d.ts → AcApOpenDatabaseOptions.d.ts} +35 -8
- package/lib/app/AcApOpenDatabaseOptions.d.ts.map +1 -0
- package/lib/app/{AcDbOpenDatabaseOptions.js → AcApOpenDatabaseOptions.js} +1 -1
- package/lib/app/AcApOpenDatabaseOptions.js.map +1 -0
- package/lib/app/AcApOpenFileDialog.d.ts +1 -1
- package/lib/app/AcApOpenFileProgressController.d.ts +14 -0
- package/lib/app/AcApOpenFileProgressController.d.ts.map +1 -1
- package/lib/app/AcApOpenFileProgressController.js +18 -0
- package/lib/app/AcApOpenFileProgressController.js.map +1 -1
- package/lib/app/AcApProgress.d.ts +6 -0
- package/lib/app/AcApProgress.d.ts.map +1 -1
- package/lib/app/AcApProgress.js +17 -0
- package/lib/app/AcApProgress.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/command/AcApCloseCmd.d.ts +15 -0
- package/lib/command/AcApCloseCmd.d.ts.map +1 -0
- package/lib/command/AcApCloseCmd.js +83 -0
- package/lib/command/AcApCloseCmd.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 +174 -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/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/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 +4 -0
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +4 -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 +47 -22
- 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 +7 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.js +10 -0
- 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 +39 -3
- package/lib/command/markup/AcApMarkupGeometry.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupGeometry.js +127 -26
- 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/AcApMarkupHistory.d.ts +1 -1
- package/lib/command/markup/AcApMarkupHistory.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupHistory.js +4 -11
- package/lib/command/markup/AcApMarkupHistory.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 +24 -4
- package/lib/command/markup/AcApMarkupPresenter.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupPresenter.js +100 -18
- 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/AcApMarkupSession.d.ts +54 -0
- package/lib/command/markup/AcApMarkupSession.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupSession.js +85 -0
- package/lib/command/markup/AcApMarkupSession.js.map +1 -0
- package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts +2 -0
- package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupSessionBootstrap.js +12 -0
- package/lib/command/markup/AcApMarkupSessionBootstrap.js.map +1 -0
- 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 +21 -1
- package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.js +41 -25
- 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/AcApMarkupStore.d.ts +1 -1
- package/lib/command/markup/AcApMarkupStore.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupStore.js +3 -6
- package/lib/command/markup/AcApMarkupStore.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 +4 -0
- package/lib/command/markup/index.d.ts.map +1 -1
- package/lib/command/markup/index.js +5 -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 +102 -0
- package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiLayout.js +137 -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/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 +144 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +412 -13
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +2 -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 +805 -164
- 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 +201 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts +89 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js +143 -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 +113 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js +295 -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 +13 -0
- package/lib/editor/input/ui/index.d.ts.map +1 -1
- package/lib/editor/input/ui/index.js +13 -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 +210 -41
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- 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 +1 -0
- package/lib/editor/view/index.d.ts.map +1 -1
- package/lib/editor/view/index.js +1 -0
- package/lib/editor/view/index.js.map +1 -1
- package/lib/i18n/AcApI18n.d.ts +1 -1
- package/lib/i18n/AcApI18n.d.ts.map +1 -1
- package/lib/i18n/AcApI18n.js +3 -2
- package/lib/i18n/AcApI18n.js.map +1 -1
- package/lib/i18n/ar/command.d.ts +465 -0
- package/lib/i18n/ar/command.d.ts.map +1 -0
- package/lib/i18n/ar/command.js +14 -0
- package/lib/i18n/ar/command.js.map +1 -0
- package/lib/i18n/ar/jig.d.ts +1251 -0
- package/lib/i18n/ar/jig.d.ts.map +1 -0
- package/lib/i18n/ar/jig.js +606 -0
- package/lib/i18n/ar/jig.js.map +1 -0
- package/lib/i18n/ar/main.d.ts +133 -0
- package/lib/i18n/ar/main.d.ts.map +1 -0
- package/lib/i18n/ar/main.js +132 -0
- package/lib/i18n/ar/main.js.map +1 -0
- package/lib/i18n/cs/command.d.ts +9 -0
- package/lib/i18n/cs/command.d.ts.map +1 -1
- package/lib/i18n/cs/command.js +9 -0
- package/lib/i18n/cs/command.js.map +1 -1
- package/lib/i18n/cs/jig.d.ts +20 -0
- package/lib/i18n/cs/jig.d.ts.map +1 -1
- package/lib/i18n/cs/jig.js +21 -1
- package/lib/i18n/cs/jig.js.map +1 -1
- package/lib/i18n/cs/main.d.ts +70 -1
- package/lib/i18n/cs/main.d.ts.map +1 -1
- package/lib/i18n/cs/main.js +71 -2
- package/lib/i18n/cs/main.js.map +1 -1
- package/lib/i18n/en/command.d.ts +12 -0
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +12 -0
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +20 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +21 -1
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/en/main.d.ts +70 -1
- package/lib/i18n/en/main.d.ts.map +1 -1
- package/lib/i18n/en/main.js +71 -2
- package/lib/i18n/en/main.js.map +1 -1
- package/lib/i18n/index.d.ts.map +1 -1
- package/lib/i18n/index.js +8 -0
- package/lib/i18n/index.js.map +1 -1
- package/lib/i18n/tr/command.d.ts +9 -0
- package/lib/i18n/tr/command.d.ts.map +1 -1
- package/lib/i18n/tr/command.js +9 -0
- package/lib/i18n/tr/command.js.map +1 -1
- package/lib/i18n/tr/jig.d.ts +20 -0
- package/lib/i18n/tr/jig.d.ts.map +1 -1
- package/lib/i18n/tr/jig.js +21 -1
- package/lib/i18n/tr/jig.js.map +1 -1
- package/lib/i18n/tr/main.d.ts +70 -1
- package/lib/i18n/tr/main.d.ts.map +1 -1
- package/lib/i18n/tr/main.js +71 -2
- package/lib/i18n/tr/main.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +12 -0
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +12 -0
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +20 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +21 -1
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/i18n/zh/main.d.ts +70 -1
- package/lib/i18n/zh/main.d.ts.map +1 -1
- package/lib/i18n/zh/main.js +72 -3
- package/lib/i18n/zh/main.js.map +1 -1
- package/lib/plugin/AcApPluginManager.d.ts +10 -0
- package/lib/plugin/AcApPluginManager.d.ts.map +1 -1
- package/lib/plugin/AcApPluginManager.js +18 -0
- package/lib/plugin/AcApPluginManager.js.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js +11 -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/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 +59 -0
- package/lib/ui/AcUiDrawStyle.d.ts.map +1 -0
- package/lib/ui/AcUiDrawStyle.js +94 -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 +455 -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 +174 -0
- package/lib/ui/AcUiMobileSessionPanel.d.ts.map +1 -0
- package/lib/ui/AcUiMobileSessionPanel.js +557 -0
- package/lib/ui/AcUiMobileSessionPanel.js.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts +136 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.js +250 -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 +175 -0
- package/lib/ui/icons.d.ts.map +1 -0
- package/lib/ui/icons.js +227 -0
- package/lib/ui/icons.js.map +1 -0
- package/lib/ui/index.d.ts +14 -2
- package/lib/ui/index.d.ts.map +1 -1
- package/lib/ui/index.js +14 -2
- package/lib/ui/index.js.map +1 -1
- 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 +31 -0
- package/lib/ui-html-entry.d.ts.map +1 -0
- package/lib/ui-html-entry.js +23 -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/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/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 +3 -0
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +3 -0
- package/lib/util/index.js.map +1 -1
- package/lib/view/AcApCompareDisplay.d.ts +37 -0
- package/lib/view/AcApCompareDisplay.d.ts.map +1 -0
- package/lib/view/AcApCompareDisplay.js +8 -0
- package/lib/view/AcApCompareDisplay.js.map +1 -0
- 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/AcEdReviewOverlayPick.d.ts +9 -0
- package/lib/view/AcEdReviewOverlayPick.d.ts.map +1 -1
- package/lib/view/AcEdReviewOverlayPick.js +30 -1
- package/lib/view/AcEdReviewOverlayPick.js.map +1 -1
- 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 +6 -0
- package/lib/view/AcTrLayer.d.ts.map +1 -1
- package/lib/view/AcTrLayer.js +8 -0
- package/lib/view/AcTrLayer.js.map +1 -1
- package/lib/view/AcTrLayout.d.ts +12 -0
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +35 -12
- 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 +7 -0
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +13 -0
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +79 -2
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +407 -57
- package/lib/view/AcTrView2d.js.map +1 -1
- package/lib/view/AcTrViewSessionState.d.ts +32 -0
- package/lib/view/AcTrViewSessionState.d.ts.map +1 -0
- package/lib/view/AcTrViewSessionState.js +2 -0
- package/lib/view/AcTrViewSessionState.js.map +1 -0
- package/lib/view/index.d.ts +3 -0
- package/lib/view/index.d.ts.map +1 -1
- package/lib/view/index.js +3 -0
- package/lib/view/index.js.map +1 -1
- package/package.json +15 -8
- package/src/ui/icons.ts +387 -0
- package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +0 -1
- package/lib/app/AcDbOpenDatabaseOptions.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
package/lib/view/AcTrView2d.js
CHANGED
|
@@ -104,12 +104,16 @@ import * as THREE from 'three';
|
|
|
104
104
|
import Stats from 'three/examples/jsm/libs/stats.module';
|
|
105
105
|
import { CSS2DRenderer } from 'three/examples/jsm/renderers/CSS2DRenderer.js';
|
|
106
106
|
import { AcApDocManager, AcApSettingManager } from '../app';
|
|
107
|
+
import { AcApZoomCmd } from '../command/AcApZoomCmd';
|
|
107
108
|
import { isMarkupHtmlTextEditing } from '../command/markup/AcApMarkupTextEdit';
|
|
108
|
-
import {
|
|
109
|
+
import { notifyMeasurementLayoutChanged } from '../command/measure/AcApMeasurementStore';
|
|
110
|
+
import { acedAttachMobileBoxGesture, AcEdBaseView, AcEdConditionWaiter, AcEdCorsorType, AcEdGripManager, acedInteractionStrategy, acedIsTouchDerivedMouseEvent, AcEdMTextEditor, AcEdOpenMode, acedShouldIgnoreCompatMouse, AcEdViewMode, eventBus, resolvePointerSelectionAction } from '../editor';
|
|
109
111
|
import { ACGI_MODEL_SPACE_BACKGROUND, isModelSpaceDatabase, readLayoutBackgroundColor } from '../editor/global/AcEdUiColor';
|
|
112
|
+
import { ML_UI_Z_CANVAS_HTML_OVERLAY } from '../editor/global/AcEdUiLayout';
|
|
110
113
|
import { isEffectiveSpatialQueryHit } from '../editor/view/AcEdSpatialQueryResult';
|
|
111
114
|
import { AcTrGeometryUtil } from '../util';
|
|
112
115
|
import { acapRunDatabaseEdit } from '../util/AcApDatabaseEdit';
|
|
116
|
+
import { ACAP_READING_MODE_BACKGROUND, AcApReadingModeState } from './AcApReadingMode';
|
|
113
117
|
import { trySelectReviewOverlay, trySelectReviewOverlaysByBox } from './AcEdReviewOverlayPick';
|
|
114
118
|
import { AcEdViewKeyHandler } from './AcEdViewKeyHandler';
|
|
115
119
|
import { shouldExtendBboxForDirectEntity, tryBuildDirectEntityMeta } from './AcTrDirectBatch';
|
|
@@ -177,6 +181,12 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
177
181
|
renderer.domElement.style.display = 'block';
|
|
178
182
|
renderer.domElement.style.maxWidth = '100%';
|
|
179
183
|
renderer.domElement.style.maxHeight = '100%';
|
|
184
|
+
// Keep one-finger picks (measure snap loupe) from being stolen by the
|
|
185
|
+
// browser scroll / long-press context-menu gesture.
|
|
186
|
+
renderer.domElement.style.touchAction = 'none';
|
|
187
|
+
renderer.domElement.style.userSelect = 'none';
|
|
188
|
+
renderer.domElement.style.setProperty('-webkit-user-select', 'none');
|
|
189
|
+
renderer.domElement.style.setProperty('-webkit-touch-callout', 'none');
|
|
180
190
|
_this = _super.call(this, renderer.domElement, container) || this;
|
|
181
191
|
/**
|
|
182
192
|
* ID of the currently scheduled requestAnimationFrame callback.
|
|
@@ -269,6 +279,15 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
269
279
|
* Counted separately so linework convert can continue while text waits.
|
|
270
280
|
*/
|
|
271
281
|
_this._pendingGeometryJobs = 0;
|
|
282
|
+
/** Transient reading mode forces black linework on a white canvas. */
|
|
283
|
+
_this._readingMode = new AcApReadingModeState({
|
|
284
|
+
getCurrentBackgroundColor: function () { return _this._renderer.currentBackgroundColor; },
|
|
285
|
+
applyViewClearColor: function (value) { return _this.applyViewClearColor(value); },
|
|
286
|
+
setCompareDisplay: function (options) { return _this.setCompareDisplay(options); },
|
|
287
|
+
markDirty: function () {
|
|
288
|
+
_this._isDirty = true;
|
|
289
|
+
}
|
|
290
|
+
});
|
|
272
291
|
_this.animate = function () {
|
|
273
292
|
var _a;
|
|
274
293
|
_this._rafId = requestAnimationFrame(_this.animate);
|
|
@@ -321,13 +340,17 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
321
340
|
count: (_a = args.count) !== null && _a !== void 0 ? _a : 0
|
|
322
341
|
});
|
|
323
342
|
});
|
|
343
|
+
_this._renderer.events.fontLoaded.addEventListener(function () {
|
|
344
|
+
// Lazy load success clears FontManager.missedFonts; refresh status-bar state.
|
|
345
|
+
eventBus.emit('missed-data-changed', {});
|
|
346
|
+
});
|
|
324
347
|
_this._scene = _this.createScene();
|
|
325
348
|
_this._layerAppearance = new AcTrLayerAppearanceController(_this._scene, _this._renderer);
|
|
326
349
|
_this._inheritedLayerMaterialMapper = new AcTrInheritedLayerMaterialMapper(function (layerName) { return _this._layerAppearance.getEffectiveLayerTraits(layerName); }, _this._renderer);
|
|
327
350
|
// Initialize background color through setter to keep renderer/cursor in sync.
|
|
328
351
|
_this.backgroundColor =
|
|
329
352
|
(_b = mergedOptions.background) !== null && _b !== void 0 ? _b : ACGI_MODEL_SPACE_BACKGROUND;
|
|
330
|
-
_this._stats = _this.createStats(AcApSettingManager.instance.isShowStats);
|
|
353
|
+
_this._stats = _this.createStats(AcApSettingManager.instance.isShowStats && _this.isActiveManagedView());
|
|
331
354
|
// Layout background sysvars drive the canvas clear colour and ACI-7
|
|
332
355
|
// inversion (`MODELBKCOLOR` for model space, `PAPERBKCOLOR` for the
|
|
333
356
|
// active layout). `COLORTHEME` only affects UI chrome — see
|
|
@@ -355,36 +378,45 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
355
378
|
var selectionStartWcs = null;
|
|
356
379
|
var selectionStartCanvas = null;
|
|
357
380
|
var selectionPreviewEl = null;
|
|
358
|
-
var
|
|
359
|
-
return (_this.
|
|
360
|
-
!_this.editor.isActive &&
|
|
381
|
+
var canHandleIdlePointer = function () {
|
|
382
|
+
return (!_this.editor.isActive &&
|
|
361
383
|
!AcEdMTextEditor.getActiveInputBox() &&
|
|
362
384
|
!isMarkupHtmlTextEditing() &&
|
|
363
385
|
!_this._gripManager.isDragging);
|
|
364
386
|
};
|
|
387
|
+
var canHandleSelectionGesture = function () {
|
|
388
|
+
return _this.mode === AcEdViewMode.SELECTION && canHandleIdlePointer();
|
|
389
|
+
};
|
|
390
|
+
var canHandleMobileBoxGesture = function () {
|
|
391
|
+
return (canHandleIdlePointer() &&
|
|
392
|
+
acedInteractionStrategy().canIdleTouchBox(_this.mode));
|
|
393
|
+
};
|
|
365
394
|
var clearSelectionPreview = function () {
|
|
366
395
|
selectionPreviewEl === null || selectionPreviewEl === void 0 ? void 0 : selectionPreviewEl.remove();
|
|
367
396
|
selectionPreviewEl = null;
|
|
368
397
|
};
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
398
|
+
var resetSelectionDrag = function () {
|
|
399
|
+
selectionStartWcs = null;
|
|
400
|
+
selectionStartCanvas = null;
|
|
401
|
+
clearSelectionPreview();
|
|
402
|
+
};
|
|
403
|
+
var beginSelectionPreview = function (clientX, clientY) {
|
|
374
404
|
selectionStartCanvas = _this.viewportToCanvas({
|
|
375
|
-
x:
|
|
376
|
-
y:
|
|
405
|
+
x: clientX,
|
|
406
|
+
y: clientY
|
|
377
407
|
});
|
|
378
408
|
selectionStartWcs = _this.screenToWorld(selectionStartCanvas);
|
|
409
|
+
clearSelectionPreview();
|
|
379
410
|
selectionPreviewEl = document.createElement('div');
|
|
380
411
|
selectionPreviewEl.className = 'ml-jig-preview-rect';
|
|
381
412
|
_this.container.appendChild(selectionPreviewEl);
|
|
382
|
-
}
|
|
383
|
-
|
|
413
|
+
};
|
|
414
|
+
var updateSelectionPreview = function (clientX, clientY, action) {
|
|
415
|
+
if (action === void 0) { action = 'replace'; }
|
|
384
416
|
if (!selectionStartWcs || !selectionPreviewEl || !selectionStartCanvas) {
|
|
385
417
|
return;
|
|
386
418
|
}
|
|
387
|
-
var curCanvas = _this.viewportToCanvas({ x:
|
|
419
|
+
var curCanvas = _this.viewportToCanvas({ x: clientX, y: clientY });
|
|
388
420
|
var curWcs = _this.screenToWorld(curCanvas);
|
|
389
421
|
var p1 = _this.worldToScreen(selectionStartWcs);
|
|
390
422
|
var p2 = _this.worldToScreen(curWcs);
|
|
@@ -393,7 +425,6 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
393
425
|
var width = Math.abs(p1.x - p2.x);
|
|
394
426
|
var height = Math.abs(p1.y - p2.y);
|
|
395
427
|
var mode = _this.getSelectionMode(selectionStartCanvas, curCanvas);
|
|
396
|
-
var action = _this.getPointerSelectionAction(e);
|
|
397
428
|
var style = _this.getSelectionPreviewStyle(mode, action);
|
|
398
429
|
Object.assign(selectionPreviewEl.style, {
|
|
399
430
|
left: "".concat(left, "px"),
|
|
@@ -404,30 +435,23 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
404
435
|
background: style.background
|
|
405
436
|
});
|
|
406
437
|
selectionPreviewEl.style.setProperty('--line-color', style.lineColor);
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
if (_this._gripManager.isDragging) {
|
|
410
|
-
selectionStartWcs = null;
|
|
411
|
-
selectionStartCanvas = null;
|
|
412
|
-
clearSelectionPreview();
|
|
413
|
-
return;
|
|
414
|
-
}
|
|
438
|
+
};
|
|
439
|
+
var finishSelection = function (clientX, clientY, action, isClick) {
|
|
415
440
|
if (!selectionStartWcs || !selectionStartCanvas)
|
|
416
441
|
return;
|
|
417
442
|
var endCanvas = _this.viewportToCanvas({
|
|
418
|
-
x:
|
|
419
|
-
y:
|
|
443
|
+
x: clientX,
|
|
444
|
+
y: clientY
|
|
420
445
|
});
|
|
421
446
|
var endWcs = _this.screenToWorld(endCanvas);
|
|
422
447
|
clearSelectionPreview();
|
|
423
|
-
|
|
424
|
-
if (_this.isSelectionClick(selectionStartCanvas, endCanvas)) {
|
|
448
|
+
if (isClick) {
|
|
425
449
|
if (trySelectReviewOverlay(_this, endCanvas.x, endCanvas.y, action)) {
|
|
426
450
|
if (action === 'replace') {
|
|
427
451
|
_this.selectionSet.clear();
|
|
428
452
|
}
|
|
429
453
|
}
|
|
430
|
-
else {
|
|
454
|
+
else if (_this.entitySelectionEnabled) {
|
|
431
455
|
var picked = _this.pick(endWcs);
|
|
432
456
|
if (picked.length > 0) {
|
|
433
457
|
if (action === 'replace') {
|
|
@@ -439,23 +463,94 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
439
463
|
_this.selectionSet.clear();
|
|
440
464
|
}
|
|
441
465
|
}
|
|
466
|
+
else if (action === 'replace') {
|
|
467
|
+
_this.selectionSet.clear();
|
|
468
|
+
}
|
|
442
469
|
}
|
|
443
470
|
else {
|
|
444
471
|
var box = new AcGeBox2d()
|
|
445
472
|
.expandByPoint(selectionStartWcs)
|
|
446
473
|
.expandByPoint(endWcs);
|
|
447
474
|
var mode = _this.getSelectionMode(selectionStartCanvas, endCanvas);
|
|
448
|
-
_this.
|
|
475
|
+
if (_this.entitySelectionEnabled) {
|
|
476
|
+
_this.selectByBoxWithMode(box, mode, action);
|
|
477
|
+
}
|
|
449
478
|
trySelectReviewOverlaysByBox(_this, box, mode, action);
|
|
450
479
|
}
|
|
451
480
|
selectionStartWcs = null;
|
|
452
481
|
selectionStartCanvas = null;
|
|
482
|
+
};
|
|
483
|
+
_this.canvas.addEventListener('mousedown', function (e) {
|
|
484
|
+
if (e.button !== 0)
|
|
485
|
+
return;
|
|
486
|
+
if (!canHandleSelectionGesture())
|
|
487
|
+
return;
|
|
488
|
+
if (acedIsTouchDerivedMouseEvent(e) || acedShouldIgnoreCompatMouse()) {
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
beginSelectionPreview(e.clientX, e.clientY);
|
|
492
|
+
});
|
|
493
|
+
_this.canvas.addEventListener('mousemove', function (e) {
|
|
494
|
+
if (!selectionStartWcs || !selectionPreviewEl || !selectionStartCanvas) {
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
if (acedIsTouchDerivedMouseEvent(e) || acedShouldIgnoreCompatMouse()) {
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
updateSelectionPreview(e.clientX, e.clientY, _this.getPointerSelectionAction(e));
|
|
501
|
+
});
|
|
502
|
+
_this.canvas.addEventListener('mouseup', function (e) {
|
|
503
|
+
if (_this._gripManager.isDragging) {
|
|
504
|
+
resetSelectionDrag();
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
if (!selectionStartWcs || !selectionStartCanvas)
|
|
508
|
+
return;
|
|
509
|
+
if (acedIsTouchDerivedMouseEvent(e) || acedShouldIgnoreCompatMouse()) {
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
512
|
+
var endCanvas = _this.viewportToCanvas({
|
|
513
|
+
x: e.clientX,
|
|
514
|
+
y: e.clientY
|
|
515
|
+
});
|
|
516
|
+
var action = _this.getPointerSelectionAction(e);
|
|
517
|
+
finishSelection(e.clientX, e.clientY, action, _this.isSelectionClick(selectionStartCanvas, endCanvas));
|
|
518
|
+
});
|
|
519
|
+
acedAttachMobileBoxGesture({
|
|
520
|
+
element: _this.canvas,
|
|
521
|
+
shouldStart: function () { return canHandleMobileBoxGesture(); },
|
|
522
|
+
setNavigationEnabled: function (enabled) {
|
|
523
|
+
_this.setNavigationEnabled(enabled);
|
|
524
|
+
},
|
|
525
|
+
onActivate: function (clientX, clientY) {
|
|
526
|
+
beginSelectionPreview(clientX, clientY);
|
|
527
|
+
updateSelectionPreview(clientX, clientY);
|
|
528
|
+
},
|
|
529
|
+
onMove: function (clientX, clientY) {
|
|
530
|
+
updateSelectionPreview(clientX, clientY);
|
|
531
|
+
},
|
|
532
|
+
onBoxEnd: function (clientX, clientY, moved) {
|
|
533
|
+
finishSelection(clientX, clientY, 'replace', !moved);
|
|
534
|
+
},
|
|
535
|
+
onTap: function (clientX, clientY) {
|
|
536
|
+
selectionStartCanvas = _this.viewportToCanvas({
|
|
537
|
+
x: clientX,
|
|
538
|
+
y: clientY
|
|
539
|
+
});
|
|
540
|
+
selectionStartWcs = _this.screenToWorld(selectionStartCanvas);
|
|
541
|
+
finishSelection(clientX, clientY, 'replace', true);
|
|
542
|
+
},
|
|
543
|
+
onAbort: function () {
|
|
544
|
+
resetSelectionDrag();
|
|
545
|
+
}
|
|
453
546
|
});
|
|
454
547
|
_this.canvas.addEventListener('dblclick', function (e) {
|
|
455
548
|
if (e.button !== 0)
|
|
456
549
|
return;
|
|
457
550
|
if (!canHandleSelectionGesture())
|
|
458
551
|
return;
|
|
552
|
+
if (!_this.entitySelectionEnabled)
|
|
553
|
+
return;
|
|
459
554
|
if (AcApDocManager.instance.curDocument.openMode !== AcEdOpenMode.Write) {
|
|
460
555
|
return;
|
|
461
556
|
}
|
|
@@ -465,9 +560,20 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
465
560
|
// such as the canvas or the entire document. This can interfere with other event listeners you
|
|
466
561
|
// add, including the keydown event.
|
|
467
562
|
document.addEventListener('keydown', function (e) {
|
|
563
|
+
if (!_this.isActiveManagedView())
|
|
564
|
+
return;
|
|
468
565
|
_this._keyHandler.handleKeyDown(e);
|
|
469
566
|
});
|
|
470
567
|
acdbHostApplicationServices().layoutManager.events.layoutSwitched.addEventListener(function (args) {
|
|
568
|
+
var _a, _b;
|
|
569
|
+
if (!_this.isActiveManagedView())
|
|
570
|
+
return;
|
|
571
|
+
var layoutDb = args.layout
|
|
572
|
+
.database;
|
|
573
|
+
var currentDb = (_b = (_a = AcApDocManager._instance) === null || _a === void 0 ? void 0 : _a.curDocument) === null || _b === void 0 ? void 0 : _b.database;
|
|
574
|
+
if (layoutDb && currentDb && layoutDb !== currentDb) {
|
|
575
|
+
return;
|
|
576
|
+
}
|
|
471
577
|
var btrId = args.layout.blockTableRecordId;
|
|
472
578
|
// "First visit" is tracked separately from view existence because
|
|
473
579
|
// `addLayout` pre-creates an `AcTrLayoutView` for every layout in
|
|
@@ -505,7 +611,8 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
505
611
|
_this._css2dRenderer.domElement.style.top = '0px';
|
|
506
612
|
_this._css2dRenderer.domElement.style.left = '0px';
|
|
507
613
|
_this._css2dRenderer.domElement.style.pointerEvents = 'none';
|
|
508
|
-
|
|
614
|
+
// Below command line / mobile chrome / dialogs; above the WebGL canvas.
|
|
615
|
+
_this._css2dRenderer.domElement.style.zIndex = String(ML_UI_Z_CANVAS_HTML_OVERLAY);
|
|
509
616
|
_this._css2dRenderer.domElement.style.maxWidth = '100%';
|
|
510
617
|
_this._css2dRenderer.domElement.style.maxHeight = '100%';
|
|
511
618
|
container.appendChild(_this._css2dRenderer.domElement);
|
|
@@ -539,9 +646,16 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
539
646
|
* @protected
|
|
540
647
|
*/
|
|
541
648
|
AcTrView2d.prototype.initialize = function () {
|
|
649
|
+
var _this = this;
|
|
542
650
|
// This method is called after camera and render are created.
|
|
543
651
|
// Children class can override this method to add its own logic
|
|
544
652
|
this.setCursor(AcEdCorsorType.Crosshair);
|
|
653
|
+
this.editor.events.commandWillStart.addEventListener(function () {
|
|
654
|
+
_this.htmlTransientManager.setHitTestEnabled(false);
|
|
655
|
+
});
|
|
656
|
+
this.editor.events.commandEnded.addEventListener(function () {
|
|
657
|
+
_this.htmlTransientManager.setHitTestEnabled(true);
|
|
658
|
+
});
|
|
545
659
|
};
|
|
546
660
|
Object.defineProperty(AcTrView2d.prototype, "mode", {
|
|
547
661
|
/**
|
|
@@ -565,6 +679,37 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
565
679
|
enumerable: false,
|
|
566
680
|
configurable: true
|
|
567
681
|
});
|
|
682
|
+
/**
|
|
683
|
+
* Enables or disables OrbitControls on the active layout view.
|
|
684
|
+
*
|
|
685
|
+
* @param enabled - When false, pan and zoom are disabled (e.g. while the
|
|
686
|
+
* snap loupe is tracking a long-press).
|
|
687
|
+
*/
|
|
688
|
+
AcTrView2d.prototype.setNavigationEnabled = function (enabled) {
|
|
689
|
+
var layoutView = this.activeLayoutView;
|
|
690
|
+
if (layoutView)
|
|
691
|
+
layoutView.enabled = enabled;
|
|
692
|
+
};
|
|
693
|
+
/**
|
|
694
|
+
* Shows or hides the screen-fixed snap loupe overlay viewport.
|
|
695
|
+
*
|
|
696
|
+
* @param state - Loupe screen rectangle and world box, or `null` to hide.
|
|
697
|
+
*/
|
|
698
|
+
AcTrView2d.prototype.setSnapLoupe = function (state) {
|
|
699
|
+
var _a;
|
|
700
|
+
var overlay = (_a = this.activeLayoutView) === null || _a === void 0 ? void 0 : _a.overlayViewport;
|
|
701
|
+
if (!overlay)
|
|
702
|
+
return;
|
|
703
|
+
if (!state) {
|
|
704
|
+
overlay.visible = false;
|
|
705
|
+
this._isDirty = true;
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
708
|
+
overlay.setScreenRect(state.x, state.y, state.size, state.size);
|
|
709
|
+
overlay.setViewBox(state.viewBox);
|
|
710
|
+
overlay.visible = true;
|
|
711
|
+
this._isDirty = true;
|
|
712
|
+
};
|
|
568
713
|
Object.defineProperty(AcTrView2d.prototype, "renderer", {
|
|
569
714
|
/**
|
|
570
715
|
* Gets the Three.js renderer wrapper used for CAD rendering.
|
|
@@ -815,11 +960,24 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
815
960
|
* manager. Does not touch `COLORTHEME` / UI chrome.
|
|
816
961
|
*/
|
|
817
962
|
AcTrView2d.prototype.applyCanvasBackground = function (value) {
|
|
818
|
-
this._renderer.setClearColor(value);
|
|
819
|
-
// Updates style-manager background, repaints ACI-7 / bg-follow materials.
|
|
820
963
|
this._renderer.currentBackgroundColor = value;
|
|
821
964
|
this._layerAppearance.refreshTextMaterialsInObjectTree(this._scene.internalScene);
|
|
822
965
|
this.resyncForegroundLayersForBackground();
|
|
966
|
+
if (this._readingMode.isEnabled) {
|
|
967
|
+
this._readingMode.noteLayoutBackground(value);
|
|
968
|
+
this.applyViewClearColor(ACAP_READING_MODE_BACKGROUND);
|
|
969
|
+
return;
|
|
970
|
+
}
|
|
971
|
+
this.applyViewClearColor(value);
|
|
972
|
+
};
|
|
973
|
+
/**
|
|
974
|
+
* Updates only the WebGL clear colour and cursor chrome.
|
|
975
|
+
*
|
|
976
|
+
* Reading mode uses this so the white canvas is visual-only and does not
|
|
977
|
+
* repaint cached entity materials via the style manager.
|
|
978
|
+
*/
|
|
979
|
+
AcTrView2d.prototype.applyViewClearColor = function (value) {
|
|
980
|
+
this._renderer.setClearColor(value);
|
|
823
981
|
this.editor.syncCursorBackground(value);
|
|
824
982
|
this._isDirty = true;
|
|
825
983
|
};
|
|
@@ -883,6 +1041,29 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
883
1041
|
AcTrView2d.prototype.syncDisplaySysVars = function (database) {
|
|
884
1042
|
this.bindDrawDatabase(database);
|
|
885
1043
|
this.applyCanvasBackground(readLayoutBackgroundColor(database, this.isModelSpaceLayout(database)));
|
|
1044
|
+
this._readingMode.reapplyIfEnabled();
|
|
1045
|
+
};
|
|
1046
|
+
Object.defineProperty(AcTrView2d.prototype, "readingModeEnabled", {
|
|
1047
|
+
/** Whether transient reading mode is active on this view. */
|
|
1048
|
+
get: function () {
|
|
1049
|
+
return this._readingMode.isEnabled;
|
|
1050
|
+
},
|
|
1051
|
+
enumerable: false,
|
|
1052
|
+
configurable: true
|
|
1053
|
+
});
|
|
1054
|
+
/** Toggles transient reading mode on or off. */
|
|
1055
|
+
AcTrView2d.prototype.toggleReadingMode = function () {
|
|
1056
|
+
this._readingMode.toggle();
|
|
1057
|
+
};
|
|
1058
|
+
/**
|
|
1059
|
+
* Enables or disables transient reading mode (black linework, white canvas).
|
|
1060
|
+
*
|
|
1061
|
+
* @param enabled - When true, snapshots the current canvas background and
|
|
1062
|
+
* forces monochrome display; when false, restores the snapshot and
|
|
1063
|
+
* original entity colors.
|
|
1064
|
+
*/
|
|
1065
|
+
AcTrView2d.prototype.setReadingMode = function (enabled) {
|
|
1066
|
+
this._readingMode.setEnabled(enabled);
|
|
886
1067
|
};
|
|
887
1068
|
/**
|
|
888
1069
|
* Converts and renders model-space entities from a standalone, independently
|
|
@@ -1036,10 +1217,14 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
1036
1217
|
return this._scene.activeLayoutBtrId;
|
|
1037
1218
|
},
|
|
1038
1219
|
set: function (value) {
|
|
1220
|
+
var previous = this._scene.activeLayoutBtrId;
|
|
1039
1221
|
this._layoutViewManager.activeLayoutBtrId = value;
|
|
1040
1222
|
this._scene.activeLayoutBtrId = value;
|
|
1041
1223
|
this.htmlTransientManager.setActiveLayoutId(value);
|
|
1042
1224
|
this._isDirty = true;
|
|
1225
|
+
if (previous !== value) {
|
|
1226
|
+
notifyMeasurementLayoutChanged();
|
|
1227
|
+
}
|
|
1043
1228
|
},
|
|
1044
1229
|
enumerable: false,
|
|
1045
1230
|
configurable: true
|
|
@@ -1259,6 +1444,10 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
1259
1444
|
}
|
|
1260
1445
|
_this._progressiveOpenFit.applyFinalFit(function () { return _this.resolveLayoutFitBox(); });
|
|
1261
1446
|
_this.endProgressiveOpenFit();
|
|
1447
|
+
var originalBtrId = layoutBtrId !== null && layoutBtrId !== void 0 ? layoutBtrId : _this.activeLayoutBtrId;
|
|
1448
|
+
if (originalBtrId) {
|
|
1449
|
+
AcApZoomCmd.rememberOriginalView(_this, originalBtrId);
|
|
1450
|
+
}
|
|
1262
1451
|
}, 300, // check every 300 ms
|
|
1263
1452
|
timeout);
|
|
1264
1453
|
waiter.start();
|
|
@@ -1342,9 +1531,10 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
1342
1531
|
};
|
|
1343
1532
|
AcTrView2d.prototype.editMTextEntity = function (mtext) {
|
|
1344
1533
|
return __awaiter(this, void 0, void 0, function () {
|
|
1345
|
-
var db, editor, applied, result_1;
|
|
1346
|
-
|
|
1347
|
-
|
|
1534
|
+
var db, editor, applied, result_1, _a, _b;
|
|
1535
|
+
var _c;
|
|
1536
|
+
return __generator(this, function (_d) {
|
|
1537
|
+
switch (_d.label) {
|
|
1348
1538
|
case 0:
|
|
1349
1539
|
db = mtext.database;
|
|
1350
1540
|
if (mtext.lineSpacingFactor !== AcEdMTextEditor.defaultLineSpacingFactor) {
|
|
@@ -1361,20 +1551,23 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
1361
1551
|
this._isDirty = true;
|
|
1362
1552
|
editor = new AcEdMTextEditor();
|
|
1363
1553
|
applied = false;
|
|
1364
|
-
|
|
1554
|
+
_d.label = 1;
|
|
1365
1555
|
case 1:
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1556
|
+
_d.trys.push([1, , 4, 5]);
|
|
1557
|
+
_b = (_a = editor).open;
|
|
1558
|
+
_c = {
|
|
1559
|
+
view: this,
|
|
1560
|
+
location: mtext.location,
|
|
1561
|
+
width: this.resolveMTextEditorWidth(mtext),
|
|
1562
|
+
textHeight: this.resolveMTextEditorTextHeight(mtext),
|
|
1563
|
+
initialText: mtext.contents,
|
|
1564
|
+
initialAttachmentPoint: mtext.attachmentPoint
|
|
1565
|
+
};
|
|
1566
|
+
return [4 /*yield*/, this.getMTextToolbarFontFamilies()];
|
|
1567
|
+
case 2: return [4 /*yield*/, _b.apply(_a, [(_c.toolbarFontFamilies = _d.sent(),
|
|
1568
|
+
_c)])];
|
|
1569
|
+
case 3:
|
|
1570
|
+
result_1 = _d.sent();
|
|
1378
1571
|
if (!result_1)
|
|
1379
1572
|
return [2 /*return*/];
|
|
1380
1573
|
acapRunDatabaseEdit(db, 'Edit MText', function () {
|
|
@@ -1389,14 +1582,14 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
1389
1582
|
opened.attachmentPoint = result_1.attachmentPoint;
|
|
1390
1583
|
});
|
|
1391
1584
|
applied = true;
|
|
1392
|
-
return [3 /*break*/,
|
|
1393
|
-
case
|
|
1585
|
+
return [3 /*break*/, 5];
|
|
1586
|
+
case 4:
|
|
1394
1587
|
if (!applied) {
|
|
1395
1588
|
this.updateEntity(mtext);
|
|
1396
1589
|
this._isDirty = true;
|
|
1397
1590
|
}
|
|
1398
1591
|
return [7 /*endfinally*/];
|
|
1399
|
-
case
|
|
1592
|
+
case 5: return [2 /*return*/];
|
|
1400
1593
|
}
|
|
1401
1594
|
});
|
|
1402
1595
|
});
|
|
@@ -1419,10 +1612,21 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
1419
1612
|
return Math.max(Math.abs(p1.y - p0.y), 1e-4);
|
|
1420
1613
|
};
|
|
1421
1614
|
AcTrView2d.prototype.getMTextToolbarFontFamilies = function () {
|
|
1422
|
-
return
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1615
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1616
|
+
var availableFonts;
|
|
1617
|
+
var _a;
|
|
1618
|
+
return __generator(this, function (_b) {
|
|
1619
|
+
switch (_b.label) {
|
|
1620
|
+
case 0: return [4 /*yield*/, AcApDocManager.instance.getAvaiableFonts()];
|
|
1621
|
+
case 1:
|
|
1622
|
+
availableFonts = (_a = (_b.sent())) !== null && _a !== void 0 ? _a : [];
|
|
1623
|
+
return [2 /*return*/, Array.from(new Set(availableFonts
|
|
1624
|
+
.flatMap(function (fontInfo) { return fontInfo.name; })
|
|
1625
|
+
.map(function (fontName) { return fontName.trim(); })
|
|
1626
|
+
.filter(function (fontName) { return fontName.length > 0; })))];
|
|
1627
|
+
}
|
|
1628
|
+
});
|
|
1629
|
+
});
|
|
1426
1630
|
};
|
|
1427
1631
|
/**
|
|
1428
1632
|
* @inheritdoc
|
|
@@ -2000,6 +2204,7 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
2000
2204
|
}
|
|
2001
2205
|
}
|
|
2002
2206
|
_this._isDirty = true;
|
|
2207
|
+
AcApZoomCmd.rememberOriginalView(_this, btrId);
|
|
2003
2208
|
}, 300, 0);
|
|
2004
2209
|
waiter.start();
|
|
2005
2210
|
};
|
|
@@ -2016,7 +2221,110 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
2016
2221
|
this._scene.clear();
|
|
2017
2222
|
this._isDirty = true;
|
|
2018
2223
|
this._missedImages.clear();
|
|
2224
|
+
this._initializedLayouts.clear();
|
|
2225
|
+
this._externallyFramedLayouts.clear();
|
|
2226
|
+
this._loadingLayouts.clear();
|
|
2019
2227
|
this._renderer.dispose();
|
|
2228
|
+
eventBus.emit('missed-data-changed', {});
|
|
2229
|
+
};
|
|
2230
|
+
/**
|
|
2231
|
+
* Captures GPU/camera/selection state so another document can occupy this view.
|
|
2232
|
+
*
|
|
2233
|
+
* @returns Parked state owned by {@link AcApDocSession} until restore.
|
|
2234
|
+
*/
|
|
2235
|
+
AcTrView2d.prototype.captureSessionState = function () {
|
|
2236
|
+
return {
|
|
2237
|
+
scene: this._scene,
|
|
2238
|
+
layoutViewManager: this._layoutViewManager,
|
|
2239
|
+
initializedLayouts: this._initializedLayouts,
|
|
2240
|
+
externallyFramedLayouts: this._externallyFramedLayouts,
|
|
2241
|
+
loadingLayouts: this._loadingLayouts,
|
|
2242
|
+
missedImages: this._missedImages,
|
|
2243
|
+
missedFonts: this._renderer.snapshotMissedFonts(),
|
|
2244
|
+
selectionIds: this.selectionSet.ids
|
|
2245
|
+
};
|
|
2246
|
+
};
|
|
2247
|
+
/**
|
|
2248
|
+
* Restores a parked document onto this shared view without disposing the renderer.
|
|
2249
|
+
*
|
|
2250
|
+
* @param state - Snapshot previously returned by {@link captureSessionState} or {@link beginNewSession}.
|
|
2251
|
+
*/
|
|
2252
|
+
AcTrView2d.prototype.restoreSessionState = function (state) {
|
|
2253
|
+
var _a;
|
|
2254
|
+
this._convertEpoch++;
|
|
2255
|
+
this._convertQueue.length = 0;
|
|
2256
|
+
this._numOfEntitiesToProcess = 0;
|
|
2257
|
+
this._pendingGeometryJobs = 0;
|
|
2258
|
+
this._scene = state.scene;
|
|
2259
|
+
this._layoutViewManager = state.layoutViewManager;
|
|
2260
|
+
this._initializedLayouts = state.initializedLayouts;
|
|
2261
|
+
this._externallyFramedLayouts = state.externallyFramedLayouts;
|
|
2262
|
+
this._loadingLayouts = state.loadingLayouts;
|
|
2263
|
+
this._missedImages = state.missedImages;
|
|
2264
|
+
this._renderer.replaceMissedFonts((_a = state.missedFonts) !== null && _a !== void 0 ? _a : {});
|
|
2265
|
+
this.rebindLayerAppearance();
|
|
2266
|
+
this._layoutViewManager.resize(this.width, this.height);
|
|
2267
|
+
this.selectionSet.clear();
|
|
2268
|
+
if (state.selectionIds.length > 0) {
|
|
2269
|
+
this.selectionSet.add(state.selectionIds);
|
|
2270
|
+
}
|
|
2271
|
+
this._isDirty = true;
|
|
2272
|
+
eventBus.emit('missed-data-changed', {});
|
|
2273
|
+
};
|
|
2274
|
+
/**
|
|
2275
|
+
* Detaches the current scene and installs an empty one for a newly opened document.
|
|
2276
|
+
*
|
|
2277
|
+
* @returns Parked state of the previous document.
|
|
2278
|
+
*/
|
|
2279
|
+
AcTrView2d.prototype.beginNewSession = function () {
|
|
2280
|
+
var parked = this.captureSessionState();
|
|
2281
|
+
this._convertEpoch++;
|
|
2282
|
+
this._convertQueue.length = 0;
|
|
2283
|
+
this._numOfEntitiesToProcess = 0;
|
|
2284
|
+
this._pendingGeometryJobs = 0;
|
|
2285
|
+
this._scene = this.createScene();
|
|
2286
|
+
this._layoutViewManager = new AcTrLayoutViewManager();
|
|
2287
|
+
this._initializedLayouts = new Set();
|
|
2288
|
+
this._externallyFramedLayouts = new Set();
|
|
2289
|
+
this._loadingLayouts = new Set();
|
|
2290
|
+
this._missedImages = new Map();
|
|
2291
|
+
this._renderer.clearMissedFonts();
|
|
2292
|
+
this.rebindLayerAppearance();
|
|
2293
|
+
this.selectionSet.clear();
|
|
2294
|
+
this._isDirty = true;
|
|
2295
|
+
eventBus.emit('missed-data-changed', {});
|
|
2296
|
+
return parked;
|
|
2297
|
+
};
|
|
2298
|
+
/**
|
|
2299
|
+
* Disposes GPU resources for a parked session that is being closed.
|
|
2300
|
+
*
|
|
2301
|
+
* @param state - Parked snapshot to discard.
|
|
2302
|
+
*/
|
|
2303
|
+
AcTrView2d.prototype.disposeSessionState = function (state) {
|
|
2304
|
+
state.scene.clear();
|
|
2305
|
+
state.layoutViewManager = new AcTrLayoutViewManager();
|
|
2306
|
+
state.initializedLayouts.clear();
|
|
2307
|
+
state.externallyFramedLayouts.clear();
|
|
2308
|
+
state.loadingLayouts.clear();
|
|
2309
|
+
state.missedImages.clear();
|
|
2310
|
+
state.missedFonts = {};
|
|
2311
|
+
state.selectionIds = [];
|
|
2312
|
+
};
|
|
2313
|
+
/**
|
|
2314
|
+
* Recreates the layer-appearance controller after the scene is swapped.
|
|
2315
|
+
*/
|
|
2316
|
+
AcTrView2d.prototype.rebindLayerAppearance = function () {
|
|
2317
|
+
this._layerAppearance = new AcTrLayerAppearanceController(this._scene, this._renderer);
|
|
2318
|
+
};
|
|
2319
|
+
/**
|
|
2320
|
+
* True when this view is the document manager's live canvas.
|
|
2321
|
+
* Satellite/preview views must ignore global shortcuts and layout switches.
|
|
2322
|
+
*/
|
|
2323
|
+
AcTrView2d.prototype.isActiveManagedView = function () {
|
|
2324
|
+
var _a;
|
|
2325
|
+
var singleton = AcApDocManager;
|
|
2326
|
+
var current = (_a = singleton._instance) === null || _a === void 0 ? void 0 : _a.curView;
|
|
2327
|
+
return current == null || current === this;
|
|
2020
2328
|
};
|
|
2021
2329
|
/**
|
|
2022
2330
|
* Drains the progressive convert queue on a single serial worker so ENTITY
|
|
@@ -2085,6 +2393,8 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
2085
2393
|
* @inheritdoc
|
|
2086
2394
|
*/
|
|
2087
2395
|
AcTrView2d.prototype.highlight = function (ids) {
|
|
2396
|
+
if (!this.entitySelectionEnabled)
|
|
2397
|
+
return;
|
|
2088
2398
|
this._isDirty = this._scene.select(ids);
|
|
2089
2399
|
};
|
|
2090
2400
|
/**
|
|
@@ -2093,6 +2403,34 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
2093
2403
|
AcTrView2d.prototype.unhighlight = function (ids) {
|
|
2094
2404
|
this._isDirty = this._scene.unselect(ids);
|
|
2095
2405
|
};
|
|
2406
|
+
/**
|
|
2407
|
+
* Enables compare-display coloring on non-overlay layouts of this view.
|
|
2408
|
+
* Pass an overlay {@link AcTrLayout} to color a reference overlay separately.
|
|
2409
|
+
*
|
|
2410
|
+
* @param options - Compare colors and per-entity role overrides.
|
|
2411
|
+
* @param targetLayout - Overlay layout to color; omit for the main scene.
|
|
2412
|
+
*/
|
|
2413
|
+
AcTrView2d.prototype.setCompareDisplay = function (options, targetLayout) {
|
|
2414
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2415
|
+
var baseColor = (_c = (_a = options.baseColor) !== null && _a !== void 0 ? _a : (_b = options.colors) === null || _b === void 0 ? void 0 : _b.unchanged) !== null && _c !== void 0 ? _c : 0x9ca3af;
|
|
2416
|
+
var mapped = {
|
|
2417
|
+
enabled: options.enabled,
|
|
2418
|
+
baseColor: baseColor,
|
|
2419
|
+
colors: {
|
|
2420
|
+
deleted: (_d = options.colors) === null || _d === void 0 ? void 0 : _d.deleted,
|
|
2421
|
+
added: (_e = options.colors) === null || _e === void 0 ? void 0 : _e.added,
|
|
2422
|
+
modified: (_f = options.colors) === null || _f === void 0 ? void 0 : _f.modified
|
|
2423
|
+
},
|
|
2424
|
+
overrides: options.overrides
|
|
2425
|
+
};
|
|
2426
|
+
if (targetLayout) {
|
|
2427
|
+
targetLayout.setCompareDisplay(mapped);
|
|
2428
|
+
}
|
|
2429
|
+
else {
|
|
2430
|
+
this._scene.setCompareDisplay(mapped);
|
|
2431
|
+
}
|
|
2432
|
+
this._isDirty = true;
|
|
2433
|
+
};
|
|
2096
2434
|
AcTrView2d.prototype.stopAnimationLoop = function () {
|
|
2097
2435
|
if (this._rafId != null) {
|
|
2098
2436
|
cancelAnimationFrame(this._rafId);
|
|
@@ -2103,6 +2441,8 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
2103
2441
|
* @inheritdoc
|
|
2104
2442
|
*/
|
|
2105
2443
|
AcTrView2d.prototype.onHover = function (id) {
|
|
2444
|
+
if (!this.entitySelectionEnabled)
|
|
2445
|
+
return;
|
|
2106
2446
|
this._isDirty = this._scene.hover([id]);
|
|
2107
2447
|
};
|
|
2108
2448
|
/**
|
|
@@ -2127,11 +2467,21 @@ var AcTrView2d = /** @class */ (function (_super) {
|
|
|
2127
2467
|
return stats;
|
|
2128
2468
|
};
|
|
2129
2469
|
AcTrView2d.prototype.onWindowResize = function () {
|
|
2130
|
-
|
|
2470
|
+
// Refresh size first, then sync WebGL / CSS2D / frustum before notifying
|
|
2471
|
+
// listeners so `worldToScreen` consumers see the new projection.
|
|
2472
|
+
this.refreshViewSize();
|
|
2131
2473
|
this._renderer.setSize(this.width, this.height);
|
|
2132
2474
|
this._css2dRenderer.setSize(this.width, this.height);
|
|
2133
2475
|
this._layoutViewManager.resize(this.width, this.height);
|
|
2134
2476
|
this._isDirty = true;
|
|
2477
|
+
this.events.viewResize.dispatch({
|
|
2478
|
+
width: this.width,
|
|
2479
|
+
height: this.height
|
|
2480
|
+
});
|
|
2481
|
+
// CSS2D badges reproject via `_isDirty`. Canvas overlays (measure /
|
|
2482
|
+
// markup strokes, live preview) paint with `worldToScreen` and listen to
|
|
2483
|
+
// `viewChanged` only — resize must notify them too.
|
|
2484
|
+
this.events.viewChanged.dispatch();
|
|
2135
2485
|
};
|
|
2136
2486
|
AcTrView2d.prototype.startAnimationLoop = function () {
|
|
2137
2487
|
if (this._rafId == null) {
|