@mlightcad/cad-simple-viewer 1.6.3 → 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 +23993 -16773
- package/dist/cad-simple-viewer.umd.cjs +1639 -308
- package/dist/mtext-renderer-worker.js +14590 -14441
- 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/AcApDocManager.d.ts +72 -10
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +153 -51
- 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/{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/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 +3 -2
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +2 -1
- package/lib/app/index.js.map +1 -1
- 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 +3 -0
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +3 -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 +18 -12
- 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 +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 +12 -3
- 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 +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 +132 -39
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +181 -40
- 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.js +1 -1
- package/lib/i18n/AcApI18n.js.map +1 -1
- package/lib/i18n/ar/command.d.ts +9 -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 +20 -0
- package/lib/i18n/ar/jig.d.ts.map +1 -1
- package/lib/i18n/ar/jig.js +14 -2
- package/lib/i18n/ar/jig.js.map +1 -1
- package/lib/i18n/ar/main.d.ts +70 -1
- package/lib/i18n/ar/main.d.ts.map +1 -1
- package/lib/i18n/ar/main.js +71 -2
- package/lib/i18n/ar/main.js.map +1 -1
- package/lib/i18n/cs/command.d.ts +6 -0
- package/lib/i18n/cs/command.d.ts.map +1 -1
- package/lib/i18n/cs/command.js +6 -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 +20 -0
- 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 +9 -0
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +9 -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 +20 -0
- 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/tr/command.d.ts +6 -0
- package/lib/i18n/tr/command.d.ts.map +1 -1
- package/lib/i18n/tr/command.js +6 -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 +20 -0
- 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 +9 -0
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +9 -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 +20 -0
- 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/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 +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 +13 -2
- package/lib/ui/index.d.ts.map +1 -1
- package/lib/ui/index.js +13 -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/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/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +23 -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/AcTrView2d.d.ts +35 -1
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +259 -54
- 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 +131 -37
- package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +0 -1
- package/lib/app/AcDbOpenDatabaseOptions.js.map +0 -1
- package/lib/ui/AcApDrawStyle.d.ts +0 -81
- package/lib/ui/AcApDrawStyle.d.ts.map +0 -1
- package/lib/ui/AcApDrawStyle.js +0 -170
- package/lib/ui/AcApDrawStyle.js.map +0 -1
- package/lib/ui/AcApDrawStyleToolbar.d.ts +0 -129
- package/lib/ui/AcApDrawStyleToolbar.d.ts.map +0 -1
- package/lib/ui/AcApDrawStyleToolbar.js +0 -607
- package/lib/ui/AcApDrawStyleToolbar.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AcCmColor } from '@mlightcad/data-model';
|
|
2
2
|
import type { AcEdBaseView } from '../../../editor';
|
|
3
|
+
export { MEASURE_ANGLE_ARC_RADIUS_FRACTION } from '../AcApMeasureAngleArc';
|
|
3
4
|
/**
|
|
4
5
|
* Circle geometry in world XY used by arc-length measurement overlays.
|
|
5
6
|
*/
|
|
@@ -29,14 +30,22 @@ type Point2 = {
|
|
|
29
30
|
* @param p2 - Segment end in world coordinates
|
|
30
31
|
* @param color - Stroke color
|
|
31
32
|
* @param lineWidth - Stroke width in CSS pixels (default `2`)
|
|
33
|
+
* @param strokeWidthWcs - Optional imported world-space stroke width
|
|
34
|
+
* @param arrowSizeWcs - Optional imported world-space arrow-head length
|
|
35
|
+
*
|
|
36
|
+
* Arrow heads at both endpoints freeze the jig's screen size as WCS on first
|
|
37
|
+
* paint (or use imported `arrowSizeWcs` from a sidecar), then scale with camera
|
|
38
|
+
* zoom. Live jigs use {@link acapOverlayArrowSize} instead so the head stays
|
|
39
|
+
* a constant CSS size while placing.
|
|
32
40
|
*/
|
|
33
|
-
export declare function drawMeasureSegmentOnCanvas(canvas: HTMLCanvasElement, view: AcEdBaseView, p1: Point2, p2: Point2, color: AcCmColor, lineWidth?: number): void;
|
|
41
|
+
export declare function drawMeasureSegmentOnCanvas(canvas: HTMLCanvasElement, view: AcEdBaseView, p1: Point2, p2: Point2, color: AcCmColor, lineWidth?: number, strokeWidthWcs?: number, arrowSizeWcs?: number): void;
|
|
34
42
|
/**
|
|
35
43
|
* Draws angle arm lines plus the measurement arc on a measure overlay canvas.
|
|
36
44
|
*
|
|
37
45
|
* Converts `vertex`, `arm1`, and `arm2` to screen space, strokes both arms,
|
|
38
|
-
* then draws the shorter angular sector
|
|
39
|
-
*
|
|
46
|
+
* then draws the shorter angular sector. Arc radius is
|
|
47
|
+
* {@link MEASURE_ANGLE_ARC_RADIUS_FRACTION} of the shorter **world-space**
|
|
48
|
+
* arm so it stays attached to the arms across zoom.
|
|
40
49
|
*
|
|
41
50
|
* @param canvas - Overlay canvas to paint
|
|
42
51
|
* @param view - View for world-to-screen conversion and canvas sizing
|
|
@@ -45,8 +54,9 @@ export declare function drawMeasureSegmentOnCanvas(canvas: HTMLCanvasElement, vi
|
|
|
45
54
|
* @param arm2 - Second arm endpoint in world coordinates
|
|
46
55
|
* @param color - Stroke color
|
|
47
56
|
* @param lineWidth - Stroke width in CSS pixels (default `2`)
|
|
57
|
+
* @param strokeWidthWcs - Optional imported world-space stroke width
|
|
48
58
|
*/
|
|
49
|
-
export declare function drawMeasureAngleArcOnCanvas(canvas: HTMLCanvasElement, view: AcEdBaseView, vertex: Point2, arm1: Point2, arm2: Point2, color: AcCmColor, lineWidth?: number): void;
|
|
59
|
+
export declare function drawMeasureAngleArcOnCanvas(canvas: HTMLCanvasElement, view: AcEdBaseView, vertex: Point2, arm1: Point2, arm2: Point2, color: AcCmColor, lineWidth?: number, strokeWidthWcs?: number): void;
|
|
50
60
|
/**
|
|
51
61
|
* Draws a filled polygon for an area measurement on a measure overlay canvas.
|
|
52
62
|
*
|
|
@@ -58,8 +68,9 @@ export declare function drawMeasureAngleArcOnCanvas(canvas: HTMLCanvasElement, v
|
|
|
58
68
|
* @param points - Polygon vertices in world coordinates (closed implicitly)
|
|
59
69
|
* @param color - Fill and stroke color
|
|
60
70
|
* @param lineWidth - Stroke width in CSS pixels (default `2.5`)
|
|
71
|
+
* @param strokeWidthWcs - Optional imported world-space stroke width
|
|
61
72
|
*/
|
|
62
|
-
export declare function drawMeasureAreaOnCanvas(canvas: HTMLCanvasElement, view: AcEdBaseView, points: Point2[], color: AcCmColor, lineWidth?: number): void;
|
|
73
|
+
export declare function drawMeasureAreaOnCanvas(canvas: HTMLCanvasElement, view: AcEdBaseView, points: Point2[], color: AcCmColor, lineWidth?: number, strokeWidthWcs?: number): void;
|
|
63
74
|
/**
|
|
64
75
|
* Strokes a circular arc onto an already-prepared measure overlay context.
|
|
65
76
|
*
|
|
@@ -76,8 +87,9 @@ export declare function drawMeasureAreaOnCanvas(canvas: HTMLCanvasElement, view:
|
|
|
76
87
|
* @param color - Stroke color
|
|
77
88
|
* @param lineWidth - Stroke width in CSS pixels
|
|
78
89
|
* @param through - Optional point on the measured sweep
|
|
90
|
+
* @param strokeWidthWcs - Optional imported world-space stroke width
|
|
79
91
|
*/
|
|
80
|
-
export declare function strokeMeasureArcOnContext(ctx: CanvasRenderingContext2D, view: AcEdBaseView, g: AcApMeasureCircleGeom, start: Point2, end: Point2, color: AcCmColor, lineWidth: number, through?: Point2): void;
|
|
92
|
+
export declare function strokeMeasureArcOnContext(ctx: CanvasRenderingContext2D, view: AcEdBaseView, g: AcApMeasureCircleGeom, start: Point2, end: Point2, color: AcCmColor, lineWidth: number, through?: Point2, strokeWidthWcs?: number): void;
|
|
81
93
|
/**
|
|
82
94
|
* Strokes an arc between two points on a circle onto a measure canvas.
|
|
83
95
|
*
|
|
@@ -92,8 +104,9 @@ export declare function strokeMeasureArcOnContext(ctx: CanvasRenderingContext2D,
|
|
|
92
104
|
* @param color - Stroke color
|
|
93
105
|
* @param lineWidth - Stroke width in CSS pixels (default `4`)
|
|
94
106
|
* @param through - Optional point on the measured sweep (major vs minor arc)
|
|
107
|
+
* @param strokeWidthWcs - Optional imported world-space stroke width
|
|
95
108
|
*/
|
|
96
|
-
export declare function drawMeasureArcOnCanvas(canvas: HTMLCanvasElement, view: AcEdBaseView, g: AcApMeasureCircleGeom, start: Point2, end: Point2, color: AcCmColor, lineWidth?: number, through?: Point2): void;
|
|
109
|
+
export declare function drawMeasureArcOnCanvas(canvas: HTMLCanvasElement, view: AcEdBaseView, g: AcApMeasureCircleGeom, start: Point2, end: Point2, color: AcCmColor, lineWidth?: number, through?: Point2, strokeWidthWcs?: number): void;
|
|
97
110
|
/**
|
|
98
111
|
* Computes polygon area using the shoelace formula.
|
|
99
112
|
*
|
|
@@ -122,5 +135,4 @@ export declare function measureCentroid(pts: Point2[]): {
|
|
|
122
135
|
* @returns Interior (smaller) angle in degrees
|
|
123
136
|
*/
|
|
124
137
|
export declare function measureAngleDeg(vertex: Point2, arm1: Point2, arm2: Point2): number;
|
|
125
|
-
export {};
|
|
126
138
|
//# sourceMappingURL=AcApMeasureDrawUtil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMeasureDrawUtil.d.ts","sourceRoot":"","sources":["../../../../src/command/measure/entity/AcApMeasureDrawUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"AcApMeasureDrawUtil.d.ts","sourceRoot":"","sources":["../../../../src/command/measure/entity/AcApMeasureDrawUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAUnD,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAA;AAE1E;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAA;IACV,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAA;IACV,oCAAoC;IACpC,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;GAEG;AACH,KAAK,MAAM,GAAG;IACZ,oBAAoB;IACpB,CAAC,EAAE,MAAM,CAAA;IACT,oBAAoB;IACpB,CAAC,E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,EACb,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS,EAChB,SAAS,SAAI,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,cAAc,CAAC,EAAE,MAAM,GACtB,IAAI,CAeN;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CASzD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAIvE;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,MAAM,CASR"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { AcGeCircArc2d, AcGeMathUtil } from '@mlightcad/data-model';
|
|
2
2
|
import { acapColorToCssAlpha, acapCssColor } from '../../../util';
|
|
3
|
+
import { acapDrawOverlayArrowHead, acapScaledOverlayArrowSize, acapScaledOverlayLineWidth, acapWcsToScreenPx } from '../../overlay/AcApOverlayDrawUtil';
|
|
4
|
+
import { measureAngleArcRadiusWcs } from '../AcApMeasureAngleArc';
|
|
5
|
+
export { MEASURE_ANGLE_ARC_RADIUS_FRACTION } from '../AcApMeasureAngleArc';
|
|
3
6
|
/**
|
|
4
7
|
* Sizes and clears a measure overlay canvas to match the view viewport.
|
|
5
8
|
*
|
|
@@ -42,8 +45,15 @@ function prepareMeasureCanvas(canvas, view) {
|
|
|
42
45
|
* @param p2 - Segment end in world coordinates
|
|
43
46
|
* @param color - Stroke color
|
|
44
47
|
* @param lineWidth - Stroke width in CSS pixels (default `2`)
|
|
48
|
+
* @param strokeWidthWcs - Optional imported world-space stroke width
|
|
49
|
+
* @param arrowSizeWcs - Optional imported world-space arrow-head length
|
|
50
|
+
*
|
|
51
|
+
* Arrow heads at both endpoints freeze the jig's screen size as WCS on first
|
|
52
|
+
* paint (or use imported `arrowSizeWcs` from a sidecar), then scale with camera
|
|
53
|
+
* zoom. Live jigs use {@link acapOverlayArrowSize} instead so the head stays
|
|
54
|
+
* a constant CSS size while placing.
|
|
45
55
|
*/
|
|
46
|
-
export function drawMeasureSegmentOnCanvas(canvas, view, p1, p2, color, lineWidth) {
|
|
56
|
+
export function drawMeasureSegmentOnCanvas(canvas, view, p1, p2, color, lineWidth, strokeWidthWcs, arrowSizeWcs) {
|
|
47
57
|
if (lineWidth === void 0) { lineWidth = 2; }
|
|
48
58
|
var prepared = prepareMeasureCanvas(canvas, view);
|
|
49
59
|
if (!prepared)
|
|
@@ -54,17 +64,25 @@ export function drawMeasureSegmentOnCanvas(canvas, view, p1, p2, color, lineWidt
|
|
|
54
64
|
ctx.beginPath();
|
|
55
65
|
ctx.moveTo(a.x, a.y);
|
|
56
66
|
ctx.lineTo(b.x, b.y);
|
|
57
|
-
|
|
58
|
-
ctx.
|
|
67
|
+
var css = acapCssColor(color);
|
|
68
|
+
ctx.strokeStyle = css;
|
|
69
|
+
var strokeWidth = acapScaledOverlayLineWidth(lineWidth, canvas, view, strokeWidthWcs);
|
|
70
|
+
ctx.lineWidth = strokeWidth;
|
|
59
71
|
ctx.stroke();
|
|
72
|
+
var arrowSize = acapScaledOverlayArrowSize(canvas, view, arrowSizeWcs);
|
|
73
|
+
if (Math.hypot(b.x - a.x, b.y - a.y) >= arrowSize) {
|
|
74
|
+
acapDrawOverlayArrowHead(ctx, b, a, css, arrowSize);
|
|
75
|
+
acapDrawOverlayArrowHead(ctx, a, b, css, arrowSize);
|
|
76
|
+
}
|
|
60
77
|
ctx.restore();
|
|
61
78
|
}
|
|
62
79
|
/**
|
|
63
80
|
* Draws angle arm lines plus the measurement arc on a measure overlay canvas.
|
|
64
81
|
*
|
|
65
82
|
* Converts `vertex`, `arm1`, and `arm2` to screen space, strokes both arms,
|
|
66
|
-
* then draws the shorter angular sector
|
|
67
|
-
*
|
|
83
|
+
* then draws the shorter angular sector. Arc radius is
|
|
84
|
+
* {@link MEASURE_ANGLE_ARC_RADIUS_FRACTION} of the shorter **world-space**
|
|
85
|
+
* arm so it stays attached to the arms across zoom.
|
|
68
86
|
*
|
|
69
87
|
* @param canvas - Overlay canvas to paint
|
|
70
88
|
* @param view - View for world-to-screen conversion and canvas sizing
|
|
@@ -73,8 +91,9 @@ export function drawMeasureSegmentOnCanvas(canvas, view, p1, p2, color, lineWidt
|
|
|
73
91
|
* @param arm2 - Second arm endpoint in world coordinates
|
|
74
92
|
* @param color - Stroke color
|
|
75
93
|
* @param lineWidth - Stroke width in CSS pixels (default `2`)
|
|
94
|
+
* @param strokeWidthWcs - Optional imported world-space stroke width
|
|
76
95
|
*/
|
|
77
|
-
export function drawMeasureAngleArcOnCanvas(canvas, view, vertex, arm1, arm2, color, lineWidth) {
|
|
96
|
+
export function drawMeasureAngleArcOnCanvas(canvas, view, vertex, arm1, arm2, color, lineWidth, strokeWidthWcs) {
|
|
78
97
|
if (lineWidth === void 0) { lineWidth = 2; }
|
|
79
98
|
var prepared = prepareMeasureCanvas(canvas, view);
|
|
80
99
|
if (!prepared)
|
|
@@ -84,22 +103,22 @@ export function drawMeasureAngleArcOnCanvas(canvas, view, vertex, arm1, arm2, co
|
|
|
84
103
|
var sa1 = view.worldToScreen(arm1);
|
|
85
104
|
var sa2 = view.worldToScreen(arm2);
|
|
86
105
|
ctx.strokeStyle = acapCssColor(color);
|
|
87
|
-
ctx.lineWidth = lineWidth;
|
|
106
|
+
ctx.lineWidth = acapScaledOverlayLineWidth(lineWidth, canvas, view, strokeWidthWcs);
|
|
88
107
|
ctx.beginPath();
|
|
89
108
|
ctx.moveTo(sv.x, sv.y);
|
|
90
109
|
ctx.lineTo(sa1.x, sa1.y);
|
|
91
110
|
ctx.moveTo(sv.x, sv.y);
|
|
92
111
|
ctx.lineTo(sa2.x, sa2.y);
|
|
93
112
|
ctx.stroke();
|
|
94
|
-
var len1 = Math.hypot(sa1.x - sv.x, sa1.y - sv.y);
|
|
95
|
-
var len2 = Math.hypot(sa2.x - sv.x, sa2.y - sv.y);
|
|
96
|
-
var arcR = Math.max(Math.min(len1, len2) * 0.3, 15);
|
|
97
113
|
var startAngle = Math.atan2(sa1.y - sv.y, sa1.x - sv.x);
|
|
98
114
|
var endAngle = Math.atan2(sa2.y - sv.y, sa2.x - sv.x);
|
|
99
115
|
var antiClockwise = AcGeMathUtil.normalizeAngle(endAngle - startAngle) > Math.PI;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
116
|
+
var arcR = acapWcsToScreenPx(measureAngleArcRadiusWcs(vertex, arm1, arm2), view);
|
|
117
|
+
if (arcR > 0) {
|
|
118
|
+
ctx.beginPath();
|
|
119
|
+
ctx.arc(sv.x, sv.y, arcR, startAngle, endAngle, antiClockwise);
|
|
120
|
+
ctx.stroke();
|
|
121
|
+
}
|
|
103
122
|
ctx.restore();
|
|
104
123
|
}
|
|
105
124
|
/**
|
|
@@ -113,8 +132,9 @@ export function drawMeasureAngleArcOnCanvas(canvas, view, vertex, arm1, arm2, co
|
|
|
113
132
|
* @param points - Polygon vertices in world coordinates (closed implicitly)
|
|
114
133
|
* @param color - Fill and stroke color
|
|
115
134
|
* @param lineWidth - Stroke width in CSS pixels (default `2.5`)
|
|
135
|
+
* @param strokeWidthWcs - Optional imported world-space stroke width
|
|
116
136
|
*/
|
|
117
|
-
export function drawMeasureAreaOnCanvas(canvas, view, points, color, lineWidth) {
|
|
137
|
+
export function drawMeasureAreaOnCanvas(canvas, view, points, color, lineWidth, strokeWidthWcs) {
|
|
118
138
|
if (lineWidth === void 0) { lineWidth = 2.5; }
|
|
119
139
|
var prepared = prepareMeasureCanvas(canvas, view);
|
|
120
140
|
if (!prepared || points.length < 3) {
|
|
@@ -131,7 +151,7 @@ export function drawMeasureAreaOnCanvas(canvas, view, points, color, lineWidth)
|
|
|
131
151
|
ctx.fillStyle = acapColorToCssAlpha(color, 0.2);
|
|
132
152
|
ctx.fill();
|
|
133
153
|
ctx.strokeStyle = acapCssColor(color);
|
|
134
|
-
ctx.lineWidth = lineWidth;
|
|
154
|
+
ctx.lineWidth = acapScaledOverlayLineWidth(lineWidth, canvas, view, strokeWidthWcs);
|
|
135
155
|
ctx.stroke();
|
|
136
156
|
ctx.restore();
|
|
137
157
|
}
|
|
@@ -151,8 +171,9 @@ export function drawMeasureAreaOnCanvas(canvas, view, points, color, lineWidth)
|
|
|
151
171
|
* @param color - Stroke color
|
|
152
172
|
* @param lineWidth - Stroke width in CSS pixels
|
|
153
173
|
* @param through - Optional point on the measured sweep
|
|
174
|
+
* @param strokeWidthWcs - Optional imported world-space stroke width
|
|
154
175
|
*/
|
|
155
|
-
export function strokeMeasureArcOnContext(ctx, view, g, start, end, color, lineWidth, through) {
|
|
176
|
+
export function strokeMeasureArcOnContext(ctx, view, g, start, end, color, lineWidth, through, strokeWidthWcs) {
|
|
156
177
|
var sc = view.worldToScreen({ x: g.cx, y: g.cy });
|
|
157
178
|
var ss = view.worldToScreen(start);
|
|
158
179
|
var se = view.worldToScreen(end);
|
|
@@ -164,13 +185,17 @@ export function strokeMeasureArcOnContext(ctx, view, g, start, end, color, lineW
|
|
|
164
185
|
var measured = through
|
|
165
186
|
? AcGeCircArc2d.tryCreateByThreePoints(start, through, end)
|
|
166
187
|
: undefined;
|
|
188
|
+
// Collinear three-point input cannot define a circle; do not stroke the
|
|
189
|
+
// previous circumcircle (start/end no longer lie on `g`).
|
|
190
|
+
if (through && !measured)
|
|
191
|
+
return;
|
|
167
192
|
var antiClockwise = measured
|
|
168
193
|
? !measured.clockwise
|
|
169
194
|
: AcGeMathUtil.normalizeAngle(ea - sa) > Math.PI;
|
|
170
195
|
ctx.beginPath();
|
|
171
196
|
ctx.arc(sc.x, sc.y, screenR, sa, ea, antiClockwise);
|
|
172
197
|
ctx.strokeStyle = acapCssColor(color);
|
|
173
|
-
ctx.lineWidth = lineWidth;
|
|
198
|
+
ctx.lineWidth = acapScaledOverlayLineWidth(lineWidth, ctx.canvas, view, strokeWidthWcs);
|
|
174
199
|
ctx.stroke();
|
|
175
200
|
}
|
|
176
201
|
/**
|
|
@@ -187,13 +212,14 @@ export function strokeMeasureArcOnContext(ctx, view, g, start, end, color, lineW
|
|
|
187
212
|
* @param color - Stroke color
|
|
188
213
|
* @param lineWidth - Stroke width in CSS pixels (default `4`)
|
|
189
214
|
* @param through - Optional point on the measured sweep (major vs minor arc)
|
|
215
|
+
* @param strokeWidthWcs - Optional imported world-space stroke width
|
|
190
216
|
*/
|
|
191
|
-
export function drawMeasureArcOnCanvas(canvas, view, g, start, end, color, lineWidth, through) {
|
|
217
|
+
export function drawMeasureArcOnCanvas(canvas, view, g, start, end, color, lineWidth, through, strokeWidthWcs) {
|
|
192
218
|
if (lineWidth === void 0) { lineWidth = 4; }
|
|
193
219
|
var prepared = prepareMeasureCanvas(canvas, view);
|
|
194
220
|
if (!prepared)
|
|
195
221
|
return;
|
|
196
|
-
strokeMeasureArcOnContext(prepared.ctx, view, g, start, end, color, lineWidth, through);
|
|
222
|
+
strokeMeasureArcOnContext(prepared.ctx, view, g, start, end, color, lineWidth, through, strokeWidthWcs);
|
|
197
223
|
prepared.ctx.restore();
|
|
198
224
|
}
|
|
199
225
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMeasureDrawUtil.js","sourceRoot":"","sources":["../../../../src/command/measure/entity/AcApMeasureDrawUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,YAAY,EACb,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"AcApMeasureDrawUtil.js","sourceRoot":"","sources":["../../../../src/command/measure/entity/AcApMeasureDrawUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,YAAY,EACb,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAAE,mBAAmB,EAAE,YA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AAA;IAC7B,IAAM,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAA;IAC7B,IAAM,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;IACjC,IAAM,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;IACnC,IAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAA;IAC5C,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAA;AAC9B,CAAC"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import type { AcDbDatabase, AcGePoint3dLike } from '@mlightcad/data-model';
|
|
2
|
-
import { AcTrHtmlGroup } from '@mlightcad/three-renderer';
|
|
3
|
-
import type
|
|
2
|
+
import { type AcTrHtmlElement, AcTrHtmlGroup } from '@mlightcad/three-renderer';
|
|
3
|
+
import { type AcApMeasurementStyle } from '../../../util';
|
|
4
4
|
import type { AcTrView2d } from '../../../view';
|
|
5
5
|
import { AcApOverlayEntity, type AcApOverlaySerializable, type AcApOverlayWorldDrawResult } from '../../overlay';
|
|
6
6
|
import { type AcApMeasurementGroupExtras } from '../AcApMeasurementStore';
|
|
7
|
-
import type { AcApMeasurementRecord } from '../AcApMeasurementTypes';
|
|
7
|
+
import type { AcApMeasurementRecord, AcApMeasurementSidecarStyle } from '../AcApMeasurementTypes';
|
|
8
|
+
/**
|
|
9
|
+
* Unique overlay id for a measurement group.
|
|
10
|
+
*
|
|
11
|
+
* `Date.now()` alone collides when several distances are committed in the
|
|
12
|
+
* same millisecond (continuous measure). The HTML manager replaces groups
|
|
13
|
+
* with the same id, which drops earlier segments.
|
|
14
|
+
*/
|
|
15
|
+
export declare function newMeasureOverlayId(prefix: string): string;
|
|
8
16
|
/**
|
|
9
17
|
* Options shared by measurement entity constructors.
|
|
10
18
|
*
|
|
@@ -19,6 +27,12 @@ export interface AcApMeasureEntityOptions {
|
|
|
19
27
|
layoutId?: string;
|
|
20
28
|
/** Visual style (color, line weight, font size) for CAD and HTML overlays. */
|
|
21
29
|
style: AcApMeasurementStyle;
|
|
30
|
+
/** World-space badge height from sidecar import (optional). */
|
|
31
|
+
textHeightWcs?: number;
|
|
32
|
+
/** World-space stroke width from sidecar import (optional). */
|
|
33
|
+
strokeWidthWcs?: number;
|
|
34
|
+
/** World-space arrow-head length from sidecar import (optional). */
|
|
35
|
+
arrowSizeWcs?: number;
|
|
22
36
|
}
|
|
23
37
|
/**
|
|
24
38
|
* Result of drawing a measurement: HTML group plus store extras for commit.
|
|
@@ -52,14 +66,23 @@ export declare abstract class AcApMeasureEntity extends AcApOverlayEntity implem
|
|
|
52
66
|
protected readonly entityId: string;
|
|
53
67
|
/** Optional layout override from construction options. */
|
|
54
68
|
protected readonly layoutIdOption: string | undefined;
|
|
69
|
+
/** Imported world-space badge height (sidecar). */
|
|
70
|
+
protected readonly textHeightWcs?: number;
|
|
71
|
+
/** Imported world-space stroke width (sidecar). */
|
|
72
|
+
protected readonly strokeWidthWcs?: number;
|
|
73
|
+
/** Imported world-space arrow-head length (sidecar). */
|
|
74
|
+
protected readonly arrowSizeWcs?: number;
|
|
55
75
|
/**
|
|
56
76
|
* Creates a measure entity with the given id, layout, and style.
|
|
57
77
|
*
|
|
58
78
|
* @param id - Stable measurement identifier
|
|
59
79
|
* @param layoutId - Layout BTR id, or `undefined` to resolve from the view
|
|
60
80
|
* @param style - Measurement visual style
|
|
81
|
+
* @param textHeightWcs - Optional imported world-space text height
|
|
82
|
+
* @param strokeWidthWcs - Optional imported world-space stroke width
|
|
83
|
+
* @param arrowSizeWcs - Optional imported world-space arrow-head length
|
|
61
84
|
*/
|
|
62
|
-
constructor(id: string, layoutId: string | undefined, style: AcApMeasurementStyle);
|
|
85
|
+
constructor(id: string, layoutId: string | undefined, style: AcApMeasurementStyle, textHeightWcs?: number, strokeWidthWcs?: number, arrowSizeWcs?: number);
|
|
63
86
|
/**
|
|
64
87
|
* Stable identifier for this measurement entity.
|
|
65
88
|
*
|
|
@@ -70,12 +93,14 @@ export declare abstract class AcApMeasureEntity extends AcApOverlayEntity implem
|
|
|
70
93
|
* Builds a serializable snapshot of this measurement.
|
|
71
94
|
*
|
|
72
95
|
* Geometry is taken from construction-time fields; `layoutId` may override
|
|
73
|
-
* the layout stored on the record.
|
|
96
|
+
* the layout stored on the record. When `view` is provided, style includes
|
|
97
|
+
* world-space text / stroke sizes for camera-independent import.
|
|
74
98
|
*
|
|
75
99
|
* @param layoutId - Optional layout BTR id written onto the record
|
|
100
|
+
* @param view - Optional view used to convert screen style to WCS
|
|
76
101
|
* @returns Sidecar-ready measurement record
|
|
77
102
|
*/
|
|
78
|
-
abstract toRecord(layoutId?: string): AcApMeasurementRecord;
|
|
103
|
+
abstract toRecord(layoutId?: string, view?: AcTrView2d): AcApMeasurementRecord;
|
|
79
104
|
/**
|
|
80
105
|
* Hit-tests this measurement's geometry against a canvas point.
|
|
81
106
|
*
|
|
@@ -143,6 +168,16 @@ export declare abstract class AcApMeasureEntity extends AcApOverlayEntity implem
|
|
|
143
168
|
* @returns Layout BTR id, or `undefined` if neither is available
|
|
144
169
|
*/
|
|
145
170
|
protected resolveLayoutId(view: AcTrView2d): string | undefined;
|
|
171
|
+
/** Sidecar style including world-space sizes at the current view. */
|
|
172
|
+
protected serializeStyle(view?: AcTrView2d): AcApMeasurementSidecarStyle;
|
|
173
|
+
/**
|
|
174
|
+
* Seeds world-space sizes onto HTML overlays and canvases before first paint.
|
|
175
|
+
*
|
|
176
|
+
* Prefers an explicit import {@link textHeightWcs}. Otherwise resolves from
|
|
177
|
+
* the live style: custom keeps the authored WCS height; Fit-to-screen bakes
|
|
178
|
+
* the current screen font size into WCS at commit time.
|
|
179
|
+
*/
|
|
180
|
+
protected seedOverlaySizes(view: AcTrView2d, elements: readonly AcTrHtmlElement[], canvases?: readonly HTMLElement[]): void;
|
|
146
181
|
}
|
|
147
182
|
export type { AcGePoint3dLike };
|
|
148
183
|
//# sourceMappingURL=AcApMeasureEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMeasureEntity.d.ts","sourceRoot":"","sources":["../../../../src/command/measure/entity/AcApMeasureEntity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,
|
|
1
|
+
{"version":3,"file":"AcApMeasureEntity.d.ts","sourceRoot":"","sources":["../../../../src/command/measure/entity/AcApMeasureEntity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,KAAK,eAAe,EACpB,aAAa,EAAC,MAAM,2BAA2B,CAAA;AAEjD,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EACL,iBAAiB,EACjB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAEhC,MAAM,eAAe,CAAA;AAGtB,OAAO,EACL,KAAK,0BAA0B,EAGhC,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EACV,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,yBAAyB,CAAA;AAEhC;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC,kFAAkF;IAClF,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,8EAA8E;IAC9E,KAAK,EAAE,oBAAoB,CAAA;IAC3B,+DAA+D;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,+DAA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MAAM,CAAA;KAAE,EAChC,aAAa,EAAE,CAAC,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK;QAClD,CAAC,EAAE,MAAM,CAAA;QACT,CAAC,EAAE,MAAM,CAAA;KACV,EACD,SAAS,EAAE,MAAM,GAChB,OAAO;IASV;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,YAAY,GAAG,IAAI;IAUhD;;;;;;;;OAQG;IACH,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,0BAA0B;IAOpE;;;;;;OAMG;IACH,SAAS,CAAC,QAAQ,CAAC,kBAAkB,CACnC,IAAI,EAAE,UAAU,EAChB,EAAE,EAAE,YAAY,GACf,0BAA0B;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,aAAa;IAStD;;;;;;;;OAQG;IACH,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS;IAI/D,qEAAqE;IACrE,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,UAAU,GAAG,2BAA2B;IAIxE;;;;;;OAMG;IACH,SAAS,CAAC,gBAAgB,CACxB,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,SAAS,eAAe,EAAE,EACpC,QAAQ,GAAE,SAAS,WAAW,EAAO,GACpC,IAAI;CAYR;AAED,YAAY,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -25,9 +25,21 @@ var __assign = (this && this.__assign) || function () {
|
|
|
25
25
|
return __assign.apply(this, arguments);
|
|
26
26
|
};
|
|
27
27
|
import { AcTrHtmlGroup } from '@mlightcad/three-renderer';
|
|
28
|
-
import {
|
|
28
|
+
import { acapMeasurementCanvasLineWidth } from '../../../util';
|
|
29
|
+
import { AcApOverlayEntity, acapSeedOverlaySizesFromWcs } from '../../overlay';
|
|
29
30
|
import { hitTestMeasurementGeometry } from '../AcApMeasurementGeometry';
|
|
31
|
+
import { serializeMeasurementStyle } from '../AcApMeasurementSidecar';
|
|
30
32
|
import { commitMeasurementGroup, MEASUREMENT_LAYER } from '../AcApMeasurementStore';
|
|
33
|
+
/**
|
|
34
|
+
* Unique overlay id for a measurement group.
|
|
35
|
+
*
|
|
36
|
+
* `Date.now()` alone collides when several distances are committed in the
|
|
37
|
+
* same millisecond (continuous measure). The HTML manager replaces groups
|
|
38
|
+
* with the same id, which drops earlier segments.
|
|
39
|
+
*/
|
|
40
|
+
export function newMeasureOverlayId(prefix) {
|
|
41
|
+
return "".concat(prefix, "-").concat(Date.now(), "-").concat(Math.random().toString(36).slice(2, 8));
|
|
42
|
+
}
|
|
31
43
|
/**
|
|
32
44
|
* Base class for measurement overlays (distance / angle / area / arc / point).
|
|
33
45
|
*
|
|
@@ -47,12 +59,18 @@ var AcApMeasureEntity = /** @class */ (function (_super) {
|
|
|
47
59
|
* @param id - Stable measurement identifier
|
|
48
60
|
* @param layoutId - Layout BTR id, or `undefined` to resolve from the view
|
|
49
61
|
* @param style - Measurement visual style
|
|
62
|
+
* @param textHeightWcs - Optional imported world-space text height
|
|
63
|
+
* @param strokeWidthWcs - Optional imported world-space stroke width
|
|
64
|
+
* @param arrowSizeWcs - Optional imported world-space arrow-head length
|
|
50
65
|
*/
|
|
51
|
-
function AcApMeasureEntity(id, layoutId, style) {
|
|
66
|
+
function AcApMeasureEntity(id, layoutId, style, textHeightWcs, strokeWidthWcs, arrowSizeWcs) {
|
|
52
67
|
var _this = _super.call(this) || this;
|
|
53
68
|
_this.entityId = id;
|
|
54
69
|
_this.layoutIdOption = layoutId;
|
|
55
70
|
_this.style = style;
|
|
71
|
+
_this.textHeightWcs = textHeightWcs;
|
|
72
|
+
_this.strokeWidthWcs = strokeWidthWcs;
|
|
73
|
+
_this.arrowSizeWcs = arrowSizeWcs;
|
|
56
74
|
return _this;
|
|
57
75
|
}
|
|
58
76
|
Object.defineProperty(AcApMeasureEntity.prototype, "id", {
|
|
@@ -92,8 +110,11 @@ var AcApMeasureEntity = /** @class */ (function (_super) {
|
|
|
92
110
|
* @param db - Drawing database used for unit/format labels
|
|
93
111
|
*/
|
|
94
112
|
AcApMeasureEntity.prototype.commit = function (view, db) {
|
|
113
|
+
var _a;
|
|
95
114
|
var drawn = this.subWorldDrawWithDb(view, db);
|
|
96
115
|
commitMeasurementGroup(view, drawn.group, __assign(__assign({}, drawn.extras), { dispose: drawn.dispose }));
|
|
116
|
+
// Bind after manager.add so pointer capture targets a published DOM node.
|
|
117
|
+
(_a = drawn.bindGrips) === null || _a === void 0 ? void 0 : _a.call(drawn);
|
|
97
118
|
};
|
|
98
119
|
/**
|
|
99
120
|
* Overlay `worldDraw` hook — not supported for measurements.
|
|
@@ -135,6 +156,31 @@ var AcApMeasureEntity = /** @class */ (function (_super) {
|
|
|
135
156
|
var _a;
|
|
136
157
|
return (_a = this.layoutIdOption) !== null && _a !== void 0 ? _a : view.activeLayoutBtrId;
|
|
137
158
|
};
|
|
159
|
+
/** Sidecar style including world-space sizes at the current view. */
|
|
160
|
+
AcApMeasureEntity.prototype.serializeStyle = function (view) {
|
|
161
|
+
return serializeMeasurementStyle(this.style, view);
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Seeds world-space sizes onto HTML overlays and canvases before first paint.
|
|
165
|
+
*
|
|
166
|
+
* Prefers an explicit import {@link textHeightWcs}. Otherwise resolves from
|
|
167
|
+
* the live style: custom keeps the authored WCS height; Fit-to-screen bakes
|
|
168
|
+
* the current screen font size into WCS at commit time.
|
|
169
|
+
*/
|
|
170
|
+
AcApMeasureEntity.prototype.seedOverlaySizes = function (view, elements, canvases) {
|
|
171
|
+
var _a, _b;
|
|
172
|
+
if (canvases === void 0) { canvases = []; }
|
|
173
|
+
var sidecar = this.serializeStyle(view);
|
|
174
|
+
acapSeedOverlaySizesFromWcs(view, {
|
|
175
|
+
textHeightWcs: (_a = this.textHeightWcs) !== null && _a !== void 0 ? _a : sidecar.textHeightWcs,
|
|
176
|
+
strokeWidthWcs: this.strokeWidthWcs,
|
|
177
|
+
arrowSizeWcs: (_b = this.arrowSizeWcs) !== null && _b !== void 0 ? _b : sidecar.arrowSizeWcs,
|
|
178
|
+
fontSizePx: this.style.fontSize,
|
|
179
|
+
strokeScreenPx: acapMeasurementCanvasLineWidth(this.style.lineWeight),
|
|
180
|
+
elements: elements,
|
|
181
|
+
canvases: canvases
|
|
182
|
+
});
|
|
183
|
+
};
|
|
138
184
|
return AcApMeasureEntity;
|
|
139
185
|
}(AcApOverlayEntity));
|
|
140
186
|
export { AcApMeasureEntity };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMeasureEntity.js","sourceRoot":"","sources":["../../../../src/command/measure/entity/AcApMeasureEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"AcApMeasureEntity.js","sourceRoot":"","sources":["../../../../src/command/measure/entity/AcApMeasureEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,OAAO,EAEL,aAAa,EAAC,MAAM,2BAA2B,CAAA;AAEjD,OAAO,EACL,8BAA8B,EAE/B,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,iBAAiB,EAGjB,2BAA2B,EAC5B,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,EAEL,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,yBAAyB,CAAA;AAMhC;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAc;IAChD,OAAO,UAAG,MAAM,cAAI,IAAI,CAAC,GAAG,EAAE,cAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,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MeasureEntity';
|
|
|
5
5
|
*
|
|
6
6
|
* Pair with {@link AcApMeasureEntity.toRecord} for the serialize half of the
|
|
7
7
|
* overlay persistence protocol. Deserializes the record's style and dispatches
|
|
8
|
-
* on `geometry.type` to the matching entity constructor (`distance`,
|
|
9
|
-
* `area`, `arc`, or `point`).
|
|
8
|
+
* on `geometry.type` to the matching entity constructor (`distance`,
|
|
9
|
+
* `angle`, `area`, `arc`, or `point`).
|
|
10
10
|
*
|
|
11
11
|
* @param record - Persisted measurement record to rehydrate
|
|
12
12
|
* @returns Measure entity ready for {@link AcApMeasureEntity.commit}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMeasureEntityFactory.d.ts","sourceRoot":"","sources":["../../../../src/command/measure/entity/AcApMeasureEntityFactory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAKpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAG5D;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,qBAAqB,GAC5B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"AcApMeasureEntityFactory.d.ts","sourceRoot":"","sources":["../../../../src/command/measure/entity/AcApMeasureEntityFactory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAKpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAG5D;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,qBAAqB,GAC5B,iBAAiB,CA4CnB"}
|
|
@@ -9,15 +9,22 @@ import { AcApMeasurePointEntity } from './AcApMeasurePointEntity';
|
|
|
9
9
|
*
|
|
10
10
|
* Pair with {@link AcApMeasureEntity.toRecord} for the serialize half of the
|
|
11
11
|
* overlay persistence protocol. Deserializes the record's style and dispatches
|
|
12
|
-
* on `geometry.type` to the matching entity constructor (`distance`,
|
|
13
|
-
* `area`, `arc`, or `point`).
|
|
12
|
+
* on `geometry.type` to the matching entity constructor (`distance`,
|
|
13
|
+
* `angle`, `area`, `arc`, or `point`).
|
|
14
14
|
*
|
|
15
15
|
* @param record - Persisted measurement record to rehydrate
|
|
16
16
|
* @returns Measure entity ready for {@link AcApMeasureEntity.commit}
|
|
17
17
|
*/
|
|
18
18
|
export function createMeasureEntityFromRecord(record) {
|
|
19
19
|
var style = deserializeMeasurementStyle(record.style);
|
|
20
|
-
var options = {
|
|
20
|
+
var options = {
|
|
21
|
+
id: record.id,
|
|
22
|
+
layoutId: record.layoutId,
|
|
23
|
+
style: style,
|
|
24
|
+
textHeightWcs: record.style.textHeightWcs,
|
|
25
|
+
strokeWidthWcs: record.style.strokeWidthWcs,
|
|
26
|
+
arrowSizeWcs: record.style.arrowSizeWcs
|
|
27
|
+
};
|
|
21
28
|
var geom = record.geometry;
|
|
22
29
|
switch (geom.type) {
|
|
23
30
|
case 'distance':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMeasureEntityFactory.js","sourceRoot":"","sources":["../../../../src/command/measure/entity/AcApMeasureEntityFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAA;AAEvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE;;;;;;;;;;GAUG;AACH,MAAM,UAAU,6BAA6B,CAC3C,MAA6B;IAE7B,IAAM,KAAK,GAAG,2BAA2B,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IACvD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,EAAE,CAAC,EAAE,EAChD,OAAO,CACR,CAAA;IACL,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared measurement grip helpers (selection + angle badge placement).
|
|
3
|
+
*/
|
|
4
|
+
import type { AcTrView2d } from '../../../view';
|
|
5
|
+
/**
|
|
6
|
+
* Select a measurement HTML group (syncs store selection via onSelectedChanged).
|
|
7
|
+
*
|
|
8
|
+
* @param view - Active 2D view.
|
|
9
|
+
* @param id - Measurement / group id to select.
|
|
10
|
+
*/
|
|
11
|
+
export declare function selectMeasurementGroup(view: AcTrView2d, id: string): void;
|
|
12
|
+
/**
|
|
13
|
+
* World-space badge anchor along the angle bisector.
|
|
14
|
+
*
|
|
15
|
+
* @param vertex - Angle vertex.
|
|
16
|
+
* @param arm1 - First arm endpoint.
|
|
17
|
+
* @param arm2 - Second arm endpoint.
|
|
18
|
+
* @returns Badge position in world XY.
|
|
19
|
+
*/
|
|
20
|
+
export declare function measureAngleBadgeWorld(vertex: {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
}, arm1: {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
}, arm2: {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
}): {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=AcApMeasureEntityGrips.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApMeasureEntityGrips.d.ts","sourceRoot":"","sources":["../../../../src/command/measure/entity/AcApMeasureEntityGrips.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE/C;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAEzE;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAChC,IAAI,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAC9B,IAAI,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7B;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CA6B1B"}
|