@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
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { AcCmEventManager, AcDbEntity, AcDbLayerTableRecord, AcDbLayerTableRecordAttrs, AcDbLayout, AcDbObjectId, AcGeBox2d, AcGeBox3d, AcGeMatrix3d, AcGePoint2d, AcGePoint2dLike } from '@mlightcad/data-model';
|
|
2
2
|
import type { AcTrSpatialSearchOptions } from '../../spatialIndex/AcTrSpatialIndex';
|
|
3
|
+
import type { AcEdSessionAccessory, AcEdSessionAccessoryHostInfo } from '../command/AcEdSessionAccessory';
|
|
4
|
+
import { AcEdSessionProviderRegistry } from '../command/AcEdSessionProviderRegistry';
|
|
3
5
|
import { AcEdCorsorType, AcEdSelectionSet } from '../input';
|
|
4
6
|
import { AcEditor } from '../input/AcEditor';
|
|
5
|
-
import { AcEdOsnapResolver } from '../input/AcEdOsnapResolver';
|
|
7
|
+
import { type AcEdOsnapPoint, AcEdOsnapResolver } from '../input/AcEdOsnapResolver';
|
|
6
8
|
import { AcEdSelectionAction } from './AcEdSelectionAction';
|
|
7
9
|
import { AcEdSpatialQueryResultItemEx } from './AcEdSpatialQueryResult';
|
|
10
|
+
import { AcEdViewMode } from './AcEdViewMode';
|
|
11
|
+
export { AcEdViewMode } from './AcEdViewMode';
|
|
8
12
|
/**
|
|
9
13
|
* Interface to define arguments of mouse event events.
|
|
10
14
|
*/
|
|
@@ -48,6 +52,20 @@ export interface AcEdViewHoverEventArgs {
|
|
|
48
52
|
*/
|
|
49
53
|
id: AcDbObjectId;
|
|
50
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Screen-fixed snap-loupe overlay: CSS rectangle on the canvas plus the
|
|
57
|
+
* world box shown inside it.
|
|
58
|
+
*/
|
|
59
|
+
export interface AcEdSnapLoupeViewState {
|
|
60
|
+
/** Canvas-local left of the loupe (CSS pixels). */
|
|
61
|
+
x: number;
|
|
62
|
+
/** Canvas-local top of the loupe (CSS pixels). */
|
|
63
|
+
y: number;
|
|
64
|
+
/** Width and height of the square loupe (CSS pixels). */
|
|
65
|
+
size: number;
|
|
66
|
+
/** World-space box mapped onto the loupe. */
|
|
67
|
+
viewBox: AcGeBox2d;
|
|
68
|
+
}
|
|
51
69
|
/**
|
|
52
70
|
* Interface to define arguments of render frame events.
|
|
53
71
|
*/
|
|
@@ -61,42 +79,6 @@ export interface AcEdViewRenderFrameEventArgs {
|
|
|
61
79
|
*/
|
|
62
80
|
camera: unknown;
|
|
63
81
|
}
|
|
64
|
-
/**
|
|
65
|
-
* Enumeration of view interaction modes.
|
|
66
|
-
*
|
|
67
|
-
* The view mode determines how the view responds to user mouse interactions:
|
|
68
|
-
* - In SELECTION mode, clicks select entities
|
|
69
|
-
* - In PAN mode, clicks and drags pan the view
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```typescript
|
|
73
|
-
* // Set to selection mode for entity picking
|
|
74
|
-
* view.mode = AcEdViewMode.SELECTION;
|
|
75
|
-
*
|
|
76
|
-
* // Set to pan mode for view navigation
|
|
77
|
-
* view.mode = AcEdViewMode.PAN;
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
export declare enum AcEdViewMode {
|
|
81
|
-
/**
|
|
82
|
-
* Selection mode - mouse clicks select entities.
|
|
83
|
-
*
|
|
84
|
-
* In this mode:
|
|
85
|
-
* - Single clicks select individual entities
|
|
86
|
-
* - Drag operations can create selection boxes
|
|
87
|
-
* - Selected entities are highlighted with grip points
|
|
88
|
-
*/
|
|
89
|
-
SELECTION = 0,
|
|
90
|
-
/**
|
|
91
|
-
* Pan mode - mouse interactions pan the view.
|
|
92
|
-
*
|
|
93
|
-
* In this mode:
|
|
94
|
-
* - Click and drag operations move the view
|
|
95
|
-
* - The cursor typically changes to indicate pan mode
|
|
96
|
-
* - Entity selection is disabled
|
|
97
|
-
*/
|
|
98
|
-
PAN = 1
|
|
99
|
-
}
|
|
100
82
|
/**
|
|
101
83
|
* Selection box interaction mode.
|
|
102
84
|
*/
|
|
@@ -186,8 +168,19 @@ export declare abstract class AcEdBaseView {
|
|
|
186
168
|
* the canvas bounding-rect origin (`viewportToCanvas`).
|
|
187
169
|
*/
|
|
188
170
|
private _curMousePos;
|
|
171
|
+
/**
|
|
172
|
+
* True after at least one mouse or pointer sample has updated
|
|
173
|
+
* {@link curMousePos}. Touch devices never fire `mousemove` until a finger
|
|
174
|
+
* is down, so the default `(0, 0)` must not be treated as a real cursor.
|
|
175
|
+
*/
|
|
176
|
+
private _hasCursorPos;
|
|
189
177
|
/** Set of currently selected entities */
|
|
190
178
|
private _selectionSet;
|
|
179
|
+
/**
|
|
180
|
+
* When false, pointer hover and click/box gestures do not select or
|
|
181
|
+
* highlight CAD entities. Markup overlays can still be picked.
|
|
182
|
+
*/
|
|
183
|
+
private _entitySelectionEnabled;
|
|
191
184
|
/** Input manager for handling user interactions */
|
|
192
185
|
private _editor;
|
|
193
186
|
/** Size of selection box in pixels for entity picking */
|
|
@@ -207,10 +200,19 @@ export declare abstract class AcEdBaseView {
|
|
|
207
200
|
private _hoverController;
|
|
208
201
|
/** Resolves object snap points using this view's pick and coordinate APIs. */
|
|
209
202
|
private _osnapResolver;
|
|
203
|
+
/** OSNAP markers shown while dragging overlay measurement / markup grips. */
|
|
204
|
+
private _overlayGripOsnapMarkers;
|
|
205
|
+
/** Last object snap acquired during {@link resolveOverlayGripPoint}, if any. */
|
|
206
|
+
private _lastOverlayGripOsnap;
|
|
210
207
|
/** The HTML canvas element for rendering */
|
|
211
208
|
protected _canvas: HTMLCanvasElement;
|
|
212
209
|
/** The HTML element to contain this view */
|
|
213
210
|
protected _container: HTMLElement;
|
|
211
|
+
/**
|
|
212
|
+
* Long-lived session UI providers for this view (draw-style, etc.).
|
|
213
|
+
* Feature installs register here; mountable accessories are minted on demand.
|
|
214
|
+
*/
|
|
215
|
+
readonly sessionProviders: AcEdSessionProviderRegistry;
|
|
214
216
|
/** Events fired by the view for various interactions */
|
|
215
217
|
readonly events: {
|
|
216
218
|
/** Fired when mouse moves over the view */
|
|
@@ -246,6 +248,20 @@ export declare abstract class AcEdBaseView {
|
|
|
246
248
|
* @returns The editor instance
|
|
247
249
|
*/
|
|
248
250
|
get editor(): AcEditor;
|
|
251
|
+
/**
|
|
252
|
+
* Active mount target for session accessories (desktop slot or mobile panel).
|
|
253
|
+
*/
|
|
254
|
+
get sessionAccessoryHost(): AcEdSessionAccessoryHostInfo;
|
|
255
|
+
/**
|
|
256
|
+
* Selection-driven session accessory shown when no command accessory is mounted.
|
|
257
|
+
*/
|
|
258
|
+
get selectionSessionAccessory(): AcEdSessionAccessory | null;
|
|
259
|
+
/**
|
|
260
|
+
* Updates the selection-driven session accessory forwarded to the input manager.
|
|
261
|
+
*
|
|
262
|
+
* @param value - Accessory to show on selection, or `null` to clear.
|
|
263
|
+
*/
|
|
264
|
+
set selectionSessionAccessory(value: AcEdSessionAccessory | null);
|
|
249
265
|
/**
|
|
250
266
|
* Gets the size of the selection box used for entity picking.
|
|
251
267
|
*
|
|
@@ -668,22 +684,111 @@ export declare abstract class AcEdBaseView {
|
|
|
668
684
|
* when browser-viewport coordinates are required by DOM APIs.
|
|
669
685
|
*/
|
|
670
686
|
get curMousePos(): AcGePoint2d;
|
|
687
|
+
/**
|
|
688
|
+
* Whether {@link curMousePos} has been set by a real pointer sample.
|
|
689
|
+
*
|
|
690
|
+
* @returns False until the first mouse or pointer event on the canvas.
|
|
691
|
+
*/
|
|
692
|
+
get hasCursorPos(): boolean;
|
|
693
|
+
/**
|
|
694
|
+
* Marks {@link curMousePos} as stale so the next point prompt does not
|
|
695
|
+
* treat a leftover touch sample as a live cursor.
|
|
696
|
+
*
|
|
697
|
+
* Touch picking commits on `pointerup`. The finger position must not seed
|
|
698
|
+
* the following prompt's jig (that would draw a short segment next to the
|
|
699
|
+
* pick). The next real pointer sample sets this flag again.
|
|
700
|
+
*/
|
|
701
|
+
clearCursorPos(): void;
|
|
671
702
|
/**
|
|
672
703
|
* The selection set in current view.
|
|
673
704
|
*/
|
|
674
705
|
get selectionSet(): AcEdSelectionSet;
|
|
706
|
+
/**
|
|
707
|
+
* Whether CAD entities can be selected and hover-highlighted.
|
|
708
|
+
*
|
|
709
|
+
* Markup / review overlays are unaffected. Default is `true`.
|
|
710
|
+
*/
|
|
711
|
+
get entitySelectionEnabled(): boolean;
|
|
712
|
+
set entitySelectionEnabled(value: boolean);
|
|
675
713
|
/**
|
|
676
714
|
* Object snap resolver scoped to this view.
|
|
677
715
|
*/
|
|
678
716
|
get osnapResolver(): AcEdOsnapResolver;
|
|
717
|
+
/**
|
|
718
|
+
* Enables or disables camera pan/zoom (OrbitControls) for this view.
|
|
719
|
+
* Default is a no-op; {@link AcTrView2d} toggles the active layout controls.
|
|
720
|
+
*
|
|
721
|
+
* @param _enabled - When false, the user cannot pan or zoom this view.
|
|
722
|
+
*/
|
|
723
|
+
setNavigationEnabled(_enabled: boolean): void;
|
|
724
|
+
/**
|
|
725
|
+
* Shows or hides the screen-fixed snap loupe overlay viewport.
|
|
726
|
+
* Pass `null` to hide. Default is a no-op.
|
|
727
|
+
*
|
|
728
|
+
* @param _state - Loupe screen rectangle and world box, or `null` to hide.
|
|
729
|
+
*/
|
|
730
|
+
setSnapLoupe(_state: AcEdSnapLoupeViewState | null): void;
|
|
731
|
+
/**
|
|
732
|
+
* Resolves a world XY cursor through object snap and updates overlay grip
|
|
733
|
+
* snap markers. Used by HTML overlay endpoint drags (measure / markup).
|
|
734
|
+
*
|
|
735
|
+
* @param cursor - Raw world XY under the pointer.
|
|
736
|
+
* @param lastPoint - Grip origin passed to the osnap resolver as lastPoint.
|
|
737
|
+
* @returns Snapped world XY, or `cursor` when nothing is in aperture.
|
|
738
|
+
*/
|
|
739
|
+
resolveOverlayGripPoint(cursor: {
|
|
740
|
+
x: number;
|
|
741
|
+
y: number;
|
|
742
|
+
}, lastPoint?: {
|
|
743
|
+
x: number;
|
|
744
|
+
y: number;
|
|
745
|
+
}): {
|
|
746
|
+
x: number;
|
|
747
|
+
y: number;
|
|
748
|
+
};
|
|
749
|
+
/**
|
|
750
|
+
* Last object snap from {@link resolveOverlayGripPoint}, or `null` when the
|
|
751
|
+
* cursor is not within aperture of any snap.
|
|
752
|
+
*/
|
|
753
|
+
get lastOverlayGripOsnap(): AcEdOsnapPoint | null;
|
|
754
|
+
/**
|
|
755
|
+
* Shows or repositions the shared mobile snap loupe around a client sample.
|
|
756
|
+
* Used by overlay grip drag and point pick on phone/pad.
|
|
757
|
+
*
|
|
758
|
+
* @param clientX - Sample X in viewport/client CSS pixels.
|
|
759
|
+
* @param clientY - Sample Y in viewport/client CSS pixels.
|
|
760
|
+
* @param snap - Active object snap in world space, if any.
|
|
761
|
+
*/
|
|
762
|
+
refreshMobileSnapLoupe(clientX: number, clientY: number, snap?: {
|
|
763
|
+
x: number;
|
|
764
|
+
y: number;
|
|
765
|
+
type: number;
|
|
766
|
+
} | null): void;
|
|
767
|
+
/**
|
|
768
|
+
* Hides the shared mobile snap loupe for this view.
|
|
769
|
+
*/
|
|
770
|
+
hideMobileSnapLoupe(): void;
|
|
771
|
+
/**
|
|
772
|
+
* Hides overlay grip snap markers and clears acquired centers.
|
|
773
|
+
*/
|
|
774
|
+
clearOverlayGripOsnap(): void;
|
|
775
|
+
/**
|
|
776
|
+
* Updates {@link width} / {@link height} from the size callback or canvas
|
|
777
|
+
* client size without notifying listeners. Subclasses that must sync
|
|
778
|
+
* projection (camera frustum, renderer buffer) before notifying should call
|
|
779
|
+
* this first, then dispatch {@link events.viewResize} themselves.
|
|
780
|
+
*/
|
|
781
|
+
protected refreshViewSize(): void;
|
|
679
782
|
protected onWindowResize(): void;
|
|
680
783
|
/**
|
|
681
784
|
* Clears the current hover state and cancels all hover-related timers.
|
|
682
785
|
*/
|
|
683
786
|
protected clearHover(): void;
|
|
684
787
|
/**
|
|
685
|
-
*
|
|
686
|
-
*
|
|
788
|
+
* Pointer sample handler. Updates canvas-local and world cursor from mouse
|
|
789
|
+
* or touch coordinates.
|
|
790
|
+
*
|
|
791
|
+
* @param event - Mouse or pointer event with client coordinates.
|
|
687
792
|
*/
|
|
688
793
|
private onMouseMove;
|
|
689
794
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdBaseView.d.ts","sourceRoot":"","sources":["../../../src/editor/view/AcEdBaseView.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,oBAAoB,EACpB,yBAAyB,EACzB,UAAU,EACV,YAAY,EACZ,SAAS,EACT,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"AcEdBaseView.d.ts","sourceRoot":"","sources":["../../../src/editor/view/AcEdBaseView.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,oBAAoB,EACpB,yBAAyB,EACzB,UAAU,EACV,YAAY,EACZ,SAAS,EACT,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,KAAK,EACV,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAA;AACpF,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAC3D,OAAO,EAAE,QAAQ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AG,IAAI;IAI7C;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,GAAG,IAAI;IAIzD;;;;;;;OAOG;IACH,uBAAuB,CACrB,MAAM,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAChC,SAAS,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GACnC;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;IA2B3B;;;OAGG;IACH,IAAI,oBAAoB,IAAI,cAAc,GAAG,IAAI,CAEhD;IAED;;;;;;;OAOG;IACH,sBAAsB,CACpB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,GACnD,IAAI;IAIP;;OAEG;IACH,mBAAmB,IAAI,IAAI;IAI3B;;OAEG;IACH,qBAAqB,IAAI,IAAI;IAM7B;;;;;OAKG;IACH,SAAS,CAAC,eAAe;IAWzB,SAAS,CAAC,cAAc;IAQxB;;OAEG;IACH,SAAS,CAAC,UAAU;IAIpB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;CAmBpB"}
|
|
@@ -36,49 +36,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
};
|
|
37
37
|
import { AcCmEventManager, AcGeBox3d, AcGePoint2d } from '@mlightcad/data-model';
|
|
38
38
|
import { debounce } from 'lodash-es';
|
|
39
|
+
import { AcEdSessionProviderRegistry } from '../command/AcEdSessionProviderRegistry';
|
|
39
40
|
import { AcEdCorsorType, AcEdSelectionSet } from '../input';
|
|
40
41
|
import { AcEditor } from '../input/AcEditor';
|
|
41
42
|
import { AcEdOsnapResolver } from '../input/AcEdOsnapResolver';
|
|
43
|
+
import { AcEdMarkerManager } from '../input/marker';
|
|
44
|
+
import { acedHideMobileSnapLoupe, acedRefreshMobileSnapLoupe } from '../input/ui/AcEdMobileSnapLoupe';
|
|
42
45
|
import { AcEdHoverController } from './AcEdHoverController';
|
|
43
46
|
import { resolveSelectionActionFromEvent } from './AcEdSelectionAction';
|
|
44
47
|
import { isEffectiveSpatialQueryHit } from './AcEdSpatialQueryResult';
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*
|
|
48
|
-
* The view mode determines how the view responds to user mouse interactions:
|
|
49
|
-
* - In SELECTION mode, clicks select entities
|
|
50
|
-
* - In PAN mode, clicks and drags pan the view
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```typescript
|
|
54
|
-
* // Set to selection mode for entity picking
|
|
55
|
-
* view.mode = AcEdViewMode.SELECTION;
|
|
56
|
-
*
|
|
57
|
-
* // Set to pan mode for view navigation
|
|
58
|
-
* view.mode = AcEdViewMode.PAN;
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
export var AcEdViewMode;
|
|
62
|
-
(function (AcEdViewMode) {
|
|
63
|
-
/**
|
|
64
|
-
* Selection mode - mouse clicks select entities.
|
|
65
|
-
*
|
|
66
|
-
* In this mode:
|
|
67
|
-
* - Single clicks select individual entities
|
|
68
|
-
* - Drag operations can create selection boxes
|
|
69
|
-
* - Selected entities are highlighted with grip points
|
|
70
|
-
*/
|
|
71
|
-
AcEdViewMode[AcEdViewMode["SELECTION"] = 0] = "SELECTION";
|
|
72
|
-
/**
|
|
73
|
-
* Pan mode - mouse interactions pan the view.
|
|
74
|
-
*
|
|
75
|
-
* In this mode:
|
|
76
|
-
* - Click and drag operations move the view
|
|
77
|
-
* - The cursor typically changes to indicate pan mode
|
|
78
|
-
* - Entity selection is disabled
|
|
79
|
-
*/
|
|
80
|
-
AcEdViewMode[AcEdViewMode["PAN"] = 1] = "PAN";
|
|
81
|
-
})(AcEdViewMode || (AcEdViewMode = {}));
|
|
48
|
+
import { AcEdViewMode } from './AcEdViewMode';
|
|
49
|
+
export { AcEdViewMode } from './AcEdViewMode';
|
|
82
50
|
export { resolvePointerSelectionAction, resolveSelectionActionFromEvent } from './AcEdSelectionAction';
|
|
83
51
|
/**
|
|
84
52
|
* Abstract base class for all CAD view implementations.
|
|
@@ -131,6 +99,26 @@ var AcEdBaseView = /** @class */ (function () {
|
|
|
131
99
|
*/
|
|
132
100
|
function AcEdBaseView(canvas, container) {
|
|
133
101
|
var _this = this;
|
|
102
|
+
/**
|
|
103
|
+
* True after at least one mouse or pointer sample has updated
|
|
104
|
+
* {@link curMousePos}. Touch devices never fire `mousemove` until a finger
|
|
105
|
+
* is down, so the default `(0, 0)` must not be treated as a real cursor.
|
|
106
|
+
*/
|
|
107
|
+
this._hasCursorPos = false;
|
|
108
|
+
/**
|
|
109
|
+
* When false, pointer hover and click/box gestures do not select or
|
|
110
|
+
* highlight CAD entities. Markup overlays can still be picked.
|
|
111
|
+
*/
|
|
112
|
+
this._entitySelectionEnabled = true;
|
|
113
|
+
/** OSNAP markers shown while dragging overlay measurement / markup grips. */
|
|
114
|
+
this._overlayGripOsnapMarkers = null;
|
|
115
|
+
/** Last object snap acquired during {@link resolveOverlayGripPoint}, if any. */
|
|
116
|
+
this._lastOverlayGripOsnap = null;
|
|
117
|
+
/**
|
|
118
|
+
* Long-lived session UI providers for this view (draw-style, etc.).
|
|
119
|
+
* Feature installs register here; mountable accessories are minted on demand.
|
|
120
|
+
*/
|
|
121
|
+
this.sessionProviders = new AcEdSessionProviderRegistry();
|
|
134
122
|
/** Events fired by the view for various interactions */
|
|
135
123
|
this.events = {
|
|
136
124
|
/** Fired when mouse moves over the view */
|
|
@@ -154,10 +142,23 @@ var AcEdBaseView = /** @class */ (function () {
|
|
|
154
142
|
this._height = rect.height;
|
|
155
143
|
this._curPos = new AcGePoint2d();
|
|
156
144
|
this._curMousePos = new AcGePoint2d();
|
|
145
|
+
this._hasCursorPos = false;
|
|
157
146
|
this._selectionSet = new AcEdSelectionSet();
|
|
158
147
|
this._editor = new AcEditor(this);
|
|
159
148
|
this._osnapResolver = new AcEdOsnapResolver(this);
|
|
160
149
|
this._canvas.addEventListener('mousemove', function (event) { return _this.onMouseMove(event); });
|
|
150
|
+
// Touch does not fire `mousemove`. Keep cursor (and therefore the next
|
|
151
|
+
// point-prompt preview) in sync with the finger, otherwise `curMousePos`
|
|
152
|
+
// stays at canvas (0, 0) — the top-left of the view. Mouse already has
|
|
153
|
+
// `mousemove`; do not also handle pointer events or hover runs twice.
|
|
154
|
+
this._canvas.addEventListener('pointerdown', function (event) {
|
|
155
|
+
if (event.pointerType === 'touch')
|
|
156
|
+
_this.onMouseMove(event);
|
|
157
|
+
});
|
|
158
|
+
this._canvas.addEventListener('pointermove', function (event) {
|
|
159
|
+
if (event.pointerType === 'touch')
|
|
160
|
+
_this.onMouseMove(event);
|
|
161
|
+
});
|
|
161
162
|
this._canvas.addEventListener('mousedown', function (event) {
|
|
162
163
|
if (event.button === 1) {
|
|
163
164
|
// Middle mouse button (button === 1)
|
|
@@ -199,6 +200,34 @@ var AcEdBaseView = /** @class */ (function () {
|
|
|
199
200
|
enumerable: false,
|
|
200
201
|
configurable: true
|
|
201
202
|
});
|
|
203
|
+
Object.defineProperty(AcEdBaseView.prototype, "sessionAccessoryHost", {
|
|
204
|
+
/**
|
|
205
|
+
* Active mount target for session accessories (desktop slot or mobile panel).
|
|
206
|
+
*/
|
|
207
|
+
get: function () {
|
|
208
|
+
return this._editor.inputManager.sessionAccessoryHost;
|
|
209
|
+
},
|
|
210
|
+
enumerable: false,
|
|
211
|
+
configurable: true
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(AcEdBaseView.prototype, "selectionSessionAccessory", {
|
|
214
|
+
/**
|
|
215
|
+
* Selection-driven session accessory shown when no command accessory is mounted.
|
|
216
|
+
*/
|
|
217
|
+
get: function () {
|
|
218
|
+
return this._editor.inputManager.selectionSessionAccessory;
|
|
219
|
+
},
|
|
220
|
+
/**
|
|
221
|
+
* Updates the selection-driven session accessory forwarded to the input manager.
|
|
222
|
+
*
|
|
223
|
+
* @param value - Accessory to show on selection, or `null` to clear.
|
|
224
|
+
*/
|
|
225
|
+
set: function (value) {
|
|
226
|
+
this._editor.inputManager.selectionSessionAccessory = value;
|
|
227
|
+
},
|
|
228
|
+
enumerable: false,
|
|
229
|
+
configurable: true
|
|
230
|
+
});
|
|
202
231
|
Object.defineProperty(AcEdBaseView.prototype, "selectionBoxSize", {
|
|
203
232
|
/**
|
|
204
233
|
* Gets the size of the selection box used for entity picking.
|
|
@@ -338,6 +367,8 @@ var AcEdBaseView = /** @class */ (function () {
|
|
|
338
367
|
*/
|
|
339
368
|
AcEdBaseView.prototype.applySelection = function (ids, action) {
|
|
340
369
|
var _this = this;
|
|
370
|
+
if (!this.entitySelectionEnabled)
|
|
371
|
+
return;
|
|
341
372
|
if (action === 'replace') {
|
|
342
373
|
this.selectionSet.clear();
|
|
343
374
|
var unique = ids.filter(function (id) { return !_this.selectionSet.has(id); });
|
|
@@ -506,6 +537,29 @@ var AcEdBaseView = /** @class */ (function () {
|
|
|
506
537
|
enumerable: false,
|
|
507
538
|
configurable: true
|
|
508
539
|
});
|
|
540
|
+
Object.defineProperty(AcEdBaseView.prototype, "hasCursorPos", {
|
|
541
|
+
/**
|
|
542
|
+
* Whether {@link curMousePos} has been set by a real pointer sample.
|
|
543
|
+
*
|
|
544
|
+
* @returns False until the first mouse or pointer event on the canvas.
|
|
545
|
+
*/
|
|
546
|
+
get: function () {
|
|
547
|
+
return this._hasCursorPos;
|
|
548
|
+
},
|
|
549
|
+
enumerable: false,
|
|
550
|
+
configurable: true
|
|
551
|
+
});
|
|
552
|
+
/**
|
|
553
|
+
* Marks {@link curMousePos} as stale so the next point prompt does not
|
|
554
|
+
* treat a leftover touch sample as a live cursor.
|
|
555
|
+
*
|
|
556
|
+
* Touch picking commits on `pointerup`. The finger position must not seed
|
|
557
|
+
* the following prompt's jig (that would draw a short segment next to the
|
|
558
|
+
* pick). The next real pointer sample sets this flag again.
|
|
559
|
+
*/
|
|
560
|
+
AcEdBaseView.prototype.clearCursorPos = function () {
|
|
561
|
+
this._hasCursorPos = false;
|
|
562
|
+
};
|
|
509
563
|
Object.defineProperty(AcEdBaseView.prototype, "selectionSet", {
|
|
510
564
|
/**
|
|
511
565
|
* The selection set in current view.
|
|
@@ -516,6 +570,27 @@ var AcEdBaseView = /** @class */ (function () {
|
|
|
516
570
|
enumerable: false,
|
|
517
571
|
configurable: true
|
|
518
572
|
});
|
|
573
|
+
Object.defineProperty(AcEdBaseView.prototype, "entitySelectionEnabled", {
|
|
574
|
+
/**
|
|
575
|
+
* Whether CAD entities can be selected and hover-highlighted.
|
|
576
|
+
*
|
|
577
|
+
* Markup / review overlays are unaffected. Default is `true`.
|
|
578
|
+
*/
|
|
579
|
+
get: function () {
|
|
580
|
+
return this._entitySelectionEnabled;
|
|
581
|
+
},
|
|
582
|
+
set: function (value) {
|
|
583
|
+
if (this._entitySelectionEnabled === value)
|
|
584
|
+
return;
|
|
585
|
+
this._entitySelectionEnabled = value;
|
|
586
|
+
if (!value) {
|
|
587
|
+
this.clearHover();
|
|
588
|
+
this.selectionSet.clear();
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
enumerable: false,
|
|
592
|
+
configurable: true
|
|
593
|
+
});
|
|
519
594
|
Object.defineProperty(AcEdBaseView.prototype, "osnapResolver", {
|
|
520
595
|
/**
|
|
521
596
|
* Object snap resolver scoped to this view.
|
|
@@ -526,7 +601,95 @@ var AcEdBaseView = /** @class */ (function () {
|
|
|
526
601
|
enumerable: false,
|
|
527
602
|
configurable: true
|
|
528
603
|
});
|
|
529
|
-
|
|
604
|
+
/**
|
|
605
|
+
* Enables or disables camera pan/zoom (OrbitControls) for this view.
|
|
606
|
+
* Default is a no-op; {@link AcTrView2d} toggles the active layout controls.
|
|
607
|
+
*
|
|
608
|
+
* @param _enabled - When false, the user cannot pan or zoom this view.
|
|
609
|
+
*/
|
|
610
|
+
AcEdBaseView.prototype.setNavigationEnabled = function (_enabled) {
|
|
611
|
+
// Optional; 2D view overrides this.
|
|
612
|
+
};
|
|
613
|
+
/**
|
|
614
|
+
* Shows or hides the screen-fixed snap loupe overlay viewport.
|
|
615
|
+
* Pass `null` to hide. Default is a no-op.
|
|
616
|
+
*
|
|
617
|
+
* @param _state - Loupe screen rectangle and world box, or `null` to hide.
|
|
618
|
+
*/
|
|
619
|
+
AcEdBaseView.prototype.setSnapLoupe = function (_state) {
|
|
620
|
+
// Optional; 2D view overrides this.
|
|
621
|
+
};
|
|
622
|
+
/**
|
|
623
|
+
* Resolves a world XY cursor through object snap and updates overlay grip
|
|
624
|
+
* snap markers. Used by HTML overlay endpoint drags (measure / markup).
|
|
625
|
+
*
|
|
626
|
+
* @param cursor - Raw world XY under the pointer.
|
|
627
|
+
* @param lastPoint - Grip origin passed to the osnap resolver as lastPoint.
|
|
628
|
+
* @returns Snapped world XY, or `cursor` when nothing is in aperture.
|
|
629
|
+
*/
|
|
630
|
+
AcEdBaseView.prototype.resolveOverlayGripPoint = function (cursor, lastPoint) {
|
|
631
|
+
var _a;
|
|
632
|
+
var cursorWcs = { x: cursor.x, y: cursor.y, z: 0 };
|
|
633
|
+
(_a = this._overlayGripOsnapMarkers) !== null && _a !== void 0 ? _a : (this._overlayGripOsnapMarkers = new AcEdMarkerManager(this));
|
|
634
|
+
var snapPoint = this._osnapResolver.resolve({
|
|
635
|
+
cursorWcs: cursorWcs,
|
|
636
|
+
lastPoint: lastPoint
|
|
637
|
+
? { x: lastPoint.x, y: lastPoint.y, z: 0 }
|
|
638
|
+
: cursorWcs
|
|
639
|
+
});
|
|
640
|
+
this._lastOverlayGripOsnap = snapPoint !== null && snapPoint !== void 0 ? snapPoint : null;
|
|
641
|
+
this._overlayGripOsnapMarkers.setHintMarkers(AcEdOsnapResolver.displayCenterMarks(this._osnapResolver.acquiredCenterMarks, snapPoint));
|
|
642
|
+
if (snapPoint) {
|
|
643
|
+
this._overlayGripOsnapMarkers.showOrRepositionMarker(snapPoint, AcEdOsnapResolver.osnapModeToMarkerType(snapPoint.type));
|
|
644
|
+
return { x: snapPoint.x, y: snapPoint.y };
|
|
645
|
+
}
|
|
646
|
+
this._overlayGripOsnapMarkers.hideMarker();
|
|
647
|
+
return { x: cursor.x, y: cursor.y };
|
|
648
|
+
};
|
|
649
|
+
Object.defineProperty(AcEdBaseView.prototype, "lastOverlayGripOsnap", {
|
|
650
|
+
/**
|
|
651
|
+
* Last object snap from {@link resolveOverlayGripPoint}, or `null` when the
|
|
652
|
+
* cursor is not within aperture of any snap.
|
|
653
|
+
*/
|
|
654
|
+
get: function () {
|
|
655
|
+
return this._lastOverlayGripOsnap;
|
|
656
|
+
},
|
|
657
|
+
enumerable: false,
|
|
658
|
+
configurable: true
|
|
659
|
+
});
|
|
660
|
+
/**
|
|
661
|
+
* Shows or repositions the shared mobile snap loupe around a client sample.
|
|
662
|
+
* Used by overlay grip drag and point pick on phone/pad.
|
|
663
|
+
*
|
|
664
|
+
* @param clientX - Sample X in viewport/client CSS pixels.
|
|
665
|
+
* @param clientY - Sample Y in viewport/client CSS pixels.
|
|
666
|
+
* @param snap - Active object snap in world space, if any.
|
|
667
|
+
*/
|
|
668
|
+
AcEdBaseView.prototype.refreshMobileSnapLoupe = function (clientX, clientY, snap) {
|
|
669
|
+
acedRefreshMobileSnapLoupe(this, clientX, clientY, snap);
|
|
670
|
+
};
|
|
671
|
+
/**
|
|
672
|
+
* Hides the shared mobile snap loupe for this view.
|
|
673
|
+
*/
|
|
674
|
+
AcEdBaseView.prototype.hideMobileSnapLoupe = function () {
|
|
675
|
+
acedHideMobileSnapLoupe(this);
|
|
676
|
+
};
|
|
677
|
+
/**
|
|
678
|
+
* Hides overlay grip snap markers and clears acquired centers.
|
|
679
|
+
*/
|
|
680
|
+
AcEdBaseView.prototype.clearOverlayGripOsnap = function () {
|
|
681
|
+
var _a;
|
|
682
|
+
this._lastOverlayGripOsnap = null;
|
|
683
|
+
(_a = this._overlayGripOsnapMarkers) === null || _a === void 0 ? void 0 : _a.clear();
|
|
684
|
+
this._osnapResolver.clearAcquiredCenters();
|
|
685
|
+
};
|
|
686
|
+
/**
|
|
687
|
+
* Updates {@link width} / {@link height} from the size callback or canvas
|
|
688
|
+
* client size without notifying listeners. Subclasses that must sync
|
|
689
|
+
* projection (camera frustum, renderer buffer) before notifying should call
|
|
690
|
+
* this first, then dispatch {@link events.viewResize} themselves.
|
|
691
|
+
*/
|
|
692
|
+
AcEdBaseView.prototype.refreshViewSize = function () {
|
|
530
693
|
if (this._calculateSizeCallback) {
|
|
531
694
|
var _a = this._calculateSizeCallback(), width = _a.width, height = _a.height;
|
|
532
695
|
this._width = Math.max(1, Math.floor(width));
|
|
@@ -536,6 +699,9 @@ var AcEdBaseView = /** @class */ (function () {
|
|
|
536
699
|
this._width = Math.max(1, Math.floor(this._canvas.clientWidth));
|
|
537
700
|
this._height = Math.max(1, Math.floor(this._canvas.clientHeight));
|
|
538
701
|
}
|
|
702
|
+
};
|
|
703
|
+
AcEdBaseView.prototype.onWindowResize = function () {
|
|
704
|
+
this.refreshViewSize();
|
|
539
705
|
this.events.viewResize.dispatch({
|
|
540
706
|
width: this._width,
|
|
541
707
|
height: this._height
|
|
@@ -548,11 +714,14 @@ var AcEdBaseView = /** @class */ (function () {
|
|
|
548
714
|
this._hoverController.clear();
|
|
549
715
|
};
|
|
550
716
|
/**
|
|
551
|
-
*
|
|
552
|
-
*
|
|
717
|
+
* Pointer sample handler. Updates canvas-local and world cursor from mouse
|
|
718
|
+
* or touch coordinates.
|
|
719
|
+
*
|
|
720
|
+
* @param event - Mouse or pointer event with client coordinates.
|
|
553
721
|
*/
|
|
554
722
|
AcEdBaseView.prototype.onMouseMove = function (event) {
|
|
555
723
|
// Keep one canonical conversion path for all view input code.
|
|
724
|
+
this._hasCursorPos = true;
|
|
556
725
|
this._curMousePos = this.viewportToCanvas({
|
|
557
726
|
x: event.clientX,
|
|
558
727
|
y: event.clientY
|
|
@@ -561,7 +730,7 @@ var AcEdBaseView = /** @class */ (function () {
|
|
|
561
730
|
this._curPos.copy(wcsPos);
|
|
562
731
|
this.events.mouseMove.dispatch({ x: wcsPos.x, y: wcsPos.y });
|
|
563
732
|
// Hover handler
|
|
564
|
-
if (this.mode == AcEdViewMode.SELECTION) {
|
|
733
|
+
if (this.entitySelectionEnabled && this.mode == AcEdViewMode.SELECTION) {
|
|
565
734
|
// If it is in “input acquisition” mode, disable hover behavior
|
|
566
735
|
if (!this._editor.isActive) {
|
|
567
736
|
this._hoverController.handleMouseMove(wcsPos.x, wcsPos.y);
|