@mlightcad/cad-simple-viewer 1.4.11 → 1.4.13
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/index.js +20139 -12511
- package/dist/index.umd.cjs +102 -94
- package/dist/libredwg-parser-worker.js +6958 -12596
- package/lib/app/AcApAnnotation.d.ts.map +1 -1
- package/lib/app/AcApAnnotation.js +3 -3
- package/lib/app/AcApAnnotation.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts +61 -4
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +162 -29
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApDocument.d.ts +6 -0
- package/lib/app/AcApDocument.d.ts.map +1 -1
- package/lib/app/AcApDocument.js +12 -0
- package/lib/app/AcApDocument.js.map +1 -1
- package/lib/app/AcApProgress.d.ts.map +1 -1
- package/lib/app/AcApProgress.js +3 -3
- package/lib/app/AcApProgress.js.map +1 -1
- package/lib/app/AcApSettingManager.d.ts.map +1 -1
- package/lib/app/AcApSettingManager.js +3 -1
- package/lib/app/AcApSettingManager.js.map +1 -1
- package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +1 -1
- package/lib/command/AcApArcCmd.d.ts +140 -0
- package/lib/command/AcApArcCmd.d.ts.map +1 -0
- package/lib/command/AcApArcCmd.js +1009 -0
- package/lib/command/AcApArcCmd.js.map +1 -0
- package/lib/command/AcApCircleCmd.d.ts +59 -0
- package/lib/command/AcApCircleCmd.d.ts.map +1 -1
- package/lib/command/AcApCircleCmd.js +490 -13
- package/lib/command/AcApCircleCmd.js.map +1 -1
- package/lib/command/AcApClearMeasurementsCmd.d.ts +1 -1
- package/lib/command/AcApClearMeasurementsCmd.d.ts.map +1 -1
- package/lib/command/AcApClearMeasurementsCmd.js +2 -4
- package/lib/command/AcApClearMeasurementsCmd.js.map +1 -1
- package/lib/command/AcApConvertToDxfCmd.d.ts +9 -0
- package/lib/command/AcApConvertToDxfCmd.d.ts.map +1 -0
- package/lib/command/{AcApZoomToBoxCmd.js → AcApConvertToDxfCmd.js} +14 -40
- package/lib/command/AcApConvertToDxfCmd.js.map +1 -0
- package/lib/command/AcApConvertToPngCmd.d.ts +35 -0
- package/lib/command/AcApConvertToPngCmd.d.ts.map +1 -0
- package/lib/command/AcApConvertToPngCmd.js +127 -0
- package/lib/command/AcApConvertToPngCmd.js.map +1 -0
- package/lib/command/AcApDimLinearCmd.d.ts.map +1 -1
- package/lib/command/AcApDimLinearCmd.js +14 -5
- package/lib/command/AcApDimLinearCmd.js.map +1 -1
- package/lib/command/AcApDxfConvertor.d.ts +12 -0
- package/lib/command/AcApDxfConvertor.d.ts.map +1 -0
- package/lib/command/AcApDxfConvertor.js +37 -0
- package/lib/command/AcApDxfConvertor.js.map +1 -0
- package/lib/command/AcApEllipseCmd.d.ts +87 -0
- package/lib/command/AcApEllipseCmd.d.ts.map +1 -0
- package/lib/command/AcApEllipseCmd.js +583 -0
- package/lib/command/AcApEllipseCmd.js.map +1 -0
- package/lib/command/AcApEraseCmd.d.ts.map +1 -1
- package/lib/command/AcApEraseCmd.js +10 -6
- package/lib/command/AcApEraseCmd.js.map +1 -1
- package/lib/command/AcApHatchCmd.d.ts +210 -0
- package/lib/command/AcApHatchCmd.d.ts.map +1 -0
- package/lib/command/AcApHatchCmd.js +808 -0
- package/lib/command/AcApHatchCmd.js.map +1 -0
- package/lib/command/AcApLayerCmd.d.ts +217 -0
- package/lib/command/AcApLayerCmd.d.ts.map +1 -0
- package/lib/command/AcApLayerCmd.js +768 -0
- package/lib/command/AcApLayerCmd.js.map +1 -0
- package/lib/command/AcApLineCmd.d.ts +36 -1
- package/lib/command/AcApLineCmd.d.ts.map +1 -1
- package/lib/command/AcApLineCmd.js +159 -16
- package/lib/command/AcApLineCmd.js.map +1 -1
- package/lib/command/AcApMTextCmd.d.ts.map +1 -1
- package/lib/command/AcApMTextCmd.js +6 -3
- package/lib/command/AcApMTextCmd.js.map +1 -1
- package/lib/command/AcApMeasureAngleCmd.d.ts.map +1 -1
- package/lib/command/AcApMeasureAngleCmd.js +134 -123
- package/lib/command/AcApMeasureAngleCmd.js.map +1 -1
- package/lib/command/AcApMeasureArcCmd.d.ts.map +1 -1
- package/lib/command/AcApMeasureArcCmd.js +165 -147
- package/lib/command/AcApMeasureArcCmd.js.map +1 -1
- package/lib/command/AcApMeasureAreaCmd.d.ts.map +1 -1
- package/lib/command/AcApMeasureAreaCmd.js +186 -175
- package/lib/command/AcApMeasureAreaCmd.js.map +1 -1
- package/lib/command/AcApMeasureDistanceCmd.d.ts.map +1 -1
- package/lib/command/AcApMeasureDistanceCmd.js +51 -39
- package/lib/command/AcApMeasureDistanceCmd.js.map +1 -1
- package/lib/command/AcApMoveCmd.d.ts +16 -0
- package/lib/command/AcApMoveCmd.d.ts.map +1 -0
- package/lib/command/AcApMoveCmd.js +278 -0
- package/lib/command/AcApMoveCmd.js.map +1 -0
- package/lib/command/AcApPngConvertor.d.ts +95 -0
- package/lib/command/AcApPngConvertor.d.ts.map +1 -0
- package/lib/command/AcApPngConvertor.js +205 -0
- package/lib/command/AcApPngConvertor.js.map +1 -0
- package/lib/command/AcApPolygonCmd.d.ts +69 -0
- package/lib/command/AcApPolygonCmd.d.ts.map +1 -0
- package/lib/command/AcApPolygonCmd.js +422 -0
- package/lib/command/AcApPolygonCmd.js.map +1 -0
- package/lib/command/AcApPolylineCmd.d.ts +71 -0
- package/lib/command/AcApPolylineCmd.d.ts.map +1 -0
- package/lib/command/AcApPolylineCmd.js +569 -0
- package/lib/command/AcApPolylineCmd.js.map +1 -0
- package/lib/command/AcApRectCmd.d.ts +149 -4
- package/lib/command/AcApRectCmd.d.ts.map +1 -1
- package/lib/command/AcApRectCmd.js +717 -29
- package/lib/command/AcApRectCmd.js.map +1 -1
- package/lib/command/AcApRevCircleCmd.d.ts +8 -0
- package/lib/command/AcApRevCircleCmd.d.ts.map +1 -1
- package/lib/command/AcApRevCircleCmd.js +30 -6
- package/lib/command/AcApRevCircleCmd.js.map +1 -1
- package/lib/command/AcApRevCloudCmd.d.ts.map +1 -1
- package/lib/command/AcApRevCloudCmd.js +10 -4
- package/lib/command/AcApRevCloudCmd.js.map +1 -1
- package/lib/command/AcApRevRectCmd.d.ts +8 -0
- package/lib/command/AcApRevRectCmd.d.ts.map +1 -1
- package/lib/command/AcApRevRectCmd.js +78 -6
- package/lib/command/AcApRevRectCmd.js.map +1 -1
- package/lib/command/AcApSketchCmd.d.ts.map +1 -1
- package/lib/command/AcApSketchCmd.js +11 -7
- package/lib/command/AcApSketchCmd.js.map +1 -1
- package/lib/command/AcApSplineCmd.d.ts +85 -0
- package/lib/command/AcApSplineCmd.d.ts.map +1 -0
- package/lib/command/AcApSplineCmd.js +620 -0
- package/lib/command/AcApSplineCmd.js.map +1 -0
- package/lib/command/AcApSysVarCmd.d.ts.map +1 -1
- package/lib/command/AcApSysVarCmd.js +6 -3
- package/lib/command/AcApSysVarCmd.js.map +1 -1
- package/lib/command/AcApZoomCmd.d.ts +91 -20
- package/lib/command/AcApZoomCmd.d.ts.map +1 -1
- package/lib/command/AcApZoomCmd.js +288 -23
- package/lib/command/AcApZoomCmd.js.map +1 -1
- package/lib/command/index.d.ts +12 -1
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +12 -1
- package/lib/command/index.js.map +1 -1
- package/lib/editor/command/AcEdCommandIterator.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommandIterator.js.map +1 -1
- package/lib/editor/command/AcEdCommandStack.d.ts +54 -1
- package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommandStack.js +207 -25
- package/lib/editor/command/AcEdCommandStack.js.map +1 -1
- package/lib/editor/global/AcEdUiTheme.d.ts +4 -0
- package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -0
- package/lib/editor/global/AcEdUiTheme.js +44 -0
- package/lib/editor/global/AcEdUiTheme.js.map +1 -0
- package/lib/editor/global/index.d.ts +1 -0
- package/lib/editor/global/index.d.ts.map +1 -1
- package/lib/editor/global/index.js +1 -0
- package/lib/editor/global/index.js.map +1 -1
- package/lib/editor/input/AcEdCursorManager.d.ts +10 -0
- package/lib/editor/input/AcEdCursorManager.d.ts.map +1 -1
- package/lib/editor/input/AcEdCursorManager.js +24 -4
- package/lib/editor/input/AcEdCursorManager.js.map +1 -1
- package/lib/editor/input/AcEdInputModifiers.d.ts +39 -0
- package/lib/editor/input/AcEdInputModifiers.d.ts.map +1 -0
- package/lib/editor/input/AcEdInputModifiers.js +2 -0
- package/lib/editor/input/AcEdInputModifiers.js.map +1 -0
- package/lib/editor/input/AcEdInputToggles.d.ts +24 -0
- package/lib/editor/input/AcEdInputToggles.d.ts.map +1 -0
- package/lib/editor/input/AcEdInputToggles.js +2 -0
- package/lib/editor/input/AcEdInputToggles.js.map +1 -0
- package/lib/editor/input/AcEdPromptStateMachine.d.ts +110 -0
- package/lib/editor/input/AcEdPromptStateMachine.d.ts.map +1 -0
- package/lib/editor/input/AcEdPromptStateMachine.js +147 -0
- package/lib/editor/input/AcEdPromptStateMachine.js.map +1 -0
- package/lib/editor/input/AcEdSelectionFilter.d.ts +79 -0
- package/lib/editor/input/AcEdSelectionFilter.d.ts.map +1 -0
- package/lib/editor/input/AcEdSelectionFilter.js +231 -0
- package/lib/editor/input/AcEdSelectionFilter.js.map +1 -0
- package/lib/editor/input/AcEditor.d.ts +77 -10
- package/lib/editor/input/AcEditor.d.ts.map +1 -1
- package/lib/editor/input/AcEditor.js +162 -1
- package/lib/editor/input/AcEditor.js.map +1 -1
- package/lib/editor/input/index.d.ts +4 -0
- package/lib/editor/input/index.d.ts.map +1 -1
- package/lib/editor/input/index.js +4 -0
- package/lib/editor/input/index.js.map +1 -1
- package/lib/editor/input/marker/AcEdMarker.d.ts.map +1 -1
- package/lib/editor/input/marker/AcEdMarker.js +3 -3
- package/lib/editor/input/marker/AcEdMarker.js.map +1 -1
- package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts +47 -0
- package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdKeywordCollection.js +30 -4
- package/lib/editor/input/prompt/AcEdKeywordCollection.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts +8 -1
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.js +19 -2
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptBoxResult.d.ts +12 -0
- package/lib/editor/input/prompt/AcEdPromptBoxResult.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptBoxResult.js +30 -0
- package/lib/editor/input/prompt/AcEdPromptBoxResult.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptDoubleResult.d.ts +9 -0
- package/lib/editor/input/prompt/AcEdPromptDoubleResult.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptDoubleResult.js +28 -0
- package/lib/editor/input/prompt/AcEdPromptDoubleResult.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptEntityOptions.d.ts +18 -1
- package/lib/editor/input/prompt/AcEdPromptEntityOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptEntityOptions.js +32 -5
- package/lib/editor/input/prompt/AcEdPromptEntityOptions.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptEntityResult.d.ts +14 -0
- package/lib/editor/input/prompt/AcEdPromptEntityResult.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptEntityResult.js +31 -0
- package/lib/editor/input/prompt/AcEdPromptEntityResult.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptIntegerResult.d.ts +9 -0
- package/lib/editor/input/prompt/AcEdPromptIntegerResult.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptIntegerResult.js +28 -0
- package/lib/editor/input/prompt/AcEdPromptIntegerResult.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptKeywordOptions.d.ts +1 -1
- package/lib/editor/input/prompt/AcEdPromptKeywordOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptKeywordOptions.js +2 -2
- package/lib/editor/input/prompt/AcEdPromptKeywordOptions.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptNumericalOptions.d.ts +1 -1
- package/lib/editor/input/prompt/AcEdPromptNumericalOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptNumericalOptions.js +2 -2
- package/lib/editor/input/prompt/AcEdPromptNumericalOptions.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptOptions.d.ts +9 -3
- package/lib/editor/input/prompt/AcEdPromptOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptOptions.js +22 -4
- package/lib/editor/input/prompt/AcEdPromptOptions.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js +2 -2
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointResult.d.ts +3 -3
- package/lib/editor/input/prompt/AcEdPromptSelectionOptions.d.ts +1 -1
- package/lib/editor/input/prompt/AcEdPromptSelectionOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptSelectionOptions.js +2 -2
- package/lib/editor/input/prompt/AcEdPromptSelectionOptions.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptSelectionResult.d.ts +12 -0
- package/lib/editor/input/prompt/AcEdPromptSelectionResult.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptSelectionResult.js +30 -0
- package/lib/editor/input/prompt/AcEdPromptSelectionResult.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptStringOptions.d.ts +1 -1
- package/lib/editor/input/prompt/AcEdPromptStringOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptStringOptions.js +2 -2
- package/lib/editor/input/prompt/AcEdPromptStringOptions.js.map +1 -1
- package/lib/editor/input/prompt/index.d.ts +9 -0
- package/lib/editor/input/prompt/index.d.ts.map +1 -1
- package/lib/editor/input/prompt/index.js +9 -0
- package/lib/editor/input/prompt/index.js.map +1 -1
- package/lib/editor/input/session/AcEdKeywordSession.d.ts +67 -1
- package/lib/editor/input/session/AcEdKeywordSession.d.ts.map +1 -1
- package/lib/editor/input/session/AcEdKeywordSession.js +78 -1
- package/lib/editor/input/session/AcEdKeywordSession.js.map +1 -1
- package/lib/editor/input/ui/AcEdCommandLine.d.ts +27 -1
- package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdCommandLine.js +75 -10
- package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +24 -1
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +147 -27
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts +2 -0
- package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputBox.js +4 -0
- package/lib/editor/input/ui/AcEdFloatingInputBox.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts +30 -1
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.js +46 -15
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +33 -0
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingMessage.d.ts +12 -0
- package/lib/editor/input/ui/AcEdFloatingMessage.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingMessage.js +61 -2
- package/lib/editor/input/ui/AcEdFloatingMessage.js.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts +403 -29
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +1313 -414
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdRubberBand.d.ts +15 -1
- package/lib/editor/input/ui/AcEdRubberBand.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdRubberBand.js +43 -11
- package/lib/editor/input/ui/AcEdRubberBand.js.map +1 -1
- package/lib/editor/view/AcEdBaseView.d.ts +66 -0
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +170 -0
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- package/lib/editor/view/AcEdSpatialQueryResult.d.ts.map +1 -1
- package/lib/i18n/en/command.d.ts +36 -3
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +36 -3
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +553 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +557 -4
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +36 -3
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +36 -3
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +553 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +557 -4
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/plugin/AcApPluginManager.d.ts.map +1 -1
- package/lib/plugin/AcApPluginManager.js.map +1 -1
- package/lib/util/AcApMeasurementElementGenerator.d.ts +36 -0
- package/lib/util/AcApMeasurementElementGenerator.d.ts.map +1 -0
- package/lib/util/AcApMeasurementElementGenerator.js +92 -0
- package/lib/util/AcApMeasurementElementGenerator.js.map +1 -0
- package/lib/util/index.d.ts +1 -1
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +1 -1
- package/lib/util/index.js.map +1 -1
- package/lib/view/AcTrLayer.d.ts.map +1 -1
- package/lib/view/AcTrLayer.js +5 -3
- package/lib/view/AcTrLayer.js.map +1 -1
- package/lib/view/AcTrLayoutView.d.ts +6 -0
- package/lib/view/AcTrLayoutView.d.ts.map +1 -1
- package/lib/view/AcTrLayoutView.js +20 -0
- package/lib/view/AcTrLayoutView.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +0 -1
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +103 -50
- package/lib/view/AcTrView2d.js.map +1 -1
- package/package.json +15 -13
- package/lib/command/AcApZoomToBoxCmd.d.ts +0 -29
- package/lib/command/AcApZoomToBoxCmd.d.ts.map +0 -1
- package/lib/command/AcApZoomToBoxCmd.js.map +0 -1
- package/lib/util/AcApMeasurementUtils.d.ts +0 -12
- package/lib/util/AcApMeasurementUtils.d.ts.map +0 -1
- package/lib/util/AcApMeasurementUtils.js +0 -36
- package/lib/util/AcApMeasurementUtils.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdMarker.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/marker/AcEdMarker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,GAAG,CAAA;AAE7E;;;;;;;;;;GAUG;AACH,qBAAa,UAAU;IACrB,0CAA0C;IAC1C,OAAO,CAAC,GAAG,CAAa;IACxB,mDAAmD;IACnD,OAAO,CAAC,KAAK,CAAa;IAE1B,oDAAoD;IACpD,OA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ACI,OAAO;CAGf"}
|
|
@@ -20,8 +20,8 @@ var AcEdMarker = /** @class */ (function () {
|
|
|
20
20
|
*/
|
|
21
21
|
function AcEdMarker(type, size, color, host) {
|
|
22
22
|
if (type === void 0) { type = 'rect'; }
|
|
23
|
-
if (size === void 0) { size =
|
|
24
|
-
if (color === void 0) { color = 'green'; }
|
|
23
|
+
if (size === void 0) { size = 12; }
|
|
24
|
+
if (color === void 0) { color = 'var(--ml-ui-canvas-line, green)'; }
|
|
25
25
|
this._type = type;
|
|
26
26
|
this._size = size;
|
|
27
27
|
this._color = color;
|
|
@@ -85,7 +85,7 @@ var AcEdMarker = /** @class */ (function () {
|
|
|
85
85
|
return;
|
|
86
86
|
var style = document.createElement('style');
|
|
87
87
|
style.id = 'ml-marker-style';
|
|
88
|
-
style.textContent = "\n .ml-marker {\n position: absolute;\n pointer-events: none;\n transform: translate(-50%, -50%);\n z-index: 999999;\n box-sizing: border-box;\n }\n \n .ml-marker-circle {\n border-radius: 50%;\n border:
|
|
88
|
+
style.textContent = "\n .ml-marker {\n position: absolute;\n pointer-events: none;\n transform: translate(-50%, -50%);\n z-index: 999999;\n box-sizing: border-box;\n }\n \n .ml-marker-circle {\n border-radius: 50%;\n border: 2px solid currentColor;\n background: transparent;\n }\n \n .ml-marker-rect {\n border: 2px solid currentColor;\n background: transparent;\n }\n \n .ml-marker-triangle {\n width: 0;\n height: 0;\n border-left: 0.5em solid transparent;\n border-right: 0.5em solid transparent;\n border-bottom: 1em solid currentColor;\n transform: translate(-50%, -100%);\n }\n \n .ml-marker-diamond {\n border: 2px solid currentColor;\n background: transparent;\n transform: translate(-50%, -50%) rotate(45deg);\n }\n \n .ml-marker-x::before,\n .ml-marker-x::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n height: 2px;\n background: currentColor;\n transform-origin: center;\n }\n \n .ml-marker-x::before {\n transform: translate(-50%, -50%) rotate(45deg);\n }\n \n .ml-marker-x::after {\n transform: translate(-50%, -50%) rotate(-45deg);\n }\n ";
|
|
89
89
|
document.head.appendChild(style);
|
|
90
90
|
};
|
|
91
91
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdMarker.js","sourceRoot":"","sources":["../../../../src/editor/input/marker/AcEdMarker.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;GAUG;AACH;IAeE;;;;;;;OAOG;IACH,oBACE,IAA6B,EAC7B,
|
|
1
|
+
{"version":3,"file":"AcEdMarker.js","sourceRoot":"","sources":["../../../../src/editor/input/marker/AcEdMarker.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;GAUG;AACH;IAeE;;;;;;;OAOG;IACH,oBACE,IAA6B,EAC7B,IAAiB,EACjB,KAAiD,EACjD,IAAiB;QAHjB,qBAAA,EAAA,aAA6B;QAC7B,qBAAA,EAAA,SAAiB;QACjB,sBAAA,EAAA,yCAAiD;QAGjD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QAEjB,8BAA8B;QAC9B,UAAU,CAAC,SAAS,EAAE,CAAA;QAEtB,yEAAyE;QACzE,yEAAyE;QACzE,IAAM,YAAY,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAA;QAC1D,IAAI,YAAY,KAAK,QAAQ,EAAE,CAAC;YAC9B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAA;QACxC,CAAC;QAED,oBAAoB;QACpB,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QACxC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;QACnC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,C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SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;gBACrC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,GAAG,UAAG,IAAI,CAAC,KAAK,OAAI,CAAA;gBACxC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,UAAG,IAAI,CAAC,KAAK,OAAI,CAAA;gBACzC,MAAK;QACT,CAAC;IACH,CAAC;IAED;;;;OAIG;IACI,gCAAW,GAAlB,UAAmB,GAAoB;QACrC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,GAAG,UAAG,GAAG,CAAC,CAAC,OAAI,CAAA;QAClC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,GAAG,UAAG,GAAG,CAAC,CAAC,OAAI,CAAA;IACnC,CAAC;IAED;;;OAGG;IACI,4BAAO,GAAd;QACE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAA;IACnB,CAAC;IACH,iBAAC;AAAD,CAAC,AAtND,IAsNC"}
|
|
@@ -1,4 +1,46 @@
|
|
|
1
1
|
import { AcEdKeyword } from './AcEdKeyword';
|
|
2
|
+
/**
|
|
3
|
+
* Structured keyword-prompt render payload used by command-line UI.
|
|
4
|
+
*
|
|
5
|
+
* This interface captures the canonical AutoCAD-style keyword section that
|
|
6
|
+
* appears after the prompt message, including:
|
|
7
|
+
* - visible keyword labels inside `[...]`
|
|
8
|
+
* - optional default keyword inside `<...>`
|
|
9
|
+
* - the fully composed tail text ending with `:`
|
|
10
|
+
*
|
|
11
|
+
* Typical rendered form:
|
|
12
|
+
* `Specify option [Yes/No] <Yes>:`
|
|
13
|
+
*/
|
|
14
|
+
export interface AcEdKeywordPromptFormat {
|
|
15
|
+
/**
|
|
16
|
+
* Ordered list of visible keyword display names.
|
|
17
|
+
*
|
|
18
|
+
* Notes:
|
|
19
|
+
* - The order matches prompt-rendering order in the command line.
|
|
20
|
+
* - Hidden keywords are excluded.
|
|
21
|
+
* - Values are display strings (localized UI labels), not global tokens.
|
|
22
|
+
*/
|
|
23
|
+
visibleKeywords: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Display name of the default keyword, when one is configured and visible.
|
|
26
|
+
*
|
|
27
|
+
* The value corresponds to what should be shown inside angle brackets in the
|
|
28
|
+
* prompt tail, e.g. `<Yes>`. When no default keyword is active (or when the
|
|
29
|
+
* default is hidden), this field is `undefined`.
|
|
30
|
+
*/
|
|
31
|
+
defaultKeyword?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Canonical AutoCAD-style keyword suffix for prompt rendering.
|
|
34
|
+
*
|
|
35
|
+
* Standard form:
|
|
36
|
+
* - `[K1/K2]:` when no default keyword exists
|
|
37
|
+
* - `[K1/K2] <K1>:` when a default keyword exists
|
|
38
|
+
*
|
|
39
|
+
* This string is intended to be appended after the prompt message, e.g.:
|
|
40
|
+
* `Specify option [Yes/No] <Yes>:`
|
|
41
|
+
*/
|
|
42
|
+
formattedTail: string;
|
|
43
|
+
}
|
|
2
44
|
/**
|
|
3
45
|
* A collection of `AcEdKeyword` objects, mirroring `Autodesk.AutoCAD.EditorInput.KeywordCollection`.
|
|
4
46
|
* Represents the set of valid keywords for a prompt.
|
|
@@ -100,6 +142,11 @@ export declare class AcEdKeywordCollection {
|
|
|
100
142
|
set default(kw: AcEdKeyword | undefined);
|
|
101
143
|
/** Returns a string representing the visible, enabled keywords for display. */
|
|
102
144
|
getDisplayString(showNoDefault?: boolean): string;
|
|
145
|
+
/**
|
|
146
|
+
* Builds canonical AutoCAD-style keyword tail:
|
|
147
|
+
* [K1/K2] <Default>:
|
|
148
|
+
*/
|
|
149
|
+
getPromptFormat(): AcEdKeywordPromptFormat;
|
|
103
150
|
/** Returns an iterator over the `AcEdKeyword` objects in this collection. */
|
|
104
151
|
[Symbol.iterator](): Iterator<AcEdKeyword>;
|
|
105
152
|
/** Finds a keyword by its display name (case-insensitive). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdKeywordCollection.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdKeywordCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C;;;GAGG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,SAAS,CAAoB;IACrC,OAAO,CAAC,eAAe,CAAC,CAAa;IAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4DG;gBACS,GAAG,CAAC,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"AcEdKeywordCollection.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdKeywordCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;;;OAOG;IACH,eAAe,EAAE,MAAM,EAAE,CAAA;IAEzB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;;;;;;OASG;IACH,aAAa,EAAE,MAAM,CAAA;CACtB;AAED;;;GAGG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,SAAS,CAAoB;IACrC,OAAO,CAAC,eAAe,CAAC,CAAa;IAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4DG;gBACS,GAAG,CAAC,EAAE,MAAM;IAuDxB;;;;OAIG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW;IACrC;;;;;OAKG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,WAAW;IACvD;;;;;;;;OAQG;IACH,GAAG,CACD,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,OAAO,EACjB,OAAO,CAAC,EAAE,OAAO,GAChB,WAAW;IAqCd,gDAAgD;IAChD,KAAK,IAAI,IAAI;IAKb,iEAAiE;IACjE,OAAO,IAAI,WAAW,EAAE;IAIxB,4DAA4D;IAC5D,IAAI,OAAO,IAAI,WAAW,GAAG,SAAS,CAErC;IACD,IAAI,OAAO,CAAC,EAAE,EAAE,WAAW,GAAG,SAAS,EAOtC;IAED,+EAA+E;IAC/E,gBAAgB,CAAC,aAAa,GAAE,OAAe,GAAG,MAAM;IAaxD;;;OAGG;IACH,eAAe,IAAI,uBAAuB;IAoB1C,6EAA6E;IAC7E,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,WAAW,CAAC;IAW1C,8DAA8D;IAC9D,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IAM/D,6DAA6D;IAC7D,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IAM7D,oFAAoF;IACpF,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IA2CjD,sDAAsD;IACtD,IAAI,KAAK,IAAI,MAAM,CAElB;CACF"}
|
|
@@ -78,7 +78,6 @@ var AcEdKeywordCollection = /** @class */ (function () {
|
|
|
78
78
|
*/
|
|
79
79
|
function AcEdKeywordCollection(kwl) {
|
|
80
80
|
var e_1, _a;
|
|
81
|
-
var _b;
|
|
82
81
|
this._keywords = [];
|
|
83
82
|
if (!kwl)
|
|
84
83
|
return;
|
|
@@ -115,13 +114,17 @@ var AcEdKeywordCollection = /** @class */ (function () {
|
|
|
115
114
|
var comma = spec.indexOf(',');
|
|
116
115
|
return comma >= 0 ? spec.substring(0, comma) : spec;
|
|
117
116
|
};
|
|
118
|
-
var
|
|
119
|
-
var
|
|
117
|
+
var rawGlobal = parseSpec(globalSpec);
|
|
118
|
+
var rawLocal = parseSpec(localSpec);
|
|
119
|
+
var hasGlobal = rawGlobal !== undefined;
|
|
120
|
+
var hasLocal = rawLocal !== undefined;
|
|
121
|
+
var globalName = hasGlobal ? rawGlobal : '';
|
|
122
|
+
var localName = hasLocal ? rawLocal : undefined;
|
|
120
123
|
// ARX rules:
|
|
121
124
|
// - local without global → accepted, returns ""
|
|
122
125
|
// - global without local → accepted only with underscore (already implied)
|
|
123
126
|
// - matched → local maps to global
|
|
124
|
-
var kw = new AcEdKeyword(
|
|
127
|
+
var kw = new AcEdKeyword(globalName || localName || '', globalName, localName, true, false, true);
|
|
125
128
|
this._keywords.push(kw);
|
|
126
129
|
}
|
|
127
130
|
}
|
|
@@ -185,6 +188,25 @@ var AcEdKeywordCollection = /** @class */ (function () {
|
|
|
185
188
|
});
|
|
186
189
|
return parts.join('/');
|
|
187
190
|
};
|
|
191
|
+
/**
|
|
192
|
+
* Builds canonical AutoCAD-style keyword tail:
|
|
193
|
+
* [K1/K2] <Default>:
|
|
194
|
+
*/
|
|
195
|
+
AcEdKeywordCollection.prototype.getPromptFormat = function () {
|
|
196
|
+
var visibleKeywords = this._keywords
|
|
197
|
+
.filter(function (kw) { return kw.visible; })
|
|
198
|
+
.map(function (kw) { return kw.displayName; });
|
|
199
|
+
var defaultKeyword = this._defaultKeyword && this._defaultKeyword.visible
|
|
200
|
+
? this._defaultKeyword.displayName
|
|
201
|
+
: undefined;
|
|
202
|
+
var keywordsText = "[".concat(visibleKeywords.join('/'), "]");
|
|
203
|
+
var defaultText = defaultKeyword ? " <".concat(defaultKeyword, ">") : '';
|
|
204
|
+
return {
|
|
205
|
+
visibleKeywords: visibleKeywords,
|
|
206
|
+
defaultKeyword: defaultKeyword,
|
|
207
|
+
formattedTail: "".concat(keywordsText).concat(defaultText, ":")
|
|
208
|
+
};
|
|
209
|
+
};
|
|
188
210
|
/** Returns an iterator over the `AcEdKeyword` objects in this collection. */
|
|
189
211
|
AcEdKeywordCollection.prototype[Symbol.iterator] = function () {
|
|
190
212
|
var index = 0;
|
|
@@ -232,6 +254,10 @@ var AcEdKeywordCollection = /** @class */ (function () {
|
|
|
232
254
|
if (kw.localName && kw.localName.toLowerCase() === needle) {
|
|
233
255
|
return true;
|
|
234
256
|
}
|
|
257
|
+
// Alias match (derived from global name capitals)
|
|
258
|
+
if (kw.alias && kw.alias.toLowerCase() === needle) {
|
|
259
|
+
return true;
|
|
260
|
+
}
|
|
235
261
|
// Display name match (fallback)
|
|
236
262
|
if (kw.displayName.toLowerCase() === needle) {
|
|
237
263
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdKeywordCollection.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdKeywordCollection.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"AcEdKeywordCollection.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdKeywordCollection.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AA+C3C;;;GAGG;AACH;IAIE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4DG;IACH,+BAAY,GAAY;;QAhEhB,cAAS,GAAkB,EAAE,CAAA;QAiEnC,IAAI,CAAC,GAAG;YAAE,OAAM;QAEhB,IAAM,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAEtC,IAAM,MAAM,GAAa,EAAE,CAAA;QAC3B,IAAM,OAAO,GAAa,EAAE,CAAA;QAC5B,IAAI,cAAc,GAAG,KAAK,CAAA;;YAE1B,KAAoB,IAAA,WAAA,SAAA,MAAM,CAAA,8BAAA,kDAAE,CAAC;gBAAxB,IAAM,KAAK,mBAAA;gBACd,IAAI,KAAK,KAAK,GAAG,EAAE,CAAC;oBAClB,cAAc,GAAG,IAAI,CAAA;oBACrB,SAAQ;gBACV,CAAC;gBACD,CAAC;gBAAA,CAAC,cAAc,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 +8,7 @@ import { AcEdPromptOptions } from './AcEdPromptOptions';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class AcEdPromptAngleOptions extends AcEdPromptOptions<number> {
|
|
10
10
|
private _basePoint?;
|
|
11
|
+
private _baseAngle?;
|
|
11
12
|
private _useBasePoint;
|
|
12
13
|
private _useDashedLine;
|
|
13
14
|
private _useAngleBase;
|
|
@@ -19,13 +20,19 @@ export declare class AcEdPromptAngleOptions extends AcEdPromptOptions<number> {
|
|
|
19
20
|
* Constructs a new `AcEdPromptAngleOptions` with a given prompt message.
|
|
20
21
|
* @param message - The prompt message shown to the user.
|
|
21
22
|
*/
|
|
22
|
-
constructor(message: string);
|
|
23
|
+
constructor(message: string, globalKeywords?: string);
|
|
23
24
|
/**
|
|
24
25
|
* Gets or sets the base point for the angle prompt.
|
|
25
26
|
* Corresponds to `PromptAngleOptions.BasePoint`.
|
|
26
27
|
*/
|
|
27
28
|
get basePoint(): AcGePoint3d | undefined;
|
|
28
29
|
set basePoint(point: AcGePoint3d | undefined);
|
|
30
|
+
/**
|
|
31
|
+
* Gets or sets the base angle (in degrees) used as the 0-degree direction.
|
|
32
|
+
* If undefined, +X direction is used as the default angle origin.
|
|
33
|
+
*/
|
|
34
|
+
get baseAngle(): number;
|
|
35
|
+
set baseAngle(angle: number);
|
|
29
36
|
/**
|
|
30
37
|
* Gets or sets whether to use the base point for the prompt.
|
|
31
38
|
* When true, the prompt may render a dashed line from the base point to the cursor.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptAngleOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptAngleOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,iBAAiB,CAAC,MAAM,CAAC;IACnE,OAAO,CAAC,UAAU,CAAC,CAAa;IAChC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,cAAc,CAAgB;IACtC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,gBAAgB,CAAiB;IACzC,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,cAAc,CAAiB;IAEvC;;;OAGG;gBACS,OAAO,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"AcEdPromptAngleOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptAngleOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,iBAAiB,CAAC,MAAM,CAAC;IACnE,OAAO,CAAC,UAAU,CAAC,CAAa;IAChC,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,cAAc,CAAgB;IACtC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,gBAAgB,CAAiB;IACzC,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,cAAc,CAAiB;IAEvC;;;OAGG;gBACS,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;IAIpD;;;OAGG;IACH,IAAI,SAAS,IAAI,WAAW,GAAG,SAAS,CAEvC;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,EAU3C;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,EAI1B;IAED;;;;OAIG;IACH,IAAI,YAAY,IAAI,OAAO,CAE1B;IACD,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,EAI7B;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IACD,IAAI,aAAa,CAAC,IAAI,EAAE,OAAO,EAI9B;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,OAAO,CAE1B;IACD,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,EAI7B;IAED;;;;OAIG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IACD,IAAI,YAAY,CAAC,GAAG,EAAE,MAAM,EAI3B;IAED;;;OAGG;IACH,IAAI,eAAe,IAAI,OAAO,CAE7B;IACD,IAAI,eAAe,CAAC,IAAI,EAAE,OAAO,EAIhC;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IACD,IAAI,SAAS,CAAC,IAAI,EAAE,OAAO,EAI1B;IAED;;;;OAIG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IACD,IAAI,aAAa,CAAC,IAAI,EAAE,OAAO,EAI9B;CACF"}
|
|
@@ -27,8 +27,8 @@ var AcEdPromptAngleOptions = /** @class */ (function (_super) {
|
|
|
27
27
|
* Constructs a new `AcEdPromptAngleOptions` with a given prompt message.
|
|
28
28
|
* @param message - The prompt message shown to the user.
|
|
29
29
|
*/
|
|
30
|
-
function AcEdPromptAngleOptions(message) {
|
|
31
|
-
var _this = _super.call(this, message) || this;
|
|
30
|
+
function AcEdPromptAngleOptions(message, globalKeywords) {
|
|
31
|
+
var _this = _super.call(this, message, globalKeywords) || this;
|
|
32
32
|
_this._useBasePoint = true;
|
|
33
33
|
_this._useDashedLine = true;
|
|
34
34
|
_this._useAngleBase = false;
|
|
@@ -61,6 +61,23 @@ var AcEdPromptAngleOptions = /** @class */ (function (_super) {
|
|
|
61
61
|
enumerable: false,
|
|
62
62
|
configurable: true
|
|
63
63
|
});
|
|
64
|
+
Object.defineProperty(AcEdPromptAngleOptions.prototype, "baseAngle", {
|
|
65
|
+
/**
|
|
66
|
+
* Gets or sets the base angle (in degrees) used as the 0-degree direction.
|
|
67
|
+
* If undefined, +X direction is used as the default angle origin.
|
|
68
|
+
*/
|
|
69
|
+
get: function () {
|
|
70
|
+
var _a;
|
|
71
|
+
return (_a = this._baseAngle) !== null && _a !== void 0 ? _a : 0;
|
|
72
|
+
},
|
|
73
|
+
set: function (angle) {
|
|
74
|
+
if (!this.isReadOnly) {
|
|
75
|
+
this._baseAngle = angle;
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
enumerable: false,
|
|
79
|
+
configurable: true
|
|
80
|
+
});
|
|
64
81
|
Object.defineProperty(AcEdPromptAngleOptions.prototype, "useBasePoint", {
|
|
65
82
|
/**
|
|
66
83
|
* Gets or sets whether to use the base point for the prompt.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptAngleOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptAngleOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH;IAA4C,0CAAyB;
|
|
1
|
+
{"version":3,"file":"AcEdPromptAngleOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptAngleOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH;IAA4C,0CAAyB;IAWnE;;;OAGG;IACH,gCAAY,OAAe,EAAE,cAAuB;QAClD,YAAA,MAAK,YAAC,OAAO,EAAE,cAAc,CAAC,SAAA;QAbxB,mBAAa,GAAY,IAAI,CAAA;QAC7B,oBAAc,GAAY,IAAI,CAAA;QAC9B,mBAAa,GAAY,KAAK,CAAA;QAC9B,mBAAa,GA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AC;;;OALA;IAMH,6BAAC;AAAD,CAAC,AAhJD,CAA4C,iBAAiB,GAgJ5D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AcGeBox2d } from '@mlightcad/data-model';
|
|
2
|
+
import { AcEdPromptResult } from './AcEdPromptResult';
|
|
3
|
+
import { AcEdPromptStatus } from './AcEdPromptStatus';
|
|
4
|
+
/**
|
|
5
|
+
* Result of a prompt that requests a rectangular box.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AcEdPromptBoxResult extends AcEdPromptResult {
|
|
8
|
+
/** Gets the rectangular bounding box that the user specified. */
|
|
9
|
+
readonly value?: AcGeBox2d;
|
|
10
|
+
constructor(status: AcEdPromptStatus, value?: AcGeBox2d, stringResult?: string);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=AcEdPromptBoxResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptBoxResult.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptBoxResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,gBAAgB;IACvD,iEAAiE;IACjE,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;gBAGxB,MAAM,EAAE,gBAAgB,EACxB,KAAK,CAAC,EAAE,SAAS,EACjB,YAAY,CAAC,EAAE,MAAM;CAKxB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { AcEdPromptResult } from './AcEdPromptResult';
|
|
17
|
+
/**
|
|
18
|
+
* Result of a prompt that requests a rectangular box.
|
|
19
|
+
*/
|
|
20
|
+
var AcEdPromptBoxResult = /** @class */ (function (_super) {
|
|
21
|
+
__extends(AcEdPromptBoxResult, _super);
|
|
22
|
+
function AcEdPromptBoxResult(status, value, stringResult) {
|
|
23
|
+
var _this = _super.call(this, status, stringResult) || this;
|
|
24
|
+
_this.value = value;
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
return AcEdPromptBoxResult;
|
|
28
|
+
}(AcEdPromptResult));
|
|
29
|
+
export { AcEdPromptBoxResult };
|
|
30
|
+
//# sourceMappingURL=AcEdPromptBoxResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptBoxResult.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptBoxResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGrD;;GAEG;AACH;IAAyC,uCAAgB;IAIvD,6BACE,MAAwB,EACxB,KAAiB,EACjB,YAAqB;QAErB,YAAA,MAAK,YAAC,MAAM,EAAE,YAAY,CAAC,SAAA;QAC3B,KAAI,CAAC,KAAK,GAAG,KAAK,CAAA;;IACpB,CAAC;IACH,0BAAC;AAAD,CAAC,AAZD,CAAyC,gBAAgB,GAYxD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AcEdPromptNumericalResult } from './AcEdPromptNumericalResult';
|
|
2
|
+
import { AcEdPromptStatus } from './AcEdPromptStatus';
|
|
3
|
+
/**
|
|
4
|
+
* Result of a prompt requesting a double precision floating-point value.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AcEdPromptDoubleResult extends AcEdPromptNumericalResult {
|
|
7
|
+
constructor(status: AcEdPromptStatus, value?: number);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=AcEdPromptDoubleResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptDoubleResult.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptDoubleResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,yBAAyB;gBACvD,MAAM,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAM;CAGrD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { AcEdPromptNumericalResult } from './AcEdPromptNumericalResult';
|
|
17
|
+
/**
|
|
18
|
+
* Result of a prompt requesting a double precision floating-point value.
|
|
19
|
+
*/
|
|
20
|
+
var AcEdPromptDoubleResult = /** @class */ (function (_super) {
|
|
21
|
+
__extends(AcEdPromptDoubleResult, _super);
|
|
22
|
+
function AcEdPromptDoubleResult(status, value) {
|
|
23
|
+
return _super.call(this, status, value) || this;
|
|
24
|
+
}
|
|
25
|
+
return AcEdPromptDoubleResult;
|
|
26
|
+
}(AcEdPromptNumericalResult));
|
|
27
|
+
export { AcEdPromptDoubleResult };
|
|
28
|
+
//# sourceMappingURL=AcEdPromptDoubleResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptDoubleResult.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptDoubleResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAGvE;;GAEG;AACH;IAA4C,0CAAyB;IACnE,gCAAY,MAAwB,EAAE,KAAc;QAClD,OAAA,MAAK,YAAC,MAAM,EAAE,KAAK,CAAC,SAAA;IACtB,CAAC;IACH,6BAAC;AAAD,CAAC,AAJD,CAA4C,yBAAyB,GAIpE"}
|
|
@@ -15,7 +15,24 @@ export declare class AcEdPromptEntityOptions extends AcEdPromptOptions<string> {
|
|
|
15
15
|
* Empty set means "allow all".
|
|
16
16
|
*/
|
|
17
17
|
private _allowedClasses;
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Normalizes entity class names so both "Line" and "AcDbLine" are accepted.
|
|
20
|
+
*
|
|
21
|
+
* `PromptEntityOptions.AddAllowedClass()` in host CAD APIs is typically used
|
|
22
|
+
* with runtime class identifiers, while this web implementation works with
|
|
23
|
+
* string names resolved from the underlying entity instances. In practice,
|
|
24
|
+
* callers may provide either the short CAD-style type name (`Line`) or the
|
|
25
|
+
* concrete TypeScript constructor name (`AcDbLine`).
|
|
26
|
+
*
|
|
27
|
+
* This helper canonicalizes both representations to the same short form so
|
|
28
|
+
* the allow-list can be matched consistently regardless of which naming style
|
|
29
|
+
* was used by the caller or discovered at pick time.
|
|
30
|
+
*
|
|
31
|
+
* @param className - Raw entity class name supplied by callers or runtime inspection
|
|
32
|
+
* @returns Normalized class name without the `AcDb` prefix
|
|
33
|
+
*/
|
|
34
|
+
private normalizeClassName;
|
|
35
|
+
constructor(message: string, globalKeywords?: string);
|
|
19
36
|
/**
|
|
20
37
|
* Gets or sets whether the user may press ENTER without selecting an entity.
|
|
21
38
|
* Corresponds to `PromptEntityOptions.AllowNone`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptEntityOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptEntityOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,iBAAiB,CAAC,MAAM,CAAC;IACpE,8CAA8C;IAC9C,OAAO,CAAC,UAAU,CAAQ;IAE1B,uDAAuD;IACvD,OAAO,CAAC,yBAAyB,CAAQ;IAEzC,mDAAmD;IACnD,OAAO,CAAC,cAAc,CAA6B;IAEnD;;;OAGG;IACH,OAAO,CAAC,eAAe,CAAoB;
|
|
1
|
+
{"version":3,"file":"AcEdPromptEntityOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptEntityOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,iBAAiB,CAAC,MAAM,CAAC;IACpE,8CAA8C;IAC9C,OAAO,CAAC,UAAU,CAAQ;IAE1B,uDAAuD;IACvD,OAAO,CAAC,yBAAyB,CAAQ;IAEzC,mDAAmD;IACnD,OAAO,CAAC,cAAc,CAA6B;IAEnD;;;OAGG;IACH,OAAO,CAAC,eAAe,CAAoB;IAE3C;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,kBAAkB;gBAKd,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;IAIpD;;;OAGG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,SAAS,CAAC,KAAK,EAAE,OAAO,EAI3B;IAED;;;OAGG;IACH,IAAI,wBAAwB,IAAI,OAAO,CAEtC;IAED,IAAI,wBAAwB,CAAC,KAAK,EAAE,OAAO,EAI1C;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAOvC;;;;;OAKG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAUxC;;;OAGG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAU3C;;OAEG;IACH,mBAAmB,IAAI,IAAI;IAO3B;;;OAGG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;CAM3C"}
|
|
@@ -20,8 +20,8 @@ import { AcEdPromptOptions } from './AcEdPromptOptions';
|
|
|
20
20
|
*/
|
|
21
21
|
var AcEdPromptEntityOptions = /** @class */ (function (_super) {
|
|
22
22
|
__extends(AcEdPromptEntityOptions, _super);
|
|
23
|
-
function AcEdPromptEntityOptions(message) {
|
|
24
|
-
var _this = _super.call(this, message) || this;
|
|
23
|
+
function AcEdPromptEntityOptions(message, globalKeywords) {
|
|
24
|
+
var _this = _super.call(this, message, globalKeywords) || this;
|
|
25
25
|
/** Whether ENTER (no selection) is allowed */
|
|
26
26
|
_this._allowNone = false;
|
|
27
27
|
/** Whether entities on locked layers are selectable */
|
|
@@ -35,6 +35,26 @@ var AcEdPromptEntityOptions = /** @class */ (function (_super) {
|
|
|
35
35
|
_this._allowedClasses = new Set();
|
|
36
36
|
return _this;
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Normalizes entity class names so both "Line" and "AcDbLine" are accepted.
|
|
40
|
+
*
|
|
41
|
+
* `PromptEntityOptions.AddAllowedClass()` in host CAD APIs is typically used
|
|
42
|
+
* with runtime class identifiers, while this web implementation works with
|
|
43
|
+
* string names resolved from the underlying entity instances. In practice,
|
|
44
|
+
* callers may provide either the short CAD-style type name (`Line`) or the
|
|
45
|
+
* concrete TypeScript constructor name (`AcDbLine`).
|
|
46
|
+
*
|
|
47
|
+
* This helper canonicalizes both representations to the same short form so
|
|
48
|
+
* the allow-list can be matched consistently regardless of which naming style
|
|
49
|
+
* was used by the caller or discovered at pick time.
|
|
50
|
+
*
|
|
51
|
+
* @param className - Raw entity class name supplied by callers or runtime inspection
|
|
52
|
+
* @returns Normalized class name without the `AcDb` prefix
|
|
53
|
+
*/
|
|
54
|
+
AcEdPromptEntityOptions.prototype.normalizeClassName = function (className) {
|
|
55
|
+
var normalized = className.trim();
|
|
56
|
+
return normalized.startsWith('AcDb') ? normalized.slice(4) : normalized;
|
|
57
|
+
};
|
|
38
58
|
Object.defineProperty(AcEdPromptEntityOptions.prototype, "allowNone", {
|
|
39
59
|
/**
|
|
40
60
|
* Gets or sets whether the user may press ENTER without selecting an entity.
|
|
@@ -96,7 +116,10 @@ var AcEdPromptEntityOptions = /** @class */ (function (_super) {
|
|
|
96
116
|
*/
|
|
97
117
|
AcEdPromptEntityOptions.prototype.addAllowedClass = function (className) {
|
|
98
118
|
if (!this.isReadOnly) {
|
|
99
|
-
this.
|
|
119
|
+
var normalized = this.normalizeClassName(className);
|
|
120
|
+
if (normalized) {
|
|
121
|
+
this._allowedClasses.add(normalized);
|
|
122
|
+
}
|
|
100
123
|
}
|
|
101
124
|
return this;
|
|
102
125
|
};
|
|
@@ -106,7 +129,10 @@ var AcEdPromptEntityOptions = /** @class */ (function (_super) {
|
|
|
106
129
|
*/
|
|
107
130
|
AcEdPromptEntityOptions.prototype.removeAllowedClass = function (className) {
|
|
108
131
|
if (!this.isReadOnly) {
|
|
109
|
-
this.
|
|
132
|
+
var normalized = this.normalizeClassName(className);
|
|
133
|
+
if (normalized) {
|
|
134
|
+
this._allowedClasses.delete(normalized);
|
|
135
|
+
}
|
|
110
136
|
}
|
|
111
137
|
return this;
|
|
112
138
|
};
|
|
@@ -124,7 +150,8 @@ var AcEdPromptEntityOptions = /** @class */ (function (_super) {
|
|
|
124
150
|
* Used internally by selection logic.
|
|
125
151
|
*/
|
|
126
152
|
AcEdPromptEntityOptions.prototype.isClassAllowed = function (className) {
|
|
127
|
-
|
|
153
|
+
var normalized = this.normalizeClassName(className);
|
|
154
|
+
return (this._allowedClasses.size === 0 || this._allowedClasses.has(normalized));
|
|
128
155
|
};
|
|
129
156
|
return AcEdPromptEntityOptions;
|
|
130
157
|
}(AcEdPromptOptions));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptEntityOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptEntityOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;GAGG;AACH;IAA6C,2CAAyB;
|
|
1
|
+
{"version":3,"file":"AcEdPromptEntityOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptEntityOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;GAGG;AACH;IAA6C,2CAAyB;IAqCpE,iCAAY,OAAe,EAAE,cAAuB;QAClD,YAAA,MAAK,YAAC,OAAO,EAAE,cAAc,CAAC,SAAA;QArChC,8CAA8C;QACtC,gBAAU,GAAG,KAAK,CAAA;QAE1B,uDAAuD;QAC/C,+BAAyB,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AU,EAAE,CAAC;YACrB,IAAM,UAAU,GAAG,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAA;YACrD,IAAI,UAAU,EAAE,CAAC;gBACf,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;YACtC,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;OAGG;IACH,oDAAkB,GAAlB,UAAmB,SAAiB;QAClC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,IAAM,UAAU,GAAG,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAA;YACrD,IAAI,UAAU,EAAE,CAAC;gBACf,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;YACzC,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;OAEG;IACH,qDAAmB,GAAnB;QACE,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAA;QAC9B,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;OAGG;IACH,gDAAc,GAAd,UAAe,SAAiB;QAC9B,IAAM,UAAU,GAAG,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAA;QACrD,OAAO,CACL,IAAI,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,IAAI,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,UAAU,CAAC,CACxE,CAAA;IACH,CAAC;IACH,8BAAC;AAAD,CAAC,AA1ID,CAA6C,iBAAiB,GA0I7D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AcDbObjectId, AcGePoint3dLike } from '@mlightcad/data-model';
|
|
2
|
+
import { AcEdPromptResult } from './AcEdPromptResult';
|
|
3
|
+
import { AcEdPromptStatus } from './AcEdPromptStatus';
|
|
4
|
+
/**
|
|
5
|
+
* Result of a prompt that asks the user to pick a single entity.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AcEdPromptEntityResult extends AcEdPromptResult {
|
|
8
|
+
/** Gets the entity that the user picked. */
|
|
9
|
+
readonly objectId?: AcDbObjectId;
|
|
10
|
+
/** Gets the point that was used to pick the entity. */
|
|
11
|
+
readonly pickedPoint?: AcGePoint3dLike;
|
|
12
|
+
constructor(status: AcEdPromptStatus, objectId?: AcDbObjectId, pickedPoint?: AcGePoint3dLike);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=AcEdPromptEntityResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptEntityResult.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptEntityResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAErE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,gBAAgB;IAC1D,4CAA4C;IAC5C,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAA;IAChC,uDAAuD;IACvD,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,CAAA;gBAGpC,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,YAAY,EACvB,WAAW,CAAC,EAAE,eAAe;CAMhC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { AcEdPromptResult } from './AcEdPromptResult';
|
|
17
|
+
/**
|
|
18
|
+
* Result of a prompt that asks the user to pick a single entity.
|
|
19
|
+
*/
|
|
20
|
+
var AcEdPromptEntityResult = /** @class */ (function (_super) {
|
|
21
|
+
__extends(AcEdPromptEntityResult, _super);
|
|
22
|
+
function AcEdPromptEntityResult(status, objectId, pickedPoint) {
|
|
23
|
+
var _this = _super.call(this, status) || this;
|
|
24
|
+
_this.objectId = objectId;
|
|
25
|
+
_this.pickedPoint = pickedPoint;
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
return AcEdPromptEntityResult;
|
|
29
|
+
}(AcEdPromptResult));
|
|
30
|
+
export { AcEdPromptEntityResult };
|
|
31
|
+
//# sourceMappingURL=AcEdPromptEntityResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptEntityResult.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptEntityResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGrD;;GAEG;AACH;IAA4C,0CAAgB;IAM1D,gCACE,MAAwB,EACxB,QAAuB,EACvB,WAA6B;QAE7B,YAAA,MAAK,YAAC,MAAM,CAAC,SAAA;QACb,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,KAAI,CAAC,WAAW,GAAG,WAAW,CAAA;;IAChC,CAAC;IACH,6BAAC;AAAD,CAAC,AAfD,CAA4C,gBAAgB,GAe3D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AcEdPromptNumericalResult } from './AcEdPromptNumericalResult';
|
|
2
|
+
import { AcEdPromptStatus } from './AcEdPromptStatus';
|
|
3
|
+
/**
|
|
4
|
+
* Result of a prompt requesting an integer value.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AcEdPromptIntegerResult extends AcEdPromptNumericalResult {
|
|
7
|
+
constructor(status: AcEdPromptStatus, value?: number);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=AcEdPromptIntegerResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptIntegerResult.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptIntegerResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,yBAAyB;gBACxD,MAAM,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAM;CAGrD"}
|