@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,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"}
@@ -0,0 +1,140 @@
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 numerical value (integer, double, etc.),
19
+ * similar to AutoCAD .NET `PromptNumericalOptions`.
20
+ *
21
+ * Supports default value, allowing zero / negative, and whether Enter (no input) is accepted.
22
+ */
23
+ var AcEdPromptNumericalOptions = /** @class */ (function (_super) {
24
+ __extends(AcEdPromptNumericalOptions, _super);
25
+ /**
26
+ * Constructs a new `AcEdPromptNumericalOptions` with a given prompt message.
27
+ * @param message - The message shown to the user when prompting for a number.
28
+ */
29
+ function AcEdPromptNumericalOptions(message) {
30
+ var _this = _super.call(this, message) || this;
31
+ _this._defaultValue = 0;
32
+ _this._useDefaultValue = false;
33
+ _this._allowNone = false;
34
+ _this._allowArbitraryInput = false;
35
+ _this._allowNegative = false;
36
+ _this._allowZero = true;
37
+ return _this;
38
+ }
39
+ Object.defineProperty(AcEdPromptNumericalOptions.prototype, "defaultValue", {
40
+ /**
41
+ * Gets or sets the default numerical value for the prompt.
42
+ * This is used when the user presses ENTER without providing any other input.
43
+ * In the .NET API, derived classes define the type-specific default value (e.g., integer, double).
44
+ */
45
+ get: function () {
46
+ return this._defaultValue;
47
+ },
48
+ set: function (val) {
49
+ if (!this.isReadOnly) {
50
+ this._defaultValue = val;
51
+ }
52
+ },
53
+ enumerable: false,
54
+ configurable: true
55
+ });
56
+ Object.defineProperty(AcEdPromptNumericalOptions.prototype, "useDefaultValue", {
57
+ /**
58
+ * Gets or sets whether the default value should be used when the user presses ENTER.
59
+ * Corresponds to `PromptNumericalOptions.UseDefaultValue` in AutoCAD .NET API.
60
+ */
61
+ get: function () {
62
+ return this._useDefaultValue;
63
+ },
64
+ set: function (flag) {
65
+ if (!this.isReadOnly) {
66
+ this._useDefaultValue = flag;
67
+ }
68
+ },
69
+ enumerable: false,
70
+ configurable: true
71
+ });
72
+ Object.defineProperty(AcEdPromptNumericalOptions.prototype, "allowNone", {
73
+ /**
74
+ * Gets or sets whether pressing ENTER alone (no input) is accepted.
75
+ * Corresponds to `PromptNumericalOptions.AllowNone` in AutoCAD .NET API.
76
+ */
77
+ get: function () {
78
+ return this._allowNone;
79
+ },
80
+ set: function (flag) {
81
+ if (!this.isReadOnly) {
82
+ this._allowNone = flag;
83
+ }
84
+ },
85
+ enumerable: false,
86
+ configurable: true
87
+ });
88
+ Object.defineProperty(AcEdPromptNumericalOptions.prototype, "allowArbitraryInput", {
89
+ /**
90
+ * Gets or sets whether arbitrary (non-numeric) input is accepted.
91
+ * If true, the prompt may allow strings or other input, depending on implementation.
92
+ * Corresponds to `PromptNumericalOptions.AllowArbitraryInput` in AutoCAD .NET API.
93
+ */
94
+ get: function () {
95
+ return this._allowArbitraryInput;
96
+ },
97
+ set: function (flag) {
98
+ if (!this.isReadOnly) {
99
+ this._allowArbitraryInput = flag;
100
+ }
101
+ },
102
+ enumerable: false,
103
+ configurable: true
104
+ });
105
+ Object.defineProperty(AcEdPromptNumericalOptions.prototype, "allowNegative", {
106
+ /**
107
+ * Gets or sets whether negative numeric values are allowed.
108
+ * Corresponds to `PromptNumericalOptions.AllowNegative` in AutoCAD .NET API.
109
+ */
110
+ get: function () {
111
+ return this._allowNegative;
112
+ },
113
+ set: function (flag) {
114
+ if (!this.isReadOnly) {
115
+ this._allowNegative = flag;
116
+ }
117
+ },
118
+ enumerable: false,
119
+ configurable: true
120
+ });
121
+ Object.defineProperty(AcEdPromptNumericalOptions.prototype, "allowZero", {
122
+ /**
123
+ * Gets or sets whether zero is an acceptable numeric value.
124
+ * Corresponds to `PromptNumericalOptions.AllowZero` in AutoCAD .NET API.
125
+ */
126
+ get: function () {
127
+ return this._allowZero;
128
+ },
129
+ set: function (flag) {
130
+ if (!this.isReadOnly) {
131
+ this._allowZero = flag;
132
+ }
133
+ },
134
+ enumerable: false,
135
+ configurable: true
136
+ });
137
+ return AcEdPromptNumericalOptions;
138
+ }(AcEdPromptOptions));
139
+ export { AcEdPromptNumericalOptions };
140
+ //# sourceMappingURL=AcEdPromptNumericalOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptNumericalOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptNumericalOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH;IAAgD,8CAAyB;IAQvE;;;OAGG;IACH,oCAAY,OAAe;QACzB,YAAA,MAAK,YAAC,OAAO,CAAC,SAAA;QAZR,mBAAa,GAAW,CAAC,CAAA;QACzB,sBAAgB,GAAY,KAAK,CAAA;QACjC,gBAAU,GAAY,KAAK,CAAA;QAC3B,0BAAoB,GAAY,KAAK,CAAA;QACrC,oBAAc,GAAY,KAAK,CAAA;QAC/B,gBAAU,GAAY,IAAI,CAAA;;IAQlC,CAAC;IAOD,sBAAI,oDAAY;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;IAWD,sBAAI,uDAAe;QAJnB;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,gBAAgB,CAAA;QAC9B,CAAC;aACD,UAAoB,IAAa;YAC/B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAA;YAC9B,CAAC;QACH,CAAC;;;OALA;IAWD,sBAAI,iDAAS;QAJb;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,UAAU,CAAA;QACxB,CAAC;aACD,UAAc,IAAa;YACzB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;YACxB,CAAC;QACH,CAAC;;;OALA;IAYD,sBAAI,2DAAmB;QALvB;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,oBAAoB,CAAA;QAClC,CAAC;aACD,UAAwB,IAAa;YACnC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAA;YAClC,CAAC;QACH,CAAC;;;OALA;IAWD,sBAAI,qDAAa;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,iDAAS;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,iCAAC;AAAD,CAAC,AA/FD,CAAgD,iBAAiB,GA+FhE"}
@@ -0,0 +1,19 @@
1
+ import { AcEdPromptResult } from './AcEdPromptResult';
2
+ import { AcEdPromptStatus } from './AcEdPromptStatus';
3
+ /**
4
+ * Result of a prompt that requests a **double** or **integer** numeric value.
5
+ */
6
+ export declare class AcEdPromptNumericalResult extends AcEdPromptResult {
7
+ /**
8
+ * The numeric value returned by the prompt.
9
+ */
10
+ readonly value?: number;
11
+ /**
12
+ * Constructs a new result for a double-value or integer-value prompt.
13
+ *
14
+ * @param status The status of the prompt (OK, Cancel, Error, etc.)
15
+ * @param value The numeric value returned (only meaningful when OK)
16
+ */
17
+ constructor(status: AcEdPromptStatus, value?: number);
18
+ }
19
+ //# sourceMappingURL=AcEdPromptNumericalResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptNumericalResult.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptNumericalResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;;OAKG;gBACS,MAAM,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAM;CAIrD"}
@@ -0,0 +1,36 @@
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 **double** or **integer** numeric value.
19
+ */
20
+ var AcEdPromptNumericalResult = /** @class */ (function (_super) {
21
+ __extends(AcEdPromptNumericalResult, _super);
22
+ /**
23
+ * Constructs a new result for a double-value or integer-value prompt.
24
+ *
25
+ * @param status The status of the prompt (OK, Cancel, Error, etc.)
26
+ * @param value The numeric value returned (only meaningful when OK)
27
+ */
28
+ function AcEdPromptNumericalResult(status, value) {
29
+ var _this = _super.call(this, status, undefined) || this;
30
+ _this.value = value;
31
+ return _this;
32
+ }
33
+ return AcEdPromptNumericalResult;
34
+ }(AcEdPromptResult));
35
+ export { AcEdPromptNumericalResult };
36
+ //# sourceMappingURL=AcEdPromptNumericalResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptNumericalResult.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptNumericalResult.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGrD;;GAEG;AACH;IAA+C,6CAAgB;IAM7D;;;;;OAKG;IACH,mCAAY,MAAwB,EAAE,KAAc;QAClD,YAAA,MAAK,YAAC,MAAM,EAAE,SAAS,CAAC,SAAA;QACxB,KAAI,CAAC,KAAK,GAAG,KAAK,CAAA;;IACpB,CAAC;IACH,gCAAC;AAAD,CAAC,AAhBD,CAA+C,gBAAgB,GAgB9D"}
@@ -0,0 +1,61 @@
1
+ import { AcEdPreviewJig } from '../AcEdPreviewJig';
2
+ import { AcEdKeywordCollection } from './AcEdKeywordCollection';
3
+ /**
4
+ * Represents the base class for prompt options in the Editor, similar to `Autodesk.AutoCAD.EditorInput.PromptOptions`.
5
+ * Provides configuration for the prompt message, keyword collection, and how keywords are appended/displayed.
6
+ */
7
+ export declare class AcEdPromptOptions<T> {
8
+ private _jig?;
9
+ private _message;
10
+ private _appendKeywordsToMessage;
11
+ private _isReadOnly;
12
+ private _keywords;
13
+ /**
14
+ * Constructs a new `AcEdPromptOptions` with a given prompt message.
15
+ * @param message - The message to show to the user in the prompt.
16
+ */
17
+ constructor(message: string);
18
+ /**
19
+ * Gets or sets the preview jig in the prompt.
20
+ */
21
+ get jig(): AcEdPreviewJig<T> | undefined;
22
+ set jig(jig: AcEdPreviewJig<T> | undefined);
23
+ /**
24
+ * Gets or sets the message displayed in the prompt.
25
+ * Corresponds to `PromptOptions.Message` in AutoCAD .NET API.
26
+ */
27
+ get message(): string;
28
+ set message(msg: string);
29
+ /**
30
+ * Gets or sets whether keywords should be appended automatically to the message when rendering.
31
+ * In AutoCAD .NET, this is `PromptOptions.AppendKeywordsToMessage`.
32
+ */
33
+ get appendKeywordsToMessage(): boolean;
34
+ set appendKeywordsToMessage(value: boolean);
35
+ /**
36
+ * Gets whether this `AcEdPromptOptions` is read-only.
37
+ * When read-only, properties such as `message` and `appendKeywordsToMessage` cannot be changed.
38
+ * Corresponds to `PromptOptions.IsReadOnly`.
39
+ */
40
+ get isReadOnly(): boolean;
41
+ /**
42
+ * Gets the collection of keywords for this prompt.
43
+ * Mirrors `PromptOptions.Keywords` in AutoCAD .NET API.
44
+ */
45
+ get keywords(): AcEdKeywordCollection;
46
+ /**
47
+ * Sets both the prompt message and the display keywords from a single combined string.
48
+ * This corresponds to `PromptOptions.SetMessageAndKeywords(string messageAndKeywords, string globalKeywords)` in the .NET API.
49
+ *
50
+ * The `messageAndKeywords` string is typically of the form `"Message text [Keyword1/Keyword2/...]"`.
51
+ * The `globalKeywords` parameter is a space-separated list of global keyword names.
52
+ *
53
+ * After calling this, the `message` is updated to the part before the `[ ... ]`, and the `keywords` collection
54
+ * is updated to contain the specified global keywords.
55
+ *
56
+ * @param messageAndKeywords - The combined message and keywords for the prompt.
57
+ * @param globalKeywords - A space-separated string listing the global names of the keywords.
58
+ */
59
+ setMessageAndKeywords(messageAndKeywords: string, globalKeywords: string): this;
60
+ }
61
+ //# sourceMappingURL=AcEdPromptOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE/D;;;GAGG;AACH,qBAAa,iBAAiB,CAAC,CAAC;IAC9B,OAAO,CAAC,IAAI,CAAC,CAAmB;IAChC,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,wBAAwB,CAAS;IACzC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,SAAS,CAAuB;IAExC;;;OAGG;gBACS,OAAO,EAAE,MAAM;IAO3B;;OAEG;IACH,IAAI,GAAG,IAIM,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAFzC;IAED,IAAI,GAAG,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAIzC;IAED;;;OAGG;IACH,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,OAAO,CAAC,GAAG,EAAE,MAAM,EAItB;IAED;;;OAGG;IACH,IAAI,uBAAuB,IAAI,OAAO,CAErC;IAED,IAAI,uBAAuB,CAAC,KAAK,EAAE,OAAO,EAIzC;IAED;;;;OAIG;IACH,IAAI,UAAU,IAAI,OAAO,CAExB;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,qBAAqB,CAEpC;IAED;;;;;;;;;;;;OAYG;IACI,qBAAqB,CAC1B,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,GACrB,IAAI;CAqCR"}
@@ -0,0 +1,179 @@
1
+ var __read = (this && this.__read) || function (o, n) {
2
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
3
+ if (!m) return o;
4
+ var i = m.call(o), r, ar = [], e;
5
+ try {
6
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
7
+ }
8
+ catch (error) { e = { error: error }; }
9
+ finally {
10
+ try {
11
+ if (r && !r.done && (m = i["return"])) m.call(i);
12
+ }
13
+ finally { if (e) throw e.error; }
14
+ }
15
+ return ar;
16
+ };
17
+ var __values = (this && this.__values) || function(o) {
18
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
19
+ if (m) return m.call(o);
20
+ if (o && typeof o.length === "number") return {
21
+ next: function () {
22
+ if (o && i >= o.length) o = void 0;
23
+ return { value: o && o[i++], done: !o };
24
+ }
25
+ };
26
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
27
+ };
28
+ import { AcEdKeywordCollection } from './AcEdKeywordCollection';
29
+ /**
30
+ * Represents the base class for prompt options in the Editor, similar to `Autodesk.AutoCAD.EditorInput.PromptOptions`.
31
+ * Provides configuration for the prompt message, keyword collection, and how keywords are appended/displayed.
32
+ */
33
+ var AcEdPromptOptions = /** @class */ (function () {
34
+ /**
35
+ * Constructs a new `AcEdPromptOptions` with a given prompt message.
36
+ * @param message - The message to show to the user in the prompt.
37
+ */
38
+ function AcEdPromptOptions(message) {
39
+ this._message = message;
40
+ this._appendKeywordsToMessage = true;
41
+ this._isReadOnly = false;
42
+ this._keywords = new AcEdKeywordCollection();
43
+ }
44
+ Object.defineProperty(AcEdPromptOptions.prototype, "jig", {
45
+ /**
46
+ * Gets or sets the preview jig in the prompt.
47
+ */
48
+ get: function () {
49
+ return this._jig;
50
+ },
51
+ set: function (jig) {
52
+ if (!this._isReadOnly) {
53
+ this._jig = jig;
54
+ }
55
+ },
56
+ enumerable: false,
57
+ configurable: true
58
+ });
59
+ Object.defineProperty(AcEdPromptOptions.prototype, "message", {
60
+ /**
61
+ * Gets or sets the message displayed in the prompt.
62
+ * Corresponds to `PromptOptions.Message` in AutoCAD .NET API.
63
+ */
64
+ get: function () {
65
+ return this._message;
66
+ },
67
+ set: function (msg) {
68
+ if (!this._isReadOnly) {
69
+ this._message = msg;
70
+ }
71
+ },
72
+ enumerable: false,
73
+ configurable: true
74
+ });
75
+ Object.defineProperty(AcEdPromptOptions.prototype, "appendKeywordsToMessage", {
76
+ /**
77
+ * Gets or sets whether keywords should be appended automatically to the message when rendering.
78
+ * In AutoCAD .NET, this is `PromptOptions.AppendKeywordsToMessage`.
79
+ */
80
+ get: function () {
81
+ return this._appendKeywordsToMessage;
82
+ },
83
+ set: function (value) {
84
+ if (!this._isReadOnly) {
85
+ this._appendKeywordsToMessage = value;
86
+ }
87
+ },
88
+ enumerable: false,
89
+ configurable: true
90
+ });
91
+ Object.defineProperty(AcEdPromptOptions.prototype, "isReadOnly", {
92
+ /**
93
+ * Gets whether this `AcEdPromptOptions` is read-only.
94
+ * When read-only, properties such as `message` and `appendKeywordsToMessage` cannot be changed.
95
+ * Corresponds to `PromptOptions.IsReadOnly`.
96
+ */
97
+ get: function () {
98
+ return this._isReadOnly;
99
+ },
100
+ enumerable: false,
101
+ configurable: true
102
+ });
103
+ Object.defineProperty(AcEdPromptOptions.prototype, "keywords", {
104
+ /**
105
+ * Gets the collection of keywords for this prompt.
106
+ * Mirrors `PromptOptions.Keywords` in AutoCAD .NET API.
107
+ */
108
+ get: function () {
109
+ return this._keywords;
110
+ },
111
+ enumerable: false,
112
+ configurable: true
113
+ });
114
+ /**
115
+ * Sets both the prompt message and the display keywords from a single combined string.
116
+ * This corresponds to `PromptOptions.SetMessageAndKeywords(string messageAndKeywords, string globalKeywords)` in the .NET API.
117
+ *
118
+ * The `messageAndKeywords` string is typically of the form `"Message text [Keyword1/Keyword2/...]"`.
119
+ * The `globalKeywords` parameter is a space-separated list of global keyword names.
120
+ *
121
+ * After calling this, the `message` is updated to the part before the `[ ... ]`, and the `keywords` collection
122
+ * is updated to contain the specified global keywords.
123
+ *
124
+ * @param messageAndKeywords - The combined message and keywords for the prompt.
125
+ * @param globalKeywords - A space-separated string listing the global names of the keywords.
126
+ */
127
+ AcEdPromptOptions.prototype.setMessageAndKeywords = function (messageAndKeywords, globalKeywords) {
128
+ var e_1, _a;
129
+ if (this._isReadOnly) {
130
+ return this;
131
+ }
132
+ // Parse message portion and keyword portion
133
+ // e.g. "Enter option [Yes/No/Default]" → message = "Enter option", display keywords = ["Yes","No","Default"]
134
+ var msgMatch = messageAndKeywords.match(/^(.*?)\s*(?:\[(.*)\])?$/);
135
+ if (msgMatch) {
136
+ var _b = __read(msgMatch, 3), msgPart = _b[1], kwPart = _b[2];
137
+ this._message = msgPart.trim();
138
+ if (kwPart !== undefined) {
139
+ // kwPart might be "Yes/No/Default"
140
+ var names = kwPart
141
+ .split('/')
142
+ .map(function (s) { return s.trim(); })
143
+ .filter(function (s) { return s.length > 0; });
144
+ // Clear existing keywords and add new ones
145
+ this._keywords.clear();
146
+ var _loop_1 = function (name_1) {
147
+ // Use globalKeywords to decide which global name to use
148
+ // globalKeywords: e.g. "YES NO DEFAULT"
149
+ // We'll split global keywords by whitespace
150
+ var globalParts = globalKeywords.split(/\s+/);
151
+ // Try to find a matching global name; if not, fallback to name
152
+ var matchedGlobal = globalParts.find(function (g) { return g.toLowerCase() === name_1.toLowerCase(); });
153
+ if (!matchedGlobal) {
154
+ matchedGlobal = name_1;
155
+ }
156
+ this_1._keywords.add(name_1, matchedGlobal);
157
+ };
158
+ var this_1 = this;
159
+ try {
160
+ for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) {
161
+ var name_1 = names_1_1.value;
162
+ _loop_1(name_1);
163
+ }
164
+ }
165
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
166
+ finally {
167
+ try {
168
+ if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1);
169
+ }
170
+ finally { if (e_1) throw e_1.error; }
171
+ }
172
+ }
173
+ }
174
+ return this;
175
+ };
176
+ return AcEdPromptOptions;
177
+ }());
178
+ export { AcEdPromptOptions };
179
+ //# sourceMappingURL=AcEdPromptOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptOptions.ts"],"names":[],"mappings":"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"}