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