@mlightcad/cad-simple-viewer 1.4.12 → 1.5.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 (455) hide show
  1. package/dist/index.js +35505 -24550
  2. package/dist/index.umd.cjs +180 -49
  3. package/dist/libredwg-parser-worker.js +4874 -4548
  4. package/dist/mtext-renderer-worker.js +3587 -3534
  5. package/lib/app/AcApDocManager.d.ts +73 -8
  6. package/lib/app/AcApDocManager.d.ts.map +1 -1
  7. package/lib/app/AcApDocManager.js +216 -46
  8. package/lib/app/AcApDocManager.js.map +1 -1
  9. package/lib/command/AcApLogCmd.d.ts +1 -1
  10. package/lib/command/AcApLogCmd.d.ts.map +1 -1
  11. package/lib/command/AcApLogCmd.js +1 -1
  12. package/lib/command/AcApLogCmd.js.map +1 -1
  13. package/lib/command/AcApOpenCmd.d.ts +1 -1
  14. package/lib/command/AcApOpenCmd.d.ts.map +1 -1
  15. package/lib/command/AcApOpenCmd.js +1 -2
  16. package/lib/command/AcApOpenCmd.js.map +1 -1
  17. package/lib/command/AcApPanCmd.d.ts +1 -1
  18. package/lib/command/AcApPanCmd.d.ts.map +1 -1
  19. package/lib/command/AcApPanCmd.js +1 -2
  20. package/lib/command/AcApPanCmd.js.map +1 -1
  21. package/lib/command/AcApQNewCmd.d.ts +1 -1
  22. package/lib/command/AcApQNewCmd.d.ts.map +1 -1
  23. package/lib/command/AcApQNewCmd.js +1 -1
  24. package/lib/command/AcApQNewCmd.js.map +1 -1
  25. package/lib/command/AcApRegenCmd.d.ts +1 -1
  26. package/lib/command/AcApRegenCmd.d.ts.map +1 -1
  27. package/lib/command/AcApRegenCmd.js +1 -1
  28. package/lib/command/AcApRegenCmd.js.map +1 -1
  29. package/lib/command/AcApSelectCmd.d.ts +1 -1
  30. package/lib/command/AcApSelectCmd.d.ts.map +1 -1
  31. package/lib/command/AcApSelectCmd.js +1 -2
  32. package/lib/command/AcApSelectCmd.js.map +1 -1
  33. package/lib/command/AcApZoomCmd.d.ts +91 -20
  34. package/lib/command/AcApZoomCmd.d.ts.map +1 -1
  35. package/lib/command/AcApZoomCmd.js +288 -23
  36. package/lib/command/AcApZoomCmd.js.map +1 -1
  37. package/lib/command/{AcApConvertToDxfCmd.d.ts → convert/AcApConvertToDxfCmd.d.ts} +2 -2
  38. package/lib/command/convert/AcApConvertToDxfCmd.d.ts.map +1 -0
  39. package/lib/command/{AcApConvertToDxfCmd.js → convert/AcApConvertToDxfCmd.js} +1 -1
  40. package/lib/command/convert/AcApConvertToDxfCmd.js.map +1 -0
  41. package/lib/command/convert/AcApConvertToPngCmd.d.ts +53 -0
  42. package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -0
  43. package/lib/command/convert/AcApConvertToPngCmd.js +200 -0
  44. package/lib/command/convert/AcApConvertToPngCmd.js.map +1 -0
  45. package/lib/command/{AcApConvertToSvgCmd.d.ts → convert/AcApConvertToSvgCmd.d.ts} +2 -2
  46. package/lib/command/convert/AcApConvertToSvgCmd.d.ts.map +1 -0
  47. package/lib/command/{AcApConvertToSvgCmd.js → convert/AcApConvertToSvgCmd.js} +1 -1
  48. package/lib/command/convert/AcApConvertToSvgCmd.js.map +1 -0
  49. package/lib/command/convert/AcApDxfConvertor.d.ts.map +1 -0
  50. package/lib/command/{AcApDxfConvertor.js → convert/AcApDxfConvertor.js} +1 -1
  51. package/lib/command/convert/AcApDxfConvertor.js.map +1 -0
  52. package/lib/command/convert/AcApPngConvertor.d.ts +80 -0
  53. package/lib/command/convert/AcApPngConvertor.d.ts.map +1 -0
  54. package/lib/command/convert/AcApPngConvertor.js +233 -0
  55. package/lib/command/convert/AcApPngConvertor.js.map +1 -0
  56. package/lib/command/convert/AcApSvgConvertor.d.ts.map +1 -0
  57. package/lib/command/{AcApSvgConvertor.js → convert/AcApSvgConvertor.js} +1 -1
  58. package/lib/command/convert/AcApSvgConvertor.js.map +1 -0
  59. package/lib/command/convert/index.d.ts +6 -0
  60. package/lib/command/convert/index.d.ts.map +1 -0
  61. package/lib/command/convert/index.js +6 -0
  62. package/lib/command/convert/index.js.map +1 -0
  63. package/lib/command/draw/AcApArcCmd.d.ts +297 -0
  64. package/lib/command/draw/AcApArcCmd.d.ts.map +1 -0
  65. package/lib/command/{AcApArcCmd.js → draw/AcApArcCmd.js} +794 -13
  66. package/lib/command/draw/AcApArcCmd.js.map +1 -0
  67. package/lib/command/draw/AcApCircleCmd.d.ts +81 -0
  68. package/lib/command/draw/AcApCircleCmd.d.ts.map +1 -0
  69. package/lib/command/draw/AcApCircleCmd.js +594 -0
  70. package/lib/command/draw/AcApCircleCmd.js.map +1 -0
  71. package/lib/command/{AcApDimLinearCmd.d.ts → draw/AcApDimLinearCmd.d.ts} +2 -2
  72. package/lib/command/draw/AcApDimLinearCmd.d.ts.map +1 -0
  73. package/lib/command/{AcApDimLinearCmd.js → draw/AcApDimLinearCmd.js} +3 -3
  74. package/lib/command/draw/AcApDimLinearCmd.js.map +1 -0
  75. package/lib/command/draw/AcApEllipseCmd.d.ts +87 -0
  76. package/lib/command/draw/AcApEllipseCmd.d.ts.map +1 -0
  77. package/lib/command/draw/AcApEllipseCmd.js +583 -0
  78. package/lib/command/draw/AcApEllipseCmd.js.map +1 -0
  79. package/lib/command/draw/AcApHatchCmd.d.ts +247 -0
  80. package/lib/command/draw/AcApHatchCmd.d.ts.map +1 -0
  81. package/lib/command/draw/AcApHatchCmd.js +900 -0
  82. package/lib/command/draw/AcApHatchCmd.js.map +1 -0
  83. package/lib/command/draw/AcApLineCmd.d.ts +57 -0
  84. package/lib/command/draw/AcApLineCmd.d.ts.map +1 -0
  85. package/lib/command/draw/AcApLineCmd.js +263 -0
  86. package/lib/command/draw/AcApLineCmd.js.map +1 -0
  87. package/lib/command/draw/AcApMLineCmd.d.ts +31 -0
  88. package/lib/command/draw/AcApMLineCmd.d.ts.map +1 -0
  89. package/lib/command/draw/AcApMLineCmd.js +531 -0
  90. package/lib/command/draw/AcApMLineCmd.js.map +1 -0
  91. package/lib/command/{AcApMTextCmd.d.ts → draw/AcApMTextCmd.d.ts} +2 -2
  92. package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -0
  93. package/lib/command/{AcApMTextCmd.js → draw/AcApMTextCmd.js} +3 -3
  94. package/lib/command/draw/AcApMTextCmd.js.map +1 -0
  95. package/lib/command/draw/AcApPointCmd.d.ts +16 -0
  96. package/lib/command/draw/AcApPointCmd.d.ts.map +1 -0
  97. package/lib/command/{AcApZoomToBoxCmd.js → draw/AcApPointCmd.js} +32 -37
  98. package/lib/command/draw/AcApPointCmd.js.map +1 -0
  99. package/lib/command/draw/AcApPolygonCmd.d.ts +69 -0
  100. package/lib/command/draw/AcApPolygonCmd.d.ts.map +1 -0
  101. package/lib/command/draw/AcApPolygonCmd.js +422 -0
  102. package/lib/command/draw/AcApPolygonCmd.js.map +1 -0
  103. package/lib/command/{AcApPolylineCmd.d.ts → draw/AcApPolylineCmd.d.ts} +2 -2
  104. package/lib/command/draw/AcApPolylineCmd.d.ts.map +1 -0
  105. package/lib/command/{AcApPolylineCmd.js → draw/AcApPolylineCmd.js} +3 -3
  106. package/lib/command/draw/AcApPolylineCmd.js.map +1 -0
  107. package/lib/command/draw/AcApRayCmd.d.ts +10 -0
  108. package/lib/command/draw/AcApRayCmd.d.ts.map +1 -0
  109. package/lib/command/{AcApLineCmd.js → draw/AcApRayCmd.js} +63 -44
  110. package/lib/command/draw/AcApRayCmd.js.map +1 -0
  111. package/lib/command/draw/AcApRectCmd.d.ts +168 -0
  112. package/lib/command/draw/AcApRectCmd.d.ts.map +1 -0
  113. package/lib/command/draw/AcApRectCmd.js +822 -0
  114. package/lib/command/draw/AcApRectCmd.js.map +1 -0
  115. package/lib/command/draw/AcApSplineCmd.d.ts +85 -0
  116. package/lib/command/draw/AcApSplineCmd.d.ts.map +1 -0
  117. package/lib/command/draw/AcApSplineCmd.js +620 -0
  118. package/lib/command/draw/AcApSplineCmd.js.map +1 -0
  119. package/lib/command/draw/AcApXLineCmd.d.ts +25 -0
  120. package/lib/command/draw/AcApXLineCmd.d.ts.map +1 -0
  121. package/lib/command/draw/AcApXLineCmd.js +210 -0
  122. package/lib/command/draw/AcApXLineCmd.js.map +1 -0
  123. package/lib/command/draw/index.d.ts +16 -0
  124. package/lib/command/draw/index.d.ts.map +1 -0
  125. package/lib/command/draw/index.js +16 -0
  126. package/lib/command/draw/index.js.map +1 -0
  127. package/lib/command/index.d.ts +6 -26
  128. package/lib/command/index.d.ts.map +1 -1
  129. package/lib/command/index.js +6 -26
  130. package/lib/command/index.js.map +1 -1
  131. package/lib/command/layer/AcApLayerCloseCmd.d.ts +23 -0
  132. package/lib/command/layer/AcApLayerCloseCmd.d.ts.map +1 -0
  133. package/lib/command/{AcApRevRectCmd.js → layer/AcApLayerCloseCmd.js} +27 -24
  134. package/lib/command/layer/AcApLayerCloseCmd.js.map +1 -0
  135. package/lib/command/layer/AcApLayerCmd.d.ts +215 -0
  136. package/lib/command/layer/AcApLayerCmd.d.ts.map +1 -0
  137. package/lib/command/layer/AcApLayerCmd.js +765 -0
  138. package/lib/command/layer/AcApLayerCmd.js.map +1 -0
  139. package/lib/command/layer/AcApLayerCurCmd.d.ts +43 -0
  140. package/lib/command/layer/AcApLayerCurCmd.d.ts.map +1 -0
  141. package/lib/command/layer/AcApLayerCurCmd.js +183 -0
  142. package/lib/command/layer/AcApLayerCurCmd.js.map +1 -0
  143. package/lib/command/layer/AcApLayerDelCmd.d.ts +112 -0
  144. package/lib/command/layer/AcApLayerDelCmd.d.ts.map +1 -0
  145. package/lib/command/layer/AcApLayerDelCmd.js +446 -0
  146. package/lib/command/layer/AcApLayerDelCmd.js.map +1 -0
  147. package/lib/command/layer/AcApLayerFreezeCmd.d.ts +103 -0
  148. package/lib/command/layer/AcApLayerFreezeCmd.d.ts.map +1 -0
  149. package/lib/command/layer/AcApLayerFreezeCmd.js +398 -0
  150. package/lib/command/layer/AcApLayerFreezeCmd.js.map +1 -0
  151. package/lib/command/layer/AcApLayerIsoCmd.d.ts +99 -0
  152. package/lib/command/layer/AcApLayerIsoCmd.d.ts.map +1 -0
  153. package/lib/command/layer/AcApLayerIsoCmd.js +485 -0
  154. package/lib/command/layer/AcApLayerIsoCmd.js.map +1 -0
  155. package/lib/command/layer/AcApLayerIsoState.d.ts +68 -0
  156. package/lib/command/layer/AcApLayerIsoState.d.ts.map +1 -0
  157. package/lib/command/layer/AcApLayerIsoState.js +53 -0
  158. package/lib/command/layer/AcApLayerIsoState.js.map +1 -0
  159. package/lib/command/layer/AcApLayerLockCmd.d.ts +50 -0
  160. package/lib/command/layer/AcApLayerLockCmd.d.ts.map +1 -0
  161. package/lib/command/layer/AcApLayerLockCmd.js +175 -0
  162. package/lib/command/layer/AcApLayerLockCmd.js.map +1 -0
  163. package/lib/command/layer/AcApLayerOffCmd.d.ts +95 -0
  164. package/lib/command/layer/AcApLayerOffCmd.d.ts.map +1 -0
  165. package/lib/command/layer/AcApLayerOffCmd.js +384 -0
  166. package/lib/command/layer/AcApLayerOffCmd.js.map +1 -0
  167. package/lib/command/layer/AcApLayerOnCmd.d.ts +30 -0
  168. package/lib/command/layer/AcApLayerOnCmd.d.ts.map +1 -0
  169. package/lib/command/layer/AcApLayerOnCmd.js +138 -0
  170. package/lib/command/layer/AcApLayerOnCmd.js.map +1 -0
  171. package/lib/command/layer/AcApLayerPCmd.d.ts +83 -0
  172. package/lib/command/layer/AcApLayerPCmd.d.ts.map +1 -0
  173. package/lib/command/layer/AcApLayerPCmd.js +241 -0
  174. package/lib/command/layer/AcApLayerPCmd.js.map +1 -0
  175. package/lib/command/layer/AcApLayerThawCmd.d.ts +37 -0
  176. package/lib/command/layer/AcApLayerThawCmd.d.ts.map +1 -0
  177. package/lib/command/layer/AcApLayerThawCmd.js +150 -0
  178. package/lib/command/layer/AcApLayerThawCmd.js.map +1 -0
  179. package/lib/command/layer/AcApLayerUnisoCmd.d.ts +52 -0
  180. package/lib/command/layer/AcApLayerUnisoCmd.d.ts.map +1 -0
  181. package/lib/command/layer/AcApLayerUnisoCmd.js +199 -0
  182. package/lib/command/layer/AcApLayerUnisoCmd.js.map +1 -0
  183. package/lib/command/layer/AcApLayerUnlockCmd.d.ts +50 -0
  184. package/lib/command/layer/AcApLayerUnlockCmd.d.ts.map +1 -0
  185. package/lib/command/layer/AcApLayerUnlockCmd.js +175 -0
  186. package/lib/command/layer/AcApLayerUnlockCmd.js.map +1 -0
  187. package/lib/command/layer/index.d.ts +14 -0
  188. package/lib/command/layer/index.d.ts.map +1 -0
  189. package/lib/command/layer/index.js +14 -0
  190. package/lib/command/layer/index.js.map +1 -0
  191. package/lib/command/{AcApClearMeasurementsCmd.d.ts → measure/AcApClearMeasurementsCmd.d.ts} +2 -2
  192. package/lib/command/measure/AcApClearMeasurementsCmd.d.ts.map +1 -0
  193. package/lib/command/{AcApClearMeasurementsCmd.js → measure/AcApClearMeasurementsCmd.js} +1 -1
  194. package/lib/command/measure/AcApClearMeasurementsCmd.js.map +1 -0
  195. package/lib/command/{AcApMeasureAngleCmd.d.ts → measure/AcApMeasureAngleCmd.d.ts} +2 -2
  196. package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -0
  197. package/lib/command/{AcApMeasureAngleCmd.js → measure/AcApMeasureAngleCmd.js} +3 -3
  198. package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -0
  199. package/lib/command/{AcApMeasureArcCmd.d.ts → measure/AcApMeasureArcCmd.d.ts} +2 -2
  200. package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -0
  201. package/lib/command/{AcApMeasureArcCmd.js → measure/AcApMeasureArcCmd.js} +3 -3
  202. package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -0
  203. package/lib/command/{AcApMeasureAreaCmd.d.ts → measure/AcApMeasureAreaCmd.d.ts} +2 -2
  204. package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -0
  205. package/lib/command/{AcApMeasureAreaCmd.js → measure/AcApMeasureAreaCmd.js} +6 -3
  206. package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -0
  207. package/lib/command/{AcApMeasureDistanceCmd.d.ts → measure/AcApMeasureDistanceCmd.d.ts} +2 -2
  208. package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -0
  209. package/lib/command/{AcApMeasureDistanceCmd.js → measure/AcApMeasureDistanceCmd.js} +3 -3
  210. package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -0
  211. package/lib/command/measure/index.d.ts +6 -0
  212. package/lib/command/measure/index.d.ts.map +1 -0
  213. package/lib/command/measure/index.js +6 -0
  214. package/lib/command/measure/index.js.map +1 -0
  215. package/lib/command/modify/AcApCopyCmd.d.ts +94 -0
  216. package/lib/command/modify/AcApCopyCmd.d.ts.map +1 -0
  217. package/lib/command/modify/AcApCopyCmd.js +549 -0
  218. package/lib/command/modify/AcApCopyCmd.js.map +1 -0
  219. package/lib/command/{AcApEraseCmd.d.ts → modify/AcApEraseCmd.d.ts} +2 -2
  220. package/lib/command/modify/AcApEraseCmd.d.ts.map +1 -0
  221. package/lib/command/{AcApEraseCmd.js → modify/AcApEraseCmd.js} +3 -5
  222. package/lib/command/modify/AcApEraseCmd.js.map +1 -0
  223. package/lib/command/modify/AcApMoveCmd.d.ts +16 -0
  224. package/lib/command/modify/AcApMoveCmd.d.ts.map +1 -0
  225. package/lib/command/modify/AcApMoveCmd.js +277 -0
  226. package/lib/command/modify/AcApMoveCmd.js.map +1 -0
  227. package/lib/command/modify/AcApRotateCmd.d.ts +81 -0
  228. package/lib/command/modify/AcApRotateCmd.d.ts.map +1 -0
  229. package/lib/command/modify/AcApRotateCmd.js +487 -0
  230. package/lib/command/modify/AcApRotateCmd.js.map +1 -0
  231. package/lib/command/modify/index.d.ts +5 -0
  232. package/lib/command/modify/index.d.ts.map +1 -0
  233. package/lib/command/modify/index.js +5 -0
  234. package/lib/command/modify/index.js.map +1 -0
  235. package/lib/command/{AcApBaseRevCmd.d.ts → review/AcApBaseRevCmd.d.ts} +2 -2
  236. package/lib/command/review/AcApBaseRevCmd.d.ts.map +1 -0
  237. package/lib/command/{AcApBaseRevCmd.js → review/AcApBaseRevCmd.js} +2 -2
  238. package/lib/command/review/AcApBaseRevCmd.js.map +1 -0
  239. package/lib/command/review/AcApRevCircleCmd.d.ts +18 -0
  240. package/lib/command/review/AcApRevCircleCmd.d.ts.map +1 -0
  241. package/lib/command/{AcApCircleCmd.js → review/AcApRevCircleCmd.js} +26 -42
  242. package/lib/command/review/AcApRevCircleCmd.js.map +1 -0
  243. package/lib/command/{AcApRevCloudCmd.d.ts → review/AcApRevCloudCmd.d.ts} +2 -2
  244. package/lib/command/review/AcApRevCloudCmd.d.ts.map +1 -0
  245. package/lib/command/{AcApRevCloudCmd.js → review/AcApRevCloudCmd.js} +3 -3
  246. package/lib/command/review/AcApRevCloudCmd.js.map +1 -0
  247. package/lib/command/review/AcApRevRectCmd.d.ts +18 -0
  248. package/lib/command/review/AcApRevRectCmd.d.ts.map +1 -0
  249. package/lib/command/{AcApRectCmd.js → review/AcApRevRectCmd.js} +43 -28
  250. package/lib/command/review/AcApRevRectCmd.js.map +1 -0
  251. package/lib/command/{AcApRevVisibilityCmd.d.ts → review/AcApRevVisibilityCmd.d.ts} +1 -1
  252. package/lib/command/review/AcApRevVisibilityCmd.d.ts.map +1 -0
  253. package/lib/command/{AcApRevVisibilityCmd.js → review/AcApRevVisibilityCmd.js} +2 -2
  254. package/lib/command/review/AcApRevVisibilityCmd.js.map +1 -0
  255. package/lib/command/{AcApSketchCmd.d.ts → review/AcApSketchCmd.d.ts} +2 -2
  256. package/lib/command/review/AcApSketchCmd.d.ts.map +1 -0
  257. package/lib/command/{AcApSketchCmd.js → review/AcApSketchCmd.js} +3 -3
  258. package/lib/command/review/AcApSketchCmd.js.map +1 -0
  259. package/lib/command/review/index.d.ts +7 -0
  260. package/lib/command/review/index.d.ts.map +1 -0
  261. package/lib/command/review/index.js +7 -0
  262. package/lib/command/review/index.js.map +1 -0
  263. package/lib/editor/command/AcEdCommandStack.d.ts +54 -1
  264. package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
  265. package/lib/editor/command/AcEdCommandStack.js +207 -25
  266. package/lib/editor/command/AcEdCommandStack.js.map +1 -1
  267. package/lib/editor/global/eventBus.d.ts +4 -6
  268. package/lib/editor/global/eventBus.d.ts.map +1 -1
  269. package/lib/editor/global/eventBus.js.map +1 -1
  270. package/lib/editor/input/AcEdSelectionFilter.d.ts +79 -0
  271. package/lib/editor/input/AcEdSelectionFilter.d.ts.map +1 -0
  272. package/lib/editor/input/AcEdSelectionFilter.js +231 -0
  273. package/lib/editor/input/AcEdSelectionFilter.js.map +1 -0
  274. package/lib/editor/input/AcEditor.d.ts +37 -2
  275. package/lib/editor/input/AcEditor.d.ts.map +1 -1
  276. package/lib/editor/input/AcEditor.js +89 -0
  277. package/lib/editor/input/AcEditor.js.map +1 -1
  278. package/lib/editor/input/index.d.ts +1 -0
  279. package/lib/editor/input/index.d.ts.map +1 -1
  280. package/lib/editor/input/index.js +1 -0
  281. package/lib/editor/input/index.js.map +1 -1
  282. package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts +47 -0
  283. package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts.map +1 -1
  284. package/lib/editor/input/prompt/AcEdKeywordCollection.js +19 -0
  285. package/lib/editor/input/prompt/AcEdKeywordCollection.js.map +1 -1
  286. package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts +7 -0
  287. package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts.map +1 -1
  288. package/lib/editor/input/prompt/AcEdPromptAngleOptions.js +17 -0
  289. package/lib/editor/input/prompt/AcEdPromptAngleOptions.js.map +1 -1
  290. package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts +6 -0
  291. package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts.map +1 -1
  292. package/lib/editor/input/prompt/AcEdPromptBoxOptions.js +16 -0
  293. package/lib/editor/input/prompt/AcEdPromptBoxOptions.js.map +1 -1
  294. package/lib/editor/input/prompt/AcEdPromptEntityOptions.d.ts +17 -0
  295. package/lib/editor/input/prompt/AcEdPromptEntityOptions.d.ts.map +1 -1
  296. package/lib/editor/input/prompt/AcEdPromptEntityOptions.js +30 -3
  297. package/lib/editor/input/prompt/AcEdPromptEntityOptions.js.map +1 -1
  298. package/lib/editor/input/prompt/AcEdPromptOptions.d.ts +6 -1
  299. package/lib/editor/input/prompt/AcEdPromptOptions.d.ts.map +1 -1
  300. package/lib/editor/input/prompt/AcEdPromptOptions.js +7 -0
  301. package/lib/editor/input/prompt/AcEdPromptOptions.js.map +1 -1
  302. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +6 -0
  303. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
  304. package/lib/editor/input/prompt/AcEdPromptPointOptions.js +16 -0
  305. package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
  306. package/lib/editor/input/session/AcEdKeywordSession.d.ts +65 -0
  307. package/lib/editor/input/session/AcEdKeywordSession.d.ts.map +1 -1
  308. package/lib/editor/input/session/AcEdKeywordSession.js +71 -0
  309. package/lib/editor/input/session/AcEdKeywordSession.js.map +1 -1
  310. package/lib/editor/input/ui/AcEdCommandLine.d.ts +29 -4
  311. package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
  312. package/lib/editor/input/ui/AcEdCommandLine.js +118 -24
  313. package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
  314. package/lib/editor/input/ui/AcEdFloatingInput.d.ts +1 -0
  315. package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
  316. package/lib/editor/input/ui/AcEdFloatingInput.js +12 -4
  317. package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
  318. package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts +23 -1
  319. package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts.map +1 -1
  320. package/lib/editor/input/ui/AcEdFloatingInputBoxes.js +32 -9
  321. package/lib/editor/input/ui/AcEdFloatingInputBoxes.js.map +1 -1
  322. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +28 -0
  323. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
  324. package/lib/editor/input/ui/AcEdInputManager.d.ts +377 -16
  325. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  326. package/lib/editor/input/ui/AcEdInputManager.js +994 -529
  327. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  328. package/lib/editor/input/ui/AcEdMessageType.d.ts +10 -0
  329. package/lib/editor/input/ui/AcEdMessageType.d.ts.map +1 -0
  330. package/lib/editor/input/ui/AcEdMessageType.js +2 -0
  331. package/lib/editor/input/ui/AcEdMessageType.js.map +1 -0
  332. package/lib/editor/input/ui/AcEdRubberBand.d.ts +15 -1
  333. package/lib/editor/input/ui/AcEdRubberBand.d.ts.map +1 -1
  334. package/lib/editor/input/ui/AcEdRubberBand.js +42 -10
  335. package/lib/editor/input/ui/AcEdRubberBand.js.map +1 -1
  336. package/lib/editor/input/ui/index.d.ts +1 -0
  337. package/lib/editor/input/ui/index.d.ts.map +1 -1
  338. package/lib/editor/input/ui/index.js +1 -0
  339. package/lib/editor/input/ui/index.js.map +1 -1
  340. package/lib/editor/view/AcEdBaseView.d.ts +3 -8
  341. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  342. package/lib/editor/view/AcEdBaseView.js +3 -5
  343. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  344. package/lib/editor/view/AcEdHoverController.d.ts +2 -3
  345. package/lib/editor/view/AcEdHoverController.d.ts.map +1 -1
  346. package/lib/editor/view/AcEdHoverController.js +7 -0
  347. package/lib/editor/view/AcEdHoverController.js.map +1 -1
  348. package/lib/editor/view/AcEdSelectionAction.d.ts +108 -0
  349. package/lib/editor/view/AcEdSelectionAction.d.ts.map +1 -0
  350. package/lib/editor/view/AcEdSelectionAction.js +74 -0
  351. package/lib/editor/view/AcEdSelectionAction.js.map +1 -0
  352. package/lib/editor/view/index.d.ts +1 -0
  353. package/lib/editor/view/index.d.ts.map +1 -1
  354. package/lib/editor/view/index.js +1 -0
  355. package/lib/editor/view/index.js.map +1 -1
  356. package/lib/i18n/en/command.d.ts +148 -10
  357. package/lib/i18n/en/command.d.ts.map +1 -1
  358. package/lib/i18n/en/command.js +153 -15
  359. package/lib/i18n/en/command.js.map +1 -1
  360. package/lib/i18n/en/jig.d.ts +838 -36
  361. package/lib/i18n/en/jig.d.ts.map +1 -1
  362. package/lib/i18n/en/jig.js +827 -25
  363. package/lib/i18n/en/jig.js.map +1 -1
  364. package/lib/i18n/zh/command.d.ts +148 -10
  365. package/lib/i18n/zh/command.d.ts.map +1 -1
  366. package/lib/i18n/zh/command.js +155 -17
  367. package/lib/i18n/zh/command.js.map +1 -1
  368. package/lib/i18n/zh/jig.d.ts +851 -49
  369. package/lib/i18n/zh/jig.d.ts.map +1 -1
  370. package/lib/i18n/zh/jig.js +829 -27
  371. package/lib/i18n/zh/jig.js.map +1 -1
  372. package/lib/plugin/AcApPluginManager.d.ts.map +1 -1
  373. package/lib/plugin/AcApPluginManager.js.map +1 -1
  374. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts +136 -2
  375. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts.map +1 -1
  376. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js +154 -16
  377. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js.map +1 -1
  378. package/lib/view/AcTrLayer.d.ts.map +1 -1
  379. package/lib/view/AcTrLayer.js +5 -3
  380. package/lib/view/AcTrLayer.js.map +1 -1
  381. package/lib/view/AcTrLayout.d.ts +17 -0
  382. package/lib/view/AcTrLayout.d.ts.map +1 -1
  383. package/lib/view/AcTrLayout.js +34 -2
  384. package/lib/view/AcTrLayout.js.map +1 -1
  385. package/lib/view/AcTrPickResultUtil.d.ts +4 -0
  386. package/lib/view/AcTrPickResultUtil.d.ts.map +1 -0
  387. package/lib/view/AcTrPickResultUtil.js +54 -0
  388. package/lib/view/AcTrPickResultUtil.js.map +1 -0
  389. package/lib/view/AcTrView2d.d.ts +25 -1
  390. package/lib/view/AcTrView2d.d.ts.map +1 -1
  391. package/lib/view/AcTrView2d.js +242 -104
  392. package/lib/view/AcTrView2d.js.map +1 -1
  393. package/package.json +11 -9
  394. package/lib/command/AcApArcCmd.d.ts +0 -140
  395. package/lib/command/AcApArcCmd.d.ts.map +0 -1
  396. package/lib/command/AcApArcCmd.js.map +0 -1
  397. package/lib/command/AcApBaseRevCmd.d.ts.map +0 -1
  398. package/lib/command/AcApBaseRevCmd.js.map +0 -1
  399. package/lib/command/AcApCircleCmd.d.ts +0 -22
  400. package/lib/command/AcApCircleCmd.d.ts.map +0 -1
  401. package/lib/command/AcApCircleCmd.js.map +0 -1
  402. package/lib/command/AcApClearMeasurementsCmd.d.ts.map +0 -1
  403. package/lib/command/AcApClearMeasurementsCmd.js.map +0 -1
  404. package/lib/command/AcApConvertToDxfCmd.d.ts.map +0 -1
  405. package/lib/command/AcApConvertToDxfCmd.js.map +0 -1
  406. package/lib/command/AcApConvertToSvgCmd.d.ts.map +0 -1
  407. package/lib/command/AcApConvertToSvgCmd.js.map +0 -1
  408. package/lib/command/AcApDimLinearCmd.d.ts.map +0 -1
  409. package/lib/command/AcApDimLinearCmd.js.map +0 -1
  410. package/lib/command/AcApDxfConvertor.d.ts.map +0 -1
  411. package/lib/command/AcApDxfConvertor.js.map +0 -1
  412. package/lib/command/AcApEraseCmd.d.ts.map +0 -1
  413. package/lib/command/AcApEraseCmd.js.map +0 -1
  414. package/lib/command/AcApLineCmd.d.ts +0 -22
  415. package/lib/command/AcApLineCmd.d.ts.map +0 -1
  416. package/lib/command/AcApLineCmd.js.map +0 -1
  417. package/lib/command/AcApMTextCmd.d.ts.map +0 -1
  418. package/lib/command/AcApMTextCmd.js.map +0 -1
  419. package/lib/command/AcApMeasureAngleCmd.d.ts.map +0 -1
  420. package/lib/command/AcApMeasureAngleCmd.js.map +0 -1
  421. package/lib/command/AcApMeasureArcCmd.d.ts.map +0 -1
  422. package/lib/command/AcApMeasureArcCmd.js.map +0 -1
  423. package/lib/command/AcApMeasureAreaCmd.d.ts.map +0 -1
  424. package/lib/command/AcApMeasureAreaCmd.js.map +0 -1
  425. package/lib/command/AcApMeasureDistanceCmd.d.ts.map +0 -1
  426. package/lib/command/AcApMeasureDistanceCmd.js.map +0 -1
  427. package/lib/command/AcApPolylineCmd.d.ts.map +0 -1
  428. package/lib/command/AcApPolylineCmd.js.map +0 -1
  429. package/lib/command/AcApRectCmd.d.ts +0 -23
  430. package/lib/command/AcApRectCmd.d.ts.map +0 -1
  431. package/lib/command/AcApRectCmd.js.map +0 -1
  432. package/lib/command/AcApRevCircleCmd.d.ts +0 -10
  433. package/lib/command/AcApRevCircleCmd.d.ts.map +0 -1
  434. package/lib/command/AcApRevCircleCmd.js +0 -83
  435. package/lib/command/AcApRevCircleCmd.js.map +0 -1
  436. package/lib/command/AcApRevCloudCmd.d.ts.map +0 -1
  437. package/lib/command/AcApRevCloudCmd.js.map +0 -1
  438. package/lib/command/AcApRevRectCmd.d.ts +0 -10
  439. package/lib/command/AcApRevRectCmd.d.ts.map +0 -1
  440. package/lib/command/AcApRevRectCmd.js.map +0 -1
  441. package/lib/command/AcApRevVisibilityCmd.d.ts.map +0 -1
  442. package/lib/command/AcApRevVisibilityCmd.js.map +0 -1
  443. package/lib/command/AcApSketchCmd.d.ts.map +0 -1
  444. package/lib/command/AcApSketchCmd.js.map +0 -1
  445. package/lib/command/AcApSplineCmd.d.ts +0 -20
  446. package/lib/command/AcApSplineCmd.d.ts.map +0 -1
  447. package/lib/command/AcApSplineCmd.js +0 -213
  448. package/lib/command/AcApSplineCmd.js.map +0 -1
  449. package/lib/command/AcApSvgConvertor.d.ts.map +0 -1
  450. package/lib/command/AcApSvgConvertor.js.map +0 -1
  451. package/lib/command/AcApZoomToBoxCmd.d.ts +0 -29
  452. package/lib/command/AcApZoomToBoxCmd.d.ts.map +0 -1
  453. package/lib/command/AcApZoomToBoxCmd.js.map +0 -1
  454. /package/lib/command/{AcApDxfConvertor.d.ts → convert/AcApDxfConvertor.d.ts} +0 -0
  455. /package/lib/command/{AcApSvgConvertor.d.ts → convert/AcApSvgConvertor.d.ts} +0 -0
