@mlightcad/cad-simple-viewer 1.6.3 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +185 -180
- package/dist/cad-simple-viewer.js +34895 -23320
- package/dist/cad-simple-viewer.umd.cjs +2570 -372
- package/dist/mtext-renderer-worker.js +15359 -15067
- package/icons.ts +7 -7
- package/lib/app/AcApBrand.d.ts +2 -2
- package/lib/app/AcApBrand.d.ts.map +1 -1
- package/lib/app/AcApBrand.js +2 -2
- package/lib/app/AcApBrand.js.map +1 -1
- package/lib/app/AcApContext.d.ts.map +1 -1
- package/lib/app/AcApContext.js +4 -3
- package/lib/app/AcApContext.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts +107 -25
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +209 -93
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApDocsUrl.d.ts +57 -0
- package/lib/app/AcApDocsUrl.d.ts.map +1 -0
- package/lib/app/AcApDocsUrl.js +76 -0
- package/lib/app/AcApDocsUrl.js.map +1 -0
- package/lib/app/AcApDocument.d.ts +1 -1
- package/lib/app/AcApDocument.d.ts.map +1 -1
- package/lib/app/AcApDocument.js.map +1 -1
- package/lib/app/AcApFontLoader.d.ts +6 -0
- package/lib/app/AcApFontLoader.d.ts.map +1 -1
- package/lib/app/AcApFontLoader.js +11 -0
- package/lib/app/AcApFontLoader.js.map +1 -1
- package/lib/app/AcApOpenDatabaseOptions.d.ts +106 -0
- package/lib/app/AcApOpenDatabaseOptions.d.ts.map +1 -0
- package/lib/app/{AcDbOpenDatabaseOptions.js → AcApOpenDatabaseOptions.js} +2 -2
- package/lib/app/AcApOpenDatabaseOptions.js.map +1 -0
- package/lib/app/AcApOpenFileDialog.d.ts +1 -1
- package/lib/app/AcApOpenFileProgressController.d.ts +4 -2
- package/lib/app/AcApOpenFileProgressController.d.ts.map +1 -1
- package/lib/app/AcApOpenFileProgressController.js +4 -2
- package/lib/app/AcApOpenFileProgressController.js.map +1 -1
- package/lib/app/AcApSettingManager.d.ts +156 -43
- package/lib/app/AcApSettingManager.d.ts.map +1 -1
- package/lib/app/AcApSettingManager.js +216 -66
- package/lib/app/AcApSettingManager.js.map +1 -1
- package/lib/app/index.d.ts +4 -2
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +3 -1
- package/lib/app/index.js.map +1 -1
- package/lib/app/notification/AcApNotificationEventBridge.d.ts +130 -0
- package/lib/app/notification/AcApNotificationEventBridge.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationEventBridge.js +309 -0
- package/lib/app/notification/AcApNotificationEventBridge.js.map +1 -0
- package/lib/app/notification/AcApNotificationService.d.ts +185 -0
- package/lib/app/notification/AcApNotificationService.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationService.js +271 -0
- package/lib/app/notification/AcApNotificationService.js.map +1 -0
- package/lib/app/notification/AcApNotificationStore.d.ts +147 -0
- package/lib/app/notification/AcApNotificationStore.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationStore.js +345 -0
- package/lib/app/notification/AcApNotificationStore.js.map +1 -0
- package/lib/app/notification/AcApNotificationTypes.d.ts +195 -0
- package/lib/app/notification/AcApNotificationTypes.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationTypes.js +78 -0
- package/lib/app/notification/AcApNotificationTypes.js.map +1 -0
- package/lib/app/notification/index.d.ts +13 -0
- package/lib/app/notification/index.d.ts.map +1 -0
- package/lib/app/notification/index.js +13 -0
- package/lib/app/notification/index.js.map +1 -0
- package/lib/command/AcApDrawOverlayInput.d.ts +6 -0
- package/lib/command/AcApDrawOverlayInput.d.ts.map +1 -0
- package/lib/command/AcApDrawOverlayInput.js +64 -0
- package/lib/command/AcApDrawOverlayInput.js.map +1 -0
- package/lib/command/AcApDrawStyleDrawCmd.d.ts +9 -0
- package/lib/command/AcApDrawStyleDrawCmd.d.ts.map +1 -0
- package/lib/command/AcApDrawStyleDrawCmd.js +32 -0
- package/lib/command/AcApDrawStyleDrawCmd.js.map +1 -0
- package/lib/command/AcApDrawStyleSession.d.ts +20 -0
- package/lib/command/AcApDrawStyleSession.d.ts.map +1 -0
- package/lib/command/AcApDrawStyleSession.js +2 -0
- package/lib/command/AcApDrawStyleSession.js.map +1 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts +28 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts.map +1 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js +178 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js.map +1 -0
- package/lib/command/AcApReadingModeCmd.d.ts +17 -0
- package/lib/command/AcApReadingModeCmd.d.ts.map +1 -0
- package/lib/command/AcApReadingModeCmd.js +82 -0
- package/lib/command/AcApReadingModeCmd.js.map +1 -0
- package/lib/command/AcApShortCutSelectionAccessory.d.ts +14 -0
- package/lib/command/AcApShortCutSelectionAccessory.d.ts.map +1 -0
- package/lib/command/AcApShortCutSelectionAccessory.js +266 -0
- package/lib/command/AcApShortCutSelectionAccessory.js.map +1 -0
- package/lib/command/AcApShortCutToolbarDocBind.d.ts +20 -0
- package/lib/command/AcApShortCutToolbarDocBind.d.ts.map +1 -0
- package/lib/command/AcApShortCutToolbarDocBind.js +155 -0
- package/lib/command/AcApShortCutToolbarDocBind.js.map +1 -0
- package/lib/command/AcApSwitchBgCmd.d.ts.map +1 -1
- package/lib/command/AcApSwitchBgCmd.js +7 -2
- package/lib/command/AcApSwitchBgCmd.js.map +1 -1
- package/lib/command/AcApToolbarDocBind.d.ts +19 -0
- package/lib/command/AcApToolbarDocBind.d.ts.map +1 -0
- package/lib/command/AcApToolbarDocBind.js +62 -0
- package/lib/command/AcApToolbarDocBind.js.map +1 -0
- package/lib/command/AcApZoomCmd.d.ts +39 -1
- package/lib/command/AcApZoomCmd.d.ts.map +1 -1
- package/lib/command/AcApZoomCmd.js +70 -6
- package/lib/command/AcApZoomCmd.js.map +1 -1
- package/lib/command/convert/AcApConvertToBmpCmd.d.ts +14 -0
- package/lib/command/convert/AcApConvertToBmpCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToBmpCmd.js +34 -0
- package/lib/command/convert/AcApConvertToBmpCmd.js.map +1 -0
- package/lib/command/convert/AcApConvertToJpgCmd.d.ts +14 -0
- package/lib/command/convert/AcApConvertToJpgCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToJpgCmd.js +34 -0
- package/lib/command/convert/AcApConvertToJpgCmd.js.map +1 -0
- package/lib/command/convert/AcApConvertToPngCmd.d.ts +4 -36
- package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -1
- package/lib/command/convert/AcApConvertToPngCmd.js +4 -138
- package/lib/command/convert/AcApConvertToPngCmd.js.map +1 -1
- package/lib/command/convert/AcApConvertToRasterImageCmd.d.ts +40 -0
- package/lib/command/convert/AcApConvertToRasterImageCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToRasterImageCmd.js +161 -0
- package/lib/command/convert/AcApConvertToRasterImageCmd.js.map +1 -0
- package/lib/command/convert/{AcApPngConvertor.d.ts → AcApRasterImageConvertor.d.ts} +36 -12
- package/lib/command/convert/AcApRasterImageConvertor.d.ts.map +1 -0
- package/lib/command/convert/{AcApPngConvertor.js → AcApRasterImageConvertor.js} +163 -32
- package/lib/command/convert/AcApRasterImageConvertor.js.map +1 -0
- package/lib/command/convert/index.d.ts +4 -1
- package/lib/command/convert/index.d.ts.map +1 -1
- package/lib/command/convert/index.js +4 -1
- package/lib/command/convert/index.js.map +1 -1
- package/lib/command/draw/AcApHatchCmd.js +1 -1
- package/lib/command/draw/AcApHatchCmd.js.map +1 -1
- package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApMTextCmd.js +11 -7
- package/lib/command/draw/AcApMTextCmd.js.map +1 -1
- package/lib/command/index.d.ts +5 -0
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +5 -0
- package/lib/command/index.js.map +1 -1
- package/lib/command/markup/AcApMarkupArrowCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupArrowCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupArrowCmd.js +8 -9
- package/lib/command/markup/AcApMarkupArrowCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.js +69 -13
- package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCircleCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCircleCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCircleCmd.js +8 -9
- package/lib/command/markup/AcApMarkupCircleCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCloudCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCloudCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCloudCmd.js +8 -9
- package/lib/command/markup/AcApMarkupCloudCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts +12 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.js +37 -9
- package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -1
- package/lib/command/markup/AcApMarkupDrawCmd.d.ts +19 -0
- package/lib/command/markup/AcApMarkupDrawCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupDrawCmd.js +47 -0
- package/lib/command/markup/AcApMarkupDrawCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupGeometry.d.ts +19 -2
- package/lib/command/markup/AcApMarkupGeometry.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupGeometry.js +43 -2
- package/lib/command/markup/AcApMarkupGeometry.js.map +1 -1
- package/lib/command/markup/AcApMarkupHighlightCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupHighlightCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupHighlightCmd.js +9 -10
- package/lib/command/markup/AcApMarkupHighlightCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupLineCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupLineCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupLineCmd.js +18 -11
- package/lib/command/markup/AcApMarkupLineCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupPresenter.d.ts +16 -2
- package/lib/command/markup/AcApMarkupPresenter.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupPresenter.js +66 -14
- package/lib/command/markup/AcApMarkupPresenter.js.map +1 -1
- package/lib/command/markup/AcApMarkupRectCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupRectCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupRectCmd.js +8 -9
- package/lib/command/markup/AcApMarkupRectCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupShapeBuilder.d.ts +7 -4
- package/lib/command/markup/AcApMarkupShapeBuilder.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeBuilder.js +24 -11
- package/lib/command/markup/AcApMarkupShapeBuilder.js.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.js +61 -4
- package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -1
- package/lib/command/markup/AcApMarkupSidecar.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupSidecar.js +39 -5
- package/lib/command/markup/AcApMarkupSidecar.js.map +1 -1
- package/lib/command/markup/AcApMarkupStampCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupStampCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupStampCmd.js +6 -7
- package/lib/command/markup/AcApMarkupStampCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupTextCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupTextCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupTextCmd.js +13 -9
- package/lib/command/markup/AcApMarkupTextCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupTypes.d.ts +18 -2
- package/lib/command/markup/AcApMarkupTypes.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupUtil.d.ts +36 -7
- package/lib/command/markup/AcApMarkupUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupUtil.js +149 -34
- package/lib/command/markup/AcApMarkupUtil.js.map +1 -1
- package/lib/command/markup/AcApRegisterMarkupCommands.d.ts +8 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.d.ts.map +1 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.js +35 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.js +16 -15
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntity.d.ts +5 -1
- package/lib/command/markup/entity/AcApMarkupEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntity.js +19 -5
- package/lib/command/markup/entity/AcApMarkupEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts +8 -3
- package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntityGrips.js +15 -7
- package/lib/command/markup/entity/AcApMarkupEntityGrips.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.js +14 -12
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.js +8 -6
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupShapeEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupShapeEntity.js +23 -21
- package/lib/command/markup/entity/AcApMarkupShapeEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupStampEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupStampEntity.js +1 -0
- package/lib/command/markup/entity/AcApMarkupStampEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupTextEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupTextEntity.js +1 -0
- package/lib/command/markup/entity/AcApMarkupTextEntity.js.map +1 -1
- package/lib/command/markup/index.d.ts +2 -0
- package/lib/command/markup/index.d.ts.map +1 -1
- package/lib/command/markup/index.js +2 -0
- package/lib/command/markup/index.js.map +1 -1
- package/lib/command/measure/AcApMeasureAngleArc.d.ts +27 -0
- package/lib/command/measure/AcApMeasureAngleArc.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureAngleArc.js +22 -0
- package/lib/command/measure/AcApMeasureAngleArc.js.map +1 -0
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureAngleCmd.js +46 -45
- package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.js +71 -67
- package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureAreaCmd.js +102 -99
- package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureContinuousCmd.d.ts +44 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.js +317 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.js.map +1 -0
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts +3 -3
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureDistanceCmd.js +41 -37
- package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureDrawCmd.d.ts +32 -0
- package/lib/command/measure/AcApMeasureDrawCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureDrawCmd.js +56 -0
- package/lib/command/measure/AcApMeasureDrawCmd.js.map +1 -0
- package/lib/command/measure/AcApMeasurePointCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasurePointCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurePointCmd.js +20 -23
- package/lib/command/measure/AcApMeasurePointCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasurementGeometry.d.ts +19 -0
- package/lib/command/measure/AcApMeasurementGeometry.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementGeometry.js +53 -3
- package/lib/command/measure/AcApMeasurementGeometry.js.map +1 -1
- package/lib/command/measure/AcApMeasurementHistory.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementHistory.js +3 -1
- package/lib/command/measure/AcApMeasurementHistory.js.map +1 -1
- package/lib/command/measure/AcApMeasurementPlace.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementPlace.js +22 -5
- package/lib/command/measure/AcApMeasurementPlace.js.map +1 -1
- package/lib/command/measure/AcApMeasurementRepublish.d.ts +35 -0
- package/lib/command/measure/AcApMeasurementRepublish.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementRepublish.js +31 -0
- package/lib/command/measure/AcApMeasurementRepublish.js.map +1 -0
- package/lib/command/measure/AcApMeasurementSidecar.d.ts +2 -1
- package/lib/command/measure/AcApMeasurementSidecar.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementSidecar.js +55 -10
- package/lib/command/measure/AcApMeasurementSidecar.js.map +1 -1
- package/lib/command/measure/AcApMeasurementStore.d.ts +45 -2
- package/lib/command/measure/AcApMeasurementStore.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementStore.js +277 -33
- package/lib/command/measure/AcApMeasurementStore.js.map +1 -1
- package/lib/command/measure/AcApMeasurementTypes.d.ts +17 -1
- package/lib/command/measure/AcApMeasurementTypes.d.ts.map +1 -1
- package/lib/command/measure/AcApRegisterMeasureCommands.d.ts +8 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.d.ts.map +1 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.js +29 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts +3 -5
- package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAngleEntity.js +165 -56
- package/lib/command/measure/entity/AcApMeasureAngleEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts +5 -8
- package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureArcEntity.js +251 -53
- package/lib/command/measure/entity/AcApMeasureArcEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts +4 -3
- package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAreaEntity.js +154 -28
- package/lib/command/measure/entity/AcApMeasureAreaEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts +5 -3
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.js +180 -28
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +20 -8
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js +45 -19
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntity.d.ts +41 -6
- package/lib/command/measure/entity/AcApMeasureEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntity.js +48 -2
- package/lib/command/measure/entity/AcApMeasureEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts +2 -2
- package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityFactory.js +10 -3
- package/lib/command/measure/entity/AcApMeasureEntityFactory.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts +33 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.js +49 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts +3 -2
- package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasurePointEntity.js +130 -16
- package/lib/command/measure/entity/AcApMeasurePointEntity.js.map +1 -1
- package/lib/command/measure/entity/index.d.ts +1 -0
- package/lib/command/measure/entity/index.d.ts.map +1 -1
- package/lib/command/measure/entity/index.js +1 -0
- package/lib/command/measure/entity/index.js.map +1 -1
- package/lib/command/measure/index.d.ts +4 -0
- package/lib/command/measure/index.d.ts.map +1 -1
- package/lib/command/measure/index.js +4 -0
- package/lib/command/measure/index.js.map +1 -1
- package/lib/command/overlay/AcApHtmlLivePreview.d.ts +16 -4
- package/lib/command/overlay/AcApHtmlLivePreview.d.ts.map +1 -1
- package/lib/command/overlay/AcApHtmlLivePreview.js +42 -12
- package/lib/command/overlay/AcApHtmlLivePreview.js.map +1 -1
- package/lib/command/overlay/AcApOverlayDrawUtil.d.ts +113 -3
- package/lib/command/overlay/AcApOverlayDrawUtil.d.ts.map +1 -1
- package/lib/command/overlay/AcApOverlayDrawUtil.js +341 -7
- package/lib/command/overlay/AcApOverlayDrawUtil.js.map +1 -1
- package/lib/command/overlay/AcApOverlayGripHost.d.ts +19 -0
- package/lib/command/overlay/AcApOverlayGripHost.d.ts.map +1 -1
- package/lib/command/overlay/AcApOverlayGripHost.js +124 -6
- package/lib/command/overlay/AcApOverlayGripHost.js.map +1 -1
- package/lib/editor/command/AcEdCommand.d.ts +17 -0
- package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommand.js +81 -1
- package/lib/editor/command/AcEdCommand.js.map +1 -1
- package/lib/editor/command/AcEdCommandStack.d.ts +14 -3
- package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommandStack.js +39 -3
- package/lib/editor/command/AcEdCommandStack.js.map +1 -1
- package/lib/editor/command/AcEdSessionAccessory.d.ts +82 -0
- package/lib/editor/command/AcEdSessionAccessory.d.ts.map +1 -0
- package/lib/editor/command/AcEdSessionAccessory.js +15 -0
- package/lib/editor/command/AcEdSessionAccessory.js.map +1 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.d.ts +42 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.d.ts.map +1 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.js +54 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.js.map +1 -0
- package/lib/editor/command/index.d.ts +4 -0
- package/lib/editor/command/index.d.ts.map +1 -1
- package/lib/editor/command/index.js +3 -0
- package/lib/editor/command/index.js.map +1 -1
- package/lib/editor/global/AcEdUiColor.d.ts +10 -0
- package/lib/editor/global/AcEdUiColor.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiColor.js +14 -0
- package/lib/editor/global/AcEdUiColor.js.map +1 -1
- package/lib/editor/global/AcEdUiLayout.d.ts +108 -0
- package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiLayout.js +143 -0
- package/lib/editor/global/AcEdUiLayout.js.map +1 -1
- package/lib/editor/global/AcEdUiTheme.d.ts +15 -3
- package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiTheme.js +113 -6
- package/lib/editor/global/AcEdUiTheme.js.map +1 -1
- package/lib/editor/grip/AcEdGripAppearance.d.ts +18 -0
- package/lib/editor/grip/AcEdGripAppearance.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripAppearance.js +23 -1
- package/lib/editor/grip/AcEdGripAppearance.js.map +1 -1
- package/lib/editor/grip/AcEdGripEditSession.js +2 -2
- package/lib/editor/grip/AcEdGripEditSession.js.map +1 -1
- package/lib/editor/grip/AcEdGripHandle.d.ts +1 -2
- package/lib/editor/grip/AcEdGripHandle.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripHandle.js +4 -13
- package/lib/editor/grip/AcEdGripHandle.js.map +1 -1
- package/lib/editor/grip/AcEdGripManager.d.ts +3 -1
- package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripManager.js +30 -14
- package/lib/editor/grip/AcEdGripManager.js.map +1 -1
- package/lib/editor/grip/index.d.ts +1 -0
- package/lib/editor/grip/index.d.ts.map +1 -1
- package/lib/editor/grip/index.js +1 -0
- package/lib/editor/grip/index.js.map +1 -1
- package/lib/editor/input/AcEdDynamicInput.d.ts +15 -0
- package/lib/editor/input/AcEdDynamicInput.d.ts.map +1 -0
- package/lib/editor/input/AcEdDynamicInput.js +22 -0
- package/lib/editor/input/AcEdDynamicInput.js.map +1 -0
- package/lib/editor/input/AcEdOsnapCenterMarks.d.ts +19 -1
- package/lib/editor/input/AcEdOsnapCenterMarks.d.ts.map +1 -1
- package/lib/editor/input/AcEdOsnapCenterMarks.js +53 -9
- package/lib/editor/input/AcEdOsnapCenterMarks.js.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.js +216 -35
- package/lib/editor/input/AcEdOsnapResolver.js.map +1 -1
- package/lib/editor/input/AcEditor.d.ts +14 -1
- package/lib/editor/input/AcEditor.d.ts.map +1 -1
- package/lib/editor/input/AcEditor.js +18 -2
- package/lib/editor/input/AcEditor.js.map +1 -1
- package/lib/editor/input/index.d.ts +1 -0
- package/lib/editor/input/index.d.ts.map +1 -1
- package/lib/editor/input/index.js +1 -0
- package/lib/editor/input/index.js.map +1 -1
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts +12 -0
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts.map +1 -1
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.js +53 -18
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +15 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js +24 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.d.ts +31 -0
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.js +67 -0
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.js.map +1 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts +33 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js +85 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts +57 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js +104 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +146 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +423 -13
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +8 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingMessage.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingMessage.js +2 -2
- package/lib/editor/input/ui/AcEdFloatingMessage.js.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts +100 -7
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +846 -165
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts +94 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.js +60 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts +52 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js +203 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts +103 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js +157 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts +29 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.js +37 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts +45 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.js +63 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.js.map +1 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts +121 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js +306 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js.map +1 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts +28 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js +86 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.d.ts +60 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.js +109 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.js.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts +47 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.js +50 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts +97 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.js +74 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.d.ts +198 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.js +329 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts +18 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.js +18 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.js.map +1 -0
- package/lib/editor/input/ui/index.d.ts +14 -0
- package/lib/editor/input/ui/index.d.ts.map +1 -1
- package/lib/editor/input/ui/index.js +14 -0
- package/lib/editor/input/ui/index.js.map +1 -1
- package/lib/editor/view/AcEdBaseView.d.ts +144 -39
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +200 -49
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts +36 -0
- package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts.map +1 -0
- package/lib/editor/view/AcEdSelectionBoxIntersect.js +113 -0
- package/lib/editor/view/AcEdSelectionBoxIntersect.js.map +1 -0
- package/lib/editor/view/AcEdViewMode.d.ts +34 -0
- package/lib/editor/view/AcEdViewMode.d.ts.map +1 -0
- package/lib/editor/view/AcEdViewMode.js +35 -0
- package/lib/editor/view/AcEdViewMode.js.map +1 -0
- package/lib/editor/view/index.d.ts +2 -0
- package/lib/editor/view/index.d.ts.map +1 -1
- package/lib/editor/view/index.js +2 -0
- package/lib/editor/view/index.js.map +1 -1
- package/lib/i18n/AcApI18n.d.ts +2 -1
- package/lib/i18n/AcApI18n.d.ts.map +1 -1
- package/lib/i18n/AcApI18n.js +5 -2
- package/lib/i18n/AcApI18n.js.map +1 -1
- package/lib/i18n/ar/command.d.ts +18 -0
- package/lib/i18n/ar/command.d.ts.map +1 -1
- package/lib/i18n/ar/command.js +1 -1
- package/lib/i18n/ar/command.js.map +1 -1
- package/lib/i18n/ar/jig.d.ts +67 -0
- package/lib/i18n/ar/jig.d.ts.map +1 -1
- package/lib/i18n/ar/jig.js +31 -3
- package/lib/i18n/ar/jig.js.map +1 -1
- package/lib/i18n/ar/main.d.ts +100 -1
- package/lib/i18n/ar/main.d.ts.map +1 -1
- package/lib/i18n/ar/main.js +101 -2
- package/lib/i18n/ar/main.js.map +1 -1
- package/lib/i18n/cs/command.d.ts +15 -0
- package/lib/i18n/cs/command.d.ts.map +1 -1
- package/lib/i18n/cs/command.js +15 -0
- package/lib/i18n/cs/command.js.map +1 -1
- package/lib/i18n/cs/jig.d.ts +67 -0
- package/lib/i18n/cs/jig.d.ts.map +1 -1
- package/lib/i18n/cs/jig.js +67 -0
- package/lib/i18n/cs/jig.js.map +1 -1
- package/lib/i18n/cs/main.d.ts +100 -1
- package/lib/i18n/cs/main.d.ts.map +1 -1
- package/lib/i18n/cs/main.js +101 -2
- package/lib/i18n/cs/main.js.map +1 -1
- package/lib/i18n/en/command.d.ts +18 -0
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +18 -0
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +67 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +67 -0
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/en/main.d.ts +100 -1
- package/lib/i18n/en/main.d.ts.map +1 -1
- package/lib/i18n/en/main.js +101 -2
- package/lib/i18n/en/main.js.map +1 -1
- package/lib/i18n/index.d.ts +2 -2
- package/lib/i18n/index.d.ts.map +1 -1
- package/lib/i18n/index.js.map +1 -1
- package/lib/i18n/tr/command.d.ts +15 -0
- package/lib/i18n/tr/command.d.ts.map +1 -1
- package/lib/i18n/tr/command.js +15 -0
- package/lib/i18n/tr/command.js.map +1 -1
- package/lib/i18n/tr/jig.d.ts +67 -0
- package/lib/i18n/tr/jig.d.ts.map +1 -1
- package/lib/i18n/tr/jig.js +67 -0
- package/lib/i18n/tr/jig.js.map +1 -1
- package/lib/i18n/tr/main.d.ts +100 -1
- package/lib/i18n/tr/main.d.ts.map +1 -1
- package/lib/i18n/tr/main.js +101 -2
- package/lib/i18n/tr/main.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +18 -0
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +18 -0
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +67 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +67 -0
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/i18n/zh/main.d.ts +100 -1
- package/lib/i18n/zh/main.d.ts.map +1 -1
- package/lib/i18n/zh/main.js +102 -3
- package/lib/i18n/zh/main.js.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts +6 -0
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js +10 -0
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js.map +1 -1
- package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts +4 -0
- package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrLinearSpatialIndex.js +9 -0
- package/lib/spatialIndex/AcTrLinearSpatialIndex.js.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts +4 -0
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js +20 -4
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
- package/lib/ui/AcUiAciColorDialog.d.ts +57 -0
- package/lib/ui/AcUiAciColorDialog.d.ts.map +1 -0
- package/lib/ui/AcUiAciColorDialog.js +91 -0
- package/lib/ui/AcUiAciColorDialog.js.map +1 -0
- package/lib/ui/AcUiAciPaletteUi.d.ts +118 -0
- package/lib/ui/AcUiAciPaletteUi.d.ts.map +1 -0
- package/lib/ui/AcUiAciPaletteUi.js +521 -0
- package/lib/ui/AcUiAciPaletteUi.js.map +1 -0
- package/lib/ui/AcUiDefaultNotificationUi.d.ts +167 -0
- package/lib/ui/AcUiDefaultNotificationUi.d.ts.map +1 -0
- package/lib/ui/AcUiDefaultNotificationUi.js +603 -0
- package/lib/ui/AcUiDefaultNotificationUi.js.map +1 -0
- package/lib/ui/AcUiDialog.d.ts +38 -2
- package/lib/ui/AcUiDialog.d.ts.map +1 -1
- package/lib/ui/AcUiDialog.js +45 -16
- package/lib/ui/AcUiDialog.js.map +1 -1
- package/lib/ui/AcUiDrawStyle.d.ts +60 -0
- package/lib/ui/AcUiDrawStyle.d.ts.map +1 -0
- package/lib/ui/AcUiDrawStyle.js +95 -0
- package/lib/ui/AcUiDrawStyle.js.map +1 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts +108 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts.map +1 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.js +459 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.js.map +1 -0
- package/lib/ui/AcUiFullscreenPanel.d.ts +89 -0
- package/lib/ui/AcUiFullscreenPanel.d.ts.map +1 -0
- package/lib/ui/AcUiFullscreenPanel.js +224 -0
- package/lib/ui/AcUiFullscreenPanel.js.map +1 -0
- package/lib/ui/AcUiHelpPanel.d.ts +49 -0
- package/lib/ui/AcUiHelpPanel.d.ts.map +1 -0
- package/lib/ui/AcUiHelpPanel.js +124 -0
- package/lib/ui/AcUiHelpPanel.js.map +1 -0
- package/lib/ui/AcUiMobileSessionPanel.d.ts +239 -0
- package/lib/ui/AcUiMobileSessionPanel.d.ts.map +1 -0
- package/lib/ui/AcUiMobileSessionPanel.js +822 -0
- package/lib/ui/AcUiMobileSessionPanel.js.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts +160 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.js +318 -0
- package/lib/ui/AcUiShortCutToolbar.js.map +1 -0
- package/lib/ui/AcUiSimpleToolbar.d.ts +110 -0
- package/lib/ui/AcUiSimpleToolbar.d.ts.map +1 -0
- package/lib/ui/AcUiSimpleToolbar.js +431 -0
- package/lib/ui/AcUiSimpleToolbar.js.map +1 -0
- package/lib/ui/AcUiTextHeightDialog.d.ts +85 -0
- package/lib/ui/AcUiTextHeightDialog.d.ts.map +1 -0
- package/lib/ui/AcUiTextHeightDialog.js +205 -0
- package/lib/ui/AcUiTextHeightDialog.js.map +1 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.d.ts +54 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.d.ts.map +1 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.js +128 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.js.map +1 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.d.ts +18 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.d.ts.map +1 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.js +58 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.js.map +1 -0
- package/lib/ui/icons.d.ts +54 -27
- package/lib/ui/icons.d.ts.map +1 -1
- package/lib/ui/icons.js +79 -25
- package/lib/ui/icons.js.map +1 -1
- package/lib/ui/index.d.ts +15 -2
- package/lib/ui/index.d.ts.map +1 -1
- package/lib/ui/index.js +15 -2
- package/lib/ui/index.js.map +1 -1
- package/lib/ui/toolbar/AcUiDropdownMenu.d.ts +48 -0
- package/lib/ui/toolbar/AcUiDropdownMenu.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiDropdownMenu.js +116 -0
- package/lib/ui/toolbar/AcUiDropdownMenu.js.map +1 -0
- package/lib/ui/toolbar/AcUiSubToolbar.d.ts +125 -0
- package/lib/ui/toolbar/AcUiSubToolbar.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiSubToolbar.js +625 -0
- package/lib/ui/toolbar/AcUiSubToolbar.js.map +1 -0
- package/lib/ui/toolbar/AcUiToolbar.d.ts +446 -0
- package/lib/ui/toolbar/AcUiToolbar.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiToolbar.js +1550 -0
- package/lib/ui/toolbar/AcUiToolbar.js.map +1 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.d.ts +20 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.js +34 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.js.map +1 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.d.ts +19 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.d.ts.map +1 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.js +36 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.js.map +1 -0
- package/lib/ui/toolbar/index.d.ts +19 -0
- package/lib/ui/toolbar/index.d.ts.map +1 -0
- package/lib/ui/toolbar/index.js +15 -0
- package/lib/ui/toolbar/index.js.map +1 -0
- package/lib/ui/toolbar/resolveToolbarChrome.d.ts +14 -0
- package/lib/ui/toolbar/resolveToolbarChrome.d.ts.map +1 -0
- package/lib/ui/toolbar/resolveToolbarChrome.js +35 -0
- package/lib/ui/toolbar/resolveToolbarChrome.js.map +1 -0
- package/lib/ui/toolbar/resolveToolbarItemState.d.ts +63 -0
- package/lib/ui/toolbar/resolveToolbarItemState.d.ts.map +1 -0
- package/lib/ui/toolbar/resolveToolbarItemState.js +171 -0
- package/lib/ui/toolbar/resolveToolbarItemState.js.map +1 -0
- package/lib/ui/toolbar/toolbarItemUtils.d.ts +62 -0
- package/lib/ui/toolbar/toolbarItemUtils.d.ts.map +1 -0
- package/lib/ui/toolbar/toolbarItemUtils.js +184 -0
- package/lib/ui/toolbar/toolbarItemUtils.js.map +1 -0
- package/lib/ui/toolbar/types.d.ts +268 -0
- package/lib/ui/toolbar/types.d.ts.map +1 -0
- package/lib/ui/toolbar/types.js +8 -0
- package/lib/ui/toolbar/types.js.map +1 -0
- package/lib/ui/touch-point-tutorial.d.ts +64 -0
- package/lib/ui/touch-point-tutorial.d.ts.map +1 -0
- package/lib/ui/touch-point-tutorial.js +271 -0
- package/lib/ui/touch-point-tutorial.js.map +1 -0
- package/lib/ui-html-entry.d.ts +38 -0
- package/lib/ui-html-entry.d.ts.map +1 -0
- package/lib/ui-html-entry.js +28 -0
- package/lib/ui-html-entry.js.map +1 -0
- package/lib/util/AcApAciPalette.d.ts +7 -0
- package/lib/util/AcApAciPalette.d.ts.map +1 -0
- package/lib/util/AcApAciPalette.js +51 -0
- package/lib/util/AcApAciPalette.js.map +1 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.d.ts +53 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.d.ts.map +1 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.js +164 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.js.map +1 -0
- package/lib/util/AcApCommandUtil.d.ts +15 -0
- package/lib/util/AcApCommandUtil.d.ts.map +1 -0
- package/lib/util/AcApCommandUtil.js +38 -0
- package/lib/util/AcApCommandUtil.js.map +1 -0
- package/lib/util/AcApCssColor.d.ts +10 -0
- package/lib/util/AcApCssColor.d.ts.map +1 -1
- package/lib/util/AcApCssColor.js +52 -0
- package/lib/util/AcApCssColor.js.map +1 -1
- package/lib/util/AcApFormatFontMissedMessage.d.ts +32 -0
- package/lib/util/AcApFormatFontMissedMessage.d.ts.map +1 -0
- package/lib/util/AcApFormatFontMissedMessage.js +46 -0
- package/lib/util/AcApFormatFontMissedMessage.js.map +1 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.d.ts +44 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.d.ts.map +1 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.js +105 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.js.map +1 -0
- package/lib/util/AcApMeasurementUnits.d.ts +13 -1
- package/lib/util/AcApMeasurementUnits.d.ts.map +1 -1
- package/lib/util/AcApMeasurementUnits.js +144 -10
- package/lib/util/AcApMeasurementUnits.js.map +1 -1
- package/lib/util/AcApMeasurementUtil.d.ts +30 -9
- package/lib/util/AcApMeasurementUtil.d.ts.map +1 -1
- package/lib/util/AcApMeasurementUtil.js +70 -40
- package/lib/util/AcApMeasurementUtil.js.map +1 -1
- package/lib/util/AcApOpenFileErrorMessage.d.ts +25 -0
- package/lib/util/AcApOpenFileErrorMessage.d.ts.map +1 -0
- package/lib/util/AcApOpenFileErrorMessage.js +121 -0
- package/lib/util/AcApOpenFileErrorMessage.js.map +1 -0
- package/lib/util/index.d.ts +6 -0
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +6 -0
- package/lib/util/index.js.map +1 -1
- package/lib/view/AcApReadingMode.d.ts +52 -0
- package/lib/view/AcApReadingMode.d.ts.map +1 -0
- package/lib/view/AcApReadingMode.js +81 -0
- package/lib/view/AcApReadingMode.js.map +1 -0
- package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
- package/lib/view/AcEdViewKeyHandler.js +6 -1
- package/lib/view/AcEdViewKeyHandler.js.map +1 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts +6 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts.map +1 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.js +9 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.js.map +1 -1
- package/lib/view/AcTrLayer.d.ts +13 -1
- package/lib/view/AcTrLayer.d.ts.map +1 -1
- package/lib/view/AcTrLayer.js +28 -11
- package/lib/view/AcTrLayer.js.map +1 -1
- package/lib/view/AcTrLayout.d.ts +17 -2
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +67 -15
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrLayoutView.d.ts +25 -1
- package/lib/view/AcTrLayoutView.d.ts.map +1 -1
- package/lib/view/AcTrLayoutView.js +62 -1
- package/lib/view/AcTrLayoutView.js.map +1 -1
- package/lib/view/AcTrScene.d.ts +4 -0
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +6 -0
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +128 -15
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +634 -149
- package/lib/view/AcTrView2d.js.map +1 -1
- package/lib/view/AcTrViewSessionState.d.ts +6 -0
- package/lib/view/AcTrViewSessionState.d.ts.map +1 -1
- package/lib/view/index.d.ts +1 -0
- package/lib/view/index.d.ts.map +1 -1
- package/lib/view/index.js +1 -0
- package/lib/view/index.js.map +1 -1
- package/package.json +8 -8
- package/src/ui/icons.ts +387 -293
- package/lib/app/AcDbOpenDatabaseOptions.d.ts +0 -63
- package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +0 -1
- package/lib/app/AcDbOpenDatabaseOptions.js.map +0 -1
- package/lib/command/convert/AcApPngConvertor.d.ts.map +0 -1
- package/lib/command/convert/AcApPngConvertor.js.map +0 -1
- package/lib/ui/AcApDrawStyle.d.ts +0 -81
- package/lib/ui/AcApDrawStyle.d.ts.map +0 -1
- package/lib/ui/AcApDrawStyle.js +0 -170
- package/lib/ui/AcApDrawStyle.js.map +0 -1
- package/lib/ui/AcApDrawStyleToolbar.d.ts +0 -129
- package/lib/ui/AcApDrawStyleToolbar.d.ts.map +0 -1
- package/lib/ui/AcApDrawStyleToolbar.js +0 -607
- package/lib/ui/AcApDrawStyleToolbar.js.map +0 -1
|
@@ -88,13 +88,23 @@ var __values = (this && this.__values) || function(o) {
|
|
|
88
88
|
import { acdbHostApplicationServices, AcDbSystemVariables, AcDbSysVarManager, AcGeBox2d } from '@mlightcad/data-model';
|
|
89
89
|
import { AcApDocManager, AcApSettingManager } from '../../../app';
|
|
90
90
|
import { AcApI18n } from '../../../i18n';
|
|
91
|
+
import { AcUiTouchPointTutorialDialog } from '../../../ui/AcUiTouchPointTutorialDialog';
|
|
92
|
+
import { acedIsMobileUiLayout, acedShouldHideDesktopCommandLine, acedSubscribeUiLayout } from '../../global/AcEdUiLayout';
|
|
91
93
|
import { AcEdSelectionSet } from '../AcEdSelectionSet';
|
|
92
94
|
import { AcEdAngleHandler, AcEdDistanceHandler, AcEdDoubleHandler, AcEdIntegerHandler, AcEdPointHandler, AcEdStringHandler } from '../handler';
|
|
93
95
|
import { AcEdKeywordHandler } from '../handler/AcEdKeywordHandler';
|
|
96
|
+
import { AcEdMarkerManager } from '../marker';
|
|
94
97
|
import { AcEdPromptBoxResult, AcEdPromptDoubleResult, AcEdPromptEntityResult, AcEdPromptIntegerResult, AcEdPromptKeywordOptions, AcEdPromptOptions, AcEdPromptPointOptions, AcEdPromptPointResult, AcEdPromptResult, AcEdPromptSelectionResult, AcEdPromptStatus } from '../prompt';
|
|
95
98
|
import { AcEdCommandLine } from './AcEdCommandLine';
|
|
99
|
+
import { AcEdEntityPickCancelChrome } from './AcEdEntityPickCancelChrome';
|
|
96
100
|
import { AcEdFloatingInput } from './AcEdFloatingInput';
|
|
97
101
|
import { AcEdFloatingMessage } from './AcEdFloatingMessage';
|
|
102
|
+
import { acedInteractionStrategy } from './AcEdInteractionStrategy';
|
|
103
|
+
import { acedAttachMobileBoxGesture } from './AcEdMobileBoxGesture';
|
|
104
|
+
import { AcEdMobileCommandChrome } from './AcEdMobileCommandChrome';
|
|
105
|
+
import { acedComputeSessionMetrics } from './AcEdMobileSessionMetrics';
|
|
106
|
+
import { AcEdSessionAccessoryController } from './AcEdSessionAccessoryController';
|
|
107
|
+
import { acedIsTouchDerivedMouseEvent, acedIsTouchLongPressContextMenu, acedShouldIgnoreCompatMouse } from './AcEdTouchPointSession';
|
|
98
108
|
/**
|
|
99
109
|
* Internal control-flow error used to propagate keyword picks out of
|
|
100
110
|
* floating-input loops.
|
|
@@ -139,10 +149,23 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
139
149
|
* positioning and live preview updates.
|
|
140
150
|
*
|
|
141
151
|
* @param view - The view associated with the input manager
|
|
152
|
+
* @param editorEvents - Editor event bus; passed in because `view.editor` is
|
|
153
|
+
* not assigned until {@link AcEditor} finishes constructing.
|
|
142
154
|
*/
|
|
143
|
-
function AcEdInputManager(view) {
|
|
155
|
+
function AcEdInputManager(view, editorEvents) {
|
|
156
|
+
var _this = this;
|
|
144
157
|
/** Stores last confirmed point from getPoint() or getBox() */
|
|
145
158
|
this.lastPoint = null;
|
|
159
|
+
/**
|
|
160
|
+
* Plus marks at confirmed pick points for the active command.
|
|
161
|
+
* Positions accumulate across sequential {@link getPoint} prompts (including
|
|
162
|
+
* scripted ones); DOM marks appear only when a later interactive prompt
|
|
163
|
+
* starts so single-point commands do not flash a mark. Cleared on command end.
|
|
164
|
+
*/
|
|
165
|
+
this._confirmedPointMarks = null;
|
|
166
|
+
this._confirmedPointPositions = [];
|
|
167
|
+
/** Top-right X shown during mobile entity picks (below message bar). */
|
|
168
|
+
this._entityPickCancel = null;
|
|
146
169
|
/** Buffered command-line style inputs (each item is one Enter-confirmed value). */
|
|
147
170
|
this._scriptInputs = [];
|
|
148
171
|
/** Current modifier key state during input sessions. */
|
|
@@ -172,7 +195,12 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
172
195
|
* their sub-prompts sequentially), so a single slot is sufficient.
|
|
173
196
|
*/
|
|
174
197
|
this._activeRejector = null;
|
|
198
|
+
/** Latest cancel callback for {@link _entityPickCancel}. */
|
|
199
|
+
this._entityPickCancelOnCancel = null;
|
|
175
200
|
this.view = view;
|
|
201
|
+
this._boundRepositionConfirmedPointMarks = function () {
|
|
202
|
+
return _this.repositionConfirmedPointMarks();
|
|
203
|
+
};
|
|
176
204
|
this.injectCSS();
|
|
177
205
|
// Newly added UI overlays (command line, previews) are container-local.
|
|
178
206
|
// Ensure absolute-positioned children are anchored to this view only.
|
|
@@ -182,11 +210,80 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
182
210
|
}
|
|
183
211
|
var commandLine = new AcEdCommandLine(this.view.container);
|
|
184
212
|
this._commandLine = commandLine;
|
|
185
|
-
|
|
213
|
+
this._mobileChrome = new AcEdMobileCommandChrome(this.view.container);
|
|
214
|
+
this._sessionAccessoryController = new AcEdSessionAccessoryController({
|
|
215
|
+
view: this.view,
|
|
216
|
+
getMobileChrome: function () { return _this._mobileChrome; },
|
|
217
|
+
isMobilePromptOpen: function () { return _this._mobileChrome.isOpen; },
|
|
218
|
+
getEditorEvents: function () { return editorEvents; }
|
|
219
|
+
});
|
|
220
|
+
this._sessionAccessoryController.bindEditorEvents();
|
|
221
|
+
this.syncDesktopCommandLineVisibility();
|
|
186
222
|
AcApSettingManager.instance.events.modified.addEventListener(function () {
|
|
187
|
-
|
|
223
|
+
_this.syncDesktopCommandLineVisibility();
|
|
224
|
+
});
|
|
225
|
+
acedSubscribeUiLayout(function () {
|
|
226
|
+
_this.syncDesktopCommandLineVisibility();
|
|
227
|
+
if (!acedInteractionStrategy().point.usesSessionChrome &&
|
|
228
|
+
_this._mobileChrome.isOpen) {
|
|
229
|
+
_this._mobileChrome.hide();
|
|
230
|
+
}
|
|
231
|
+
_this._sessionAccessoryController.remountActiveSessionAccessory();
|
|
232
|
+
});
|
|
233
|
+
this.view.events.viewChanged.addEventListener(this._boundRepositionConfirmedPointMarks);
|
|
234
|
+
this.view.events.viewResize.addEventListener(this._boundRepositionConfirmedPointMarks);
|
|
235
|
+
// Safety net: if a prompt failed to clean up, close the mobile session
|
|
236
|
+
// panel when the command finishes so the bottom chrome cannot linger.
|
|
237
|
+
// Also clear confirmed-point plus marks for the finished command.
|
|
238
|
+
editorEvents.commandEnded.addEventListener(function () {
|
|
239
|
+
_this.clearConfirmedPointMarks();
|
|
240
|
+
if (_this._mobileChrome.isOpen) {
|
|
241
|
+
_this.endMobilePrompt();
|
|
242
|
+
}
|
|
188
243
|
});
|
|
189
244
|
}
|
|
245
|
+
Object.defineProperty(AcEdInputManager.prototype, "isMobilePromptOpen", {
|
|
246
|
+
/**
|
|
247
|
+
* Whether the phone/pad bottom session panel is open for the current prompt.
|
|
248
|
+
*/
|
|
249
|
+
get: function () {
|
|
250
|
+
return this._mobileChrome.isOpen;
|
|
251
|
+
},
|
|
252
|
+
enumerable: false,
|
|
253
|
+
configurable: true
|
|
254
|
+
});
|
|
255
|
+
Object.defineProperty(AcEdInputManager.prototype, "mobileChrome", {
|
|
256
|
+
/** Mobile session panel chrome. */
|
|
257
|
+
get: function () {
|
|
258
|
+
return this._mobileChrome;
|
|
259
|
+
},
|
|
260
|
+
enumerable: false,
|
|
261
|
+
configurable: true
|
|
262
|
+
});
|
|
263
|
+
Object.defineProperty(AcEdInputManager.prototype, "sessionAccessoryHost", {
|
|
264
|
+
/** Active mount target for session accessories. */
|
|
265
|
+
get: function () {
|
|
266
|
+
return this._sessionAccessoryController.sessionAccessoryHost;
|
|
267
|
+
},
|
|
268
|
+
enumerable: false,
|
|
269
|
+
configurable: true
|
|
270
|
+
});
|
|
271
|
+
Object.defineProperty(AcEdInputManager.prototype, "selectionSessionAccessory", {
|
|
272
|
+
/** Selection-driven accessory shown when no command accessory is mounted. */
|
|
273
|
+
get: function () {
|
|
274
|
+
return this._sessionAccessoryController.selectionSessionAccessory;
|
|
275
|
+
},
|
|
276
|
+
/**
|
|
277
|
+
* Updates the selection-driven accessory on the session accessory controller.
|
|
278
|
+
*
|
|
279
|
+
* @param value - Accessory to show on selection, or `null` to clear.
|
|
280
|
+
*/
|
|
281
|
+
set: function (value) {
|
|
282
|
+
this._sessionAccessoryController.selectionSessionAccessory = value;
|
|
283
|
+
},
|
|
284
|
+
enumerable: false,
|
|
285
|
+
configurable: true
|
|
286
|
+
});
|
|
190
287
|
Object.defineProperty(AcEdInputManager.prototype, "isActive", {
|
|
191
288
|
/**
|
|
192
289
|
* The flag to indicate whether it is currently in an “input acquisition” mode (e.g., point
|
|
@@ -250,6 +347,110 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
250
347
|
this._activeRejector = null;
|
|
251
348
|
rejector();
|
|
252
349
|
};
|
|
350
|
+
/**
|
|
351
|
+
* Shows or hides the desktop command line according to settings and layout.
|
|
352
|
+
*/
|
|
353
|
+
AcEdInputManager.prototype.syncDesktopCommandLineVisibility = function () {
|
|
354
|
+
var hide = acedShouldHideDesktopCommandLine(this.active);
|
|
355
|
+
this._commandLine.visible =
|
|
356
|
+
!hide && AcApSettingManager.instance.isShowCommandLine;
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* Visible keyword chips for the mobile session panel.
|
|
360
|
+
*/
|
|
361
|
+
AcEdInputManager.prototype.mobileKeywordChips = function (options) {
|
|
362
|
+
var _a, _b;
|
|
363
|
+
return ((_b = (_a = options.keywords) === null || _a === void 0 ? void 0 : _a.toArray()) !== null && _b !== void 0 ? _b : [])
|
|
364
|
+
.filter(function (kw) { return kw.visible; })
|
|
365
|
+
.map(function (kw) { return ({
|
|
366
|
+
displayName: kw.displayName,
|
|
367
|
+
globalName: kw.globalName,
|
|
368
|
+
enabled: kw.enabled
|
|
369
|
+
}); });
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* Opens the mobile command chrome for the current prompt when on phone/pad.
|
|
373
|
+
*/
|
|
374
|
+
AcEdInputManager.prototype.beginMobilePrompt = function (args) {
|
|
375
|
+
var _a;
|
|
376
|
+
this.syncDesktopCommandLineVisibility();
|
|
377
|
+
if (!acedInteractionStrategy().point.usesSessionChrome)
|
|
378
|
+
return;
|
|
379
|
+
this._mobileChrome.show({
|
|
380
|
+
prompt: args.prompt,
|
|
381
|
+
keywords: (_a = args.keywords) !== null && _a !== void 0 ? _a : [],
|
|
382
|
+
allowNone: args.allowNone,
|
|
383
|
+
showMetrics: args.showMetrics,
|
|
384
|
+
showStringInput: args.showStringInput,
|
|
385
|
+
stringValue: args.stringValue,
|
|
386
|
+
stringPlaceholder: args.stringPlaceholder
|
|
387
|
+
}, {
|
|
388
|
+
onConfirm: args.onConfirm,
|
|
389
|
+
onCancel: args.onCancel,
|
|
390
|
+
onKeyword: args.onKeyword
|
|
391
|
+
});
|
|
392
|
+
this._sessionAccessoryController.remountActiveSessionAccessory();
|
|
393
|
+
if (args.touchPointTutorial) {
|
|
394
|
+
void AcUiTouchPointTutorialDialog.maybeShow(this.view.container);
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
/** Closes the mobile command chrome and restores desktop CLI visibility. */
|
|
398
|
+
AcEdInputManager.prototype.endMobilePrompt = function () {
|
|
399
|
+
this._mobileChrome.hide();
|
|
400
|
+
this.syncDesktopCommandLineVisibility();
|
|
401
|
+
this._sessionAccessoryController.remountActiveSessionAccessory();
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* Shows the top-right entity-pick cancel button on mobile layouts only.
|
|
405
|
+
*
|
|
406
|
+
* @param onCancel - Invoked when the user taps X.
|
|
407
|
+
*/
|
|
408
|
+
AcEdInputManager.prototype.showEntityPickCancel = function (onCancel) {
|
|
409
|
+
var _this = this;
|
|
410
|
+
if (!acedIsMobileUiLayout()) {
|
|
411
|
+
this.hideEntityPickCancel();
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
if (!this._entityPickCancel) {
|
|
415
|
+
this._entityPickCancel = new AcEdEntityPickCancelChrome({
|
|
416
|
+
container: this.view.container,
|
|
417
|
+
onCancel: function () { var _a; return (_a = _this._entityPickCancelOnCancel) === null || _a === void 0 ? void 0 : _a.call(_this); },
|
|
418
|
+
label: AcApI18n.t('main.entityPick.cancel'),
|
|
419
|
+
topOffsetPx: 48
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
else {
|
|
423
|
+
this._entityPickCancel.setLabel(AcApI18n.t('main.entityPick.cancel'));
|
|
424
|
+
}
|
|
425
|
+
this._entityPickCancelOnCancel = onCancel;
|
|
426
|
+
this._entityPickCancel.show();
|
|
427
|
+
};
|
|
428
|
+
/** Hides the mobile entity-pick cancel button. */
|
|
429
|
+
AcEdInputManager.prototype.hideEntityPickCancel = function () {
|
|
430
|
+
var _a;
|
|
431
|
+
this._entityPickCancelOnCancel = null;
|
|
432
|
+
(_a = this._entityPickCancel) === null || _a === void 0 ? void 0 : _a.hide();
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* Pushes live length/angle/Δ values into the mobile session panel.
|
|
436
|
+
*/
|
|
437
|
+
AcEdInputManager.prototype.pushMobileMetrics = function (cursor, basePoint) {
|
|
438
|
+
if (!this._mobileChrome.isOpen)
|
|
439
|
+
return;
|
|
440
|
+
var metrics = acedComputeSessionMetrics(cursor, basePoint);
|
|
441
|
+
// A zero-length rubber-band (cursor still on lastPoint after lift / before
|
|
442
|
+
// the next press) must not wipe the previous readout.
|
|
443
|
+
if (metrics.hasBasePoint && metrics.length === 0)
|
|
444
|
+
return;
|
|
445
|
+
this._mobileChrome.setMetrics(metrics, {
|
|
446
|
+
length: this.formatNumber(metrics.length, 'distance'),
|
|
447
|
+
angle: this.formatNumber(metrics.angleDeg, 'angle'),
|
|
448
|
+
dx: this.formatNumber(metrics.dx, 'point'),
|
|
449
|
+
dy: this.formatNumber(metrics.dy, 'point'),
|
|
450
|
+
x: this.formatNumber(metrics.x, 'point'),
|
|
451
|
+
y: this.formatNumber(metrics.y, 'point')
|
|
452
|
+
});
|
|
453
|
+
};
|
|
253
454
|
/**
|
|
254
455
|
* Queue scripted inputs for subsequent getXXX calls.
|
|
255
456
|
* One array item equals one Enter-confirmed value.
|
|
@@ -710,7 +911,8 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
710
911
|
inputCount: 1,
|
|
711
912
|
promptOptions: options,
|
|
712
913
|
handler: handler,
|
|
713
|
-
getDynamicValue: getDynamicValue
|
|
914
|
+
getDynamicValue: getDynamicValue,
|
|
915
|
+
showMetrics: false
|
|
714
916
|
});
|
|
715
917
|
};
|
|
716
918
|
/**
|
|
@@ -779,6 +981,7 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
779
981
|
floatingInput === null || floatingInput === void 0 ? void 0 : floatingInput.setBasePoint(firstPoint, {
|
|
780
982
|
showBaseLineOnly: !options.useDashedLine
|
|
781
983
|
});
|
|
984
|
+
_this._mobileChrome.update({ showMetrics: true });
|
|
782
985
|
return false;
|
|
783
986
|
}
|
|
784
987
|
return true;
|
|
@@ -966,7 +1169,11 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
966
1169
|
inputCount: 1,
|
|
967
1170
|
promptOptions: options,
|
|
968
1171
|
handler: handler,
|
|
969
|
-
getDynamicValue: getDynamicValue
|
|
1172
|
+
getDynamicValue: getDynamicValue,
|
|
1173
|
+
showMetrics: false,
|
|
1174
|
+
showStringInput: true,
|
|
1175
|
+
// String value comes from the session panel / typed boxes, not picks.
|
|
1176
|
+
allowPickCommit: false
|
|
970
1177
|
})];
|
|
971
1178
|
case 1: return [2 /*return*/, _a.sent()];
|
|
972
1179
|
}
|
|
@@ -998,36 +1205,49 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
998
1205
|
return [2 /*return*/, scriptedValue];
|
|
999
1206
|
}
|
|
1000
1207
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1208
|
+
var settled = false;
|
|
1209
|
+
var finish = function (action) {
|
|
1210
|
+
if (settled)
|
|
1211
|
+
return;
|
|
1212
|
+
settled = true;
|
|
1213
|
+
_this.active = false;
|
|
1005
1214
|
if (_this._activeRejector === rejector) {
|
|
1006
1215
|
_this._activeRejector = null;
|
|
1007
1216
|
}
|
|
1008
|
-
// Tear down the floating command-line keyword session so its
|
|
1009
|
-
// input box and event listeners do not linger after cancel.
|
|
1010
1217
|
_this._commandLine.cancelActiveSession();
|
|
1011
|
-
|
|
1218
|
+
_this.endMobilePrompt();
|
|
1219
|
+
action();
|
|
1220
|
+
};
|
|
1221
|
+
var rejector = function (err) {
|
|
1222
|
+
finish(function () { return reject(err !== null && err !== void 0 ? err : new Error('cancelled')); });
|
|
1012
1223
|
};
|
|
1013
1224
|
_this._activeRejector = rejector;
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1225
|
+
// Pad hides the desktop CLI only while a prompt session is active.
|
|
1226
|
+
_this.active = true;
|
|
1227
|
+
_this.beginMobilePrompt({
|
|
1228
|
+
prompt: options.getDisplayMessage(),
|
|
1229
|
+
keywords: _this.mobileKeywordChips(options),
|
|
1230
|
+
allowNone: options.allowNone,
|
|
1231
|
+
showMetrics: false,
|
|
1232
|
+
onConfirm: function () {
|
|
1233
|
+
if (options.allowNone) {
|
|
1234
|
+
rejector(new AcEdNoneInputError());
|
|
1235
|
+
}
|
|
1236
|
+
},
|
|
1237
|
+
onCancel: function () { return rejector(); },
|
|
1238
|
+
onKeyword: function (globalName) {
|
|
1239
|
+
finish(function () { return resolve(globalName); });
|
|
1017
1240
|
}
|
|
1241
|
+
});
|
|
1242
|
+
_this._commandLine.getKeywords(options, true).then(function (result) {
|
|
1018
1243
|
if (!result) {
|
|
1019
|
-
|
|
1244
|
+
rejector(options.allowNone
|
|
1020
1245
|
? new AcEdNoneInputError()
|
|
1021
1246
|
: new Error('cancelled'));
|
|
1022
1247
|
return;
|
|
1023
1248
|
}
|
|
1024
|
-
resolve(result);
|
|
1025
|
-
}, function (err) {
|
|
1026
|
-
if (_this._activeRejector === rejector) {
|
|
1027
|
-
_this._activeRejector = null;
|
|
1028
|
-
}
|
|
1029
|
-
reject(err);
|
|
1030
|
-
});
|
|
1249
|
+
finish(function () { return resolve(result); });
|
|
1250
|
+
}, function (err) { return rejector(err instanceof Error ? err : undefined); });
|
|
1031
1251
|
})];
|
|
1032
1252
|
});
|
|
1033
1253
|
}); }, function (value) { return new AcEdPromptResult(AcEdPromptStatus.OK, value); }, function (status) { return new AcEdPromptResult(status); }, { keyword: false })];
|
|
@@ -1083,14 +1303,16 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1083
1303
|
var startCanvas = null;
|
|
1084
1304
|
var previewEl = null;
|
|
1085
1305
|
var lastDragEvent = null;
|
|
1086
|
-
var
|
|
1306
|
+
var disposeGesture = null;
|
|
1307
|
+
var updateSelectionPreview = function (clientX, clientY, action) {
|
|
1308
|
+
if (action === void 0) { action = 'add'; }
|
|
1087
1309
|
if (!startWcs || !previewEl || !startCanvas)
|
|
1088
1310
|
return;
|
|
1089
|
-
var curWcs = _this.view.screenToWorld(_this.view.viewportToCanvas({ x: e.clientX, y: e.clientY }));
|
|
1090
1311
|
var curCanvas = _this.view.viewportToCanvas({
|
|
1091
|
-
x:
|
|
1092
|
-
y:
|
|
1312
|
+
x: clientX,
|
|
1313
|
+
y: clientY
|
|
1093
1314
|
});
|
|
1315
|
+
var curWcs = _this.view.screenToWorld(curCanvas);
|
|
1094
1316
|
var p1 = _this.view.worldToScreen(startWcs);
|
|
1095
1317
|
var p2 = _this.view.worldToScreen(curWcs);
|
|
1096
1318
|
var left = Math.min(p1.x, p2.x);
|
|
@@ -1098,7 +1320,6 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1098
1320
|
var width = Math.abs(p1.x - p2.x);
|
|
1099
1321
|
var height = Math.abs(p1.y - p2.y);
|
|
1100
1322
|
var mode = _this.view.getSelectionMode(startCanvas, curCanvas);
|
|
1101
|
-
var action = _this.view.getSelectionActionFromEvent(e, 'add');
|
|
1102
1323
|
var style = _this.view.getSelectionPreviewStyle(mode, action);
|
|
1103
1324
|
Object.assign(previewEl.style, {
|
|
1104
1325
|
left: "".concat(left, "px"),
|
|
@@ -1112,7 +1333,7 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1112
1333
|
};
|
|
1113
1334
|
var onViewChanged = function () {
|
|
1114
1335
|
if (lastDragEvent) {
|
|
1115
|
-
updateSelectionPreview(lastDragEvent);
|
|
1336
|
+
updateSelectionPreview(lastDragEvent.clientX, lastDragEvent.clientY, _this.view.getSelectionActionFromEvent(lastDragEvent, 'add'));
|
|
1116
1337
|
}
|
|
1117
1338
|
};
|
|
1118
1339
|
var settled = false;
|
|
@@ -1133,6 +1354,10 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1133
1354
|
previewEl === null || previewEl === void 0 ? void 0 : previewEl.remove();
|
|
1134
1355
|
keywordSession === null || keywordSession === void 0 ? void 0 : keywordSession.cancel();
|
|
1135
1356
|
_this._commandLine.clear();
|
|
1357
|
+
_this.endMobilePrompt();
|
|
1358
|
+
disposeGesture === null || disposeGesture === void 0 ? void 0 : disposeGesture();
|
|
1359
|
+
disposeGesture = null;
|
|
1360
|
+
_this.view.setNavigationEnabled(true);
|
|
1136
1361
|
document.removeEventListener('keydown', keyHandler);
|
|
1137
1362
|
_this.view.canvas.removeEventListener('mousedown', mouseDown);
|
|
1138
1363
|
_this.view.canvas.removeEventListener('mousemove', mouseMove);
|
|
@@ -1142,6 +1367,20 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1142
1367
|
_this.view.events.viewResize.removeEventListener(onViewChanged);
|
|
1143
1368
|
};
|
|
1144
1369
|
_this._activeRejector = rejector;
|
|
1370
|
+
_this.beginMobilePrompt({
|
|
1371
|
+
prompt: options.getDisplayMessage(),
|
|
1372
|
+
keywords: _this.mobileKeywordChips(options),
|
|
1373
|
+
allowNone: true,
|
|
1374
|
+
showMetrics: false,
|
|
1375
|
+
onConfirm: function () {
|
|
1376
|
+
cleanup();
|
|
1377
|
+
resolve(__spreadArray([], __read(selected), false));
|
|
1378
|
+
},
|
|
1379
|
+
onCancel: function () { return rejector(); },
|
|
1380
|
+
onKeyword: function (globalName) {
|
|
1381
|
+
rejector(new AcEdKeywordInputError(globalName));
|
|
1382
|
+
}
|
|
1383
|
+
});
|
|
1145
1384
|
keywordSession === null || keywordSession === void 0 ? void 0 : keywordSession.promise.then(function (keyword) {
|
|
1146
1385
|
if (settled)
|
|
1147
1386
|
return;
|
|
@@ -1168,51 +1407,12 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1168
1407
|
e.preventDefault();
|
|
1169
1408
|
}
|
|
1170
1409
|
};
|
|
1171
|
-
var
|
|
1172
|
-
|
|
1173
|
-
if (_this.shouldUseRightClickEnter()) {
|
|
1174
|
-
e.preventDefault();
|
|
1175
|
-
cleanup();
|
|
1176
|
-
resolve(__spreadArray([], __read(selected), false));
|
|
1177
|
-
}
|
|
1178
|
-
return;
|
|
1179
|
-
}
|
|
1180
|
-
if (e.button !== 0)
|
|
1181
|
-
return;
|
|
1182
|
-
startCanvas = _this.view.viewportToCanvas({
|
|
1183
|
-
x: e.clientX,
|
|
1184
|
-
y: e.clientY
|
|
1185
|
-
});
|
|
1186
|
-
startWcs = _this.view.screenToWorld(startCanvas);
|
|
1187
|
-
previewEl = document.createElement('div');
|
|
1188
|
-
previewEl.className = 'ml-jig-preview-rect';
|
|
1189
|
-
_this.view.container.appendChild(previewEl);
|
|
1190
|
-
};
|
|
1191
|
-
var mouseMove = function (e) {
|
|
1192
|
-
if (e.buttons !== 1)
|
|
1193
|
-
return;
|
|
1194
|
-
if (!startWcs || !previewEl || !startCanvas)
|
|
1195
|
-
return;
|
|
1196
|
-
lastDragEvent = e;
|
|
1197
|
-
updateSelectionPreview(e);
|
|
1410
|
+
var clientToCanvas = function (clientX, clientY) {
|
|
1411
|
+
return _this.view.viewportToCanvas({ x: clientX, y: clientY });
|
|
1198
1412
|
};
|
|
1199
|
-
var
|
|
1413
|
+
var applySelectionAt = function (endCanvas, endWcs, action, isClick) {
|
|
1200
1414
|
var e_2, _a;
|
|
1201
|
-
if (
|
|
1202
|
-
return;
|
|
1203
|
-
if (!startWcs || !startCanvas)
|
|
1204
|
-
return;
|
|
1205
|
-
var endWcs = _this.view.screenToWorld(_this.view.viewportToCanvas({ x: e.clientX, y: e.clientY }));
|
|
1206
|
-
var endCanvas = _this.view.viewportToCanvas({
|
|
1207
|
-
x: e.clientX,
|
|
1208
|
-
y: e.clientY
|
|
1209
|
-
});
|
|
1210
|
-
previewEl === null || previewEl === void 0 ? void 0 : previewEl.remove();
|
|
1211
|
-
previewEl = null;
|
|
1212
|
-
lastDragEvent = null;
|
|
1213
|
-
// Click selection
|
|
1214
|
-
var action = _this.view.getSelectionActionFromEvent(e, 'add');
|
|
1215
|
-
if (_this.view.isSelectionClick(startCanvas, endCanvas)) {
|
|
1415
|
+
if (isClick) {
|
|
1216
1416
|
var picked = _this.view.pick(endWcs);
|
|
1217
1417
|
if (picked.length > 0) {
|
|
1218
1418
|
_this.view.applySelection([picked[0].id], action);
|
|
@@ -1221,8 +1421,7 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1221
1421
|
_this.view.selectionSet.clear();
|
|
1222
1422
|
}
|
|
1223
1423
|
}
|
|
1224
|
-
else {
|
|
1225
|
-
// Box selection
|
|
1424
|
+
else if (startWcs && startCanvas) {
|
|
1226
1425
|
var box = new AcGeBox2d()
|
|
1227
1426
|
.expandByPoint(startWcs)
|
|
1228
1427
|
.expandByPoint(endWcs);
|
|
@@ -1243,15 +1442,113 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1243
1442
|
}
|
|
1244
1443
|
finally { if (e_2) throw e_2.error; }
|
|
1245
1444
|
}
|
|
1246
|
-
if (options.singleOnly &&
|
|
1247
|
-
|
|
1445
|
+
if (options.singleOnly &&
|
|
1446
|
+
action !== 'remove' &&
|
|
1447
|
+
selected.size > 0) {
|
|
1448
|
+
cleanup();
|
|
1449
|
+
resolve(__spreadArray([], __read(selected), false));
|
|
1450
|
+
}
|
|
1451
|
+
};
|
|
1452
|
+
var beginPreview = function (clientX, clientY) {
|
|
1453
|
+
startCanvas = clientToCanvas(clientX, clientY);
|
|
1454
|
+
startWcs = _this.view.screenToWorld(startCanvas);
|
|
1455
|
+
previewEl === null || previewEl === void 0 ? void 0 : previewEl.remove();
|
|
1456
|
+
previewEl = document.createElement('div');
|
|
1457
|
+
previewEl.className = 'ml-jig-preview-rect';
|
|
1458
|
+
_this.view.container.appendChild(previewEl);
|
|
1459
|
+
};
|
|
1460
|
+
var clearBoxPreview = function () {
|
|
1461
|
+
previewEl === null || previewEl === void 0 ? void 0 : previewEl.remove();
|
|
1462
|
+
previewEl = null;
|
|
1463
|
+
lastDragEvent = null;
|
|
1464
|
+
startWcs = null;
|
|
1465
|
+
startCanvas = null;
|
|
1466
|
+
};
|
|
1467
|
+
var mouseDown = function (e) {
|
|
1468
|
+
if (e.button === 2) {
|
|
1469
|
+
if (_this.shouldUseRightClickEnter()) {
|
|
1470
|
+
e.preventDefault();
|
|
1248
1471
|
cleanup();
|
|
1249
1472
|
resolve(__spreadArray([], __read(selected), false));
|
|
1250
1473
|
}
|
|
1474
|
+
return;
|
|
1251
1475
|
}
|
|
1476
|
+
if (e.button !== 0)
|
|
1477
|
+
return;
|
|
1478
|
+
if (acedIsTouchDerivedMouseEvent(e) ||
|
|
1479
|
+
acedShouldIgnoreCompatMouse()) {
|
|
1480
|
+
return;
|
|
1481
|
+
}
|
|
1482
|
+
beginPreview(e.clientX, e.clientY);
|
|
1483
|
+
};
|
|
1484
|
+
var mouseMove = function (e) {
|
|
1485
|
+
if (e.buttons !== 1)
|
|
1486
|
+
return;
|
|
1487
|
+
if (!startWcs || !previewEl || !startCanvas)
|
|
1488
|
+
return;
|
|
1489
|
+
if (acedIsTouchDerivedMouseEvent(e) ||
|
|
1490
|
+
acedShouldIgnoreCompatMouse()) {
|
|
1491
|
+
return;
|
|
1492
|
+
}
|
|
1493
|
+
lastDragEvent = e;
|
|
1494
|
+
updateSelectionPreview(e.clientX, e.clientY, _this.view.getSelectionActionFromEvent(e, 'add'));
|
|
1495
|
+
};
|
|
1496
|
+
var mouseUp = function (e) {
|
|
1497
|
+
if (e.button !== 0)
|
|
1498
|
+
return;
|
|
1499
|
+
if (!startWcs || !startCanvas)
|
|
1500
|
+
return;
|
|
1501
|
+
if (acedIsTouchDerivedMouseEvent(e) ||
|
|
1502
|
+
acedShouldIgnoreCompatMouse()) {
|
|
1503
|
+
return;
|
|
1504
|
+
}
|
|
1505
|
+
var endCanvas = clientToCanvas(e.clientX, e.clientY);
|
|
1506
|
+
var endWcs = _this.view.screenToWorld(endCanvas);
|
|
1507
|
+
var isClick = _this.view.isSelectionClick(startCanvas, endCanvas);
|
|
1508
|
+
var action = _this.view.getSelectionActionFromEvent(e, 'add');
|
|
1509
|
+
previewEl === null || previewEl === void 0 ? void 0 : previewEl.remove();
|
|
1510
|
+
previewEl = null;
|
|
1511
|
+
lastDragEvent = null;
|
|
1512
|
+
applySelectionAt(endCanvas, endWcs, action, isClick);
|
|
1252
1513
|
startWcs = null;
|
|
1253
1514
|
startCanvas = null;
|
|
1254
1515
|
};
|
|
1516
|
+
disposeGesture = acedAttachMobileBoxGesture({
|
|
1517
|
+
element: _this.view.canvas,
|
|
1518
|
+
setNavigationEnabled: function (enabled) {
|
|
1519
|
+
_this.view.setNavigationEnabled(enabled);
|
|
1520
|
+
},
|
|
1521
|
+
onActivate: function (clientX, clientY) {
|
|
1522
|
+
beginPreview(clientX, clientY);
|
|
1523
|
+
lastDragEvent = null;
|
|
1524
|
+
updateSelectionPreview(clientX, clientY, 'add');
|
|
1525
|
+
},
|
|
1526
|
+
onMove: function (clientX, clientY) {
|
|
1527
|
+
updateSelectionPreview(clientX, clientY, 'add');
|
|
1528
|
+
},
|
|
1529
|
+
onBoxEnd: function (clientX, clientY, moved) {
|
|
1530
|
+
if (!startWcs || !startCanvas) {
|
|
1531
|
+
clearBoxPreview();
|
|
1532
|
+
return;
|
|
1533
|
+
}
|
|
1534
|
+
var endCanvas = clientToCanvas(clientX, clientY);
|
|
1535
|
+
var endWcs = _this.view.screenToWorld(endCanvas);
|
|
1536
|
+
previewEl === null || previewEl === void 0 ? void 0 : previewEl.remove();
|
|
1537
|
+
previewEl = null;
|
|
1538
|
+
lastDragEvent = null;
|
|
1539
|
+
applySelectionAt(endCanvas, endWcs, 'add', !moved);
|
|
1540
|
+
startWcs = null;
|
|
1541
|
+
startCanvas = null;
|
|
1542
|
+
},
|
|
1543
|
+
onTap: function (clientX, clientY) {
|
|
1544
|
+
var endCanvas = clientToCanvas(clientX, clientY);
|
|
1545
|
+
var endWcs = _this.view.screenToWorld(endCanvas);
|
|
1546
|
+
applySelectionAt(endCanvas, endWcs, 'add', true);
|
|
1547
|
+
},
|
|
1548
|
+
onAbort: function () {
|
|
1549
|
+
clearBoxPreview();
|
|
1550
|
+
}
|
|
1551
|
+
});
|
|
1255
1552
|
document.addEventListener('keydown', keyHandler);
|
|
1256
1553
|
_this.view.canvas.addEventListener('mousedown', mouseDown);
|
|
1257
1554
|
_this.view.canvas.addEventListener('mousemove', mouseMove);
|
|
@@ -1319,8 +1616,27 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1319
1616
|
floatingMessage === null || floatingMessage === void 0 ? void 0 : floatingMessage.dispose();
|
|
1320
1617
|
keywordSession === null || keywordSession === void 0 ? void 0 : keywordSession.cancel();
|
|
1321
1618
|
_this._commandLine.clear();
|
|
1619
|
+
_this.hideEntityPickCancel();
|
|
1620
|
+
_this.endMobilePrompt();
|
|
1322
1621
|
};
|
|
1323
1622
|
_this._activeRejector = rejector;
|
|
1623
|
+
_this.beginMobilePrompt({
|
|
1624
|
+
prompt: options.getDisplayMessage(),
|
|
1625
|
+
keywords: _this.mobileKeywordChips(options),
|
|
1626
|
+
allowNone: options.allowNone,
|
|
1627
|
+
showMetrics: false,
|
|
1628
|
+
onConfirm: function () {
|
|
1629
|
+
if (!options.allowNone)
|
|
1630
|
+
return;
|
|
1631
|
+
cleanup();
|
|
1632
|
+
resolve(null);
|
|
1633
|
+
},
|
|
1634
|
+
onCancel: function () { return rejector(); },
|
|
1635
|
+
onKeyword: function (globalName) {
|
|
1636
|
+
rejector(new AcEdKeywordInputError(globalName));
|
|
1637
|
+
}
|
|
1638
|
+
});
|
|
1639
|
+
_this.showEntityPickCancel(function () { return rejector(); });
|
|
1324
1640
|
keywordSession === null || keywordSession === void 0 ? void 0 : keywordSession.promise.then(function (keyword) {
|
|
1325
1641
|
if (settled)
|
|
1326
1642
|
return;
|
|
@@ -1398,12 +1714,10 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1398
1714
|
};
|
|
1399
1715
|
/**
|
|
1400
1716
|
* Prompt the user to specify a rectangular box by selecting two corners.
|
|
1401
|
-
* Each corner may be specified by clicking on the canvas or typing "x,y".
|
|
1402
|
-
* A live HTML overlay rectangle previews the box as the user moves the mouse.
|
|
1403
1717
|
*
|
|
1404
|
-
*
|
|
1405
|
-
* the
|
|
1406
|
-
*
|
|
1718
|
+
* Desktop: two chained point prompts with a live HTML overlay preview.
|
|
1719
|
+
* Phone/pad: the mobile {@link acedInteractionStrategy} uses long-press
|
|
1720
|
+
* (~1s) + drag on touch, and click-drag or two clicks on mouse.
|
|
1407
1721
|
*
|
|
1408
1722
|
* @param options - Box prompt options controlling corner messages, preview behavior, and keywords
|
|
1409
1723
|
* @returns A prompt result containing the final 2D box, cancel status, or keyword
|
|
@@ -1412,63 +1726,309 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1412
1726
|
return __awaiter(this, void 0, void 0, function () {
|
|
1413
1727
|
var _this = this;
|
|
1414
1728
|
return __generator(this, function (_a) {
|
|
1415
|
-
return [2 /*return*/, this.executePrompt(function () {
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1729
|
+
return [2 /*return*/, this.executePrompt(function () {
|
|
1730
|
+
return acedInteractionStrategy().acquireBox({
|
|
1731
|
+
acquireTwoPointBox: function (opts) { return _this.getBoxViaTwoPoints(opts); },
|
|
1732
|
+
acquireHoldDragBox: function (opts) { return _this.getBoxViaHoldDrag(opts); }
|
|
1733
|
+
}, options);
|
|
1734
|
+
}, function (value) { return value; }, function (status) { return new AcEdPromptBoxResult(status); })];
|
|
1735
|
+
});
|
|
1736
|
+
});
|
|
1737
|
+
};
|
|
1738
|
+
/**
|
|
1739
|
+
* Desktop / two-click box acquisition used by {@link getBox}.
|
|
1740
|
+
*/
|
|
1741
|
+
AcEdInputManager.prototype.getBoxViaTwoPoints = function (options) {
|
|
1742
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1743
|
+
var message1, options1, p1Result, p1, cwcsP1, previewEl, cleanup, drawPreview, message2, options2, p2, box;
|
|
1744
|
+
var _this = this;
|
|
1745
|
+
return __generator(this, function (_a) {
|
|
1746
|
+
switch (_a.label) {
|
|
1747
|
+
case 0:
|
|
1748
|
+
message1 = options.firstCornerMessage || AcApI18n.t('main.inputManager.firstCorner');
|
|
1749
|
+
options1 = new AcEdPromptPointOptions(message1);
|
|
1750
|
+
this.copyKeywords(options, options1);
|
|
1751
|
+
options1.useDashedLine = options.useDashedLine;
|
|
1752
|
+
options1.useBasePoint = options.useBasePoint;
|
|
1753
|
+
options1.disableOSnap = options.disableOSnap;
|
|
1754
|
+
options1.allowNone = options.allowNone;
|
|
1755
|
+
return [4 /*yield*/, this.getPoint(options1)];
|
|
1756
|
+
case 1:
|
|
1757
|
+
p1Result = _a.sent();
|
|
1758
|
+
if (p1Result.status !== AcEdPromptStatus.OK) {
|
|
1759
|
+
return [2 /*return*/, new AcEdPromptBoxResult(p1Result.status, undefined, p1Result.stringResult)];
|
|
1760
|
+
}
|
|
1761
|
+
p1 = p1Result.value;
|
|
1762
|
+
cwcsP1 = this.view.worldToScreen(p1);
|
|
1763
|
+
previewEl = document.createElement('div');
|
|
1764
|
+
previewEl.className = 'ml-jig-preview-rect';
|
|
1765
|
+
this.view.container.appendChild(previewEl);
|
|
1766
|
+
cleanup = function () {
|
|
1767
|
+
previewEl.remove();
|
|
1768
|
+
};
|
|
1769
|
+
drawPreview = function (pos) {
|
|
1770
|
+
var cwcsP2 = _this.view.worldToScreen(pos);
|
|
1771
|
+
var left = Math.min(cwcsP2.x, cwcsP1.x);
|
|
1772
|
+
var top = Math.min(cwcsP2.y, cwcsP1.y);
|
|
1773
|
+
var width = Math.abs(cwcsP2.x - cwcsP1.x);
|
|
1774
|
+
var height = Math.abs(cwcsP2.y - cwcsP1.y);
|
|
1775
|
+
Object.assign(previewEl.style, {
|
|
1776
|
+
left: "".concat(left, "px"),
|
|
1777
|
+
top: "".concat(top, "px"),
|
|
1778
|
+
width: "".concat(width, "px"),
|
|
1779
|
+
height: "".concat(height, "px")
|
|
1780
|
+
});
|
|
1781
|
+
};
|
|
1782
|
+
message2 = options.secondCornerMessage ||
|
|
1783
|
+
AcApI18n.t('main.inputManager.secondCorner');
|
|
1784
|
+
options2 = new AcEdPromptPointOptions(message2);
|
|
1785
|
+
this.copyKeywords(options, options2);
|
|
1786
|
+
options2.useDashedLine = options.useDashedLine;
|
|
1787
|
+
options2.useBasePoint = options.useBasePoint;
|
|
1788
|
+
options2.disableOSnap = options.disableOSnap;
|
|
1789
|
+
return [4 /*yield*/, this.getPointInternal(options2, cleanup, drawPreview)];
|
|
1790
|
+
case 2:
|
|
1791
|
+
p2 = _a.sent();
|
|
1792
|
+
box = new AcGeBox2d().expandByPoint(p1).expandByPoint(p2);
|
|
1793
|
+
return [2 /*return*/, new AcEdPromptBoxResult(AcEdPromptStatus.OK, box)];
|
|
1794
|
+
}
|
|
1795
|
+
});
|
|
1796
|
+
});
|
|
1797
|
+
};
|
|
1798
|
+
/**
|
|
1799
|
+
* Phone/pad box acquisition: long-press locks corner 1, drag, release for
|
|
1800
|
+
* corner 2. Mouse still works via click-drag or two clicks.
|
|
1801
|
+
* Preview uses window/crossing styles by drag direction.
|
|
1802
|
+
*/
|
|
1803
|
+
AcEdInputManager.prototype.getBoxViaHoldDrag = function (options) {
|
|
1804
|
+
var _this = this;
|
|
1805
|
+
return new Promise(function (resolve, reject) {
|
|
1806
|
+
_this.active = true;
|
|
1807
|
+
var message = options.firstCornerMessage ||
|
|
1808
|
+
AcApI18n.t('main.inputManager.firstCorner');
|
|
1809
|
+
var keywordSession = _this.startKeywordSession(options, true);
|
|
1810
|
+
if (!keywordSession) {
|
|
1811
|
+
_this._commandLine.setPrompt(message);
|
|
1812
|
+
}
|
|
1813
|
+
var floatingMessage = new AcEdFloatingMessage(_this.view, {
|
|
1814
|
+
parent: _this.view.canvas,
|
|
1815
|
+
message: message
|
|
1816
|
+
});
|
|
1817
|
+
var startWcs = null;
|
|
1818
|
+
var startCanvas = null;
|
|
1819
|
+
var previewEl = null;
|
|
1820
|
+
var settled = false;
|
|
1821
|
+
var disposeGesture = null;
|
|
1822
|
+
var firstCornerLocked = false;
|
|
1823
|
+
var lastMouse = null;
|
|
1824
|
+
var clearPreview = function () {
|
|
1825
|
+
previewEl === null || previewEl === void 0 ? void 0 : previewEl.remove();
|
|
1826
|
+
previewEl = null;
|
|
1827
|
+
};
|
|
1828
|
+
var resetBox = function () {
|
|
1829
|
+
clearPreview();
|
|
1830
|
+
startWcs = null;
|
|
1831
|
+
startCanvas = null;
|
|
1832
|
+
firstCornerLocked = false;
|
|
1833
|
+
lastMouse = null;
|
|
1834
|
+
};
|
|
1835
|
+
var clientToCanvas = function (clientX, clientY) {
|
|
1836
|
+
return _this.view.viewportToCanvas({ x: clientX, y: clientY });
|
|
1837
|
+
};
|
|
1838
|
+
var updatePreview = function (clientX, clientY) {
|
|
1839
|
+
if (!startWcs || !previewEl || !startCanvas)
|
|
1840
|
+
return;
|
|
1841
|
+
var curCanvas = clientToCanvas(clientX, clientY);
|
|
1842
|
+
var curWcs = _this.view.screenToWorld(curCanvas);
|
|
1843
|
+
var p1 = _this.view.worldToScreen(startWcs);
|
|
1844
|
+
var p2 = _this.view.worldToScreen(curWcs);
|
|
1845
|
+
var mode = _this.view.getSelectionMode(startCanvas, curCanvas);
|
|
1846
|
+
var style = _this.view.getSelectionPreviewStyle(mode, 'add');
|
|
1847
|
+
Object.assign(previewEl.style, {
|
|
1848
|
+
left: "".concat(Math.min(p1.x, p2.x), "px"),
|
|
1849
|
+
top: "".concat(Math.min(p1.y, p2.y), "px"),
|
|
1850
|
+
width: "".concat(Math.abs(p1.x - p2.x), "px"),
|
|
1851
|
+
height: "".concat(Math.abs(p1.y - p2.y), "px"),
|
|
1852
|
+
borderStyle: style.borderStyle,
|
|
1853
|
+
background: style.background
|
|
1854
|
+
});
|
|
1855
|
+
previewEl.style.setProperty('--line-color', style.lineColor);
|
|
1856
|
+
};
|
|
1857
|
+
var beginPreview = function (clientX, clientY) {
|
|
1858
|
+
var canvas = clientToCanvas(clientX, clientY);
|
|
1859
|
+
startCanvas = canvas;
|
|
1860
|
+
startWcs = _this.view.screenToWorld(canvas);
|
|
1861
|
+
firstCornerLocked = false;
|
|
1862
|
+
lastMouse = { clientX: clientX, clientY: clientY };
|
|
1863
|
+
clearPreview();
|
|
1864
|
+
previewEl = document.createElement('div');
|
|
1865
|
+
previewEl.className = 'ml-jig-preview-rect';
|
|
1866
|
+
_this.view.container.appendChild(previewEl);
|
|
1867
|
+
updatePreview(clientX, clientY);
|
|
1868
|
+
};
|
|
1869
|
+
var commitBoxIfMoved = function (clientX, clientY) {
|
|
1870
|
+
if (!startWcs || !startCanvas)
|
|
1871
|
+
return false;
|
|
1872
|
+
var endCanvas = clientToCanvas(clientX, clientY);
|
|
1873
|
+
if (_this.view.isSelectionClick(startCanvas, endCanvas))
|
|
1874
|
+
return false;
|
|
1875
|
+
var endWcs = _this.view.screenToWorld(endCanvas);
|
|
1876
|
+
var box = new AcGeBox2d()
|
|
1877
|
+
.expandByPoint(startWcs)
|
|
1878
|
+
.expandByPoint(endWcs);
|
|
1879
|
+
cleanup();
|
|
1880
|
+
resolve(new AcEdPromptBoxResult(AcEdPromptStatus.OK, box));
|
|
1881
|
+
return true;
|
|
1882
|
+
};
|
|
1883
|
+
var rejector = function (err) {
|
|
1884
|
+
cleanup();
|
|
1885
|
+
reject(err !== null && err !== void 0 ? err : new Error('cancelled'));
|
|
1886
|
+
};
|
|
1887
|
+
var cleanup = function () {
|
|
1888
|
+
if (settled)
|
|
1889
|
+
return;
|
|
1890
|
+
settled = true;
|
|
1891
|
+
_this.active = false;
|
|
1892
|
+
if (_this._activeRejector === rejector) {
|
|
1893
|
+
_this._activeRejector = null;
|
|
1894
|
+
}
|
|
1895
|
+
disposeGesture === null || disposeGesture === void 0 ? void 0 : disposeGesture();
|
|
1896
|
+
disposeGesture = null;
|
|
1897
|
+
resetBox();
|
|
1898
|
+
floatingMessage.dispose();
|
|
1899
|
+
keywordSession === null || keywordSession === void 0 ? void 0 : keywordSession.cancel();
|
|
1900
|
+
_this._commandLine.clear();
|
|
1901
|
+
_this.endMobilePrompt();
|
|
1902
|
+
_this.view.setNavigationEnabled(true);
|
|
1903
|
+
document.removeEventListener('keydown', keyHandler);
|
|
1904
|
+
_this.view.canvas.removeEventListener('mousedown', mouseDown);
|
|
1905
|
+
_this.view.canvas.removeEventListener('mousemove', mouseMove);
|
|
1906
|
+
_this.view.canvas.removeEventListener('mouseup', mouseUp);
|
|
1907
|
+
_this.view.canvas.removeEventListener('contextmenu', contextMenuHandler);
|
|
1908
|
+
_this.view.events.viewChanged.removeEventListener(onViewChanged);
|
|
1909
|
+
_this.view.events.viewResize.removeEventListener(onViewChanged);
|
|
1910
|
+
};
|
|
1911
|
+
_this._activeRejector = rejector;
|
|
1912
|
+
_this.beginMobilePrompt({
|
|
1913
|
+
prompt: options.getDisplayMessage(),
|
|
1914
|
+
keywords: _this.mobileKeywordChips(options),
|
|
1915
|
+
allowNone: options.allowNone,
|
|
1916
|
+
showMetrics: false,
|
|
1917
|
+
onConfirm: function () {
|
|
1918
|
+
if (options.allowNone) {
|
|
1919
|
+
cleanup();
|
|
1920
|
+
resolve(new AcEdPromptBoxResult(AcEdPromptStatus.None));
|
|
1921
|
+
}
|
|
1922
|
+
},
|
|
1923
|
+
onCancel: function () { return rejector(); },
|
|
1924
|
+
onKeyword: function (globalName) {
|
|
1925
|
+
rejector(new AcEdKeywordInputError(globalName));
|
|
1926
|
+
}
|
|
1471
1927
|
});
|
|
1928
|
+
keywordSession === null || keywordSession === void 0 ? void 0 : keywordSession.promise.then(function (keyword) {
|
|
1929
|
+
if (settled)
|
|
1930
|
+
return;
|
|
1931
|
+
if (!keyword) {
|
|
1932
|
+
rejector();
|
|
1933
|
+
return;
|
|
1934
|
+
}
|
|
1935
|
+
rejector(new AcEdKeywordInputError(keyword));
|
|
1936
|
+
});
|
|
1937
|
+
var keyHandler = function (e) {
|
|
1938
|
+
if (e.key === 'Escape') {
|
|
1939
|
+
rejector();
|
|
1940
|
+
return;
|
|
1941
|
+
}
|
|
1942
|
+
if (e.key === 'Enter' && options.allowNone) {
|
|
1943
|
+
cleanup();
|
|
1944
|
+
resolve(new AcEdPromptBoxResult(AcEdPromptStatus.None));
|
|
1945
|
+
}
|
|
1946
|
+
};
|
|
1947
|
+
document.addEventListener('keydown', keyHandler);
|
|
1948
|
+
var contextMenuHandler = function (e) {
|
|
1949
|
+
if (_this.shouldUseRightClickEnter()) {
|
|
1950
|
+
e.preventDefault();
|
|
1951
|
+
}
|
|
1952
|
+
};
|
|
1953
|
+
var isCompatMouse = function (e) {
|
|
1954
|
+
return acedIsTouchDerivedMouseEvent(e) || acedShouldIgnoreCompatMouse();
|
|
1955
|
+
};
|
|
1956
|
+
var mouseDown = function (e) {
|
|
1957
|
+
if (e.button === 2) {
|
|
1958
|
+
if (_this.shouldUseRightClickEnter() && options.allowNone) {
|
|
1959
|
+
e.preventDefault();
|
|
1960
|
+
cleanup();
|
|
1961
|
+
resolve(new AcEdPromptBoxResult(AcEdPromptStatus.None));
|
|
1962
|
+
}
|
|
1963
|
+
return;
|
|
1964
|
+
}
|
|
1965
|
+
if (e.button !== 0)
|
|
1966
|
+
return;
|
|
1967
|
+
if (isCompatMouse(e))
|
|
1968
|
+
return;
|
|
1969
|
+
if (firstCornerLocked)
|
|
1970
|
+
return;
|
|
1971
|
+
_this.view.setNavigationEnabled(false);
|
|
1972
|
+
beginPreview(e.clientX, e.clientY);
|
|
1973
|
+
};
|
|
1974
|
+
var mouseMove = function (e) {
|
|
1975
|
+
if (!startWcs || !previewEl || !startCanvas)
|
|
1976
|
+
return;
|
|
1977
|
+
if (isCompatMouse(e))
|
|
1978
|
+
return;
|
|
1979
|
+
if (e.buttons !== 1 && !firstCornerLocked)
|
|
1980
|
+
return;
|
|
1981
|
+
lastMouse = { clientX: e.clientX, clientY: e.clientY };
|
|
1982
|
+
updatePreview(e.clientX, e.clientY);
|
|
1983
|
+
};
|
|
1984
|
+
var mouseUp = function (e) {
|
|
1985
|
+
if (e.button !== 0)
|
|
1986
|
+
return;
|
|
1987
|
+
if (!startWcs || !startCanvas)
|
|
1988
|
+
return;
|
|
1989
|
+
if (isCompatMouse(e))
|
|
1990
|
+
return;
|
|
1991
|
+
if (commitBoxIfMoved(e.clientX, e.clientY))
|
|
1992
|
+
return;
|
|
1993
|
+
firstCornerLocked = true;
|
|
1994
|
+
};
|
|
1995
|
+
var onViewChanged = function () {
|
|
1996
|
+
if (lastMouse && startWcs && previewEl) {
|
|
1997
|
+
updatePreview(lastMouse.clientX, lastMouse.clientY);
|
|
1998
|
+
}
|
|
1999
|
+
};
|
|
2000
|
+
disposeGesture = acedAttachMobileBoxGesture({
|
|
2001
|
+
element: _this.view.canvas,
|
|
2002
|
+
setNavigationEnabled: function (enabled) {
|
|
2003
|
+
_this.view.setNavigationEnabled(enabled);
|
|
2004
|
+
},
|
|
2005
|
+
onActivate: function (clientX, clientY) {
|
|
2006
|
+
beginPreview(clientX, clientY);
|
|
2007
|
+
lastMouse = null;
|
|
2008
|
+
updatePreview(clientX, clientY);
|
|
2009
|
+
},
|
|
2010
|
+
onMove: function (clientX, clientY) {
|
|
2011
|
+
updatePreview(clientX, clientY);
|
|
2012
|
+
},
|
|
2013
|
+
onBoxEnd: function (clientX, clientY, moved) {
|
|
2014
|
+
if (!startWcs || !startCanvas)
|
|
2015
|
+
return;
|
|
2016
|
+
if (!moved) {
|
|
2017
|
+
resetBox();
|
|
2018
|
+
return;
|
|
2019
|
+
}
|
|
2020
|
+
commitBoxIfMoved(clientX, clientY);
|
|
2021
|
+
},
|
|
2022
|
+
onAbort: function () {
|
|
2023
|
+
resetBox();
|
|
2024
|
+
}
|
|
2025
|
+
});
|
|
2026
|
+
_this.view.canvas.addEventListener('mousedown', mouseDown);
|
|
2027
|
+
_this.view.canvas.addEventListener('mousemove', mouseMove);
|
|
2028
|
+
_this.view.canvas.addEventListener('mouseup', mouseUp);
|
|
2029
|
+
_this.view.canvas.addEventListener('contextmenu', contextMenuHandler);
|
|
2030
|
+
_this.view.events.viewChanged.addEventListener(onViewChanged);
|
|
2031
|
+
_this.view.events.viewResize.addEventListener(onViewChanged);
|
|
1472
2032
|
});
|
|
1473
2033
|
};
|
|
1474
2034
|
/**
|
|
@@ -1486,36 +2046,92 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1486
2046
|
*/
|
|
1487
2047
|
AcEdInputManager.prototype.getPointInternal = function (options, cleanup, drawPreview) {
|
|
1488
2048
|
return __awaiter(this, void 0, void 0, function () {
|
|
1489
|
-
var scriptedValue, getDynamicValue, handler;
|
|
2049
|
+
var scriptedValue, getDynamicValue, handler, value;
|
|
1490
2050
|
var _this = this;
|
|
1491
2051
|
return __generator(this, function (_a) {
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
raw: {
|
|
1501
|
-
x: _this.formatNumber(pos.x, 'point'),
|
|
1502
|
-
y: _this.formatNumber(pos.y, 'point')
|
|
2052
|
+
switch (_a.label) {
|
|
2053
|
+
case 0:
|
|
2054
|
+
scriptedValue = this.tryGetScriptedPoint(options);
|
|
2055
|
+
if (scriptedValue != null) {
|
|
2056
|
+
cleanup === null || cleanup === void 0 ? void 0 : cleanup();
|
|
2057
|
+
// Record for later interactive prompts in the same command; no DOM yet.
|
|
2058
|
+
this.recordConfirmedPointMarkIfNeeded(options, scriptedValue);
|
|
2059
|
+
return [2 /*return*/, scriptedValue];
|
|
1503
2060
|
}
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
2061
|
+
// Show marks for points confirmed earlier in this command while picking
|
|
2062
|
+
// the next one (avoids a flash when the command ends after a single pick).
|
|
2063
|
+
this.showConfirmedPointMarksIfAny();
|
|
2064
|
+
getDynamicValue = function (pos) {
|
|
2065
|
+
return {
|
|
2066
|
+
value: { x: pos.x, y: pos.y, z: 0 },
|
|
2067
|
+
raw: {
|
|
2068
|
+
x: _this.formatNumber(pos.x, 'point'),
|
|
2069
|
+
y: _this.formatNumber(pos.y, 'point')
|
|
2070
|
+
}
|
|
2071
|
+
};
|
|
2072
|
+
};
|
|
2073
|
+
handler = new AcEdPointHandler(options);
|
|
2074
|
+
return [4 /*yield*/, this.makeFloatingInputPromise({
|
|
2075
|
+
inputCount: 2,
|
|
2076
|
+
promptOptions: options,
|
|
2077
|
+
disableOSnap: options.disableOSnap,
|
|
2078
|
+
cleanup: cleanup,
|
|
2079
|
+
handler: handler,
|
|
2080
|
+
getDynamicValue: getDynamicValue,
|
|
2081
|
+
drawPreview: drawPreview
|
|
2082
|
+
})];
|
|
2083
|
+
case 1:
|
|
2084
|
+
value = _a.sent();
|
|
2085
|
+
this.recordConfirmedPointMarkIfNeeded(options, value);
|
|
2086
|
+
return [2 /*return*/, value];
|
|
2087
|
+
}
|
|
1516
2088
|
});
|
|
1517
2089
|
});
|
|
1518
2090
|
};
|
|
2091
|
+
/**
|
|
2092
|
+
* Whether a confirmed-point plus mark should be tracked for this prompt.
|
|
2093
|
+
*
|
|
2094
|
+
* Explicit {@link AcEdPromptPointOptions.showConfirmedPointMark} overrides
|
|
2095
|
+
* the phone/pad default.
|
|
2096
|
+
*/
|
|
2097
|
+
AcEdInputManager.prototype.shouldShowConfirmedPointMark = function (options) {
|
|
2098
|
+
var override = options.showConfirmedPointMark;
|
|
2099
|
+
if (override !== undefined)
|
|
2100
|
+
return override;
|
|
2101
|
+
return acedInteractionStrategy().point.showsConfirmedPointMarks;
|
|
2102
|
+
};
|
|
2103
|
+
/**
|
|
2104
|
+
* Records a confirmed pick for later display when enabled for the prompt.
|
|
2105
|
+
* DOM marks are deferred until {@link showConfirmedPointMarksIfAny}.
|
|
2106
|
+
*/
|
|
2107
|
+
AcEdInputManager.prototype.recordConfirmedPointMarkIfNeeded = function (options, point) {
|
|
2108
|
+
if (!this.shouldShowConfirmedPointMark(options))
|
|
2109
|
+
return;
|
|
2110
|
+
this._confirmedPointPositions.push({ x: point.x, y: point.y });
|
|
2111
|
+
};
|
|
2112
|
+
/**
|
|
2113
|
+
* Renders plus marks for points already confirmed in this command.
|
|
2114
|
+
* Called at the start of an interactive {@link getPointInternal}.
|
|
2115
|
+
*/
|
|
2116
|
+
AcEdInputManager.prototype.showConfirmedPointMarksIfAny = function () {
|
|
2117
|
+
var _a;
|
|
2118
|
+
if (this._confirmedPointPositions.length === 0)
|
|
2119
|
+
return;
|
|
2120
|
+
(_a = this._confirmedPointMarks) !== null && _a !== void 0 ? _a : (this._confirmedPointMarks = new AcEdMarkerManager(this.view));
|
|
2121
|
+
this._confirmedPointMarks.setHintMarkers(this._confirmedPointPositions, 'plus');
|
|
2122
|
+
};
|
|
2123
|
+
/** Repositions confirmed-point marks after pan/zoom. */
|
|
2124
|
+
AcEdInputManager.prototype.repositionConfirmedPointMarks = function () {
|
|
2125
|
+
var _a;
|
|
2126
|
+
(_a = this._confirmedPointMarks) === null || _a === void 0 ? void 0 : _a.repositionHints();
|
|
2127
|
+
};
|
|
2128
|
+
/** Clears all confirmed-point plus marks for the finished command. */
|
|
2129
|
+
AcEdInputManager.prototype.clearConfirmedPointMarks = function () {
|
|
2130
|
+
var _a;
|
|
2131
|
+
(_a = this._confirmedPointMarks) === null || _a === void 0 ? void 0 : _a.clear();
|
|
2132
|
+
this._confirmedPointMarks = null;
|
|
2133
|
+
this._confirmedPointPositions = [];
|
|
2134
|
+
};
|
|
1519
2135
|
/**
|
|
1520
2136
|
* Attempts to consume one scripted input and parse it as a point.
|
|
1521
2137
|
* Supported forms: "x,y", "x,y,z", or "x y".
|
|
@@ -1766,7 +2382,7 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1766
2382
|
var _this = this;
|
|
1767
2383
|
return __generator(this, function (_a) {
|
|
1768
2384
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1769
|
-
var _a, _b, _c;
|
|
2385
|
+
var _a, _b, _c, _d, _e;
|
|
1770
2386
|
_this.active = true;
|
|
1771
2387
|
_this.entitySelectionActive = false;
|
|
1772
2388
|
var settled = false;
|
|
@@ -1790,6 +2406,18 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1790
2406
|
? options.promptOptions.allowNone
|
|
1791
2407
|
: false;
|
|
1792
2408
|
var defaultBehavior = _this.resolvePromptDefaultValue(options.promptOptions);
|
|
2409
|
+
var showStringInput = options.showStringInput === true &&
|
|
2410
|
+
acedInteractionStrategy().point.usesSessionChrome;
|
|
2411
|
+
var showMetrics = showStringInput
|
|
2412
|
+
? false
|
|
2413
|
+
: ((_c = options.showMetrics) !== null && _c !== void 0 ? _c : (options.inputCount === 2 || basePoint != null));
|
|
2414
|
+
var allowPickCommit = options.allowPickCommit !== false;
|
|
2415
|
+
var getDynamicValue = function (pos) {
|
|
2416
|
+
if (!showStringInput) {
|
|
2417
|
+
_this.pushMobileMetrics(pos, basePoint !== null && basePoint !== void 0 ? basePoint : floatingInput.sessionBasePoint);
|
|
2418
|
+
}
|
|
2419
|
+
return options.getDynamicValue(pos);
|
|
2420
|
+
};
|
|
1793
2421
|
var floatingInput = new AcEdFloatingInput(_this.view, {
|
|
1794
2422
|
parent: _this.view.canvas,
|
|
1795
2423
|
inputCount: options.inputCount,
|
|
@@ -1803,8 +2431,9 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1803
2431
|
allowNone: allowNone,
|
|
1804
2432
|
useDefaultValue: defaultBehavior.useDefaultValue,
|
|
1805
2433
|
defaultValue: defaultBehavior.defaultValue,
|
|
2434
|
+
allowPickCommit: allowPickCommit,
|
|
1806
2435
|
validate: validate,
|
|
1807
|
-
getDynamicValue:
|
|
2436
|
+
getDynamicValue: getDynamicValue,
|
|
1808
2437
|
drawPreview: function (pos) {
|
|
1809
2438
|
var _a;
|
|
1810
2439
|
if (promptDefaults.jig) {
|
|
@@ -1831,7 +2460,7 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1831
2460
|
onCancel: function () { return rejector(); },
|
|
1832
2461
|
onNone: function () { return noneRejector(); }
|
|
1833
2462
|
});
|
|
1834
|
-
(
|
|
2463
|
+
(_d = options.onFloatingInputCreated) === null || _d === void 0 ? void 0 : _d.call(options, floatingInput);
|
|
1835
2464
|
var cleanup = function () {
|
|
1836
2465
|
var _a, _b;
|
|
1837
2466
|
if (settled)
|
|
@@ -1851,6 +2480,7 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1851
2480
|
floatingInput.dispose();
|
|
1852
2481
|
promptInputSession.cancel();
|
|
1853
2482
|
_this._commandLine.clear();
|
|
2483
|
+
_this.endMobilePrompt();
|
|
1854
2484
|
};
|
|
1855
2485
|
var resolver = function (value) {
|
|
1856
2486
|
cleanup();
|
|
@@ -1867,6 +2497,41 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1867
2497
|
var keywordRejector = function (keyword) {
|
|
1868
2498
|
rejector(new AcEdKeywordInputError(keyword));
|
|
1869
2499
|
};
|
|
2500
|
+
var commitMobileString = function () {
|
|
2501
|
+
var raw = _this._mobileChrome.getStringValue();
|
|
2502
|
+
if (!raw.trim() && defaultBehavior.useDefaultValue) {
|
|
2503
|
+
resolver(defaultBehavior.defaultValue);
|
|
2504
|
+
return;
|
|
2505
|
+
}
|
|
2506
|
+
var parsed = options.handler.parse(raw);
|
|
2507
|
+
if (parsed != null) {
|
|
2508
|
+
resolver(parsed);
|
|
2509
|
+
return;
|
|
2510
|
+
}
|
|
2511
|
+
// Invalid: keep the session open and refocus the field.
|
|
2512
|
+
_this._mobileChrome.focusStringInput();
|
|
2513
|
+
};
|
|
2514
|
+
_this.beginMobilePrompt({
|
|
2515
|
+
prompt: options.promptOptions.getDisplayMessage(),
|
|
2516
|
+
keywords: _this.mobileKeywordChips(options.promptOptions),
|
|
2517
|
+
allowNone: allowNone,
|
|
2518
|
+
showMetrics: showMetrics,
|
|
2519
|
+
showStringInput: showStringInput,
|
|
2520
|
+
stringValue: showStringInput && defaultBehavior.useDefaultValue
|
|
2521
|
+
? String((_e = defaultBehavior.defaultValue) !== null && _e !== void 0 ? _e : '')
|
|
2522
|
+
: undefined,
|
|
2523
|
+
touchPointTutorial: !showStringInput,
|
|
2524
|
+
onConfirm: function () {
|
|
2525
|
+
if (showStringInput) {
|
|
2526
|
+
commitMobileString();
|
|
2527
|
+
}
|
|
2528
|
+
else {
|
|
2529
|
+
noneRejector();
|
|
2530
|
+
}
|
|
2531
|
+
},
|
|
2532
|
+
onCancel: function () { return rejector(); },
|
|
2533
|
+
onKeyword: keywordRejector
|
|
2534
|
+
});
|
|
1870
2535
|
var escHandler = function (e) {
|
|
1871
2536
|
if (e.key === 'Escape') {
|
|
1872
2537
|
rejector();
|
|
@@ -1880,6 +2545,14 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1880
2545
|
}
|
|
1881
2546
|
};
|
|
1882
2547
|
var contextMenuHandler = function (e) {
|
|
2548
|
+
// Phone long-press synthesizes contextmenu while the snap loupe is
|
|
2549
|
+
// opening. That is not right-click Enter — swallowing it would
|
|
2550
|
+
// cancel the measure / point prompt as soon as the loupe appears.
|
|
2551
|
+
if (acedIsTouchLongPressContextMenu(e) ||
|
|
2552
|
+
acedInteractionStrategy().point.swallowsPromptContextMenu) {
|
|
2553
|
+
e.preventDefault();
|
|
2554
|
+
return;
|
|
2555
|
+
}
|
|
1883
2556
|
if (!_this.shouldUseRightClickEnter())
|
|
1884
2557
|
return;
|
|
1885
2558
|
e.preventDefault();
|
|
@@ -1890,7 +2563,15 @@ var AcEdInputManager = /** @class */ (function () {
|
|
|
1890
2563
|
document.addEventListener('keyup', modifierHandler);
|
|
1891
2564
|
_this.view.canvas.addEventListener('contextmenu', contextMenuHandler);
|
|
1892
2565
|
// showAt() expects viewport coordinates; curMousePos is canvas-local.
|
|
1893
|
-
|
|
2566
|
+
// On touch, skip the dummy canvas-(0,0) seed until a real pointer sample.
|
|
2567
|
+
// Also skip leftover finger coords after a touch pick — those seed a
|
|
2568
|
+
// short jig segment on the next measure-distance prompt.
|
|
2569
|
+
if (_this.view.hasCursorPos && !acedShouldIgnoreCompatMouse()) {
|
|
2570
|
+
floatingInput.showAt(_this.view.canvasToViewport(_this.view.curMousePos));
|
|
2571
|
+
}
|
|
2572
|
+
else {
|
|
2573
|
+
floatingInput.showAt({ x: 0, y: 0 });
|
|
2574
|
+
}
|
|
1894
2575
|
promptInputSession.promise.then(function (result) {
|
|
1895
2576
|
if (settled)
|
|
1896
2577
|
return;
|