@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
package/lib/ui/AcUiDialog.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { ML_UI_MOBILE_MAX_WIDTH, ML_UI_SESSION_PANEL_MAX_WIDTH, ML_UI_SESSION_PANEL_WIDTH } from '../editor/global/AcEdUiLayout';
|
|
1
2
|
import { acedApplyUiTheme, resolveUiTheme } from '../editor/global/AcEdUiTheme';
|
|
2
3
|
/**
|
|
3
4
|
* Framework-free modal dialog base built with pure HTML and CSS.
|
|
4
5
|
*
|
|
6
|
+
* The backdrop fills {@link AcUiDialogOptions.host} (typically the canvas
|
|
7
|
+
* container) and centers the panel in that box so ribbon / status chrome
|
|
8
|
+
* outside the host are not used for vertical centering.
|
|
9
|
+
*
|
|
5
10
|
* Subclasses fill {@link bodyEl} / {@link footerEl} and call {@link show}.
|
|
6
11
|
*/
|
|
7
12
|
var AcUiDialog = /** @class */ (function () {
|
|
@@ -16,6 +21,8 @@ var AcUiDialog = /** @class */ (function () {
|
|
|
16
21
|
this.disposed = false;
|
|
17
22
|
AcUiDialog.ensureStyles();
|
|
18
23
|
var host = (_a = options.host) !== null && _a !== void 0 ? _a : document.body;
|
|
24
|
+
this.host = host;
|
|
25
|
+
this.hostPositionRestore = AcUiDialog.ensureHostContainingBlock(host);
|
|
19
26
|
var titleId = (_b = options.titleId) !== null && _b !== void 0 ? _b : "ml-ui-dialog-title-".concat(AcUiDialog.nextTitleId++);
|
|
20
27
|
this.closeOnEscape = (_c = options.closeOnEscape) !== null && _c !== void 0 ? _c : true;
|
|
21
28
|
this.previouslyFocused =
|
|
@@ -32,7 +39,11 @@ var AcUiDialog = /** @class */ (function () {
|
|
|
32
39
|
});
|
|
33
40
|
}
|
|
34
41
|
this.dialog = document.createElement('div');
|
|
35
|
-
this.dialog.className = [
|
|
42
|
+
this.dialog.className = [
|
|
43
|
+
'ml-ui-dialog',
|
|
44
|
+
options.layoutWidth === false ? AcUiDialog.compactClass : '',
|
|
45
|
+
options.dialogClassName
|
|
46
|
+
]
|
|
36
47
|
.filter(Boolean)
|
|
37
48
|
.join(' ');
|
|
38
49
|
this.dialog.setAttribute('role', 'dialog');
|
|
@@ -42,18 +53,23 @@ var AcUiDialog = /** @class */ (function () {
|
|
|
42
53
|
this.dialog.addEventListener('mousedown', function (event) { return event.stopPropagation(); });
|
|
43
54
|
var header = document.createElement('div');
|
|
44
55
|
header.className = 'ml-ui-dialog-header';
|
|
56
|
+
if (options.titleAlign === 'center') {
|
|
57
|
+
header.classList.add('ml-ui-dialog-header--center');
|
|
58
|
+
}
|
|
45
59
|
this.titleEl = document.createElement('div');
|
|
46
60
|
this.titleEl.id = titleId;
|
|
47
61
|
this.titleEl.className = 'ml-ui-dialog-title';
|
|
48
62
|
this.titleEl.textContent = options.title;
|
|
49
|
-
var closeBtn = document.createElement('button');
|
|
50
|
-
closeBtn.type = 'button';
|
|
51
|
-
closeBtn.className = 'ml-ui-dialog-close';
|
|
52
|
-
closeBtn.setAttribute('aria-label', (_f = options.closeLabel) !== null && _f !== void 0 ? _f : 'Close');
|
|
53
|
-
closeBtn.textContent = '×';
|
|
54
|
-
closeBtn.addEventListener('click', function () { return _this.close(); });
|
|
55
63
|
header.appendChild(this.titleEl);
|
|
56
|
-
|
|
64
|
+
if (options.showCloseButton !== false) {
|
|
65
|
+
var closeBtn = document.createElement('button');
|
|
66
|
+
closeBtn.type = 'button';
|
|
67
|
+
closeBtn.className = 'ml-ui-dialog-close';
|
|
68
|
+
closeBtn.setAttribute('aria-label', (_f = options.closeLabel) !== null && _f !== void 0 ? _f : 'Close');
|
|
69
|
+
closeBtn.textContent = '×';
|
|
70
|
+
closeBtn.addEventListener('click', function () { return _this.close(); });
|
|
71
|
+
header.appendChild(closeBtn);
|
|
72
|
+
}
|
|
57
73
|
this.bodyEl = document.createElement('div');
|
|
58
74
|
this.bodyEl.className = 'ml-ui-dialog-body';
|
|
59
75
|
this.footerEl = document.createElement('div');
|
|
@@ -103,6 +119,9 @@ var AcUiDialog = /** @class */ (function () {
|
|
|
103
119
|
if (this.backdrop.parentNode) {
|
|
104
120
|
this.backdrop.parentNode.removeChild(this.backdrop);
|
|
105
121
|
}
|
|
122
|
+
if (this.hostPositionRestore !== null) {
|
|
123
|
+
this.host.style.position = this.hostPositionRestore;
|
|
124
|
+
}
|
|
106
125
|
(_a = this.previouslyFocused) === null || _a === void 0 ? void 0 : _a.focus();
|
|
107
126
|
(_b = this.resolve) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
108
127
|
this.resolve = undefined;
|
|
@@ -156,25 +175,35 @@ var AcUiDialog = /** @class */ (function () {
|
|
|
156
175
|
el.offsetParent !== null;
|
|
157
176
|
});
|
|
158
177
|
};
|
|
178
|
+
/**
|
|
179
|
+
* Ensures {@link host} is a positioned containing block for the absolute
|
|
180
|
+
* backdrop. Returns the previous inline `position` when it was changed, or
|
|
181
|
+
* `null` when the host already established a containing block.
|
|
182
|
+
*/
|
|
183
|
+
AcUiDialog.ensureHostContainingBlock = function (host) {
|
|
184
|
+
// Browsers report `static`; some test environments leave this empty.
|
|
185
|
+
var position = getComputedStyle(host).position || 'static';
|
|
186
|
+
if (position !== 'static')
|
|
187
|
+
return null;
|
|
188
|
+
var previous = host.style.position;
|
|
189
|
+
host.style.position = 'relative';
|
|
190
|
+
return previous;
|
|
191
|
+
};
|
|
159
192
|
/**
|
|
160
193
|
* Injects shared dialog chrome CSS once per document.
|
|
161
194
|
*/
|
|
162
195
|
AcUiDialog.ensureStyles = function () {
|
|
163
|
-
if (AcUiDialog.
|
|
196
|
+
if (document.getElementById(AcUiDialog.styleId))
|
|
164
197
|
return;
|
|
165
|
-
if (document.getElementById(AcUiDialog.styleId)) {
|
|
166
|
-
AcUiDialog.stylesInjected = true;
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
198
|
var style = document.createElement('style');
|
|
170
199
|
style.id = AcUiDialog.styleId;
|
|
171
|
-
style.textContent = "\n.ml-ui-dialog-backdrop {\n position:
|
|
200
|
+
style.textContent = "\n.ml-ui-dialog-backdrop {\n position: absolute;\n inset: 0;\n z-index: 10050;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--ml-ui-overlay, rgba(0, 0, 0, 0.45));\n font-family: system-ui, -apple-system, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;\n}\n\n.ml-ui-dialog {\n width: ".concat(ML_UI_SESSION_PANEL_WIDTH, "px;\n max-width: ").concat(ML_UI_SESSION_PANEL_MAX_WIDTH, ";\n max-height: 100%;\n overflow: auto;\n box-sizing: border-box;\n padding: 16px 18px 14px;\n border-radius: 10px;\n border: 1px solid var(--ml-ui-border, #dcdfe6);\n background: var(--ml-ui-bg, #ffffff);\n color: var(--ml-ui-text, #303133);\n box-shadow: var(--ml-ui-shadow, 0 8px 28px rgba(0, 0, 0, 0.28));\n}\n\n.ml-ui-dialog.").concat(AcUiDialog.compactClass, " {\n width: min(360px, calc(100vw - 32px));\n max-width: none;\n}\n\n@media (max-width: ").concat(ML_UI_MOBILE_MAX_WIDTH, "px) {\n .ml-ui-dialog:not(.").concat(AcUiDialog.compactClass, ") {\n width: 100%;\n max-width: none;\n padding-left: max(12px, env(safe-area-inset-left, 0px));\n padding-right: max(12px, env(safe-area-inset-right, 0px));\n }\n}\n\n.ml-ui-dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 14px;\n}\n\n.ml-ui-dialog-header--center {\n justify-content: center;\n}\n\n.ml-ui-dialog-header--center .ml-ui-dialog-title {\n flex: 1;\n text-align: center;\n}\n\n.ml-ui-dialog-title {\n font-size: 14px;\n font-weight: 600;\n}\n\n.ml-ui-dialog-close {\n border: none;\n background: transparent;\n color: var(--ml-ui-text-muted, #606266);\n cursor: pointer;\n font-size: 18px;\n line-height: 1;\n padding: 2px 6px;\n}\n\n.ml-ui-dialog-body {\n min-width: 0;\n}\n\n.ml-ui-dialog-footer:empty {\n display: none;\n}\n\n.ml-ui-dialog-footer:not(:empty) {\n display: flex;\n justify-content: flex-end;\n margin-top: 16px;\n gap: 8px;\n}\n\n.ml-ui-dialog-btn {\n min-width: 72px;\n padding: 6px 14px;\n border-radius: 4px;\n border: 1px solid var(--ml-ui-accent, #0b84ff);\n background: var(--ml-ui-accent, #0b84ff);\n color: #fff;\n cursor: pointer;\n font-size: 12px;\n}\n\n.ml-ui-dialog-btn:hover {\n filter: brightness(1.05);\n}\n\n.ml-ui-dialog-btn-secondary {\n border: 1px solid var(--ml-ui-border, #dcdfe6);\n background: var(--ml-ui-bg, #ffffff);\n color: var(--ml-ui-text, #303133);\n}\n\n.ml-ui-dialog-btn-secondary:hover {\n filter: none;\n background: var(--ml-ui-border, #dcdfe6);\n}\n").trim();
|
|
172
201
|
document.head.appendChild(style);
|
|
173
|
-
AcUiDialog.stylesInjected = true;
|
|
174
202
|
};
|
|
175
203
|
/** ID of the shared base style element. */
|
|
176
204
|
AcUiDialog.styleId = 'ml-ui-dialog-styles';
|
|
177
|
-
|
|
205
|
+
/** Class applied when {@link AcUiDialogOptions.layoutWidth} is `false`. */
|
|
206
|
+
AcUiDialog.compactClass = 'ml-ui-dialog--compact';
|
|
178
207
|
AcUiDialog.nextTitleId = 0;
|
|
179
208
|
return AcUiDialog;
|
|
180
209
|
}());
|
package/lib/ui/AcUiDialog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcUiDialog.js","sourceRoot":"","sources":["../../src/ui/AcUiDialog.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,cAAc,EACf,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"AcUiDialog.js","sourceRoot":"","sources":["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U,CAAC,YAAY,uGAKlB,sBAAsB,yCACpB,UAAU,CAAC,YAAY,2/CA+E7C,CAAC,IAAI,EAAE,CAAA;QACJ,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;IAClC,CAAC;IA9VD,2CAA2C;IACpB,kBAAO,GAAG,qBAAqB,AAAxB,CAAwB;IAEtD,2EAA2E;IACpD,uBAAY,GAAG,uBAAuB,AAA1B,CAA0B;IAE9C,sBAAW,GAAG,CAAC,AAAJ,CAAI;IAyVhC,iBAAC;CAAA,AAhWD,IAgWC;SAhWY,UAAU"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type AcEdSessionAccessory } from '../editor/command/AcEdSessionAccessory';
|
|
2
|
+
import { type AcApDrawStyleKind } from '../util/AcApCommandUtil';
|
|
3
|
+
/**
|
|
4
|
+
* Kind of drawing session served by the draw-style session accessory.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link AcApDrawStyleKind}
|
|
7
|
+
*/
|
|
8
|
+
export type AcUiDrawStyleKind = AcApDrawStyleKind;
|
|
9
|
+
/** Input for {@link acuiResolveDrawStyleKind}. */
|
|
10
|
+
export interface AcUiResolveDrawStyleKindInput {
|
|
11
|
+
/** Kind of the running draw command, if any. */
|
|
12
|
+
commandKind?: AcUiDrawStyleKind;
|
|
13
|
+
/** True when a markup overlay is selected. */
|
|
14
|
+
markupSelected?: boolean;
|
|
15
|
+
/** True when a measurement overlay is selected. */
|
|
16
|
+
measurementSelected?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Session kind for the draw-style accessory: an active draw command wins,
|
|
20
|
+
* otherwise a selected markup or measurement keeps the controls available.
|
|
21
|
+
*
|
|
22
|
+
* Mixed markup + measurement selection matches the ribbon: neither kind owns
|
|
23
|
+
* the session, so the accessory hides until the selection is exclusive.
|
|
24
|
+
*
|
|
25
|
+
* @param input - Active command kind and overlay selection flags.
|
|
26
|
+
* @returns `'measure'` or `'markup'`, or `undefined` when the accessory should hide.
|
|
27
|
+
*/
|
|
28
|
+
export declare function acuiResolveDrawStyleKind(input: AcUiResolveDrawStyleKindInput): AcUiDrawStyleKind | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the draw-style session accessory should be shown for the given session.
|
|
31
|
+
*
|
|
32
|
+
* The accessory is only needed when the host ribbon is turned off;
|
|
33
|
+
* cad-viewer already exposes color / lineweight / font-size on the ribbon.
|
|
34
|
+
* Shells without a ribbon (simple-ui) should set `isShowRibbon` to `false`
|
|
35
|
+
* with `{ persist: false }` instead of a separate host flag.
|
|
36
|
+
*
|
|
37
|
+
* @param kind - Active drawing or selection session, or `undefined` when none.
|
|
38
|
+
* @param showRibbon - Whether the host ribbon is visible.
|
|
39
|
+
* @returns `true` when the session accessory should be displayed.
|
|
40
|
+
*/
|
|
41
|
+
export declare function acuiShouldShowDrawStyleToolbar(kind: AcUiDrawStyleKind | undefined, showRibbon?: boolean): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Assigns `command.sessionAccessory` so trigger mounts the view's draw-style controls.
|
|
44
|
+
*
|
|
45
|
+
* Sets the host session kind from the command's global name so color / font-size
|
|
46
|
+
* sync and apply target the measure or markup store while the command runs.
|
|
47
|
+
* Desktop mounts are suppressed when the ribbon already exposes the same UI, or
|
|
48
|
+
* when the shortcut toolbar is visible (it owns the desktop draw-style slot).
|
|
49
|
+
* Mobile mounts still target the session-panel accessory host.
|
|
50
|
+
*
|
|
51
|
+
* @param command - Command that should expose color / font-size session UI.
|
|
52
|
+
*/
|
|
53
|
+
export declare function acuiBindDrawStyleSessionAccessory(command: {
|
|
54
|
+
/** Global command name used to resolve measure vs markup. */
|
|
55
|
+
globalName?: string;
|
|
56
|
+
/** Session accessory slot assigned by this binder. */
|
|
57
|
+
sessionAccessory: AcEdSessionAccessory | null;
|
|
58
|
+
}): void;
|
|
59
|
+
//# sourceMappingURL=AcUiDrawStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcUiDrawStyle.d.ts","sourceRoot":"","sources":["../../src/ui/AcUiDrawStyle.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,yBAAyB,CAAA;AAMhC;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAA;AAEjD,kDAAkD;AAClD,MAAM,WAAW,6BAA6B;IAC5C,gDAAgD;IAChD,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,8CAA8C;IAC9C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,mDAAmD;IACnD,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,6BAA6B,GACnC,iBAAiB,GAAG,SAAS,CAM/B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,iBAAiB,GAAG,SAAS,EACnC,UAAU,GAAE,OAAkD,GAC7D,OAAO,CAET;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iCAAiC,CAAC,OAAO,EAAE;IACzD,6DAA6D;IAC7D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,sDAAsD;IACtD,gBAAgB,EAAE,oBAAoB,GAAG,IAAI,CAAA;CAC9C,GAAG,IAAI,CA+CP"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { AcApSettingManager } from '../app/AcApSettingManager';
|
|
2
|
+
import { AcEdSessionAccessoryMountSkippedError } from '../editor/command/AcEdCommand';
|
|
3
|
+
import { ACED_DRAW_STYLE_SESSION_PROVIDER_ID } from '../editor/command/AcEdSessionAccessory';
|
|
4
|
+
import { acapDrawStyleKindForCommand } from '../util/AcApCommandUtil';
|
|
5
|
+
import { ACED_SHORTCUT_TOOLBAR_PROVIDER_ID } from './AcUiShortCutToolbar';
|
|
6
|
+
/**
|
|
7
|
+
* Session kind for the draw-style accessory: an active draw command wins,
|
|
8
|
+
* otherwise a selected markup or measurement keeps the controls available.
|
|
9
|
+
*
|
|
10
|
+
* Mixed markup + measurement selection matches the ribbon: neither kind owns
|
|
11
|
+
* the session, so the accessory hides until the selection is exclusive.
|
|
12
|
+
*
|
|
13
|
+
* @param input - Active command kind and overlay selection flags.
|
|
14
|
+
* @returns `'measure'` or `'markup'`, or `undefined` when the accessory should hide.
|
|
15
|
+
*/
|
|
16
|
+
export function acuiResolveDrawStyleKind(input) {
|
|
17
|
+
if (input.commandKind)
|
|
18
|
+
return input.commandKind;
|
|
19
|
+
if (input.markupSelected && input.measurementSelected)
|
|
20
|
+
return undefined;
|
|
21
|
+
if (input.markupSelected)
|
|
22
|
+
return 'markup';
|
|
23
|
+
if (input.measurementSelected)
|
|
24
|
+
return 'measure';
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Whether the draw-style session accessory should be shown for the given session.
|
|
29
|
+
*
|
|
30
|
+
* The accessory is only needed when the host ribbon is turned off;
|
|
31
|
+
* cad-viewer already exposes color / lineweight / font-size on the ribbon.
|
|
32
|
+
* Shells without a ribbon (simple-ui) should set `isShowRibbon` to `false`
|
|
33
|
+
* with `{ persist: false }` instead of a separate host flag.
|
|
34
|
+
*
|
|
35
|
+
* @param kind - Active drawing or selection session, or `undefined` when none.
|
|
36
|
+
* @param showRibbon - Whether the host ribbon is visible.
|
|
37
|
+
* @returns `true` when the session accessory should be displayed.
|
|
38
|
+
*/
|
|
39
|
+
export function acuiShouldShowDrawStyleToolbar(kind, showRibbon) {
|
|
40
|
+
if (showRibbon === void 0) { showRibbon = AcApSettingManager.instance.isShowRibbon; }
|
|
41
|
+
return kind != null && !showRibbon;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Assigns `command.sessionAccessory` so trigger mounts the view's draw-style controls.
|
|
45
|
+
*
|
|
46
|
+
* Sets the host session kind from the command's global name so color / font-size
|
|
47
|
+
* sync and apply target the measure or markup store while the command runs.
|
|
48
|
+
* Desktop mounts are suppressed when the ribbon already exposes the same UI, or
|
|
49
|
+
* when the shortcut toolbar is visible (it owns the desktop draw-style slot).
|
|
50
|
+
* Mobile mounts still target the session-panel accessory host.
|
|
51
|
+
*
|
|
52
|
+
* @param command - Command that should expose color / font-size session UI.
|
|
53
|
+
*/
|
|
54
|
+
export function acuiBindDrawStyleSessionAccessory(command) {
|
|
55
|
+
/** Inner accessory created from the view host while mounted. */
|
|
56
|
+
var inner = null;
|
|
57
|
+
command.sessionAccessory = {
|
|
58
|
+
id: 'draw-style',
|
|
59
|
+
/**
|
|
60
|
+
* Resolves the view host, applies session kind, and mounts controls.
|
|
61
|
+
*
|
|
62
|
+
* @param options - Host element, slot type, and owning view.
|
|
63
|
+
* @throws {AcEdSessionAccessoryMountSkippedError} When there is no host,
|
|
64
|
+
* desktop ribbon already covers the same UI, or the shortcut toolbar
|
|
65
|
+
* owns the desktop slot.
|
|
66
|
+
*/
|
|
67
|
+
mount: function (options) {
|
|
68
|
+
var host = options.view.sessionProviders.get(ACED_DRAW_STYLE_SESSION_PROVIDER_ID);
|
|
69
|
+
if (!host) {
|
|
70
|
+
throw new AcEdSessionAccessoryMountSkippedError();
|
|
71
|
+
}
|
|
72
|
+
var kind = acapDrawStyleKindForCommand(command.globalName);
|
|
73
|
+
host.setActiveKind(kind);
|
|
74
|
+
if (options.type === 'desktop') {
|
|
75
|
+
var shortcut = options.view.sessionProviders.get(ACED_SHORTCUT_TOOLBAR_PROVIDER_ID);
|
|
76
|
+
// Shortcut binder mounts draw-style on desktop; skip top-center chrome.
|
|
77
|
+
if (shortcut === null || shortcut === void 0 ? void 0 : shortcut.isVisible) {
|
|
78
|
+
throw new AcEdSessionAccessoryMountSkippedError();
|
|
79
|
+
}
|
|
80
|
+
if (!acuiShouldShowDrawStyleToolbar(kind)) {
|
|
81
|
+
throw new AcEdSessionAccessoryMountSkippedError();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
inner = host.createSessionAccessory();
|
|
85
|
+
inner.mount(options);
|
|
86
|
+
},
|
|
87
|
+
/** Unmounts the inner host accessory created during {@link mount}. */
|
|
88
|
+
unmount: function () {
|
|
89
|
+
inner === null || inner === void 0 ? void 0 : inner.unmount();
|
|
90
|
+
inner = null;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=AcUiDrawStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcUiDrawStyle.js","sourceRoot":"","sources":["../../src/ui/AcUiDrawStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,qCAAqC,EAAE,MAAM,+BAA+B,CAAA;AACrF,OAAO,EACL,mCAAmC,EAIpC,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAEL,2BAA2B,EAC5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,iCAAiC,EAElC,MAAM,uBAAuB,CAAA;AAmB9B;;;;;;;;;GASG;AACH,MAAM,UAAU,wBAAwB,CACtC,KAAoC;IAEpC,IAAI,KAAK,CAAC,WAAW;QAAE,OAAO,KAAK,CAAC,WAAW,CAAA;IAC/C,IAAI,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,mBAAmB;QAAE,OAAO,SAAS,CAAA;IACvE,IAAI,KAAK,CAAC,cAAc;QAAE,OAAO,QAAQ,CAAA;IACzC,IAAI,KAAK,CAAC,mBAAmB;QAAE,OAAO,SAAS,CAAA;IAC/C,OAAO,SAAS,CAAA;AAClB,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,8BAA8B,CAC5C,IAAmC,EACnC,UAA8D;IAA9D,2BAAA,EAAA,aAAsB,kBAAkB,CAAC,QAAQ,CAAC,YAAY;IAE9D,OAAO,IAAI,IAAI,IAAI,IAAI,C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 @@
|
|
|
1
|
+
import { type AcEdSessionAccessory } from '../editor/command/AcEdSessionAccessory';
|
|
2
|
+
import type { AcTrView2d } from '../view';
|
|
3
|
+
import { type AcUiDrawStyleKind } from './AcUiDrawStyle';
|
|
4
|
+
/**
|
|
5
|
+
* Color / font-size session accessory for measurement and markup drawing.
|
|
6
|
+
*
|
|
7
|
+
* Mounted into the desktop top-center slot or the phone/pad session panel.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AcUiDrawStyleSessionAccessory {
|
|
10
|
+
private readonly view;
|
|
11
|
+
/** Color swatch button that opens the palette or mobile dialog. */
|
|
12
|
+
private readonly swatch;
|
|
13
|
+
/** Circular fill inside the swatch showing the active color. */
|
|
14
|
+
private readonly swatchFill;
|
|
15
|
+
/** Wrapper around swatch and inline ACI palette panel. */
|
|
16
|
+
private readonly colorWrap;
|
|
17
|
+
/** Inline ACI palette popover (desktop hover/click). */
|
|
18
|
+
private readonly colorPanel;
|
|
19
|
+
/** ACI palette stacks rendered inside {@link colorPanel}. */
|
|
20
|
+
private readonly aciStacks;
|
|
21
|
+
/** Opens the text-height settings dialog. */
|
|
22
|
+
private readonly textHeightButton;
|
|
23
|
+
/** Root row reparented into session accessory hosts. */
|
|
24
|
+
private readonly controlsRow;
|
|
25
|
+
/** Active measure/markup session, or `undefined` when inactive. */
|
|
26
|
+
private kind;
|
|
27
|
+
/** True when mounted in the mobile session panel (drop-up palette). */
|
|
28
|
+
private mobileMounted;
|
|
29
|
+
/** Whether the inline ACI palette panel is open. */
|
|
30
|
+
private colorPanelOpen;
|
|
31
|
+
/** True while the full-screen mobile ACI dialog is open. */
|
|
32
|
+
private colorDialogOpen;
|
|
33
|
+
/** True while the text-height dialog is open. */
|
|
34
|
+
private textHeightDialogOpen;
|
|
35
|
+
/** Timer that closes the palette after pointer leave. */
|
|
36
|
+
private colorLeaveTimer;
|
|
37
|
+
/** Closes the palette when the user clicks outside the color control. */
|
|
38
|
+
private readonly onDocumentPointerDown;
|
|
39
|
+
/** Refreshes titles when the application locale changes. */
|
|
40
|
+
private readonly onLocaleChanged;
|
|
41
|
+
/** Tears down selection-sync subscriptions registered by install. */
|
|
42
|
+
private selectionUnsubscribe;
|
|
43
|
+
/**
|
|
44
|
+
* Creates controls and wires events. Install registers this on
|
|
45
|
+
* {@link AcEdBaseView.sessionProviders}.
|
|
46
|
+
*
|
|
47
|
+
* @param view - 2D view whose container supplies theme and dialog placement.
|
|
48
|
+
*/
|
|
49
|
+
constructor(view: AcTrView2d);
|
|
50
|
+
/**
|
|
51
|
+
* Stores selection-sync cleanup from install; run from {@link dispose}.
|
|
52
|
+
* Replaces any prior subscription before storing the new one.
|
|
53
|
+
*
|
|
54
|
+
* @param unsubscribe - Cleanup returned by selection binding.
|
|
55
|
+
*/
|
|
56
|
+
setSelectionUnsubscribe(unsubscribe: () => void): void;
|
|
57
|
+
/**
|
|
58
|
+
* Updates the active session kind before controls mount or sync.
|
|
59
|
+
*
|
|
60
|
+
* @param kind - `'measure'`, `'markup'`, or `undefined` when inactive.
|
|
61
|
+
*/
|
|
62
|
+
setActiveKind(kind: AcUiDrawStyleKind | undefined): void;
|
|
63
|
+
/** Removes listeners, unmounts controls, and clears the session provider. */
|
|
64
|
+
dispose(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Builds the session accessory that reparents draw-style controls into a host slot.
|
|
67
|
+
*
|
|
68
|
+
* @returns Accessory with id `'draw-style'` and mount/unmount delegates.
|
|
69
|
+
*/
|
|
70
|
+
createSessionAccessory(): AcEdSessionAccessory;
|
|
71
|
+
/**
|
|
72
|
+
* Appends controls to a session host and syncs state from the active session.
|
|
73
|
+
*
|
|
74
|
+
* @param host - Desktop top-center slot or mobile session panel accessory element.
|
|
75
|
+
*/
|
|
76
|
+
private mount;
|
|
77
|
+
/** Detaches controls from the current host and resets mobile palette layout. */
|
|
78
|
+
private unmount;
|
|
79
|
+
/** Refreshes control titles from i18n strings. */
|
|
80
|
+
private relabel;
|
|
81
|
+
/**
|
|
82
|
+
* Reads color and font size from the active measure/markup session or defaults.
|
|
83
|
+
*/
|
|
84
|
+
private syncFromSession;
|
|
85
|
+
/**
|
|
86
|
+
* Updates swatch and ACI selection to match session state.
|
|
87
|
+
*
|
|
88
|
+
* @param color - Active draw color.
|
|
89
|
+
*/
|
|
90
|
+
private paint;
|
|
91
|
+
/**
|
|
92
|
+
* Persists a new draw color for the active session and updates selection overlays.
|
|
93
|
+
*
|
|
94
|
+
* @param color - Color chosen from the palette or dialog.
|
|
95
|
+
*/
|
|
96
|
+
private applyColor;
|
|
97
|
+
/** Closes the inline ACI palette popover if it was left open. */
|
|
98
|
+
private hideColorPanel;
|
|
99
|
+
/**
|
|
100
|
+
* Opens the ACI color dialog (command and selection accessories).
|
|
101
|
+
*/
|
|
102
|
+
private openSessionColorDialog;
|
|
103
|
+
/** Cancels a pending palette close timer. */
|
|
104
|
+
private clearColorLeaveTimer;
|
|
105
|
+
/** Opens the text-height dialog for the active draw-style kind. */
|
|
106
|
+
private openTextHeightDialog;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=AcUiDrawStyleSessionAccessory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcUiDrawStyleSessionAccessory.d.ts","sourceRoot":"","sources":["../../src/ui/AcUiDrawStyleSessionAccessory.ts"],"names":[],"mappings":"AAuBA,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,wCAAwC,CAAA;AAa/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAOzC,OAAO,EACL,KAAK,iBAAiB,EACvB,MAAM,iBAAiB,CAAA;AA4HxB;;;;GAIG;AACH,qBAAa,6BAA6B;IAuD5B,OAAO,CAAC,QAAQ,CAAC,IAAI;IAtDjC,mEAAmE;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C,gEAAgE;IAChE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAiB;IAE5C,0DAA0D;IAC1D,OAA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