@@ -15,7 +15,7 @@ var AcEdFloatingInputBoxes = /** @class */ (function () {
15
15
  */
16
16
  function AcEdFloatingInputBoxes(options) {
17
17
  var _this = this;
18
- var _a;
18
+ var _a, _b, _c;
19
19
  this.parent = options.parent;
20
20
  this.twoInputs = (_a = options.twoInputs) !== null && _a !== void 0 ? _a : true;
21
21
  // Bind events
@@ -33,6 +33,10 @@ var AcEdFloatingInputBoxes = /** @class */ (function () {
33
33
  this.onCommit = options.onCommit;
34
34
  this.onChange = options.onChange;
35
35
  this.onCancel = options.onCancel;
36
+ this.onNone = options.onNone;
37
+ this.allowNone = (_b = options.allowNone) !== null && _b !== void 0 ? _b : false;
38
+ this.useDefaultValue = (_c = options.useDefaultValue) !== null && _c !== void 0 ? _c : false;
39
+ this.defaultValue = options.defaultValue;
36
40
  // Focus/select after mount
37
41
  if (options.autoFocus !== false) {
38
42
  setTimeout(function () {
@@ -47,7 +51,7 @@ var AcEdFloatingInputBoxes = /** @class */ (function () {
47
51
  /** Returns true if user typed in ANY input box */
48
52
  get: function () {
49
53
  var _a;
50
- return this.xInput.userTyped || !!((_a = this.xInput) === null || _a === void 0 ? void 0 : _a.userTyped);
54
+ return this.xInput.userTyped || !!((_a = this.yInput) === null || _a === void 0 ? void 0 : _a.userTyped);
51
55
  },
52
56
  enumerable: false,
53
57
  configurable: true
@@ -113,7 +117,7 @@ var AcEdFloatingInputBoxes = /** @class */ (function () {
113
117
  * Handles keyboard events (Enter for commit, Escape for cancel).
114
118
  */
115
119
  AcEdFloatingInputBoxes.prototype.handleKeyDown = function (e) {
116
- var _a, _b;
120
+ var _a, _b, _c;
117
121
  // Find out which input element triggers this event
118
122
  var currentInput = this.xInput;
119
123
  var nextInput = this.yInput;
@@ -122,19 +126,38 @@ var AcEdFloatingInputBoxes = /** @class */ (function () {
122
126
  nextInput = this.xInput;
123
127
  }
124
128
  if (e.key === 'Enter') {
125
- var state = this.validate();
126
- if (state.isValid && state.value != null) {
127
- (_a = this.onCommit) === null || _a === void 0 ? void 0 : _a.call(this, state.value);
128
- currentInput.markValid();
129
+ if (this.useDefaultValue && !this.userTyped) {
130
+ var committed = !this.onCommit || this.onCommit(this.defaultValue);
131
+ if (committed) {
132
+ currentInput.markValid();
133
+ }
134
+ else {
135
+ currentInput.markInvalid();
136
+ }
137
+ e.preventDefault();
138
+ e.stopPropagation();
139
+ return;
140
+ }
141
+ // When allowNone is set and the user has not manually typed coordinates,
142
+ // treat Enter as PromptStatus.None so commands can finish naturally.
143
+ if (this.allowNone && !this.userTyped) {
144
+ (_a = this.onNone) === null || _a === void 0 ? void 0 : _a.call(this);
129
145
  }
130
146
  else {
131
- currentInput.markInvalid();
147
+ var state = this.validate();
148
+ if (state.isValid && state.value != null) {
149
+ (_b = this.onCommit) === null || _b === void 0 ? void 0 : _b.call(this, state.value);
150
+ currentInput.markValid();
151
+ }
152
+ else {
153
+ currentInput.markInvalid();
154
+ }
132
155
  }
133
156
  e.preventDefault();
134
157
  e.stopPropagation();
135
158
  }
136
159
  else if (e.key === 'Escape') {
137
- (_b = this.onCancel) === null || _b === void 0 ? void 0 : _b.call(this);
160
+ (_c = this.onCancel) === null || _c === void 0 ? void 0 : _c.call(this);
138
161
  e.preventDefault();
139
162
  e.stopPropagation();
140
163
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdFloatingInputBoxes.js","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdFloatingInputBoxes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAsD7D;;;;;;;GAOG;AACH;IA+BE;;;;OAIG;IACH,gCAAY,OAAyC;QAArD,iBA8BC;;QA7BC,IAAI,CAAC,MAAM,GAAG,O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G,KAAK,QAAQ,EAAE,CAAC;YAC9B,MAAA,IAAI,CAAC,QAAQ,oDAAI,CAAA;YACjB,CAAC,CAAC,cAAc,EAAE,CAAA;YAClB,CAAC,CAAC,eAAe,EAAE,CAAA;QACrB,CAAC;aAAM,IAAI,CAAC,CAAC,GAAG,KAAK,KAAK,EAAE,CAAC;YAC3B,CAAC,CAAC,cAAc,EAAE,CAAA;YAClB,IAAI,SAAS,EAAE,CAAC;gBACd,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,EAAE,CAAA;gBAClB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,EAAE,CAAA;YACrB,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;;OAIG;IACK,yCAAQ,GAAhB;QACE,IAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAA;QACrC,IAAM,IAAI,GACR,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;QACtE,OAAO,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;IAC9C,CAAC;IACH,6BAAC;AAAD,CAAC,AAxMD,IAwMC"}
@@ -55,6 +55,10 @@ export type AcEdFloatingInputChangeCallback<T> = (state: AcEdFloatingInputValida
55
55
  * typically by pressing Escape or programmatically via `hide()`.
56
56
  */
57
57
  export type AcEdFloatingInputCancelCallback = () => void;
58
+ /**
59
+ * Callback invoked when user confirms "no input" (Enter with AllowNone).
60
+ */
61
+ export type AcEdFloatingInputNoneCallback = () => void;
58
62
  /**
59
63
  * Callback invoked on mousemove to update the preview geometry.
60
64
  */
@@ -103,6 +107,11 @@ export interface AcEdFloatingInputOptions<T> {
103
107
  * The base point used to draw rubber band or base line
104
108
  */
105
109
  basePoint?: AcGePoint2dLike | undefined;
110
+ /**
111
+ * Base angle in degrees used by angle rubber-band preview as the 0-degree direction.
112
+ * If not specified, +X direction is used.
113
+ */
114
+ baseAngle?: number;
106
115
  /**
107
116
  * The flag to indicate whether to show base line only instead of showing the whole
108
117
  * rubber band. The flog takes effect only if 'basePoint' is specified in options.
@@ -134,5 +143,24 @@ export interface AcEdFloatingInputOptions<T> {
134
143
  * Callback invoked on cancellation (Escape or hide()).
135
144
  */
136
145
  onCancel?: AcEdFloatingInputCancelCallback;
146
+ /**
147
+ * Callback invoked when user enters no value and prompt allows none.
148
+ */
149
+ onNone?: AcEdFloatingInputNoneCallback;
150
+ /**
151
+ * Whether pressing Enter with no manual input should submit defaultValue.
152
+ */
153
+ useDefaultValue?: boolean;
154
+ /**
155
+ * Default value submitted when Enter is pressed with no manual input and
156
+ * useDefaultValue is true.
157
+ */
158
+ defaultValue?: T;
159
+ /**
160
+ * When true, pressing Enter without having manually typed coordinates
161
+ * cancels the prompt instead of committing the dynamic-preview value.
162
+ * Mirrors AutoCAD's `PromptPointOptions.AllowNone`.
163
+ */
164
+ allowNone?: boolean;
137
165
  }
138
166
  //# sourceMappingURL=AcEdFloatingInputTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdFloatingInputTypes.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdFloatingInputTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,wCAAwC;IACxC,CAAC,EAAE,MAAM,CAAA;IACT,wCAAwC;IACxC,CAAC,CAAC,EAAE,MAAM,CAAA;CACX;AAED,MAAM,WAAW,6BAA6B,CAAC,CAAC;IAC9C,wBAAwB;IACxB,KAAK,EAAE,CAAC,CAAA;IACR,8EAA8E;IAC9E,GAAG,EAAE,wBAAwB,CAAA;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,i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C,CAAA;IAElD;;OAEG;IACH,QAAQ,CAAC,EAAE,+BAA+B,CAAC,CAAC,CAAC,CAAA;IAE7C;;OAEG;IACH,QAAQ,CAAC,EAAE,+BAA+B,CAAC,CAAC,CAAC,CAAA;IAE7C;;OAEG;IACH,QAAQ,CAAC,EAAE,+BAA+B,CAAA;IAE1C;;OAEG;IACH,MAAM,CAAC,EAAE,6BAA6B,CAAA;IAEtC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,CAAA;IAEhB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
@@ -2,6 +2,7 @@ import { AcEdBaseView } from '../../view';
2
2
  import { AcEdInputModifiers } from '../AcEdInputModifiers';
3
3
  import { AcEdInputToggles } from '../AcEdInputToggles';
4
4
  import { AcEdPromptAngleOptions, AcEdPromptBoxOptions, AcEdPromptBoxResult, AcEdPromptDistanceOptions, AcEdPromptDoubleOptions, AcEdPromptDoubleResult, AcEdPromptEntityOptions, AcEdPromptEntityResult, AcEdPromptIntegerOptions, AcEdPromptIntegerResult, AcEdPromptKeywordOptions, AcEdPromptPointOptions, AcEdPromptPointResult, AcEdPromptResult, AcEdPromptSelectionOptions, AcEdPromptSelectionResult, AcEdPromptStringOptions } from '../prompt';
5
+ import { AcEdMessageType } from './AcEdMessageType';
5
6
  /**
6
7
  * A fully type-safe TypeScript class providing CAD-style interactive user input
7
8
  * using floating HTML input boxes and mouse events. Supports collecting points,
@@ -67,6 +68,26 @@ export declare class AcEdInputManager {
67
68
  enqueueScriptInputs(inputs: string[]): void;
68
69
  /** Clears any pending scripted inputs. */
69
70
  clearScriptInputs(): void;
71
+ /**
72
+ * Displays a typed message in the command-line message panel.
73
+ *
74
+ * @param message - Message text to render
75
+ * @param type - Message severity controlling the rendered style
76
+ * @param msgKey - Optional localization key associated with the message
77
+ */
78
+ showMessage(message: string, type?: AcEdMessageType, msgKey?: string): void;
79
+ /**
80
+ * Returns the next scripted token without consuming it.
81
+ *
82
+ * @returns Next queued scripted token, or `undefined` when empty.
83
+ */
84
+ peekScriptInput(): string;
85
+ /**
86
+ * Consumes and returns the next scripted token.
87
+ *
88
+ * @returns Next queued scripted token, or `undefined` when empty.
89
+ */
90
+ consumeScriptInput(): string | undefined;
70
91
  /**
71
92
  * Injects minimal CSS required for the floating input and preview rectangle.
72
93
  * Useful when you do not have a separate CSS file.
@@ -79,37 +100,236 @@ export declare class AcEdInputManager {
79
100
  * @param type Optional type: 'point' | 'distance' | 'angle'
80
101
  */
81
102
  private formatNumber;
103
+ /**
104
+ * Returns whether the supplied prompt defines any keywords.
105
+ *
106
+ * Keyword-aware prompts need extra command-line wiring so textual input can
107
+ * be interpreted as keyword picks instead of free-form values. This helper
108
+ * centralizes the check and gracefully handles prompts that expose no keyword
109
+ * collection.
110
+ *
111
+ * @param options - Prompt options to inspect
112
+ * @returns `true` when at least one keyword is registered on the prompt
113
+ */
82
114
  private hasKeywords;
115
+ /**
116
+ * Builds a keyword-only prompt options object from a general prompt.
117
+ *
118
+ * Several input flows support optional keywords in parallel with their main
119
+ * acquisition mode. Rather than duplicating keyword definitions manually, the
120
+ * original prompt's keyword metadata is cloned into a dedicated
121
+ * `AcEdPromptKeywordOptions` instance that can be passed to the command-line
122
+ * keyword session.
123
+ *
124
+ * @typeParam T - Value type produced by the source prompt
125
+ * @param options - Source prompt whose keyword definitions should be copied
126
+ * @returns A keyword prompt configured with the same message and keyword set
127
+ */
83
128
  private buildKeywordOptions;
129
+ /**
130
+ * Copies keyword definitions from one prompt options object to another.
131
+ *
132
+ * This is primarily used by composite prompts such as `getBox()`, which break
133
+ * a higher-level workflow into multiple sub-prompts while preserving the same
134
+ * keyword vocabulary and default keyword behavior across each stage.
135
+ *
136
+ * @param source - Prompt options providing the keyword definitions
137
+ * @param target - Prompt options receiving the cloned keyword definitions
138
+ */
84
139
  private copyKeywords;
140
+ /**
141
+ * Resolves a picked object id back to its database entity instance.
142
+ *
143
+ * View-level picking only returns lightweight hit-test data such as object
144
+ * ids and bounding information. Prompt validation, however, needs access to
145
+ * the backing `AcDbEntity` so it can inspect runtime metadata like the entity
146
+ * type and layer.
147
+ *
148
+ * @param objectId - Object id returned by the spatial pick query
149
+ * @returns The matching database entity, or `undefined` if it can no longer be found
150
+ */
151
+ private getEntityById;
152
+ /**
153
+ * Returns whether the specified entity belongs to a locked layer.
154
+ *
155
+ * The entity itself only stores its layer name, so this helper resolves the
156
+ * layer record from the current drawing database and inspects its lock state.
157
+ * Missing layer records are treated as unlocked to avoid rejecting input due
158
+ * to incomplete metadata.
159
+ *
160
+ * @param entity - Entity being evaluated for prompt selection
161
+ * @returns `true` if the entity's layer exists and is locked; otherwise `false`
162
+ */
163
+ private isEntityOnLockedLayer;
164
+ /**
165
+ * Checks whether a picked entity satisfies the prompt's allowed-class filter.
166
+ *
167
+ * Different parts of the stack expose the entity type in slightly different
168
+ * forms. The data-model layer provides a short CAD type name through
169
+ * `entity.type` (for example `Line`), while runtime inspection exposes the
170
+ * TypeScript constructor name (for example `AcDbLine`). To maximize
171
+ * compatibility with existing caller expectations, both forms are tested
172
+ * against the prompt's allow-list.
173
+ *
174
+ * @param entity - Picked entity being validated
175
+ * @param options - Prompt options containing the configured allowed classes
176
+ * @returns `true` when the entity matches at least one allowed class, or when
177
+ * no class restriction has been configured
178
+ */
179
+ private isEntityClassAllowed;
180
+ /**
181
+ * Starts a command-line keyword session for the given prompt when needed.
182
+ *
183
+ * Many interactive prompts accept both mouse-driven input and typed keywords
184
+ * at the same time. This helper lazily creates the command-line keyword
185
+ * session only when keywords are actually configured, and returns a small
186
+ * control object that lets callers await or cancel that session.
187
+ *
188
+ * @param options - Prompt options that may define keywords
189
+ * @param allowTyping - Whether arbitrary typing is allowed alongside keyword completion
190
+ * @returns An object containing the keyword promise and cancel callback, or
191
+ * `undefined` when the prompt has no keywords
192
+ */
85
193
  private startKeywordSession;
194
+ /**
195
+ * Narrows an unknown error value to the internal keyword control-flow error.
196
+ *
197
+ * Prompt implementations use {@link AcEdKeywordInputError} as a private
198
+ * mechanism for bubbling a keyword pick out of deeply nested async UI flows.
199
+ * This type guard keeps the outer prompt wrappers readable while preserving
200
+ * strong typing for the extracted keyword token.
201
+ *
202
+ * @param error - Unknown error value thrown from an input workflow
203
+ * @returns `true` if the error represents a keyword selection
204
+ */
86
205
  private isPromptKeyword;
87
206
  /**
88
- * Public point input API.
207
+ * Converts internal prompt control-flow errors to typed prompt results.
208
+ *
209
+ * @typeParam T - Prompt result type to construct
210
+ * @param error - Unknown error thrown from prompt workflow
211
+ * @param handlers - Result factories for mapped prompt statuses
212
+ * @returns Mapped prompt result when recognized; otherwise `undefined`
213
+ */
214
+ private mapPromptError;
215
+ /**
216
+ * Attaches keyword text to a prompt result and returns it.
217
+ */
218
+ private withKeywordResult;
219
+ /**
220
+ * Maps internal control-flow errors to prompt results by status constructor.
221
+ *
222
+ * @typeParam T - Prompt result type
223
+ * @param error - Unknown error thrown from prompt workflow
224
+ * @param create - Factory creating a result from target status
225
+ * @param options - Toggles for supported mapped statuses
226
+ */
227
+ private mapPromptErrorToResult;
228
+ /**
229
+ * Executes prompt workflow with centralized try/catch mapping.
230
+ *
231
+ * @typeParam T - Raw successful value from prompt workflow
232
+ * @typeParam R - Prompt result type
233
+ * @param run - Async prompt workflow that may throw control-flow errors
234
+ * @param onOk - Maps successful workflow value to result object
235
+ * @param create - Creates a result object from mapped prompt status
236
+ * @param options - Toggles for supported mapped statuses
237
+ */
238
+ private executePrompt;
239
+ /**
240
+ * Extracts default-value behavior from prompt options when supported.
241
+ */
242
+ private resolvePromptDefaultValue;
243
+ /**
244
+ * Prompts the user to specify a point.
245
+ *
246
+ * The point may be supplied by clicking in the view, typing coordinates into
247
+ * the floating input, or consuming a queued scripted input token. Keywords are
248
+ * also supported when configured on the prompt options.
249
+ *
250
+ * @param options - Point prompt options controlling messaging, base-point
251
+ * behavior, jig integration, and keywords
252
+ * @returns A prompt result containing the picked point, cancel status, or keyword
89
253
  */
90
254
  getPoint(options: AcEdPromptPointOptions): Promise<AcEdPromptPointResult>;
91
255
  /**
92
- * Prompt the user to type a numeric value. If integerOnly is true, integers
93
- * are enforced. The input is validated and the box will be marked invalid if
94
- * the typed value does not conform, allowing the user to retype.
256
+ * Prompts the user for a purely typed numeric value through floating input.
257
+ *
258
+ * This helper is shared by distance, angle, double, and integer prompts when
259
+ * no mouse-driven geometric reference is needed. Validation is delegated to
260
+ * the supplied handler so the floating UI can mark invalid values and keep
261
+ * the prompt alive until the user enters an acceptable number.
262
+ *
263
+ * @param options - Numeric prompt options describing the message and keyword set
264
+ * @param handler - Parser/validator responsible for converting raw text into a number
265
+ * @returns A promise that resolves to the parsed numeric value
95
266
  */
96
267
  private getNumberTyped;
97
- /** Request a distance (number) from the user. */
268
+ /**
269
+ * Prompts the user to specify a distance value.
270
+ *
271
+ * When a base point is available, the floating input previews the live
272
+ * distance from that reference point to the current cursor. Otherwise, the
273
+ * method falls back to typed numeric entry only. Scripted inputs and keywords
274
+ * are supported as well.
275
+ *
276
+ * @param options - Distance prompt options controlling base-point behavior and messaging
277
+ * @returns A prompt result containing the resolved distance, cancel status, or keyword
278
+ */
98
279
  getDistance(options: AcEdPromptDistanceOptions): Promise<AcEdPromptDoubleResult>;
99
- /** Request an angle in degrees from the user. */
280
+ /**
281
+ * Prompts the user to specify an angle in degrees.
282
+ *
283
+ * If a base point is available, the cursor position is converted into a live
284
+ * angular preview relative to that point and the optional prompt base angle.
285
+ * Without a geometric reference, the method accepts typed numeric input only.
286
+ *
287
+ * @param options - Angle prompt options controlling base point, base angle, and messaging
288
+ * @returns A prompt result containing the resolved angle, cancel status, or keyword
289
+ */
100
290
  getAngle(options: AcEdPromptAngleOptions): Promise<AcEdPromptDoubleResult>;
101
- /** Request a double/float from the user. */
291
+ /**
292
+ * Prompts the user for a floating-point number.
293
+ *
294
+ * This is the generic free-form numeric entry path used when no geometric
295
+ * interpretation such as distance or angle is required.
296
+ *
297
+ * @param options - Double prompt options controlling validation and messaging
298
+ * @returns A prompt result containing the parsed number, cancel status, or keyword
299
+ */
102
300
  getDouble(options: AcEdPromptDoubleOptions): Promise<AcEdPromptDoubleResult>;
103
- /** Request an integer from the user. */
301
+ /**
302
+ * Prompts the user for an integer value.
303
+ *
304
+ * The supplied integer handler enforces integer-only parsing for both typed
305
+ * input and scripted command input.
306
+ *
307
+ * @param options - Integer prompt options controlling validation and messaging
308
+ * @returns A prompt result containing the parsed integer, cancel status, or keyword
309
+ */
104
310
  getInteger(options: AcEdPromptIntegerOptions): Promise<AcEdPromptIntegerResult>;
105
311
  /**
106
- * Prompt the user to type an arbitrary string. Resolved when Enter is pressed.
312
+ * Prompts the user to type an arbitrary string.
313
+ *
314
+ * The value is collected through the shared floating-input pipeline so it can
315
+ * participate in the same cancellation, keyword, and scripted-input behavior
316
+ * as the other prompt types.
317
+ *
318
+ * @param options - String prompt options controlling the prompt message and keywords
319
+ * @returns A prompt result containing the entered string, cancel status, or keyword
107
320
  */
108
321
  getString(options: AcEdPromptStringOptions): Promise<AcEdPromptResult>;
109
322
  /**
110
- * Prompt the user to type a keyword. Resolved when Enter is pressed.
323
+ * Prompts the user to enter one of the configured keywords.
324
+ *
325
+ * Unlike the mixed-mode keyword sessions used by other prompt types, this
326
+ * method runs a dedicated keyword prompt and returns the chosen keyword as the
327
+ * result value.
328
+ *
329
+ * @param options - Keyword prompt options describing the allowed keywords
330
+ * @returns A prompt result containing the chosen keyword or cancel status
111
331
  */
112
- getKeywords(options: AcEdPromptKeywordOptions): Promise<string>;
332
+ getKeywords(options: AcEdPromptKeywordOptions): Promise<AcEdPromptResult>;
113
333
  /**
114
334
  * Prompts the user to select one or more entities by mouse interaction.
115
335
  *
@@ -141,43 +361,184 @@ export declare class AcEdInputManager {
141
361
  getSelection(options: AcEdPromptSelectionOptions): Promise<AcEdPromptSelectionResult>;
142
362
  /**
143
363
  * Prompts the user to select a single entity.
144
- * Similar to Editor.GetEntity() in AutoCAD.
364
+ *
365
+ * Selection is performed by clicking in the view and validating the first
366
+ * hit-tested entity under the cursor. The picked entity may be rejected when
367
+ * it belongs to a locked layer or does not satisfy the prompt's allowed-class
368
+ * filter, in which case the rejection message is shown and the prompt remains
369
+ * active. Keywords and `AllowNone` behavior are also supported.
370
+ *
371
+ * @param options - Entity prompt options controlling filtering, messaging, and keywords
372
+ * @returns A prompt result containing the selected entity id, picked point,
373
+ * cancel status, or keyword
145
374
  */
146
375
  getEntity(options: AcEdPromptEntityOptions): Promise<AcEdPromptEntityResult>;
147
376
  /**
148
377
  * Prompt the user to specify a rectangular box by selecting two corners.
149
378
  * Each corner may be specified by clicking on the canvas or typing "x,y".
150
379
  * A live HTML overlay rectangle previews the box as the user moves the mouse.
380
+ *
381
+ * The box prompt is implemented as two chained point prompts. Keywords from
382
+ * the original box prompt are copied into each corner prompt so the caller
383
+ * sees a consistent interaction model across both stages.
384
+ *
385
+ * @param options - Box prompt options controlling corner messages, preview behavior, and keywords
386
+ * @returns A prompt result containing the final 2D box, cancel status, or keyword
151
387
  */
152
388
  getBox(options: AcEdPromptBoxOptions): Promise<AcEdPromptBoxResult>;
153
389
  /**
154
390
  * Shared point input logic used by getPoint() and getBox(). Accepts "x,y"
155
391
  * typed input OR mouse click.
392
+ *
393
+ * This helper optionally wires extra cleanup and preview callbacks so
394
+ * higher-level workflows can overlay additional temporary graphics while
395
+ * reusing the same point acquisition behavior.
396
+ *
397
+ * @param options - Point prompt options controlling the interaction
398
+ * @param cleanup - Optional callback invoked when the point prompt ends
399
+ * @param drawPreview - Optional callback invoked as the cursor moves for live preview rendering
400
+ * @returns A promise that resolves to the chosen point
156
401
  */
157
402
  private getPointInternal;
158
403
  /**
159
404
  * Attempts to consume one scripted input and parse it as a point.
160
405
  * Supported forms: "x,y", "x,y,z", or "x y".
406
+ *
407
+ * Successful scripted points also update `lastPoint` so subsequent prompts
408
+ * that rely on prior geometric context behave the same way as with manual
409
+ * point picking.
410
+ *
411
+ * @param options - Point prompt options used to validate the scripted coordinates
412
+ * @returns Parsed point value, or `undefined` when no scripted token is queued
413
+ * @throws Error if a queued scripted token cannot be parsed as a valid point
161
414
  */
162
415
  private tryGetScriptedPoint;
163
416
  /**
164
417
  * Attempts to consume one scripted input and parse it with the supplied handler.
418
+ *
419
+ * Scripted input is used to emulate command-line entry in automated or
420
+ * replayed workflows. This helper keeps the parsing path consistent with
421
+ * interactive input by delegating to the same handler implementation used by
422
+ * the floating-input UI.
423
+ *
424
+ * @typeParam T - Parsed value type
425
+ * @param handler - Input handler used to parse the queued token
426
+ * @returns Parsed value, or `undefined` when no scripted token is available
427
+ * @throws Error if a queued token exists but fails validation
165
428
  */
166
429
  private tryGetScriptedValue;
430
+ /**
431
+ * Attempts to consume one scripted numeric token.
432
+ *
433
+ * This is a thin specialization of {@link tryGetScriptedValue} that narrows
434
+ * the accepted handler types to those used by numeric-style prompts.
435
+ *
436
+ * @param handler - Numeric handler used to parse the queued token
437
+ * @returns Parsed numeric value, or `undefined` when no scripted token is queued
438
+ */
167
439
  private tryGetScriptedNumber;
440
+ /**
441
+ * Removes and returns the next queued scripted input token.
442
+ *
443
+ * @returns The next scripted token, or `undefined` when the queue is empty
444
+ */
168
445
  private dequeueScriptInput;
446
+ /**
447
+ * Splits a scripted point token into x/y coordinate components.
448
+ *
449
+ * The accepted formats intentionally mirror common CAD command-line point
450
+ * entry conventions, including comma-separated coordinates and whitespace-
451
+ * separated coordinates. An optional third `z` component is tolerated for
452
+ * compatibility, but only the `x` and `y` values are used by 2D prompts.
453
+ *
454
+ * @param token - Raw scripted point token
455
+ * @returns Extracted x/y string pair, or `undefined` if the token is malformed
456
+ */
169
457
  private splitScriptedPoint;
458
+ /**
459
+ * Returns whether an unknown error value represents prompt cancellation.
460
+ *
461
+ * Prompt flows normalize cancellation to a regular `Error` with the message
462
+ * `'cancelled'`. This helper keeps the outer result-conversion code concise
463
+ * and consistent across prompt types.
464
+ *
465
+ * @param error - Unknown error value thrown from an input workflow
466
+ * @returns `true` if the error represents prompt cancellation
467
+ */
170
468
  private isPromptCancelled;
469
+ /**
470
+ * Returns whether an unknown error value represents PromptStatus.None.
471
+ *
472
+ * @param error - Unknown error value thrown from an input workflow
473
+ * @returns `true` if the error represents "no input" confirmation
474
+ */
475
+ private isPromptNone;
476
+ /**
477
+ * Reads SHORTCUTMENU value from current working database.
478
+ *
479
+ * @returns Normalized 0..3 shortcut-menu mode
480
+ */
481
+ private getShortcutMenuMode;
482
+ /**
483
+ * Resolves right-click behavior for current prompt session.
484
+ *
485
+ * SHORTCUTMENU:
486
+ * 0 => always Enter
487
+ * 1 => Enter in command, menu when idle
488
+ * 2 => menu in command
489
+ * 3 => always menu
490
+ */
491
+ private shouldUseRightClickEnter;
492
+ /**
493
+ * Synchronizes the stored modifier-key snapshot with a DOM keyboard event.
494
+ *
495
+ * Floating preview rendering depends on modifier state for behaviors such as
496
+ * temporary mode switches. This helper updates the cached modifier snapshot
497
+ * and reports whether anything actually changed so callers can avoid
498
+ * unnecessary preview refreshes.
499
+ *
500
+ * @param e - Keyboard-like event carrying modifier-key flags
501
+ * @returns `true` if any modifier flag changed; otherwise `false`
502
+ */
171
503
  private updateModifierStateFromEvent;
504
+ /**
505
+ * Handles the sticky Ctrl toggle used by certain jig interactions.
506
+ *
507
+ * Instead of tracking Ctrl as a purely held modifier, some commands treat a
508
+ * Ctrl key press as a persistent toggle. This helper flips that toggle on the
509
+ * first non-repeating keydown event for the Control key.
510
+ *
511
+ * @param e - Keyboard event to inspect
512
+ * @returns `true` if the toggle state changed and previews should refresh
513
+ */
172
514
  private handleCtrlToggleKey;
173
515
  /**
174
- * Creates a promise for floating input that will be resolved or rejected by user input.
516
+ * Extracts cross-prompt defaults from a prompt options object.
175
517
  *
176
- * This method centralizes the lifecycle of an interactive input operation,
177
- * including handling the Escape key to cancel, resolving with user-provided
178
- * values, and guaranteeing cleanup of UI elements and event handlers.
518
+ * Not every prompt type exposes the same optional properties, but the
519
+ * floating-input pipeline needs a normalized shape for values such as base
520
+ * point, dashed-baseline behavior, jig, and base angle. This helper performs
521
+ * those property-existence checks in one place.
522
+ *
523
+ * @typeParam T - Value type produced by the prompt
524
+ * @param options - Prompt options to normalize
525
+ * @returns A normalized object containing only the floating-input defaults it understands
179
526
  */
180
527
  private resolvePromptDefaults;
528
+ /**
529
+ * Runs a floating-input prompt and resolves it to a parsed value.
530
+ *
531
+ * This is the core interaction primitive used by most non-selection prompts.
532
+ * It wires together command-line keyword handling, floating input creation,
533
+ * validation, preview refreshes, jig updates, cancellation handling, and
534
+ * cleanup. The method guarantees that temporary UI and event listeners are
535
+ * torn down no matter how the prompt completes.
536
+ *
537
+ * @typeParam T - Value type produced by the prompt
538
+ * @param options - Configuration describing how the floating prompt should parse,
539
+ * validate, preview, and commit its value
540
+ * @returns A promise that resolves with the committed value or rejects on cancel/keyword
541
+ */
181
542
  private makeFloatingInputPromise;
182
543
  }
183
544
  //# sourceMappingURL=AcEdInputManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdInputManager.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdInputManager.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAatD,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EAGxB,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,yBAAyB,EAEzB,uBAAuB,EACxB,MAAM,WAAW,CAAA;AAqBlB;;;;;;GAMG;AACH,qBAAa,gBAAgB;IAC3B,8BAA8B;IAC9B,OAAO,CAAC,MAAM,CAAC,cAAc,CAA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