@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.
Files changed (287) hide show
  1. package/dist/index.js +13000 -10094
  2. package/dist/index.umd.cjs +327 -24
  3. package/dist/libredwg-parser-worker.js +7267 -7238
  4. package/dist/mtext-renderer-worker.js +81 -41
  5. package/lib/app/AcApContext.js +1 -1
  6. package/lib/app/AcApContext.js.map +1 -1
  7. package/lib/app/AcApDocManager.d.ts +20 -3
  8. package/lib/app/AcApDocManager.d.ts.map +1 -1
  9. package/lib/app/AcApDocManager.js +67 -12
  10. package/lib/app/AcApDocManager.js.map +1 -1
  11. package/lib/app/AcApProgress.d.ts +133 -0
  12. package/lib/app/AcApProgress.d.ts.map +1 -0
  13. package/lib/app/AcApProgress.js +148 -0
  14. package/lib/app/AcApProgress.js.map +1 -0
  15. package/lib/app/AcApSettingManager.d.ts +42 -0
  16. package/lib/app/AcApSettingManager.d.ts.map +1 -1
  17. package/lib/app/AcApSettingManager.js +63 -0
  18. package/lib/app/AcApSettingManager.js.map +1 -1
  19. package/lib/app/index.d.ts +0 -1
  20. package/lib/app/index.d.ts.map +1 -1
  21. package/lib/app/index.js +0 -1
  22. package/lib/app/index.js.map +1 -1
  23. package/lib/command/AcApCircleCmd.d.ts +21 -0
  24. package/lib/command/AcApCircleCmd.d.ts.map +1 -0
  25. package/lib/command/AcApCircleCmd.js +115 -0
  26. package/lib/command/AcApCircleCmd.js.map +1 -0
  27. package/lib/command/AcApDimCmd.d.ts +57 -0
  28. package/lib/command/AcApDimCmd.d.ts.map +1 -0
  29. package/lib/command/AcApDimCmd.js +228 -0
  30. package/lib/command/AcApDimCmd.js.map +1 -0
  31. package/lib/command/AcApLogCmd.d.ts +13 -0
  32. package/lib/command/AcApLogCmd.d.ts.map +1 -0
  33. package/lib/command/AcApLogCmd.js +97 -0
  34. package/lib/command/AcApLogCmd.js.map +1 -0
  35. package/lib/command/AcApSysVarCmd.d.ts +15 -0
  36. package/lib/command/AcApSysVarCmd.d.ts.map +1 -0
  37. package/lib/command/AcApSysVarCmd.js +94 -0
  38. package/lib/command/AcApSysVarCmd.js.map +1 -0
  39. package/lib/command/AcApZoomCmd.js +1 -1
  40. package/lib/command/AcApZoomCmd.js.map +1 -1
  41. package/lib/command/AcApZoomToBoxCmd.d.ts +0 -36
  42. package/lib/command/AcApZoomToBoxCmd.d.ts.map +1 -1
  43. package/lib/command/AcApZoomToBoxCmd.js +4 -61
  44. package/lib/command/AcApZoomToBoxCmd.js.map +1 -1
  45. package/lib/command/index.d.ts +4 -0
  46. package/lib/command/index.d.ts.map +1 -1
  47. package/lib/command/index.js +4 -0
  48. package/lib/command/index.js.map +1 -1
  49. package/lib/editor/command/AcEdCommandStack.d.ts +19 -1
  50. package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
  51. package/lib/editor/command/AcEdCommandStack.js +40 -0
  52. package/lib/editor/command/AcEdCommandStack.js.map +1 -1
  53. package/lib/editor/input/AcEdCursorManager.d.ts +14 -30
  54. package/lib/editor/input/AcEdCursorManager.d.ts.map +1 -1
  55. package/lib/editor/input/AcEdCursorManager.js +32 -31
  56. package/lib/editor/input/AcEdCursorManager.js.map +1 -1
  57. package/lib/editor/input/AcEdPreviewJig.d.ts +103 -0
  58. package/lib/editor/input/AcEdPreviewJig.d.ts.map +1 -0
  59. package/lib/editor/input/AcEdPreviewJig.js +82 -0
  60. package/lib/editor/input/AcEdPreviewJig.js.map +1 -0
  61. package/lib/editor/input/AcEditor.d.ts +58 -11
  62. package/lib/editor/input/AcEditor.d.ts.map +1 -1
  63. package/lib/editor/input/AcEditor.js +86 -22
  64. package/lib/editor/input/AcEditor.js.map +1 -1
  65. package/lib/editor/input/handler/AcEdAngleHandler.d.ts +12 -0
  66. package/lib/editor/input/handler/AcEdAngleHandler.d.ts.map +1 -0
  67. package/lib/editor/input/handler/AcEdAngleHandler.js +25 -0
  68. package/lib/editor/input/handler/AcEdAngleHandler.js.map +1 -0
  69. package/lib/editor/input/handler/AcEdDistanceHandler.d.ts +8 -0
  70. package/lib/editor/input/handler/AcEdDistanceHandler.d.ts.map +1 -0
  71. package/lib/editor/input/handler/AcEdDistanceHandler.js +29 -0
  72. package/lib/editor/input/handler/AcEdDistanceHandler.js.map +1 -0
  73. package/lib/editor/input/handler/AcEdDoubleHandler.d.ts +7 -0
  74. package/lib/editor/input/handler/AcEdDoubleHandler.d.ts.map +1 -0
  75. package/lib/editor/input/handler/AcEdDoubleHandler.js +28 -0
  76. package/lib/editor/input/handler/AcEdDoubleHandler.js.map +1 -0
  77. package/lib/editor/input/handler/AcEdInputHandler.d.ts +14 -0
  78. package/lib/editor/input/handler/AcEdInputHandler.d.ts.map +1 -0
  79. package/lib/editor/input/handler/AcEdInputHandler.js +2 -0
  80. package/lib/editor/input/handler/AcEdInputHandler.js.map +1 -0
  81. package/lib/editor/input/handler/AcEdIntegerHandler.d.ts +11 -0
  82. package/lib/editor/input/handler/AcEdIntegerHandler.d.ts.map +1 -0
  83. package/lib/editor/input/handler/AcEdIntegerHandler.js +44 -0
  84. package/lib/editor/input/handler/AcEdIntegerHandler.js.map +1 -0
  85. package/lib/editor/input/handler/AcEdNumericalHandler.d.ts +11 -0
  86. package/lib/editor/input/handler/AcEdNumericalHandler.d.ts.map +1 -0
  87. package/lib/editor/input/handler/AcEdNumericalHandler.js +24 -0
  88. package/lib/editor/input/handler/AcEdNumericalHandler.js.map +1 -0
  89. package/lib/editor/input/handler/AcEdPointHandler.d.ts +16 -0
  90. package/lib/editor/input/handler/AcEdPointHandler.d.ts.map +1 -0
  91. package/lib/editor/input/handler/AcEdPointHandler.js +19 -0
  92. package/lib/editor/input/handler/AcEdPointHandler.js.map +1 -0
  93. package/lib/editor/input/handler/AcEdStringHandler.d.ts +12 -0
  94. package/lib/editor/input/handler/AcEdStringHandler.d.ts.map +1 -0
  95. package/lib/editor/input/handler/AcEdStringHandler.js +24 -0
  96. package/lib/editor/input/handler/AcEdStringHandler.js.map +1 -0
  97. package/lib/editor/input/handler/index.d.ts +9 -0
  98. package/lib/editor/input/handler/index.d.ts.map +1 -0
  99. package/lib/editor/input/handler/index.js +9 -0
  100. package/lib/editor/input/handler/index.js.map +1 -0
  101. package/lib/editor/input/index.d.ts +4 -1
  102. package/lib/editor/input/index.d.ts.map +1 -1
  103. package/lib/editor/input/index.js +4 -1
  104. package/lib/editor/input/index.js.map +1 -1
  105. package/lib/editor/input/marker/AcEdMarker.d.ts +72 -0
  106. package/lib/editor/input/marker/AcEdMarker.d.ts.map +1 -0
  107. package/lib/editor/input/marker/AcEdMarker.js +124 -0
  108. package/lib/editor/input/marker/AcEdMarker.js.map +1 -0
  109. package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts +52 -0
  110. package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts.map +1 -0
  111. package/lib/editor/input/marker/AcEdOSnapMarkerManager.js +91 -0
  112. package/lib/editor/input/marker/AcEdOSnapMarkerManager.js.map +1 -0
  113. package/lib/editor/input/marker/index.d.ts +3 -0
  114. package/lib/editor/input/marker/index.d.ts.map +1 -0
  115. package/lib/editor/input/marker/index.js +3 -0
  116. package/lib/editor/input/marker/index.js.map +1 -0
  117. package/lib/editor/input/prompt/AcEdKeyword.d.ts +63 -0
  118. package/lib/editor/input/prompt/AcEdKeyword.d.ts.map +1 -0
  119. package/lib/editor/input/prompt/AcEdKeyword.js +120 -0
  120. package/lib/editor/input/prompt/AcEdKeyword.js.map +1 -0
  121. package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts +52 -0
  122. package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts.map +1 -0
  123. package/lib/editor/input/prompt/AcEdKeywordCollection.js +103 -0
  124. package/lib/editor/input/prompt/AcEdKeywordCollection.js.map +1 -0
  125. package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts +75 -0
  126. package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts.map +1 -0
  127. package/lib/editor/input/prompt/AcEdPromptAngleOptions.js +182 -0
  128. package/lib/editor/input/prompt/AcEdPromptAngleOptions.js.map +1 -0
  129. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.d.ts +46 -0
  130. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.d.ts.map +1 -0
  131. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js +114 -0
  132. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js.map +1 -0
  133. package/lib/editor/input/prompt/AcEdPromptDoubleOptions.d.ts +10 -0
  134. package/lib/editor/input/prompt/AcEdPromptDoubleOptions.d.ts.map +1 -0
  135. package/lib/editor/input/prompt/AcEdPromptDoubleOptions.js +31 -0
  136. package/lib/editor/input/prompt/AcEdPromptDoubleOptions.js.map +1 -0
  137. package/lib/editor/input/prompt/AcEdPromptIntegerOptions.d.ts +39 -0
  138. package/lib/editor/input/prompt/AcEdPromptIntegerOptions.d.ts.map +1 -0
  139. package/lib/editor/input/prompt/AcEdPromptIntegerOptions.js +84 -0
  140. package/lib/editor/input/prompt/AcEdPromptIntegerOptions.js.map +1 -0
  141. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.d.ts +59 -0
  142. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.d.ts.map +1 -0
  143. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.js +140 -0
  144. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.js.map +1 -0
  145. package/lib/editor/input/prompt/AcEdPromptNumericalResult.d.ts +19 -0
  146. package/lib/editor/input/prompt/AcEdPromptNumericalResult.d.ts.map +1 -0
  147. package/lib/editor/input/prompt/AcEdPromptNumericalResult.js +36 -0
  148. package/lib/editor/input/prompt/AcEdPromptNumericalResult.js.map +1 -0
  149. package/lib/editor/input/prompt/AcEdPromptOptions.d.ts +61 -0
  150. package/lib/editor/input/prompt/AcEdPromptOptions.d.ts.map +1 -0
  151. package/lib/editor/input/prompt/AcEdPromptOptions.js +179 -0
  152. package/lib/editor/input/prompt/AcEdPromptOptions.js.map +1 -0
  153. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +46 -0
  154. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -0
  155. package/lib/editor/input/prompt/AcEdPromptPointOptions.js +113 -0
  156. package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -0
  157. package/lib/editor/input/prompt/AcEdPromptPointResult.d.ts +25 -0
  158. package/lib/editor/input/prompt/AcEdPromptPointResult.d.ts.map +1 -0
  159. package/lib/editor/input/prompt/AcEdPromptPointResult.js +38 -0
  160. package/lib/editor/input/prompt/AcEdPromptPointResult.js.map +1 -0
  161. package/lib/editor/input/prompt/AcEdPromptResult.d.ts +27 -0
  162. package/lib/editor/input/prompt/AcEdPromptResult.d.ts.map +1 -0
  163. package/lib/editor/input/prompt/AcEdPromptResult.js +19 -0
  164. package/lib/editor/input/prompt/AcEdPromptResult.js.map +1 -0
  165. package/lib/editor/input/prompt/AcEdPromptStatus.d.ts +22 -0
  166. package/lib/editor/input/prompt/AcEdPromptStatus.d.ts.map +1 -0
  167. package/lib/editor/input/prompt/AcEdPromptStatus.js +23 -0
  168. package/lib/editor/input/prompt/AcEdPromptStatus.js.map +1 -0
  169. package/lib/editor/input/prompt/AcEdPromptStringOptions.d.ts +54 -0
  170. package/lib/editor/input/prompt/AcEdPromptStringOptions.d.ts.map +1 -0
  171. package/lib/editor/input/prompt/AcEdPromptStringOptions.js +124 -0
  172. package/lib/editor/input/prompt/AcEdPromptStringOptions.js.map +1 -0
  173. package/lib/editor/input/prompt/index.d.ts +11 -0
  174. package/lib/editor/input/prompt/index.d.ts.map +1 -0
  175. package/lib/editor/input/prompt/index.js +11 -0
  176. package/lib/editor/input/prompt/index.js.map +1 -0
  177. package/lib/editor/input/ui/AcEdCommandLine.d.ts +116 -0
  178. package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -0
  179. package/lib/editor/input/ui/AcEdCommandLine.js +481 -0
  180. package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -0
  181. package/lib/editor/input/ui/AcEdFloatingInput.d.ts +151 -0
  182. package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -0
  183. package/lib/editor/input/ui/AcEdFloatingInput.js +239 -0
  184. package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -0
  185. package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts +60 -0
  186. package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts.map +1 -0
  187. package/lib/editor/input/ui/AcEdFloatingInputBox.js +113 -0
  188. package/lib/editor/input/ui/AcEdFloatingInputBox.js.map +1 -0
  189. package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts +104 -0
  190. package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts.map +1 -0
  191. package/lib/editor/input/ui/AcEdFloatingInputBoxes.js +154 -0
  192. package/lib/editor/input/ui/AcEdFloatingInputBoxes.js.map +1 -0
  193. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +113 -0
  194. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -0
  195. package/lib/editor/input/ui/AcEdFloatingInputTypes.js +2 -0
  196. package/lib/editor/input/ui/AcEdFloatingInputTypes.js.map +1 -0
  197. package/lib/editor/input/ui/AcEdInputManager.d.ts +132 -0
  198. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -0
  199. package/lib/editor/input/ui/AcEdInputManager.js +477 -0
  200. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -0
  201. package/lib/editor/input/ui/AcEdRubberBand.d.ts +66 -0
  202. package/lib/editor/input/ui/AcEdRubberBand.d.ts.map +1 -0
  203. package/lib/editor/input/ui/AcEdRubberBand.js +276 -0
  204. package/lib/editor/input/ui/AcEdRubberBand.js.map +1 -0
  205. package/lib/editor/input/ui/index.d.ts +3 -0
  206. package/lib/editor/input/ui/index.d.ts.map +1 -0
  207. package/lib/editor/input/ui/index.js +3 -0
  208. package/lib/editor/input/ui/index.js.map +1 -0
  209. package/lib/editor/view/AcEdBaseView.d.ts +54 -16
  210. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  211. package/lib/editor/view/AcEdBaseView.js +14 -11
  212. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  213. package/lib/editor/view/AcEdLayerInfo.d.ts +5 -0
  214. package/lib/editor/view/AcEdLayerInfo.d.ts.map +1 -1
  215. package/lib/i18n/AcApI18n.d.ts +135 -0
  216. package/lib/i18n/AcApI18n.d.ts.map +1 -0
  217. package/lib/i18n/AcApI18n.js +208 -0
  218. package/lib/i18n/AcApI18n.js.map +1 -0
  219. package/lib/i18n/en/command.d.ts +18 -0
  220. package/lib/i18n/en/command.d.ts.map +1 -0
  221. package/lib/i18n/en/command.js +17 -0
  222. package/lib/i18n/en/command.js.map +1 -0
  223. package/lib/i18n/en/jig.d.ts +11 -0
  224. package/lib/i18n/en/jig.d.ts.map +1 -0
  225. package/lib/i18n/en/jig.js +10 -0
  226. package/lib/i18n/en/jig.js.map +1 -0
  227. package/lib/i18n/en/main.d.ts +37 -0
  228. package/lib/i18n/en/main.d.ts.map +1 -0
  229. package/lib/i18n/en/main.js +36 -0
  230. package/lib/i18n/en/main.js.map +1 -0
  231. package/lib/i18n/index.d.ts +6 -0
  232. package/lib/i18n/index.d.ts.map +1 -0
  233. package/lib/i18n/index.js +31 -0
  234. package/lib/i18n/index.js.map +1 -0
  235. package/lib/i18n/zh/command.d.ts +18 -0
  236. package/lib/i18n/zh/command.d.ts.map +1 -0
  237. package/lib/i18n/zh/command.js +17 -0
  238. package/lib/i18n/zh/command.js.map +1 -0
  239. package/lib/i18n/zh/jig.d.ts +11 -0
  240. package/lib/i18n/zh/jig.d.ts.map +1 -0
  241. package/lib/i18n/zh/jig.js +10 -0
  242. package/lib/i18n/zh/jig.js.map +1 -0
  243. package/lib/i18n/zh/main.d.ts +37 -0
  244. package/lib/i18n/zh/main.d.ts.map +1 -0
  245. package/lib/i18n/zh/main.js +36 -0
  246. package/lib/i18n/zh/main.js.map +1 -0
  247. package/lib/index.d.ts +1 -0
  248. package/lib/index.d.ts.map +1 -1
  249. package/lib/index.js +1 -0
  250. package/lib/index.js.map +1 -1
  251. package/lib/view/AcTrLayer.d.ts +29 -5
  252. package/lib/view/AcTrLayer.d.ts.map +1 -1
  253. package/lib/view/AcTrLayer.js +44 -6
  254. package/lib/view/AcTrLayer.js.map +1 -1
  255. package/lib/view/AcTrLayout.d.ts +13 -7
  256. package/lib/view/AcTrLayout.d.ts.map +1 -1
  257. package/lib/view/AcTrLayout.js +29 -21
  258. package/lib/view/AcTrLayout.js.map +1 -1
  259. package/lib/view/AcTrScene.d.ts +22 -8
  260. package/lib/view/AcTrScene.d.ts.map +1 -1
  261. package/lib/view/AcTrScene.js +36 -9
  262. package/lib/view/AcTrScene.js.map +1 -1
  263. package/lib/view/AcTrView2d.d.ts +19 -4
  264. package/lib/view/AcTrView2d.d.ts.map +1 -1
  265. package/lib/view/AcTrView2d.js +135 -43
  266. package/lib/view/AcTrView2d.js.map +1 -1
  267. package/package.json +7 -7
  268. package/lib/editor/input/AcEdBaseInput.d.ts +0 -89
  269. package/lib/editor/input/AcEdBaseInput.d.ts.map +0 -1
  270. package/lib/editor/input/AcEdBaseInput.js +0 -166
  271. package/lib/editor/input/AcEdBaseInput.js.map +0 -1
  272. package/lib/editor/input/AcEdBoxSelector.d.ts +0 -108
  273. package/lib/editor/input/AcEdBoxSelector.d.ts.map +0 -1
  274. package/lib/editor/input/AcEdBoxSelector.js +0 -220
  275. package/lib/editor/input/AcEdBoxSelector.js.map +0 -1
  276. package/lib/editor/input/AcEdInputPoint.d.ts +0 -51
  277. package/lib/editor/input/AcEdInputPoint.d.ts.map +0 -1
  278. package/lib/editor/input/AcEdInputPoint.js +0 -78
  279. package/lib/editor/input/AcEdInputPoint.js.map +0 -1
  280. package/lib/editor/input/AcEdJig.d.ts +0 -180
  281. package/lib/editor/input/AcEdJig.d.ts.map +0 -1
  282. package/lib/editor/input/AcEdJig.js +0 -256
  283. package/lib/editor/input/AcEdJig.js.map +0 -1
  284. package/lib/editor/input/AcEdJigLoop.d.ts +0 -63
  285. package/lib/editor/input/AcEdJigLoop.d.ts.map +0 -1
  286. package/lib/editor/input/AcEdJigLoop.js +0 -91
  287. package/lib/editor/input/AcEdJigLoop.js.map +0 -1
