@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
|
@@ -61,28 +61,28 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
import { AcTrHtmlBadge } from '@mlightcad/three-renderer';
|
|
64
|
-
import {
|
|
64
|
+
import { AcEdPromptPointOptions, AcEdPromptStatus } from '../../editor';
|
|
65
65
|
import { AcApI18n } from '../../i18n';
|
|
66
|
-
import {
|
|
66
|
+
import { acapSyncLiveOverlayTextHeight } from '../overlay/AcApOverlayDrawUtil';
|
|
67
|
+
import { createMarkupMeta, promptMarkupCapsuleText } from './AcApMarkupCmdUtil';
|
|
68
|
+
import { AcApMarkupDrawCmd } from './AcApMarkupDrawCmd';
|
|
67
69
|
import { commitMarkup } from './AcApMarkupPresenter';
|
|
68
70
|
import { MARKUP_LIVE_LAYER } from './AcApMarkupStore';
|
|
69
|
-
import { defaultMarkupColor, getMarkupFontSize, subscribeMarkupDrawStyle } from './AcApMarkupUtil';
|
|
71
|
+
import { defaultMarkupColor, defaultMarkupStyle, getMarkupFontSize, subscribeMarkupDrawStyle } from './AcApMarkupUtil';
|
|
70
72
|
/**
|
|
71
73
|
* Place a text markup label at a picked world point.
|
|
72
74
|
*/
|
|
73
75
|
var AcApMarkupTextCmd = /** @class */ (function (_super) {
|
|
74
76
|
__extends(AcApMarkupTextCmd, _super);
|
|
75
77
|
function AcApMarkupTextCmd() {
|
|
76
|
-
|
|
77
|
-
configureMarkupCommand(_this);
|
|
78
|
-
return _this;
|
|
78
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
79
79
|
}
|
|
80
80
|
AcApMarkupTextCmd.prototype.execute = function (context) {
|
|
81
81
|
return __awaiter(this, void 0, void 0, function () {
|
|
82
82
|
var _this = this;
|
|
83
83
|
return __generator(this, function (_a) {
|
|
84
84
|
switch (_a.label) {
|
|
85
|
-
case 0: return [4 /*yield*/, withMarkupInput(context, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
85
|
+
case 0: return [4 /*yield*/, this.withMarkupInput(context, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
86
86
|
var pointPrompt, pointResult, position, view, badgeId, badge, unsubDrawStyle, text, meta, record;
|
|
87
87
|
return __generator(this, function (_a) {
|
|
88
88
|
switch (_a.label) {
|
|
@@ -106,10 +106,14 @@ var AcApMarkupTextCmd = /** @class */ (function (_super) {
|
|
|
106
106
|
layoutId: view.activeLayoutBtrId
|
|
107
107
|
});
|
|
108
108
|
view.htmlTransientManager.add(badge);
|
|
109
|
+
acapSyncLiveOverlayTextHeight(view, [badge], defaultMarkupStyle());
|
|
109
110
|
view.isHtmlDirty = true;
|
|
110
111
|
unsubDrawStyle = subscribeMarkupDrawStyle(function () {
|
|
112
|
+
var _a;
|
|
111
113
|
badge.setColor(defaultMarkupColor());
|
|
112
|
-
|
|
114
|
+
var style = defaultMarkupStyle();
|
|
115
|
+
badge.setFontSize((_a = style.fontSize) !== null && _a !== void 0 ? _a : getMarkupFontSize());
|
|
116
|
+
acapSyncLiveOverlayTextHeight(view, [badge], style);
|
|
113
117
|
view.isHtmlDirty = true;
|
|
114
118
|
});
|
|
115
119
|
text = 'Note';
|
|
@@ -142,6 +146,6 @@ var AcApMarkupTextCmd = /** @class */ (function (_super) {
|
|
|
142
146
|
});
|
|
143
147
|
};
|
|
144
148
|
return AcApMarkupTextCmd;
|
|
145
|
-
}(
|
|
149
|
+
}(AcApMarkupDrawCmd));
|
|
146
150
|
export { AcApMarkupTextCmd };
|
|
147
151
|
//# sourceMappingURL=AcApMarkupTextCmd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMarkupTextCmd.js","sourceRoot":"","sources":["../../../src/command/markup/AcApMarkupTextCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAGzD,OAAO,
|
|
1
|
+
{"version":3,"file":"AcApMarkupTextCmd.js","sourceRoot":"","sources":["../../../src/command/markup/AcApMarkupTextCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAGzD,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAA;AAC9E,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACzB,MAAM,kBAAkB,CAAA;AAEzB;;GAEG;AACH;IAAuC,qCAAiB;IAAxD;;IAuDA,CAAC;IAtDO,mCAAO,GAAb,UAAc,OAAoB;;;;;4BAChC,qBAAM,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE;;;;;wCAC5B,WAAW,GAAG,IAAI,sBAAsB,CAC5C,QAAQ,CAAC,CAAC,CAAC,uBAAuB,CAAC,CACpC,CAAA;wCACmB,qBAAM,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,QA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OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,EACtD,EAAE,SAAS,EAAE,KAAK,EAAE,CACrB,EAAA;;wCAJH,IAAI;4CACF,CAAC,SAGA,CAAC,IAAI,MAAM,CAAA;;;wCAEd,cAAc,EAAE,CAAA;wCAChB,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;wCACzC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAA;;;wCAGnB,IAAI,GAAG,gBAAgB,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,IAAI,MAAA,EAAE,CAAC,CAAA;wCACxD,MAAM,yBACP,IAAI,KACP,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,EAAE,GACvE,CAAA;wCACD,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;;;;6BACnC,CAAC,EAAA;;wBAnDF,SAmDE,CAAA;;;;;KACH;IACH,wBAAC;AAAD,CAAC,AAvDD,CAAuC,iBAAiB,GAuDvD"}
|
|
@@ -17,10 +17,26 @@ export interface AcApMarkupPoint2d {
|
|
|
17
17
|
export interface AcApMarkupStyle {
|
|
18
18
|
/** CSS color string, e.g. `#ff0000` or `rgb(255,0,0)`. */
|
|
19
19
|
color: string;
|
|
20
|
-
/**
|
|
20
|
+
/** Always hairline (`0`) on write; legacy non-zero values are ignored on parse. */
|
|
21
21
|
lineWeight?: number;
|
|
22
|
-
/**
|
|
22
|
+
/** Authoring font size in CSS pixels for text / callout bubbles (legacy / UI). */
|
|
23
23
|
fontSize?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Text / callout height in world units. Prefer this over {@link fontSize}
|
|
26
|
+
* when restoring overlays so size is independent of camera zoom.
|
|
27
|
+
*/
|
|
28
|
+
textHeightWcs?: number;
|
|
29
|
+
/** Authoring mode; omitted means adaptive (legacy). */
|
|
30
|
+
textHeightMode?: 'adaptive' | 'custom';
|
|
31
|
+
/**
|
|
32
|
+
* Arrow-head length in world units (arrow / callout markups). Prefer this
|
|
33
|
+
* when restoring overlays so arrow size is independent of camera zoom.
|
|
34
|
+
*/
|
|
35
|
+
arrowSizeWcs?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Legacy canvas stroke width in world units. Ignored on parse; never written.
|
|
38
|
+
*/
|
|
39
|
+
strokeWidthWcs?: number;
|
|
24
40
|
}
|
|
25
41
|
/** Shared metadata on every markup record. */
|
|
26
42
|
export interface AcApMarkupMeta {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMarkupTypes.d.ts","sourceRoot":"","sources":["../../../src/command/markup/AcApMarkupTypes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,2CAA2C;AAC3C,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAA;AAE1E,+DAA+D;AAC/D,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,WAAW,GACX,SAAS,GACT,OAAO,GACP,QAAQ,CAAA;AAEZ,8CAA8C;AAC9C,MAAM,WAAW,iBAAiB;IAChC,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,0DAA0D;AAC1D,MAAM,WAAW,eAAe;IAC9B,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAA;IACb,
|
|
1
|
+
{"version":3,"file":"AcApMarkupTypes.d.ts","sourceRoot":"","sources":["../../../src/command/markup/AcApMarkupTypes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,2CAA2C;AAC3C,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAA;AAE1E,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,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,kBAAkB,GAC1B,sBAAsB,GACtB,sBAAsB,GACtB,uBAAuB,GACvB,uBAAuB,GACvB,sBAAsB,GACtB,wBAAwB,GACxB,2BAA2B,GAC3B,yBAAyB,GACzB,uBAAuB,GACvB,wBAAwB,CAAA;AAE5B,iCAAiC;AACjC,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG;IAC9C,QAAQ,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAED,qCAAqC;AACrC,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,CAAC,CAAA;IACV,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,gBAAgB,EAAE,CAAA;CAC5B;AAED,gDAAgD;AAChD,MAAM,MAAM,uBAAuB,GAAG,MAAM,IAAI,CAAA"}
|
|
@@ -1,33 +1,62 @@
|
|
|
1
1
|
import { AcCmColor, AcDbDatabase, AcGiLineWeight } from '@mlightcad/data-model';
|
|
2
|
+
import type { AcEdBaseView } from '../../editor';
|
|
2
3
|
import type { AcApMarkupStyle } from './AcApMarkupTypes';
|
|
3
4
|
/** Factory default markup color (ACI red) used to seed the draw style. */
|
|
4
5
|
export declare function createDefaultMarkupColor(): AcCmColor;
|
|
6
|
+
/**
|
|
7
|
+
* Overlay line weight meaning "no CAD lineweight" (hairline).
|
|
8
|
+
*
|
|
9
|
+
* Drawn as 1 CSS pixel and not scaled with zoom.
|
|
10
|
+
*/
|
|
11
|
+
export declare const MARKUP_HAIRLINE_LINE_WEIGHT: AcGiLineWeight;
|
|
5
12
|
/** Factory default CAD line weight for markup geometry. */
|
|
6
|
-
export declare const MARKUP_LINE_WEIGHT
|
|
13
|
+
export declare const MARKUP_LINE_WEIGHT: AcGiLineWeight;
|
|
7
14
|
/** Factory default screen font size (CSS px) for text / callout markups. */
|
|
8
15
|
export declare const MARKUP_FONT_SIZE = 12;
|
|
9
|
-
/** Notify when session markup color /
|
|
16
|
+
/** Notify when session markup color / font size changes. */
|
|
10
17
|
export declare function subscribeMarkupDrawStyle(listener: () => void): () => void;
|
|
11
18
|
/** Current color used when drawing markups (clone for safety). */
|
|
12
19
|
export declare function defaultMarkupColor(): AcCmColor;
|
|
13
|
-
/** Current line weight used when drawing markups. */
|
|
14
|
-
export declare function getMarkupLineWeight(): AcGiLineWeight;
|
|
15
20
|
/** Current font size (CSS px) used when drawing text / callout markups. */
|
|
16
21
|
export declare function getMarkupFontSize(): number;
|
|
22
|
+
/** Current markup text-height authoring mode. */
|
|
23
|
+
export declare function getMarkupTextHeightMode(): 'adaptive' | 'custom';
|
|
24
|
+
/** Custom WCS text height for the markup draw session, if any. */
|
|
25
|
+
export declare function getMarkupCustomTextHeightWcs(): number | undefined;
|
|
17
26
|
/** Update the session markup draw color (affects current/future markups). */
|
|
18
27
|
export declare function setMarkupDrawColor(color: AcCmColor): void;
|
|
19
|
-
/** Update the session markup draw line weight. */
|
|
20
|
-
export declare function setMarkupDrawLineWeight(weight: AcGiLineWeight): void;
|
|
21
28
|
/** Update the session markup draw font size (CSS px). */
|
|
22
29
|
export declare function setMarkupDrawFontSize(size: number): void;
|
|
30
|
+
/**
|
|
31
|
+
* Sets adaptive (screen) or custom (WCS) text height for new markups.
|
|
32
|
+
*
|
|
33
|
+
* @param mode - Authoring mode.
|
|
34
|
+
* @param value - Font size px when adaptive; WCS height when custom.
|
|
35
|
+
*/
|
|
36
|
+
export declare function setMarkupTextHeight(mode: 'adaptive' | 'custom', value: number): void;
|
|
37
|
+
/**
|
|
38
|
+
* Resolve a stored markup line weight, treating missing / negative CAD
|
|
39
|
+
* specials as the hairline default. `0` is hairline and is kept.
|
|
40
|
+
*/
|
|
41
|
+
export declare function resolveMarkupLineWeight(weight: number | undefined | null): AcGiLineWeight;
|
|
23
42
|
/** Map a CAD line weight to a canvas stroke width in CSS pixels. */
|
|
24
43
|
export declare function markupCanvasLineWidth(weight: AcGiLineWeight | number): number;
|
|
25
44
|
/** Convert AcCmColor to a CSS color string for sidecar style. */
|
|
26
45
|
export declare function markupColorToCss(color: AcCmColor): string;
|
|
27
46
|
/** Parse a CSS color string back into AcCmColor (best-effort). */
|
|
28
47
|
export declare function cssToMarkupColor(css: string): AcCmColor;
|
|
29
|
-
/** Build a style object from the current markup draw color /
|
|
48
|
+
/** Build a style object from the current markup draw color / font size. */
|
|
30
49
|
export declare function defaultMarkupStyle(): AcApMarkupStyle;
|
|
50
|
+
/** Attach world-space text height (and arrow length) from the current view. */
|
|
51
|
+
export declare function withMarkupStyleWcs(style: AcApMarkupStyle, view: AcEdBaseView): AcApMarkupStyle;
|
|
52
|
+
/**
|
|
53
|
+
* Merge a style patch while keeping world-space text size independent of color.
|
|
54
|
+
*
|
|
55
|
+
* Only recomputes / scales {@link AcApMarkupStyle.textHeightWcs} when font size
|
|
56
|
+
* changes. Overlay strokes stay hairline; {@link AcApMarkupStyle.strokeWidthWcs}
|
|
57
|
+
* is never written.
|
|
58
|
+
*/
|
|
59
|
+
export declare function patchMarkupStyleWcs(previous: AcApMarkupStyle, next: AcApMarkupStyle, view: AcEdBaseView, patch: Partial<AcApMarkupStyle>): AcApMarkupStyle;
|
|
31
60
|
/** Create a new unique markup id. */
|
|
32
61
|
export declare function createMarkupId(prefix?: string): string;
|
|
33
62
|
/** ISO timestamp for created/updated fields. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMarkupUtil.d.ts","sourceRoot":"","sources":["../../../src/command/markup/AcApMarkupUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,YAAY,EAGZ,cAAc,EACf,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"AcApMarkupUtil.d.ts","sourceRoot":"","sources":["../../../src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,cAAc,GAAG,MAAM,GAAG,MAAM,CAI7E;AAED,iEAAiE;AACjE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAEzD;AAED,kEAAkE;AAClE,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAEvD;AAED,2EAA2E;AAC3E,wBAAgB,kBAAkB,IAAI,eAAe,CAYpD;AAED,+EAA+E;AAC/E,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,eAAe,EACtB,IAAI,EAAE,YAAY,GACjB,eAAe,CA+BjB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,eAAe,EACzB,IAAI,EAAE,eAAe,EACrB,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC,GAC9B,eAAe,CAwCjB;AAED,qCAAqC;AACrC,wBAAgB,cAAc,CAAC,MAAM,SAAW,GAAG,MAAM,CAKxD;AAED,gDAAgD;AAChD,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,YAAY,GAAG,MAAM,CAMxD"}
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
1
23
|
var __values = (this && this.__values) || function(o) {
|
|
2
24
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
3
25
|
if (m) return m.call(o);
|
|
@@ -9,22 +31,31 @@ var __values = (this && this.__values) || function(o) {
|
|
|
9
31
|
};
|
|
10
32
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
11
33
|
};
|
|
12
|
-
import { AcCmColor, AcCmColorMethod, AcDbSystemVariables, AcDbSysVarManager
|
|
13
|
-
import {
|
|
34
|
+
import { AcCmColor, AcCmColorMethod, AcDbSystemVariables, AcDbSysVarManager } from '@mlightcad/data-model';
|
|
35
|
+
import { acCmColorToCssHex, parseCssToAcCmColor } from '../../util/AcApCssColor';
|
|
36
|
+
import { ACAP_OVERLAY_ARROW_SIZE_PX, acapScreenPxToWcs } from '../overlay/AcApOverlayDrawUtil';
|
|
14
37
|
/** Factory default markup color (ACI red) used to seed the draw style. */
|
|
15
38
|
export function createDefaultMarkupColor() {
|
|
16
39
|
return new AcCmColor(AcCmColorMethod.ByACI, 1);
|
|
17
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Overlay line weight meaning "no CAD lineweight" (hairline).
|
|
43
|
+
*
|
|
44
|
+
* Drawn as 1 CSS pixel and not scaled with zoom.
|
|
45
|
+
*/
|
|
46
|
+
export var MARKUP_HAIRLINE_LINE_WEIGHT = 0;
|
|
18
47
|
/** Factory default CAD line weight for markup geometry. */
|
|
19
|
-
export var MARKUP_LINE_WEIGHT =
|
|
48
|
+
export var MARKUP_LINE_WEIGHT = MARKUP_HAIRLINE_LINE_WEIGHT;
|
|
20
49
|
/** Factory default screen font size (CSS px) for text / callout markups. */
|
|
21
50
|
export var MARKUP_FONT_SIZE = 12;
|
|
22
51
|
/** Session draw color for newly created markups. */
|
|
23
52
|
var markupDrawColor = createDefaultMarkupColor();
|
|
24
|
-
/** Session draw line weight for newly created markups. */
|
|
25
|
-
var markupDrawLineWeight = MARKUP_LINE_WEIGHT;
|
|
26
53
|
/** Session draw font size for newly created text / callout markups. */
|
|
27
54
|
var markupDrawFontSize = MARKUP_FONT_SIZE;
|
|
55
|
+
/** Session text-height authoring mode. */
|
|
56
|
+
var markupTextHeightMode = 'adaptive';
|
|
57
|
+
/** Session custom WCS text height when mode is `'custom'`. */
|
|
58
|
+
var markupCustomTextHeightWcs;
|
|
28
59
|
var drawStyleListeners = new Set();
|
|
29
60
|
function notifyMarkupDrawStyleChanged() {
|
|
30
61
|
var e_1, _a;
|
|
@@ -42,7 +73,7 @@ function notifyMarkupDrawStyleChanged() {
|
|
|
42
73
|
finally { if (e_1) throw e_1.error; }
|
|
43
74
|
}
|
|
44
75
|
}
|
|
45
|
-
/** Notify when session markup color /
|
|
76
|
+
/** Notify when session markup color / font size changes. */
|
|
46
77
|
export function subscribeMarkupDrawStyle(listener) {
|
|
47
78
|
drawStyleListeners.add(listener);
|
|
48
79
|
return function () {
|
|
@@ -53,64 +84,148 @@ export function subscribeMarkupDrawStyle(listener) {
|
|
|
53
84
|
export function defaultMarkupColor() {
|
|
54
85
|
return markupDrawColor.clone();
|
|
55
86
|
}
|
|
56
|
-
/** Current line weight used when drawing markups. */
|
|
57
|
-
export function getMarkupLineWeight() {
|
|
58
|
-
return markupDrawLineWeight;
|
|
59
|
-
}
|
|
60
87
|
/** Current font size (CSS px) used when drawing text / callout markups. */
|
|
61
88
|
export function getMarkupFontSize() {
|
|
62
89
|
return markupDrawFontSize;
|
|
63
90
|
}
|
|
91
|
+
/** Current markup text-height authoring mode. */
|
|
92
|
+
export function getMarkupTextHeightMode() {
|
|
93
|
+
return markupTextHeightMode;
|
|
94
|
+
}
|
|
95
|
+
/** Custom WCS text height for the markup draw session, if any. */
|
|
96
|
+
export function getMarkupCustomTextHeightWcs() {
|
|
97
|
+
return markupCustomTextHeightWcs;
|
|
98
|
+
}
|
|
64
99
|
/** Update the session markup draw color (affects current/future markups). */
|
|
65
100
|
export function setMarkupDrawColor(color) {
|
|
66
101
|
markupDrawColor = color.clone();
|
|
67
102
|
notifyMarkupDrawStyleChanged();
|
|
68
103
|
}
|
|
69
|
-
/** Update the session markup draw line weight. */
|
|
70
|
-
export function setMarkupDrawLineWeight(weight) {
|
|
71
|
-
if (!(weight > 0))
|
|
72
|
-
return;
|
|
73
|
-
markupDrawLineWeight = weight;
|
|
74
|
-
notifyMarkupDrawStyleChanged();
|
|
75
|
-
}
|
|
76
104
|
/** Update the session markup draw font size (CSS px). */
|
|
77
105
|
export function setMarkupDrawFontSize(size) {
|
|
78
106
|
if (!Number.isFinite(size) || size <= 0)
|
|
79
107
|
return;
|
|
80
108
|
markupDrawFontSize = size;
|
|
109
|
+
markupTextHeightMode = 'adaptive';
|
|
110
|
+
markupCustomTextHeightWcs = undefined;
|
|
81
111
|
notifyMarkupDrawStyleChanged();
|
|
82
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* Sets adaptive (screen) or custom (WCS) text height for new markups.
|
|
115
|
+
*
|
|
116
|
+
* @param mode - Authoring mode.
|
|
117
|
+
* @param value - Font size px when adaptive; WCS height when custom.
|
|
118
|
+
*/
|
|
119
|
+
export function setMarkupTextHeight(mode, value) {
|
|
120
|
+
if (!Number.isFinite(value) || value <= 0)
|
|
121
|
+
return;
|
|
122
|
+
markupTextHeightMode = mode;
|
|
123
|
+
if (mode === 'adaptive') {
|
|
124
|
+
markupDrawFontSize = value;
|
|
125
|
+
markupCustomTextHeightWcs = undefined;
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
markupCustomTextHeightWcs = value;
|
|
129
|
+
}
|
|
130
|
+
notifyMarkupDrawStyleChanged();
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Resolve a stored markup line weight, treating missing / negative CAD
|
|
134
|
+
* specials as the hairline default. `0` is hairline and is kept.
|
|
135
|
+
*/
|
|
136
|
+
export function resolveMarkupLineWeight(weight) {
|
|
137
|
+
return typeof weight === 'number' && Number.isFinite(weight) && weight >= 0
|
|
138
|
+
? weight
|
|
139
|
+
: MARKUP_LINE_WEIGHT;
|
|
140
|
+
}
|
|
83
141
|
/** Map a CAD line weight to a canvas stroke width in CSS pixels. */
|
|
84
142
|
export function markupCanvasLineWidth(weight) {
|
|
85
143
|
var n = Number(weight);
|
|
86
144
|
if (!Number.isFinite(n) || n <= 0)
|
|
87
|
-
return
|
|
145
|
+
return 0;
|
|
88
146
|
return Math.max(1, n / 28);
|
|
89
147
|
}
|
|
90
148
|
/** Convert AcCmColor to a CSS color string for sidecar style. */
|
|
91
149
|
export function markupColorToCss(color) {
|
|
92
|
-
|
|
93
|
-
return (_a = color.cssColor) !== null && _a !== void 0 ? _a : "rgb(".concat(color.red, ", ").concat(color.green, ", ").concat(color.blue, ")");
|
|
150
|
+
return acCmColorToCssHex(color);
|
|
94
151
|
}
|
|
95
152
|
/** Parse a CSS color string back into AcCmColor (best-effort). */
|
|
96
153
|
export function cssToMarkupColor(css) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
154
|
+
return parseCssToAcCmColor(css, [255, 0, 0]);
|
|
155
|
+
}
|
|
156
|
+
/** Build a style object from the current markup draw color / font size. */
|
|
157
|
+
export function defaultMarkupStyle() {
|
|
158
|
+
return __assign({ color: markupColorToCss(defaultMarkupColor()), lineWeight: MARKUP_LINE_WEIGHT, fontSize: getMarkupFontSize(), textHeightMode: markupTextHeightMode }, (markupTextHeightMode === 'custom' &&
|
|
159
|
+
markupCustomTextHeightWcs != null &&
|
|
160
|
+
markupCustomTextHeightWcs > 0
|
|
161
|
+
? { textHeightWcs: markupCustomTextHeightWcs }
|
|
162
|
+
: {}));
|
|
163
|
+
}
|
|
164
|
+
/** Attach world-space text height (and arrow length) from the current view. */
|
|
165
|
+
export function withMarkupStyleWcs(style, view) {
|
|
166
|
+
var fontSize = style.fontSize != null && style.fontSize > 0
|
|
167
|
+
? style.fontSize
|
|
168
|
+
: MARKUP_FONT_SIZE;
|
|
169
|
+
var arrowSizeWcs = style.arrowSizeWcs != null && style.arrowSizeWcs > 0
|
|
170
|
+
? style.arrowSizeWcs
|
|
171
|
+
: acapScreenPxToWcs(ACAP_OVERLAY_ARROW_SIZE_PX, view);
|
|
172
|
+
var textHeightWcs;
|
|
173
|
+
if (style.textHeightMode === 'custom' &&
|
|
174
|
+
style.textHeightWcs != null &&
|
|
175
|
+
style.textHeightWcs > 0) {
|
|
176
|
+
// Custom: keep the authored world height — never re-derive from fontSize.
|
|
177
|
+
textHeightWcs = style.textHeightWcs;
|
|
178
|
+
}
|
|
179
|
+
else if (style.textHeightMode === 'adaptive') {
|
|
180
|
+
// Fit-to-screen: bake the current screen font size into WCS at commit.
|
|
181
|
+
textHeightWcs = acapScreenPxToWcs(fontSize, view);
|
|
102
182
|
}
|
|
103
|
-
|
|
104
|
-
|
|
183
|
+
else if (style.textHeightWcs != null && style.textHeightWcs > 0) {
|
|
184
|
+
textHeightWcs = style.textHeightWcs;
|
|
105
185
|
}
|
|
186
|
+
else {
|
|
187
|
+
textHeightWcs = acapScreenPxToWcs(fontSize, view);
|
|
188
|
+
}
|
|
189
|
+
return __assign(__assign({}, style), { lineWeight: MARKUP_LINE_WEIGHT, textHeightWcs: textHeightWcs, arrowSizeWcs: arrowSizeWcs });
|
|
106
190
|
}
|
|
107
|
-
/**
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
191
|
+
/**
|
|
192
|
+
* Merge a style patch while keeping world-space text size independent of color.
|
|
193
|
+
*
|
|
194
|
+
* Only recomputes / scales {@link AcApMarkupStyle.textHeightWcs} when font size
|
|
195
|
+
* changes. Overlay strokes stay hairline; {@link AcApMarkupStyle.strokeWidthWcs}
|
|
196
|
+
* is never written.
|
|
197
|
+
*/
|
|
198
|
+
export function patchMarkupStyleWcs(previous, next, view, patch) {
|
|
199
|
+
var _a, _b, _c;
|
|
200
|
+
var prevFont = previous.fontSize != null && previous.fontSize > 0
|
|
201
|
+
? previous.fontSize
|
|
202
|
+
: MARKUP_FONT_SIZE;
|
|
203
|
+
var nextFont = next.fontSize != null && next.fontSize > 0 ? next.fontSize : MARKUP_FONT_SIZE;
|
|
204
|
+
var fontSizeChanged = patch.fontSize != null && patch.fontSize !== previous.fontSize;
|
|
205
|
+
var customHeightChanged = patch.textHeightWcs != null && patch.textHeightWcs !== previous.textHeightWcs;
|
|
206
|
+
var mode = (_b = (_a = next.textHeightMode) !== null && _a !== void 0 ? _a : previous.textHeightMode) !== null && _b !== void 0 ? _b : 'adaptive';
|
|
207
|
+
var textHeightWcs = (_c = previous.textHeightWcs) !== null && _c !== void 0 ? _c : next.textHeightWcs;
|
|
208
|
+
if (mode === 'custom' && next.textHeightWcs != null && next.textHeightWcs > 0) {
|
|
209
|
+
textHeightWcs = next.textHeightWcs;
|
|
210
|
+
}
|
|
211
|
+
else if (fontSizeChanged) {
|
|
212
|
+
if (textHeightWcs != null && textHeightWcs > 0 && prevFont > 0) {
|
|
213
|
+
textHeightWcs = textHeightWcs * (nextFont / prevFont);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
textHeightWcs = acapScreenPxToWcs(nextFont, view);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
else if (customHeightChanged) {
|
|
220
|
+
textHeightWcs = next.textHeightWcs;
|
|
221
|
+
}
|
|
222
|
+
else if (textHeightWcs == null || !(textHeightWcs > 0)) {
|
|
223
|
+
textHeightWcs = acapScreenPxToWcs(nextFont, view);
|
|
224
|
+
}
|
|
225
|
+
var _omitStroke = next.strokeWidthWcs, rest = __rest(next, ["strokeWidthWcs"]);
|
|
226
|
+
return __assign(__assign({}, rest), { textHeightMode: mode, lineWeight: MARKUP_LINE_WEIGHT, textHeightWcs: textHeightWcs, arrowSizeWcs: previous.arrowSizeWcs != null && previous.arrowSizeWcs > 0
|
|
227
|
+
? previous.arrowSizeWcs
|
|
228
|
+
: next.arrowSizeWcs });
|
|
114
229
|
}
|
|
115
230
|
/** Create a new unique markup id. */
|
|
116
231
|
export function createMarkupId(prefix) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMarkupUtil.js","sourceRoot":"","sources":["../../../src/command/markup/AcApMarkupUtil.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AcApMarkupUtil.js","sourceRoot":"","sources":["../../../src/command/markup/AcApMarkupUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,eAAe,EAEf,mBAAmB,EACnB,iBAAiB,EAElB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAChF,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAG9F,0EAA0E;AAC1E,MAAM,UAAU,wBAAwB;IACtC,OAAO,IAAI,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;AAChD,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,IAAM,2BAA2B,GAAG,CAAmB,CAAA;AAE9D,2DAA2D;AAC3D,MAAM,CAAC,IAAM,kBAAkB,GAAG,2BAA2B,CAAA;AAE7D,4EAA4E;AAC5E,MAAM,CAAC,IAAM,gBAAgB,GAAG,EAAE,CAAA;AAElC,oDAAoD;AACpD,IAAI,eAAe,GAAc,wBAAwB,EAAE,CAAA;AAE3D,uEAAuE;AACvE,IAAI,kBAAkB,GAAG,gBAAgB,CAAA;AAEzC,0CAA0C;AAC1C,IAAI,oBAAoB,G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Q,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAE,CAAA;AAC7E,CAAC;AAED,gDAAgD;AAChD,MAAM,UAAU,SAAS;IACvB,OAAO,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;AACjC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,EAAgB;IAC9C,IAAM,GAAG,GAAG,iBAAiB,CAAC,QAAQ,EAAE,CAAC,MAAM,CAC7C,mBAAmB,CAAC,SAAS,EAC7B,EAAE,CACH,CAAA;IACD,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;AAClD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AcApSystemCommandRegistrar } from '../AcApDrawStyleSession';
|
|
2
|
+
import { type AcApDrawStyleSessionInstallContext } from '../AcApDrawStyleSession';
|
|
3
|
+
/**
|
|
4
|
+
* Registers markup commands and installs the shared draw-style session
|
|
5
|
+
* accessory for the view (idempotent).
|
|
6
|
+
*/
|
|
7
|
+
export declare function registerMarkupCommands(addSystemCommand: AcApSystemCommandRegistrar, installCtx: AcApDrawStyleSessionInstallContext): void;
|
|
8
|
+
//# sourceMappingURL=AcApRegisterMarkupCommands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApRegisterMarkupCommands.d.ts","sourceRoot":"","sources":["../../../src/command/markup/AcApRegisterMarkupCommands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AACzE,OAAO,EACL,KAAK,kCAAkC,EAExC,MAAM,yBAAyB,CAAA;AAehC;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,0BAA0B,EAC5C,UAAU,EAAE,kCAAkC,GAC7C,IAAI,CAwBN"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { acapInstallDrawStyleSessionAccessory } from '../AcApDrawStyleSession';
|
|
2
|
+
import { AcApClearMarkupsCmd } from './AcApClearMarkupsCmd';
|
|
3
|
+
import { AcApMarkupArrowCmd } from './AcApMarkupArrowCmd';
|
|
4
|
+
import { AcApMarkupCalloutCmd } from './AcApMarkupCalloutCmd';
|
|
5
|
+
import { AcApMarkupCircleCmd } from './AcApMarkupCircleCmd';
|
|
6
|
+
import { AcApMarkupCloudCmd } from './AcApMarkupCloudCmd';
|
|
7
|
+
import { AcApMarkupHighlightCmd } from './AcApMarkupHighlightCmd';
|
|
8
|
+
import { AcApMarkupExportCmd } from './AcApMarkupImportExportCmd';
|
|
9
|
+
import { AcApMarkupImportCmd } from './AcApMarkupImportExportCmd';
|
|
10
|
+
import { AcApMarkupLineCmd } from './AcApMarkupLineCmd';
|
|
11
|
+
import { AcApMarkupRectCmd } from './AcApMarkupRectCmd';
|
|
12
|
+
import { AcApMarkupStampCmd } from './AcApMarkupStampCmd';
|
|
13
|
+
import { AcApMarkupTextCmd } from './AcApMarkupTextCmd';
|
|
14
|
+
import { AcApMarkupVisibilityCmd } from './AcApMarkupVisibilityCmd';
|
|
15
|
+
/**
|
|
16
|
+
* Registers markup commands and installs the shared draw-style session
|
|
17
|
+
* accessory for the view (idempotent).
|
|
18
|
+
*/
|
|
19
|
+
export function registerMarkupCommands(addSystemCommand, installCtx) {
|
|
20
|
+
acapInstallDrawStyleSessionAccessory(installCtx);
|
|
21
|
+
addSystemCommand('markuptext', 'markuptext', new AcApMarkupTextCmd());
|
|
22
|
+
addSystemCommand('markupline', 'markupline', new AcApMarkupLineCmd());
|
|
23
|
+
addSystemCommand('markuparrow', 'markuparrow', new AcApMarkupArrowCmd());
|
|
24
|
+
addSystemCommand('markupcloud', 'markupcloud', new AcApMarkupCloudCmd());
|
|
25
|
+
addSystemCommand('markuprect', 'markuprect', new AcApMarkupRectCmd());
|
|
26
|
+
addSystemCommand('markupcircle', 'markupcircle', new AcApMarkupCircleCmd());
|
|
27
|
+
addSystemCommand('markuphighlight', 'markuphighlight', new AcApMarkupHighlightCmd());
|
|
28
|
+
addSystemCommand('markupcallout', 'markupcallout', new AcApMarkupCalloutCmd());
|
|
29
|
+
addSystemCommand('markupstamp', 'markupstamp', new AcApMarkupStampCmd());
|
|
30
|
+
addSystemCommand('markupvis', 'markupvis', new AcApMarkupVisibilityCmd());
|
|
31
|
+
addSystemCommand('clearmarkups', 'clearmarkups', new AcApClearMarkupsCmd());
|
|
32
|
+
addSystemCommand('markupexport', 'markupexport', new AcApMarkupExportCmd());
|
|
33
|
+
addSystemCommand('markupimport', 'markupimport', new AcApMarkupImportCmd());
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=AcApRegisterMarkupCommands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApRegisterMarkupCommands.js","sourceRoot":"","sources":["../../../src/command/markup/AcApRegisterMarkupCommands.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,oCAAoC,EACrC,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,k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AmB,EAAE,CAAC,CAAA;AAC7E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMarkupCalloutEntity.d.ts","sourceRoot":"","sources":["../../../../src/command/markup/entity/AcApMarkupCalloutEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAO1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAIL,KAAK,0BAA0B,EACV,MAAM,eAAe,CAAA;AAK5C,OAAO,KAAK,EAAqB,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAMrD;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,gBAAgB;IAC3D;;OAEG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;;OAIG;IACM,YAAY;;;;;IAMrB;;;;OAIG;IACM,gBAAgB,IAAI,WAAW,EAAE;IAc1C;;;;;;OAMG;IACM,mBAAmB,CAC1B,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE,gBAAgB,GACvB,IAAI;IAsBP;;;;;OAKG;IACH,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,0BAA0B;
|
|
1
|
+
{"version":3,"file":"AcApMarkupCalloutEntity.d.ts","sourceRoot":"","sources":["../../../../src/command/markup/entity/AcApMarkupCalloutEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAO1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAIL,KAAK,0BAA0B,EACV,MAAM,eAAe,CAAA;AAK5C,OAAO,KAAK,EAAqB,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAMrD;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,gBAAgB;IAC3D;;OAEG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;;OAIG;IACM,YAAY;;;;;IAMrB;;;;OAIG;IACM,gBAAgB,IAAI,WAAW,EAAE;IAc1C;;;;;;OAMG;IACM,mBAAmB,CAC1B,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE,gBAAgB,GACvB,IAAI;IAsBP;;;;;OAKG;IACH,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,0BAA0B;CAuJrE"}
|
|
@@ -36,7 +36,7 @@ var __values = (this && this.__values) || function(o) {
|
|
|
36
36
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
37
37
|
};
|
|
38
38
|
import { AcGePoint3d } from '@mlightcad/data-model';
|
|
39
|
-
import { AcTrHtmlCallout, AcTrHtmlCanvasOverlay,
|
|
39
|
+
import { AcTrHtmlCallout, AcTrHtmlCanvasOverlay, AcTrHtmlGrip } from '@mlightcad/three-renderer';
|
|
40
40
|
import { acapBindOverlayCalloutGrips, acapDrawOverlayLeader, acapFitOverlayCanvas, acapPlaceOverlayHtml } from '../../overlay';
|
|
41
41
|
import { runMarkupEdit } from '../AcApMarkupHistory';
|
|
42
42
|
import { republishMarkup } from '../AcApMarkupRepublish';
|
|
@@ -153,18 +153,6 @@ var AcApMarkupCalloutEntity = /** @class */ (function (_super) {
|
|
|
153
153
|
tip: __assign({}, geom.tip),
|
|
154
154
|
anchor: __assign({}, geom.anchor)
|
|
155
155
|
};
|
|
156
|
-
/**
|
|
157
|
-
* Redraw the leader (with arrow) from {@link live}.
|
|
158
|
-
*/
|
|
159
|
-
var redraw = function () {
|
|
160
|
-
var ctx = acapFitOverlayCanvas(overlay.canvas, container);
|
|
161
|
-
if (!ctx)
|
|
162
|
-
return;
|
|
163
|
-
acapDrawOverlayLeader(ctx, view.worldToScreen(live.tip), view.worldToScreen(live.anchor), _this.record.style.color, true, canvasLineWidth);
|
|
164
|
-
};
|
|
165
|
-
redraw();
|
|
166
|
-
view.events.viewChanged.addEventListener(redraw);
|
|
167
|
-
cleanups.push(function () { return view.events.viewChanged.removeEventListener(redraw); });
|
|
168
156
|
var bubble = new AcTrHtmlCallout({
|
|
169
157
|
id: "".concat(this.record.id, "-bubble"),
|
|
170
158
|
color: color,
|
|
@@ -174,14 +162,14 @@ var AcApMarkupCalloutEntity = /** @class */ (function (_super) {
|
|
|
174
162
|
layer: layer,
|
|
175
163
|
layoutId: layoutId
|
|
176
164
|
});
|
|
177
|
-
var tipDot = new
|
|
165
|
+
var tipDot = new AcTrHtmlGrip({
|
|
178
166
|
id: "".concat(this.record.id, "-tip"),
|
|
179
167
|
color: color,
|
|
180
168
|
worldPosition: live.tip,
|
|
181
169
|
layer: layer,
|
|
182
170
|
layoutId: layoutId
|
|
183
171
|
});
|
|
184
|
-
var centerDot = new
|
|
172
|
+
var centerDot = new AcTrHtmlGrip({
|
|
185
173
|
id: "".concat(this.record.id, "-center"),
|
|
186
174
|
color: color,
|
|
187
175
|
worldPosition: {
|
|
@@ -192,6 +180,19 @@ var AcApMarkupCalloutEntity = /** @class */ (function (_super) {
|
|
|
192
180
|
layoutId: layoutId
|
|
193
181
|
});
|
|
194
182
|
group.add(bubble, tipDot, centerDot);
|
|
183
|
+
this.seedOverlaySizes(view, [bubble, tipDot, centerDot], [overlay.canvas]);
|
|
184
|
+
/**
|
|
185
|
+
* Redraw the leader (with arrow) from {@link live}.
|
|
186
|
+
*/
|
|
187
|
+
var redraw = function () {
|
|
188
|
+
var ctx = acapFitOverlayCanvas(overlay.canvas, container);
|
|
189
|
+
if (!ctx)
|
|
190
|
+
return;
|
|
191
|
+
acapDrawOverlayLeader(ctx, view.worldToScreen(live.tip), view.worldToScreen(live.anchor), _this.record.style.color, true, canvasLineWidth, view, _this.record.style.strokeWidthWcs, _this.record.style.arrowSizeWcs);
|
|
192
|
+
};
|
|
193
|
+
redraw();
|
|
194
|
+
view.events.viewChanged.addEventListener(redraw);
|
|
195
|
+
cleanups.push(function () { return view.events.viewChanged.removeEventListener(redraw); });
|
|
195
196
|
cleanups.push(bindMarkupInlineTextEdit({
|
|
196
197
|
view: view,
|
|
197
198
|
el: bubble.textElement,
|