@mlightcad/cad-simple-viewer 1.5.5 → 1.5.7

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 (462) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +69 -1
  3. package/dist/{index.js → cad-simple-viewer.js} +34247 -29923
  4. package/dist/cad-simple-viewer.umd.cjs +913 -0
  5. package/dist/dxf-parser-worker.js +2091 -0
  6. package/dist/libredwg-parser-worker.js +5388 -5122
  7. package/dist/mtext-renderer-worker.js +3061 -2858
  8. package/lib/app/AcApContext.d.ts.map +1 -1
  9. package/lib/app/AcApContext.js +15 -2
  10. package/lib/app/AcApContext.js.map +1 -1
  11. package/lib/app/AcApDocManager.d.ts +63 -0
  12. package/lib/app/AcApDocManager.d.ts.map +1 -1
  13. package/lib/app/AcApDocManager.js +195 -23
  14. package/lib/app/AcApDocManager.js.map +1 -1
  15. package/lib/app/AcApDocument.d.ts +81 -0
  16. package/lib/app/AcApDocument.d.ts.map +1 -1
  17. package/lib/app/AcApDocument.js +154 -0
  18. package/lib/app/AcApDocument.js.map +1 -1
  19. package/lib/app/AcApLayerSessionState.d.ts +15 -0
  20. package/lib/app/AcApLayerSessionState.d.ts.map +1 -0
  21. package/lib/app/AcApLayerSessionState.js +2 -0
  22. package/lib/app/AcApLayerSessionState.js.map +1 -0
  23. package/lib/app/AcApOpenFileDialog.d.ts +35 -0
  24. package/lib/app/AcApOpenFileDialog.d.ts.map +1 -0
  25. package/lib/app/AcApOpenFileDialog.js +192 -0
  26. package/lib/app/AcApOpenFileDialog.js.map +1 -0
  27. package/lib/app/AcApWebworkerReadiness.d.ts +18 -0
  28. package/lib/app/AcApWebworkerReadiness.d.ts.map +1 -0
  29. package/lib/app/AcApWebworkerReadiness.js +126 -0
  30. package/lib/app/AcApWebworkerReadiness.js.map +1 -0
  31. package/lib/app/AcDbOpenDatabaseOptions.d.ts +29 -0
  32. package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +1 -1
  33. package/lib/app/AcDbOpenDatabaseOptions.js +10 -1
  34. package/lib/app/AcDbOpenDatabaseOptions.js.map +1 -1
  35. package/lib/app/index.d.ts +4 -0
  36. package/lib/app/index.d.ts.map +1 -1
  37. package/lib/app/index.js +3 -0
  38. package/lib/app/index.js.map +1 -1
  39. package/lib/command/AcApCacheFontCmd.d.ts +25 -0
  40. package/lib/command/AcApCacheFontCmd.d.ts.map +1 -0
  41. package/lib/command/AcApCacheFontCmd.js +142 -0
  42. package/lib/command/AcApCacheFontCmd.js.map +1 -0
  43. package/lib/command/AcApOpenCmd.d.ts +3 -22
  44. package/lib/command/AcApOpenCmd.d.ts.map +1 -1
  45. package/lib/command/AcApOpenCmd.js +3 -22
  46. package/lib/command/AcApOpenCmd.js.map +1 -1
  47. package/lib/command/AcApRedoCmd.d.ts +10 -0
  48. package/lib/command/AcApRedoCmd.d.ts.map +1 -0
  49. package/lib/command/AcApRedoCmd.js +85 -0
  50. package/lib/command/AcApRedoCmd.js.map +1 -0
  51. package/lib/command/AcApSysVarCmd.d.ts.map +1 -1
  52. package/lib/command/AcApSysVarCmd.js +5 -11
  53. package/lib/command/AcApSysVarCmd.js.map +1 -1
  54. package/lib/command/AcApUndoCmd.d.ts +10 -0
  55. package/lib/command/AcApUndoCmd.d.ts.map +1 -0
  56. package/lib/command/AcApUndoCmd.js +85 -0
  57. package/lib/command/AcApUndoCmd.js.map +1 -0
  58. package/lib/command/convert/AcApPngConvertor.d.ts +1 -1
  59. package/lib/command/convert/AcApPngConvertor.d.ts.map +1 -1
  60. package/lib/command/convert/AcApPngConvertor.js +5 -2
  61. package/lib/command/convert/AcApPngConvertor.js.map +1 -1
  62. package/lib/command/draw/AcApArcCmd.d.ts.map +1 -1
  63. package/lib/command/draw/AcApArcCmd.js +2 -5
  64. package/lib/command/draw/AcApArcCmd.js.map +1 -1
  65. package/lib/command/draw/AcApEllipseCmd.d.ts.map +1 -1
  66. package/lib/command/draw/AcApEllipseCmd.js +14 -9
  67. package/lib/command/draw/AcApEllipseCmd.js.map +1 -1
  68. package/lib/command/draw/AcApHatchCmd.d.ts +1 -1
  69. package/lib/command/draw/AcApLineCmd.d.ts.map +1 -1
  70. package/lib/command/draw/AcApLineCmd.js +8 -2
  71. package/lib/command/draw/AcApLineCmd.js.map +1 -1
  72. package/lib/command/draw/AcApMLineCmd.d.ts.map +1 -1
  73. package/lib/command/draw/AcApMLineCmd.js +4 -2
  74. package/lib/command/draw/AcApMLineCmd.js.map +1 -1
  75. package/lib/command/draw/AcApPolygonCmd.d.ts.map +1 -1
  76. package/lib/command/draw/AcApPolygonCmd.js +2 -5
  77. package/lib/command/draw/AcApPolygonCmd.js.map +1 -1
  78. package/lib/command/draw/AcApPolylineCmd.d.ts.map +1 -1
  79. package/lib/command/draw/AcApPolylineCmd.js +3 -0
  80. package/lib/command/draw/AcApPolylineCmd.js.map +1 -1
  81. package/lib/command/draw/AcApRectCmd.d.ts +6 -0
  82. package/lib/command/draw/AcApRectCmd.d.ts.map +1 -1
  83. package/lib/command/draw/AcApRectCmd.js +12 -10
  84. package/lib/command/draw/AcApRectCmd.js.map +1 -1
  85. package/lib/command/draw/AcApSplineCmd.d.ts.map +1 -1
  86. package/lib/command/draw/AcApSplineCmd.js +2 -0
  87. package/lib/command/draw/AcApSplineCmd.js.map +1 -1
  88. package/lib/command/draw/AcApXLineCmd.d.ts.map +1 -1
  89. package/lib/command/draw/AcApXLineCmd.js +1 -1
  90. package/lib/command/draw/AcApXLineCmd.js.map +1 -1
  91. package/lib/command/index.d.ts +3 -0
  92. package/lib/command/index.d.ts.map +1 -1
  93. package/lib/command/index.js +3 -0
  94. package/lib/command/index.js.map +1 -1
  95. package/lib/command/layer/AcApLayerCmd.d.ts +3 -194
  96. package/lib/command/layer/AcApLayerCmd.d.ts.map +1 -1
  97. package/lib/command/layer/AcApLayerCmd.js +64 -398
  98. package/lib/command/layer/AcApLayerCmd.js.map +1 -1
  99. package/lib/command/layer/AcApLayerCurCmd.d.ts +2 -34
  100. package/lib/command/layer/AcApLayerCurCmd.d.ts.map +1 -1
  101. package/lib/command/layer/AcApLayerCurCmd.js +18 -77
  102. package/lib/command/layer/AcApLayerCurCmd.js.map +1 -1
  103. package/lib/command/layer/AcApLayerDelCmd.d.ts +2 -32
  104. package/lib/command/layer/AcApLayerDelCmd.d.ts.map +1 -1
  105. package/lib/command/layer/AcApLayerDelCmd.js +26 -169
  106. package/lib/command/layer/AcApLayerDelCmd.js.map +1 -1
  107. package/lib/command/layer/AcApLayerFreezeCmd.d.ts +2 -16
  108. package/lib/command/layer/AcApLayerFreezeCmd.d.ts.map +1 -1
  109. package/lib/command/layer/AcApLayerFreezeCmd.js +32 -54
  110. package/lib/command/layer/AcApLayerFreezeCmd.js.map +1 -1
  111. package/lib/command/layer/AcApLayerIsoCmd.d.ts +2 -31
  112. package/lib/command/layer/AcApLayerIsoCmd.d.ts.map +1 -1
  113. package/lib/command/layer/AcApLayerIsoCmd.js +19 -198
  114. package/lib/command/layer/AcApLayerIsoCmd.js.map +1 -1
  115. package/lib/command/layer/AcApLayerLockCmd.d.ts +2 -40
  116. package/lib/command/layer/AcApLayerLockCmd.d.ts.map +1 -1
  117. package/lib/command/layer/AcApLayerLockCmd.js +18 -65
  118. package/lib/command/layer/AcApLayerLockCmd.js.map +1 -1
  119. package/lib/command/layer/AcApLayerMutationCmd.d.ts +13 -0
  120. package/lib/command/layer/AcApLayerMutationCmd.d.ts.map +1 -0
  121. package/lib/command/layer/AcApLayerMutationCmd.js +42 -0
  122. package/lib/command/layer/AcApLayerMutationCmd.js.map +1 -0
  123. package/lib/command/layer/AcApLayerOffCmd.d.ts +2 -9
  124. package/lib/command/layer/AcApLayerOffCmd.d.ts.map +1 -1
  125. package/lib/command/layer/AcApLayerOffCmd.js +32 -43
  126. package/lib/command/layer/AcApLayerOffCmd.js.map +1 -1
  127. package/lib/command/layer/AcApLayerOnCmd.d.ts +2 -22
  128. package/lib/command/layer/AcApLayerOnCmd.d.ts.map +1 -1
  129. package/lib/command/layer/AcApLayerOnCmd.js +8 -62
  130. package/lib/command/layer/AcApLayerOnCmd.js.map +1 -1
  131. package/lib/command/layer/AcApLayerPCmd.d.ts +2 -75
  132. package/lib/command/layer/AcApLayerPCmd.d.ts.map +1 -1
  133. package/lib/command/layer/AcApLayerPCmd.js +6 -165
  134. package/lib/command/layer/AcApLayerPCmd.js.map +1 -1
  135. package/lib/command/layer/AcApLayerThawCmd.d.ts +2 -29
  136. package/lib/command/layer/AcApLayerThawCmd.d.ts.map +1 -1
  137. package/lib/command/layer/AcApLayerThawCmd.js +8 -74
  138. package/lib/command/layer/AcApLayerThawCmd.js.map +1 -1
  139. package/lib/command/layer/AcApLayerUnisoCmd.d.ts +2 -44
  140. package/lib/command/layer/AcApLayerUnisoCmd.d.ts.map +1 -1
  141. package/lib/command/layer/AcApLayerUnisoCmd.js +10 -122
  142. package/lib/command/layer/AcApLayerUnisoCmd.js.map +1 -1
  143. package/lib/command/layer/AcApLayerUnlockCmd.d.ts +2 -40
  144. package/lib/command/layer/AcApLayerUnlockCmd.d.ts.map +1 -1
  145. package/lib/command/layer/AcApLayerUnlockCmd.js +18 -65
  146. package/lib/command/layer/AcApLayerUnlockCmd.js.map +1 -1
  147. package/lib/command/modify/AcApCopyCmd.d.ts +12 -0
  148. package/lib/command/modify/AcApCopyCmd.d.ts.map +1 -1
  149. package/lib/command/modify/AcApCopyCmd.js +67 -177
  150. package/lib/command/modify/AcApCopyCmd.js.map +1 -1
  151. package/lib/command/modify/AcApCopyPreviewJig.d.ts +21 -0
  152. package/lib/command/modify/AcApCopyPreviewJig.d.ts.map +1 -0
  153. package/lib/command/modify/AcApCopyPreviewJig.js +61 -0
  154. package/lib/command/modify/AcApCopyPreviewJig.js.map +1 -0
  155. package/lib/command/modify/AcApEraseCmd.d.ts +0 -6
  156. package/lib/command/modify/AcApEraseCmd.d.ts.map +1 -1
  157. package/lib/command/modify/AcApEraseCmd.js +11 -38
  158. package/lib/command/modify/AcApEraseCmd.js.map +1 -1
  159. package/lib/command/modify/AcApHideObjectsCmd.d.ts +0 -7
  160. package/lib/command/modify/AcApHideObjectsCmd.d.ts.map +1 -1
  161. package/lib/command/modify/AcApHideObjectsCmd.js +1 -8
  162. package/lib/command/modify/AcApHideObjectsCmd.js.map +1 -1
  163. package/lib/command/modify/AcApMoveCmd.d.ts +0 -6
  164. package/lib/command/modify/AcApMoveCmd.d.ts.map +1 -1
  165. package/lib/command/modify/AcApMoveCmd.js +26 -105
  166. package/lib/command/modify/AcApMoveCmd.js.map +1 -1
  167. package/lib/command/modify/AcApMovePreviewJig.d.ts +18 -0
  168. package/lib/command/modify/AcApMovePreviewJig.d.ts.map +1 -0
  169. package/lib/command/modify/AcApMovePreviewJig.js +45 -0
  170. package/lib/command/modify/AcApMovePreviewJig.js.map +1 -0
  171. package/lib/command/modify/AcApOffsetCmd.d.ts.map +1 -1
  172. package/lib/command/modify/AcApOffsetCmd.js +14 -37
  173. package/lib/command/modify/AcApOffsetCmd.js.map +1 -1
  174. package/lib/command/modify/AcApRotateCmd.d.ts +2 -2
  175. package/lib/command/modify/AcApRotateCmd.d.ts.map +1 -1
  176. package/lib/command/modify/AcApRotateCmd.js +38 -204
  177. package/lib/command/modify/AcApRotateCmd.js.map +1 -1
  178. package/lib/command/modify/AcApRotatePreviewJig.d.ts +47 -0
  179. package/lib/command/modify/AcApRotatePreviewJig.d.ts.map +1 -0
  180. package/lib/command/modify/AcApRotatePreviewJig.js +97 -0
  181. package/lib/command/modify/AcApRotatePreviewJig.js.map +1 -0
  182. package/lib/command/modify/AcApUnisolateObjectsCmd.d.ts.map +1 -1
  183. package/lib/command/modify/AcApUnisolateObjectsCmd.js +3 -3
  184. package/lib/command/modify/AcApUnisolateObjectsCmd.js.map +1 -1
  185. package/lib/editor/command/AcEdCommand.d.ts +24 -0
  186. package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
  187. package/lib/editor/command/AcEdCommand.js +71 -5
  188. package/lib/editor/command/AcEdCommand.js.map +1 -1
  189. package/lib/editor/global/AcEdUiColor.d.ts +13 -13
  190. package/lib/editor/global/AcEdUiColor.d.ts.map +1 -1
  191. package/lib/editor/global/AcEdUiColor.js +21 -20
  192. package/lib/editor/global/AcEdUiColor.js.map +1 -1
  193. package/lib/editor/global/eventBus.d.ts +16 -2
  194. package/lib/editor/global/eventBus.d.ts.map +1 -1
  195. package/lib/editor/global/eventBus.js.map +1 -1
  196. package/lib/editor/grip/AcEdGripAppearance.d.ts +18 -0
  197. package/lib/editor/grip/AcEdGripAppearance.d.ts.map +1 -0
  198. package/lib/editor/grip/AcEdGripAppearance.js +30 -0
  199. package/lib/editor/grip/AcEdGripAppearance.js.map +1 -0
  200. package/lib/editor/grip/AcEdGripEditSession.d.ts +29 -0
  201. package/lib/editor/grip/AcEdGripEditSession.d.ts.map +1 -0
  202. package/lib/editor/grip/AcEdGripEditSession.js +83 -0
  203. package/lib/editor/grip/AcEdGripEditSession.js.map +1 -0
  204. package/lib/editor/grip/AcEdGripHandle.d.ts +21 -0
  205. package/lib/editor/grip/AcEdGripHandle.d.ts.map +1 -0
  206. package/lib/editor/grip/AcEdGripHandle.js +62 -0
  207. package/lib/editor/grip/AcEdGripHandle.js.map +1 -0
  208. package/lib/editor/grip/AcEdGripManager.d.ts +171 -0
  209. package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -0
  210. package/lib/editor/grip/AcEdGripManager.js +376 -0
  211. package/lib/editor/grip/AcEdGripManager.js.map +1 -0
  212. package/lib/editor/grip/AcEdGripPolicy.d.ts +6 -0
  213. package/lib/editor/grip/AcEdGripPolicy.d.ts.map +1 -0
  214. package/lib/editor/grip/AcEdGripPolicy.js +30 -0
  215. package/lib/editor/grip/AcEdGripPolicy.js.map +1 -0
  216. package/lib/editor/grip/AcEdGripPreviewJig.d.ts +21 -0
  217. package/lib/editor/grip/AcEdGripPreviewJig.d.ts.map +1 -0
  218. package/lib/editor/grip/AcEdGripPreviewJig.js +73 -0
  219. package/lib/editor/grip/AcEdGripPreviewJig.js.map +1 -0
  220. package/lib/editor/grip/index.d.ts +5 -0
  221. package/lib/editor/grip/index.d.ts.map +1 -0
  222. package/lib/editor/grip/index.js +5 -0
  223. package/lib/editor/grip/index.js.map +1 -0
  224. package/lib/editor/index.d.ts +1 -0
  225. package/lib/editor/index.d.ts.map +1 -1
  226. package/lib/editor/index.js +1 -0
  227. package/lib/editor/index.js.map +1 -1
  228. package/lib/editor/input/AcEdBatchPreview.d.ts +96 -0
  229. package/lib/editor/input/AcEdBatchPreview.d.ts.map +1 -0
  230. package/lib/editor/input/AcEdBatchPreview.js +125 -0
  231. package/lib/editor/input/AcEdBatchPreview.js.map +1 -0
  232. package/lib/editor/input/AcEdCursorManager.d.ts.map +1 -1
  233. package/lib/editor/input/AcEdCursorManager.js +2 -2
  234. package/lib/editor/input/AcEdCursorManager.js.map +1 -1
  235. package/lib/editor/input/AcEdOsnapResolver.d.ts +34 -0
  236. package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -0
  237. package/lib/editor/input/AcEdOsnapResolver.js +117 -0
  238. package/lib/editor/input/AcEdOsnapResolver.js.map +1 -0
  239. package/lib/editor/input/AcEdPreviewJig.d.ts +1 -1
  240. package/lib/editor/input/AcEdPreviewJig.d.ts.map +1 -1
  241. package/lib/editor/input/AcEdPreviewJig.js +14 -0
  242. package/lib/editor/input/AcEdPreviewJig.js.map +1 -1
  243. package/lib/editor/input/AcEdSelectionPreviewJig.d.ts +109 -0
  244. package/lib/editor/input/AcEdSelectionPreviewJig.d.ts.map +1 -0
  245. package/lib/editor/input/AcEdSelectionPreviewJig.js +185 -0
  246. package/lib/editor/input/AcEdSelectionPreviewJig.js.map +1 -0
  247. package/lib/editor/input/handler/AcEdAngleHandler.d.ts +2 -1
  248. package/lib/editor/input/handler/AcEdAngleHandler.d.ts.map +1 -1
  249. package/lib/editor/input/handler/AcEdAngleHandler.js +6 -0
  250. package/lib/editor/input/handler/AcEdAngleHandler.js.map +1 -1
  251. package/lib/editor/input/handler/AcEdInputHandler.d.ts +20 -1
  252. package/lib/editor/input/handler/AcEdInputHandler.d.ts.map +1 -1
  253. package/lib/editor/input/handler/AcEdKeywordHandler.d.ts +2 -1
  254. package/lib/editor/input/handler/AcEdKeywordHandler.d.ts.map +1 -1
  255. package/lib/editor/input/handler/AcEdKeywordHandler.js +3 -0
  256. package/lib/editor/input/handler/AcEdKeywordHandler.js.map +1 -1
  257. package/lib/editor/input/handler/AcEdNumericalHandler.d.ts +2 -1
  258. package/lib/editor/input/handler/AcEdNumericalHandler.d.ts.map +1 -1
  259. package/lib/editor/input/handler/AcEdNumericalHandler.js +6 -0
  260. package/lib/editor/input/handler/AcEdNumericalHandler.js.map +1 -1
  261. package/lib/editor/input/handler/AcEdPointHandler.d.ts +17 -1
  262. package/lib/editor/input/handler/AcEdPointHandler.d.ts.map +1 -1
  263. package/lib/editor/input/handler/AcEdPointHandler.js +89 -0
  264. package/lib/editor/input/handler/AcEdPointHandler.js.map +1 -1
  265. package/lib/editor/input/handler/AcEdStringHandler.d.ts +2 -1
  266. package/lib/editor/input/handler/AcEdStringHandler.d.ts.map +1 -1
  267. package/lib/editor/input/handler/AcEdStringHandler.js +3 -0
  268. package/lib/editor/input/handler/AcEdStringHandler.js.map +1 -1
  269. package/lib/editor/input/index.d.ts +3 -0
  270. package/lib/editor/input/index.d.ts.map +1 -1
  271. package/lib/editor/input/index.js +3 -0
  272. package/lib/editor/input/index.js.map +1 -1
  273. package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts +7 -0
  274. package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts.map +1 -1
  275. package/lib/editor/input/prompt/AcEdPromptAngleOptions.js +17 -0
  276. package/lib/editor/input/prompt/AcEdPromptAngleOptions.js.map +1 -1
  277. package/lib/editor/input/session/AcEdInputSession.d.ts +11 -1
  278. package/lib/editor/input/session/AcEdInputSession.d.ts.map +1 -1
  279. package/lib/editor/input/session/AcEdInputSession.js.map +1 -1
  280. package/lib/editor/input/session/AcEdPromptInputSession.d.ts +51 -0
  281. package/lib/editor/input/session/AcEdPromptInputSession.d.ts.map +1 -0
  282. package/lib/editor/input/session/AcEdPromptInputSession.js +109 -0
  283. package/lib/editor/input/session/AcEdPromptInputSession.js.map +1 -0
  284. package/lib/editor/input/session/index.d.ts +1 -0
  285. package/lib/editor/input/session/index.d.ts.map +1 -1
  286. package/lib/editor/input/session/index.js +1 -0
  287. package/lib/editor/input/session/index.js.map +1 -1
  288. package/lib/editor/input/ui/AcEdCommandLine.d.ts +10 -0
  289. package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
  290. package/lib/editor/input/ui/AcEdCommandLine.js +67 -35
  291. package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
  292. package/lib/editor/input/ui/AcEdFloatingInput.d.ts +0 -11
  293. package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
  294. package/lib/editor/input/ui/AcEdFloatingInput.js +9 -119
  295. package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
  296. package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts.map +1 -1
  297. package/lib/editor/input/ui/AcEdFloatingInputBox.js +10 -2
  298. package/lib/editor/input/ui/AcEdFloatingInputBox.js.map +1 -1
  299. package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts.map +1 -1
  300. package/lib/editor/input/ui/AcEdFloatingInputBoxes.js +9 -4
  301. package/lib/editor/input/ui/AcEdFloatingInputBoxes.js.map +1 -1
  302. package/lib/editor/input/ui/AcEdInputManager.d.ts +26 -23
  303. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  304. package/lib/editor/input/ui/AcEdInputManager.js +135 -83
  305. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  306. package/lib/editor/input/ui/AcEdMTextEditor.js +2 -2
  307. package/lib/editor/input/ui/AcEdMTextEditor.js.map +1 -1
  308. package/lib/editor/view/AcEdBaseView.d.ts +44 -2
  309. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  310. package/lib/editor/view/AcEdBaseView.js +26 -12
  311. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  312. package/lib/editor/view/AcEdSpatialQueryResult.d.ts +28 -0
  313. package/lib/editor/view/AcEdSpatialQueryResult.d.ts.map +1 -1
  314. package/lib/editor/view/AcEdSpatialQueryResult.js +65 -1
  315. package/lib/editor/view/AcEdSpatialQueryResult.js.map +1 -1
  316. package/lib/i18n/AcApI18n.d.ts +42 -0
  317. package/lib/i18n/AcApI18n.d.ts.map +1 -1
  318. package/lib/i18n/AcApI18n.js +56 -4
  319. package/lib/i18n/AcApI18n.js.map +1 -1
  320. package/lib/i18n/en/command.d.ts +26 -0
  321. package/lib/i18n/en/command.d.ts.map +1 -1
  322. package/lib/i18n/en/command.js +26 -0
  323. package/lib/i18n/en/command.js.map +1 -1
  324. package/lib/i18n/en/jig.d.ts +26 -0
  325. package/lib/i18n/en/jig.d.ts.map +1 -1
  326. package/lib/i18n/en/jig.js +134 -108
  327. package/lib/i18n/en/jig.js.map +1 -1
  328. package/lib/i18n/en/main.d.ts +3 -0
  329. package/lib/i18n/en/main.d.ts.map +1 -1
  330. package/lib/i18n/en/main.js +4 -1
  331. package/lib/i18n/en/main.js.map +1 -1
  332. package/lib/i18n/zh/command.d.ts +26 -0
  333. package/lib/i18n/zh/command.d.ts.map +1 -1
  334. package/lib/i18n/zh/command.js +26 -0
  335. package/lib/i18n/zh/command.js.map +1 -1
  336. package/lib/i18n/zh/jig.d.ts +26 -0
  337. package/lib/i18n/zh/jig.d.ts.map +1 -1
  338. package/lib/i18n/zh/jig.js +134 -108
  339. package/lib/i18n/zh/jig.js.map +1 -1
  340. package/lib/i18n/zh/main.d.ts +3 -0
  341. package/lib/i18n/zh/main.d.ts.map +1 -1
  342. package/lib/i18n/zh/main.js +4 -1
  343. package/lib/i18n/zh/main.js.map +1 -1
  344. package/lib/index.d.ts +1 -0
  345. package/lib/index.d.ts.map +1 -1
  346. package/lib/index.js +1 -0
  347. package/lib/index.js.map +1 -1
  348. package/lib/plugin/AcApLazyPluginRegistration.d.ts +3 -8
  349. package/lib/plugin/AcApLazyPluginRegistration.d.ts.map +1 -1
  350. package/lib/service/AcApEntitySelection.d.ts +42 -0
  351. package/lib/service/AcApEntitySelection.d.ts.map +1 -0
  352. package/lib/service/AcApEntitySelection.js +156 -0
  353. package/lib/service/AcApEntitySelection.js.map +1 -0
  354. package/lib/service/AcApEntityService.d.ts +115 -0
  355. package/lib/service/AcApEntityService.d.ts.map +1 -0
  356. package/lib/service/AcApEntityService.js +194 -0
  357. package/lib/service/AcApEntityService.js.map +1 -0
  358. package/lib/{command/layer → service}/AcApLayerIsoState.d.ts +6 -24
  359. package/lib/service/AcApLayerIsoState.d.ts.map +1 -0
  360. package/lib/service/AcApLayerIsoState.js +28 -0
  361. package/lib/service/AcApLayerIsoState.js.map +1 -0
  362. package/lib/service/AcApLayerService.d.ts +400 -0
  363. package/lib/service/AcApLayerService.d.ts.map +1 -0
  364. package/lib/service/AcApLayerService.js +1240 -0
  365. package/lib/service/AcApLayerService.js.map +1 -0
  366. package/lib/service/AcApLayerStore.d.ts +198 -0
  367. package/lib/service/AcApLayerStore.d.ts.map +1 -0
  368. package/lib/service/AcApLayerStore.js +335 -0
  369. package/lib/service/AcApLayerStore.js.map +1 -0
  370. package/lib/service/AcApServiceEdit.d.ts +18 -0
  371. package/lib/service/AcApServiceEdit.d.ts.map +1 -0
  372. package/lib/service/AcApServiceEdit.js +34 -0
  373. package/lib/service/AcApServiceEdit.js.map +1 -0
  374. package/lib/service/index.d.ts +16 -0
  375. package/lib/service/index.d.ts.map +1 -0
  376. package/lib/service/index.js +16 -0
  377. package/lib/service/index.js.map +1 -0
  378. package/lib/service/types.d.ts +116 -0
  379. package/lib/service/types.d.ts.map +1 -0
  380. package/lib/service/types.js +5 -0
  381. package/lib/service/types.js.map +1 -0
  382. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts +22 -7
  383. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts.map +1 -1
  384. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js +58 -12
  385. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js.map +1 -1
  386. package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts +2 -2
  387. package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts.map +1 -1
  388. package/lib/spatialIndex/AcTrLinearSpatialIndex.js +9 -3
  389. package/lib/spatialIndex/AcTrLinearSpatialIndex.js.map +1 -1
  390. package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts +2 -2
  391. package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
  392. package/lib/spatialIndex/AcTrRBushSpatialIndex.js +19 -5
  393. package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
  394. package/lib/spatialIndex/AcTrSpatialIndex.d.ts +10 -1
  395. package/lib/spatialIndex/AcTrSpatialIndex.d.ts.map +1 -1
  396. package/lib/spatialIndex/AcTrSpatialIndex.js +7 -1
  397. package/lib/spatialIndex/AcTrSpatialIndex.js.map +1 -1
  398. package/lib/util/AcApDatabaseEdit.d.ts +11 -0
  399. package/lib/util/AcApDatabaseEdit.d.ts.map +1 -0
  400. package/lib/util/AcApDatabaseEdit.js +20 -0
  401. package/lib/util/AcApDatabaseEdit.js.map +1 -0
  402. package/lib/util/AcApFontUtil.d.ts +14 -2
  403. package/lib/util/AcApFontUtil.d.ts.map +1 -1
  404. package/lib/util/AcApFontUtil.js +18 -0
  405. package/lib/util/AcApFontUtil.js.map +1 -1
  406. package/lib/util/AcApGeTransform.d.ts +10 -0
  407. package/lib/util/AcApGeTransform.d.ts.map +1 -0
  408. package/lib/util/AcApGeTransform.js +15 -0
  409. package/lib/util/AcApGeTransform.js.map +1 -0
  410. package/lib/util/index.d.ts +2 -0
  411. package/lib/util/index.d.ts.map +1 -1
  412. package/lib/util/index.js +2 -0
  413. package/lib/util/index.js.map +1 -1
  414. package/lib/view/AcEdViewKeyHandler.d.ts +32 -0
  415. package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -0
  416. package/lib/view/AcEdViewKeyHandler.js +101 -0
  417. package/lib/view/AcEdViewKeyHandler.js.map +1 -0
  418. package/lib/view/AcTrEntityDisplayController.d.ts +46 -0
  419. package/lib/view/AcTrEntityDisplayController.d.ts.map +1 -0
  420. package/lib/view/AcTrEntityDisplayController.js +114 -0
  421. package/lib/view/AcTrEntityDisplayController.js.map +1 -0
  422. package/lib/view/AcTrGroupWcsBboxAssert.d.ts +43 -0
  423. package/lib/view/AcTrGroupWcsBboxAssert.d.ts.map +1 -0
  424. package/lib/view/AcTrGroupWcsBboxAssert.js +84 -0
  425. package/lib/view/AcTrGroupWcsBboxAssert.js.map +1 -0
  426. package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts +49 -0
  427. package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts.map +1 -0
  428. package/lib/view/AcTrInheritedLayerMaterialMapper.js +138 -0
  429. package/lib/view/AcTrInheritedLayerMaterialMapper.js.map +1 -0
  430. package/lib/view/AcTrLayer.d.ts +33 -2
  431. package/lib/view/AcTrLayer.d.ts.map +1 -1
  432. package/lib/view/AcTrLayer.js +75 -2
  433. package/lib/view/AcTrLayer.js.map +1 -1
  434. package/lib/view/AcTrLayerAppearanceController.d.ts +55 -0
  435. package/lib/view/AcTrLayerAppearanceController.d.ts.map +1 -0
  436. package/lib/view/AcTrLayerAppearanceController.js +86 -0
  437. package/lib/view/AcTrLayerAppearanceController.js.map +1 -0
  438. package/lib/view/AcTrLayout.d.ts +37 -2
  439. package/lib/view/AcTrLayout.d.ts.map +1 -1
  440. package/lib/view/AcTrLayout.js +161 -15
  441. package/lib/view/AcTrLayout.js.map +1 -1
  442. package/lib/view/AcTrProgressiveOpenFitController.d.ts +64 -0
  443. package/lib/view/AcTrProgressiveOpenFitController.d.ts.map +1 -0
  444. package/lib/view/AcTrProgressiveOpenFitController.js +209 -0
  445. package/lib/view/AcTrProgressiveOpenFitController.js.map +1 -0
  446. package/lib/view/AcTrScene.d.ts +47 -1
  447. package/lib/view/AcTrScene.d.ts.map +1 -1
  448. package/lib/view/AcTrScene.js +78 -3
  449. package/lib/view/AcTrScene.js.map +1 -1
  450. package/lib/view/AcTrView2d.d.ts +118 -27
  451. package/lib/view/AcTrView2d.d.ts.map +1 -1
  452. package/lib/view/AcTrView2d.js +584 -362
  453. package/lib/view/AcTrView2d.js.map +1 -1
  454. package/lib/view/index.d.ts +3 -0
  455. package/lib/view/index.d.ts.map +1 -1
  456. package/lib/view/index.js +3 -0
  457. package/lib/view/index.js.map +1 -1
  458. package/package.json +13 -11
  459. package/dist/index.umd.cjs +0 -897
  460. package/lib/command/layer/AcApLayerIsoState.d.ts.map +0 -1
  461. package/lib/command/layer/AcApLayerIsoState.js +0 -53
  462. package/lib/command/layer/AcApLayerIsoState.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdStringHandler.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/handler/AcEdStringHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;;GAGG;AACH,qBAAa,iBAAkB,YAAW,gBAAgB,CAAC,MAAM,CAAC;IAChE,OAAO,CAAC,OAAO,CAAyB;gBAE5B,OAAO,EAAE,uBAAuB;IAI5C,KAAK,CAAC,KAAK,EAAE,MAAM;CAepB"}
