@mlightcad/cad-simple-viewer 1.6.2 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cad-simple-viewer.js +28736 -18706
- package/dist/cad-simple-viewer.umd.cjs +1639 -308
- package/dist/mtext-renderer-worker.js +14590 -14441
- package/icons.ts +7 -0
- package/lib/app/AcApBrand.d.ts +2 -2
- package/lib/app/AcApBrand.d.ts.map +1 -1
- package/lib/app/AcApBrand.js +2 -2
- package/lib/app/AcApBrand.js.map +1 -1
- package/lib/app/AcApBusyIndicator.d.ts +6 -0
- package/lib/app/AcApBusyIndicator.d.ts.map +1 -1
- package/lib/app/AcApBusyIndicator.js +8 -0
- package/lib/app/AcApBusyIndicator.js.map +1 -1
- package/lib/app/AcApContext.d.ts +24 -0
- package/lib/app/AcApContext.d.ts.map +1 -1
- package/lib/app/AcApContext.js +103 -18
- package/lib/app/AcApContext.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts +293 -31
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +972 -184
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApDocSession.d.ts +41 -0
- package/lib/app/AcApDocSession.d.ts.map +1 -0
- package/lib/app/AcApDocSession.js +29 -0
- package/lib/app/AcApDocSession.js.map +1 -0
- package/lib/app/AcApDocsUrl.d.ts +57 -0
- package/lib/app/AcApDocsUrl.d.ts.map +1 -0
- package/lib/app/AcApDocsUrl.js +76 -0
- package/lib/app/AcApDocsUrl.js.map +1 -0
- package/lib/app/AcApDocument.d.ts +6 -1
- package/lib/app/AcApDocument.d.ts.map +1 -1
- package/lib/app/AcApDocument.js +21 -0
- package/lib/app/AcApDocument.js.map +1 -1
- package/lib/app/AcApFontLoader.d.ts +6 -0
- package/lib/app/AcApFontLoader.d.ts.map +1 -1
- package/lib/app/AcApFontLoader.js +11 -0
- package/lib/app/AcApFontLoader.js.map +1 -1
- package/lib/app/{AcDbOpenDatabaseOptions.d.ts → AcApOpenDatabaseOptions.d.ts} +35 -8
- package/lib/app/AcApOpenDatabaseOptions.d.ts.map +1 -0
- package/lib/app/{AcDbOpenDatabaseOptions.js → AcApOpenDatabaseOptions.js} +1 -1
- package/lib/app/AcApOpenDatabaseOptions.js.map +1 -0
- package/lib/app/AcApOpenFileDialog.d.ts +1 -1
- package/lib/app/AcApOpenFileProgressController.d.ts +14 -0
- package/lib/app/AcApOpenFileProgressController.d.ts.map +1 -1
- package/lib/app/AcApOpenFileProgressController.js +18 -0
- package/lib/app/AcApOpenFileProgressController.js.map +1 -1
- package/lib/app/AcApProgress.d.ts +6 -0
- package/lib/app/AcApProgress.d.ts.map +1 -1
- package/lib/app/AcApProgress.js +17 -0
- package/lib/app/AcApProgress.js.map +1 -1
- package/lib/app/AcApSettingManager.d.ts +156 -43
- package/lib/app/AcApSettingManager.d.ts.map +1 -1
- package/lib/app/AcApSettingManager.js +216 -66
- package/lib/app/AcApSettingManager.js.map +1 -1
- package/lib/app/index.d.ts +4 -2
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +3 -1
- package/lib/app/index.js.map +1 -1
- package/lib/command/AcApCloseCmd.d.ts +15 -0
- package/lib/command/AcApCloseCmd.d.ts.map +1 -0
- package/lib/command/AcApCloseCmd.js +83 -0
- package/lib/command/AcApCloseCmd.js.map +1 -0
- package/lib/command/AcApDrawOverlayInput.d.ts +6 -0
- package/lib/command/AcApDrawOverlayInput.d.ts.map +1 -0
- package/lib/command/AcApDrawOverlayInput.js +64 -0
- package/lib/command/AcApDrawOverlayInput.js.map +1 -0
- package/lib/command/AcApDrawStyleDrawCmd.d.ts +9 -0
- package/lib/command/AcApDrawStyleDrawCmd.d.ts.map +1 -0
- package/lib/command/AcApDrawStyleDrawCmd.js +32 -0
- package/lib/command/AcApDrawStyleDrawCmd.js.map +1 -0
- package/lib/command/AcApDrawStyleSession.d.ts +20 -0
- package/lib/command/AcApDrawStyleSession.d.ts.map +1 -0
- package/lib/command/AcApDrawStyleSession.js +2 -0
- package/lib/command/AcApDrawStyleSession.js.map +1 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts +28 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts.map +1 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js +174 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js.map +1 -0
- package/lib/command/AcApReadingModeCmd.d.ts +17 -0
- package/lib/command/AcApReadingModeCmd.d.ts.map +1 -0
- package/lib/command/AcApReadingModeCmd.js +82 -0
- package/lib/command/AcApReadingModeCmd.js.map +1 -0
- package/lib/command/AcApShortCutSelectionAccessory.d.ts +14 -0
- package/lib/command/AcApShortCutSelectionAccessory.d.ts.map +1 -0
- package/lib/command/AcApShortCutSelectionAccessory.js +266 -0
- package/lib/command/AcApShortCutSelectionAccessory.js.map +1 -0
- package/lib/command/AcApShortCutToolbarDocBind.d.ts +20 -0
- package/lib/command/AcApShortCutToolbarDocBind.d.ts.map +1 -0
- package/lib/command/AcApShortCutToolbarDocBind.js +155 -0
- package/lib/command/AcApShortCutToolbarDocBind.js.map +1 -0
- package/lib/command/AcApZoomCmd.d.ts +39 -1
- package/lib/command/AcApZoomCmd.d.ts.map +1 -1
- package/lib/command/AcApZoomCmd.js +70 -6
- package/lib/command/AcApZoomCmd.js.map +1 -1
- package/lib/command/draw/AcApHatchCmd.js +1 -1
- package/lib/command/draw/AcApHatchCmd.js.map +1 -1
- package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApMTextCmd.js +11 -7
- package/lib/command/draw/AcApMTextCmd.js.map +1 -1
- package/lib/command/index.d.ts +4 -0
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +4 -0
- package/lib/command/index.js.map +1 -1
- package/lib/command/markup/AcApMarkupArrowCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupArrowCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupArrowCmd.js +8 -9
- package/lib/command/markup/AcApMarkupArrowCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.js +47 -22
- package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCircleCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCircleCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCircleCmd.js +8 -9
- package/lib/command/markup/AcApMarkupCircleCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCloudCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCloudCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCloudCmd.js +8 -9
- package/lib/command/markup/AcApMarkupCloudCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts +7 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.js +10 -0
- package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -1
- package/lib/command/markup/AcApMarkupDrawCmd.d.ts +19 -0
- package/lib/command/markup/AcApMarkupDrawCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupDrawCmd.js +47 -0
- package/lib/command/markup/AcApMarkupDrawCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupGeometry.d.ts +39 -3
- package/lib/command/markup/AcApMarkupGeometry.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupGeometry.js +127 -26
- package/lib/command/markup/AcApMarkupGeometry.js.map +1 -1
- package/lib/command/markup/AcApMarkupHighlightCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupHighlightCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupHighlightCmd.js +9 -10
- package/lib/command/markup/AcApMarkupHighlightCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupHistory.d.ts +1 -1
- package/lib/command/markup/AcApMarkupHistory.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupHistory.js +4 -11
- package/lib/command/markup/AcApMarkupHistory.js.map +1 -1
- package/lib/command/markup/AcApMarkupLineCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupLineCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupLineCmd.js +18 -11
- package/lib/command/markup/AcApMarkupLineCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupPresenter.d.ts +24 -4
- package/lib/command/markup/AcApMarkupPresenter.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupPresenter.js +100 -18
- package/lib/command/markup/AcApMarkupPresenter.js.map +1 -1
- package/lib/command/markup/AcApMarkupRectCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupRectCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupRectCmd.js +8 -9
- package/lib/command/markup/AcApMarkupRectCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupSession.d.ts +54 -0
- package/lib/command/markup/AcApMarkupSession.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupSession.js +85 -0
- package/lib/command/markup/AcApMarkupSession.js.map +1 -0
- package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts +2 -0
- package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupSessionBootstrap.js +12 -0
- package/lib/command/markup/AcApMarkupSessionBootstrap.js.map +1 -0
- package/lib/command/markup/AcApMarkupShapeBuilder.d.ts +7 -4
- package/lib/command/markup/AcApMarkupShapeBuilder.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeBuilder.js +24 -11
- package/lib/command/markup/AcApMarkupShapeBuilder.js.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.d.ts +21 -1
- package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.js +41 -25
- package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -1
- package/lib/command/markup/AcApMarkupSidecar.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupSidecar.js +39 -5
- package/lib/command/markup/AcApMarkupSidecar.js.map +1 -1
- package/lib/command/markup/AcApMarkupStampCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupStampCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupStampCmd.js +6 -7
- package/lib/command/markup/AcApMarkupStampCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupStore.d.ts +1 -1
- package/lib/command/markup/AcApMarkupStore.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupStore.js +3 -6
- package/lib/command/markup/AcApMarkupStore.js.map +1 -1
- package/lib/command/markup/AcApMarkupTextCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupTextCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupTextCmd.js +13 -9
- package/lib/command/markup/AcApMarkupTextCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupTypes.d.ts +18 -2
- package/lib/command/markup/AcApMarkupTypes.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupUtil.d.ts +36 -7
- package/lib/command/markup/AcApMarkupUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupUtil.js +149 -34
- package/lib/command/markup/AcApMarkupUtil.js.map +1 -1
- package/lib/command/markup/AcApRegisterMarkupCommands.d.ts +8 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.d.ts.map +1 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.js +35 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.js +16 -15
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntity.d.ts +5 -1
- package/lib/command/markup/entity/AcApMarkupEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntity.js +19 -5
- package/lib/command/markup/entity/AcApMarkupEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts +8 -3
- package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntityGrips.js +15 -7
- package/lib/command/markup/entity/AcApMarkupEntityGrips.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.js +14 -12
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.js +8 -6
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupShapeEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupShapeEntity.js +23 -21
- package/lib/command/markup/entity/AcApMarkupShapeEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupStampEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupStampEntity.js +1 -0
- package/lib/command/markup/entity/AcApMarkupStampEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupTextEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupTextEntity.js +1 -0
- package/lib/command/markup/entity/AcApMarkupTextEntity.js.map +1 -1
- package/lib/command/markup/index.d.ts +4 -0
- package/lib/command/markup/index.d.ts.map +1 -1
- package/lib/command/markup/index.js +5 -0
- package/lib/command/markup/index.js.map +1 -1
- package/lib/command/measure/AcApMeasureAngleArc.d.ts +27 -0
- package/lib/command/measure/AcApMeasureAngleArc.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureAngleArc.js +22 -0
- package/lib/command/measure/AcApMeasureAngleArc.js.map +1 -0
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureAngleCmd.js +46 -45
- package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.js +71 -67
- package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureAreaCmd.js +102 -99
- package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureContinuousCmd.d.ts +44 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.js +317 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.js.map +1 -0
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts +3 -3
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureDistanceCmd.js +41 -37
- package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureDrawCmd.d.ts +32 -0
- package/lib/command/measure/AcApMeasureDrawCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureDrawCmd.js +56 -0
- package/lib/command/measure/AcApMeasureDrawCmd.js.map +1 -0
- package/lib/command/measure/AcApMeasurePointCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasurePointCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurePointCmd.js +20 -23
- package/lib/command/measure/AcApMeasurePointCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasurementGeometry.d.ts +19 -0
- package/lib/command/measure/AcApMeasurementGeometry.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementGeometry.js +53 -3
- package/lib/command/measure/AcApMeasurementGeometry.js.map +1 -1
- package/lib/command/measure/AcApMeasurementHistory.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementHistory.js +3 -1
- package/lib/command/measure/AcApMeasurementHistory.js.map +1 -1
- package/lib/command/measure/AcApMeasurementPlace.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementPlace.js +22 -5
- package/lib/command/measure/AcApMeasurementPlace.js.map +1 -1
- package/lib/command/measure/AcApMeasurementRepublish.d.ts +35 -0
- package/lib/command/measure/AcApMeasurementRepublish.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementRepublish.js +31 -0
- package/lib/command/measure/AcApMeasurementRepublish.js.map +1 -0
- package/lib/command/measure/AcApMeasurementSidecar.d.ts +2 -1
- package/lib/command/measure/AcApMeasurementSidecar.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementSidecar.js +55 -10
- package/lib/command/measure/AcApMeasurementSidecar.js.map +1 -1
- package/lib/command/measure/AcApMeasurementStore.d.ts +45 -2
- package/lib/command/measure/AcApMeasurementStore.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementStore.js +277 -33
- package/lib/command/measure/AcApMeasurementStore.js.map +1 -1
- package/lib/command/measure/AcApMeasurementTypes.d.ts +17 -1
- package/lib/command/measure/AcApMeasurementTypes.d.ts.map +1 -1
- package/lib/command/measure/AcApRegisterMeasureCommands.d.ts +8 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.d.ts.map +1 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.js +29 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts +3 -5
- package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAngleEntity.js +165 -56
- package/lib/command/measure/entity/AcApMeasureAngleEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts +5 -8
- package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureArcEntity.js +251 -53
- package/lib/command/measure/entity/AcApMeasureArcEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts +4 -3
- package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAreaEntity.js +154 -28
- package/lib/command/measure/entity/AcApMeasureAreaEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts +5 -3
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.js +180 -28
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +20 -8
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js +45 -19
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntity.d.ts +41 -6
- package/lib/command/measure/entity/AcApMeasureEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntity.js +48 -2
- package/lib/command/measure/entity/AcApMeasureEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts +2 -2
- package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityFactory.js +10 -3
- package/lib/command/measure/entity/AcApMeasureEntityFactory.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts +33 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.js +49 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts +3 -2
- package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasurePointEntity.js +130 -16
- package/lib/command/measure/entity/AcApMeasurePointEntity.js.map +1 -1
- package/lib/command/measure/entity/index.d.ts +1 -0
- package/lib/command/measure/entity/index.d.ts.map +1 -1
- package/lib/command/measure/entity/index.js +1 -0
- package/lib/command/measure/entity/index.js.map +1 -1
- package/lib/command/measure/index.d.ts +4 -0
- package/lib/command/measure/index.d.ts.map +1 -1
- package/lib/command/measure/index.js +4 -0
- package/lib/command/measure/index.js.map +1 -1
- package/lib/command/overlay/AcApHtmlLivePreview.d.ts +16 -4
- package/lib/command/overlay/AcApHtmlLivePreview.d.ts.map +1 -1
- package/lib/command/overlay/AcApHtmlLivePreview.js +42 -12
- package/lib/command/overlay/AcApHtmlLivePreview.js.map +1 -1
- package/lib/command/overlay/AcApOverlayDrawUtil.d.ts +113 -3
- package/lib/command/overlay/AcApOverlayDrawUtil.d.ts.map +1 -1
- package/lib/command/overlay/AcApOverlayDrawUtil.js +341 -7
- package/lib/command/overlay/AcApOverlayDrawUtil.js.map +1 -1
- package/lib/command/overlay/AcApOverlayGripHost.d.ts +19 -0
- package/lib/command/overlay/AcApOverlayGripHost.d.ts.map +1 -1
- package/lib/command/overlay/AcApOverlayGripHost.js +124 -6
- package/lib/command/overlay/AcApOverlayGripHost.js.map +1 -1
- package/lib/editor/command/AcEdCommand.d.ts +17 -0
- package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommand.js +81 -1
- package/lib/editor/command/AcEdCommand.js.map +1 -1
- package/lib/editor/command/AcEdCommandStack.d.ts +14 -3
- package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommandStack.js +39 -3
- package/lib/editor/command/AcEdCommandStack.js.map +1 -1
- package/lib/editor/command/AcEdSessionAccessory.d.ts +82 -0
- package/lib/editor/command/AcEdSessionAccessory.d.ts.map +1 -0
- package/lib/editor/command/AcEdSessionAccessory.js +15 -0
- package/lib/editor/command/AcEdSessionAccessory.js.map +1 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.d.ts +42 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.d.ts.map +1 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.js +54 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.js.map +1 -0
- package/lib/editor/command/index.d.ts +4 -0
- package/lib/editor/command/index.d.ts.map +1 -1
- package/lib/editor/command/index.js +3 -0
- package/lib/editor/command/index.js.map +1 -1
- package/lib/editor/global/AcEdUiColor.d.ts +10 -0
- package/lib/editor/global/AcEdUiColor.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiColor.js +14 -0
- package/lib/editor/global/AcEdUiColor.js.map +1 -1
- package/lib/editor/global/AcEdUiLayout.d.ts +102 -0
- package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiLayout.js +137 -0
- package/lib/editor/global/AcEdUiLayout.js.map +1 -1
- package/lib/editor/global/AcEdUiTheme.d.ts +15 -3
- package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiTheme.js +113 -6
- package/lib/editor/global/AcEdUiTheme.js.map +1 -1
- package/lib/editor/grip/AcEdGripAppearance.d.ts +18 -0
- package/lib/editor/grip/AcEdGripAppearance.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripAppearance.js +23 -1
- package/lib/editor/grip/AcEdGripAppearance.js.map +1 -1
- package/lib/editor/grip/AcEdGripEditSession.js +2 -2
- package/lib/editor/grip/AcEdGripEditSession.js.map +1 -1
- package/lib/editor/grip/AcEdGripHandle.d.ts +1 -2
- package/lib/editor/grip/AcEdGripHandle.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripHandle.js +4 -13
- package/lib/editor/grip/AcEdGripHandle.js.map +1 -1
- package/lib/editor/grip/AcEdGripManager.d.ts +3 -1
- package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripManager.js +30 -14
- package/lib/editor/grip/AcEdGripManager.js.map +1 -1
- package/lib/editor/grip/index.d.ts +1 -0
- package/lib/editor/grip/index.d.ts.map +1 -1
- package/lib/editor/grip/index.js +1 -0
- package/lib/editor/grip/index.js.map +1 -1
- package/lib/editor/input/AcEdDynamicInput.d.ts +15 -0
- package/lib/editor/input/AcEdDynamicInput.d.ts.map +1 -0
- package/lib/editor/input/AcEdDynamicInput.js +22 -0
- package/lib/editor/input/AcEdDynamicInput.js.map +1 -0
- package/lib/editor/input/AcEdOsnapCenterMarks.d.ts +19 -1
- package/lib/editor/input/AcEdOsnapCenterMarks.d.ts.map +1 -1
- package/lib/editor/input/AcEdOsnapCenterMarks.js +53 -9
- package/lib/editor/input/AcEdOsnapCenterMarks.js.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.js +216 -35
- package/lib/editor/input/AcEdOsnapResolver.js.map +1 -1
- package/lib/editor/input/AcEditor.d.ts +14 -1
- package/lib/editor/input/AcEditor.d.ts.map +1 -1
- package/lib/editor/input/AcEditor.js +18 -2
- package/lib/editor/input/AcEditor.js.map +1 -1
- package/lib/editor/input/index.d.ts +1 -0
- package/lib/editor/input/index.d.ts.map +1 -1
- package/lib/editor/input/index.js +1 -0
- package/lib/editor/input/index.js.map +1 -1
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts +12 -0
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts.map +1 -1
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.js +53 -18
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +15 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js +24 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts +33 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js +85 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts +57 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js +104 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +144 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +412 -13
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +2 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingMessage.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingMessage.js +2 -2
- package/lib/editor/input/ui/AcEdFloatingMessage.js.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts +100 -7
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +805 -164
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts +94 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.js +60 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts +52 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js +201 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts +89 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js +143 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts +29 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.js +37 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts +45 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.js +63 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.js.map +1 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts +113 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js +295 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js.map +1 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts +28 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js +86 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.d.ts +60 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.js +109 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.js.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts +47 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.js +50 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts +97 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.js +74 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.d.ts +198 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.js +329 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts +18 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.js +18 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.js.map +1 -0
- package/lib/editor/input/ui/index.d.ts +13 -0
- package/lib/editor/input/ui/index.d.ts.map +1 -1
- package/lib/editor/input/ui/index.js +13 -0
- package/lib/editor/input/ui/index.js.map +1 -1
- package/lib/editor/view/AcEdBaseView.d.ts +144 -39
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +210 -41
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- package/lib/editor/view/AcEdViewMode.d.ts +34 -0
- package/lib/editor/view/AcEdViewMode.d.ts.map +1 -0
- package/lib/editor/view/AcEdViewMode.js +35 -0
- package/lib/editor/view/AcEdViewMode.js.map +1 -0
- package/lib/editor/view/index.d.ts +1 -0
- package/lib/editor/view/index.d.ts.map +1 -1
- package/lib/editor/view/index.js +1 -0
- package/lib/editor/view/index.js.map +1 -1
- package/lib/i18n/AcApI18n.d.ts +1 -1
- package/lib/i18n/AcApI18n.d.ts.map +1 -1
- package/lib/i18n/AcApI18n.js +3 -2
- package/lib/i18n/AcApI18n.js.map +1 -1
- package/lib/i18n/ar/command.d.ts +465 -0
- package/lib/i18n/ar/command.d.ts.map +1 -0
- package/lib/i18n/ar/command.js +14 -0
- package/lib/i18n/ar/command.js.map +1 -0
- package/lib/i18n/ar/jig.d.ts +1251 -0
- package/lib/i18n/ar/jig.d.ts.map +1 -0
- package/lib/i18n/ar/jig.js +606 -0
- package/lib/i18n/ar/jig.js.map +1 -0
- package/lib/i18n/ar/main.d.ts +133 -0
- package/lib/i18n/ar/main.d.ts.map +1 -0
- package/lib/i18n/ar/main.js +132 -0
- package/lib/i18n/ar/main.js.map +1 -0
- package/lib/i18n/cs/command.d.ts +9 -0
- package/lib/i18n/cs/command.d.ts.map +1 -1
- package/lib/i18n/cs/command.js +9 -0
- package/lib/i18n/cs/command.js.map +1 -1
- package/lib/i18n/cs/jig.d.ts +20 -0
- package/lib/i18n/cs/jig.d.ts.map +1 -1
- package/lib/i18n/cs/jig.js +21 -1
- package/lib/i18n/cs/jig.js.map +1 -1
- package/lib/i18n/cs/main.d.ts +70 -1
- package/lib/i18n/cs/main.d.ts.map +1 -1
- package/lib/i18n/cs/main.js +71 -2
- package/lib/i18n/cs/main.js.map +1 -1
- package/lib/i18n/en/command.d.ts +12 -0
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +12 -0
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +20 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +21 -1
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/en/main.d.ts +70 -1
- package/lib/i18n/en/main.d.ts.map +1 -1
- package/lib/i18n/en/main.js +71 -2
- package/lib/i18n/en/main.js.map +1 -1
- package/lib/i18n/index.d.ts.map +1 -1
- package/lib/i18n/index.js +8 -0
- package/lib/i18n/index.js.map +1 -1
- package/lib/i18n/tr/command.d.ts +9 -0
- package/lib/i18n/tr/command.d.ts.map +1 -1
- package/lib/i18n/tr/command.js +9 -0
- package/lib/i18n/tr/command.js.map +1 -1
- package/lib/i18n/tr/jig.d.ts +20 -0
- package/lib/i18n/tr/jig.d.ts.map +1 -1
- package/lib/i18n/tr/jig.js +21 -1
- package/lib/i18n/tr/jig.js.map +1 -1
- package/lib/i18n/tr/main.d.ts +70 -1
- package/lib/i18n/tr/main.d.ts.map +1 -1
- package/lib/i18n/tr/main.js +71 -2
- package/lib/i18n/tr/main.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +12 -0
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +12 -0
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +20 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +21 -1
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/i18n/zh/main.d.ts +70 -1
- package/lib/i18n/zh/main.d.ts.map +1 -1
- package/lib/i18n/zh/main.js +72 -3
- package/lib/i18n/zh/main.js.map +1 -1
- package/lib/plugin/AcApPluginManager.d.ts +10 -0
- package/lib/plugin/AcApPluginManager.d.ts.map +1 -1
- package/lib/plugin/AcApPluginManager.js +18 -0
- package/lib/plugin/AcApPluginManager.js.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js +11 -4
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
- package/lib/ui/AcUiAciColorDialog.d.ts +57 -0
- package/lib/ui/AcUiAciColorDialog.d.ts.map +1 -0
- package/lib/ui/AcUiAciColorDialog.js +91 -0
- package/lib/ui/AcUiAciColorDialog.js.map +1 -0
- package/lib/ui/AcUiAciPaletteUi.d.ts +118 -0
- package/lib/ui/AcUiAciPaletteUi.d.ts.map +1 -0
- package/lib/ui/AcUiAciPaletteUi.js +521 -0
- package/lib/ui/AcUiAciPaletteUi.js.map +1 -0
- package/lib/ui/AcUiDialog.d.ts +38 -2
- package/lib/ui/AcUiDialog.d.ts.map +1 -1
- package/lib/ui/AcUiDialog.js +45 -16
- package/lib/ui/AcUiDialog.js.map +1 -1
- package/lib/ui/AcUiDrawStyle.d.ts +59 -0
- package/lib/ui/AcUiDrawStyle.d.ts.map +1 -0
- package/lib/ui/AcUiDrawStyle.js +94 -0
- package/lib/ui/AcUiDrawStyle.js.map +1 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts +108 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts.map +1 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.js +455 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.js.map +1 -0
- package/lib/ui/AcUiFullscreenPanel.d.ts +89 -0
- package/lib/ui/AcUiFullscreenPanel.d.ts.map +1 -0
- package/lib/ui/AcUiFullscreenPanel.js +224 -0
- package/lib/ui/AcUiFullscreenPanel.js.map +1 -0
- package/lib/ui/AcUiHelpPanel.d.ts +49 -0
- package/lib/ui/AcUiHelpPanel.d.ts.map +1 -0
- package/lib/ui/AcUiHelpPanel.js +124 -0
- package/lib/ui/AcUiHelpPanel.js.map +1 -0
- package/lib/ui/AcUiMobileSessionPanel.d.ts +174 -0
- package/lib/ui/AcUiMobileSessionPanel.d.ts.map +1 -0
- package/lib/ui/AcUiMobileSessionPanel.js +557 -0
- package/lib/ui/AcUiMobileSessionPanel.js.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts +136 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.js +250 -0
- package/lib/ui/AcUiShortCutToolbar.js.map +1 -0
- package/lib/ui/AcUiSimpleToolbar.d.ts +110 -0
- package/lib/ui/AcUiSimpleToolbar.d.ts.map +1 -0
- package/lib/ui/AcUiSimpleToolbar.js +431 -0
- package/lib/ui/AcUiSimpleToolbar.js.map +1 -0
- package/lib/ui/AcUiTextHeightDialog.d.ts +85 -0
- package/lib/ui/AcUiTextHeightDialog.d.ts.map +1 -0
- package/lib/ui/AcUiTextHeightDialog.js +205 -0
- package/lib/ui/AcUiTextHeightDialog.js.map +1 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.d.ts +54 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.d.ts.map +1 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.js +128 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.js.map +1 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.d.ts +18 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.d.ts.map +1 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.js +58 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.js.map +1 -0
- package/lib/ui/icons.d.ts +175 -0
- package/lib/ui/icons.d.ts.map +1 -0
- package/lib/ui/icons.js +227 -0
- package/lib/ui/icons.js.map +1 -0
- package/lib/ui/index.d.ts +14 -2
- package/lib/ui/index.d.ts.map +1 -1
- package/lib/ui/index.js +14 -2
- package/lib/ui/index.js.map +1 -1
- package/lib/ui/touch-point-tutorial.d.ts +64 -0
- package/lib/ui/touch-point-tutorial.d.ts.map +1 -0
- package/lib/ui/touch-point-tutorial.js +271 -0
- package/lib/ui/touch-point-tutorial.js.map +1 -0
- package/lib/ui-html-entry.d.ts +31 -0
- package/lib/ui-html-entry.d.ts.map +1 -0
- package/lib/ui-html-entry.js +23 -0
- package/lib/ui-html-entry.js.map +1 -0
- package/lib/util/AcApAciPalette.d.ts +7 -0
- package/lib/util/AcApAciPalette.d.ts.map +1 -0
- package/lib/util/AcApAciPalette.js +51 -0
- package/lib/util/AcApAciPalette.js.map +1 -0
- package/lib/util/AcApCommandUtil.d.ts +15 -0
- package/lib/util/AcApCommandUtil.d.ts.map +1 -0
- package/lib/util/AcApCommandUtil.js +38 -0
- package/lib/util/AcApCommandUtil.js.map +1 -0
- package/lib/util/AcApCssColor.d.ts +10 -0
- package/lib/util/AcApCssColor.d.ts.map +1 -1
- package/lib/util/AcApCssColor.js +52 -0
- package/lib/util/AcApCssColor.js.map +1 -1
- package/lib/util/AcApMeasurementUnits.d.ts +13 -1
- package/lib/util/AcApMeasurementUnits.d.ts.map +1 -1
- package/lib/util/AcApMeasurementUnits.js +144 -10
- package/lib/util/AcApMeasurementUnits.js.map +1 -1
- package/lib/util/AcApMeasurementUtil.d.ts +30 -9
- package/lib/util/AcApMeasurementUtil.d.ts.map +1 -1
- package/lib/util/AcApMeasurementUtil.js +70 -40
- package/lib/util/AcApMeasurementUtil.js.map +1 -1
- package/lib/util/AcApOpenFileErrorMessage.d.ts +25 -0
- package/lib/util/AcApOpenFileErrorMessage.d.ts.map +1 -0
- package/lib/util/AcApOpenFileErrorMessage.js +121 -0
- package/lib/util/AcApOpenFileErrorMessage.js.map +1 -0
- package/lib/util/index.d.ts +3 -0
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +3 -0
- package/lib/util/index.js.map +1 -1
- package/lib/view/AcApCompareDisplay.d.ts +37 -0
- package/lib/view/AcApCompareDisplay.d.ts.map +1 -0
- package/lib/view/AcApCompareDisplay.js +8 -0
- package/lib/view/AcApCompareDisplay.js.map +1 -0
- package/lib/view/AcApReadingMode.d.ts +52 -0
- package/lib/view/AcApReadingMode.d.ts.map +1 -0
- package/lib/view/AcApReadingMode.js +81 -0
- package/lib/view/AcApReadingMode.js.map +1 -0
- package/lib/view/AcEdReviewOverlayPick.d.ts +9 -0
- package/lib/view/AcEdReviewOverlayPick.d.ts.map +1 -1
- package/lib/view/AcEdReviewOverlayPick.js +30 -1
- package/lib/view/AcEdReviewOverlayPick.js.map +1 -1
- package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
- package/lib/view/AcEdViewKeyHandler.js +6 -1
- package/lib/view/AcEdViewKeyHandler.js.map +1 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts +6 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts.map +1 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.js +9 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.js.map +1 -1
- package/lib/view/AcTrLayer.d.ts +6 -0
- package/lib/view/AcTrLayer.d.ts.map +1 -1
- package/lib/view/AcTrLayer.js +8 -0
- package/lib/view/AcTrLayer.js.map +1 -1
- package/lib/view/AcTrLayout.d.ts +12 -0
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +35 -12
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrLayoutView.d.ts +25 -1
- package/lib/view/AcTrLayoutView.d.ts.map +1 -1
- package/lib/view/AcTrLayoutView.js +62 -1
- package/lib/view/AcTrLayoutView.js.map +1 -1
- package/lib/view/AcTrScene.d.ts +7 -0
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +13 -0
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +79 -2
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +407 -57
- package/lib/view/AcTrView2d.js.map +1 -1
- package/lib/view/AcTrViewSessionState.d.ts +32 -0
- package/lib/view/AcTrViewSessionState.d.ts.map +1 -0
- package/lib/view/AcTrViewSessionState.js +2 -0
- package/lib/view/AcTrViewSessionState.js.map +1 -0
- package/lib/view/index.d.ts +3 -0
- package/lib/view/index.d.ts.map +1 -1
- package/lib/view/index.js +3 -0
- package/lib/view/index.js.map +1 -1
- package/package.json +15 -8
- package/src/ui/icons.ts +387 -0
- package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +0 -1
- package/lib/app/AcDbOpenDatabaseOptions.js.map +0 -1
- package/lib/ui/AcApDrawStyle.d.ts +0 -81
- package/lib/ui/AcApDrawStyle.d.ts.map +0 -1
- package/lib/ui/AcApDrawStyle.js +0 -170
- package/lib/ui/AcApDrawStyle.js.map +0 -1
- package/lib/ui/AcApDrawStyleToolbar.d.ts +0 -129
- package/lib/ui/AcApDrawStyleToolbar.d.ts.map +0 -1
- package/lib/ui/AcApDrawStyleToolbar.js +0 -607
- package/lib/ui/AcApDrawStyleToolbar.js.map +0 -1
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selection-driven color / text-height buttons mounted on the shortcut toolbar.
|
|
3
|
+
*
|
|
4
|
+
* @module AcApShortCutSelectionAccessory
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
*/
|
|
7
|
+
var __assign = (this && this.__assign) || function () {
|
|
8
|
+
__assign = Object.assign || function(t) {
|
|
9
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
10
|
+
s = arguments[i];
|
|
11
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
12
|
+
t[p] = s[p];
|
|
13
|
+
}
|
|
14
|
+
return t;
|
|
15
|
+
};
|
|
16
|
+
return __assign.apply(this, arguments);
|
|
17
|
+
};
|
|
18
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
19
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
20
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
21
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
22
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
23
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
24
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
28
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
29
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
30
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
31
|
+
function step(op) {
|
|
32
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
33
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
34
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
35
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
36
|
+
switch (op[0]) {
|
|
37
|
+
case 0: case 1: t = op; break;
|
|
38
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
39
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
40
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
41
|
+
default:
|
|
42
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
43
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
44
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
45
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
46
|
+
if (t[2]) _.ops.pop();
|
|
47
|
+
_.trys.pop(); continue;
|
|
48
|
+
}
|
|
49
|
+
op = body.call(thisArg, _);
|
|
50
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
51
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
import { AcCmColor } from '@mlightcad/data-model';
|
|
55
|
+
import { resolveUiTheme } from '../editor/global/AcEdUiTheme';
|
|
56
|
+
import { AcApI18n } from '../i18n';
|
|
57
|
+
import { AcUiAciColorDialog } from '../ui/AcUiAciColorDialog';
|
|
58
|
+
import { acuiOpenTextHeightDialog, acuiResolveTextHeightDialogInitials, acuiResolveTextHeightPatch } from '../ui/AcUiTextHeightDialogHelpers';
|
|
59
|
+
import { ICON_TEXT_HEIGHT } from '../ui/icons';
|
|
60
|
+
import { acapGetMeasurementCustomTextHeightWcs, acapGetMeasurementFontSize, acapGetMeasurementTextHeightMode, acapSetMeasurementDrawColor, acapSetMeasurementTextHeight } from '../util/AcApMeasurementUtil';
|
|
61
|
+
import { applyMarkupStyleToSelection } from './markup/AcApMarkupPresenter';
|
|
62
|
+
import { getMarkupStore } from './markup/AcApMarkupStore';
|
|
63
|
+
import { cssToMarkupColor, getMarkupCustomTextHeightWcs, getMarkupFontSize, getMarkupTextHeightMode, markupColorToCss, setMarkupDrawColor, setMarkupTextHeight } from './markup/AcApMarkupUtil';
|
|
64
|
+
import { applyMeasurementStyleToSelection, getActiveMeasurementStyle, getMeasurementSnapshot, getSelectedMeasurementId } from './measure/AcApMeasurementStore';
|
|
65
|
+
function colorFromAci(index) {
|
|
66
|
+
var color = new AcCmColor();
|
|
67
|
+
color.colorIndex = index;
|
|
68
|
+
return color;
|
|
69
|
+
}
|
|
70
|
+
function createColorIcon(css) {
|
|
71
|
+
var wrap = document.createElement('span');
|
|
72
|
+
wrap.className = 'ml-ui-simple-toolbar__icon';
|
|
73
|
+
wrap.style.cssText =
|
|
74
|
+
'display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center';
|
|
75
|
+
var fill = document.createElement('span');
|
|
76
|
+
fill.style.cssText = "display:block;width:12px;height:12px;border-radius:50%;border:1px solid #666;background:".concat(css);
|
|
77
|
+
wrap.appendChild(fill);
|
|
78
|
+
return wrap;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Builds and syncs shortcut-toolbar extension items for measure/markup selection.
|
|
82
|
+
*/
|
|
83
|
+
export function acapBindShortCutSelectionAccessory(view, shortcut, getKind) {
|
|
84
|
+
var _this = this;
|
|
85
|
+
var colorDialogOpen = false;
|
|
86
|
+
var textHeightDialogOpen = false;
|
|
87
|
+
var sync = function () {
|
|
88
|
+
var kind = getKind();
|
|
89
|
+
if (kind == null) {
|
|
90
|
+
shortcut.setExtensionItems([]);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
var measureSelected = kind === 'measure' ? getSelectedMeasurementId() != null : false;
|
|
94
|
+
var markupSelected = kind === 'markup' ? getMarkupStore().selectedId != null : false;
|
|
95
|
+
if (!measureSelected && !markupSelected) {
|
|
96
|
+
shortcut.setExtensionItems([]);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
var colorCss = '#7b8794';
|
|
100
|
+
if (kind === 'measure') {
|
|
101
|
+
var style = getActiveMeasurementStyle();
|
|
102
|
+
if (style)
|
|
103
|
+
colorCss = "rgb(".concat(style.color.red, ",").concat(style.color.green, ",").concat(style.color.blue, ")");
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
var id = getMarkupStore().selectedId;
|
|
107
|
+
var record = id ? getMarkupStore().get(id) : undefined;
|
|
108
|
+
if (record)
|
|
109
|
+
colorCss = record.style.color;
|
|
110
|
+
}
|
|
111
|
+
var items = [
|
|
112
|
+
{
|
|
113
|
+
id: 'selection-color',
|
|
114
|
+
icon: function () { return createColorIcon(colorCss); },
|
|
115
|
+
label: AcApI18n.t('main.drawStyle.color'),
|
|
116
|
+
onClick: function () {
|
|
117
|
+
void openColor(kind);
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: 'selection-text-height',
|
|
122
|
+
icon: ICON_TEXT_HEIGHT,
|
|
123
|
+
label: AcApI18n.t('main.drawStyle.fontSize'),
|
|
124
|
+
onClick: function () {
|
|
125
|
+
void openTextHeight(kind);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
];
|
|
129
|
+
shortcut.setExtensionItems(items);
|
|
130
|
+
};
|
|
131
|
+
var openColor = function (kind) { return __awaiter(_this, void 0, void 0, function () {
|
|
132
|
+
var initial, style, id, record, color_1, index, color;
|
|
133
|
+
return __generator(this, function (_a) {
|
|
134
|
+
switch (_a.label) {
|
|
135
|
+
case 0:
|
|
136
|
+
if (colorDialogOpen)
|
|
137
|
+
return [2 /*return*/];
|
|
138
|
+
colorDialogOpen = true;
|
|
139
|
+
_a.label = 1;
|
|
140
|
+
case 1:
|
|
141
|
+
_a.trys.push([1, , 3, 4]);
|
|
142
|
+
initial = null;
|
|
143
|
+
if (kind === 'measure') {
|
|
144
|
+
style = getActiveMeasurementStyle();
|
|
145
|
+
if ((style === null || style === void 0 ? void 0 : style.color.isByACI) && style.color.colorIndex != null) {
|
|
146
|
+
initial = style.color.colorIndex;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
id = getMarkupStore().selectedId;
|
|
151
|
+
record = id ? getMarkupStore().get(id) : undefined;
|
|
152
|
+
if (record) {
|
|
153
|
+
color_1 = cssToMarkupColor(record.style.color);
|
|
154
|
+
if (color_1.isByACI && color_1.colorIndex != null) {
|
|
155
|
+
initial = color_1.colorIndex;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return [4 /*yield*/, AcUiAciColorDialog.open({
|
|
160
|
+
host: view.container,
|
|
161
|
+
theme: resolveUiTheme(view.container),
|
|
162
|
+
initialIndex: initial,
|
|
163
|
+
labels: {
|
|
164
|
+
title: AcApI18n.t('main.colorPicker.title'),
|
|
165
|
+
close: AcApI18n.t('main.colorPicker.close'),
|
|
166
|
+
ok: AcApI18n.t('main.colorPicker.ok'),
|
|
167
|
+
cancel: AcApI18n.t('main.colorPicker.cancel'),
|
|
168
|
+
index: AcApI18n.t('main.colorPicker.index'),
|
|
169
|
+
rgb: AcApI18n.t('main.colorPicker.rgb'),
|
|
170
|
+
input: AcApI18n.t('main.colorPicker.input'),
|
|
171
|
+
inputPlaceholder: AcApI18n.t('main.colorPicker.inputPlaceholder')
|
|
172
|
+
}
|
|
173
|
+
})];
|
|
174
|
+
case 2:
|
|
175
|
+
index = _a.sent();
|
|
176
|
+
if (index == null)
|
|
177
|
+
return [2 /*return*/];
|
|
178
|
+
color = colorFromAci(index);
|
|
179
|
+
if (kind === 'measure') {
|
|
180
|
+
acapSetMeasurementDrawColor(color);
|
|
181
|
+
applyMeasurementStyleToSelection(view, { color: color });
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
setMarkupDrawColor(color);
|
|
185
|
+
applyMarkupStyleToSelection(view, { color: markupColorToCss(color) });
|
|
186
|
+
}
|
|
187
|
+
sync();
|
|
188
|
+
return [3 /*break*/, 4];
|
|
189
|
+
case 3:
|
|
190
|
+
colorDialogOpen = false;
|
|
191
|
+
return [7 /*endfinally*/];
|
|
192
|
+
case 4: return [2 /*return*/];
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
}); };
|
|
196
|
+
var openTextHeight = function (kind) { return __awaiter(_this, void 0, void 0, function () {
|
|
197
|
+
var selectedMeasure, markupSelectedId, selectedMarkup, hasSelection, sessionMode, fontSizePx, measureId, selectedTextHeightWcs, initials, result, patch;
|
|
198
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
199
|
+
return __generator(this, function (_j) {
|
|
200
|
+
switch (_j.label) {
|
|
201
|
+
case 0:
|
|
202
|
+
if (textHeightDialogOpen)
|
|
203
|
+
return [2 /*return*/];
|
|
204
|
+
textHeightDialogOpen = true;
|
|
205
|
+
_j.label = 1;
|
|
206
|
+
case 1:
|
|
207
|
+
_j.trys.push([1, , 3, 4]);
|
|
208
|
+
selectedMeasure = kind === 'measure' ? getActiveMeasurementStyle() : undefined;
|
|
209
|
+
markupSelectedId = getMarkupStore().selectedId;
|
|
210
|
+
selectedMarkup = kind === 'markup' && markupSelectedId
|
|
211
|
+
? getMarkupStore().get(markupSelectedId)
|
|
212
|
+
: undefined;
|
|
213
|
+
hasSelection = selectedMeasure != null || selectedMarkup != null;
|
|
214
|
+
sessionMode = kind === 'measure'
|
|
215
|
+
? (_a = selectedMeasure === null || selectedMeasure === void 0 ? void 0 : selectedMeasure.textHeightMode) !== null && _a !== void 0 ? _a : acapGetMeasurementTextHeightMode()
|
|
216
|
+
: (_b = selectedMarkup === null || selectedMarkup === void 0 ? void 0 : selectedMarkup.style.textHeightMode) !== null && _b !== void 0 ? _b : getMarkupTextHeightMode();
|
|
217
|
+
fontSizePx = kind === 'measure'
|
|
218
|
+
? (_c = selectedMeasure === null || selectedMeasure === void 0 ? void 0 : selectedMeasure.fontSize) !== null && _c !== void 0 ? _c : acapGetMeasurementFontSize()
|
|
219
|
+
: (_d = selectedMarkup === null || selectedMarkup === void 0 ? void 0 : selectedMarkup.style.fontSize) !== null && _d !== void 0 ? _d : getMarkupFontSize();
|
|
220
|
+
measureId = getSelectedMeasurementId();
|
|
221
|
+
selectedTextHeightWcs = kind === 'measure'
|
|
222
|
+
? hasSelection
|
|
223
|
+
? (_e = selectedMeasure === null || selectedMeasure === void 0 ? void 0 : selectedMeasure.textHeightWcs) !== null && _e !== void 0 ? _e : (measureId
|
|
224
|
+
? (_f = getMeasurementSnapshot(measureId)) === null || _f === void 0 ? void 0 : _f.style.textHeightWcs
|
|
225
|
+
: undefined)
|
|
226
|
+
: acapGetMeasurementCustomTextHeightWcs()
|
|
227
|
+
: hasSelection
|
|
228
|
+
? selectedMarkup === null || selectedMarkup === void 0 ? void 0 : selectedMarkup.style.textHeightWcs
|
|
229
|
+
: getMarkupCustomTextHeightWcs();
|
|
230
|
+
initials = acuiResolveTextHeightDialogInitials({
|
|
231
|
+
hasSelection: hasSelection,
|
|
232
|
+
sessionMode: sessionMode !== null && sessionMode !== void 0 ? sessionMode : 'adaptive',
|
|
233
|
+
fontSizePx: fontSizePx,
|
|
234
|
+
selectedTextHeightWcs: selectedTextHeightWcs,
|
|
235
|
+
view: view
|
|
236
|
+
});
|
|
237
|
+
return [4 /*yield*/, acuiOpenTextHeightDialog(__assign({ view: view }, initials))];
|
|
238
|
+
case 2:
|
|
239
|
+
result = _j.sent();
|
|
240
|
+
if (!result)
|
|
241
|
+
return [2 /*return*/];
|
|
242
|
+
patch = acuiResolveTextHeightPatch(view, result, initials.initialFontSizePx);
|
|
243
|
+
if (kind === 'measure') {
|
|
244
|
+
acapSetMeasurementTextHeight(patch.textHeightMode, patch.textHeightMode === 'custom'
|
|
245
|
+
? ((_g = patch.textHeightWcs) !== null && _g !== void 0 ? _g : patch.fontSize)
|
|
246
|
+
: patch.fontSize);
|
|
247
|
+
applyMeasurementStyleToSelection(view, patch);
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
setMarkupTextHeight(patch.textHeightMode, patch.textHeightMode === 'custom'
|
|
251
|
+
? ((_h = patch.textHeightWcs) !== null && _h !== void 0 ? _h : patch.fontSize)
|
|
252
|
+
: patch.fontSize);
|
|
253
|
+
applyMarkupStyleToSelection(view, patch);
|
|
254
|
+
}
|
|
255
|
+
sync();
|
|
256
|
+
return [3 /*break*/, 4];
|
|
257
|
+
case 3:
|
|
258
|
+
textHeightDialogOpen = false;
|
|
259
|
+
return [7 /*endfinally*/];
|
|
260
|
+
case 4: return [2 /*return*/];
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
}); };
|
|
264
|
+
return sync;
|
|
265
|
+
}
|
|
266
|
+
//# sourceMappingURL=AcApShortCutSelectionAccessory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApShortCutSelectionAccessory.js","sourceRoot":"","sources":["../../src/command/AcApShortCutSelectionAccessory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,kBAAkB,EA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AAC,CAAC,CAAC,MAAA,KAAK,CAAC,aAAa,mCAAI,KAAK,CAAC,QAAQ,CAAC;4BACzC,CAAC,CAAC,KAAK,CAAC,QAAQ,CACnB,CAAA;wBACD,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;oBAC1C,CAAC;oBACD,IAAI,EAAE,CAAA;;;oBAEN,oBAAoB,GAAG,KAAK,CAAA;;;;;SAE/B,CAAA;IAED,OAAO,IAAI,CAAA;AACb,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wires {@link AcUiShortCutToolbar} to DocManager undo/selection state.
|
|
3
|
+
*
|
|
4
|
+
* Kept separate from the UI module so the offline HTML viewer-runtime can
|
|
5
|
+
* import {@link AcUiShortCutToolbar} without pulling DocManager / markup /
|
|
6
|
+
* measure into the IIFE.
|
|
7
|
+
*
|
|
8
|
+
* @module AcApShortCutToolbarDocBind
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
import type { AcUiShortCutToolbar } from '../ui/AcUiShortCutToolbar';
|
|
12
|
+
/**
|
|
13
|
+
* Binds document undo stack, selection, and default command actions to a
|
|
14
|
+
* shortcut toolbar. Safe to call after DocManager construction completes.
|
|
15
|
+
*
|
|
16
|
+
* @param toolbar - Toolbar created for a view container.
|
|
17
|
+
* @returns Cleanup that removes listeners.
|
|
18
|
+
*/
|
|
19
|
+
export declare function acapBindShortCutToolbarDocState(toolbar: AcUiShortCutToolbar): () => void;
|
|
20
|
+
//# sourceMappingURL=AcApShortCutToolbarDocBind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApShortCutToolbarDocBind.d.ts","sourceRoot":"","sources":["../../src/command/AcApShortCutToolbarDocBind.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,2BAA2B,CAAA;AASlC;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,mBAAmB,GAC3B,MAAM,IAAI,CAqHZ"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wires {@link AcUiShortCutToolbar} to DocManager undo/selection state.
|
|
3
|
+
*
|
|
4
|
+
* Kept separate from the UI module so the offline HTML viewer-runtime can
|
|
5
|
+
* import {@link AcUiShortCutToolbar} without pulling DocManager / markup /
|
|
6
|
+
* measure into the IIFE.
|
|
7
|
+
*
|
|
8
|
+
* @module AcApShortCutToolbarDocBind
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
var __values = (this && this.__values) || function(o) {
|
|
12
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
13
|
+
if (m) return m.call(o);
|
|
14
|
+
if (o && typeof o.length === "number") return {
|
|
15
|
+
next: function () {
|
|
16
|
+
if (o && i >= o.length) o = void 0;
|
|
17
|
+
return { value: o && o[i++], done: !o };
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
21
|
+
};
|
|
22
|
+
import { AcApDocManager } from '../app/AcApDocManager';
|
|
23
|
+
import { eventBus } from '../editor/global/eventBus';
|
|
24
|
+
import { getSessionUndo, runMarkupEdit } from './markup/AcApMarkupHistory';
|
|
25
|
+
import { getMarkupStore } from './markup/AcApMarkupStore';
|
|
26
|
+
import { runMeasurementEdit } from './measure/AcApMeasurementHistory';
|
|
27
|
+
import { MEASUREMENT_LAYER, subscribeMeasurementSelection } from './measure/AcApMeasurementStore';
|
|
28
|
+
/**
|
|
29
|
+
* Binds document undo stack, selection, and default command actions to a
|
|
30
|
+
* shortcut toolbar. Safe to call after DocManager construction completes.
|
|
31
|
+
*
|
|
32
|
+
* @param toolbar - Toolbar created for a view container.
|
|
33
|
+
* @returns Cleanup that removes listeners.
|
|
34
|
+
*/
|
|
35
|
+
export function acapBindShortCutToolbarDocState(toolbar) {
|
|
36
|
+
var unbindViewSelection = null;
|
|
37
|
+
var resolveActionState = function () {
|
|
38
|
+
var dm = AcApDocManager.tryGetInstance();
|
|
39
|
+
if (!dm) {
|
|
40
|
+
return { undo: false, redo: false, erase: false };
|
|
41
|
+
}
|
|
42
|
+
var doc = dm.curDocument;
|
|
43
|
+
var view = dm.curView;
|
|
44
|
+
var db = doc === null || doc === void 0 ? void 0 : doc.database;
|
|
45
|
+
var canUndo = db != null ? getSessionUndo().canUndo(db) : false;
|
|
46
|
+
var canRedo = db != null ? getSessionUndo().canRedo(db) : false;
|
|
47
|
+
var canErase = Boolean(view &&
|
|
48
|
+
(view.selectionSet.count > 0 ||
|
|
49
|
+
view.htmlTransientManager.hasSelection()));
|
|
50
|
+
return { undo: canUndo, redo: canRedo, erase: canErase };
|
|
51
|
+
};
|
|
52
|
+
var runErase = function () {
|
|
53
|
+
var dm = AcApDocManager.tryGetInstance();
|
|
54
|
+
if (!dm)
|
|
55
|
+
return;
|
|
56
|
+
var view = dm.curView;
|
|
57
|
+
if (view && !view.editor.isActive) {
|
|
58
|
+
var removed_1 = false;
|
|
59
|
+
var ht_1 = view.htmlTransientManager;
|
|
60
|
+
if (ht_1.hasSelection()) {
|
|
61
|
+
var selected = ht_1.getSelectedGroups();
|
|
62
|
+
var measurements_1 = selected.filter(function (group) { return group.layer === MEASUREMENT_LAYER; });
|
|
63
|
+
if (measurements_1.length > 0) {
|
|
64
|
+
runMeasurementEdit(view, 'Delete Measurement', function () {
|
|
65
|
+
var e_1, _a;
|
|
66
|
+
try {
|
|
67
|
+
for (var measurements_2 = __values(measurements_1), measurements_2_1 = measurements_2.next(); !measurements_2_1.done; measurements_2_1 = measurements_2.next()) {
|
|
68
|
+
var group = measurements_2_1.value;
|
|
69
|
+
if (ht_1.detach(group.id))
|
|
70
|
+
removed_1 = true;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
74
|
+
finally {
|
|
75
|
+
try {
|
|
76
|
+
if (measurements_2_1 && !measurements_2_1.done && (_a = measurements_2.return)) _a.call(measurements_2);
|
|
77
|
+
}
|
|
78
|
+
finally { if (e_1) throw e_1.error; }
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
var hasMarkupSelection = selected.some(function (group) { return group.layer !== MEASUREMENT_LAYER; }) ||
|
|
83
|
+
(selected.length === 0 && ht_1.hasSelection());
|
|
84
|
+
if (hasMarkupSelection) {
|
|
85
|
+
runMarkupEdit(view, 'Delete Markup', function () {
|
|
86
|
+
removed_1 = ht_1.deleteSelected() || removed_1;
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
if (removed_1) {
|
|
91
|
+
view.isHtmlDirty = true;
|
|
92
|
+
toolbar.syncActionState();
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
dm.sendStringToExecute('erase');
|
|
97
|
+
};
|
|
98
|
+
var bindViewSelection = function (view) {
|
|
99
|
+
unbindViewSelection === null || unbindViewSelection === void 0 ? void 0 : unbindViewSelection();
|
|
100
|
+
unbindViewSelection = null;
|
|
101
|
+
if (!view)
|
|
102
|
+
return;
|
|
103
|
+
var onSelectionChanged = function () { return toolbar.syncActionState(); };
|
|
104
|
+
var selectionSet = view.selectionSet;
|
|
105
|
+
selectionSet.events.selectionAdded.addEventListener(onSelectionChanged);
|
|
106
|
+
selectionSet.events.selectionRemoved.addEventListener(onSelectionChanged);
|
|
107
|
+
unbindViewSelection = function () {
|
|
108
|
+
selectionSet.events.selectionAdded.removeEventListener(onSelectionChanged);
|
|
109
|
+
selectionSet.events.selectionRemoved.removeEventListener(onSelectionChanged);
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
var onUndoStackChanged = function () { return toolbar.syncActionState(); };
|
|
113
|
+
var onDocumentActivated = function () {
|
|
114
|
+
var dm = AcApDocManager.tryGetInstance();
|
|
115
|
+
if (!dm)
|
|
116
|
+
return;
|
|
117
|
+
bindViewSelection(dm.curView);
|
|
118
|
+
toolbar.syncActionState();
|
|
119
|
+
};
|
|
120
|
+
var onSelectionChanged = function () { return toolbar.syncActionState(); };
|
|
121
|
+
toolbar.setActions({
|
|
122
|
+
undo: function () { return AcApDocManager.instance.sendStringToExecute('undo'); },
|
|
123
|
+
redo: function () { return AcApDocManager.instance.sendStringToExecute('redo'); },
|
|
124
|
+
erase: runErase
|
|
125
|
+
});
|
|
126
|
+
toolbar.setActionStateProvider(resolveActionState);
|
|
127
|
+
var attachDocManager = function (attempt) {
|
|
128
|
+
if (attempt === void 0) { attempt = 0; }
|
|
129
|
+
var dm = AcApDocManager.tryGetInstance();
|
|
130
|
+
if (!dm) {
|
|
131
|
+
// Created mid-constructor: retry briefly until the singleton is assigned.
|
|
132
|
+
// Cap retries so hosts without DocManager never spin forever.
|
|
133
|
+
if (attempt < 20)
|
|
134
|
+
queueMicrotask(function () { return attachDocManager(attempt + 1); });
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
dm.events.documentActivated.addEventListener(onDocumentActivated);
|
|
138
|
+
bindViewSelection(dm.curView);
|
|
139
|
+
toolbar.syncActionState();
|
|
140
|
+
};
|
|
141
|
+
eventBus.on('undo-stack-changed', onUndoStackChanged);
|
|
142
|
+
var offMarkup = getMarkupStore().subscribe(onSelectionChanged);
|
|
143
|
+
var offMeasure = subscribeMeasurementSelection(onSelectionChanged);
|
|
144
|
+
attachDocManager();
|
|
145
|
+
return function () {
|
|
146
|
+
eventBus.off('undo-stack-changed', onUndoStackChanged);
|
|
147
|
+
offMarkup();
|
|
148
|
+
offMeasure();
|
|
149
|
+
unbindViewSelection === null || unbindViewSelection === void 0 ? void 0 : unbindViewSelection();
|
|
150
|
+
var dm = AcApDocManager.tryGetInstance();
|
|
151
|
+
dm === null || dm === void 0 ? void 0 : dm.events.documentActivated.removeEventListener(onDocumentActivated);
|
|
152
|
+
toolbar.setActionStateProvider(undefined);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=AcApShortCutToolbarDocBind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApShortCutToolbarDocBind.js","sourceRoot":"","sources":["../../src/command/AcApShortCutToolbarDocBind.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;;;;;;;;;;;;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAMpD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AACrE,OAAO,EACL,iBAAiB,EACjB,6BAA6B,EAC9B,MAAM,gCAAgC,CAAA;AAEvC;;;;;;GAMG;AACH,MAAM,UAAU,+BAA+B,CAC7C,OAA4B;IAE5B,IAAI,mBAAmB,GAAwB,IAAI,CAAA;IAEnD,IAAM,kBAAkB,GAAG;QACzB,IAAM,EAAE,GAAG,cAAc,CAAC,cAAc,EAAE,CAAA;QAC1C,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;QACnD,CAAC;QACD,IAAM,GAAG,GAAG,EAAE,CAAC,WAAW,CAAA;QAC1B,IAAM,IAAI,GAAG,EAAE,CAAC,OAAO,CAAA;QACvB,IAAM,EAAE,GAAG,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,QAAQ,CAAA;QACxB,IAAM,OAAO,GAAG,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;QACjE,IAAM,OAAO,GAAG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AAC,CAAA;QACjE,iBAAiB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAA;QAC7B,OAAO,CAAC,eAAe,EAAE,CAAA;IAC3B,CAAC,CAAA;IAED,QAAQ,CAAC,EAAE,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAAA;IACrD,IAAM,SAAS,GAAG,cAAc,EAAE,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAA;IAChE,IAAM,UAAU,GAAG,6BAA6B,CAAC,kBAAkB,CAAC,CAAA;IACpE,gBAAgB,EAAE,CAAA;IAElB,OAAO;QACL,QAAQ,CAAC,GAAG,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAAA;QACtD,SAAS,EAAE,CAAA;QACX,UAAU,EAAE,CAAA;QACZ,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,EAAI,CAAA;QACvB,IAAM,EAAE,GAAG,cAAc,CAAC,cAAc,EAAE,CAAA;QAC1C,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,MAAM,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,CAAA;QACrE,OAAO,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAA;IAC3C,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AcApContext } from '../app';
|
|
2
|
-
import { AcEdCommand } from '../editor';
|
|
2
|
+
import { AcEdBaseView, AcEdCommand } from '../editor';
|
|
3
3
|
/**
|
|
4
4
|
* AutoCAD-style ZOOM command with keyword-driven branches in a single command.
|
|
5
5
|
*
|
|
@@ -12,6 +12,7 @@ import { AcEdCommand } from '../editor';
|
|
|
12
12
|
* - `Center`: prompt center + height/scale factor.
|
|
13
13
|
* - `Scale`: scale relative to current view (`n`, `nX`, `nXP`).
|
|
14
14
|
* - `Previous`: restore previous zoom box.
|
|
15
|
+
* - `Original`: restore the view captured when the layout was first framed.
|
|
15
16
|
*
|
|
16
17
|
* This command intentionally keeps all zoom branches in one implementation so
|
|
17
18
|
* callers can use script-style command input such as:
|
|
@@ -26,6 +27,36 @@ export declare class AcApZoomCmd extends AcEdCommand {
|
|
|
26
27
|
* Stores the last view box before a zoom operation so `Previous` can restore it.
|
|
27
28
|
*/
|
|
28
29
|
private static previousViewBox?;
|
|
30
|
+
/**
|
|
31
|
+
* View boxes captured when each layout was first framed (open or first visit).
|
|
32
|
+
* Keyed by layout block table record id.
|
|
33
|
+
*/
|
|
34
|
+
private static originalViewBoxByLayout;
|
|
35
|
+
/**
|
|
36
|
+
* Captures the current view box as the "original" view for a layout.
|
|
37
|
+
*
|
|
38
|
+
* Called after the first successful framing when a document opens or when the
|
|
39
|
+
* user first visits a layout tab. Used by the ZOOM `Original` keyword.
|
|
40
|
+
* Later calls for the same layout are ignored so ZOOM Extents cannot replace
|
|
41
|
+
* the stored original view.
|
|
42
|
+
*
|
|
43
|
+
* @param view - Active view.
|
|
44
|
+
* @param layoutBtrId - Layout block table record id.
|
|
45
|
+
*/
|
|
46
|
+
static rememberOriginalView(view: AcEdBaseView, layoutBtrId: string): void;
|
|
47
|
+
/**
|
|
48
|
+
* Clears remembered original views (e.g. when replacing the current document).
|
|
49
|
+
*
|
|
50
|
+
* Does not clear {@link previousViewBox} used by the `Previous` zoom keyword.
|
|
51
|
+
*/
|
|
52
|
+
static clearOriginalViews(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Captures current visible world box from viewport corners.
|
|
55
|
+
*
|
|
56
|
+
* @param view - Active view.
|
|
57
|
+
* @returns Current view box in world coordinates.
|
|
58
|
+
*/
|
|
59
|
+
private static captureViewBoxFromView;
|
|
29
60
|
/**
|
|
30
61
|
* Captures current visible world box from the viewport corners.
|
|
31
62
|
*
|
|
@@ -96,6 +127,13 @@ export declare class AcApZoomCmd extends AcEdCommand {
|
|
|
96
127
|
* @param context - Current command context.
|
|
97
128
|
*/
|
|
98
129
|
private runPrevious;
|
|
130
|
+
/**
|
|
131
|
+
* Restores the view captured when the active layout was first framed.
|
|
132
|
+
* Falls back to zoom extents when no original view is stored.
|
|
133
|
+
*
|
|
134
|
+
* @param context - Current command context.
|
|
135
|
+
*/
|
|
136
|
+
private runOriginal;
|
|
99
137
|
/**
|
|
100
138
|
* Runs zoom interaction with keyword-capable branching.
|
|
101
139
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApZoomCmd.d.ts","sourceRoot":"","sources":["../../src/command/AcApZoomCmd.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAkB,MAAM,QAAQ,CAAA;AACpD,OAAO,EACL,WAAW,EAKZ,MAAM,WAAW,CAAA;AAGlB
|
|
1
|
+
{"version":3,"file":"AcApZoomCmd.d.ts","sourceRoot":"","sources":["../../src/command/AcApZoomCmd.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAkB,MAAM,QAAQ,CAAA;AACpD,OAAO,EACL,YAAY,EACZ,WAAW,EAKZ,MAAM,WAAW,CAAA;AAGlB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAW;IAE1C;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAA+B;IAErE;;;;;;;;;;OAUG;IACH,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM;IASnE;;;;OAIG;IACH,MAAM,CAAC,kBAAkB;IAIzB;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB;IASrC;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAI7B;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;IAI9B;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAKrB;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAUpB;;;;;OAKG;YACW,kCAAkC;IAkBhD;;;;OAIG;YACW,wBAAwB;IAWtC;;;;;;OAMG;YACW,SAAS;IA4CvB;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IAkBxB;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;IAuB1B;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAOnB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAanB;;;;OAIG;IACG,OAAO,CAAC,OAAO,EAAE,WAAW;CA4FnC"}
|