@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
|
@@ -46,6 +46,39 @@ export declare class AcEdFloatingInput<T> extends AcEdFloatingMessage {
|
|
|
46
46
|
private drawPreview?;
|
|
47
47
|
/** Cached click handler */
|
|
48
48
|
private boundOnClick;
|
|
49
|
+
/** Cached touch `pointerdown` handler for delayed pick / snap loupe. */
|
|
50
|
+
private boundOnPointerDown;
|
|
51
|
+
/** Cached touch `pointermove` handler for pick preview and loupe tracking. */
|
|
52
|
+
private boundOnPointerMove;
|
|
53
|
+
/** Cached touch `pointerup` handler that commits the pick. */
|
|
54
|
+
private boundOnPointerUp;
|
|
55
|
+
/** Cached `pointercancel` handler that aborts a pan or keeps a long-press. */
|
|
56
|
+
private boundOnPointerCancel;
|
|
57
|
+
/** Cached one-finger `touchstart` so the OS long-press menu does not win. */
|
|
58
|
+
private boundOnTouchStart;
|
|
59
|
+
/** Cached `touchmove` used after `pointercancel` while the finger is down. */
|
|
60
|
+
private boundOnTouchMove;
|
|
61
|
+
/** Cached `touchend` that commits when `pointerup` was swallowed. */
|
|
62
|
+
private boundOnTouchEnd;
|
|
63
|
+
/** Cached `contextmenu` handler that blocks touch long-press Enter. */
|
|
64
|
+
private boundOnContextMenu;
|
|
65
|
+
/** Long-press / short-tap state for one-finger point picking. */
|
|
66
|
+
private readonly touchSession;
|
|
67
|
+
/**
|
|
68
|
+
* Latest finger sample waiting for the next animation frame during precise
|
|
69
|
+
* touch pick. Coalesces high-frequency touchmove into one osnap resolve per
|
|
70
|
+
* frame so expensive INT tests cannot pile up on the main thread.
|
|
71
|
+
*/
|
|
72
|
+
private pendingTouchPreciseFinger;
|
|
73
|
+
/** `requestAnimationFrame` id for {@link pendingTouchPreciseFinger}, or null. */
|
|
74
|
+
private touchPreciseRafId;
|
|
75
|
+
/**
|
|
76
|
+
* When true, a left-button mouse/pen `pointerdown` landed on this prompt's
|
|
77
|
+
* canvas, so the following `click` may commit. Touch never sets this:
|
|
78
|
+
* phone/pad hide dynamic input, so a leftover compatibility `click` would
|
|
79
|
+
* otherwise hit the canvas and commit the next point prompt.
|
|
80
|
+
*/
|
|
81
|
+
private mouseClickArmed;
|
|
49
82
|
/** Whether to suppress UI display while keeping input active */
|
|
50
83
|
private suppressDisplay;
|
|
51
84
|
/** Cached sysvar handler */
|
|
@@ -75,6 +108,117 @@ export declare class AcEdFloatingInput<T> extends AcEdFloatingMessage {
|
|
|
75
108
|
*/
|
|
76
109
|
requestPreviewRefresh(): void;
|
|
77
110
|
private handleClick;
|
|
111
|
+
/**
|
|
112
|
+
* Starts a one-finger pick on touch, or arms a mouse/pen click commit.
|
|
113
|
+
*
|
|
114
|
+
* Pointer type, not layout: a pad with a mouse still clicks; a desktop
|
|
115
|
+
* with a touch screen still long-presses. Session chrome / marks are
|
|
116
|
+
* {@link acedInteractionStrategy} point policy. Loupe vs simulated mouse
|
|
117
|
+
* is {@link acedTouchPickStrategy}.
|
|
118
|
+
*
|
|
119
|
+
* @param e - Pointer event; button 0 only. Touch is handled here; mouse and
|
|
120
|
+
* pen arm {@link mouseClickArmed} so the following `click` can commit.
|
|
121
|
+
*/
|
|
122
|
+
private handlePointerDown;
|
|
123
|
+
/**
|
|
124
|
+
* Updates the pick preview while the finger is down. Movement past the
|
|
125
|
+
* cancel threshold before the long-press fires is treated as a pan.
|
|
126
|
+
* Jig / rubber-band updates wait until precise capture opens.
|
|
127
|
+
*
|
|
128
|
+
* @param e - Pointer event for the active touch session.
|
|
129
|
+
*/
|
|
130
|
+
private handlePointerMove;
|
|
131
|
+
/**
|
|
132
|
+
* Ends the touch pick. A short tap or loupe release commits the point;
|
|
133
|
+
* a pan-aborted gesture does not. The following `click` is swallowed.
|
|
134
|
+
*
|
|
135
|
+
* @param e - Pointer event that ended the gesture.
|
|
136
|
+
*/
|
|
137
|
+
private handlePointerUp;
|
|
138
|
+
/**
|
|
139
|
+
* Aborts a pan-converted gesture. A still-finger OS long-press also fires
|
|
140
|
+
* `pointercancel`; keep that pick alive so `touchend` can commit.
|
|
141
|
+
*
|
|
142
|
+
* @param e - Pointer event; only `touch` is handled.
|
|
143
|
+
*/
|
|
144
|
+
private handlePointerCancel;
|
|
145
|
+
/**
|
|
146
|
+
* Blocks the OS long-press callout so it does not scroll the canvas or
|
|
147
|
+
* synthesize a leftover mouse click.
|
|
148
|
+
*
|
|
149
|
+
* @param e - Touch start; one-finger picks only.
|
|
150
|
+
*/
|
|
151
|
+
private handleTouchStart;
|
|
152
|
+
/**
|
|
153
|
+
* Continues the pick after `pointercancel` (Chrome/Safari long-press) when
|
|
154
|
+
* pointer events stop arriving.
|
|
155
|
+
*
|
|
156
|
+
* @param e - Window-level touch move.
|
|
157
|
+
*/
|
|
158
|
+
private handleTouchMove;
|
|
159
|
+
/**
|
|
160
|
+
* Commits the pick when `pointerup` was lost after `pointercancel`.
|
|
161
|
+
*
|
|
162
|
+
* @param e - Window-level touch end.
|
|
163
|
+
*/
|
|
164
|
+
private handleTouchEnd;
|
|
165
|
+
/**
|
|
166
|
+
* Stops touch long-press `contextmenu` from reaching the prompt's
|
|
167
|
+
* right-click-Enter handler.
|
|
168
|
+
*
|
|
169
|
+
* @param e - Context-menu event on the canvas.
|
|
170
|
+
*/
|
|
171
|
+
private handleContextMenu;
|
|
172
|
+
/**
|
|
173
|
+
* Ends the active touch session: commit a short tap / loupe release, or
|
|
174
|
+
* ignore a pan.
|
|
175
|
+
*
|
|
176
|
+
* @param clientX - Sample X in client CSS pixels.
|
|
177
|
+
* @param clientY - Sample Y in client CSS pixels.
|
|
178
|
+
*/
|
|
179
|
+
private completeTouchPick;
|
|
180
|
+
/**
|
|
181
|
+
* Releases pointer capture taken in {@link handlePointerDown}, if any.
|
|
182
|
+
*/
|
|
183
|
+
private releaseTouchCapture;
|
|
184
|
+
/**
|
|
185
|
+
* Converts a client sample to WCS (with OSNAP) and refreshes the dynamic
|
|
186
|
+
* preview / rubber band.
|
|
187
|
+
*
|
|
188
|
+
* @param clientX - Sample X in client CSS pixels.
|
|
189
|
+
* @param clientY - Sample Y in client CSS pixels.
|
|
190
|
+
*/
|
|
191
|
+
private applyClientSample;
|
|
192
|
+
/**
|
|
193
|
+
* Applies the active {@link acedTouchPickStrategy} finger→sample mapping
|
|
194
|
+
* during precise capture (loupe or simulated mouse).
|
|
195
|
+
*
|
|
196
|
+
* @param fingerX - Finger X in client CSS pixels.
|
|
197
|
+
* @param fingerY - Finger Y in client CSS pixels.
|
|
198
|
+
*/
|
|
199
|
+
private applyTouchPreciseSample;
|
|
200
|
+
/**
|
|
201
|
+
* Coalesces finger samples to one osnap / HUD update per animation frame.
|
|
202
|
+
* Touchmove can fire faster than a single INT resolve finishes; running every
|
|
203
|
+
* event synchronously freezes the UI on dense geometry.
|
|
204
|
+
*/
|
|
205
|
+
private scheduleTouchPreciseSample;
|
|
206
|
+
/** Drops any pending coalesced touch sample without applying it. */
|
|
207
|
+
private cancelTouchPreciseSchedule;
|
|
208
|
+
/** HUD host wiring loupe / simulated-mouse helpers to this view. */
|
|
209
|
+
private readonly touchPickHudHost;
|
|
210
|
+
/**
|
|
211
|
+
* Positions the active touch-pick HUD (loupe or simulated mouse) around the
|
|
212
|
+
* mapped pick sample, including an OSNAP glyph when a snap is active.
|
|
213
|
+
*/
|
|
214
|
+
private refreshTouchPreciseHud;
|
|
215
|
+
/** Hides both touch precise HUDs (safe if the setting toggled mid-gesture). */
|
|
216
|
+
private hideTouchPreciseHud;
|
|
217
|
+
/**
|
|
218
|
+
* Rubber-band origin after the prompt has started, if any.
|
|
219
|
+
* Used by the mobile session panel for length / angle / Δ metrics.
|
|
220
|
+
*/
|
|
221
|
+
get sessionBasePoint(): AcGePoint2dLike | undefined;
|
|
78
222
|
/**
|
|
79
223
|
* Starts rubber-band preview from a base point after the prompt has already begun.
|
|
80
224
|
* Used by two-point distance acquisition when the first point is picked by click.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdFloatingInput.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdFloatingInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EACX,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAKzC,OAAO,EAOL,wBAAwB,EAEzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"AcEdFloatingInput.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdFloatingInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EACX,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAKzC,OAAO,EAOL,wBAAwB,EAEzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAqB3D;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,iBAAiB,CAAC,CAAC,CAAE,SAAQ,mBAAmB;IAC3D,sCAAsC;IACtC,SAAS,EAAE,WAAW,GAAG,IAAI,CAAO;IAEpC,8BAA8B;IAC9B,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAQ;IAE1C,mDAAmD;IACnD,OAAO,CAAC,MAAM,CAAC,CAA2B;IAE1C,0DAA0D;IAC1D,OAAO,CAAC,UAAU,CAAC,CAAgB;IAEnC,4DAA4D;IAC5D,OAAO,CAAC,kBAAkB,CAAC,CAAmB;IAE9C,wCAAwC;IACxC,OAAO,CAAC,cAAc,CAAC,CAAgB;IACvC,6DAA6D;IAC7D,OAAO,CAAC,gBAAgB,CAAC,CAAiB;IAE1C,mDAAmD;IACnD,OAAO,CAAC,mBAAmB,CAAC,CAAiB;IAE7C,gBAAgB;IAChB,OAAO,CAAC,QAAQ,CAAC,CAAoC;IACrD,OAAO,CAAC,QAAQ,CAAC,CAAoC;IACrD,OAAO,CAAC,QAAQ,CAAC,CAAiC;IAClD,OAAO,CAAC,MAAM,CAAC,CAA+B;IAE9C,6CAA6C;IAC7C,OAAO,CAAC,UAAU,CAAwC;IAC1D,OAAO,CAAC,eAAe,CAA0C;IACjE,OAAO,CAAC,WAAW,CAAC,CAAsC;IAE1D,2BAA2B;IAC3B,OAAO,CAAC,YAAY,CAAyB;IAC7C,wEAAwE;IACxE,OAAO,CAAC,kBAAkB,CAA2B;IACrD,8EAA8E;IAC9E,OAAO,CAAC,kBAAkB,CAA2B;IACrD,8DAA8D;IAC9D,OAAO,CAAC,gBAAgB,CAA2B;IACnD,8EAA8E;IAC9E,OAAO,CAAC,oBAAoB,CAA2B;IACvD,6EAA6E;IAC7E,OAAO,CAAC,iBAAiB,CAAyB;IAClD,8EAA8E;IAC9E,OAAO,CAAC,gBAAgB,CAAyB;IACjD,qEAAqE;IACrE,OAAO,CAAC,eAAe,CAAyB;IAChD,uEAAuE;IACvE,OAAO,CAAC,kBAAkB,CAAyB;IACnD,iEAAiE;IACjE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA8B;IAC3D;;;;OAIG;IACH,OAAO,CAAC,yBAAyB,CAAwC;IACzE,iFAAiF;IACjF,OAAO,CAAC,iBAAiB,CAAsB;IAC/C;;;;;OAKG;IACH,OAAO,CAAC,eAAe,CAAQ;IAC/B,gEAAgE;IAChE,OAAO,CAAC,eAAe,CAAiB;IACxC,4BAA4B;IAC5B,OAAO,CAAC,yBAAyB,CAGvB;IACV,iCAAiC;IACjC,OAAO,CAAC,kBAAkB,CAAY;IAMtC;;;;;;OAMG;gBACS,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,wBAAwB,CAAC,CAAC,CAAC;IAwH3D,MAAM,CAAC,GAAG,EAAE,eAAe;IAmBpC,OAAO,CAAC,cAAc;IA8Bb,OAAO;IAiChB;;;;OAIG;cACgB,eAAe,CAAC,CAAC,EAAE,UAAU;IAUhD;;;OAGG;IACH,qBAAqB;IAkBrB,OAAO,CAAC,WAAW;IAoBnB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,iBAAiB;IA+BzB;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;IAYzB;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IAOvB;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;IAe3B;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAMxB;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IAevB;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAQtB;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;IAYzB;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;IA2BzB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAQ3B;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;IAKzB;;;;;;OAMG;IACH,OAAO,CAAC,uBAAuB;IAK/B;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAclC,oEAAoE;IACpE,OAAO,CAAC,0BAA0B;IAQlC,oEAAoE;IACpE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAahC;IAED;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAc9B,+EAA+E;IAC/E,OAAO,CAAC,mBAAmB;IAK3B;;;OAGG;IACH,IAAI,gBAAgB,IAAI,eAAe,GAAG,SAAS,CAElD;IAED;;;OAGG;IACH,YAAY,CACV,SAAS,EAAE,eAAe,EAC1B,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;QAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB;IAaH,OAAO,CAAC,oBAAoB;IAmB5B;;OAEG;IACH,OAAO,CAAC,WAAW;IAgDnB,OAAO,CAAC,yBAAyB;IAQjC,OAAO,CAAC,kBAAkB;IAiB1B,OAAO,CAAC,gBAAgB;CAQzB"}
|
|
@@ -13,13 +13,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
13
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
14
|
};
|
|
15
15
|
})();
|
|
16
|
-
import { AcDbSystemVariables, AcDbSysVarManager } from '@mlightcad/data-model';
|
|
16
|
+
import { AcDbSystemVariables, AcDbSysVarManager, AcGePoint2d } from '@mlightcad/data-model';
|
|
17
17
|
import { AcEdOsnapResolver } from '../AcEdOsnapResolver';
|
|
18
18
|
import { constrainToTracking } from '../AcEdPolarTracking';
|
|
19
19
|
import { AcEdMarkerManager } from '../marker';
|
|
20
20
|
import { AcEdFloatingInputBoxes } from './AcEdFloatingInputBoxes';
|
|
21
21
|
import { AcEdFloatingMessage } from './AcEdFloatingMessage';
|
|
22
|
+
import { acedInteractionStrategy } from './AcEdInteractionStrategy';
|
|
22
23
|
import { AcEdRubberBand } from './AcEdRubberBand';
|
|
24
|
+
import { acedHideSimulatedMouseCursor, acedRefreshSimulatedMouseCursor } from './AcEdSimulatedMouseCursor';
|
|
25
|
+
import { acedTouchPickStrategy } from './AcEdTouchPickStrategy';
|
|
26
|
+
import { acedArmTouchMouseGuard, acedIsGhostClientOrigin, acedIsTouchDerivedMouseEvent, acedIsTouchLongPressContextMenu, acedShouldIgnoreCompatMouse, acedSinkFollowingClick, AcEdTouchPointSession } from './AcEdTouchPointSession';
|
|
23
27
|
/**
|
|
24
28
|
* A UI component providing a small floating input box used inside CAD editing
|
|
25
29
|
* workflows. It supports both single-input (distance, angle, etc.) and
|
|
@@ -53,8 +57,40 @@ var AcEdFloatingInput = /** @class */ (function (_super) {
|
|
|
53
57
|
var _this = _super.call(this, view, options) || this;
|
|
54
58
|
/** Stores last confirmed WCS point */
|
|
55
59
|
_this.lastPoint = null;
|
|
60
|
+
/** Long-press / short-tap state for one-finger point picking. */
|
|
61
|
+
_this.touchSession = new AcEdTouchPointSession();
|
|
62
|
+
/**
|
|
63
|
+
* Latest finger sample waiting for the next animation frame during precise
|
|
64
|
+
* touch pick. Coalesces high-frequency touchmove into one osnap resolve per
|
|
65
|
+
* frame so expensive INT tests cannot pile up on the main thread.
|
|
66
|
+
*/
|
|
67
|
+
_this.pendingTouchPreciseFinger = null;
|
|
68
|
+
/** `requestAnimationFrame` id for {@link pendingTouchPreciseFinger}, or null. */
|
|
69
|
+
_this.touchPreciseRafId = null;
|
|
70
|
+
/**
|
|
71
|
+
* When true, a left-button mouse/pen `pointerdown` landed on this prompt's
|
|
72
|
+
* canvas, so the following `click` may commit. Touch never sets this:
|
|
73
|
+
* phone/pad hide dynamic input, so a leftover compatibility `click` would
|
|
74
|
+
* otherwise hit the canvas and commit the next point prompt.
|
|
75
|
+
*/
|
|
76
|
+
_this.mouseClickArmed = false;
|
|
56
77
|
/** Whether to suppress UI display while keeping input active */
|
|
57
78
|
_this.suppressDisplay = false;
|
|
79
|
+
/** HUD host wiring loupe / simulated-mouse helpers to this view. */
|
|
80
|
+
_this.touchPickHudHost = {
|
|
81
|
+
refreshSnapLoupe: function (clientX, clientY, snap) {
|
|
82
|
+
_this.view.refreshMobileSnapLoupe(clientX, clientY, snap);
|
|
83
|
+
},
|
|
84
|
+
hideSnapLoupe: function () {
|
|
85
|
+
_this.view.hideMobileSnapLoupe();
|
|
86
|
+
},
|
|
87
|
+
refreshSimulatedCursor: function (clientX, clientY) {
|
|
88
|
+
acedRefreshSimulatedMouseCursor(_this.view, clientX, clientY);
|
|
89
|
+
},
|
|
90
|
+
hideSimulatedCursor: function () {
|
|
91
|
+
acedHideSimulatedMouseCursor(_this.view);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
58
94
|
_this.allowPrompt = options.allowPrompt !== false;
|
|
59
95
|
_this.suppressDisplay = !_this.isDynamicInputEnabled();
|
|
60
96
|
_this.orthoReferencePoint =
|
|
@@ -109,6 +145,32 @@ var AcEdFloatingInput = /** @class */ (function (_super) {
|
|
|
109
145
|
// -----------------------------
|
|
110
146
|
_this.boundOnClick = function (e) { return _this.handleClick(e); };
|
|
111
147
|
_this.parent.addEventListener('click', _this.boundOnClick);
|
|
148
|
+
_this.boundOnPointerDown = function (e) { return _this.handlePointerDown(e); };
|
|
149
|
+
_this.boundOnPointerMove = function (e) { return _this.handlePointerMove(e); };
|
|
150
|
+
_this.boundOnPointerUp = function (e) { return _this.handlePointerUp(e); };
|
|
151
|
+
_this.boundOnPointerCancel = function (e) { return _this.handlePointerCancel(e); };
|
|
152
|
+
_this.boundOnTouchStart = function (e) { return _this.handleTouchStart(e); };
|
|
153
|
+
_this.boundOnTouchMove = function (e) { return _this.handleTouchMove(e); };
|
|
154
|
+
_this.boundOnTouchEnd = function (e) { return _this.handleTouchEnd(e); };
|
|
155
|
+
_this.boundOnContextMenu = function (e) { return _this.handleContextMenu(e); };
|
|
156
|
+
// Capture + non-passive: run before OrbitControls and keep the browser
|
|
157
|
+
// from turning a still finger into scroll / context-menu `pointercancel`.
|
|
158
|
+
_this.parent.addEventListener('pointerdown', _this.boundOnPointerDown, {
|
|
159
|
+
passive: false,
|
|
160
|
+
capture: true
|
|
161
|
+
});
|
|
162
|
+
_this.parent.addEventListener('pointermove', _this.boundOnPointerMove);
|
|
163
|
+
_this.parent.addEventListener('touchstart', _this.boundOnTouchStart, {
|
|
164
|
+
passive: false
|
|
165
|
+
});
|
|
166
|
+
_this.parent.addEventListener('contextmenu', _this.boundOnContextMenu, true);
|
|
167
|
+
// Release / leftover touch tracking can happen off-canvas.
|
|
168
|
+
window.addEventListener('pointerup', _this.boundOnPointerUp);
|
|
169
|
+
window.addEventListener('pointercancel', _this.boundOnPointerCancel);
|
|
170
|
+
window.addEventListener('touchmove', _this.boundOnTouchMove, {
|
|
171
|
+
passive: false
|
|
172
|
+
});
|
|
173
|
+
window.addEventListener('touchend', _this.boundOnTouchEnd);
|
|
112
174
|
// -----------------------------
|
|
113
175
|
// Dynamic input settings listener
|
|
114
176
|
// -----------------------------
|
|
@@ -140,15 +202,19 @@ var AcEdFloatingInput = /** @class */ (function (_super) {
|
|
|
140
202
|
this.updateDynamicInputDisplay();
|
|
141
203
|
if (!this.suppressDisplay) {
|
|
142
204
|
_super.prototype.showAt.call(this, pos);
|
|
143
|
-
// Seed preview so modifier toggles can refresh immediately.
|
|
144
|
-
var wcsPos_1 = this.view.screenToWorld(this.view.viewportToCanvas(pos));
|
|
145
|
-
this.updateDynamicPreview(wcsPos_1);
|
|
146
|
-
return;
|
|
147
205
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
206
|
+
else {
|
|
207
|
+
this.visible = true;
|
|
208
|
+
this.container.style.display = 'none';
|
|
209
|
+
this.setPosition(pos);
|
|
210
|
+
this.parent.addEventListener('mousemove', this.boundOnMouseMove);
|
|
211
|
+
}
|
|
212
|
+
// Phone/pad have no hover. Do not seed the measure jig from a dummy
|
|
213
|
+
// canvas-(0,0) or leftover finger sample; wait for a real pointer.
|
|
214
|
+
if (!this.view.hasCursorPos)
|
|
215
|
+
return;
|
|
216
|
+
if (acedShouldIgnoreCompatMouse())
|
|
217
|
+
return;
|
|
152
218
|
var wcsPos = this.view.screenToWorld(this.view.viewportToCanvas(pos));
|
|
153
219
|
this.updateDynamicPreview(wcsPos);
|
|
154
220
|
};
|
|
@@ -167,8 +233,21 @@ var AcEdFloatingInput = /** @class */ (function (_super) {
|
|
|
167
233
|
var _a, _b, _c;
|
|
168
234
|
if (this.disposed)
|
|
169
235
|
return;
|
|
236
|
+
this.cancelTouchPreciseSchedule();
|
|
170
237
|
_super.prototype.dispose.call(this);
|
|
171
238
|
this.parent.removeEventListener('click', this.boundOnClick);
|
|
239
|
+
this.parent.removeEventListener('pointerdown', this.boundOnPointerDown, true);
|
|
240
|
+
this.parent.removeEventListener('pointermove', this.boundOnPointerMove);
|
|
241
|
+
this.parent.removeEventListener('touchstart', this.boundOnTouchStart);
|
|
242
|
+
this.parent.removeEventListener('contextmenu', this.boundOnContextMenu, true);
|
|
243
|
+
window.removeEventListener('pointerup', this.boundOnPointerUp);
|
|
244
|
+
window.removeEventListener('pointercancel', this.boundOnPointerCancel);
|
|
245
|
+
window.removeEventListener('touchmove', this.boundOnTouchMove);
|
|
246
|
+
window.removeEventListener('touchend', this.boundOnTouchEnd);
|
|
247
|
+
this.releaseTouchCapture();
|
|
248
|
+
this.touchSession.cancel();
|
|
249
|
+
this.hideTouchPreciseHud();
|
|
250
|
+
this.view.setNavigationEnabled(true);
|
|
172
251
|
AcDbSysVarManager.instance().events.sysVarChanged.removeEventListener(this.boundOnInputSysVarChanged);
|
|
173
252
|
this.view.events.viewChanged.removeEventListener(this.boundOnViewChanged);
|
|
174
253
|
this.view.events.viewResize.removeEventListener(this.boundOnViewChanged);
|
|
@@ -185,7 +264,13 @@ var AcEdFloatingInput = /** @class */ (function (_super) {
|
|
|
185
264
|
AcEdFloatingInput.prototype.handleMouseMove = function (e) {
|
|
186
265
|
if (!this.visible)
|
|
187
266
|
return;
|
|
188
|
-
|
|
267
|
+
if (this.touchSession.isPicking)
|
|
268
|
+
return;
|
|
269
|
+
if (acedShouldIgnoreCompatMouse())
|
|
270
|
+
return;
|
|
271
|
+
if (acedIsGhostClientOrigin(e) || acedIsTouchDerivedMouseEvent(e))
|
|
272
|
+
return;
|
|
273
|
+
var wcsPos = this.getPosition({ x: e.clientX, y: e.clientY });
|
|
189
274
|
this.updateDynamicPreview(wcsPos);
|
|
190
275
|
};
|
|
191
276
|
/**
|
|
@@ -212,13 +297,325 @@ var AcEdFloatingInput = /** @class */ (function (_super) {
|
|
|
212
297
|
var _a, _b;
|
|
213
298
|
if (!this.visible)
|
|
214
299
|
return;
|
|
215
|
-
|
|
300
|
+
// Mouse/pen: commit only after this prompt saw a canvas pointerdown.
|
|
301
|
+
// Touch commits on pointerup. Compatibility mouse events after a long-press
|
|
302
|
+
// (including while the finger is still moving the loupe) must not commit
|
|
303
|
+
// a second nearby point on the next prompt.
|
|
304
|
+
if (this.touchSession.isPicking)
|
|
305
|
+
return;
|
|
306
|
+
if (acedShouldIgnoreCompatMouse())
|
|
307
|
+
return;
|
|
308
|
+
if (!this.mouseClickArmed)
|
|
309
|
+
return;
|
|
310
|
+
this.mouseClickArmed = false;
|
|
311
|
+
if (acedIsGhostClientOrigin(e) || acedIsTouchDerivedMouseEvent(e))
|
|
312
|
+
return;
|
|
313
|
+
var wcsPos = this.getPosition({ x: e.clientX, y: e.clientY });
|
|
216
314
|
var defaults = this.getDynamicValue(wcsPos);
|
|
217
315
|
var committed = (_b = (_a = this.onCommit) === null || _a === void 0 ? void 0 : _a.call(this, defaults.value, wcsPos)) !== null && _b !== void 0 ? _b : true;
|
|
218
316
|
if (committed) {
|
|
219
317
|
this.lastPoint = wcsPos;
|
|
220
318
|
}
|
|
221
319
|
};
|
|
320
|
+
/**
|
|
321
|
+
* Starts a one-finger pick on touch, or arms a mouse/pen click commit.
|
|
322
|
+
*
|
|
323
|
+
* Pointer type, not layout: a pad with a mouse still clicks; a desktop
|
|
324
|
+
* with a touch screen still long-presses. Session chrome / marks are
|
|
325
|
+
* {@link acedInteractionStrategy} point policy. Loupe vs simulated mouse
|
|
326
|
+
* is {@link acedTouchPickStrategy}.
|
|
327
|
+
*
|
|
328
|
+
* @param e - Pointer event; button 0 only. Touch is handled here; mouse and
|
|
329
|
+
* pen arm {@link mouseClickArmed} so the following `click` can commit.
|
|
330
|
+
*/
|
|
331
|
+
AcEdFloatingInput.prototype.handlePointerDown = function (e) {
|
|
332
|
+
var _this = this;
|
|
333
|
+
if (!this.visible || e.button !== 0)
|
|
334
|
+
return;
|
|
335
|
+
if (e.pointerType !== 'touch') {
|
|
336
|
+
// Long-press (and finger move while the loupe is open) must not arm a
|
|
337
|
+
// mouse click. Compatibility `pointerdown` after touch `pointerup` also
|
|
338
|
+
// must not clear the click sink — that was committing a second nearby
|
|
339
|
+
// point on the next measure-distance prompt.
|
|
340
|
+
if (this.touchSession.isPicking)
|
|
341
|
+
return;
|
|
342
|
+
if (acedShouldIgnoreCompatMouse())
|
|
343
|
+
return;
|
|
344
|
+
if (acedIsGhostClientOrigin(e) || acedIsTouchDerivedMouseEvent(e)) {
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
this.mouseClickArmed = true;
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
e.preventDefault();
|
|
351
|
+
this.mouseClickArmed = false;
|
|
352
|
+
acedArmTouchMouseGuard();
|
|
353
|
+
// A leftover precise HUD from a previous pointercancel must not stay on
|
|
354
|
+
// screen when a new finger-down starts.
|
|
355
|
+
this.hideTouchPreciseHud();
|
|
356
|
+
this.touchSession.start(e.pointerId, e.clientX, e.clientY, function () {
|
|
357
|
+
// Precise capture only: disable pan and start the jig / HUD.
|
|
358
|
+
// Before the long-press, one-finger drag is navigation — no rubber-band.
|
|
359
|
+
_this.view.setNavigationEnabled(false);
|
|
360
|
+
_this.applyTouchPreciseSample(_this.touchSession.x, _this.touchSession.y);
|
|
361
|
+
_this.refreshTouchPreciseHud();
|
|
362
|
+
});
|
|
363
|
+
this.parent.setPointerCapture(e.pointerId);
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* Updates the pick preview while the finger is down. Movement past the
|
|
367
|
+
* cancel threshold before the long-press fires is treated as a pan.
|
|
368
|
+
* Jig / rubber-band updates wait until precise capture opens.
|
|
369
|
+
*
|
|
370
|
+
* @param e - Pointer event for the active touch session.
|
|
371
|
+
*/
|
|
372
|
+
AcEdFloatingInput.prototype.handlePointerMove = function (e) {
|
|
373
|
+
if (e.pointerType !== 'touch')
|
|
374
|
+
return;
|
|
375
|
+
if (e.pointerId !== this.touchSession.pointerId)
|
|
376
|
+
return;
|
|
377
|
+
var moved = this.touchSession.move(e.clientX, e.clientY, true);
|
|
378
|
+
if (moved === 'panning') {
|
|
379
|
+
this.cancelTouchPreciseSchedule();
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
if (!this.visible || !this.touchSession.isLoupe)
|
|
383
|
+
return;
|
|
384
|
+
this.scheduleTouchPreciseSample(e.clientX, e.clientY);
|
|
385
|
+
};
|
|
386
|
+
/**
|
|
387
|
+
* Ends the touch pick. A short tap or loupe release commits the point;
|
|
388
|
+
* a pan-aborted gesture does not. The following `click` is swallowed.
|
|
389
|
+
*
|
|
390
|
+
* @param e - Pointer event that ended the gesture.
|
|
391
|
+
*/
|
|
392
|
+
AcEdFloatingInput.prototype.handlePointerUp = function (e) {
|
|
393
|
+
if (e.pointerType !== 'touch')
|
|
394
|
+
return;
|
|
395
|
+
if (this.touchSession.phase === 'idle')
|
|
396
|
+
return;
|
|
397
|
+
if (e.pointerId !== this.touchSession.pointerId)
|
|
398
|
+
return;
|
|
399
|
+
this.completeTouchPick(e.clientX, e.clientY);
|
|
400
|
+
};
|
|
401
|
+
/**
|
|
402
|
+
* Aborts a pan-converted gesture. A still-finger OS long-press also fires
|
|
403
|
+
* `pointercancel`; keep that pick alive so `touchend` can commit.
|
|
404
|
+
*
|
|
405
|
+
* @param e - Pointer event; only `touch` is handled.
|
|
406
|
+
*/
|
|
407
|
+
AcEdFloatingInput.prototype.handlePointerCancel = function (e) {
|
|
408
|
+
if (e.pointerType !== 'touch')
|
|
409
|
+
return;
|
|
410
|
+
if (this.touchSession.phase === 'idle')
|
|
411
|
+
return;
|
|
412
|
+
if (e.pointerId !== this.touchSession.pointerId)
|
|
413
|
+
return;
|
|
414
|
+
this.mouseClickArmed = false;
|
|
415
|
+
acedSinkFollowingClick();
|
|
416
|
+
this.releaseTouchCapture();
|
|
417
|
+
if (this.touchSession.isPicking)
|
|
418
|
+
return;
|
|
419
|
+
this.cancelTouchPreciseSchedule();
|
|
420
|
+
this.touchSession.cancel();
|
|
421
|
+
this.view.setNavigationEnabled(true);
|
|
422
|
+
this.hideTouchPreciseHud();
|
|
423
|
+
this.view.clearCursorPos();
|
|
424
|
+
};
|
|
425
|
+
/**
|
|
426
|
+
* Blocks the OS long-press callout so it does not scroll the canvas or
|
|
427
|
+
* synthesize a leftover mouse click.
|
|
428
|
+
*
|
|
429
|
+
* @param e - Touch start; one-finger picks only.
|
|
430
|
+
*/
|
|
431
|
+
AcEdFloatingInput.prototype.handleTouchStart = function (e) {
|
|
432
|
+
if (!this.visible)
|
|
433
|
+
return;
|
|
434
|
+
if (e.touches.length !== 1)
|
|
435
|
+
return;
|
|
436
|
+
e.preventDefault();
|
|
437
|
+
};
|
|
438
|
+
/**
|
|
439
|
+
* Continues the pick after `pointercancel` (Chrome/Safari long-press) when
|
|
440
|
+
* pointer events stop arriving.
|
|
441
|
+
*
|
|
442
|
+
* @param e - Window-level touch move.
|
|
443
|
+
*/
|
|
444
|
+
AcEdFloatingInput.prototype.handleTouchMove = function (e) {
|
|
445
|
+
var _a;
|
|
446
|
+
if (!this.touchSession.isPicking)
|
|
447
|
+
return;
|
|
448
|
+
var touch = (_a = e.touches[0]) !== null && _a !== void 0 ? _a : e.changedTouches[0];
|
|
449
|
+
if (!touch)
|
|
450
|
+
return;
|
|
451
|
+
var moved = this.touchSession.move(touch.clientX, touch.clientY, true);
|
|
452
|
+
if (moved === 'panning') {
|
|
453
|
+
this.cancelTouchPreciseSchedule();
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
if (!this.touchSession.isLoupe)
|
|
457
|
+
return;
|
|
458
|
+
e.preventDefault();
|
|
459
|
+
if (!this.visible)
|
|
460
|
+
return;
|
|
461
|
+
this.scheduleTouchPreciseSample(touch.clientX, touch.clientY);
|
|
462
|
+
};
|
|
463
|
+
/**
|
|
464
|
+
* Commits the pick when `pointerup` was lost after `pointercancel`.
|
|
465
|
+
*
|
|
466
|
+
* @param e - Window-level touch end.
|
|
467
|
+
*/
|
|
468
|
+
AcEdFloatingInput.prototype.handleTouchEnd = function (e) {
|
|
469
|
+
if (this.touchSession.phase === 'idle')
|
|
470
|
+
return;
|
|
471
|
+
if (e.touches.length > 0)
|
|
472
|
+
return;
|
|
473
|
+
var touch = e.changedTouches[0];
|
|
474
|
+
if (!touch)
|
|
475
|
+
return;
|
|
476
|
+
this.completeTouchPick(touch.clientX, touch.clientY);
|
|
477
|
+
};
|
|
478
|
+
/**
|
|
479
|
+
* Stops touch long-press `contextmenu` from reaching the prompt's
|
|
480
|
+
* right-click-Enter handler.
|
|
481
|
+
*
|
|
482
|
+
* @param e - Context-menu event on the canvas.
|
|
483
|
+
*/
|
|
484
|
+
AcEdFloatingInput.prototype.handleContextMenu = function (e) {
|
|
485
|
+
if (!this.visible)
|
|
486
|
+
return;
|
|
487
|
+
if (!acedIsTouchLongPressContextMenu(e) &&
|
|
488
|
+
!acedInteractionStrategy().point.swallowsPromptContextMenu) {
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
e.preventDefault();
|
|
492
|
+
e.stopImmediatePropagation();
|
|
493
|
+
};
|
|
494
|
+
/**
|
|
495
|
+
* Ends the active touch session: commit a short tap / loupe release, or
|
|
496
|
+
* ignore a pan.
|
|
497
|
+
*
|
|
498
|
+
* @param clientX - Sample X in client CSS pixels.
|
|
499
|
+
* @param clientY - Sample Y in client CSS pixels.
|
|
500
|
+
*/
|
|
501
|
+
AcEdFloatingInput.prototype.completeTouchPick = function (clientX, clientY) {
|
|
502
|
+
var _a, _b;
|
|
503
|
+
this.mouseClickArmed = false;
|
|
504
|
+
acedSinkFollowingClick();
|
|
505
|
+
this.releaseTouchCapture();
|
|
506
|
+
var wasPrecise = this.touchSession.isLoupe;
|
|
507
|
+
var action = this.touchSession.end();
|
|
508
|
+
this.view.setNavigationEnabled(true);
|
|
509
|
+
this.cancelTouchPreciseSchedule();
|
|
510
|
+
this.hideTouchPreciseHud();
|
|
511
|
+
// Finger-up coords must not seed the next prompt's jig preview.
|
|
512
|
+
this.view.clearCursorPos();
|
|
513
|
+
if (!this.visible || action !== 'commit')
|
|
514
|
+
return;
|
|
515
|
+
if (wasPrecise) {
|
|
516
|
+
this.applyTouchPreciseSample(clientX, clientY);
|
|
517
|
+
}
|
|
518
|
+
else {
|
|
519
|
+
this.applyClientSample(clientX, clientY);
|
|
520
|
+
}
|
|
521
|
+
var wcsPos = this.lastDynamicPoint
|
|
522
|
+
? new AcGePoint2d(this.lastDynamicPoint.x, this.lastDynamicPoint.y)
|
|
523
|
+
: this.getPosition({ x: clientX, y: clientY });
|
|
524
|
+
var defaults = this.getDynamicValue(wcsPos);
|
|
525
|
+
var committed = (_b = (_a = this.onCommit) === null || _a === void 0 ? void 0 : _a.call(this, defaults.value, wcsPos)) !== null && _b !== void 0 ? _b : true;
|
|
526
|
+
if (committed) {
|
|
527
|
+
this.lastPoint = wcsPos;
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
/**
|
|
531
|
+
* Releases pointer capture taken in {@link handlePointerDown}, if any.
|
|
532
|
+
*/
|
|
533
|
+
AcEdFloatingInput.prototype.releaseTouchCapture = function () {
|
|
534
|
+
var pointerId = this.touchSession.pointerId;
|
|
535
|
+
if (pointerId === -1)
|
|
536
|
+
return;
|
|
537
|
+
if (this.parent.hasPointerCapture(pointerId)) {
|
|
538
|
+
this.parent.releasePointerCapture(pointerId);
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
/**
|
|
542
|
+
* Converts a client sample to WCS (with OSNAP) and refreshes the dynamic
|
|
543
|
+
* preview / rubber band.
|
|
544
|
+
*
|
|
545
|
+
* @param clientX - Sample X in client CSS pixels.
|
|
546
|
+
* @param clientY - Sample Y in client CSS pixels.
|
|
547
|
+
*/
|
|
548
|
+
AcEdFloatingInput.prototype.applyClientSample = function (clientX, clientY) {
|
|
549
|
+
var wcsPos = this.getPosition({ x: clientX, y: clientY });
|
|
550
|
+
this.updateDynamicPreview(wcsPos);
|
|
551
|
+
};
|
|
552
|
+
/**
|
|
553
|
+
* Applies the active {@link acedTouchPickStrategy} finger→sample mapping
|
|
554
|
+
* during precise capture (loupe or simulated mouse).
|
|
555
|
+
*
|
|
556
|
+
* @param fingerX - Finger X in client CSS pixels.
|
|
557
|
+
* @param fingerY - Finger Y in client CSS pixels.
|
|
558
|
+
*/
|
|
559
|
+
AcEdFloatingInput.prototype.applyTouchPreciseSample = function (fingerX, fingerY) {
|
|
560
|
+
var sample = acedTouchPickStrategy().mapFingerToSample(fingerX, fingerY);
|
|
561
|
+
this.applyClientSample(sample.x, sample.y);
|
|
562
|
+
};
|
|
563
|
+
/**
|
|
564
|
+
* Coalesces finger samples to one osnap / HUD update per animation frame.
|
|
565
|
+
* Touchmove can fire faster than a single INT resolve finishes; running every
|
|
566
|
+
* event synchronously freezes the UI on dense geometry.
|
|
567
|
+
*/
|
|
568
|
+
AcEdFloatingInput.prototype.scheduleTouchPreciseSample = function (fingerX, fingerY) {
|
|
569
|
+
var _this = this;
|
|
570
|
+
this.pendingTouchPreciseFinger = { x: fingerX, y: fingerY };
|
|
571
|
+
if (this.touchPreciseRafId != null)
|
|
572
|
+
return;
|
|
573
|
+
this.touchPreciseRafId = requestAnimationFrame(function () {
|
|
574
|
+
_this.touchPreciseRafId = null;
|
|
575
|
+
var finger = _this.pendingTouchPreciseFinger;
|
|
576
|
+
_this.pendingTouchPreciseFinger = null;
|
|
577
|
+
if (!finger || _this.disposed || !_this.visible)
|
|
578
|
+
return;
|
|
579
|
+
if (!_this.touchSession.isLoupe)
|
|
580
|
+
return;
|
|
581
|
+
_this.applyTouchPreciseSample(finger.x, finger.y);
|
|
582
|
+
_this.refreshTouchPreciseHud();
|
|
583
|
+
});
|
|
584
|
+
};
|
|
585
|
+
/** Drops any pending coalesced touch sample without applying it. */
|
|
586
|
+
AcEdFloatingInput.prototype.cancelTouchPreciseSchedule = function () {
|
|
587
|
+
if (this.touchPreciseRafId != null) {
|
|
588
|
+
cancelAnimationFrame(this.touchPreciseRafId);
|
|
589
|
+
this.touchPreciseRafId = null;
|
|
590
|
+
}
|
|
591
|
+
this.pendingTouchPreciseFinger = null;
|
|
592
|
+
};
|
|
593
|
+
/**
|
|
594
|
+
* Positions the active touch-pick HUD (loupe or simulated mouse) around the
|
|
595
|
+
* mapped pick sample, including an OSNAP glyph when a snap is active.
|
|
596
|
+
*/
|
|
597
|
+
AcEdFloatingInput.prototype.refreshTouchPreciseHud = function () {
|
|
598
|
+
var _a;
|
|
599
|
+
var strategy = acedTouchPickStrategy();
|
|
600
|
+
var sample = strategy.mapFingerToSample(this.touchSession.x, this.touchSession.y);
|
|
601
|
+
strategy.showPreciseHud(this.touchPickHudHost, sample.x, sample.y, (_a = this.lastOsnapPoint) !== null && _a !== void 0 ? _a : null);
|
|
602
|
+
};
|
|
603
|
+
/** Hides both touch precise HUDs (safe if the setting toggled mid-gesture). */
|
|
604
|
+
AcEdFloatingInput.prototype.hideTouchPreciseHud = function () {
|
|
605
|
+
this.view.hideMobileSnapLoupe();
|
|
606
|
+
acedHideSimulatedMouseCursor(this.view);
|
|
607
|
+
};
|
|
608
|
+
Object.defineProperty(AcEdFloatingInput.prototype, "sessionBasePoint", {
|
|
609
|
+
/**
|
|
610
|
+
* Rubber-band origin after the prompt has started, if any.
|
|
611
|
+
* Used by the mobile session panel for length / angle / Δ metrics.
|
|
612
|
+
*/
|
|
613
|
+
get: function () {
|
|
614
|
+
return this.rubberBand ? this.orthoReferencePoint : undefined;
|
|
615
|
+
},
|
|
616
|
+
enumerable: false,
|
|
617
|
+
configurable: true
|
|
618
|
+
});
|
|
222
619
|
/**
|
|
223
620
|
* Starts rubber-band preview from a base point after the prompt has already begun.
|
|
224
621
|
* Used by two-point distance acquisition when the first point is picked by click.
|
|
@@ -261,7 +658,6 @@ var AcEdFloatingInput = /** @class */ (function (_super) {
|
|
|
261
658
|
var wcsPos = this.view.screenToWorld(mousePos);
|
|
262
659
|
// Apply OSNAP
|
|
263
660
|
if (this.osnapMarkerManager) {
|
|
264
|
-
this.osnapMarkerManager.hideMarker();
|
|
265
661
|
this.lastOsnapPoint = this.view.osnapResolver.resolve({
|
|
266
662
|
cursorWcs: wcsPos,
|
|
267
663
|
lastPoint: this.lastPoint
|
|
@@ -272,7 +668,10 @@ var AcEdFloatingInput = /** @class */ (function (_super) {
|
|
|
272
668
|
if (this.lastOsnapPoint) {
|
|
273
669
|
wcsPos.x = this.lastOsnapPoint.x;
|
|
274
670
|
wcsPos.y = this.lastOsnapPoint.y;
|
|
275
|
-
this.osnapMarkerManager.
|
|
671
|
+
this.osnapMarkerManager.showOrRepositionMarker(this.lastOsnapPoint, AcEdOsnapResolver.osnapModeToMarkerType(this.lastOsnapPoint.type));
|
|
672
|
+
}
|
|
673
|
+
else {
|
|
674
|
+
this.osnapMarkerManager.hideMarker();
|
|
276
675
|
}
|
|
277
676
|
}
|
|
278
677
|
if (this.orthoReferencePoint) {
|