1
+ {"version":3,"file":"AcEdStringHandler.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/handler/AcEdStringHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAE5E;;;GAGG;AACH,qBAAa,iBAAkB,YAAW,gBAAgB,CAAC,MAAM,CAAC;IAChE,OAAO,CAAC,OAAO,CAAyB;gBAE5B,OAAO,EAAE,uBAAuB;IAI5C,KAAK,CAAC,KAAK,EAAE,MAAM;IAgBnB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,qBAAqB;CAGjE"}
@@ -18,6 +18,9 @@ var AcEdStringHandler = /** @class */ (function () {
18
18
  }
19
19
  return value;
20
20
  };
21
+ AcEdStringHandler.prototype.parseCommandLine = function (token, _context) {
22
+ return this.parse(token);
23
+ };
21
24
  return AcEdStringHandler;
22
25
  }());
23
26
  export { AcEdStringHandler };
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdStringHandler.js","sourceRoot":"","sources":["../../../../src/editor/input/handler/AcEdStringHandler.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH;IAGE,2BAAY,OAAgC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,iCAAK,GAAL,UAAM,KAAa;QACjB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACrD,OAAO,IAAI,CAAA;QACb,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnD,OAAO,IAAI,CAAA;QACb,CAAC;QAED,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;YACpE,OAAO,IAAI,CAAA;QACb,CAAC;QAED,OAAO,KAAK,CAAA;IACd,CAAC;IACH,wBAAC;AAAD,CAAC,AAtBD,IAsBC"}
1
+ {"version":3,"file":"AcEdStringHandler.js","sourceRoot":"","sources":["../../../../src/editor/input/handler/AcEdStringHandler.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH;IAGE,2BAAY,OAAgC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,iCAAK,GAAL,UAAM,KAAa;QACjB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACrD,OAAO,IAAI,CAAA;QACb,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnD,OAAO,IAAI,CAAA;QACb,CAAC;QAED,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;YACpE,OAAO,IAAI,CAAA;QACb,CAAC;QAED,OAAO,KAAK,CAAA;IACd,CAAC;IAED,4CAAgB,GAAhB,UAAiB,KAAa,EAAE,QAAgC;QAC9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAC1B,CAAC;IACH,wBAAC;AAAD,CAAC,AA1BD,IA0BC"}
@@ -2,9 +2,12 @@ export * from './AcEdCursorManager';
2
2
  export * from './AcEdInputModifiers';
3
3
  export * from './AcEdInputToggles';
4
4
  export * from './AcEdOrthoMode';
5
+ export * from './AcEdOsnapResolver';
5
6
  export * from './AcEdPolarTracking';
6
7
  export * from './AcEditor';
7
8
  export * from './AcEdPreviewJig';
9
+ export * from './AcEdBatchPreview';
10
+ export * from './AcEdSelectionPreviewJig';
8
11
  export * from './AcEdPromptStateMachine';
9
12
  export * from './AcEdSelectionFilter';
10
13
  export * from './AcEdSelectionSet';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/input/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,MAAM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/input/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,MAAM,CAAA"}
@@ -2,9 +2,12 @@ export * from './AcEdCursorManager';
2
2
  export * from './AcEdInputModifiers';
3
3
  export * from './AcEdInputToggles';
4
4
  export * from './AcEdOrthoMode';
5
+ export * from './AcEdOsnapResolver';
5
6
  export * from './AcEdPolarTracking';
6
7
  export * from './AcEditor';
7
8
  export * from './AcEdPreviewJig';
9
+ export * from './AcEdBatchPreview';
10
+ export * from './AcEdSelectionPreviewJig';
8
11
  export * from './AcEdPromptStateMachine';
9
12
  export * from './AcEdSelectionFilter';
10
13
  export * from './AcEdSelectionSet';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/input/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/input/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,MAAM,CAAA"}
@@ -16,6 +16,7 @@ export declare class AcEdPromptAngleOptions extends AcEdPromptOptions<number> {
16
16
  private _useDefaultValue;
17
17
  private _allowZero;
18
18
  private _allowNegative;
19
+ private _allowNone;
19
20
  /**
20
21
  * Constructs a new `AcEdPromptAngleOptions` with a given prompt message.
21
22
  * @param message - The prompt message shown to the user.
@@ -78,5 +79,11 @@ export declare class AcEdPromptAngleOptions extends AcEdPromptOptions<number> {
78
79
  */
79
80
  get allowNegative(): boolean;
80
81
  set allowNegative(flag: boolean);
82
+ /**
83
+ * Gets or sets whether pressing ENTER alone (no input) is accepted.
84
+ * Corresponds to `PromptAngleOptions.AllowNone` in AutoCAD .NET API.
85
+ */
86
+ get allowNone(): boolean;
87
+ set allowNone(flag: boolean);
81
88
  }
82
89
  //# sourceMappingURL=AcEdPromptAngleOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdPromptAngleOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptAngleOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,iBAAiB,CAAC,MAAM,CAAC;IACnE,OAAO,CAAC,UAAU,CAAC,CAAa;IAChC,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,cAAc,CAAgB;IACtC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,gBAAgB,CAAiB;IACzC,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,cAAc,CAAiB;IAEvC;;;OAGG;gBACS,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;IAIpD;;;OAGG;IACH,IAAI,SAAS,IAAI,WAAW,GAAG,SAAS,CAEvC;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,EAU3C;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,EAI1B;IAED;;;;OAIG;IACH,IAAI,YAAY,IAAI,OAAO,CAE1B;IACD,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,EAI7B;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IACD,IAAI,aAAa,CAAC,IAAI,EAAE,OAAO,EAI9B;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,OAAO,CAE1B;IACD,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,EAI7B;IAED;;;;OAIG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IACD,IAAI,YAAY,CAAC,GAAG,EAAE,MAAM,EAI3B;IAED;;;OAGG;IACH,IAAI,eAAe,IAAI,OAAO,CAE7B;IACD,IAAI,eAAe,CAAC,IAAI,EAAE,OAAO,EAIhC;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IACD,IAAI,SAAS,CAAC,IAAI,EAAE,OAAO,EAI1B;IAED;;;;OAIG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IACD,IAAI,aAAa,CAAC,IAAI,EAAE,OAAO,EAI9B;CACF"}
1
+ {"version":3,"file":"AcEdPromptAngleOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptAngleOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,iBAAiB,CAAC,MAAM,CAAC;IACnE,OAAO,CAAC,UAAU,CAAC,CAAa;IAChC,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,cAAc,CAAgB;IACtC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,gBAAgB,CAAiB;IACzC,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,UAAU,CAAiB;IAEnC;;;OAGG;gBACS,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;IAIpD;;;OAGG;IACH,IAAI,SAAS,IAAI,WAAW,GAAG,SAAS,CAEvC;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,EAU3C;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,EAI1B;IAED;;;;OAIG;IACH,IAAI,YAAY,IAAI,OAAO,CAE1B;IACD,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,EAI7B;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IACD,IAAI,aAAa,CAAC,IAAI,EAAE,OAAO,EAI9B;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,OAAO,CAE1B;IACD,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,EAI7B;IAED;;;;OAIG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IACD,IAAI,YAAY,CAAC,GAAG,EAAE,MAAM,EAI3B;IAED;;;OAGG;IACH,IAAI,eAAe,IAAI,OAAO,CAE7B;IACD,IAAI,eAAe,CAAC,IAAI,EAAE,OAAO,EAIhC;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IACD,IAAI,SAAS,CAAC,IAAI,EAAE,OAAO,EAI1B;IAED;;;;OAIG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IACD,IAAI,aAAa,CAAC,IAAI,EAAE,OAAO,EAI9B;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IACD,IAAI,SAAS,CAAC,IAAI,EAAE,OAAO,EAI1B;CACF"}
@@ -36,6 +36,7 @@ var AcEdPromptAngleOptions = /** @class */ (function (_super) {
36
36
  _this._useDefaultValue = false;
37
37
  _this._allowZero = true;
38
38
  _this._allowNegative = false;
39
+ _this._allowNone = false;
39
40
  return _this;
40
41
  }
41
42
  Object.defineProperty(AcEdPromptAngleOptions.prototype, "basePoint", {
@@ -193,6 +194,22 @@ var AcEdPromptAngleOptions = /** @class */ (function (_super) {
193
194
  enumerable: false,
194
195
  configurable: true
195
196
  });
197
+ Object.defineProperty(AcEdPromptAngleOptions.prototype, "allowNone", {
198
+ /**
199
+ * Gets or sets whether pressing ENTER alone (no input) is accepted.
200
+ * Corresponds to `PromptAngleOptions.AllowNone` in AutoCAD .NET API.
201
+ */
202
+ get: function () {
203
+ return this._allowNone;
204
+ },
205
+ set: function (flag) {
206
+ if (!this.isReadOnly) {
207
+ this._allowNone = flag;
208
+ }
209
+ },
210
+ enumerable: false,
211
+ configurable: true
212
+ });
196
213
  return AcEdPromptAngleOptions;
197
214
  }(AcEdPromptOptions));
198
215
  export { AcEdPromptAngleOptions };
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdPromptAngleOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptAngleOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH;IAA4C,0CAAyB;IAWnE;;;OAGG;IACH,gCAAY,OAAe,EAAE,cAAuB;QAClD,YAAA,MAAK,YAAC,OAAO,EAAE,cAAc,CAAC,SAAA;QAbxB,mBAAa,GAAY,IAAI,CAAA;QAC7B,oBAAc,GAAY,IAAI,CAAA;QAC9B,mBAAa,GAAY,KAAK,CAAA;QAC9B,mBAAa,GAAW,CAAC,CAAA;QACzB,sBAAgB,GAAY,KAAK,CAAA;QACjC,gBAAU,GAAY,IAAI,CAAA;QAC1B,oBAAc,GAAY,KAAK,CAAA;;IAQvC,CAAC;IAMD,sBAAI,6CAAS;QAJb;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,UAAU,CAAA;QACxB,CAAC;aACD,UAAc,KAA8B;YAC1C,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,KAAK,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,C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G,GAAG,CAAA;YAC1B,CAAC;QACH,CAAC;;;OALA;IAWD,sBAAI,mDAAe;QAJnB;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,gBAAgB,CAAA;QAC9B,CAAC;aACD,UAAoB,IAAa;YAC/B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAA;YAC9B,CAAC;QACH,CAAC;;;OALA;IAWD,sBAAI,6CAAS;QAJb;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,UAAU,CAAA;QACxB,CAAC;aACD,UAAc,IAAa;YACzB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;YACxB,CAAC;QACH,CAAC;;;OALA;IAYD,sBAAI,iDAAa;QALjB;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,cAAc,CAAA;QAC5B,CAAC;aACD,UAAkB,IAAa;YAC7B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAA;YAC5B,CAAC;QACH,CAAC;;;OALA;IAMH,6BAAC;AAAD,CAAC,AAhJD,CAA4C,iBAAiB,GAgJ5D"}
1
+ {"version":3,"file":"AcEdPromptAngleOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptAngleOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH;IAA4C,0CAAyB;IAYnE;;;OAGG;IACH,gCAAY,OAAe,EAAE,cAAuB;QAClD,YAAA,MAAK,YAAC,OAAO,EAAE,cAAc,CAAC,SAAA;QAdxB,mBAAa,GAAY,IAAI,CAAA;QAC7B,oBAAc,GAAY,IAAI,CAAA;QAC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U,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,AA9JD,CAA4C,iBAAiB,GA8J5D"}
@@ -1,4 +1,14 @@
1
- export declare abstract class AcEdInputSession<T> {
1
+ /**
2
+ * Minimal command-line session surface used while a prompt is active.
3
+ *
4
+ * Stored without a result-type parameter so keyword and mixed-input sessions
5
+ * can share the same active-session slot.
6
+ */
7
+ export interface AcEdCommandLineSessionControl {
8
+ handleEnter(value: string): boolean;
9
+ handleEscape(): void;
10
+ }
11
+ export declare abstract class AcEdInputSession<T> implements AcEdCommandLineSessionControl {
2
12
  protected resolve: (value: T) => void;
3
13
  start(): Promise<T>;
4
14
  /** Called once session starts */
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdInputSession.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/session/AcEdInputSession.ts"],"names":[],"mappings":"AAAA,8BAAsB,gBAAgB,CAAC,CAAC;IACtC,SAAS,CAAC,OAAO,EAAG,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;IAEtC,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC;IAOnB,iCAAiC;IACjC,SAAS,CAAC,QAAQ,CAAC,OAAO,IAAI,IAAI;IAElC,gDAAgD;IAChD,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAE5C,wBAAwB;IACxB,QAAQ,CAAC,YAAY,IAAI,IAAI;IAE7B,yBAAyB;IACzB,SAAS,CAAC,QAAQ,CAAC,OAAO,IAAI,IAAI;IAElC,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;CAI1B"}
1
+ {"version":3,"file":"AcEdInputSession.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/session/AcEdInputSession.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,6BAA6B;IAC5C,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;IACnC,YAAY,IAAI,IAAI,CAAA;CACrB;AAED,8BAAsB,gBAAgB,CACpC,CAAC,CACD,YAAW,6BAA6B;IACxC,SAAS,CAAC,OAAO,EAAG,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;IAEtC,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC;IAOnB,iCAAiC;IACjC,SAAS,CAAC,QAAQ,CAAC,OAAO,IAAI,IAAI;IAElC,gDAAgD;IAChD,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAE5C,wBAAwB;IACxB,QAAQ,CAAC,YAAY,IAAI,IAAI;IAE7B,yBAAyB;IACzB,SAAS,CAAC,QAAQ,CAAC,OAAO,IAAI,IAAI;IAElC,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;CAI1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdInputSession.js","sourceRoot":"","sources":["../../../../src/editor/input/session/AcEdInputSession.ts"],"names":[],"mappings":"AAAA;IAAA;IA0BA,CAAC;IAvBC,gCAAK,GAAL;QAAA,iBAKC;QAJC,OAAO,IAAI,OAAO,CAAI,UAAA,OAAO;YAC3B,KAAI,CAAC,OAAO,GAAG,OAAO,CAAA;YACtB,KAAI,CAAC,OAAO,EAAE,CAAA;QAChB,CAAC,CAAC,CAAA;IACJ,CAAC;IAcS,iCAAM,GAAhB,UAAiB,KAAQ;QACvB,IAAI,CAAC,OAAO,EAAE,CAAA;QACd,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IACrB,CAAC;IACH,uBAAC;AAAD,CAAC,AA1BD,IA0BC"}
1
+ {"version":3,"file":"AcEdInputSession.js","sourceRoot":"","sources":["../../../../src/editor/input/session/AcEdInputSession.ts"],"names":[],"mappings":"AAWA;IAAA;IA4BA,CAAC;IAvBC,gCAAK,GAAL;QAAA,iBAKC;QAJC,OAAO,IAAI,OAAO,CAAI,UAAA,OAAO;YAC3B,KAAI,CAAC,OAAO,GAAG,OAAO,CAAA;YACtB,KAAI,CAAC,OAAO,EAAE,CAAA;QAChB,CAAC,CAAC,CAAA;IACJ,CAAC;IAcS,iCAAM,GAAhB,UAAiB,KAAQ;QACvB,IAAI,CAAC,OAAO,EAAE,CAAA;QACd,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IACrB,CAAC;IACH,uBAAC;AAAD,CAAC,AA5BD,IA4BC"}
@@ -0,0 +1,51 @@
1
+ import { AcEdPromptKeywordOptions } from '../prompt/AcEdPromptKeywordOptions';
2
+ import { AcEdCommandLine } from '../ui/AcEdCommandLine';
3
+ import { AcEdInputSession } from './AcEdInputSession';
4
+ /**
5
+ * Resolution mode for mixed command-line prompt sessions.
6
+ *
7
+ * - `geometric`: try coordinate/numeric parsing first, then keywords
8
+ * - `string`: try keywords first, then accept arbitrary string input
9
+ * - `keyword`: keywords only (same as {@link AcEdKeywordSession})
10
+ */
11
+ export type AcEdPromptInputMode = 'geometric' | 'string' | 'keyword';
12
+ /**
13
+ * Result produced by a mixed prompt-input session.
14
+ */
15
+ export type AcEdPromptInputResult<T> = {
16
+ kind: 'value';
17
+ value: T;
18
+ } | {
19
+ kind: 'keyword';
20
+ keyword: string;
21
+ } | {
22
+ kind: 'none';
23
+ };
24
+ /**
25
+ * Interactive command-line session that accepts geometric or textual prompt
26
+ * input together with optional keywords, using AutoCAD-style precedence rules.
27
+ */
28
+ export declare class AcEdPromptInputSession<T> extends AcEdInputSession<AcEdPromptInputResult<T>> {
29
+ private cli;
30
+ private options;
31
+ private parseValue;
32
+ private mode;
33
+ private allowNone;
34
+ private allowTyping;
35
+ private keywordHandler?;
36
+ /**
37
+ * @param cli - Command-line UI adapter
38
+ * @param options - Keyword prompt options used for rendering and keyword parsing
39
+ * @param parseValue - Parser for the prompt's primary value type
40
+ * @param mode - Precedence rules between data and keyword resolution
41
+ * @param allowNone - Whether empty Enter is accepted as `none`
42
+ * @param allowTyping - Whether typed input is accepted
43
+ */
44
+ constructor(cli: AcEdCommandLine, options: AcEdPromptKeywordOptions, parseValue: (text: string) => T | null, mode: AcEdPromptInputMode, allowNone: boolean, allowTyping?: boolean);
45
+ protected onStart(): void;
46
+ handleEnter(value: string): boolean;
47
+ handleEscape(): void;
48
+ protected cleanup(): void;
49
+ private tryResolveKeyword;
50
+ }
51
+ //# sourceMappingURL=AcEdPromptInputSession.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptInputSession.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/session/AcEdPromptInputSession.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAA;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEpE;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAC/B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GAC3B;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAEpB;;;GAGG;AACH,qBAAa,sBAAsB,CAAC,CAAC,CAAE,SAAQ,gBAAgB,CAC7D,qBAAqB,CAAC,CAAC,CAAC,CACzB;IAYG,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,WAAW;IAhBrB,OAAO,CAAC,cAAc,CAAC,CAAoB;IAE3C;;;;;;;OAOG;gBAEO,GAAG,EAAE,eAAe,EACpB,OAAO,EAAE,wBAAwB,EACjC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC,GAAG,IAAI,EACtC,IAAI,EAAE,mBAAmB,EACzB,SAAS,EAAE,OAAO,EAClB,WAAW,GAAE,OAAc;IAQrC,SAAS,CAAC,OAAO,IAAI,IAAI;IASzB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAuCnC,YAAY,IAAI,IAAI;IAIpB,SAAS,CAAC,OAAO,IAAI,IAAI;IAKzB,OAAO,CAAC,iBAAiB;CAO1B"}
@@ -0,0 +1,109 @@
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 { AcEdKeywordHandler } from '../handler/AcEdKeywordHandler';
17
+ import { AcEdInputSession } from './AcEdInputSession';
18
+ /**
19
+ * Interactive command-line session that accepts geometric or textual prompt
20
+ * input together with optional keywords, using AutoCAD-style precedence rules.
21
+ */
22
+ var AcEdPromptInputSession = /** @class */ (function (_super) {
23
+ __extends(AcEdPromptInputSession, _super);
24
+ /**
25
+ * @param cli - Command-line UI adapter
26
+ * @param options - Keyword prompt options used for rendering and keyword parsing
27
+ * @param parseValue - Parser for the prompt's primary value type
28
+ * @param mode - Precedence rules between data and keyword resolution
29
+ * @param allowNone - Whether empty Enter is accepted as `none`
30
+ * @param allowTyping - Whether typed input is accepted
31
+ */
32
+ function AcEdPromptInputSession(cli, options, parseValue, mode, allowNone, allowTyping) {
33
+ if (allowTyping === void 0) { allowTyping = true; }
34
+ var _this = _super.call(this) || this;
35
+ _this.cli = cli;
36
+ _this.options = options;
37
+ _this.parseValue = parseValue;
38
+ _this.mode = mode;
39
+ _this.allowNone = allowNone;
40
+ _this.allowTyping = allowTyping;
41
+ if (_this.options.keywords.count > 0) {
42
+ _this.keywordHandler = new AcEdKeywordHandler(_this.options);
43
+ }
44
+ return _this;
45
+ }
46
+ AcEdPromptInputSession.prototype.onStart = function () {
47
+ var _this = this;
48
+ this.cli.clearInput();
49
+ this.cli.setInputReadOnly(!this.allowTyping);
50
+ this.cli.renderKeywordPrompt(this.options, function (kw) {
51
+ return _this.finish({ kind: 'keyword', keyword: kw });
52
+ });
53
+ this.cli.focusInput();
54
+ };
55
+ AcEdPromptInputSession.prototype.handleEnter = function (value) {
56
+ if (!this.allowTyping)
57
+ return true;
58
+ if (!value.trim()) {
59
+ var defaultKeyword = this.options.keywords.default;
60
+ if (defaultKeyword === null || defaultKeyword === void 0 ? void 0 : defaultKeyword.enabled) {
61
+ this.finish({ kind: 'keyword', keyword: defaultKeyword.globalName });
62
+ return true;
63
+ }
64
+ if (this.allowNone) {
65
+ this.finish({ kind: 'none' });
66
+ return true;
67
+ }
68
+ return false;
69
+ }
70
+ if (this.mode === 'keyword') {
71
+ return this.tryResolveKeyword(value);
72
+ }
73
+ if (this.mode === 'string') {
74
+ if (this.tryResolveKeyword(value))
75
+ return true;
76
+ var parsed_1 = this.parseValue(value);
77
+ if (parsed_1 !== null) {
78
+ this.finish({ kind: 'value', value: parsed_1 });
79
+ return true;
80
+ }
81
+ return false;
82
+ }
83
+ var parsed = this.parseValue(value);
84
+ if (parsed !== null) {
85
+ this.finish({ kind: 'value', value: parsed });
86
+ return true;
87
+ }
88
+ return this.tryResolveKeyword(value);
89
+ };
90
+ AcEdPromptInputSession.prototype.handleEscape = function () {
91
+ this.finish({ kind: 'none' });
92
+ };
93
+ AcEdPromptInputSession.prototype.cleanup = function () {
94
+ this.cli.setInputReadOnly(false);
95
+ this.cli.clear();
96
+ };
97
+ AcEdPromptInputSession.prototype.tryResolveKeyword = function (value) {
98
+ if (!this.keywordHandler)
99
+ return false;
100
+ var parsed = this.keywordHandler.parse(value);
101
+ if (parsed === null)
102
+ return false;
103
+ this.finish({ kind: 'keyword', keyword: parsed });
104
+ return true;
105
+ };
106
+ return AcEdPromptInputSession;
107
+ }(AcEdInputSession));
108
+ export { AcEdPromptInputSession };
109
+ //# sourceMappingURL=AcEdPromptInputSession.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdPromptInputSession.js","sourceRoot":"","sources":["../../../../src/editor/input/session/AcEdPromptInputSession.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAmBrD;;;GAGG;AACH;IAA+C,0CAE9C;IAGC;;;;;;;OAOG;IACH,gCACU,GAAoB,EACpB,OAAiC,EACjC,UAAsC,EACtC,IAAyB,EACzB,SAAkB,EAClB,WAA2B;QAA3B,4BAAA,EAAA,kBAA2B;QAEnC,YAAA,MAAK,WAAE,SAAA;QAPC,SAAG,GAAH,GAAG,CAAiB;QACpB,aAAO,GAAP,OAAO,CAA0B;QACjC,gBAAU,GAAV,UAAU,CAA4B;QACtC,UAAI,GAAJ,IAAI,CAAqB;QACzB,eAAS,GAAT,SAAS,CAAS;QAClB,iBAAW,GAAX,WAAW,CAAgB;QAGnC,IAAI,KAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC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AK,CAAA;QACjC,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAA;QACjD,OAAO,IAAI,CAAA;IACb,CAAC;IACH,6BAAC;AAAD,CAAC,AA3FD,CAA+C,gBAAgB,GA2F9D"}
@@ -1,3 +1,4 @@
1
1
  export * from './AcEdKeywordSession';
2
2
  export * from './AcEdInputSession';
3
+ export * from './AcEdPromptInputSession';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/session/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/session/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA"}
@@ -1,3 +1,4 @@
1
1
  export * from './AcEdKeywordSession';
2
2
  export * from './AcEdInputSession';
3
+ export * from './AcEdPromptInputSession';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/input/session/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/input/session/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { AcEdPromptKeywordOptions } from '../prompt';
2
+ import { AcEdPromptInputMode, AcEdPromptInputResult } from '../session';
2
3
  import { AcEdMessageType } from './AcEdMessageType';
3
4
  /**
4
5
  * AutoCAD-style floating command line with Promise-based execution.
@@ -63,6 +64,15 @@ export declare class AcEdCommandLine {
63
64
  showMessage(message: string, type?: AcEdMessageType, msgKey?: string): void;
64
65
  cancelActiveSession(): void;
65
66
  getKeywords(options: AcEdPromptKeywordOptions, allowTyping?: boolean): Promise<string>;
67
+ /**
68
+ * Runs a mixed prompt-input session that accepts typed geometric or textual
69
+ * values together with optional keywords.
70
+ */
71
+ getPromptInput<T>(options: AcEdPromptKeywordOptions, parseValue: (text: string) => T | null, config: {
72
+ mode: AcEdPromptInputMode;
73
+ allowNone: boolean;
74
+ allowTyping?: boolean;
75
+ }): Promise<AcEdPromptInputResult<T>>;
66
76
  /**
67
77
  * Localize a text key using AcApI18n.t().
68
78
  *
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdCommandLine.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdCommandLine.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AAEpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;;;;;;;;;;;;GAaG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,UAAU,CAAQ;IAC1B,OAAO,CAAC,YAAY,CAAiB;IACrC,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,WAAW,CAAiB;IACpC,OAAO,CAAC,GAAG,CAAiB;IAC5B,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,OAAO,CAAoB;IACnC,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,S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AAO,CAAC,cAAc;IAOtB,0BAA0B;IAC1B,OAAO,CAAC,YAAY;IAUpB,iCAAiC;IACjC,OAAO,CAAC,uBAAuB;IAmB/B,qCAAqC;IACrC,OAAO,CAAC,gBAAgB;IAKxB,yBAAyB;IACzB,OAAO,CAAC,gBAAgB;IAcxB,6BAA6B;IAC7B,OAAO,CAAC,gBAAgB;IAIxB,iDAAiD;IACjD,OAAO,CAAC,yBAAyB;IASjC,oDAAoD;IACpD,OAAO,CAAC,aAAa;IAkBrB,6CAA6C;IAC7C,OAAO,CAAC,gBAAgB;IAWxB,2BAA2B;IAC3B,OAAO,CAAC,aAAa;IAgBrB,6EAA6E;IAC7E,OAAO,CAAC,mBAAmB;IAW3B,qDAAqD;IACrD,OAAO,CAAC,oBAAoB;IAU5B,yEAAyE;IACzE,OAAO,CAAC,sBAAsB;IAQ9B,gEAAgE;IAChE,OAAO,CAAC,oBAAoB;IAM5B,gCAAgC;IAChC,OAAO,CAAC,eAAe;IAIvB,gCAAgC;IAChC,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,sBAAsB;CAG/B"}
@@ -36,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  };
37
37
  import { AcApDocManager, AcApSettingManager } from '../../../app';
38
38
  import { AcApI18n } from '../../../i18n';
39
- import { AcEdKeywordSession } from '../session';
39
+ import { AcEdKeywordSession, AcEdPromptInputSession } from '../session';
40
40
  /**
41
41
  * AutoCAD-style floating command line with Promise-based execution.
42
42
  *
@@ -89,10 +89,12 @@ var AcEdCommandLine = /** @class */ (function () {
89
89
  configurable: true
90
90
  });
91
91
  AcEdCommandLine.prototype.setPrompt = function (message) {
92
+ var _a;
92
93
  this.isPromptActive = true;
93
- this.promptEl.innerHTML = message !== null && message !== void 0 ? message : '';
94
+ var promptCore = (_a = message === null || message === void 0 ? void 0 : message.trim().replace(/[::]\s*$/, '')) !== null && _a !== void 0 ? _a : '';
95
+ this.promptEl.innerHTML = promptCore ? "".concat(promptCore, ": ") : '';
94
96
  this.textInput.placeholder = '';
95
- this.recordRecentMessage(message);
97
+ this.recordRecentMessage(promptCore ? "".concat(promptCore, ":") : message);
96
98
  };
97
99
  AcEdCommandLine.prototype.clear = function () {
98
100
  this.clearPrompt();
@@ -133,17 +135,48 @@ var AcEdCommandLine = /** @class */ (function () {
133
135
  };
134
136
  AcEdCommandLine.prototype.getKeywords = function (options_1) {
135
137
  return __awaiter(this, arguments, void 0, function (options, allowTyping) {
136
- var result;
138
+ var session;
137
139
  if (allowTyping === void 0) { allowTyping = true; }
138
140
  return __generator(this, function (_a) {
139
141
  switch (_a.label) {
140
142
  case 0:
141
- this.activeSession = new AcEdKeywordSession(this, options, allowTyping);
142
- return [4 /*yield*/, this.activeSession.start()];
143
+ session = new AcEdKeywordSession(this, options, allowTyping);
144
+ this.activeSession = session;
145
+ _a.label = 1;
146
+ case 1:
147
+ _a.trys.push([1, , 3, 4]);
148
+ return [4 /*yield*/, session.start()];
149
+ case 2: return [2 /*return*/, _a.sent()];
150
+ case 3:
151
+ this.activeSession = undefined;
152
+ return [7 /*endfinally*/];
153
+ case 4: return [2 /*return*/];
154
+ }
155
+ });
156
+ });
157
+ };
158
+ /**
159
+ * Runs a mixed prompt-input session that accepts typed geometric or textual
160
+ * values together with optional keywords.
161
+ */
162
+ AcEdCommandLine.prototype.getPromptInput = function (options, parseValue, config) {
163
+ return __awaiter(this, void 0, void 0, function () {
164
+ var session;
165
+ var _a;
166
+ return __generator(this, function (_b) {
167
+ switch (_b.label) {
168
+ case 0:
169
+ session = new AcEdPromptInputSession(this, options, parseValue, config.mode, config.allowNone, (_a = config.allowTyping) !== null && _a !== void 0 ? _a : true);
170
+ this.activeSession = session;
171
+ _b.label = 1;
143
172
  case 1:
144
- result = _a.sent();
173
+ _b.trys.push([1, , 3, 4]);
174
+ return [4 /*yield*/, session.start()];
175
+ case 2: return [2 /*return*/, _b.sent()];
176
+ case 3:
145
177
  this.activeSession = undefined;
146
- return [2 /*return*/, result];
178
+ return [7 /*endfinally*/];
179
+ case 4: return [2 /*return*/];
147
180
  }
148
181
  });
149
182
  });
@@ -347,7 +380,7 @@ var AcEdCommandLine = /** @class */ (function () {
347
380
  if (this.activeSession) {
348
381
  var handled = this.activeSession.handleEnter(this.getInputText());
349
382
  if (!handled) {
350
- this.showMessage(this.localize('main.commandLine.invalidKeyword'), 'warning');
383
+ this.showMessage(this.localize('main.commandLine.invalidInput', 'Invalid input.'), 'warning');
351
384
  }
352
385
  return;
353
386
  }
@@ -476,42 +509,41 @@ var AcEdCommandLine = /** @class */ (function () {
476
509
  /** Render prompt message and keyword options in command line */
477
510
  AcEdCommandLine.prototype.renderKeywordPrompt = function (options, onClick) {
478
511
  var _this = this;
479
- var _a, _b;
512
+ var _a, _b, _c;
480
513
  this.promptEl.innerHTML = '';
481
514
  this.isPromptActive = true;
482
515
  // Hide default placeholder when showing a prompt/keyword message.
483
516
  this.textInput.placeholder = '';
484
517
  if (options.message) {
485
- this.promptEl.append(options.message.trim() + ' ');
518
+ var promptCore = options.message.trim().replace(/[::]\s*$/, '');
519
+ this.promptEl.append(promptCore + ' ');
486
520
  }
487
521
  var promptFormat = options.getKeywordPromptFormat();
488
- if (!promptFormat.visibleKeywords.length)
489
- return;
490
- var keywords = (_a = options.keywords) === null || _a === void 0 ? void 0 : _a.toArray().filter(function (k) { return k.visible; });
491
- if (!(keywords === null || keywords === void 0 ? void 0 : keywords.length))
492
- return;
493
- this.promptEl.append('[');
494
- keywords.forEach(function (kw, i) {
495
- if (i > 0)
496
- _this.promptEl.append('/');
497
- var span = document.createElement('span');
498
- span.className = 'ml-cli-option';
499
- span.textContent = kw.displayName;
500
- if (!kw.enabled) {
501
- span.style.opacity = '0.45';
502
- span.style.pointerEvents = 'none';
503
- }
504
- else {
505
- span.onclick = function () { return onClick(kw.globalName); };
522
+ var keywords = (_b = (_a = options.keywords) === null || _a === void 0 ? void 0 : _a.toArray().filter(function (k) { return k.visible; })) !== null && _b !== void 0 ? _b : [];
523
+ if (keywords.length) {
524
+ this.promptEl.append('[');
525
+ keywords.forEach(function (kw, i) {
526
+ if (i > 0)
527
+ _this.promptEl.append('/');
528
+ var span = document.createElement('span');
529
+ span.className = 'ml-cli-option';
530
+ span.textContent = kw.displayName;
531
+ if (!kw.enabled) {
532
+ span.style.opacity = '0.45';
533
+ span.style.pointerEvents = 'none';
534
+ }
535
+ else {
536
+ span.onclick = function () { return onClick(kw.globalName); };
537
+ }
538
+ _this.promptEl.append(span);
539
+ });
540
+ this.promptEl.append(']');
541
+ if (promptFormat.defaultKeyword) {
542
+ this.promptEl.append(" <".concat(promptFormat.defaultKeyword, ">"));
506
543
  }
507
- _this.promptEl.append(span);
508
- });
509
- this.promptEl.append(']');
510
- if (promptFormat.defaultKeyword) {
511
- this.promptEl.append(" <".concat(promptFormat.defaultKeyword, ">"));
512
544
  }
513
545
  this.promptEl.append(': ');
514
- this.recordRecentMessage((_b = this.promptEl.textContent) !== null && _b !== void 0 ? _b : options.message);
546
+ this.recordRecentMessage((_c = this.promptEl.textContent) !== null && _c !== void 0 ? _c : options.message);
515
547
  };
516
548
  /** Bind command lifecycle for auto-hide behavior of recent messages. */
517
549
  AcEdCommandLine.prototype.bindCommandLifecycleEvents = function () {