@@ -0,0 +1,46 @@
1
+ import { AcGePoint3d } from '@mlightcad/data-model';
2
+ import { AcEdPromptOptions } from './AcEdPromptOptions';
3
+ /**
4
+ * Represents options for prompting the user to select a point, similar to
5
+ * AutoCAD .NET `PromptPointOptions` and `PromptCornerOptions`.
6
+ *
7
+ * Supports specifying a base point, keywords, and how the message is displayed.
8
+ */
9
+ export declare class AcEdPromptPointOptions extends AcEdPromptOptions<AcGePoint3d> {
10
+ private _basePoint?;
11
+ private _useBasePoint;
12
+ private _useDashedLine;
13
+ private _allowNone;
14
+ /**
15
+ * Constructs a new `AcEdPromptPointOptions` with a given prompt message.
16
+ * @param message - The message to show to the user in the prompt.
17
+ */
18
+ constructor(message: string);
19
+ /**
20
+ * Gets or sets the base point used for relative selection.
21
+ * In AutoCAD .NET, this is `PromptPointOptions.BasePoint`.
22
+ * When `useBasePoint` is true, a rubber-band line will be drawn from the base point to the cursor.
23
+ */
24
+ get basePoint(): AcGePoint3d | undefined;
25
+ set basePoint(point: AcGePoint3d | undefined);
26
+ /**
27
+ * Gets or sets whether the base point should be used when prompting the next point.
28
+ * In AutoCAD .NET, this is `PromptPointOptions.UseBasePoint`.
29
+ * If true, the prompt will display a visual line from the base point to the cursor.
30
+ */
31
+ get useBasePoint(): boolean;
32
+ set useBasePoint(flag: boolean);
33
+ /**
34
+ * Gets or sets whether a dashed line should indicate the base point.
35
+ * Corresponds to `PromptPointOptions.UseDashedLine`.
36
+ */
37
+ get useDashedLine(): boolean;
38
+ set useDashedLine(flag: boolean);
39
+ /**
40
+ * Gets or sets whether the user is allowed to press Enter to specify no point.
41
+ * Corresponds to `PromptPointOptions.AllowNone` in AutoCAD .NET.
42
+ */
43
+ get allowNone(): boolean;
44
+ set allowNone(flag: boolean);
45
+ }
46
+ //# sourceMappingURL=AcEdPromptPointOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptPointOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptPointOptions.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,WAAW,CAAC;IACxE,OAAO,CAAC,UAAU,CAAC,CAAa;IAChC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,UAAU,CAAiB;IAEnC;;;OAGG;gBACS,OAAO,EAAE,MAAM;IAI3B;;;;OAIG;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,SAAS,IAAI,OAAO,CAEvB;IACD,IAAI,SAAS,CAAC,IAAI,EAAE,OAAO,EAI1B;CACF"}
@@ -0,0 +1,113 @@
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
+ * Represents options for prompting the user to select a point, similar to
20
+ * AutoCAD .NET `PromptPointOptions` and `PromptCornerOptions`.
21
+ *
22
+ * Supports specifying a base point, keywords, and how the message is displayed.
23
+ */
24
+ var AcEdPromptPointOptions = /** @class */ (function (_super) {
25
+ __extends(AcEdPromptPointOptions, _super);
26
+ /**
27
+ * Constructs a new `AcEdPromptPointOptions` with a given prompt message.
28
+ * @param message - The message to show to the user in the prompt.
29
+ */
30
+ function AcEdPromptPointOptions(message) {
31
+ var _this = _super.call(this, message) || this;
32
+ _this._useBasePoint = false;
33
+ _this._useDashedLine = false;
34
+ _this._allowNone = false;
35
+ return _this;
36
+ }
37
+ Object.defineProperty(AcEdPromptPointOptions.prototype, "basePoint", {
38
+ /**
39
+ * Gets or sets the base point used for relative selection.
40
+ * In AutoCAD .NET, this is `PromptPointOptions.BasePoint`.
41
+ * When `useBasePoint` is true, a rubber-band line will be drawn from the base point to the cursor.
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(AcEdPromptPointOptions.prototype, "useBasePoint", {
62
+ /**
63
+ * Gets or sets whether the base point should be used when prompting the next point.
64
+ * In AutoCAD .NET, this is `PromptPointOptions.UseBasePoint`.
65
+ * If true, the prompt will display a visual line from the base point to the cursor.
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(AcEdPromptPointOptions.prototype, "useDashedLine", {
79
+ /**
80
+ * Gets or sets whether a dashed line should indicate the base point.
81
+ * Corresponds to `PromptPointOptions.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(AcEdPromptPointOptions.prototype, "allowNone", {
95
+ /**
96
+ * Gets or sets whether the user is allowed to press Enter to specify no point.
97
+ * Corresponds to `PromptPointOptions.AllowNone` in AutoCAD .NET.
98
+ */
99
+ get: function () {
100
+ return this._allowNone;
101
+ },
102
+ set: function (flag) {
103
+ if (!this.isReadOnly) {
104
+ this._allowNone = flag;
105
+ }
106
+ },
107
+ enumerable: false,
108
+ configurable: true
109
+ });
110
+ return AcEdPromptPointOptions;
111
+ }(AcEdPromptOptions));
112
+ export { AcEdPromptPointOptions };
113
+ //# sourceMappingURL=AcEdPromptPointOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptPointOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptPointOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH;IAA4C,0CAA8B;IAMxE;;;OAGG;IACH,gCAAY,OAAe;QACzB,YAAA,MAAK,YAAC,OAAO,CAAC,SAAA;QATR,mBAAa,GAAY,KAAK,CAAA;QAC9B,oBAAc,GAAY,KAAK,CAAA;QAC/B,gBAAU,GAAY,KAAK,CAAA;;IAQnC,CAAC;IAOD,sBAAI,6CAAS;QALb;;;;WAIG;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,gDAAY;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,iDAAa;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;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;IAMH,6BAAC;AAAD,CAAC,AAzED,CAA4C,iBAAiB,GAyE5D"}
@@ -0,0 +1,25 @@
1
+ import { AcGePoint2dLike } from '@mlightcad/data-model';
2
+ import { AcEdPromptResult } from './AcEdPromptResult';
3
+ import { AcEdPromptStatus } from './AcEdPromptStatus';
4
+ /**
5
+ * Result of a prompt that requests a **point**.
6
+ *
7
+ * This mirrors `Autodesk.AutoCAD.EditorInput.PromptPointResult`.
8
+ */
9
+ export declare class AcEdPromptPointResult extends AcEdPromptResult {
10
+ /**
11
+ * The 3D point returned by the prompt.
12
+ * Corresponds to .NET's `PromptPointResult.Value`.
13
+ *
14
+ * Valid only when `status === AcEdPromptStatus.OK`.
15
+ */
16
+ readonly value?: AcGePoint2dLike;
17
+ /**
18
+ * Constructs a new result for a point prompt.
19
+ *
20
+ * @param status The status of the prompt (OK, Cancel, Error, etc.)
21
+ * @param value The point returned (valid only on OK)
22
+ */
23
+ constructor(status: AcEdPromptStatus, value?: AcGePoint2dLike);
24
+ }
25
+ //# sourceMappingURL=AcEdPromptPointResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptPointResult.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptPointResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB;IACzD;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,eAAe,CAAA;IAEhC;;;;;OAKG;gBACS,MAAM,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,eAAe;CAI9D"}
@@ -0,0 +1,38 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ import { AcEdPromptResult } from './AcEdPromptResult';
17
+ /**
18
+ * Result of a prompt that requests a **point**.
19
+ *
20
+ * This mirrors `Autodesk.AutoCAD.EditorInput.PromptPointResult`.
21
+ */
22
+ var AcEdPromptPointResult = /** @class */ (function (_super) {
23
+ __extends(AcEdPromptPointResult, _super);
24
+ /**
25
+ * Constructs a new result for a point prompt.
26
+ *
27
+ * @param status The status of the prompt (OK, Cancel, Error, etc.)
28
+ * @param value The point returned (valid only on OK)
29
+ */
30
+ function AcEdPromptPointResult(status, value) {
31
+ var _this = _super.call(this, status, undefined) || this;
32
+ _this.value = value;
33
+ return _this;
34
+ }
35
+ return AcEdPromptPointResult;
36
+ }(AcEdPromptResult));
37
+ export { AcEdPromptPointResult };
38
+ //# sourceMappingURL=AcEdPromptPointResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptPointResult.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptPointResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGrD;;;;GAIG;AACH;IAA2C,yCAAgB;IASzD;;;;;OAKG;IACH,+BAAY,MAAwB,EAAE,KAAuB;QAC3D,YAAA,MAAK,YAAC,MAAM,EAAE,SAAS,CAAC,SAAA;QACxB,KAAI,CAAC,KAAK,GAAG,KAAK,CAAA;;IACpB,CAAC;IACH,4BAAC;AAAD,CAAC,AAnBD,CAA2C,gBAAgB,GAmB1D"}
@@ -0,0 +1,27 @@
1
+ import { AcEdPromptStatus } from './AcEdPromptStatus';
2
+ /**
3
+ * Base class for a prompt result, similar to `Autodesk.AutoCAD.EditorInput.PromptResult`.
4
+ * This class encapsulates common information returned by prompt methods.
5
+ */
6
+ export declare class AcEdPromptResult {
7
+ /**
8
+ * The status of the prompt (e.g. OK, Cancel, Error).
9
+ * Modeled on `PromptStatus` in the AutoCAD .NET API.
10
+ */
11
+ status: AcEdPromptStatus;
12
+ /**
13
+ * An optional string result.
14
+ * This is typically set when `status` is `Keyword` or when the prompt
15
+ * returns a string as its primary result.
16
+ * Corresponds to `PromptResult.StringResult` in the .NET API.
17
+ */
18
+ stringResult?: string;
19
+ /**
20
+ * Constructs a new `AcEdPromptResult`.
21
+ * @param status The prompt status.
22
+ * @param stringResult Optional string result.
23
+ * @param message Optional message.
24
+ */
25
+ constructor(status: AcEdPromptStatus, stringResult?: string);
26
+ }
27
+ //# sourceMappingURL=AcEdPromptResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptResult.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B;;;OAGG;IACH,MAAM,EAAE,gBAAgB,CAAA;IAExB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;;;OAKG;gBACS,MAAM,EAAE,gBAAgB,EAAE,YAAY,CAAC,EAAE,MAAM;CAI5D"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Base class for a prompt result, similar to `Autodesk.AutoCAD.EditorInput.PromptResult`.
3
+ * This class encapsulates common information returned by prompt methods.
4
+ */
5
+ var AcEdPromptResult = /** @class */ (function () {
6
+ /**
7
+ * Constructs a new `AcEdPromptResult`.
8
+ * @param status The prompt status.
9
+ * @param stringResult Optional string result.
10
+ * @param message Optional message.
11
+ */
12
+ function AcEdPromptResult(status, stringResult) {
13
+ this.status = status;
14
+ this.stringResult = stringResult;
15
+ }
16
+ return AcEdPromptResult;
17
+ }());
18
+ export { AcEdPromptResult };
19
+ //# sourceMappingURL=AcEdPromptResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptResult.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptResult.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH;IAeE;;;;;OAKG;IACH,0BAAY,MAAwB,EAAE,YAAqB;QACzD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;IACH,uBAAC;AAAD,CAAC,AAzBD,IAyBC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Enumeration that represents the status of a prompt operation, modeled
3
+ * after `Autodesk.AutoCAD.EditorInput.PromptStatus`.
4
+ * These values correspond to return codes from AutoCAD prompt routines.
5
+ */
6
+ export declare enum AcEdPromptStatus {
7
+ /** User canceled the request (e.g., pressed Ctrl-C) */
8
+ Cancel = -5002,
9
+ /** Generic non-specific error */
10
+ Error = -5001,
11
+ /** The user entered a keyword (e.g. from a keyword list) */
12
+ Keyword = -5005,
13
+ /** Modeless prompt status */
14
+ Modeless = 5027,
15
+ /** No result (e.g., no input) */
16
+ None = 5000,
17
+ /** OK / successful prompt (user accepted) */
18
+ OK = 5100,
19
+ /** Other – a status outside of the default list */
20
+ Other = 5028
21
+ }
22
+ //# sourceMappingURL=AcEdPromptStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptStatus.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptStatus.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,gBAAgB;IAC1B,uDAAuD;IACvD,MAAM,QAAQ;IACd,iCAAiC;IACjC,KAAK,QAAQ;IACb,4DAA4D;IAC5D,OAAO,QAAQ;IACf,6BAA6B;IAC7B,QAAQ,OAAS;IACjB,iCAAiC;IACjC,IAAI,OAAS;IACb,6CAA6C;IAC7C,EAAE,OAAS;IACX,mDAAmD;IACnD,KAAK,OAAS;CACf"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Enumeration that represents the status of a prompt operation, modeled
3
+ * after `Autodesk.AutoCAD.EditorInput.PromptStatus`.
4
+ * These values correspond to return codes from AutoCAD prompt routines.
5
+ */
6
+ export var AcEdPromptStatus;
7
+ (function (AcEdPromptStatus) {
8
+ /** User canceled the request (e.g., pressed Ctrl-C) */
9
+ AcEdPromptStatus[AcEdPromptStatus["Cancel"] = -5002] = "Cancel";
10
+ /** Generic non-specific error */
11
+ AcEdPromptStatus[AcEdPromptStatus["Error"] = -5001] = "Error";
12
+ /** The user entered a keyword (e.g. from a keyword list) */
13
+ AcEdPromptStatus[AcEdPromptStatus["Keyword"] = -5005] = "Keyword";
14
+ /** Modeless prompt status */
15
+ AcEdPromptStatus[AcEdPromptStatus["Modeless"] = 5027] = "Modeless";
16
+ /** No result (e.g., no input) */
17
+ AcEdPromptStatus[AcEdPromptStatus["None"] = 5000] = "None";
18
+ /** OK / successful prompt (user accepted) */
19
+ AcEdPromptStatus[AcEdPromptStatus["OK"] = 5100] = "OK";
20
+ /** Other – a status outside of the default list */
21
+ AcEdPromptStatus[AcEdPromptStatus["Other"] = 5028] = "Other";
22
+ })(AcEdPromptStatus || (AcEdPromptStatus = {}));
23
+ //# sourceMappingURL=AcEdPromptStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptStatus.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptStatus.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IAC1B,uDAAuD;IACvD,+DAAc,CAAA;IACd,iCAAiC;IACjC,6DAAa,CAAA;IACb,4DAA4D;IAC5D,iEAAe,CAAA;IACf,6BAA6B;IAC7B,kEAAiB,CAAA;IACjB,iCAAiC;IACjC,0DAAa,CAAA;IACb,6CAA6C;IAC7C,sDAAW,CAAA;IACX,mDAAmD;IACnD,4DAAc,CAAA;AAChB,CAAC,EAfW,gBAAgB,KAAhB,gBAAgB,QAe3B"}
@@ -0,0 +1,54 @@
1
+ import { AcEdPromptOptions } from './AcEdPromptOptions';
2
+ /**
3
+ * Options for prompting the user to enter a string, similar to
4
+ * AutoCAD .NET `PromptStringOptions`.
5
+ *
6
+ * Allows configuration of whether spaces are permitted, default values,
7
+ * and whether the default should be used when the user presses ENTER.
8
+ */
9
+ export declare class AcEdPromptStringOptions extends AcEdPromptOptions<string> {
10
+ private _allowSpaces;
11
+ private _allowEmpty;
12
+ private _maxLength?;
13
+ private _defaultValue;
14
+ private _useDefaultValue;
15
+ /**
16
+ * Constructs a new `AcEdPromptStringOptions` with a given prompt message.
17
+ * @param message - The message shown to the user when prompting for a string.
18
+ */
19
+ constructor(message: string);
20
+ /**
21
+ * Gets or sets whether spaces are allowed in the input string.
22
+ * If `false`, pressing the spacebar may terminate the input (depending on implementation).
23
+ * Corresponds to `PromptStringOptions.AllowSpaces` in AutoCAD .NET.
24
+ */
25
+ get allowSpaces(): boolean;
26
+ set allowSpaces(flag: boolean);
27
+ /**
28
+ * When true, an empty string is considered valid input.
29
+ * Default: `false` — empty string is not allowed.
30
+ */
31
+ get allowEmpty(): boolean;
32
+ set allowEmpty(flag: boolean);
33
+ /**
34
+ * Maximum allowed number of characters in the input string.
35
+ * If `undefined`, there is no length restriction.
36
+ */
37
+ get maxLength(): number | undefined;
38
+ set maxLength(value: number | undefined);
39
+ /**
40
+ * Gets or sets the default string value.
41
+ * This value may be used if the user presses ENTER, depending on `useDefaultValue`.
42
+ * Corresponds to `PromptStringOptions.DefaultValue` in AutoCAD .NET.
43
+ */
44
+ get defaultValue(): string;
45
+ set defaultValue(val: string);
46
+ /**
47
+ * Gets or sets whether the default value should be used when the user presses ENTER
48
+ * without entering any other input.
49
+ * Corresponds to `PromptStringOptions.UseDefaultValue` in AutoCAD .NET.
50
+ */
51
+ get useDefaultValue(): boolean;
52
+ set useDefaultValue(flag: boolean);
53
+ }
54
+ //# sourceMappingURL=AcEdPromptStringOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptStringOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptStringOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;;GAMG;AACH,qBAAa,uBAAwB,SAAQ,iBAAiB,CAAC,MAAM,CAAC;IACpE,OAAO,CAAC,YAAY,CAAgB;IACpC,OAAO,CAAC,WAAW,CAAiB;IACpC,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,aAAa,CAAa;IAClC,OAAO,CAAC,gBAAgB,CAAiB;IAEzC;;;OAGG;gBACS,OAAO,EAAE,MAAM;IAI3B;;;;OAIG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;IACD,IAAI,WAAW,CAAC,IAAI,EAAE,OAAO,EAI5B;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,OAAO,CAExB;IACD,IAAI,UAAU,CAAC,IAAI,EAAE,OAAO,EAI3B;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAElC;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAItC;IAED;;;;OAIG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IACD,IAAI,YAAY,CAAC,GAAG,EAAE,MAAM,EAI3B;IAED;;;;OAIG;IACH,IAAI,eAAe,IAAI,OAAO,CAE7B;IACD,IAAI,eAAe,CAAC,IAAI,EAAE,OAAO,EAIhC;CACF"}
@@ -0,0 +1,124 @@
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 { AcEdPromptOptions } from './AcEdPromptOptions';
17
+ /**
18
+ * Options for prompting the user to enter a string, similar to
19
+ * AutoCAD .NET `PromptStringOptions`.
20
+ *
21
+ * Allows configuration of whether spaces are permitted, default values,
22
+ * and whether the default should be used when the user presses ENTER.
23
+ */
24
+ var AcEdPromptStringOptions = /** @class */ (function (_super) {
25
+ __extends(AcEdPromptStringOptions, _super);
26
+ /**
27
+ * Constructs a new `AcEdPromptStringOptions` with a given prompt message.
28
+ * @param message - The message shown to the user when prompting for a string.
29
+ */
30
+ function AcEdPromptStringOptions(message) {
31
+ var _this = _super.call(this, message) || this;
32
+ _this._allowSpaces = true;
33
+ _this._allowEmpty = false;
34
+ _this._defaultValue = '';
35
+ _this._useDefaultValue = false;
36
+ return _this;
37
+ }
38
+ Object.defineProperty(AcEdPromptStringOptions.prototype, "allowSpaces", {
39
+ /**
40
+ * Gets or sets whether spaces are allowed in the input string.
41
+ * If `false`, pressing the spacebar may terminate the input (depending on implementation).
42
+ * Corresponds to `PromptStringOptions.AllowSpaces` in AutoCAD .NET.
43
+ */
44
+ get: function () {
45
+ return this._allowSpaces;
46
+ },
47
+ set: function (flag) {
48
+ if (!this.isReadOnly) {
49
+ this._allowSpaces = flag;
50
+ }
51
+ },
52
+ enumerable: false,
53
+ configurable: true
54
+ });
55
+ Object.defineProperty(AcEdPromptStringOptions.prototype, "allowEmpty", {
56
+ /**
57
+ * When true, an empty string is considered valid input.
58
+ * Default: `false` — empty string is not allowed.
59
+ */
60
+ get: function () {
61
+ return this._allowEmpty;
62
+ },
63
+ set: function (flag) {
64
+ if (!this.isReadOnly) {
65
+ this._allowEmpty = flag;
66
+ }
67
+ },
68
+ enumerable: false,
69
+ configurable: true
70
+ });
71
+ Object.defineProperty(AcEdPromptStringOptions.prototype, "maxLength", {
72
+ /**
73
+ * Maximum allowed number of characters in the input string.
74
+ * If `undefined`, there is no length restriction.
75
+ */
76
+ get: function () {
77
+ return this._maxLength;
78
+ },
79
+ set: function (value) {
80
+ if (!this.isReadOnly) {
81
+ this._maxLength = value;
82
+ }
83
+ },
84
+ enumerable: false,
85
+ configurable: true
86
+ });
87
+ Object.defineProperty(AcEdPromptStringOptions.prototype, "defaultValue", {
88
+ /**
89
+ * Gets or sets the default string value.
90
+ * This value may be used if the user presses ENTER, depending on `useDefaultValue`.
91
+ * Corresponds to `PromptStringOptions.DefaultValue` in AutoCAD .NET.
92
+ */
93
+ get: function () {
94
+ return this._defaultValue;
95
+ },
96
+ set: function (val) {
97
+ if (!this.isReadOnly) {
98
+ this._defaultValue = val;
99
+ }
100
+ },
101
+ enumerable: false,
102
+ configurable: true
103
+ });
104
+ Object.defineProperty(AcEdPromptStringOptions.prototype, "useDefaultValue", {
105
+ /**
106
+ * Gets or sets whether the default value should be used when the user presses ENTER
107
+ * without entering any other input.
108
+ * Corresponds to `PromptStringOptions.UseDefaultValue` in AutoCAD .NET.
109
+ */
110
+ get: function () {
111
+ return this._useDefaultValue;
112
+ },
113
+ set: function (flag) {
114
+ if (!this.isReadOnly) {
115
+ this._useDefaultValue = flag;
116
+ }
117
+ },
118
+ enumerable: false,
119
+ configurable: true
120
+ });
121
+ return AcEdPromptStringOptions;
122
+ }(AcEdPromptOptions));
123
+ export { AcEdPromptStringOptions };
124
+ //# sourceMappingURL=AcEdPromptStringOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptStringOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptStringOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;;GAMG;AACH;IAA6C,2CAAyB;IAOpE;;;OAGG;IACH,iCAAY,OAAe;QACzB,YAAA,MAAK,YAAC,OAAO,CAAC,SAAA;QAXR,kBAAY,GAAY,IAAI,CAAA;QAC5B,iBAAW,GAAY,KAAK,CAAA;QAE5B,mBAAa,GAAW,EAAE,CAAA;QAC1B,sBAAgB,GAAY,KAAK,CAAA;;IAQzC,CAAC;IAOD,sBAAI,gDAAW;QALf;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,YAAY,CAAA;QAC1B,CAAC;aACD,UAAgB,IAAa;YAC3B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAA;YAC1B,CAAC;QACH,CAAC;;;OALA;IAWD,sBAAI,+CAAU;QAJd;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,WAAW,CAAA;QACzB,CAAC;aACD,UAAe,IAAa;YAC1B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAA;YACzB,CAAC;QACH,CAAC;;;OALA;IAWD,sBAAI,8CAAS;QAJb;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,UAAU,CAAA;QACxB,CAAC;aACD,UAAc,KAAyB;YACrC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;YACzB,CAAC;QACH,CAAC;;;OALA;IAYD,sBAAI,iDAAY;QALhB;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,aAAa,CAAA;QAC3B,CAAC;aACD,UAAiB,GAAW;YAC1B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,aAAa,GAAG,GAAG,CAAA;YAC1B,CAAC;QACH,CAAC;;;OALA;IAYD,sBAAI,oDAAe;QALnB;;;;WAIG;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;IAMH,8BAAC;AAAD,CAAC,AAlFD,CAA6C,iBAAiB,GAkF7D"}
@@ -0,0 +1,11 @@
1
+ export * from './AcEdKeyword';
2
+ export * from './AcEdKeywordCollection';
3
+ export * from './AcEdPromptAngleOptions';
4
+ export * from './AcEdPromptDistanceOptions';
5
+ export * from './AcEdPromptDoubleOptions';
6
+ export * from './AcEdPromptIntegerOptions';
7
+ export * from './AcEdPromptNumericalOptions';
8
+ export * from './AcEdPromptOptions';
9
+ export * from './AcEdPromptPointOptions';
10
+ export * from './AcEdPromptStringOptions';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,qBAAqB,CAAA;AACnC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA"}
@@ -0,0 +1,11 @@
1
+ export * from './AcEdKeyword';
2
+ export * from './AcEdKeywordCollection';
3
+ export * from './AcEdPromptAngleOptions';
4
+ export * from './AcEdPromptDistanceOptions';
5
+ export * from './AcEdPromptDoubleOptions';
6
+ export * from './AcEdPromptIntegerOptions';
7
+ export * from './AcEdPromptNumericalOptions';
8
+ export * from './AcEdPromptOptions';
9
+ export * from './AcEdPromptPointOptions';
10
+ export * from './AcEdPromptStringOptions';
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,qBAAqB,CAAA;AACnC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA"}