@mlightcad/cad-simple-viewer 1.2.4 → 1.2.5
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 +11406 -8892
- package/dist/index.umd.cjs +314 -24
- package/dist/libredwg-parser-worker.js +7267 -7238
- package/dist/mtext-renderer-worker.js +32 -9
- package/lib/app/AcApDocManager.d.ts +20 -3
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +66 -11
- 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/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 +114 -0
- package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdCommandLine.js +453 -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 +35 -11
- 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/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/AcTrScene.d.ts +19 -6
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +25 -6
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +11 -1
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +73 -35
- 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,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":"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"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AcEdPromptNumericalOptions } from './AcEdPromptNumericalOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Options for prompting the user to enter an integer (whole number),
|
|
4
|
+
* similar to AutoCAD .NET `PromptIntegerOptions`.
|
|
5
|
+
*
|
|
6
|
+
* Inherits common numeric‑prompt behavior from `AcEdPromptNumericalOptions`,
|
|
7
|
+
* and adds integer-specific configuration for minimum and maximum allowed values.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AcEdPromptIntegerOptions extends AcEdPromptNumericalOptions {
|
|
10
|
+
private _lowerLimit?;
|
|
11
|
+
private _upperLimit?;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new `AcEdPromptIntegerOptions`.
|
|
14
|
+
*
|
|
15
|
+
* AutoCAD .NET provides multiple overloads.
|
|
16
|
+
* This constructor supports the same idea by allowing:
|
|
17
|
+
* - just a message, or
|
|
18
|
+
* - a message + lower limit, or
|
|
19
|
+
* - a message + lower + upper limit.
|
|
20
|
+
*
|
|
21
|
+
* @param message - The message displayed to the user when prompting for an integer.
|
|
22
|
+
* @param lowerLimit - (optional) Minimum allowed integer value. Enables `useLowerLimit`.
|
|
23
|
+
* @param upperLimit - (optional) Maximum allowed integer value. Enables `useUpperLimit`.
|
|
24
|
+
*/
|
|
25
|
+
constructor(message: string, lowerLimit?: number, upperLimit?: number);
|
|
26
|
+
/**
|
|
27
|
+
* Gets or sets the minimum allowed integer value.
|
|
28
|
+
* Corresponds to `PromptIntegerOptions.LowerLimit` in AutoCAD .NET API.
|
|
29
|
+
*/
|
|
30
|
+
get lowerLimit(): number | undefined;
|
|
31
|
+
set lowerLimit(val: number | undefined);
|
|
32
|
+
/**
|
|
33
|
+
* Gets or sets the maximum allowed integer value.
|
|
34
|
+
* Corresponds to `PromptIntegerOptions.UpperLimit` in AutoCAD .NET API.
|
|
35
|
+
*/
|
|
36
|
+
get upperLimit(): number | undefined;
|
|
37
|
+
set upperLimit(val: number | undefined);
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=AcEdPromptIntegerOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptIntegerOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptIntegerOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE;;;;;;GAMG;AACH,qBAAa,wBAAyB,SAAQ,0BAA0B;IACtE,OAAO,CAAC,WAAW,CAAC,CAAQ;IAC5B,OAAO,CAAC,WAAW,CAAC,CAAQ;IAE5B;;;;;;;;;;;;OAYG;gBACS,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;IAYrE;;;OAGG;IACH,IAAI,UAAU,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED,IAAI,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAIrC;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED,IAAI,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAIrC;CACF"}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 an integer (whole number),
|
|
19
|
+
* similar to AutoCAD .NET `PromptIntegerOptions`.
|
|
20
|
+
*
|
|
21
|
+
* Inherits common numeric‑prompt behavior from `AcEdPromptNumericalOptions`,
|
|
22
|
+
* and adds integer-specific configuration for minimum and maximum allowed values.
|
|
23
|
+
*/
|
|
24
|
+
var AcEdPromptIntegerOptions = /** @class */ (function (_super) {
|
|
25
|
+
__extends(AcEdPromptIntegerOptions, _super);
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new `AcEdPromptIntegerOptions`.
|
|
28
|
+
*
|
|
29
|
+
* AutoCAD .NET provides multiple overloads.
|
|
30
|
+
* This constructor supports the same idea by allowing:
|
|
31
|
+
* - just a message, or
|
|
32
|
+
* - a message + lower limit, or
|
|
33
|
+
* - a message + lower + upper limit.
|
|
34
|
+
*
|
|
35
|
+
* @param message - The message displayed to the user when prompting for an integer.
|
|
36
|
+
* @param lowerLimit - (optional) Minimum allowed integer value. Enables `useLowerLimit`.
|
|
37
|
+
* @param upperLimit - (optional) Maximum allowed integer value. Enables `useUpperLimit`.
|
|
38
|
+
*/
|
|
39
|
+
function AcEdPromptIntegerOptions(message, lowerLimit, upperLimit) {
|
|
40
|
+
var _this = _super.call(this, message) || this;
|
|
41
|
+
if (typeof lowerLimit === 'number') {
|
|
42
|
+
_this._lowerLimit = Math.floor(lowerLimit);
|
|
43
|
+
}
|
|
44
|
+
if (typeof upperLimit === 'number') {
|
|
45
|
+
_this._upperLimit = Math.ceil(upperLimit);
|
|
46
|
+
}
|
|
47
|
+
return _this;
|
|
48
|
+
}
|
|
49
|
+
Object.defineProperty(AcEdPromptIntegerOptions.prototype, "lowerLimit", {
|
|
50
|
+
/**
|
|
51
|
+
* Gets or sets the minimum allowed integer value.
|
|
52
|
+
* Corresponds to `PromptIntegerOptions.LowerLimit` in AutoCAD .NET API.
|
|
53
|
+
*/
|
|
54
|
+
get: function () {
|
|
55
|
+
return this._lowerLimit;
|
|
56
|
+
},
|
|
57
|
+
set: function (val) {
|
|
58
|
+
if (!this.isReadOnly) {
|
|
59
|
+
this._lowerLimit = typeof val === 'number' ? Math.floor(val) : undefined;
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
enumerable: false,
|
|
63
|
+
configurable: true
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(AcEdPromptIntegerOptions.prototype, "upperLimit", {
|
|
66
|
+
/**
|
|
67
|
+
* Gets or sets the maximum allowed integer value.
|
|
68
|
+
* Corresponds to `PromptIntegerOptions.UpperLimit` in AutoCAD .NET API.
|
|
69
|
+
*/
|
|
70
|
+
get: function () {
|
|
71
|
+
return this._upperLimit;
|
|
72
|
+
},
|
|
73
|
+
set: function (val) {
|
|
74
|
+
if (!this.isReadOnly) {
|
|
75
|
+
this._upperLimit = typeof val === 'number' ? Math.floor(val) : undefined;
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
enumerable: false,
|
|
79
|
+
configurable: true
|
|
80
|
+
});
|
|
81
|
+
return AcEdPromptIntegerOptions;
|
|
82
|
+
}(AcEdPromptNumericalOptions));
|
|
83
|
+
export { AcEdPromptIntegerOptions };
|
|
84
|
+
//# sourceMappingURL=AcEdPromptIntegerOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptIntegerOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptIntegerOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE;;;;;;GAMG;AACH;IAA8C,4CAA0B;IAItE;;;;;;;;;;;;OAYG;IACH,kCAAY,OAAe,EAAE,UAAmB,EAAE,UAAmB;QACnE,YAAA,MAAK,YAAC,OAAO,CAAC,SAAA;QAEd,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;YACnC,KAAI,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;QAC3C,CAAC;QAED,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;YACnC,KAAI,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QAC1C,CAAC;;IACH,CAAC;IAMD,sBAAI,gDAAU;QAJd;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,WAAW,CAAA;QACzB,CAAC;aAED,UAAe,GAAuB;YACpC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,WAAW,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;YAC1E,CAAC;QACH,CAAC;;;OANA;IAYD,sBAAI,gDAAU;QAJd;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,WAAW,CAAA;QACzB,CAAC;aAED,UAAe,GAAuB;YACpC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,WAAW,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;YAC1E,CAAC;QACH,CAAC;;;OANA;IAOH,+BAAC;AAAD,CAAC,AAxDD,CAA8C,0BAA0B,GAwDvE"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AcEdPromptOptions } from './AcEdPromptOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Options for prompting the user to enter a numerical value (integer, double, etc.),
|
|
4
|
+
* similar to AutoCAD .NET `PromptNumericalOptions`.
|
|
5
|
+
*
|
|
6
|
+
* Supports default value, allowing zero / negative, and whether Enter (no input) is accepted.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AcEdPromptNumericalOptions extends AcEdPromptOptions<number> {
|
|
9
|
+
private _defaultValue;
|
|
10
|
+
private _useDefaultValue;
|
|
11
|
+
private _allowNone;
|
|
12
|
+
private _allowArbitraryInput;
|
|
13
|
+
private _allowNegative;
|
|
14
|
+
private _allowZero;
|
|
15
|
+
/**
|
|
16
|
+
* Constructs a new `AcEdPromptNumericalOptions` with a given prompt message.
|
|
17
|
+
* @param message - The message shown to the user when prompting for a number.
|
|
18
|
+
*/
|
|
19
|
+
constructor(message: string);
|
|
20
|
+
/**
|
|
21
|
+
* Gets or sets the default numerical value for the prompt.
|
|
22
|
+
* This is used when the user presses ENTER without providing any other input.
|
|
23
|
+
* In the .NET API, derived classes define the type-specific default value (e.g., integer, double).
|
|
24
|
+
*/
|
|
25
|
+
get defaultValue(): number;
|
|
26
|
+
set defaultValue(val: number);
|
|
27
|
+
/**
|
|
28
|
+
* Gets or sets whether the default value should be used when the user presses ENTER.
|
|
29
|
+
* Corresponds to `PromptNumericalOptions.UseDefaultValue` in AutoCAD .NET API.
|
|
30
|
+
*/
|
|
31
|
+
get useDefaultValue(): boolean;
|
|
32
|
+
set useDefaultValue(flag: boolean);
|
|
33
|
+
/**
|
|
34
|
+
* Gets or sets whether pressing ENTER alone (no input) is accepted.
|
|
35
|
+
* Corresponds to `PromptNumericalOptions.AllowNone` in AutoCAD .NET API.
|
|
36
|
+
*/
|
|
37
|
+
get allowNone(): boolean;
|
|
38
|
+
set allowNone(flag: boolean);
|
|
39
|
+
/**
|
|
40
|
+
* Gets or sets whether arbitrary (non-numeric) input is accepted.
|
|
41
|
+
* If true, the prompt may allow strings or other input, depending on implementation.
|
|
42
|
+
* Corresponds to `PromptNumericalOptions.AllowArbitraryInput` in AutoCAD .NET API.
|
|
43
|
+
*/
|
|
44
|
+
get allowArbitraryInput(): boolean;
|
|
45
|
+
set allowArbitraryInput(flag: boolean);
|
|
46
|
+
/**
|
|
47
|
+
* Gets or sets whether negative numeric values are allowed.
|
|
48
|
+
* Corresponds to `PromptNumericalOptions.AllowNegative` in AutoCAD .NET API.
|
|
49
|
+
*/
|
|
50
|
+
get allowNegative(): boolean;
|
|
51
|
+
set allowNegative(flag: boolean);
|
|
52
|
+
/**
|
|
53
|
+
* Gets or sets whether zero is an acceptable numeric value.
|
|
54
|
+
* Corresponds to `PromptNumericalOptions.AllowZero` in AutoCAD .NET API.
|
|
55
|
+
*/
|
|
56
|
+
get allowZero(): boolean;
|
|
57
|
+
set allowZero(flag: boolean);
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=AcEdPromptNumericalOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcEdPromptNumericalOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptNumericalOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH,qBAAa,0BAA2B,SAAQ,iBAAiB,CAAC,MAAM,CAAC;IACvE,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,gBAAgB,CAAiB;IACzC,OAAO,CAAC,UAAU,CAAiB;IACnC,OAAO,CAAC,oBAAoB,CAAiB;IAC7C,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,UAAU,CAAgB;IAElC;;;OAGG;gBACS,OAAO,EAAE,MAAM;IAI3B;;;;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,mBAAmB,IAAI,OAAO,CAEjC;IACD,IAAI,mBAAmB,CAAC,IAAI,EAAE,OAAO,EAIpC;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IACD,IAAI,aAAa,CAAC,IAAI,EAAE,OAAO,EAI9B;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IACD,IAAI,SAAS,CAAC,IAAI,EAAE,OAAO,EAI1B;CACF"}
|