@mlightcad/cad-simple-viewer 1.6.2 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cad-simple-viewer.js +28736 -18706
- package/dist/cad-simple-viewer.umd.cjs +1639 -308
- package/dist/mtext-renderer-worker.js +14590 -14441
- package/icons.ts +7 -0
- package/lib/app/AcApBrand.d.ts +2 -2
- package/lib/app/AcApBrand.d.ts.map +1 -1
- package/lib/app/AcApBrand.js +2 -2
- package/lib/app/AcApBrand.js.map +1 -1
- package/lib/app/AcApBusyIndicator.d.ts +6 -0
- package/lib/app/AcApBusyIndicator.d.ts.map +1 -1
- package/lib/app/AcApBusyIndicator.js +8 -0
- package/lib/app/AcApBusyIndicator.js.map +1 -1
- package/lib/app/AcApContext.d.ts +24 -0
- package/lib/app/AcApContext.d.ts.map +1 -1
- package/lib/app/AcApContext.js +103 -18
- package/lib/app/AcApContext.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts +293 -31
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +972 -184
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApDocSession.d.ts +41 -0
- package/lib/app/AcApDocSession.d.ts.map +1 -0
- package/lib/app/AcApDocSession.js +29 -0
- package/lib/app/AcApDocSession.js.map +1 -0
- package/lib/app/AcApDocsUrl.d.ts +57 -0
- package/lib/app/AcApDocsUrl.d.ts.map +1 -0
- package/lib/app/AcApDocsUrl.js +76 -0
- package/lib/app/AcApDocsUrl.js.map +1 -0
- package/lib/app/AcApDocument.d.ts +6 -1
- package/lib/app/AcApDocument.d.ts.map +1 -1
- package/lib/app/AcApDocument.js +21 -0
- package/lib/app/AcApDocument.js.map +1 -1
- package/lib/app/AcApFontLoader.d.ts +6 -0
- package/lib/app/AcApFontLoader.d.ts.map +1 -1
- package/lib/app/AcApFontLoader.js +11 -0
- package/lib/app/AcApFontLoader.js.map +1 -1
- package/lib/app/{AcDbOpenDatabaseOptions.d.ts → AcApOpenDatabaseOptions.d.ts} +35 -8
- package/lib/app/AcApOpenDatabaseOptions.d.ts.map +1 -0
- package/lib/app/{AcDbOpenDatabaseOptions.js → AcApOpenDatabaseOptions.js} +1 -1
- package/lib/app/AcApOpenDatabaseOptions.js.map +1 -0
- package/lib/app/AcApOpenFileDialog.d.ts +1 -1
- package/lib/app/AcApOpenFileProgressController.d.ts +14 -0
- package/lib/app/AcApOpenFileProgressController.d.ts.map +1 -1
- package/lib/app/AcApOpenFileProgressController.js +18 -0
- package/lib/app/AcApOpenFileProgressController.js.map +1 -1
- package/lib/app/AcApProgress.d.ts +6 -0
- package/lib/app/AcApProgress.d.ts.map +1 -1
- package/lib/app/AcApProgress.js +17 -0
- package/lib/app/AcApProgress.js.map +1 -1
- package/lib/app/AcApSettingManager.d.ts +156 -43
- package/lib/app/AcApSettingManager.d.ts.map +1 -1
- package/lib/app/AcApSettingManager.js +216 -66
- package/lib/app/AcApSettingManager.js.map +1 -1
- package/lib/app/index.d.ts +4 -2
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +3 -1
- package/lib/app/index.js.map +1 -1
- package/lib/command/AcApCloseCmd.d.ts +15 -0
- package/lib/command/AcApCloseCmd.d.ts.map +1 -0
- package/lib/command/AcApCloseCmd.js +83 -0
- package/lib/command/AcApCloseCmd.js.map +1 -0
- package/lib/command/AcApDrawOverlayInput.d.ts +6 -0
- package/lib/command/AcApDrawOverlayInput.d.ts.map +1 -0
- package/lib/command/AcApDrawOverlayInput.js +64 -0
- package/lib/command/AcApDrawOverlayInput.js.map +1 -0
- package/lib/command/AcApDrawStyleDrawCmd.d.ts +9 -0
- package/lib/command/AcApDrawStyleDrawCmd.d.ts.map +1 -0
- package/lib/command/AcApDrawStyleDrawCmd.js +32 -0
- package/lib/command/AcApDrawStyleDrawCmd.js.map +1 -0
- package/lib/command/AcApDrawStyleSession.d.ts +20 -0
- package/lib/command/AcApDrawStyleSession.d.ts.map +1 -0
- package/lib/command/AcApDrawStyleSession.js +2 -0
- package/lib/command/AcApDrawStyleSession.js.map +1 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts +28 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts.map +1 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js +174 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js.map +1 -0
- package/lib/command/AcApReadingModeCmd.d.ts +17 -0
- package/lib/command/AcApReadingModeCmd.d.ts.map +1 -0
- package/lib/command/AcApReadingModeCmd.js +82 -0
- package/lib/command/AcApReadingModeCmd.js.map +1 -0
- package/lib/command/AcApShortCutSelectionAccessory.d.ts +14 -0
- package/lib/command/AcApShortCutSelectionAccessory.d.ts.map +1 -0
- package/lib/command/AcApShortCutSelectionAccessory.js +266 -0
- package/lib/command/AcApShortCutSelectionAccessory.js.map +1 -0
- package/lib/command/AcApShortCutToolbarDocBind.d.ts +20 -0
- package/lib/command/AcApShortCutToolbarDocBind.d.ts.map +1 -0
- package/lib/command/AcApShortCutToolbarDocBind.js +155 -0
- package/lib/command/AcApShortCutToolbarDocBind.js.map +1 -0
- package/lib/command/AcApZoomCmd.d.ts +39 -1
- package/lib/command/AcApZoomCmd.d.ts.map +1 -1
- package/lib/command/AcApZoomCmd.js +70 -6
- package/lib/command/AcApZoomCmd.js.map +1 -1
- package/lib/command/draw/AcApHatchCmd.js +1 -1
- package/lib/command/draw/AcApHatchCmd.js.map +1 -1
- package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApMTextCmd.js +11 -7
- package/lib/command/draw/AcApMTextCmd.js.map +1 -1
- package/lib/command/index.d.ts +4 -0
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +4 -0
- package/lib/command/index.js.map +1 -1
- package/lib/command/markup/AcApMarkupArrowCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupArrowCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupArrowCmd.js +8 -9
- package/lib/command/markup/AcApMarkupArrowCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.js +47 -22
- package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCircleCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCircleCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCircleCmd.js +8 -9
- package/lib/command/markup/AcApMarkupCircleCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCloudCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCloudCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCloudCmd.js +8 -9
- package/lib/command/markup/AcApMarkupCloudCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts +7 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.js +10 -0
- package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -1
- package/lib/command/markup/AcApMarkupDrawCmd.d.ts +19 -0
- package/lib/command/markup/AcApMarkupDrawCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupDrawCmd.js +47 -0
- package/lib/command/markup/AcApMarkupDrawCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupGeometry.d.ts +39 -3
- package/lib/command/markup/AcApMarkupGeometry.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupGeometry.js +127 -26
- package/lib/command/markup/AcApMarkupGeometry.js.map +1 -1
- package/lib/command/markup/AcApMarkupHighlightCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupHighlightCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupHighlightCmd.js +9 -10
- package/lib/command/markup/AcApMarkupHighlightCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupHistory.d.ts +1 -1
- package/lib/command/markup/AcApMarkupHistory.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupHistory.js +4 -11
- package/lib/command/markup/AcApMarkupHistory.js.map +1 -1
- package/lib/command/markup/AcApMarkupLineCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupLineCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupLineCmd.js +18 -11
- package/lib/command/markup/AcApMarkupLineCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupPresenter.d.ts +24 -4
- package/lib/command/markup/AcApMarkupPresenter.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupPresenter.js +100 -18
- package/lib/command/markup/AcApMarkupPresenter.js.map +1 -1
- package/lib/command/markup/AcApMarkupRectCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupRectCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupRectCmd.js +8 -9
- package/lib/command/markup/AcApMarkupRectCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupSession.d.ts +54 -0
- package/lib/command/markup/AcApMarkupSession.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupSession.js +85 -0
- package/lib/command/markup/AcApMarkupSession.js.map +1 -0
- package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts +2 -0
- package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupSessionBootstrap.js +12 -0
- package/lib/command/markup/AcApMarkupSessionBootstrap.js.map +1 -0
- package/lib/command/markup/AcApMarkupShapeBuilder.d.ts +7 -4
- package/lib/command/markup/AcApMarkupShapeBuilder.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeBuilder.js +24 -11
- package/lib/command/markup/AcApMarkupShapeBuilder.js.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.d.ts +21 -1
- package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.js +41 -25
- package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -1
- package/lib/command/markup/AcApMarkupSidecar.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupSidecar.js +39 -5
- package/lib/command/markup/AcApMarkupSidecar.js.map +1 -1
- package/lib/command/markup/AcApMarkupStampCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupStampCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupStampCmd.js +6 -7
- package/lib/command/markup/AcApMarkupStampCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupStore.d.ts +1 -1
- package/lib/command/markup/AcApMarkupStore.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupStore.js +3 -6
- package/lib/command/markup/AcApMarkupStore.js.map +1 -1
- package/lib/command/markup/AcApMarkupTextCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupTextCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupTextCmd.js +13 -9
- package/lib/command/markup/AcApMarkupTextCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupTypes.d.ts +18 -2
- package/lib/command/markup/AcApMarkupTypes.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupUtil.d.ts +36 -7
- package/lib/command/markup/AcApMarkupUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupUtil.js +149 -34
- package/lib/command/markup/AcApMarkupUtil.js.map +1 -1
- package/lib/command/markup/AcApRegisterMarkupCommands.d.ts +8 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.d.ts.map +1 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.js +35 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.js +16 -15
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntity.d.ts +5 -1
- package/lib/command/markup/entity/AcApMarkupEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntity.js +19 -5
- package/lib/command/markup/entity/AcApMarkupEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts +8 -3
- package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntityGrips.js +15 -7
- package/lib/command/markup/entity/AcApMarkupEntityGrips.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.js +14 -12
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.js +8 -6
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupShapeEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupShapeEntity.js +23 -21
- package/lib/command/markup/entity/AcApMarkupShapeEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupStampEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupStampEntity.js +1 -0
- package/lib/command/markup/entity/AcApMarkupStampEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupTextEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupTextEntity.js +1 -0
- package/lib/command/markup/entity/AcApMarkupTextEntity.js.map +1 -1
- package/lib/command/markup/index.d.ts +4 -0
- package/lib/command/markup/index.d.ts.map +1 -1
- package/lib/command/markup/index.js +5 -0
- package/lib/command/markup/index.js.map +1 -1
- package/lib/command/measure/AcApMeasureAngleArc.d.ts +27 -0
- package/lib/command/measure/AcApMeasureAngleArc.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureAngleArc.js +22 -0
- package/lib/command/measure/AcApMeasureAngleArc.js.map +1 -0
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureAngleCmd.js +46 -45
- package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.js +71 -67
- package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureAreaCmd.js +102 -99
- package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureContinuousCmd.d.ts +44 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.js +317 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.js.map +1 -0
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts +3 -3
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureDistanceCmd.js +41 -37
- package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureDrawCmd.d.ts +32 -0
- package/lib/command/measure/AcApMeasureDrawCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureDrawCmd.js +56 -0
- package/lib/command/measure/AcApMeasureDrawCmd.js.map +1 -0
- package/lib/command/measure/AcApMeasurePointCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasurePointCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurePointCmd.js +20 -23
- package/lib/command/measure/AcApMeasurePointCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasurementGeometry.d.ts +19 -0
- package/lib/command/measure/AcApMeasurementGeometry.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementGeometry.js +53 -3
- package/lib/command/measure/AcApMeasurementGeometry.js.map +1 -1
- package/lib/command/measure/AcApMeasurementHistory.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementHistory.js +3 -1
- package/lib/command/measure/AcApMeasurementHistory.js.map +1 -1
- package/lib/command/measure/AcApMeasurementPlace.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementPlace.js +22 -5
- package/lib/command/measure/AcApMeasurementPlace.js.map +1 -1
- package/lib/command/measure/AcApMeasurementRepublish.d.ts +35 -0
- package/lib/command/measure/AcApMeasurementRepublish.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementRepublish.js +31 -0
- package/lib/command/measure/AcApMeasurementRepublish.js.map +1 -0
- package/lib/command/measure/AcApMeasurementSidecar.d.ts +2 -1
- package/lib/command/measure/AcApMeasurementSidecar.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementSidecar.js +55 -10
- package/lib/command/measure/AcApMeasurementSidecar.js.map +1 -1
- package/lib/command/measure/AcApMeasurementStore.d.ts +45 -2
- package/lib/command/measure/AcApMeasurementStore.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementStore.js +277 -33
- package/lib/command/measure/AcApMeasurementStore.js.map +1 -1
- package/lib/command/measure/AcApMeasurementTypes.d.ts +17 -1
- package/lib/command/measure/AcApMeasurementTypes.d.ts.map +1 -1
- package/lib/command/measure/AcApRegisterMeasureCommands.d.ts +8 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.d.ts.map +1 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.js +29 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts +3 -5
- package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAngleEntity.js +165 -56
- package/lib/command/measure/entity/AcApMeasureAngleEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts +5 -8
- package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureArcEntity.js +251 -53
- package/lib/command/measure/entity/AcApMeasureArcEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts +4 -3
- package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAreaEntity.js +154 -28
- package/lib/command/measure/entity/AcApMeasureAreaEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts +5 -3
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.js +180 -28
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +20 -8
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js +45 -19
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntity.d.ts +41 -6
- package/lib/command/measure/entity/AcApMeasureEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntity.js +48 -2
- package/lib/command/measure/entity/AcApMeasureEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts +2 -2
- package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityFactory.js +10 -3
- package/lib/command/measure/entity/AcApMeasureEntityFactory.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts +33 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.js +49 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts +3 -2
- package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasurePointEntity.js +130 -16
- package/lib/command/measure/entity/AcApMeasurePointEntity.js.map +1 -1
- package/lib/command/measure/entity/index.d.ts +1 -0
- package/lib/command/measure/entity/index.d.ts.map +1 -1
- package/lib/command/measure/entity/index.js +1 -0
- package/lib/command/measure/entity/index.js.map +1 -1
- package/lib/command/measure/index.d.ts +4 -0
- package/lib/command/measure/index.d.ts.map +1 -1
- package/lib/command/measure/index.js +4 -0
- package/lib/command/measure/index.js.map +1 -1
- package/lib/command/overlay/AcApHtmlLivePreview.d.ts +16 -4
- package/lib/command/overlay/AcApHtmlLivePreview.d.ts.map +1 -1
- package/lib/command/overlay/AcApHtmlLivePreview.js +42 -12
- package/lib/command/overlay/AcApHtmlLivePreview.js.map +1 -1
- package/lib/command/overlay/AcApOverlayDrawUtil.d.ts +113 -3
- package/lib/command/overlay/AcApOverlayDrawUtil.d.ts.map +1 -1
- package/lib/command/overlay/AcApOverlayDrawUtil.js +341 -7
- package/lib/command/overlay/AcApOverlayDrawUtil.js.map +1 -1
- package/lib/command/overlay/AcApOverlayGripHost.d.ts +19 -0
- package/lib/command/overlay/AcApOverlayGripHost.d.ts.map +1 -1
- package/lib/command/overlay/AcApOverlayGripHost.js +124 -6
- package/lib/command/overlay/AcApOverlayGripHost.js.map +1 -1
- package/lib/editor/command/AcEdCommand.d.ts +17 -0
- package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommand.js +81 -1
- package/lib/editor/command/AcEdCommand.js.map +1 -1
- package/lib/editor/command/AcEdCommandStack.d.ts +14 -3
- package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommandStack.js +39 -3
- package/lib/editor/command/AcEdCommandStack.js.map +1 -1
- package/lib/editor/command/AcEdSessionAccessory.d.ts +82 -0
- package/lib/editor/command/AcEdSessionAccessory.d.ts.map +1 -0
- package/lib/editor/command/AcEdSessionAccessory.js +15 -0
- package/lib/editor/command/AcEdSessionAccessory.js.map +1 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.d.ts +42 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.d.ts.map +1 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.js +54 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.js.map +1 -0
- package/lib/editor/command/index.d.ts +4 -0
- package/lib/editor/command/index.d.ts.map +1 -1
- package/lib/editor/command/index.js +3 -0
- package/lib/editor/command/index.js.map +1 -1
- package/lib/editor/global/AcEdUiColor.d.ts +10 -0
- package/lib/editor/global/AcEdUiColor.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiColor.js +14 -0
- package/lib/editor/global/AcEdUiColor.js.map +1 -1
- package/lib/editor/global/AcEdUiLayout.d.ts +102 -0
- package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiLayout.js +137 -0
- package/lib/editor/global/AcEdUiLayout.js.map +1 -1
- package/lib/editor/global/AcEdUiTheme.d.ts +15 -3
- package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiTheme.js +113 -6
- package/lib/editor/global/AcEdUiTheme.js.map +1 -1
- package/lib/editor/grip/AcEdGripAppearance.d.ts +18 -0
- package/lib/editor/grip/AcEdGripAppearance.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripAppearance.js +23 -1
- package/lib/editor/grip/AcEdGripAppearance.js.map +1 -1
- package/lib/editor/grip/AcEdGripEditSession.js +2 -2
- package/lib/editor/grip/AcEdGripEditSession.js.map +1 -1
- package/lib/editor/grip/AcEdGripHandle.d.ts +1 -2
- package/lib/editor/grip/AcEdGripHandle.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripHandle.js +4 -13
- package/lib/editor/grip/AcEdGripHandle.js.map +1 -1
- package/lib/editor/grip/AcEdGripManager.d.ts +3 -1
- package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripManager.js +30 -14
- package/lib/editor/grip/AcEdGripManager.js.map +1 -1
- package/lib/editor/grip/index.d.ts +1 -0
- package/lib/editor/grip/index.d.ts.map +1 -1
- package/lib/editor/grip/index.js +1 -0
- package/lib/editor/grip/index.js.map +1 -1
- package/lib/editor/input/AcEdDynamicInput.d.ts +15 -0
- package/lib/editor/input/AcEdDynamicInput.d.ts.map +1 -0
- package/lib/editor/input/AcEdDynamicInput.js +22 -0
- package/lib/editor/input/AcEdDynamicInput.js.map +1 -0
- package/lib/editor/input/AcEdOsnapCenterMarks.d.ts +19 -1
- package/lib/editor/input/AcEdOsnapCenterMarks.d.ts.map +1 -1
- package/lib/editor/input/AcEdOsnapCenterMarks.js +53 -9
- package/lib/editor/input/AcEdOsnapCenterMarks.js.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.js +216 -35
- package/lib/editor/input/AcEdOsnapResolver.js.map +1 -1
- package/lib/editor/input/AcEditor.d.ts +14 -1
- package/lib/editor/input/AcEditor.d.ts.map +1 -1
- package/lib/editor/input/AcEditor.js +18 -2
- package/lib/editor/input/AcEditor.js.map +1 -1
- package/lib/editor/input/index.d.ts +1 -0
- package/lib/editor/input/index.d.ts.map +1 -1
- package/lib/editor/input/index.js +1 -0
- package/lib/editor/input/index.js.map +1 -1
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts +12 -0
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts.map +1 -1
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.js +53 -18
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +15 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js +24 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts +33 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js +85 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts +57 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js +104 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +144 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +412 -13
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +2 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingMessage.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingMessage.js +2 -2
- package/lib/editor/input/ui/AcEdFloatingMessage.js.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts +100 -7
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +805 -164
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts +94 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.js +60 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts +52 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js +201 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts +89 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js +143 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts +29 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.js +37 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts +45 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.js +63 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.js.map +1 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts +113 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js +295 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js.map +1 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts +28 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js +86 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.d.ts +60 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.js +109 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.js.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts +47 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.js +50 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts +97 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.js +74 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.d.ts +198 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.js +329 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts +18 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.js +18 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.js.map +1 -0
- package/lib/editor/input/ui/index.d.ts +13 -0
- package/lib/editor/input/ui/index.d.ts.map +1 -1
- package/lib/editor/input/ui/index.js +13 -0
- package/lib/editor/input/ui/index.js.map +1 -1
- package/lib/editor/view/AcEdBaseView.d.ts +144 -39
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +210 -41
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- package/lib/editor/view/AcEdViewMode.d.ts +34 -0
- package/lib/editor/view/AcEdViewMode.d.ts.map +1 -0
- package/lib/editor/view/AcEdViewMode.js +35 -0
- package/lib/editor/view/AcEdViewMode.js.map +1 -0
- package/lib/editor/view/index.d.ts +1 -0
- package/lib/editor/view/index.d.ts.map +1 -1
- package/lib/editor/view/index.js +1 -0
- package/lib/editor/view/index.js.map +1 -1
- package/lib/i18n/AcApI18n.d.ts +1 -1
- package/lib/i18n/AcApI18n.d.ts.map +1 -1
- package/lib/i18n/AcApI18n.js +3 -2
- package/lib/i18n/AcApI18n.js.map +1 -1
- package/lib/i18n/ar/command.d.ts +465 -0
- package/lib/i18n/ar/command.d.ts.map +1 -0
- package/lib/i18n/ar/command.js +14 -0
- package/lib/i18n/ar/command.js.map +1 -0
- package/lib/i18n/ar/jig.d.ts +1251 -0
- package/lib/i18n/ar/jig.d.ts.map +1 -0
- package/lib/i18n/ar/jig.js +606 -0
- package/lib/i18n/ar/jig.js.map +1 -0
- package/lib/i18n/ar/main.d.ts +133 -0
- package/lib/i18n/ar/main.d.ts.map +1 -0
- package/lib/i18n/ar/main.js +132 -0
- package/lib/i18n/ar/main.js.map +1 -0
- package/lib/i18n/cs/command.d.ts +9 -0
- package/lib/i18n/cs/command.d.ts.map +1 -1
- package/lib/i18n/cs/command.js +9 -0
- package/lib/i18n/cs/command.js.map +1 -1
- package/lib/i18n/cs/jig.d.ts +20 -0
- package/lib/i18n/cs/jig.d.ts.map +1 -1
- package/lib/i18n/cs/jig.js +21 -1
- package/lib/i18n/cs/jig.js.map +1 -1
- package/lib/i18n/cs/main.d.ts +70 -1
- package/lib/i18n/cs/main.d.ts.map +1 -1
- package/lib/i18n/cs/main.js +71 -2
- package/lib/i18n/cs/main.js.map +1 -1
- package/lib/i18n/en/command.d.ts +12 -0
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +12 -0
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +20 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +21 -1
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/en/main.d.ts +70 -1
- package/lib/i18n/en/main.d.ts.map +1 -1
- package/lib/i18n/en/main.js +71 -2
- package/lib/i18n/en/main.js.map +1 -1
- package/lib/i18n/index.d.ts.map +1 -1
- package/lib/i18n/index.js +8 -0
- package/lib/i18n/index.js.map +1 -1
- package/lib/i18n/tr/command.d.ts +9 -0
- package/lib/i18n/tr/command.d.ts.map +1 -1
- package/lib/i18n/tr/command.js +9 -0
- package/lib/i18n/tr/command.js.map +1 -1
- package/lib/i18n/tr/jig.d.ts +20 -0
- package/lib/i18n/tr/jig.d.ts.map +1 -1
- package/lib/i18n/tr/jig.js +21 -1
- package/lib/i18n/tr/jig.js.map +1 -1
- package/lib/i18n/tr/main.d.ts +70 -1
- package/lib/i18n/tr/main.d.ts.map +1 -1
- package/lib/i18n/tr/main.js +71 -2
- package/lib/i18n/tr/main.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +12 -0
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +12 -0
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +20 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +21 -1
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/i18n/zh/main.d.ts +70 -1
- package/lib/i18n/zh/main.d.ts.map +1 -1
- package/lib/i18n/zh/main.js +72 -3
- package/lib/i18n/zh/main.js.map +1 -1
- package/lib/plugin/AcApPluginManager.d.ts +10 -0
- package/lib/plugin/AcApPluginManager.d.ts.map +1 -1
- package/lib/plugin/AcApPluginManager.js +18 -0
- package/lib/plugin/AcApPluginManager.js.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js +11 -4
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
- package/lib/ui/AcUiAciColorDialog.d.ts +57 -0
- package/lib/ui/AcUiAciColorDialog.d.ts.map +1 -0
- package/lib/ui/AcUiAciColorDialog.js +91 -0
- package/lib/ui/AcUiAciColorDialog.js.map +1 -0
- package/lib/ui/AcUiAciPaletteUi.d.ts +118 -0
- package/lib/ui/AcUiAciPaletteUi.d.ts.map +1 -0
- package/lib/ui/AcUiAciPaletteUi.js +521 -0
- package/lib/ui/AcUiAciPaletteUi.js.map +1 -0
- package/lib/ui/AcUiDialog.d.ts +38 -2
- package/lib/ui/AcUiDialog.d.ts.map +1 -1
- package/lib/ui/AcUiDialog.js +45 -16
- package/lib/ui/AcUiDialog.js.map +1 -1
- package/lib/ui/AcUiDrawStyle.d.ts +59 -0
- package/lib/ui/AcUiDrawStyle.d.ts.map +1 -0
- package/lib/ui/AcUiDrawStyle.js +94 -0
- package/lib/ui/AcUiDrawStyle.js.map +1 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts +108 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts.map +1 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.js +455 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.js.map +1 -0
- package/lib/ui/AcUiFullscreenPanel.d.ts +89 -0
- package/lib/ui/AcUiFullscreenPanel.d.ts.map +1 -0
- package/lib/ui/AcUiFullscreenPanel.js +224 -0
- package/lib/ui/AcUiFullscreenPanel.js.map +1 -0
- package/lib/ui/AcUiHelpPanel.d.ts +49 -0
- package/lib/ui/AcUiHelpPanel.d.ts.map +1 -0
- package/lib/ui/AcUiHelpPanel.js +124 -0
- package/lib/ui/AcUiHelpPanel.js.map +1 -0
- package/lib/ui/AcUiMobileSessionPanel.d.ts +174 -0
- package/lib/ui/AcUiMobileSessionPanel.d.ts.map +1 -0
- package/lib/ui/AcUiMobileSessionPanel.js +557 -0
- package/lib/ui/AcUiMobileSessionPanel.js.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts +136 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.js +250 -0
- package/lib/ui/AcUiShortCutToolbar.js.map +1 -0
- package/lib/ui/AcUiSimpleToolbar.d.ts +110 -0
- package/lib/ui/AcUiSimpleToolbar.d.ts.map +1 -0
- package/lib/ui/AcUiSimpleToolbar.js +431 -0
- package/lib/ui/AcUiSimpleToolbar.js.map +1 -0
- package/lib/ui/AcUiTextHeightDialog.d.ts +85 -0
- package/lib/ui/AcUiTextHeightDialog.d.ts.map +1 -0
- package/lib/ui/AcUiTextHeightDialog.js +205 -0
- package/lib/ui/AcUiTextHeightDialog.js.map +1 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.d.ts +54 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.d.ts.map +1 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.js +128 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.js.map +1 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.d.ts +18 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.d.ts.map +1 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.js +58 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.js.map +1 -0
- package/lib/ui/icons.d.ts +175 -0
- package/lib/ui/icons.d.ts.map +1 -0
- package/lib/ui/icons.js +227 -0
- package/lib/ui/icons.js.map +1 -0
- package/lib/ui/index.d.ts +14 -2
- package/lib/ui/index.d.ts.map +1 -1
- package/lib/ui/index.js +14 -2
- package/lib/ui/index.js.map +1 -1
- package/lib/ui/touch-point-tutorial.d.ts +64 -0
- package/lib/ui/touch-point-tutorial.d.ts.map +1 -0
- package/lib/ui/touch-point-tutorial.js +271 -0
- package/lib/ui/touch-point-tutorial.js.map +1 -0
- package/lib/ui-html-entry.d.ts +31 -0
- package/lib/ui-html-entry.d.ts.map +1 -0
- package/lib/ui-html-entry.js +23 -0
- package/lib/ui-html-entry.js.map +1 -0
- package/lib/util/AcApAciPalette.d.ts +7 -0
- package/lib/util/AcApAciPalette.d.ts.map +1 -0
- package/lib/util/AcApAciPalette.js +51 -0
- package/lib/util/AcApAciPalette.js.map +1 -0
- package/lib/util/AcApCommandUtil.d.ts +15 -0
- package/lib/util/AcApCommandUtil.d.ts.map +1 -0
- package/lib/util/AcApCommandUtil.js +38 -0
- package/lib/util/AcApCommandUtil.js.map +1 -0
- package/lib/util/AcApCssColor.d.ts +10 -0
- package/lib/util/AcApCssColor.d.ts.map +1 -1
- package/lib/util/AcApCssColor.js +52 -0
- package/lib/util/AcApCssColor.js.map +1 -1
- package/lib/util/AcApMeasurementUnits.d.ts +13 -1
- package/lib/util/AcApMeasurementUnits.d.ts.map +1 -1
- package/lib/util/AcApMeasurementUnits.js +144 -10
- package/lib/util/AcApMeasurementUnits.js.map +1 -1
- package/lib/util/AcApMeasurementUtil.d.ts +30 -9
- package/lib/util/AcApMeasurementUtil.d.ts.map +1 -1
- package/lib/util/AcApMeasurementUtil.js +70 -40
- package/lib/util/AcApMeasurementUtil.js.map +1 -1
- package/lib/util/AcApOpenFileErrorMessage.d.ts +25 -0
- package/lib/util/AcApOpenFileErrorMessage.d.ts.map +1 -0
- package/lib/util/AcApOpenFileErrorMessage.js +121 -0
- package/lib/util/AcApOpenFileErrorMessage.js.map +1 -0
- package/lib/util/index.d.ts +3 -0
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +3 -0
- package/lib/util/index.js.map +1 -1
- package/lib/view/AcApCompareDisplay.d.ts +37 -0
- package/lib/view/AcApCompareDisplay.d.ts.map +1 -0
- package/lib/view/AcApCompareDisplay.js +8 -0
- package/lib/view/AcApCompareDisplay.js.map +1 -0
- package/lib/view/AcApReadingMode.d.ts +52 -0
- package/lib/view/AcApReadingMode.d.ts.map +1 -0
- package/lib/view/AcApReadingMode.js +81 -0
- package/lib/view/AcApReadingMode.js.map +1 -0
- package/lib/view/AcEdReviewOverlayPick.d.ts +9 -0
- package/lib/view/AcEdReviewOverlayPick.d.ts.map +1 -1
- package/lib/view/AcEdReviewOverlayPick.js +30 -1
- package/lib/view/AcEdReviewOverlayPick.js.map +1 -1
- package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
- package/lib/view/AcEdViewKeyHandler.js +6 -1
- package/lib/view/AcEdViewKeyHandler.js.map +1 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts +6 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts.map +1 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.js +9 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.js.map +1 -1
- package/lib/view/AcTrLayer.d.ts +6 -0
- package/lib/view/AcTrLayer.d.ts.map +1 -1
- package/lib/view/AcTrLayer.js +8 -0
- package/lib/view/AcTrLayer.js.map +1 -1
- package/lib/view/AcTrLayout.d.ts +12 -0
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +35 -12
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrLayoutView.d.ts +25 -1
- package/lib/view/AcTrLayoutView.d.ts.map +1 -1
- package/lib/view/AcTrLayoutView.js +62 -1
- package/lib/view/AcTrLayoutView.js.map +1 -1
- package/lib/view/AcTrScene.d.ts +7 -0
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +13 -0
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +79 -2
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +407 -57
- package/lib/view/AcTrView2d.js.map +1 -1
- package/lib/view/AcTrViewSessionState.d.ts +32 -0
- package/lib/view/AcTrViewSessionState.d.ts.map +1 -0
- package/lib/view/AcTrViewSessionState.js +2 -0
- package/lib/view/AcTrViewSessionState.js.map +1 -0
- package/lib/view/index.d.ts +3 -0
- package/lib/view/index.d.ts.map +1 -1
- package/lib/view/index.js +3 -0
- package/lib/view/index.js.map +1 -1
- package/package.json +15 -8
- package/src/ui/icons.ts +387 -0
- package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +0 -1
- package/lib/app/AcDbOpenDatabaseOptions.js.map +0 -1
- package/lib/ui/AcApDrawStyle.d.ts +0 -81
- package/lib/ui/AcApDrawStyle.d.ts.map +0 -1
- package/lib/ui/AcApDrawStyle.js +0 -170
- package/lib/ui/AcApDrawStyle.js.map +0 -1
- package/lib/ui/AcApDrawStyleToolbar.d.ts +0 -129
- package/lib/ui/AcApDrawStyleToolbar.d.ts.map +0 -1
- package/lib/ui/AcApDrawStyleToolbar.js +0 -607
- package/lib/ui/AcApDrawStyleToolbar.js.map +0 -1
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
20
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
21
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
22
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
26
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
27
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
|
+
function step(op) {
|
|
30
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
32
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
|
+
switch (op[0]) {
|
|
35
|
+
case 0: case 1: t = op; break;
|
|
36
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
37
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
38
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
39
|
+
default:
|
|
40
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
41
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
42
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
44
|
+
if (t[2]) _.ops.pop();
|
|
45
|
+
_.trys.pop(); continue;
|
|
46
|
+
}
|
|
47
|
+
op = body.call(thisArg, _);
|
|
48
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
49
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
53
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
54
|
+
if (!m) return o;
|
|
55
|
+
var i = m.call(o), r, ar = [], e;
|
|
56
|
+
try {
|
|
57
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
58
|
+
}
|
|
59
|
+
catch (error) { e = { error: error }; }
|
|
60
|
+
finally {
|
|
61
|
+
try {
|
|
62
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
63
|
+
}
|
|
64
|
+
finally { if (e) throw e.error; }
|
|
65
|
+
}
|
|
66
|
+
return ar;
|
|
67
|
+
};
|
|
68
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
69
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
70
|
+
if (ar || !(i in from)) {
|
|
71
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
72
|
+
ar[i] = from[i];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
76
|
+
};
|
|
77
|
+
var __values = (this && this.__values) || function(o) {
|
|
78
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
79
|
+
if (m) return m.call(o);
|
|
80
|
+
if (o && typeof o.length === "number") return {
|
|
81
|
+
next: function () {
|
|
82
|
+
if (o && i >= o.length) o = void 0;
|
|
83
|
+
return { value: o && o[i++], done: !o };
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
87
|
+
};
|
|
88
|
+
import { AcGePoint3d } from '@mlightcad/data-model';
|
|
89
|
+
import { AcTrHtmlBadge } from '@mlightcad/three-renderer';
|
|
90
|
+
import { AcEdPreviewJig, AcEdPromptPointOptions, AcEdPromptStatus } from '../../editor';
|
|
91
|
+
import { AcApI18n } from '../../i18n';
|
|
92
|
+
import { acapGetCurrentMeasurementStyle, acapGetMeasurementColor, acapMeasurementCanvasLineWidth, formatMeasurementLength, MEASUREMENT_LINE_WEIGHT } from '../../util';
|
|
93
|
+
import { AcApHtmlLivePreview, acapStrokeLivePolyline } from '../overlay/AcApHtmlLivePreview';
|
|
94
|
+
import { acapSyncLiveOverlayTextHeight } from '../overlay/AcApOverlayDrawUtil';
|
|
95
|
+
import { placeDistanceMeasurement } from './AcApMeasureDistanceCmd';
|
|
96
|
+
import { AcApMeasureDrawCmd } from './AcApMeasureDrawCmd';
|
|
97
|
+
import { runMeasurementEdit } from './AcApMeasurementHistory';
|
|
98
|
+
import { MEASUREMENT_LIVE_LAYER } from './AcApMeasurementStore';
|
|
99
|
+
import { newMeasureOverlayId } from './entity/AcApMeasureEntity';
|
|
100
|
+
/** Returns the 2D Euclidean distance between two world points. */
|
|
101
|
+
function calcDist(p1, p2) {
|
|
102
|
+
var dx = p2.x - p1.x;
|
|
103
|
+
var dy = p2.y - p1.y;
|
|
104
|
+
return Math.sqrt(dx * dx + dy * dy);
|
|
105
|
+
}
|
|
106
|
+
/** Midpoint of a segment. */
|
|
107
|
+
function midOf(a, b) {
|
|
108
|
+
return { x: (a.x + b.x) / 2, y: (a.y + b.y) / 2, z: 0 };
|
|
109
|
+
}
|
|
110
|
+
/** Snapshot a pick so later getPoint mutations cannot collapse earlier vertices. */
|
|
111
|
+
function clonePoint(p) {
|
|
112
|
+
var _a;
|
|
113
|
+
return { x: p.x, y: p.y, z: (_a = p.z) !== null && _a !== void 0 ? _a : 0 };
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Preview jig for the continuous distance measurement command.
|
|
117
|
+
*
|
|
118
|
+
* Renders live HTML rubber-band segments and a length badge at each midpoint
|
|
119
|
+
* (no AcDb preview). Confirmed vertices stay in `points`; `update` adds the
|
|
120
|
+
* rubber-band to the cursor.
|
|
121
|
+
*/
|
|
122
|
+
var AcApMeasureContinuousJig = /** @class */ (function (_super) {
|
|
123
|
+
__extends(AcApMeasureContinuousJig, _super);
|
|
124
|
+
function AcApMeasureContinuousJig(view, db, points, color) {
|
|
125
|
+
var _this = _super.call(this, view) || this;
|
|
126
|
+
_this._badges = [];
|
|
127
|
+
_this._view = view;
|
|
128
|
+
_this._points = points;
|
|
129
|
+
_this._db = db;
|
|
130
|
+
_this._color = color;
|
|
131
|
+
_this._htManager = _this._view.htmlTransientManager;
|
|
132
|
+
_this._preview = new AcApHtmlLivePreview(_this._view, "live-cont-stroke-".concat(Date.now()), MEASUREMENT_LIVE_LAYER, { alignToViewCanvas: true });
|
|
133
|
+
return _this;
|
|
134
|
+
}
|
|
135
|
+
Object.defineProperty(AcApMeasureContinuousJig.prototype, "entity", {
|
|
136
|
+
/** HTML-only preview — no CAD transient. */
|
|
137
|
+
get: function () {
|
|
138
|
+
return null;
|
|
139
|
+
},
|
|
140
|
+
enumerable: false,
|
|
141
|
+
configurable: true
|
|
142
|
+
});
|
|
143
|
+
AcApMeasureContinuousJig.prototype.update = function (cursor) {
|
|
144
|
+
var _this = this;
|
|
145
|
+
this._color = acapGetMeasurementColor(this._db);
|
|
146
|
+
var style = acapGetCurrentMeasurementStyle(this._db);
|
|
147
|
+
var lineWidth = acapMeasurementCanvasLineWidth(MEASUREMENT_LINE_WEIGHT);
|
|
148
|
+
var vertices = __spreadArray(__spreadArray([], __read(this._points), false), [cursor], false).map(clonePoint);
|
|
149
|
+
this._preview.acapSetDraw(function (ctx, view) {
|
|
150
|
+
acapStrokeLivePolyline(ctx, view, vertices, _this._color, lineWidth, {
|
|
151
|
+
segmentArrows: true
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
this.syncBadges(vertices, style.fontSize);
|
|
155
|
+
if (this._badges.length > 0) {
|
|
156
|
+
acapSyncLiveOverlayTextHeight(this._view, this._badges, style);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* `getPoint` calls {@link end} after every accepted click. Keep the live
|
|
161
|
+
* overlay so confirmed segments stay visible while picking the next vertex.
|
|
162
|
+
* The command calls {@link disposePreview} when the whole chain finishes.
|
|
163
|
+
*/
|
|
164
|
+
AcApMeasureContinuousJig.prototype.end = function () {
|
|
165
|
+
_super.prototype.end.call(this);
|
|
166
|
+
};
|
|
167
|
+
/** Removes the live polyline canvas and midpoint badges. */
|
|
168
|
+
AcApMeasureContinuousJig.prototype.disposePreview = function () {
|
|
169
|
+
var e_1, _a;
|
|
170
|
+
this._preview.acapDispose();
|
|
171
|
+
try {
|
|
172
|
+
for (var _b = __values(this._badges), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
173
|
+
var badge = _c.value;
|
|
174
|
+
this._htManager.remove(badge.id);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
178
|
+
finally {
|
|
179
|
+
try {
|
|
180
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
181
|
+
}
|
|
182
|
+
finally { if (e_1) throw e_1.error; }
|
|
183
|
+
}
|
|
184
|
+
this._badges.length = 0;
|
|
185
|
+
};
|
|
186
|
+
/** Creates, updates, or hides per-segment live badges. */
|
|
187
|
+
AcApMeasureContinuousJig.prototype.syncBadges = function (vertices, fontSize) {
|
|
188
|
+
var _a;
|
|
189
|
+
var needed = Math.max(0, vertices.length - 1);
|
|
190
|
+
while (this._badges.length < needed) {
|
|
191
|
+
var badge = new AcTrHtmlBadge({
|
|
192
|
+
id: "live-cont-badge-".concat(Date.now(), "-").concat(this._badges.length),
|
|
193
|
+
color: this._color,
|
|
194
|
+
worldPosition: (_a = vertices[this._badges.length]) !== null && _a !== void 0 ? _a : { x: 0, y: 0 },
|
|
195
|
+
layer: MEASUREMENT_LIVE_LAYER,
|
|
196
|
+
layoutId: this._view.activeLayoutBtrId,
|
|
197
|
+
fontSize: fontSize
|
|
198
|
+
});
|
|
199
|
+
this._htManager.add(badge);
|
|
200
|
+
acapSyncLiveOverlayTextHeight(this._view, [badge], acapGetCurrentMeasurementStyle(this._db));
|
|
201
|
+
this._badges.push(badge);
|
|
202
|
+
}
|
|
203
|
+
while (this._badges.length > needed) {
|
|
204
|
+
var badge = this._badges.pop();
|
|
205
|
+
if (badge)
|
|
206
|
+
this._htManager.remove(badge.id);
|
|
207
|
+
}
|
|
208
|
+
for (var i = 0; i < needed; i++) {
|
|
209
|
+
var a = vertices[i];
|
|
210
|
+
var b = vertices[i + 1];
|
|
211
|
+
var dist = calcDist(a, b);
|
|
212
|
+
var badge = this._badges[i];
|
|
213
|
+
badge.setColor(this._color);
|
|
214
|
+
badge.setFontSize(fontSize);
|
|
215
|
+
if (dist < 0.0001) {
|
|
216
|
+
badge.object.visible = false;
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
badge.setText(formatMeasurementLength(this._db, dist));
|
|
220
|
+
badge.setPosition(midOf(a, b));
|
|
221
|
+
badge.object.visible = true;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
return AcApMeasureContinuousJig;
|
|
225
|
+
}(AcEdPreviewJig));
|
|
226
|
+
export { AcApMeasureContinuousJig };
|
|
227
|
+
/**
|
|
228
|
+
* Command that measures chained straight-line distances, like LINE.
|
|
229
|
+
*
|
|
230
|
+
* The user keeps picking the next vertex until Enter or Cancel. Each
|
|
231
|
+
* consecutive pair is committed as a normal distance measurement.
|
|
232
|
+
*/
|
|
233
|
+
var AcApMeasureContinuousCmd = /** @class */ (function (_super) {
|
|
234
|
+
__extends(AcApMeasureContinuousCmd, _super);
|
|
235
|
+
function AcApMeasureContinuousCmd() {
|
|
236
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
237
|
+
}
|
|
238
|
+
AcApMeasureContinuousCmd.prototype.execute = function (context) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
240
|
+
var editor, db, color, points, view, style;
|
|
241
|
+
var _this = this;
|
|
242
|
+
return __generator(this, function (_a) {
|
|
243
|
+
switch (_a.label) {
|
|
244
|
+
case 0:
|
|
245
|
+
editor = context.view.editor;
|
|
246
|
+
db = context.doc.database;
|
|
247
|
+
color = acapGetMeasurementColor(db);
|
|
248
|
+
points = [];
|
|
249
|
+
return [4 /*yield*/, this.withMeasureInput(context, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
250
|
+
var p1Prompt, p1Result, jig, prompt_1, result, next, last;
|
|
251
|
+
return __generator(this, function (_a) {
|
|
252
|
+
switch (_a.label) {
|
|
253
|
+
case 0:
|
|
254
|
+
p1Prompt = new AcEdPromptPointOptions(AcApI18n.t('jig.measureContinuous.firstPoint'));
|
|
255
|
+
return [4 /*yield*/, editor.getPoint(p1Prompt)];
|
|
256
|
+
case 1:
|
|
257
|
+
p1Result = _a.sent();
|
|
258
|
+
if (p1Result.status !== AcEdPromptStatus.OK)
|
|
259
|
+
return [2 /*return*/];
|
|
260
|
+
points.push(clonePoint(p1Result.value));
|
|
261
|
+
jig = new AcApMeasureContinuousJig(context.view, db, points, color);
|
|
262
|
+
_a.label = 2;
|
|
263
|
+
case 2:
|
|
264
|
+
_a.trys.push([2, , 6, 7]);
|
|
265
|
+
_a.label = 3;
|
|
266
|
+
case 3:
|
|
267
|
+
if (!(points.length < 100)) return [3 /*break*/, 5];
|
|
268
|
+
prompt_1 = new AcEdPromptPointOptions(AcApI18n.t('jig.measureContinuous.nextPoint'));
|
|
269
|
+
prompt_1.useBasePoint = true;
|
|
270
|
+
prompt_1.basePoint = new AcGePoint3d(points[points.length - 1]);
|
|
271
|
+
prompt_1.allowNone = true;
|
|
272
|
+
prompt_1.jig = jig;
|
|
273
|
+
return [4 /*yield*/, editor.getPoint(prompt_1)];
|
|
274
|
+
case 4:
|
|
275
|
+
result = _a.sent();
|
|
276
|
+
if (result.status !== AcEdPromptStatus.OK)
|
|
277
|
+
return [3 /*break*/, 5];
|
|
278
|
+
next = clonePoint(result.value);
|
|
279
|
+
last = points[points.length - 1];
|
|
280
|
+
if (calcDist(last, next) < 1e-9)
|
|
281
|
+
return [3 /*break*/, 3];
|
|
282
|
+
points.push(next);
|
|
283
|
+
return [3 /*break*/, 3];
|
|
284
|
+
case 5: return [3 /*break*/, 7];
|
|
285
|
+
case 6:
|
|
286
|
+
jig.disposePreview();
|
|
287
|
+
return [7 /*endfinally*/];
|
|
288
|
+
case 7: return [2 /*return*/];
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
}); })];
|
|
292
|
+
case 1:
|
|
293
|
+
_a.sent();
|
|
294
|
+
if (points.length < 2)
|
|
295
|
+
return [2 /*return*/];
|
|
296
|
+
view = context.view;
|
|
297
|
+
style = acapGetCurrentMeasurementStyle(db);
|
|
298
|
+
runMeasurementEdit(view, 'Create Measurement', function () {
|
|
299
|
+
for (var i = 0; i < points.length - 1; i++) {
|
|
300
|
+
var a = points[i];
|
|
301
|
+
var b = points[i + 1];
|
|
302
|
+
if (calcDist(a, b) < 1e-4)
|
|
303
|
+
continue;
|
|
304
|
+
placeDistanceMeasurement(view, db, a, b, style, {
|
|
305
|
+
id: newMeasureOverlayId('dist')
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
return [2 /*return*/];
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
});
|
|
313
|
+
};
|
|
314
|
+
return AcApMeasureContinuousCmd;
|
|
315
|
+
}(AcApMeasureDrawCmd));
|
|
316
|
+
export { AcApMeasureContinuousCmd };
|
|
317
|
+
//# sourceMappingURL=AcApMeasureContinuousCmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApMeasureContinuousCmd.js","sourceRoot":"","sources":["../../../src/command/measure/AcApMeasureContinuousCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAGL,WAAW,EAEZ,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,aAAa,EAEd,MAAM,2BAA2B,CAAA;AAGlC,OAAO,EAEL,c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,EAAE,CAAC;gCAC3C,IAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAE,CAAA;gCACpB,IAAM,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,CAAE,CAAA;gCACxB,IAAI,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI;oCAAE,SAAQ;gCACnC,wBAAwB,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE;oCAC9C,EAAE,EAAE,mBAAmB,CAAC,MAAM,CAAC;iCAChC,CAAC,CAAA;4BACJ,CAAC;wBACH,CAAC,CAAC,CAAA;;;;;KACH;IACH,+BAAC;AAAD,CAAC,AApDD,CAA8C,kBAAkB,GAoD/D"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AcCmColor, AcDbDatabase, AcGePoint3dLike } from '@mlightcad/data-model';
|
|
2
2
|
import { AcApContext } from '../../app';
|
|
3
|
-
import { AcEdBaseView,
|
|
3
|
+
import { AcEdBaseView, AcEdPreviewJig } from '../../editor';
|
|
4
4
|
import { type AcApMeasurementStyle } from '../../util';
|
|
5
5
|
import { AcTrView2d } from '../../view';
|
|
6
|
+
import { AcApMeasureDrawCmd } from './AcApMeasureDrawCmd';
|
|
6
7
|
/**
|
|
7
8
|
* Commit a distance measurement overlay (also used when importing a sidecar).
|
|
8
9
|
*/
|
|
@@ -37,8 +38,7 @@ export declare class AcApMeasureDistanceJig extends AcEdPreviewJig<AcGePoint3dLi
|
|
|
37
38
|
* Prompts for two world points, then commits a measurement overlay.
|
|
38
39
|
* Interactive preview is HTML-only (canvas stroke + badge).
|
|
39
40
|
*/
|
|
40
|
-
export declare class AcApMeasureDistanceCmd extends
|
|
41
|
-
constructor();
|
|
41
|
+
export declare class AcApMeasureDistanceCmd extends AcApMeasureDrawCmd {
|
|
42
42
|
execute(context: AcApContext): Promise<void>;
|
|
43
43
|
}
|
|
44
44
|
//# sourceMappingURL=AcApMeasureDistanceCmd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMeasureDistanceCmd.d.ts","sourceRoot":"","sources":["../../../src/command/measure/AcApMeasureDistanceCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,
|
|
1
|
+
{"version":3,"file":"AcApMeasureDistanceCmd.d.ts","sourceRoot":"","sources":["../../../src/command/measure/AcApMeasureDistanceCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EAEZ,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAM9B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EACL,YAAY,EACZ,cAAc,EAGf,MAAM,cAAc,CAAA;AAErB,OAAO,EAKL,KAAK,oBAAoB,EAG1B,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAMvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAWzD;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,UAAU,EAChB,EAAE,EAAE,YAAY,EAChB,EAAE,EAAE,eAAe,EACnB,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,oBAAoB,EAC3B,OAAO,CAAC,EAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3C,IAAI,CAEN;AAED;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,cAAc,CAAC,eAAe,CAAC;IACzE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAY;IAClC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAiB;IACrC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAc;IAClC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0B;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;IACjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqB;IAC9C,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,GAAG,CAAiB;gBAG1B,IAAI,EAAE,YAAY,EAClB,EAAE,EAAE,YAAY,EAChB,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,SAAS;IAmClB,4CAA4C;IAC5C,IAAI,MAAM,IAAI,IAAI,CAEjB;IAED,MAAM,CAAC,EAAE,EAAE,eAAe;IAmC1B,GAAG;CAKJ;AAED;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,kBAAkB;IACtD,OAAO,CAAC,OAAO,EAAE,WAAW;CAgCnC"}
|
|
@@ -49,11 +49,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49
49
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
+
import { AcGePoint3d } from '@mlightcad/data-model';
|
|
52
53
|
import { AcTrHtmlBadge } from '@mlightcad/three-renderer';
|
|
53
|
-
import {
|
|
54
|
+
import { AcEdPreviewJig, AcEdPromptPointOptions, AcEdPromptStatus } from '../../editor';
|
|
54
55
|
import { AcApI18n } from '../../i18n';
|
|
55
|
-
import { acapGetCurrentMeasurementStyle, acapGetMeasurementColor, acapGetMeasurementFontSize,
|
|
56
|
+
import { acapGetCurrentMeasurementStyle, acapGetMeasurementColor, acapGetMeasurementFontSize, acapMeasurementCanvasLineWidth, formatMeasurementLength, MEASUREMENT_LINE_WEIGHT } from '../../util';
|
|
56
57
|
import { AcApHtmlLivePreview, acapStrokeLiveSegment } from '../overlay/AcApHtmlLivePreview';
|
|
58
|
+
import { acapSyncLiveOverlayTextHeight } from '../overlay/AcApOverlayDrawUtil';
|
|
59
|
+
import { AcApMeasureDrawCmd } from './AcApMeasureDrawCmd';
|
|
57
60
|
import { MEASUREMENT_LIVE_LAYER } from './AcApMeasurementStore';
|
|
58
61
|
import { AcApMeasureDistanceEntity } from './entity';
|
|
59
62
|
/** Returns the 2D Euclidean distance between two world points. */
|
|
@@ -92,8 +95,10 @@ var AcApMeasureDistanceJig = /** @class */ (function (_super) {
|
|
|
92
95
|
layoutId: _this._view.activeLayoutBtrId,
|
|
93
96
|
fontSize: acapGetMeasurementFontSize()
|
|
94
97
|
});
|
|
95
|
-
_this._badge.object.visible = false;
|
|
96
98
|
_this._htManager.add(_this._badge);
|
|
99
|
+
acapSyncLiveOverlayTextHeight(_this._view, [_this._badge], acapGetCurrentMeasurementStyle(_this._db));
|
|
100
|
+
// `add()` applies layout visibility and would force the empty capsule on.
|
|
101
|
+
_this._badge.object.visible = false;
|
|
97
102
|
_this._preview = new AcApHtmlLivePreview(_this._view, "live-dist-stroke-".concat(Date.now()), MEASUREMENT_LIVE_LAYER);
|
|
98
103
|
return _this;
|
|
99
104
|
}
|
|
@@ -110,11 +115,13 @@ var AcApMeasureDistanceJig = /** @class */ (function (_super) {
|
|
|
110
115
|
this._p2 = p2;
|
|
111
116
|
this._color = acapGetMeasurementColor(this._db);
|
|
112
117
|
this._badge.setColor(this._color);
|
|
113
|
-
this.
|
|
118
|
+
var style = acapGetCurrentMeasurementStyle(this._db);
|
|
119
|
+
this._badge.setFontSize(style.fontSize);
|
|
120
|
+
acapSyncLiveOverlayTextHeight(this._view, [this._badge], style);
|
|
114
121
|
var dist = calcDist(this._p1, p2);
|
|
115
|
-
var lineWidth = acapMeasurementCanvasLineWidth(
|
|
122
|
+
var lineWidth = acapMeasurementCanvasLineWidth(MEASUREMENT_LINE_WEIGHT);
|
|
116
123
|
this._preview.acapSetDraw(function (ctx, view) {
|
|
117
|
-
acapStrokeLiveSegment(ctx, view, _this._p1, _this._p2, _this._color, lineWidth);
|
|
124
|
+
acapStrokeLiveSegment(ctx, view, _this._p1, _this._p2, _this._color, lineWidth, { arrow: 'both' });
|
|
118
125
|
});
|
|
119
126
|
if (dist < 0.0001) {
|
|
120
127
|
this._badge.object.visible = false;
|
|
@@ -144,9 +151,7 @@ export { AcApMeasureDistanceJig };
|
|
|
144
151
|
var AcApMeasureDistanceCmd = /** @class */ (function (_super) {
|
|
145
152
|
__extends(AcApMeasureDistanceCmd, _super);
|
|
146
153
|
function AcApMeasureDistanceCmd() {
|
|
147
|
-
|
|
148
|
-
_this.mode = AcEdOpenMode.Read;
|
|
149
|
-
return _this;
|
|
154
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
150
155
|
}
|
|
151
156
|
AcApMeasureDistanceCmd.prototype.execute = function (context) {
|
|
152
157
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -158,34 +163,33 @@ var AcApMeasureDistanceCmd = /** @class */ (function (_super) {
|
|
|
158
163
|
editor = context.view.editor;
|
|
159
164
|
db = context.doc.database;
|
|
160
165
|
color = acapGetMeasurementColor(db);
|
|
161
|
-
return [4 /*yield*/,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
return [2 /*return*/];
|
|
182
|
-
p2 = p2Result.value;
|
|
183
|
-
placeDistanceMeasurement(context.view, db, p1, p2, acapGetCurrentMeasurementStyle(db));
|
|
166
|
+
return [4 /*yield*/, this.withMeasureInput(context, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
167
|
+
var p1Prompt, p1Result, p1, p2Prompt, p2Result, p2;
|
|
168
|
+
return __generator(this, function (_a) {
|
|
169
|
+
switch (_a.label) {
|
|
170
|
+
case 0:
|
|
171
|
+
p1Prompt = new AcEdPromptPointOptions(AcApI18n.t('jig.measureDistance.firstPoint'));
|
|
172
|
+
return [4 /*yield*/, editor.getPoint(p1Prompt)];
|
|
173
|
+
case 1:
|
|
174
|
+
p1Result = _a.sent();
|
|
175
|
+
if (p1Result.status !== AcEdPromptStatus.OK)
|
|
176
|
+
return [2 /*return*/];
|
|
177
|
+
p1 = p1Result.value;
|
|
178
|
+
p2Prompt = new AcEdPromptPointOptions(AcApI18n.t('jig.measureDistance.secondPoint'));
|
|
179
|
+
p2Prompt.useBasePoint = true;
|
|
180
|
+
p2Prompt.basePoint = new AcGePoint3d(p1);
|
|
181
|
+
p2Prompt.jig = new AcApMeasureDistanceJig(context.view, db, p1, color);
|
|
182
|
+
return [4 /*yield*/, editor.getPoint(p2Prompt)];
|
|
183
|
+
case 2:
|
|
184
|
+
p2Result = _a.sent();
|
|
185
|
+
if (p2Result.status !== AcEdPromptStatus.OK)
|
|
184
186
|
return [2 /*return*/];
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
p2 = p2Result.value;
|
|
188
|
+
placeDistanceMeasurement(context.view, db, p1, p2, acapGetCurrentMeasurementStyle(db));
|
|
189
|
+
return [2 /*return*/];
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
}); })];
|
|
189
193
|
case 1:
|
|
190
194
|
_a.sent();
|
|
191
195
|
return [2 /*return*/];
|
|
@@ -194,6 +198,6 @@ var AcApMeasureDistanceCmd = /** @class */ (function (_super) {
|
|
|
194
198
|
});
|
|
195
199
|
};
|
|
196
200
|
return AcApMeasureDistanceCmd;
|
|
197
|
-
}(
|
|
201
|
+
}(AcApMeasureDrawCmd));
|
|
198
202
|
export { AcApMeasureDistanceCmd };
|
|
199
203
|
//# sourceMappingURL=AcApMeasureDistanceCmd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMeasureDistanceCmd.js","sourceRoot":"","sources":["../../../src/command/measure/AcApMeasureDistanceCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"AcApMeasureDistanceCmd.js","sourceRoot":"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sB,CACzC,QAAQ,CAAC,CAAC,CAAC,iCAAiC,CAAC,CAC9C,CAAA;4CACD,QAAQ,CAAC,YAAY,GAAG,IAAI,CAAA;4CAC5B,QAAQ,CAAC,SAAS,GAAG,IAAI,WAAW,CAAC,EAAE,CAAC,CAAA;4CACxC,QAAQ,CAAC,GAAG,GAAG,IAAI,sBAAsB,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,CAAA;4CACrD,qBAAM,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAA;;4CAA1C,QAAQ,GAAG,SAA+B;4CAChD,IAAI,QAAQ,CAAC,MAAM,KAAK,gBAAgB,CAAC,EAAE;gDAAE,sBAAM;4CAC7C,EAAE,GAAG,QAAQ,CAAC,KAAM,CAAA;4CAE1B,wBAAwB,CACtB,OAAO,CAAC,IAAkB,EAC1B,EAAE,EACF,EAAE,EACF,EAAE,EACF,8BAA8B,CAAC,EAAE,CAAC,CACnC,CAAA;;;;iCACF,CAAC,EAAA;;wBAzBF,SAyBE,CAAA;;;;;KACH;IACH,6BAAC;AAAD,CAAC,AAjCD,CAA4C,kBAAkB,GAiC7D"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AcApContext } from '../../app/AcApContext';
|
|
2
|
+
import { withDrawOverlayInput } from '../AcApDrawOverlayInput';
|
|
3
|
+
import { AcApDrawStyleDrawCmd } from '../AcApDrawStyleDrawCmd';
|
|
4
|
+
/**
|
|
5
|
+
|
|
6
|
+
* Shared input session for commands that create measurement overlays.
|
|
7
|
+
|
|
8
|
+
*
|
|
9
|
+
|
|
10
|
+
* Selection mode + crosshair, matching the historical wrap in each
|
|
11
|
+
|
|
12
|
+
* measure-draw command.
|
|
13
|
+
|
|
14
|
+
*/
|
|
15
|
+
export declare const withMeasureInput: typeof withDrawOverlayInput;
|
|
16
|
+
/**
|
|
17
|
+
|
|
18
|
+
* Base class for commands that create measurement overlays.
|
|
19
|
+
|
|
20
|
+
*
|
|
21
|
+
|
|
22
|
+
* Sets Read mode and binds the phone/pad color / font-size accessory.
|
|
23
|
+
|
|
24
|
+
* Clear, visibility, and import/export stay on {@link AcEdCommand}.
|
|
25
|
+
|
|
26
|
+
*/
|
|
27
|
+
export declare abstract class AcApMeasureDrawCmd extends AcApDrawStyleDrawCmd {
|
|
28
|
+
constructor();
|
|
29
|
+
/** Run a measure-draw body inside selection mode + crosshair cursor. */
|
|
30
|
+
protected withMeasureInput(context: AcApContext, fn: () => Promise<void>): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=AcApMeasureDrawCmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApMeasureDrawCmd.d.ts","sourceRoot":"","sources":["../../../src/command/measure/AcApMeasureDrawCmd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAI9D;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,gBAAgB,6BAAuB,CAAA;AAIpD;;;;;;;;;;GAUG;AAEH,8BAAsB,kBAAmB,SAAQ,oBAAoB;;IAYnE,wEAAwE;IAExE,SAAS,CAAC,gBAAgB,CAExB,OAAO,EAAE,WAAW,EAEpB,EAAE,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAEtB,OAAO,CAAC,IAAI,CAAC;CAMjB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { AcEdOpenMode } from '../../editor/view/AcEdOpenMode';
|
|
17
|
+
import { withDrawOverlayInput } from '../AcApDrawOverlayInput';
|
|
18
|
+
import { AcApDrawStyleDrawCmd } from '../AcApDrawStyleDrawCmd';
|
|
19
|
+
/**
|
|
20
|
+
|
|
21
|
+
* Shared input session for commands that create measurement overlays.
|
|
22
|
+
|
|
23
|
+
*
|
|
24
|
+
|
|
25
|
+
* Selection mode + crosshair, matching the historical wrap in each
|
|
26
|
+
|
|
27
|
+
* measure-draw command.
|
|
28
|
+
|
|
29
|
+
*/
|
|
30
|
+
export var withMeasureInput = withDrawOverlayInput;
|
|
31
|
+
/**
|
|
32
|
+
|
|
33
|
+
* Base class for commands that create measurement overlays.
|
|
34
|
+
|
|
35
|
+
*
|
|
36
|
+
|
|
37
|
+
* Sets Read mode and binds the phone/pad color / font-size accessory.
|
|
38
|
+
|
|
39
|
+
* Clear, visibility, and import/export stay on {@link AcEdCommand}.
|
|
40
|
+
|
|
41
|
+
*/
|
|
42
|
+
var AcApMeasureDrawCmd = /** @class */ (function (_super) {
|
|
43
|
+
__extends(AcApMeasureDrawCmd, _super);
|
|
44
|
+
function AcApMeasureDrawCmd() {
|
|
45
|
+
var _this = _super.call(this) || this;
|
|
46
|
+
_this.mode = AcEdOpenMode.Read;
|
|
47
|
+
return _this;
|
|
48
|
+
}
|
|
49
|
+
/** Run a measure-draw body inside selection mode + crosshair cursor. */
|
|
50
|
+
AcApMeasureDrawCmd.prototype.withMeasureInput = function (context, fn) {
|
|
51
|
+
return withDrawOverlayInput(context, fn);
|
|
52
|
+
};
|
|
53
|
+
return AcApMeasureDrawCmd;
|
|
54
|
+
}(AcApDrawStyleDrawCmd));
|
|
55
|
+
export { AcApMeasureDrawCmd };
|
|
56
|
+
//# sourceMappingURL=AcApMeasureDrawCmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApMeasureDrawCmd.js","sourceRoot":"","sources":["../../../src/command/measure/AcApMeasureDrawCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAE7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAI9D;;;;;;;;;;GAUG;AAEH,MAAM,CAAC,IAAM,gBAAgB,GAAG,oBAAoB,CAAA;AAIpD;;;;;;;;;;GAUG;AAEH;IAAiD,sCAAoB;IAEnE;QAEE,YAAA,MAAK,WAAE,SAAA;QAEP,KAAI,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAA;;IAE/B,CAAC;IAID,wEAAwE;IAE9D,6CAAgB,GAA1B,UAEE,OAAoB,EAEpB,EAAuB;QAIvB,OAAO,oBAAoB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;IAE1C,CAAC;IAEH,yBAAC;AAAD,CAAC,AA1BD,CAAiD,oBAAoB,GA0BpE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AcDbDatabase, AcGePoint3dLike } from '@mlightcad/data-model';
|
|
2
2
|
import { AcApContext } from '../../app';
|
|
3
|
-
import { AcEdCommand } from '../../editor';
|
|
4
3
|
import { type AcApMeasurementStyle } from '../../util';
|
|
5
4
|
import { AcTrView2d } from '../../view';
|
|
5
|
+
import { AcApMeasureDrawCmd } from './AcApMeasureDrawCmd';
|
|
6
6
|
/**
|
|
7
7
|
* Commit a coordinate measurement overlay (also used when importing a sidecar).
|
|
8
8
|
*/
|
|
@@ -17,8 +17,7 @@ export declare function placePointMeasurement(view: AcTrView2d, db: AcDbDatabase
|
|
|
17
17
|
* coordinate badge via {@link AcTrHtmlTransientManager}. The overlays are
|
|
18
18
|
* cleared by {@link commitMeasurementGroup}.
|
|
19
19
|
*/
|
|
20
|
-
export declare class AcApMeasurePointCmd extends
|
|
21
|
-
constructor();
|
|
20
|
+
export declare class AcApMeasurePointCmd extends AcApMeasureDrawCmd {
|
|
22
21
|
execute(context: AcApContext): Promise<void>;
|
|
23
22
|
}
|
|
24
23
|
//# sourceMappingURL=AcApMeasurePointCmd.d.ts.map
|