@mlightcad/cad-simple-viewer 1.2.4 → 1.3.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/index.js +13000 -10094
- package/dist/index.umd.cjs +327 -24
- package/dist/libredwg-parser-worker.js +7267 -7238
- package/dist/mtext-renderer-worker.js +81 -41
- package/lib/app/AcApContext.js +1 -1
- package/lib/app/AcApContext.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts +20 -3
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +67 -12
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApProgress.d.ts +133 -0
- package/lib/app/AcApProgress.d.ts.map +1 -0
- package/lib/app/AcApProgress.js +148 -0
- package/lib/app/AcApProgress.js.map +1 -0
- package/lib/app/AcApSettingManager.d.ts +42 -0
- package/lib/app/AcApSettingManager.d.ts.map +1 -1
- package/lib/app/AcApSettingManager.js +63 -0
- package/lib/app/AcApSettingManager.js.map +1 -1
- package/lib/app/index.d.ts +0 -1
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +0 -1
- package/lib/app/index.js.map +1 -1
- package/lib/command/AcApCircleCmd.d.ts +21 -0
- package/lib/command/AcApCircleCmd.d.ts.map +1 -0
- package/lib/command/AcApCircleCmd.js +115 -0
- package/lib/command/AcApCircleCmd.js.map +1 -0
- package/lib/command/AcApDimCmd.d.ts +57 -0
- package/lib/command/AcApDimCmd.d.ts.map +1 -0
- package/lib/command/AcApDimCmd.js +228 -0
- package/lib/command/AcApDimCmd.js.map +1 -0
- package/lib/command/AcApLogCmd.d.ts +13 -0
- package/lib/command/AcApLogCmd.d.ts.map +1 -0
- package/lib/command/AcApLogCmd.js +97 -0
- package/lib/command/AcApLogCmd.js.map +1 -0
- package/lib/command/AcApSysVarCmd.d.ts +15 -0
- package/lib/command/AcApSysVarCmd.d.ts.map +1 -0
- package/lib/command/AcApSysVarCmd.js +94 -0
- package/lib/command/AcApSysVarCmd.js.map +1 -0
- package/lib/command/AcApZoomCmd.js +1 -1
- package/lib/command/AcApZoomCmd.js.map +1 -1
- package/lib/command/AcApZoomToBoxCmd.d.ts +0 -36
- package/lib/command/AcApZoomToBoxCmd.d.ts.map +1 -1
- package/lib/command/AcApZoomToBoxCmd.js +4 -61
- package/lib/command/AcApZoomToBoxCmd.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/editor/command/AcEdCommandStack.d.ts +19 -1
- package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommandStack.js +40 -0
- package/lib/editor/command/AcEdCommandStack.js.map +1 -1
- package/lib/editor/input/AcEdCursorManager.d.ts +14 -30
- package/lib/editor/input/AcEdCursorManager.d.ts.map +1 -1
- package/lib/editor/input/AcEdCursorManager.js +32 -31
- package/lib/editor/input/AcEdCursorManager.js.map +1 -1
- package/lib/editor/input/AcEdPreviewJig.d.ts +103 -0
- package/lib/editor/input/AcEdPreviewJig.d.ts.map +1 -0
- package/lib/editor/input/AcEdPreviewJig.js +82 -0
- package/lib/editor/input/AcEdPreviewJig.js.map +1 -0
- package/lib/editor/input/AcEditor.d.ts +58 -11
- package/lib/editor/input/AcEditor.d.ts.map +1 -1
- package/lib/editor/input/AcEditor.js +86 -22
- package/lib/editor/input/AcEditor.js.map +1 -1
- package/lib/editor/input/handler/AcEdAngleHandler.d.ts +12 -0
- package/lib/editor/input/handler/AcEdAngleHandler.d.ts.map +1 -0
- package/lib/editor/input/handler/AcEdAngleHandler.js +25 -0
- package/lib/editor/input/handler/AcEdAngleHandler.js.map +1 -0
- package/lib/editor/input/handler/AcEdDistanceHandler.d.ts +8 -0
- package/lib/editor/input/handler/AcEdDistanceHandler.d.ts.map +1 -0
- package/lib/editor/input/handler/AcEdDistanceHandler.js +29 -0
- package/lib/editor/input/handler/AcEdDistanceHandler.js.map +1 -0
- package/lib/editor/input/handler/AcEdDoubleHandler.d.ts +7 -0
- package/lib/editor/input/handler/AcEdDoubleHandler.d.ts.map +1 -0
- package/lib/editor/input/handler/AcEdDoubleHandler.js +28 -0
- package/lib/editor/input/handler/AcEdDoubleHandler.js.map +1 -0
- package/lib/editor/input/handler/AcEdInputHandler.d.ts +14 -0
- package/lib/editor/input/handler/AcEdInputHandler.d.ts.map +1 -0
- package/lib/editor/input/handler/AcEdInputHandler.js +2 -0
- package/lib/editor/input/handler/AcEdInputHandler.js.map +1 -0
- package/lib/editor/input/handler/AcEdIntegerHandler.d.ts +11 -0
- package/lib/editor/input/handler/AcEdIntegerHandler.d.ts.map +1 -0
- package/lib/editor/input/handler/AcEdIntegerHandler.js +44 -0
- package/lib/editor/input/handler/AcEdIntegerHandler.js.map +1 -0
- package/lib/editor/input/handler/AcEdNumericalHandler.d.ts +11 -0
- package/lib/editor/input/handler/AcEdNumericalHandler.d.ts.map +1 -0
- package/lib/editor/input/handler/AcEdNumericalHandler.js +24 -0
- package/lib/editor/input/handler/AcEdNumericalHandler.js.map +1 -0
- package/lib/editor/input/handler/AcEdPointHandler.d.ts +16 -0
- package/lib/editor/input/handler/AcEdPointHandler.d.ts.map +1 -0
- package/lib/editor/input/handler/AcEdPointHandler.js +19 -0
- package/lib/editor/input/handler/AcEdPointHandler.js.map +1 -0
- package/lib/editor/input/handler/AcEdStringHandler.d.ts +12 -0
- package/lib/editor/input/handler/AcEdStringHandler.d.ts.map +1 -0
- package/lib/editor/input/handler/AcEdStringHandler.js +24 -0
- package/lib/editor/input/handler/AcEdStringHandler.js.map +1 -0
- package/lib/editor/input/handler/index.d.ts +9 -0
- package/lib/editor/input/handler/index.d.ts.map +1 -0
- package/lib/editor/input/handler/index.js +9 -0
- package/lib/editor/input/handler/index.js.map +1 -0
- package/lib/editor/input/index.d.ts +4 -1
- package/lib/editor/input/index.d.ts.map +1 -1
- package/lib/editor/input/index.js +4 -1
- package/lib/editor/input/index.js.map +1 -1
- package/lib/editor/input/marker/AcEdMarker.d.ts +72 -0
- package/lib/editor/input/marker/AcEdMarker.d.ts.map +1 -0
- package/lib/editor/input/marker/AcEdMarker.js +124 -0
- package/lib/editor/input/marker/AcEdMarker.js.map +1 -0
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts +52 -0
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts.map +1 -0
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.js +91 -0
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.js.map +1 -0
- package/lib/editor/input/marker/index.d.ts +3 -0
- package/lib/editor/input/marker/index.d.ts.map +1 -0
- package/lib/editor/input/marker/index.js +3 -0
- package/lib/editor/input/marker/index.js.map +1 -0
- package/lib/editor/input/prompt/AcEdKeyword.d.ts +63 -0
- package/lib/editor/input/prompt/AcEdKeyword.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdKeyword.js +120 -0
- package/lib/editor/input/prompt/AcEdKeyword.js.map +1 -0
- package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts +52 -0
- package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdKeywordCollection.js +103 -0
- package/lib/editor/input/prompt/AcEdKeywordCollection.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts +75 -0
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.js +182 -0
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptDistanceOptions.d.ts +46 -0
- package/lib/editor/input/prompt/AcEdPromptDistanceOptions.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js +114 -0
- package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptDoubleOptions.d.ts +10 -0
- package/lib/editor/input/prompt/AcEdPromptDoubleOptions.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptDoubleOptions.js +31 -0
- package/lib/editor/input/prompt/AcEdPromptDoubleOptions.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptIntegerOptions.d.ts +39 -0
- package/lib/editor/input/prompt/AcEdPromptIntegerOptions.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptIntegerOptions.js +84 -0
- package/lib/editor/input/prompt/AcEdPromptIntegerOptions.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptNumericalOptions.d.ts +59 -0
- package/lib/editor/input/prompt/AcEdPromptNumericalOptions.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptNumericalOptions.js +140 -0
- package/lib/editor/input/prompt/AcEdPromptNumericalOptions.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptNumericalResult.d.ts +19 -0
- package/lib/editor/input/prompt/AcEdPromptNumericalResult.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptNumericalResult.js +36 -0
- package/lib/editor/input/prompt/AcEdPromptNumericalResult.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptOptions.d.ts +61 -0
- package/lib/editor/input/prompt/AcEdPromptOptions.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptOptions.js +179 -0
- package/lib/editor/input/prompt/AcEdPromptOptions.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +46 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js +113 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptPointResult.d.ts +25 -0
- package/lib/editor/input/prompt/AcEdPromptPointResult.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptPointResult.js +38 -0
- package/lib/editor/input/prompt/AcEdPromptPointResult.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptResult.d.ts +27 -0
- package/lib/editor/input/prompt/AcEdPromptResult.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptResult.js +19 -0
- package/lib/editor/input/prompt/AcEdPromptResult.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptStatus.d.ts +22 -0
- package/lib/editor/input/prompt/AcEdPromptStatus.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptStatus.js +23 -0
- package/lib/editor/input/prompt/AcEdPromptStatus.js.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptStringOptions.d.ts +54 -0
- package/lib/editor/input/prompt/AcEdPromptStringOptions.d.ts.map +1 -0
- package/lib/editor/input/prompt/AcEdPromptStringOptions.js +124 -0
- package/lib/editor/input/prompt/AcEdPromptStringOptions.js.map +1 -0
- package/lib/editor/input/prompt/index.d.ts +11 -0
- package/lib/editor/input/prompt/index.d.ts.map +1 -0
- package/lib/editor/input/prompt/index.js +11 -0
- package/lib/editor/input/prompt/index.js.map +1 -0
- package/lib/editor/input/ui/AcEdCommandLine.d.ts +116 -0
- package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdCommandLine.js +481 -0
- package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +151 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInput.js +239 -0
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts +60 -0
- package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInputBox.js +113 -0
- package/lib/editor/input/ui/AcEdFloatingInputBox.js.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts +104 -0
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.js +154 -0
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.js.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +113 -0
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInputTypes.js +2 -0
- package/lib/editor/input/ui/AcEdFloatingInputTypes.js.map +1 -0
- package/lib/editor/input/ui/AcEdInputManager.d.ts +132 -0
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdInputManager.js +477 -0
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -0
- package/lib/editor/input/ui/AcEdRubberBand.d.ts +66 -0
- package/lib/editor/input/ui/AcEdRubberBand.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdRubberBand.js +276 -0
- package/lib/editor/input/ui/AcEdRubberBand.js.map +1 -0
- package/lib/editor/input/ui/index.d.ts +3 -0
- package/lib/editor/input/ui/index.d.ts.map +1 -0
- package/lib/editor/input/ui/index.js +3 -0
- package/lib/editor/input/ui/index.js.map +1 -0
- package/lib/editor/view/AcEdBaseView.d.ts +54 -16
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +14 -11
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- package/lib/editor/view/AcEdLayerInfo.d.ts +5 -0
- package/lib/editor/view/AcEdLayerInfo.d.ts.map +1 -1
- package/lib/i18n/AcApI18n.d.ts +135 -0
- package/lib/i18n/AcApI18n.d.ts.map +1 -0
- package/lib/i18n/AcApI18n.js +208 -0
- package/lib/i18n/AcApI18n.js.map +1 -0
- package/lib/i18n/en/command.d.ts +18 -0
- package/lib/i18n/en/command.d.ts.map +1 -0
- package/lib/i18n/en/command.js +17 -0
- package/lib/i18n/en/command.js.map +1 -0
- package/lib/i18n/en/jig.d.ts +11 -0
- package/lib/i18n/en/jig.d.ts.map +1 -0
- package/lib/i18n/en/jig.js +10 -0
- package/lib/i18n/en/jig.js.map +1 -0
- package/lib/i18n/en/main.d.ts +37 -0
- package/lib/i18n/en/main.d.ts.map +1 -0
- package/lib/i18n/en/main.js +36 -0
- package/lib/i18n/en/main.js.map +1 -0
- package/lib/i18n/index.d.ts +6 -0
- package/lib/i18n/index.d.ts.map +1 -0
- package/lib/i18n/index.js +31 -0
- package/lib/i18n/index.js.map +1 -0
- package/lib/i18n/zh/command.d.ts +18 -0
- package/lib/i18n/zh/command.d.ts.map +1 -0
- package/lib/i18n/zh/command.js +17 -0
- package/lib/i18n/zh/command.js.map +1 -0
- package/lib/i18n/zh/jig.d.ts +11 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -0
- package/lib/i18n/zh/jig.js +10 -0
- package/lib/i18n/zh/jig.js.map +1 -0
- package/lib/i18n/zh/main.d.ts +37 -0
- package/lib/i18n/zh/main.d.ts.map +1 -0
- package/lib/i18n/zh/main.js +36 -0
- package/lib/i18n/zh/main.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/view/AcTrLayer.d.ts +29 -5
- package/lib/view/AcTrLayer.d.ts.map +1 -1
- package/lib/view/AcTrLayer.js +44 -6
- package/lib/view/AcTrLayer.js.map +1 -1
- package/lib/view/AcTrLayout.d.ts +13 -7
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +29 -21
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrScene.d.ts +22 -8
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +36 -9
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +19 -4
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +135 -43
- package/lib/view/AcTrView2d.js.map +1 -1
- package/package.json +7 -7
- package/lib/editor/input/AcEdBaseInput.d.ts +0 -89
- package/lib/editor/input/AcEdBaseInput.d.ts.map +0 -1
- package/lib/editor/input/AcEdBaseInput.js +0 -166
- package/lib/editor/input/AcEdBaseInput.js.map +0 -1
- package/lib/editor/input/AcEdBoxSelector.d.ts +0 -108
- package/lib/editor/input/AcEdBoxSelector.d.ts.map +0 -1
- package/lib/editor/input/AcEdBoxSelector.js +0 -220
- package/lib/editor/input/AcEdBoxSelector.js.map +0 -1
- package/lib/editor/input/AcEdInputPoint.d.ts +0 -51
- package/lib/editor/input/AcEdInputPoint.d.ts.map +0 -1
- package/lib/editor/input/AcEdInputPoint.js +0 -78
- package/lib/editor/input/AcEdInputPoint.js.map +0 -1
- package/lib/editor/input/AcEdJig.d.ts +0 -180
- package/lib/editor/input/AcEdJig.d.ts.map +0 -1
- package/lib/editor/input/AcEdJig.js +0 -256
- package/lib/editor/input/AcEdJig.js.map +0 -1
- package/lib/editor/input/AcEdJigLoop.d.ts +0 -63
- package/lib/editor/input/AcEdJigLoop.d.ts.map +0 -1
- package/lib/editor/input/AcEdJigLoop.js +0 -91
- package/lib/editor/input/AcEdJigLoop.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdKeyword.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdKeyword.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH;IASE;;;;;;;;OAQG;IACH,qBACE,WAAmB,EACnB,UAAmB,EACnB,SAAkB,EAClB,OAAuB,EACvB,UAA2B,EAC3B,OAAuB;QAFvB,wBAAA,EAAA,cAAuB;QACvB,2BAAA,EAAA,kBAA2B;QAC3B,wBAAA,EAAA,cAAuB;QAEvB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAA;QAC/B,IAAI,CAAC,WAAW,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,WAAW,CAAA;QAC5C,IAAI,CAAC,UAAU,GAAG,SAAS,aAAT,SAAS,cAAT,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AW;gBAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;QAC7C,CAAC;;;OAHA;IAIH,kBAAC;AAAD,CAAC,AArGD,IAqGC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { AcEdKeyword } from './AcEdKeyword';
|
|
2
|
+
/**
|
|
3
|
+
* A collection of `AcEdKeyword` objects, mirroring `Autodesk.AutoCAD.EditorInput.KeywordCollection`.
|
|
4
|
+
* Represents the set of valid keywords for a prompt.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AcEdKeywordCollection {
|
|
7
|
+
private _keywords;
|
|
8
|
+
private _defaultKeyword?;
|
|
9
|
+
/** Constructs a new, empty `AcEdKeywordCollection`. */
|
|
10
|
+
constructor();
|
|
11
|
+
/**
|
|
12
|
+
* Adds a new keyword (displayName only).
|
|
13
|
+
* @param displayName - The text shown to the user for this keyword.
|
|
14
|
+
* @returns The newly created `AcEdKeyword`.
|
|
15
|
+
*/
|
|
16
|
+
add(displayName: string): AcEdKeyword;
|
|
17
|
+
/**
|
|
18
|
+
* Adds a new keyword with globalName and localName.
|
|
19
|
+
* @param globalName - The internal, non-display name.
|
|
20
|
+
* @param localName - The name that the user types to select the keyword.
|
|
21
|
+
* @returns The newly created `AcEdKeyword`.
|
|
22
|
+
*/
|
|
23
|
+
add(globalName: string, localName: string): AcEdKeyword;
|
|
24
|
+
/**
|
|
25
|
+
* Adds a new keyword with displayName, globalName, localName, enabled, visible.
|
|
26
|
+
* @param displayName - The text shown to the user.
|
|
27
|
+
* @param globalName - Internal identifier for the keyword.
|
|
28
|
+
* @param localName - The name used by the user to type the keyword.
|
|
29
|
+
* @param enabled - If false, the keyword cannot be selected.
|
|
30
|
+
* @param visible - If false, the keyword is hidden from display.
|
|
31
|
+
* @returns The newly created `AcEdKeyword`.
|
|
32
|
+
*/
|
|
33
|
+
add(displayName: string, globalName: string, localName: string, enabled?: boolean, visible?: boolean): AcEdKeyword;
|
|
34
|
+
/** Removes all keywords from the collection. */
|
|
35
|
+
clear(): void;
|
|
36
|
+
/** Copies the keywords of this collection into a plain array. */
|
|
37
|
+
toArray(): AcEdKeyword[];
|
|
38
|
+
/** Gets or sets the default keyword for this collection. */
|
|
39
|
+
get default(): AcEdKeyword | undefined;
|
|
40
|
+
set default(kw: AcEdKeyword | undefined);
|
|
41
|
+
/** Returns a string representing the visible, enabled keywords for display. */
|
|
42
|
+
getDisplayString(showNoDefault?: boolean): string;
|
|
43
|
+
/** Returns an iterator over the `AcEdKeyword` objects in this collection. */
|
|
44
|
+
[Symbol.iterator](): Iterator<AcEdKeyword>;
|
|
45
|
+
/** Finds a keyword by its display name (case-insensitive). */
|
|
46
|
+
findByDisplayName(displayName: string): AcEdKeyword | undefined;
|
|
47
|
+
/** Finds a keyword by its global name (case-insensitive). */
|
|
48
|
+
findByGlobalName(globalName: string): AcEdKeyword | undefined;
|
|
49
|
+
/** Gets the number of keywords in this collection. */
|
|
50
|
+
get count(): number;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=AcEdKeywordCollection.d.ts.map
|
|
@@ -0,0 +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,uDAAuD;;IAGvD;;;;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,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,sDAAsD;IACtD,IAAI,KAAK,IAAI,MAAM,CAElB;CACF"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { AcEdKeyword } from './AcEdKeyword';
|
|
2
|
+
/**
|
|
3
|
+
* A collection of `AcEdKeyword` objects, mirroring `Autodesk.AutoCAD.EditorInput.KeywordCollection`.
|
|
4
|
+
* Represents the set of valid keywords for a prompt.
|
|
5
|
+
*/
|
|
6
|
+
var AcEdKeywordCollection = /** @class */ (function () {
|
|
7
|
+
/** Constructs a new, empty `AcEdKeywordCollection`. */
|
|
8
|
+
function AcEdKeywordCollection() {
|
|
9
|
+
this._keywords = [];
|
|
10
|
+
}
|
|
11
|
+
AcEdKeywordCollection.prototype.add = function (a, b, c, enabled, visible) {
|
|
12
|
+
if (enabled === void 0) { enabled = true; }
|
|
13
|
+
if (visible === void 0) { visible = true; }
|
|
14
|
+
var displayName, globalName, localName;
|
|
15
|
+
if (b === undefined) {
|
|
16
|
+
displayName = a;
|
|
17
|
+
globalName = a;
|
|
18
|
+
localName = a;
|
|
19
|
+
}
|
|
20
|
+
else if (c === undefined) {
|
|
21
|
+
displayName = b;
|
|
22
|
+
globalName = a;
|
|
23
|
+
localName = b;
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
displayName = a;
|
|
27
|
+
globalName = b;
|
|
28
|
+
localName = c;
|
|
29
|
+
}
|
|
30
|
+
var kw = new AcEdKeyword(displayName, globalName, localName, enabled, false, visible);
|
|
31
|
+
this._keywords.push(kw);
|
|
32
|
+
return kw;
|
|
33
|
+
};
|
|
34
|
+
/** Removes all keywords from the collection. */
|
|
35
|
+
AcEdKeywordCollection.prototype.clear = function () {
|
|
36
|
+
this._keywords = [];
|
|
37
|
+
this._defaultKeyword = undefined;
|
|
38
|
+
};
|
|
39
|
+
/** Copies the keywords of this collection into a plain array. */
|
|
40
|
+
AcEdKeywordCollection.prototype.toArray = function () {
|
|
41
|
+
return this._keywords.slice();
|
|
42
|
+
};
|
|
43
|
+
Object.defineProperty(AcEdKeywordCollection.prototype, "default", {
|
|
44
|
+
/** Gets or sets the default keyword for this collection. */
|
|
45
|
+
get: function () {
|
|
46
|
+
return this._defaultKeyword;
|
|
47
|
+
},
|
|
48
|
+
set: function (kw) {
|
|
49
|
+
if (kw && !this._keywords.includes(kw)) {
|
|
50
|
+
throw new Error('Default keyword must be one of the collection\'s keywords');
|
|
51
|
+
}
|
|
52
|
+
this._defaultKeyword = kw;
|
|
53
|
+
},
|
|
54
|
+
enumerable: false,
|
|
55
|
+
configurable: true
|
|
56
|
+
});
|
|
57
|
+
/** Returns a string representing the visible, enabled keywords for display. */
|
|
58
|
+
AcEdKeywordCollection.prototype.getDisplayString = function (showNoDefault) {
|
|
59
|
+
var _this = this;
|
|
60
|
+
if (showNoDefault === void 0) { showNoDefault = false; }
|
|
61
|
+
var parts = this._keywords
|
|
62
|
+
.filter(function (kw) { return kw.visible && kw.enabled; })
|
|
63
|
+
.map(function (kw) {
|
|
64
|
+
if (!showNoDefault && _this._defaultKeyword === kw) {
|
|
65
|
+
return kw.displayName;
|
|
66
|
+
}
|
|
67
|
+
return kw.displayName;
|
|
68
|
+
});
|
|
69
|
+
return parts.join('/');
|
|
70
|
+
};
|
|
71
|
+
/** Returns an iterator over the `AcEdKeyword` objects in this collection. */
|
|
72
|
+
AcEdKeywordCollection.prototype[Symbol.iterator] = function () {
|
|
73
|
+
var index = 0;
|
|
74
|
+
var arr = this._keywords;
|
|
75
|
+
return {
|
|
76
|
+
next: function () {
|
|
77
|
+
if (index < arr.length)
|
|
78
|
+
return { done: false, value: arr[index++] };
|
|
79
|
+
else
|
|
80
|
+
return { done: true, value: undefined };
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
/** Finds a keyword by its display name (case-insensitive). */
|
|
85
|
+
AcEdKeywordCollection.prototype.findByDisplayName = function (displayName) {
|
|
86
|
+
return this._keywords.find(function (kw) { return kw.displayName.toLowerCase() === displayName.toLowerCase(); });
|
|
87
|
+
};
|
|
88
|
+
/** Finds a keyword by its global name (case-insensitive). */
|
|
89
|
+
AcEdKeywordCollection.prototype.findByGlobalName = function (globalName) {
|
|
90
|
+
return this._keywords.find(function (kw) { return kw.globalName.toLowerCase() === globalName.toLowerCase(); });
|
|
91
|
+
};
|
|
92
|
+
Object.defineProperty(AcEdKeywordCollection.prototype, "count", {
|
|
93
|
+
/** Gets the number of keywords in this collection. */
|
|
94
|
+
get: function () {
|
|
95
|
+
return this._keywords.length;
|
|
96
|
+
},
|
|
97
|
+
enumerable: false,
|
|
98
|
+
configurable: true
|
|
99
|
+
});
|
|
100
|
+
return AcEdKeywordCollection;
|
|
101
|
+
}());
|
|
102
|
+
export { AcEdKeywordCollection };
|
|
103
|
+
//# sourceMappingURL=AcEdKeywordCollection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdKeywordCollection.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdKeywordCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAA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B,UAAA,EAAE,IAAI,OAAA,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,WAAW,CAAC,WAAW,EAAE,EAA1D,CAA0D,CACjE,CAAA;IACH,CAAC;IAED,6DAA6D;IAC7D,gDAAgB,GAAhB,UAAiB,UAAkB;QACjC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CACxB,UAAA,EAAE,IAAI,OAAA,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,KAAK,UAAU,CAAC,WAAW,EAAE,EAAxD,CAAwD,CAC/D,CAAA;IACH,CAAC;IAGD,sBAAI,wCAAK;QADT,sDAAsD;aACtD;YACE,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAA;QAC9B,CAAC;;;OAAA;IACH,4BAAC;AAAD,CAAC,AA5ID,IA4IC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AcGePoint3d } from '@mlightcad/data-model';
|
|
2
|
+
import { AcEdPromptOptions } from './AcEdPromptOptions';
|
|
3
|
+
/**
|
|
4
|
+
* Options for prompting the user to enter an angle, similar to
|
|
5
|
+
* AutoCAD .NET `PromptAngleOptions`.
|
|
6
|
+
*
|
|
7
|
+
* Supports a base point, default angle, keywords, and various validation flags.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AcEdPromptAngleOptions extends AcEdPromptOptions<number> {
|
|
10
|
+
private _basePoint?;
|
|
11
|
+
private _useBasePoint;
|
|
12
|
+
private _useDashedLine;
|
|
13
|
+
private _useAngleBase;
|
|
14
|
+
private _defaultValue;
|
|
15
|
+
private _useDefaultValue;
|
|
16
|
+
private _allowZero;
|
|
17
|
+
private _allowNegative;
|
|
18
|
+
/**
|
|
19
|
+
* Constructs a new `AcEdPromptAngleOptions` with a given prompt message.
|
|
20
|
+
* @param message - The prompt message shown to the user.
|
|
21
|
+
*/
|
|
22
|
+
constructor(message: string);
|
|
23
|
+
/**
|
|
24
|
+
* Gets or sets the base point for the angle prompt.
|
|
25
|
+
* Corresponds to `PromptAngleOptions.BasePoint`.
|
|
26
|
+
*/
|
|
27
|
+
get basePoint(): AcGePoint3d | undefined;
|
|
28
|
+
set basePoint(point: AcGePoint3d | undefined);
|
|
29
|
+
/**
|
|
30
|
+
* Gets or sets whether to use the base point for the prompt.
|
|
31
|
+
* When true, the prompt may render a dashed line from the base point to the cursor.
|
|
32
|
+
* Corresponds to `PromptAngleOptions.UseBasePoint`.
|
|
33
|
+
*/
|
|
34
|
+
get useBasePoint(): boolean;
|
|
35
|
+
set useBasePoint(flag: boolean);
|
|
36
|
+
/**
|
|
37
|
+
* Gets or sets whether a dashed line should indicate the base point.
|
|
38
|
+
* Corresponds to `PromptAngleOptions.UseDashedLine`.
|
|
39
|
+
*/
|
|
40
|
+
get useDashedLine(): boolean;
|
|
41
|
+
set useDashedLine(flag: boolean);
|
|
42
|
+
/**
|
|
43
|
+
* Gets or sets whether the base "angle base" should be used.
|
|
44
|
+
* Corresponds to `PromptAngleOptions.UseAngleBase`.
|
|
45
|
+
*/
|
|
46
|
+
get useAngleBase(): boolean;
|
|
47
|
+
set useAngleBase(flag: boolean);
|
|
48
|
+
/**
|
|
49
|
+
* Gets or sets the default angle value (in degrees or radians, depending on your implementation).
|
|
50
|
+
* This is used when the user presses ENTER, if `useDefaultValue` is true.
|
|
51
|
+
* Corresponds to `PromptAngleOptions.DefaultValue`.
|
|
52
|
+
*/
|
|
53
|
+
get defaultValue(): number;
|
|
54
|
+
set defaultValue(val: number);
|
|
55
|
+
/**
|
|
56
|
+
* Gets or sets whether the default value is used when the user presses ENTER.
|
|
57
|
+
* Corresponds to `PromptAngleOptions.UseDefaultValue`.
|
|
58
|
+
*/
|
|
59
|
+
get useDefaultValue(): boolean;
|
|
60
|
+
set useDefaultValue(flag: boolean);
|
|
61
|
+
/**
|
|
62
|
+
* Gets or sets whether zero-valued angles are accepted.
|
|
63
|
+
* Corresponds to `PromptAngleOptions.AllowZero`.
|
|
64
|
+
*/
|
|
65
|
+
get allowZero(): boolean;
|
|
66
|
+
set allowZero(flag: boolean);
|
|
67
|
+
/**
|
|
68
|
+
* Gets or sets whether negative-valued angles are accepted.
|
|
69
|
+
* While not always documented directly on `PromptAngleOptions`, numerical prompts in AutoCAD
|
|
70
|
+
* often support negative input via a similar property. (Analogous to PromptNumericalOptions)
|
|
71
|
+
*/
|
|
72
|
+
get allowNegative(): boolean;
|
|
73
|
+
set allowNegative(flag: boolean);
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=AcEdPromptAngleOptions.d.ts.map
|
|
@@ -0,0 +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,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAiB;IACvC,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;IAI3B;;;OAGG;IACH,IAAI,SAAS,IAAI,WAAW,GAAG,SAAS,CAEvC;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,EAU3C;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"}
|
|
@@ -0,0 +1,182 @@
|
|
|
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 { AcGePoint3d } from '@mlightcad/data-model';
|
|
17
|
+
import { AcEdPromptOptions } from './AcEdPromptOptions';
|
|
18
|
+
/**
|
|
19
|
+
* Options for prompting the user to enter an angle, similar to
|
|
20
|
+
* AutoCAD .NET `PromptAngleOptions`.
|
|
21
|
+
*
|
|
22
|
+
* Supports a base point, default angle, keywords, and various validation flags.
|
|
23
|
+
*/
|
|
24
|
+
var AcEdPromptAngleOptions = /** @class */ (function (_super) {
|
|
25
|
+
__extends(AcEdPromptAngleOptions, _super);
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new `AcEdPromptAngleOptions` with a given prompt message.
|
|
28
|
+
* @param message - The prompt message shown to the user.
|
|
29
|
+
*/
|
|
30
|
+
function AcEdPromptAngleOptions(message) {
|
|
31
|
+
var _this = _super.call(this, message) || this;
|
|
32
|
+
_this._useBasePoint = false;
|
|
33
|
+
_this._useDashedLine = false;
|
|
34
|
+
_this._useAngleBase = false;
|
|
35
|
+
_this._defaultValue = 0;
|
|
36
|
+
_this._useDefaultValue = false;
|
|
37
|
+
_this._allowZero = true;
|
|
38
|
+
_this._allowNegative = false;
|
|
39
|
+
return _this;
|
|
40
|
+
}
|
|
41
|
+
Object.defineProperty(AcEdPromptAngleOptions.prototype, "basePoint", {
|
|
42
|
+
/**
|
|
43
|
+
* Gets or sets the base point for the angle prompt.
|
|
44
|
+
* Corresponds to `PromptAngleOptions.BasePoint`.
|
|
45
|
+
*/
|
|
46
|
+
get: function () {
|
|
47
|
+
return this._basePoint;
|
|
48
|
+
},
|
|
49
|
+
set: function (point) {
|
|
50
|
+
if (!this.isReadOnly) {
|
|
51
|
+
if (point == null) {
|
|
52
|
+
this._basePoint = point;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this._basePoint = this._basePoint
|
|
56
|
+
? this._basePoint.copy(point)
|
|
57
|
+
: new AcGePoint3d(point);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
enumerable: false,
|
|
62
|
+
configurable: true
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(AcEdPromptAngleOptions.prototype, "useBasePoint", {
|
|
65
|
+
/**
|
|
66
|
+
* Gets or sets whether to use the base point for the prompt.
|
|
67
|
+
* When true, the prompt may render a dashed line from the base point to the cursor.
|
|
68
|
+
* Corresponds to `PromptAngleOptions.UseBasePoint`.
|
|
69
|
+
*/
|
|
70
|
+
get: function () {
|
|
71
|
+
return this._useBasePoint;
|
|
72
|
+
},
|
|
73
|
+
set: function (flag) {
|
|
74
|
+
if (!this.isReadOnly) {
|
|
75
|
+
this._useBasePoint = flag;
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
enumerable: false,
|
|
79
|
+
configurable: true
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(AcEdPromptAngleOptions.prototype, "useDashedLine", {
|
|
82
|
+
/**
|
|
83
|
+
* Gets or sets whether a dashed line should indicate the base point.
|
|
84
|
+
* Corresponds to `PromptAngleOptions.UseDashedLine`.
|
|
85
|
+
*/
|
|
86
|
+
get: function () {
|
|
87
|
+
return this._useDashedLine;
|
|
88
|
+
},
|
|
89
|
+
set: function (flag) {
|
|
90
|
+
if (!this.isReadOnly) {
|
|
91
|
+
this._useDashedLine = flag;
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
enumerable: false,
|
|
95
|
+
configurable: true
|
|
96
|
+
});
|
|
97
|
+
Object.defineProperty(AcEdPromptAngleOptions.prototype, "useAngleBase", {
|
|
98
|
+
/**
|
|
99
|
+
* Gets or sets whether the base "angle base" should be used.
|
|
100
|
+
* Corresponds to `PromptAngleOptions.UseAngleBase`.
|
|
101
|
+
*/
|
|
102
|
+
get: function () {
|
|
103
|
+
return this._useAngleBase;
|
|
104
|
+
},
|
|
105
|
+
set: function (flag) {
|
|
106
|
+
if (!this.isReadOnly) {
|
|
107
|
+
this._useAngleBase = flag;
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
enumerable: false,
|
|
111
|
+
configurable: true
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(AcEdPromptAngleOptions.prototype, "defaultValue", {
|
|
114
|
+
/**
|
|
115
|
+
* Gets or sets the default angle value (in degrees or radians, depending on your implementation).
|
|
116
|
+
* This is used when the user presses ENTER, if `useDefaultValue` is true.
|
|
117
|
+
* Corresponds to `PromptAngleOptions.DefaultValue`.
|
|
118
|
+
*/
|
|
119
|
+
get: function () {
|
|
120
|
+
return this._defaultValue;
|
|
121
|
+
},
|
|
122
|
+
set: function (val) {
|
|
123
|
+
if (!this.isReadOnly) {
|
|
124
|
+
this._defaultValue = val;
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
enumerable: false,
|
|
128
|
+
configurable: true
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(AcEdPromptAngleOptions.prototype, "useDefaultValue", {
|
|
131
|
+
/**
|
|
132
|
+
* Gets or sets whether the default value is used when the user presses ENTER.
|
|
133
|
+
* Corresponds to `PromptAngleOptions.UseDefaultValue`.
|
|
134
|
+
*/
|
|
135
|
+
get: function () {
|
|
136
|
+
return this._useDefaultValue;
|
|
137
|
+
},
|
|
138
|
+
set: function (flag) {
|
|
139
|
+
if (!this.isReadOnly) {
|
|
140
|
+
this._useDefaultValue = flag;
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
enumerable: false,
|
|
144
|
+
configurable: true
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(AcEdPromptAngleOptions.prototype, "allowZero", {
|
|
147
|
+
/**
|
|
148
|
+
* Gets or sets whether zero-valued angles are accepted.
|
|
149
|
+
* Corresponds to `PromptAngleOptions.AllowZero`.
|
|
150
|
+
*/
|
|
151
|
+
get: function () {
|
|
152
|
+
return this._allowZero;
|
|
153
|
+
},
|
|
154
|
+
set: function (flag) {
|
|
155
|
+
if (!this.isReadOnly) {
|
|
156
|
+
this._allowZero = flag;
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
enumerable: false,
|
|
160
|
+
configurable: true
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(AcEdPromptAngleOptions.prototype, "allowNegative", {
|
|
163
|
+
/**
|
|
164
|
+
* Gets or sets whether negative-valued angles are accepted.
|
|
165
|
+
* While not always documented directly on `PromptAngleOptions`, numerical prompts in AutoCAD
|
|
166
|
+
* often support negative input via a similar property. (Analogous to PromptNumericalOptions)
|
|
167
|
+
*/
|
|
168
|
+
get: function () {
|
|
169
|
+
return this._allowNegative;
|
|
170
|
+
},
|
|
171
|
+
set: function (flag) {
|
|
172
|
+
if (!this.isReadOnly) {
|
|
173
|
+
this._allowNegative = flag;
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
enumerable: false,
|
|
177
|
+
configurable: true
|
|
178
|
+
});
|
|
179
|
+
return AcEdPromptAngleOptions;
|
|
180
|
+
}(AcEdPromptOptions));
|
|
181
|
+
export { AcEdPromptAngleOptions };
|
|
182
|
+
//# sourceMappingURL=AcEdPromptAngleOptions.js.map
|
|
@@ -0,0 +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;IAUnE;;;OAGG;IACH,gCAAY,OAAe;QACzB,YAAA,MAAK,YAAC,OAAO,CAAC,SAAA;QAbR,mBAAa,GAAY,KAAK,CAAA;QAC9B,oBAAc,GAAY,KAAK,CAAA;QAC/B,mBAAa,GAAY,KAAK,CAAA;QAC9B,mBAAa,GAAW,CAAC,CAAA;QACzB,sBAAgB,GAAY,KAAK,CAAA;QACjC,gBAAU,GAAY,IAAI,CAAA;QAC1B,oBAAc,GAAY,KAAK,CAAA;;IAQvC,CAAC;IAMD,sBAAI,6CAAS;QAJb;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,UAAU,CAAA;QACxB,CAAC;aACD,UAAc,KAA8B;YAC1C,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,KAAK,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OALA;IAWD,sBAAI,mDAAe;QAJnB;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,gBAAgB,CAAA;QAC9B,CAAC;aACD,UAAoB,IAAa;YAC/B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAA;YAC9B,CAAC;QACH,CAAC;;;OALA;IAWD,sBAAI,6CAAS;QAJb;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,UAAU,CAAA;QACxB,CAAC;aACD,UAAc,IAAa;YACzB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;YACxB,CAAC;QACH,CAAC;;;OALA;IAYD,sBAAI,iDAAa;QALjB;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,cAAc,CAAA;QAC5B,CAAC;aACD,UAAkB,IAAa;YAC7B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAA;YAC5B,CAAC;QACH,CAAC;;;OALA;IAMH,6BAAC;AAAD,CAAC,AAlID,CAA4C,iBAAiB,GAkI5D"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { AcGePoint3d } from '@mlightcad/data-model';
|
|
2
|
+
import { AcEdPromptNumericalOptions } from './AcEdPromptNumericalOptions';
|
|
3
|
+
/**
|
|
4
|
+
* Options for prompting the user to input a distance, similar to
|
|
5
|
+
* AutoCAD .NET `PromptDistanceOptions`.
|
|
6
|
+
*
|
|
7
|
+
* Supports a base point, default distance, 2D projection, dashed-line preview, and keywords.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AcEdPromptDistanceOptions extends AcEdPromptNumericalOptions {
|
|
10
|
+
private _basePoint?;
|
|
11
|
+
private _useBasePoint;
|
|
12
|
+
private _useDashedLine;
|
|
13
|
+
private _only2d;
|
|
14
|
+
/**
|
|
15
|
+
* Constructs a new `AcEdPromptDistanceOptions` with a prompt message.
|
|
16
|
+
* @param message - The message shown to the user in the prompt.
|
|
17
|
+
*/
|
|
18
|
+
constructor(message: string);
|
|
19
|
+
/**
|
|
20
|
+
* Gets or sets the base point for the distance prompt.
|
|
21
|
+
* Corresponds to `PromptDistanceOptions.BasePoint`.
|
|
22
|
+
*/
|
|
23
|
+
get basePoint(): AcGePoint3d | undefined;
|
|
24
|
+
set basePoint(point: AcGePoint3d | undefined);
|
|
25
|
+
/**
|
|
26
|
+
* Gets or sets whether the base point should be used for the prompt.
|
|
27
|
+
* When true, a rubber-band line from the base point to the cursor may be shown.
|
|
28
|
+
* Corresponds to `PromptDistanceOptions.UseBasePoint`.
|
|
29
|
+
*/
|
|
30
|
+
get useBasePoint(): boolean;
|
|
31
|
+
set useBasePoint(flag: boolean);
|
|
32
|
+
/**
|
|
33
|
+
* Gets or sets whether a dashed-line (“rubber band”) is drawn from the base point to the cursor.
|
|
34
|
+
* Corresponds to `PromptDistanceOptions.UseDashedLine`.
|
|
35
|
+
*/
|
|
36
|
+
get useDashedLine(): boolean;
|
|
37
|
+
set useDashedLine(flag: boolean);
|
|
38
|
+
/**
|
|
39
|
+
* Gets or sets whether the distance should be measured in 2D (projected into the current UCS).
|
|
40
|
+
* If true, the returned distance is the 2D projection from the base point.
|
|
41
|
+
* Corresponds to `PromptDistanceOptions.Only2d`.
|
|
42
|
+
*/
|
|
43
|
+
get only2d(): boolean;
|
|
44
|
+
set only2d(flag: boolean);
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=AcEdPromptDistanceOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptDistanceOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptDistanceOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE;;;;;GAKG;AACH,qBAAa,yBAA0B,SAAQ,0BAA0B;IACvE,OAAO,CAAC,UAAU,CAAC,CAAa;IAChC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,OAAO,CAAiB;IAEhC;;;OAGG;gBACS,OAAO,EAAE,MAAM;IAK3B;;;OAGG;IACH,IAAI,SAAS,IAAI,WAAW,GAAG,SAAS,CAEvC;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,EAU3C;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;;;;OAIG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IACD,IAAI,MAAM,CAAC,IAAI,EAAE,OAAO,EAIvB;CACF"}
|
|
@@ -0,0 +1,114 @@
|
|
|
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 { AcGePoint3d } from '@mlightcad/data-model';
|
|
17
|
+
import { AcEdPromptNumericalOptions } from './AcEdPromptNumericalOptions';
|
|
18
|
+
/**
|
|
19
|
+
* Options for prompting the user to input a distance, similar to
|
|
20
|
+
* AutoCAD .NET `PromptDistanceOptions`.
|
|
21
|
+
*
|
|
22
|
+
* Supports a base point, default distance, 2D projection, dashed-line preview, and keywords.
|
|
23
|
+
*/
|
|
24
|
+
var AcEdPromptDistanceOptions = /** @class */ (function (_super) {
|
|
25
|
+
__extends(AcEdPromptDistanceOptions, _super);
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new `AcEdPromptDistanceOptions` with a prompt message.
|
|
28
|
+
* @param message - The message shown to the user in the prompt.
|
|
29
|
+
*/
|
|
30
|
+
function AcEdPromptDistanceOptions(message) {
|
|
31
|
+
var _this = _super.call(this, message) || this;
|
|
32
|
+
_this._useBasePoint = false;
|
|
33
|
+
_this._useDashedLine = false;
|
|
34
|
+
_this._only2d = false;
|
|
35
|
+
_this.allowNegative = false;
|
|
36
|
+
return _this;
|
|
37
|
+
}
|
|
38
|
+
Object.defineProperty(AcEdPromptDistanceOptions.prototype, "basePoint", {
|
|
39
|
+
/**
|
|
40
|
+
* Gets or sets the base point for the distance prompt.
|
|
41
|
+
* Corresponds to `PromptDistanceOptions.BasePoint`.
|
|
42
|
+
*/
|
|
43
|
+
get: function () {
|
|
44
|
+
return this._basePoint;
|
|
45
|
+
},
|
|
46
|
+
set: function (point) {
|
|
47
|
+
if (!this.isReadOnly) {
|
|
48
|
+
if (point == null) {
|
|
49
|
+
this._basePoint = point;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
this._basePoint = this._basePoint
|
|
53
|
+
? this._basePoint.copy(point)
|
|
54
|
+
: new AcGePoint3d(point);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
enumerable: false,
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(AcEdPromptDistanceOptions.prototype, "useBasePoint", {
|
|
62
|
+
/**
|
|
63
|
+
* Gets or sets whether the base point should be used for the prompt.
|
|
64
|
+
* When true, a rubber-band line from the base point to the cursor may be shown.
|
|
65
|
+
* Corresponds to `PromptDistanceOptions.UseBasePoint`.
|
|
66
|
+
*/
|
|
67
|
+
get: function () {
|
|
68
|
+
return this._useBasePoint;
|
|
69
|
+
},
|
|
70
|
+
set: function (flag) {
|
|
71
|
+
if (!this.isReadOnly) {
|
|
72
|
+
this._useBasePoint = flag;
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
enumerable: false,
|
|
76
|
+
configurable: true
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(AcEdPromptDistanceOptions.prototype, "useDashedLine", {
|
|
79
|
+
/**
|
|
80
|
+
* Gets or sets whether a dashed-line (“rubber band”) is drawn from the base point to the cursor.
|
|
81
|
+
* Corresponds to `PromptDistanceOptions.UseDashedLine`.
|
|
82
|
+
*/
|
|
83
|
+
get: function () {
|
|
84
|
+
return this._useDashedLine;
|
|
85
|
+
},
|
|
86
|
+
set: function (flag) {
|
|
87
|
+
if (!this.isReadOnly) {
|
|
88
|
+
this._useDashedLine = flag;
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
enumerable: false,
|
|
92
|
+
configurable: true
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(AcEdPromptDistanceOptions.prototype, "only2d", {
|
|
95
|
+
/**
|
|
96
|
+
* Gets or sets whether the distance should be measured in 2D (projected into the current UCS).
|
|
97
|
+
* If true, the returned distance is the 2D projection from the base point.
|
|
98
|
+
* Corresponds to `PromptDistanceOptions.Only2d`.
|
|
99
|
+
*/
|
|
100
|
+
get: function () {
|
|
101
|
+
return this._only2d;
|
|
102
|
+
},
|
|
103
|
+
set: function (flag) {
|
|
104
|
+
if (!this.isReadOnly) {
|
|
105
|
+
this._only2d = flag;
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
enumerable: false,
|
|
109
|
+
configurable: true
|
|
110
|
+
});
|
|
111
|
+
return AcEdPromptDistanceOptions;
|
|
112
|
+
}(AcEdPromptNumericalOptions));
|
|
113
|
+
export { AcEdPromptDistanceOptions };
|
|
114
|
+
//# sourceMappingURL=AcEdPromptDistanceOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptDistanceOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptDistanceOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE;;;;;GAKG;AACH;IAA+C,6CAA0B;IAMvE;;;OAGG;IACH,mCAAY,OAAe;QACzB,YAAA,MAAK,YAAC,OAAO,CAAC,SAAA;QATR,mBAAa,GAAY,KAAK,CAAA;QAC9B,oBAAc,GAAY,KAAK,CAAA;QAC/B,aAAO,GAAY,KAAK,CAAA;QAQ9B,KAAI,CAAC,aAAa,GAAG,KAAK,CAAA;;IAC5B,CAAC;IAMD,sBAAI,gDAAS;QAJb;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,UAAU,CAAA;QACxB,CAAC;aACD,UAAc,KAA8B;YAC1C,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;oBAClB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;gBACzB,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU;wBAC/B,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC;wBAC7B,CAAC,CAAC,IAAI,WAAW,CAAC,KAAK,CAAC,CAAA;gBAC5B,CAAC;YACH,CAAC;QACH,CAAC;;;OAXA;IAkBD,sBAAI,mDAAY;QALhB;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,aAAa,CAAA;QAC3B,CAAC;aACD,UAAiB,IAAa;YAC5B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAA;YAC3B,CAAC;QACH,CAAC;;;OALA;IAWD,sBAAI,oDAAa;QAJjB;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,cAAc,CAAA;QAC5B,CAAC;aACD,UAAkB,IAAa;YAC7B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAA;YAC5B,CAAC;QACH,CAAC;;;OALA;IAYD,sBAAI,6CAAM;QALV;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,OAAO,CAAA;QACrB,CAAC;aACD,UAAW,IAAa;YACtB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;YACrB,CAAC;QACH,CAAC;;;OALA;IAMH,gCAAC;AAAD,CAAC,AA1ED,CAA+C,0BAA0B,GA0ExE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AcEdPromptNumericalOptions } from './AcEdPromptNumericalOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Options for prompting the user to enter a double-precision (floating point) number,
|
|
4
|
+
* similar to AutoCAD .NET `PromptDoubleOptions`.
|
|
5
|
+
*
|
|
6
|
+
* Inherits common numeric-prompt behavior from `AcEdPromptNumericalOptions`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AcEdPromptDoubleOptions extends AcEdPromptNumericalOptions {
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=AcEdPromptDoubleOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptDoubleOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptDoubleOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE;;;;;GAKG;AACH,qBAAa,uBAAwB,SAAQ,0BAA0B;CAEtE"}
|
|
@@ -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 { AcEdPromptNumericalOptions } from './AcEdPromptNumericalOptions';
|
|
17
|
+
/**
|
|
18
|
+
* Options for prompting the user to enter a double-precision (floating point) number,
|
|
19
|
+
* similar to AutoCAD .NET `PromptDoubleOptions`.
|
|
20
|
+
*
|
|
21
|
+
* Inherits common numeric-prompt behavior from `AcEdPromptNumericalOptions`.
|
|
22
|
+
*/
|
|
23
|
+
var AcEdPromptDoubleOptions = /** @class */ (function (_super) {
|
|
24
|
+
__extends(AcEdPromptDoubleOptions, _super);
|
|
25
|
+
function AcEdPromptDoubleOptions() {
|
|
26
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
+
}
|
|
28
|
+
return AcEdPromptDoubleOptions;
|
|
29
|
+
}(AcEdPromptNumericalOptions));
|
|
30
|
+
export { AcEdPromptDoubleOptions };
|
|
31
|
+
//# sourceMappingURL=AcEdPromptDoubleOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptDoubleOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptDoubleOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE;;;;;GAKG;AACH;IAA6C,2CAA0B;IAAvE;;IAEA,CAAC;IAAD,8BAAC;AAAD,CAAC,AAFD,CAA6C,0BAA0B,GAEtE"}
|