@mlightcad/cad-simple-viewer 1.4.11 → 1.4.13

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 (321) hide show
  1. package/dist/index.js +20139 -12511
  2. package/dist/index.umd.cjs +102 -94
  3. package/dist/libredwg-parser-worker.js +6958 -12596
  4. package/lib/app/AcApAnnotation.d.ts.map +1 -1
  5. package/lib/app/AcApAnnotation.js +3 -3
  6. package/lib/app/AcApAnnotation.js.map +1 -1
  7. package/lib/app/AcApDocManager.d.ts +61 -4
  8. package/lib/app/AcApDocManager.d.ts.map +1 -1
  9. package/lib/app/AcApDocManager.js +162 -29
  10. package/lib/app/AcApDocManager.js.map +1 -1
  11. package/lib/app/AcApDocument.d.ts +6 -0
  12. package/lib/app/AcApDocument.d.ts.map +1 -1
  13. package/lib/app/AcApDocument.js +12 -0
  14. package/lib/app/AcApDocument.js.map +1 -1
  15. package/lib/app/AcApProgress.d.ts.map +1 -1
  16. package/lib/app/AcApProgress.js +3 -3
  17. package/lib/app/AcApProgress.js.map +1 -1
  18. package/lib/app/AcApSettingManager.d.ts.map +1 -1
  19. package/lib/app/AcApSettingManager.js +3 -1
  20. package/lib/app/AcApSettingManager.js.map +1 -1
  21. package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +1 -1
  22. package/lib/command/AcApArcCmd.d.ts +140 -0
  23. package/lib/command/AcApArcCmd.d.ts.map +1 -0
  24. package/lib/command/AcApArcCmd.js +1009 -0
  25. package/lib/command/AcApArcCmd.js.map +1 -0
  26. package/lib/command/AcApCircleCmd.d.ts +59 -0
  27. package/lib/command/AcApCircleCmd.d.ts.map +1 -1
  28. package/lib/command/AcApCircleCmd.js +490 -13
  29. package/lib/command/AcApCircleCmd.js.map +1 -1
  30. package/lib/command/AcApClearMeasurementsCmd.d.ts +1 -1
  31. package/lib/command/AcApClearMeasurementsCmd.d.ts.map +1 -1
  32. package/lib/command/AcApClearMeasurementsCmd.js +2 -4
  33. package/lib/command/AcApClearMeasurementsCmd.js.map +1 -1
  34. package/lib/command/AcApConvertToDxfCmd.d.ts +9 -0
  35. package/lib/command/AcApConvertToDxfCmd.d.ts.map +1 -0
  36. package/lib/command/{AcApZoomToBoxCmd.js → AcApConvertToDxfCmd.js} +14 -40
  37. package/lib/command/AcApConvertToDxfCmd.js.map +1 -0
  38. package/lib/command/AcApConvertToPngCmd.d.ts +35 -0
  39. package/lib/command/AcApConvertToPngCmd.d.ts.map +1 -0
  40. package/lib/command/AcApConvertToPngCmd.js +127 -0
  41. package/lib/command/AcApConvertToPngCmd.js.map +1 -0
  42. package/lib/command/AcApDimLinearCmd.d.ts.map +1 -1
  43. package/lib/command/AcApDimLinearCmd.js +14 -5
  44. package/lib/command/AcApDimLinearCmd.js.map +1 -1
  45. package/lib/command/AcApDxfConvertor.d.ts +12 -0
  46. package/lib/command/AcApDxfConvertor.d.ts.map +1 -0
  47. package/lib/command/AcApDxfConvertor.js +37 -0
  48. package/lib/command/AcApDxfConvertor.js.map +1 -0
  49. package/lib/command/AcApEllipseCmd.d.ts +87 -0
  50. package/lib/command/AcApEllipseCmd.d.ts.map +1 -0
  51. package/lib/command/AcApEllipseCmd.js +583 -0
  52. package/lib/command/AcApEllipseCmd.js.map +1 -0
  53. package/lib/command/AcApEraseCmd.d.ts.map +1 -1
  54. package/lib/command/AcApEraseCmd.js +10 -6
  55. package/lib/command/AcApEraseCmd.js.map +1 -1
  56. package/lib/command/AcApHatchCmd.d.ts +210 -0
  57. package/lib/command/AcApHatchCmd.d.ts.map +1 -0
  58. package/lib/command/AcApHatchCmd.js +808 -0
  59. package/lib/command/AcApHatchCmd.js.map +1 -0
  60. package/lib/command/AcApLayerCmd.d.ts +217 -0
  61. package/lib/command/AcApLayerCmd.d.ts.map +1 -0
  62. package/lib/command/AcApLayerCmd.js +768 -0
  63. package/lib/command/AcApLayerCmd.js.map +1 -0
  64. package/lib/command/AcApLineCmd.d.ts +36 -1
  65. package/lib/command/AcApLineCmd.d.ts.map +1 -1
  66. package/lib/command/AcApLineCmd.js +159 -16
  67. package/lib/command/AcApLineCmd.js.map +1 -1
  68. package/lib/command/AcApMTextCmd.d.ts.map +1 -1
  69. package/lib/command/AcApMTextCmd.js +6 -3
  70. package/lib/command/AcApMTextCmd.js.map +1 -1
  71. package/lib/command/AcApMeasureAngleCmd.d.ts.map +1 -1
  72. package/lib/command/AcApMeasureAngleCmd.js +134 -123
  73. package/lib/command/AcApMeasureAngleCmd.js.map +1 -1
  74. package/lib/command/AcApMeasureArcCmd.d.ts.map +1 -1
  75. package/lib/command/AcApMeasureArcCmd.js +165 -147
  76. package/lib/command/AcApMeasureArcCmd.js.map +1 -1
  77. package/lib/command/AcApMeasureAreaCmd.d.ts.map +1 -1
  78. package/lib/command/AcApMeasureAreaCmd.js +186 -175
  79. package/lib/command/AcApMeasureAreaCmd.js.map +1 -1
  80. package/lib/command/AcApMeasureDistanceCmd.d.ts.map +1 -1
  81. package/lib/command/AcApMeasureDistanceCmd.js +51 -39
  82. package/lib/command/AcApMeasureDistanceCmd.js.map +1 -1
  83. package/lib/command/AcApMoveCmd.d.ts +16 -0
  84. package/lib/command/AcApMoveCmd.d.ts.map +1 -0
  85. package/lib/command/AcApMoveCmd.js +278 -0
  86. package/lib/command/AcApMoveCmd.js.map +1 -0
  87. package/lib/command/AcApPngConvertor.d.ts +95 -0
  88. package/lib/command/AcApPngConvertor.d.ts.map +1 -0
  89. package/lib/command/AcApPngConvertor.js +205 -0
  90. package/lib/command/AcApPngConvertor.js.map +1 -0
  91. package/lib/command/AcApPolygonCmd.d.ts +69 -0
  92. package/lib/command/AcApPolygonCmd.d.ts.map +1 -0
  93. package/lib/command/AcApPolygonCmd.js +422 -0
  94. package/lib/command/AcApPolygonCmd.js.map +1 -0
  95. package/lib/command/AcApPolylineCmd.d.ts +71 -0
  96. package/lib/command/AcApPolylineCmd.d.ts.map +1 -0
  97. package/lib/command/AcApPolylineCmd.js +569 -0
  98. package/lib/command/AcApPolylineCmd.js.map +1 -0
  99. package/lib/command/AcApRectCmd.d.ts +149 -4
  100. package/lib/command/AcApRectCmd.d.ts.map +1 -1
  101. package/lib/command/AcApRectCmd.js +717 -29
  102. package/lib/command/AcApRectCmd.js.map +1 -1
  103. package/lib/command/AcApRevCircleCmd.d.ts +8 -0
  104. package/lib/command/AcApRevCircleCmd.d.ts.map +1 -1
  105. package/lib/command/AcApRevCircleCmd.js +30 -6
  106. package/lib/command/AcApRevCircleCmd.js.map +1 -1
  107. package/lib/command/AcApRevCloudCmd.d.ts.map +1 -1
  108. package/lib/command/AcApRevCloudCmd.js +10 -4
  109. package/lib/command/AcApRevCloudCmd.js.map +1 -1
  110. package/lib/command/AcApRevRectCmd.d.ts +8 -0
  111. package/lib/command/AcApRevRectCmd.d.ts.map +1 -1
  112. package/lib/command/AcApRevRectCmd.js +78 -6
  113. package/lib/command/AcApRevRectCmd.js.map +1 -1
  114. package/lib/command/AcApSketchCmd.d.ts.map +1 -1
  115. package/lib/command/AcApSketchCmd.js +11 -7
  116. package/lib/command/AcApSketchCmd.js.map +1 -1
  117. package/lib/command/AcApSplineCmd.d.ts +85 -0
  118. package/lib/command/AcApSplineCmd.d.ts.map +1 -0
  119. package/lib/command/AcApSplineCmd.js +620 -0
  120. package/lib/command/AcApSplineCmd.js.map +1 -0
  121. package/lib/command/AcApSysVarCmd.d.ts.map +1 -1
  122. package/lib/command/AcApSysVarCmd.js +6 -3
  123. package/lib/command/AcApSysVarCmd.js.map +1 -1
  124. package/lib/command/AcApZoomCmd.d.ts +91 -20
  125. package/lib/command/AcApZoomCmd.d.ts.map +1 -1
  126. package/lib/command/AcApZoomCmd.js +288 -23
  127. package/lib/command/AcApZoomCmd.js.map +1 -1
  128. package/lib/command/index.d.ts +12 -1
  129. package/lib/command/index.d.ts.map +1 -1
  130. package/lib/command/index.js +12 -1
  131. package/lib/command/index.js.map +1 -1
  132. package/lib/editor/command/AcEdCommandIterator.d.ts.map +1 -1
  133. package/lib/editor/command/AcEdCommandIterator.js.map +1 -1
  134. package/lib/editor/command/AcEdCommandStack.d.ts +54 -1
  135. package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
  136. package/lib/editor/command/AcEdCommandStack.js +207 -25
  137. package/lib/editor/command/AcEdCommandStack.js.map +1 -1
  138. package/lib/editor/global/AcEdUiTheme.d.ts +4 -0
  139. package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -0
  140. package/lib/editor/global/AcEdUiTheme.js +44 -0
  141. package/lib/editor/global/AcEdUiTheme.js.map +1 -0
  142. package/lib/editor/global/index.d.ts +1 -0
  143. package/lib/editor/global/index.d.ts.map +1 -1
  144. package/lib/editor/global/index.js +1 -0
  145. package/lib/editor/global/index.js.map +1 -1
  146. package/lib/editor/input/AcEdCursorManager.d.ts +10 -0
  147. package/lib/editor/input/AcEdCursorManager.d.ts.map +1 -1
  148. package/lib/editor/input/AcEdCursorManager.js +24 -4
  149. package/lib/editor/input/AcEdCursorManager.js.map +1 -1
  150. package/lib/editor/input/AcEdInputModifiers.d.ts +39 -0
  151. package/lib/editor/input/AcEdInputModifiers.d.ts.map +1 -0
  152. package/lib/editor/input/AcEdInputModifiers.js +2 -0
  153. package/lib/editor/input/AcEdInputModifiers.js.map +1 -0
  154. package/lib/editor/input/AcEdInputToggles.d.ts +24 -0
  155. package/lib/editor/input/AcEdInputToggles.d.ts.map +1 -0
  156. package/lib/editor/input/AcEdInputToggles.js +2 -0
  157. package/lib/editor/input/AcEdInputToggles.js.map +1 -0
  158. package/lib/editor/input/AcEdPromptStateMachine.d.ts +110 -0
  159. package/lib/editor/input/AcEdPromptStateMachine.d.ts.map +1 -0
  160. package/lib/editor/input/AcEdPromptStateMachine.js +147 -0
  161. package/lib/editor/input/AcEdPromptStateMachine.js.map +1 -0
  162. package/lib/editor/input/AcEdSelectionFilter.d.ts +79 -0
  163. package/lib/editor/input/AcEdSelectionFilter.d.ts.map +1 -0
  164. package/lib/editor/input/AcEdSelectionFilter.js +231 -0
  165. package/lib/editor/input/AcEdSelectionFilter.js.map +1 -0
  166. package/lib/editor/input/AcEditor.d.ts +77 -10
  167. package/lib/editor/input/AcEditor.d.ts.map +1 -1
  168. package/lib/editor/input/AcEditor.js +162 -1
  169. package/lib/editor/input/AcEditor.js.map +1 -1
  170. package/lib/editor/input/index.d.ts +4 -0
  171. package/lib/editor/input/index.d.ts.map +1 -1
  172. package/lib/editor/input/index.js +4 -0
  173. package/lib/editor/input/index.js.map +1 -1
  174. package/lib/editor/input/marker/AcEdMarker.d.ts.map +1 -1
  175. package/lib/editor/input/marker/AcEdMarker.js +3 -3
  176. package/lib/editor/input/marker/AcEdMarker.js.map +1 -1
  177. package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts +47 -0
  178. package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts.map +1 -1
  179. package/lib/editor/input/prompt/AcEdKeywordCollection.js +30 -4
  180. package/lib/editor/input/prompt/AcEdKeywordCollection.js.map +1 -1
  181. package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts +8 -1
  182. package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts.map +1 -1
  183. package/lib/editor/input/prompt/AcEdPromptAngleOptions.js +19 -2
  184. package/lib/editor/input/prompt/AcEdPromptAngleOptions.js.map +1 -1
  185. package/lib/editor/input/prompt/AcEdPromptBoxResult.d.ts +12 -0
  186. package/lib/editor/input/prompt/AcEdPromptBoxResult.d.ts.map +1 -0
  187. package/lib/editor/input/prompt/AcEdPromptBoxResult.js +30 -0
  188. package/lib/editor/input/prompt/AcEdPromptBoxResult.js.map +1 -0
  189. package/lib/editor/input/prompt/AcEdPromptDoubleResult.d.ts +9 -0
  190. package/lib/editor/input/prompt/AcEdPromptDoubleResult.d.ts.map +1 -0
  191. package/lib/editor/input/prompt/AcEdPromptDoubleResult.js +28 -0
  192. package/lib/editor/input/prompt/AcEdPromptDoubleResult.js.map +1 -0
  193. package/lib/editor/input/prompt/AcEdPromptEntityOptions.d.ts +18 -1
  194. package/lib/editor/input/prompt/AcEdPromptEntityOptions.d.ts.map +1 -1
  195. package/lib/editor/input/prompt/AcEdPromptEntityOptions.js +32 -5
  196. package/lib/editor/input/prompt/AcEdPromptEntityOptions.js.map +1 -1
  197. package/lib/editor/input/prompt/AcEdPromptEntityResult.d.ts +14 -0
  198. package/lib/editor/input/prompt/AcEdPromptEntityResult.d.ts.map +1 -0
  199. package/lib/editor/input/prompt/AcEdPromptEntityResult.js +31 -0
  200. package/lib/editor/input/prompt/AcEdPromptEntityResult.js.map +1 -0
  201. package/lib/editor/input/prompt/AcEdPromptIntegerResult.d.ts +9 -0
  202. package/lib/editor/input/prompt/AcEdPromptIntegerResult.d.ts.map +1 -0
  203. package/lib/editor/input/prompt/AcEdPromptIntegerResult.js +28 -0
  204. package/lib/editor/input/prompt/AcEdPromptIntegerResult.js.map +1 -0
  205. package/lib/editor/input/prompt/AcEdPromptKeywordOptions.d.ts +1 -1
  206. package/lib/editor/input/prompt/AcEdPromptKeywordOptions.d.ts.map +1 -1
  207. package/lib/editor/input/prompt/AcEdPromptKeywordOptions.js +2 -2
  208. package/lib/editor/input/prompt/AcEdPromptKeywordOptions.js.map +1 -1
  209. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.d.ts +1 -1
  210. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.d.ts.map +1 -1
  211. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.js +2 -2
  212. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.js.map +1 -1
  213. package/lib/editor/input/prompt/AcEdPromptOptions.d.ts +9 -3
  214. package/lib/editor/input/prompt/AcEdPromptOptions.d.ts.map +1 -1
  215. package/lib/editor/input/prompt/AcEdPromptOptions.js +22 -4
  216. package/lib/editor/input/prompt/AcEdPromptOptions.js.map +1 -1
  217. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +1 -1
  218. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
  219. package/lib/editor/input/prompt/AcEdPromptPointOptions.js +2 -2
  220. package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
  221. package/lib/editor/input/prompt/AcEdPromptPointResult.d.ts +3 -3
  222. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.d.ts +1 -1
  223. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.d.ts.map +1 -1
  224. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.js +2 -2
  225. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.js.map +1 -1
  226. package/lib/editor/input/prompt/AcEdPromptSelectionResult.d.ts +12 -0
  227. package/lib/editor/input/prompt/AcEdPromptSelectionResult.d.ts.map +1 -0
  228. package/lib/editor/input/prompt/AcEdPromptSelectionResult.js +30 -0
  229. package/lib/editor/input/prompt/AcEdPromptSelectionResult.js.map +1 -0
  230. package/lib/editor/input/prompt/AcEdPromptStringOptions.d.ts +1 -1
  231. package/lib/editor/input/prompt/AcEdPromptStringOptions.d.ts.map +1 -1
  232. package/lib/editor/input/prompt/AcEdPromptStringOptions.js +2 -2
  233. package/lib/editor/input/prompt/AcEdPromptStringOptions.js.map +1 -1
  234. package/lib/editor/input/prompt/index.d.ts +9 -0
  235. package/lib/editor/input/prompt/index.d.ts.map +1 -1
  236. package/lib/editor/input/prompt/index.js +9 -0
  237. package/lib/editor/input/prompt/index.js.map +1 -1
  238. package/lib/editor/input/session/AcEdKeywordSession.d.ts +67 -1
  239. package/lib/editor/input/session/AcEdKeywordSession.d.ts.map +1 -1
  240. package/lib/editor/input/session/AcEdKeywordSession.js +78 -1
  241. package/lib/editor/input/session/AcEdKeywordSession.js.map +1 -1
  242. package/lib/editor/input/ui/AcEdCommandLine.d.ts +27 -1
  243. package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
  244. package/lib/editor/input/ui/AcEdCommandLine.js +75 -10
  245. package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
  246. package/lib/editor/input/ui/AcEdFloatingInput.d.ts +24 -1
  247. package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
  248. package/lib/editor/input/ui/AcEdFloatingInput.js +147 -27
  249. package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
  250. package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts +2 -0
  251. package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts.map +1 -1
  252. package/lib/editor/input/ui/AcEdFloatingInputBox.js +4 -0
  253. package/lib/editor/input/ui/AcEdFloatingInputBox.js.map +1 -1
  254. package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts +30 -1
  255. package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts.map +1 -1
  256. package/lib/editor/input/ui/AcEdFloatingInputBoxes.js +46 -15
  257. package/lib/editor/input/ui/AcEdFloatingInputBoxes.js.map +1 -1
  258. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +33 -0
  259. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
  260. package/lib/editor/input/ui/AcEdFloatingMessage.d.ts +12 -0
  261. package/lib/editor/input/ui/AcEdFloatingMessage.d.ts.map +1 -1
  262. package/lib/editor/input/ui/AcEdFloatingMessage.js +61 -2
  263. package/lib/editor/input/ui/AcEdFloatingMessage.js.map +1 -1
  264. package/lib/editor/input/ui/AcEdInputManager.d.ts +403 -29
  265. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  266. package/lib/editor/input/ui/AcEdInputManager.js +1313 -414
  267. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  268. package/lib/editor/input/ui/AcEdRubberBand.d.ts +15 -1
  269. package/lib/editor/input/ui/AcEdRubberBand.d.ts.map +1 -1
  270. package/lib/editor/input/ui/AcEdRubberBand.js +43 -11
  271. package/lib/editor/input/ui/AcEdRubberBand.js.map +1 -1
  272. package/lib/editor/view/AcEdBaseView.d.ts +66 -0
  273. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  274. package/lib/editor/view/AcEdBaseView.js +170 -0
  275. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  276. package/lib/editor/view/AcEdSpatialQueryResult.d.ts.map +1 -1
  277. package/lib/i18n/en/command.d.ts +36 -3
  278. package/lib/i18n/en/command.d.ts.map +1 -1
  279. package/lib/i18n/en/command.js +36 -3
  280. package/lib/i18n/en/command.js.map +1 -1
  281. package/lib/i18n/en/jig.d.ts +553 -0
  282. package/lib/i18n/en/jig.d.ts.map +1 -1
  283. package/lib/i18n/en/jig.js +557 -4
  284. package/lib/i18n/en/jig.js.map +1 -1
  285. package/lib/i18n/zh/command.d.ts +36 -3
  286. package/lib/i18n/zh/command.d.ts.map +1 -1
  287. package/lib/i18n/zh/command.js +36 -3
  288. package/lib/i18n/zh/command.js.map +1 -1
  289. package/lib/i18n/zh/jig.d.ts +553 -0
  290. package/lib/i18n/zh/jig.d.ts.map +1 -1
  291. package/lib/i18n/zh/jig.js +557 -4
  292. package/lib/i18n/zh/jig.js.map +1 -1
  293. package/lib/plugin/AcApPluginManager.d.ts.map +1 -1
  294. package/lib/plugin/AcApPluginManager.js.map +1 -1
  295. package/lib/util/AcApMeasurementElementGenerator.d.ts +36 -0
  296. package/lib/util/AcApMeasurementElementGenerator.d.ts.map +1 -0
  297. package/lib/util/AcApMeasurementElementGenerator.js +92 -0
  298. package/lib/util/AcApMeasurementElementGenerator.js.map +1 -0
  299. package/lib/util/index.d.ts +1 -1
  300. package/lib/util/index.d.ts.map +1 -1
  301. package/lib/util/index.js +1 -1
  302. package/lib/util/index.js.map +1 -1
  303. package/lib/view/AcTrLayer.d.ts.map +1 -1
  304. package/lib/view/AcTrLayer.js +5 -3
  305. package/lib/view/AcTrLayer.js.map +1 -1
  306. package/lib/view/AcTrLayoutView.d.ts +6 -0
  307. package/lib/view/AcTrLayoutView.d.ts.map +1 -1
  308. package/lib/view/AcTrLayoutView.js +20 -0
  309. package/lib/view/AcTrLayoutView.js.map +1 -1
  310. package/lib/view/AcTrView2d.d.ts +0 -1
  311. package/lib/view/AcTrView2d.d.ts.map +1 -1
  312. package/lib/view/AcTrView2d.js +103 -50
  313. package/lib/view/AcTrView2d.js.map +1 -1
  314. package/package.json +15 -13
  315. package/lib/command/AcApZoomToBoxCmd.d.ts +0 -29
  316. package/lib/command/AcApZoomToBoxCmd.d.ts.map +0 -1
  317. package/lib/command/AcApZoomToBoxCmd.js.map +0 -1
  318. package/lib/util/AcApMeasurementUtils.d.ts +0 -12
  319. package/lib/util/AcApMeasurementUtils.d.ts.map +0 -1
  320. package/lib/util/AcApMeasurementUtils.js +0 -36
  321. package/lib/util/AcApMeasurementUtils.js.map +0 -1
@@ -0,0 +1,231 @@
1
+ var __read = (this && this.__read) || function (o, n) {
2
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
3
+ if (!m) return o;
4
+ var i = m.call(o), r, ar = [], e;
5
+ try {
6
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
7
+ }
8
+ catch (error) { e = { error: error }; }
9
+ finally {
10
+ try {
11
+ if (r && !r.done && (m = i["return"])) m.call(i);
12
+ }
13
+ finally { if (e) throw e.error; }
14
+ }
15
+ return ar;
16
+ };
17
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
19
+ if (ar || !(i in from)) {
20
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
21
+ ar[i] = from[i];
22
+ }
23
+ }
24
+ return to.concat(ar || Array.prototype.slice.call(from));
25
+ };
26
+ var __values = (this && this.__values) || function(o) {
27
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
28
+ if (m) return m.call(o);
29
+ if (o && typeof o.length === "number") return {
30
+ next: function () {
31
+ if (o && i >= o.length) o = void 0;
32
+ return { value: o && o[i++], done: !o };
33
+ }
34
+ };
35
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
36
+ };
37
+ /**
38
+ * Represents one entity filter expression for selection operations.
39
+ *
40
+ * This class is inspired by AutoCAD .NET `SelectionFilter`, where filter clauses
41
+ * are expressed by typed DXF values. Conditions are evaluated with AND semantics.
42
+ *
43
+ * Supported typed values:
44
+ * - `AcDbDxfCode.Start` => entity type (DXF type or runtime type)
45
+ * - `AcDbDxfCode.LayerName` => layer name
46
+ * - `AcDbDxfCode.ColorName` => `entity.color.toString()`
47
+ * - `AcDbDxfCode.LinetypeName` => line type name
48
+ * - `AcDbDxfCode.LineWeight` => lineweight
49
+ * - `AcDbDxfCode.Operator` => comparison operator for next clause
50
+ *
51
+ * Supported operator tokens:
52
+ * - `=`, `==`
53
+ * - `!=`, `<>`
54
+ * - `>`, `>=`, `<`, `<=`
55
+ */
56
+ var AcEdSelectionFilter = /** @class */ (function () {
57
+ function AcEdSelectionFilter(values) {
58
+ if (values === void 0) { values = []; }
59
+ this._typedValues = __spreadArray([], __read(values), false);
60
+ }
61
+ Object.defineProperty(AcEdSelectionFilter.prototype, "typedValues", {
62
+ /**
63
+ * Returns typed values used by this filter.
64
+ */
65
+ get: function () {
66
+ return __spreadArray([], __read(this._typedValues), false);
67
+ },
68
+ enumerable: false,
69
+ configurable: true
70
+ });
71
+ /**
72
+ * Returns whether the specified entity satisfies all filter clauses.
73
+ */
74
+ AcEdSelectionFilter.prototype.matches = function (entity) {
75
+ var e_1, _a;
76
+ if (this._typedValues.length === 0) {
77
+ return true;
78
+ }
79
+ var pendingOp = 'equals';
80
+ try {
81
+ for (var _b = __values(this._typedValues), _c = _b.next(); !_c.done; _c = _b.next()) {
82
+ var tv = _c.value;
83
+ if (tv.code === -4 /* AcDbDxfCode.Operator */) {
84
+ pendingOp = this.parseOperator(tv.value);
85
+ continue;
86
+ }
87
+ if (!this.matchTypedValue(entity, tv, pendingOp)) {
88
+ return false;
89
+ }
90
+ pendingOp = 'equals';
91
+ }
92
+ }
93
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
94
+ finally {
95
+ try {
96
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
97
+ }
98
+ finally { if (e_1) throw e_1.error; }
99
+ }
100
+ return true;
101
+ };
102
+ /**
103
+ * Parses one operator token from typed-value input.
104
+ *
105
+ * Accepted tokens follow common AutoCAD comparison syntax. Unknown values
106
+ * safely fall back to equality.
107
+ *
108
+ * @param raw - Raw operator token (usually from `AcDbDxfCode.Operator`)
109
+ * @returns Normalized internal comparison operator
110
+ */
111
+ AcEdSelectionFilter.prototype.parseOperator = function (raw) {
112
+ var text = String(raw !== null && raw !== void 0 ? raw : '').trim();
113
+ switch (text) {
114
+ case '!=':
115
+ case '<>':
116
+ return 'notEquals';
117
+ case '>':
118
+ return 'greaterThan';
119
+ case '>=':
120
+ return 'greaterThanOrEqual';
121
+ case '<':
122
+ return 'lessThan';
123
+ case '<=':
124
+ return 'lessThanOrEqual';
125
+ case '=':
126
+ case '==':
127
+ default:
128
+ return 'equals';
129
+ }
130
+ };
131
+ /**
132
+ * Evaluates whether one typed-value clause matches the given entity.
133
+ *
134
+ * The method first resolves an entity-side value by DXF code, then compares
135
+ * it with the filter value using the operator currently in effect.
136
+ *
137
+ * @param entity - Entity being tested
138
+ * @param tv - Typed-value clause (`code` + `value`)
139
+ * @param op - Comparison operator for this clause
140
+ * @returns `true` if the clause matches; otherwise `false`
141
+ */
142
+ AcEdSelectionFilter.prototype.matchTypedValue = function (entity, tv, op) {
143
+ var actual = this.resolveEntityValue(entity, tv.code);
144
+ if (actual === undefined || actual === null) {
145
+ return false;
146
+ }
147
+ return this.compare(actual, tv.value, op);
148
+ };
149
+ /**
150
+ * Resolves the entity property value associated with one DXF group code.
151
+ *
152
+ * Only codes used by current Quick Select flow are mapped. Unsupported
153
+ * codes return `undefined` and are treated as non-matching clauses.
154
+ *
155
+ * @param entity - Source entity
156
+ * @param code - DXF code indicating which property to read
157
+ * @returns Resolved value for comparison, or `undefined` if unsupported
158
+ */
159
+ AcEdSelectionFilter.prototype.resolveEntityValue = function (entity, code) {
160
+ var _a;
161
+ switch (code) {
162
+ case 0 /* AcDbDxfCode.Start */:
163
+ return entity.dxfTypeName || entity.type;
164
+ case 8 /* AcDbDxfCode.LayerName */:
165
+ return entity.layer;
166
+ case 430 /* AcDbDxfCode.ColorName */:
167
+ return (_a = entity.color) === null || _a === void 0 ? void 0 : _a.toString();
168
+ case 6 /* AcDbDxfCode.LinetypeName */:
169
+ return entity.lineType;
170
+ case 370 /* AcDbDxfCode.LineWeight */:
171
+ return Number(entity.lineWeight);
172
+ default:
173
+ return undefined;
174
+ }
175
+ };
176
+ /**
177
+ * Compares runtime value and filter value with the given operator.
178
+ *
179
+ * Comparison strategy:
180
+ * - Numeric path: when both values are finite numbers
181
+ * - String path: case-insensitive lexicographic comparison otherwise
182
+ *
183
+ * @param actual - Runtime value resolved from entity
184
+ * @param expected - Target value from filter clause
185
+ * @param op - Comparison operator
186
+ * @returns `true` when comparison succeeds; otherwise `false`
187
+ */
188
+ AcEdSelectionFilter.prototype.compare = function (actual, expected, op) {
189
+ var actualNum = Number(actual);
190
+ var expectedNum = Number(expected);
191
+ var numeric = Number.isFinite(actualNum) &&
192
+ Number.isFinite(expectedNum) &&
193
+ "".concat(actual).trim() !== '' &&
194
+ "".concat(expected).trim() !== '';
195
+ if (numeric) {
196
+ switch (op) {
197
+ case 'equals':
198
+ return actualNum === expectedNum;
199
+ case 'notEquals':
200
+ return actualNum !== expectedNum;
201
+ case 'greaterThan':
202
+ return actualNum > expectedNum;
203
+ case 'greaterThanOrEqual':
204
+ return actualNum >= expectedNum;
205
+ case 'lessThan':
206
+ return actualNum < expectedNum;
207
+ case 'lessThanOrEqual':
208
+ return actualNum <= expectedNum;
209
+ }
210
+ }
211
+ var left = String(actual).toLowerCase();
212
+ var right = String(expected).toLowerCase();
213
+ switch (op) {
214
+ case 'equals':
215
+ return left === right;
216
+ case 'notEquals':
217
+ return left !== right;
218
+ case 'greaterThan':
219
+ return left > right;
220
+ case 'greaterThanOrEqual':
221
+ return left >= right;
222
+ case 'lessThan':
223
+ return left < right;
224
+ case 'lessThanOrEqual':
225
+ return left <= right;
226
+ }
227
+ };
228
+ return AcEdSelectionFilter;
229
+ }());
230
+ export { AcEdSelectionFilter };
231
+ //# sourceMappingURL=AcEdSelectionFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdSelectionFilter.js","sourceRoot":"","sources":["../../../src/editor/input/AcEdSelectionFilter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA;;;;;;;;;;;;;;;;;;GAkBG;AACH;IAGE,6BAAY,MAA6B;QAA7B,uBAAA,EAAA,WAA6B;QACvC,IAAI,CAAC,YAAY,4BAAO,MAAM,SAAC,CAAA;IACjC,CAAC;IAKD,sBAAI,4CAAW;QAHf;;WAEG;aACH;YACE,gCAAW,IAAI,CAAC,YAAY,UAAC;QAC/B,CAAC;;;OAAA;IAED;;OAEG;IACH,qCAAO,GAAP,UAAQ,MAAkB;;QACxB,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnC,OAAO,IAAI,CAAA;QACb,CAAC;QAED,IAAI,SAAS,GAA2B,QAAQ,CAAA;;YAChD,KAAiB,IAAA,KAAA,SAAA,IAAI,CAAC,YAAY,CAAA,gBAAA,4BAAE,CAAC;gBAAhC,IAAM,EAAE,WAAA;gBACX,IAAI,EAAE,CAAC,IAAI,kCAAyB,EAAE,CAAC;oBACrC,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;oBACxC,SAAQ;gBACV,CAAC;gBAED,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,EAAE,SAAS,CAAC,EAAE,CAAC;oBACjD,OAAO,KAAK,CAAA;gBACd,CAAC;gBACD,SAAS,GAAG,QAAQ,CAAA;YACtB,CAAC;;;;;;;;;QAED,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;;;;;;OAQG;IACK,2CAAa,GAArB,UAAsB,GAAY;QAChC,IAAM,IAAI,GAAG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gBACvB,OAAO,IAAI,IAAI,KAAK,CAAA;YACtB,KAAK,UAAU;gBACb,OAAO,IAAI,GAAG,KAAK,CAAA;YACrB,KAAK,iBAAiB;gBACpB,OAAO,IAAI,IAAI,KAAK,CAAA;QACxB,CAAC;IACH,CAAC;IACH,0BAAC;AAAD,CAAC,AAjLD,IAiLC"}
@@ -2,7 +2,10 @@ import { AcCmEventManager } from '@mlightcad/data-model';
2
2
  import { AcEdCommand } from '../command';
3
3
  import { AcEdBaseView } from '../view/AcEdBaseView';
4
4
  import { AcEdCorsorType } from './AcEdCursorManager';
5
- import { AcEdPromptAngleOptions, AcEdPromptBoxOptions, AcEdPromptDistanceOptions, AcEdPromptEntityOptions, AcEdPromptKeywordOptions, AcEdPromptPointOptions, AcEdPromptSelectionOptions, AcEdPromptStringOptions } from './prompt';
5
+ import { AcEdInputModifiers } from './AcEdInputModifiers';
6
+ import { AcEdInputToggles } from './AcEdInputToggles';
7
+ import { AcEdSelectionFilter } from './AcEdSelectionFilter';
8
+ import { AcEdPromptAngleOptions, AcEdPromptBoxOptions, AcEdPromptBoxResult, AcEdPromptDistanceOptions, AcEdPromptDoubleOptions, AcEdPromptDoubleResult, AcEdPromptEntityOptions, AcEdPromptEntityResult, AcEdPromptIntegerOptions, AcEdPromptIntegerResult, AcEdPromptKeywordOptions, AcEdPromptPointOptions, AcEdPromptPointResult, AcEdPromptResult, AcEdPromptSelectionOptions, AcEdPromptSelectionResult, AcEdPromptStringOptions } from './prompt';
6
9
  /**
7
10
  * Event arguments for system variable related events.
8
11
  */
@@ -82,6 +85,20 @@ export declare class AcEditor {
82
85
  * selection, distance/angle prompt, string prompt, etc.),
83
86
  */
84
87
  get isActive(): boolean;
88
+ /**
89
+ * Whether the current input session explicitly allows entity selection.
90
+ */
91
+ get isEntitySelectionActive(): boolean;
92
+ /**
93
+ * Current modifier key state (Ctrl/Shift/Alt/Meta) during input sessions.
94
+ */
95
+ getInputModifiers(): AcEdInputModifiers;
96
+ /**
97
+ * Toggle-style input states (e.g. Ctrl-press flip) during input sessions.
98
+ */
99
+ getInputToggles(): AcEdInputToggles;
100
+ /** Reset toggle-style inputs to their default state. */
101
+ resetInputToggles(): void;
85
102
  /**
86
103
  * Queues scripted command-line inputs for subsequent getXXX prompts.
87
104
  * One entry equals one Enter-confirmed input.
@@ -116,6 +133,33 @@ export declare class AcEditor {
116
133
  * ```
117
134
  */
118
135
  setCursor(cursorType: AcEdCorsorType): void;
136
+ /**
137
+ * Temporarily sets a new cursor for the duration of a function execution.
138
+ *
139
+ * This method saves the current cursor, sets the new cursor, executes the provided function,
140
+ * and then restores the original cursor regardless of whether the function succeeds or fails.
141
+ *
142
+ * @param cursorType - The cursor type to use temporarily
143
+ * @param action - The function to execute with the temporary cursor
144
+ * @returns The result of the executed function
145
+ *
146
+ * @example
147
+ * ```typescript
148
+ * // Temporarily set grab cursor for a pan operation
149
+ * await editor.withCursor(AcEdCorsorType.Grab, async () => {
150
+ * // Perform pan operation
151
+ * await this.performPan();
152
+ * });
153
+ * // Cursor is automatically restored to previous state
154
+ * ```
155
+ */
156
+ withCursor<T>(cursorType: AcEdCorsorType, action: () => Promise<T> | T): Promise<T>;
157
+ /**
158
+ * Sets the cursor color for the crosshair cursor
159
+ *
160
+ * @param color - The color for the cursor
161
+ */
162
+ setCursorColor(color: string): void;
119
163
  /**
120
164
  * Prompts the user to input a point by clicking on the view or inputting
121
165
  * one coordinate value.
@@ -126,7 +170,7 @@ export declare class AcEditor {
126
170
  *
127
171
  * @returns Promise that resolves to the input point coordinates
128
172
  */
129
- getPoint(options: AcEdPromptPointOptions): Promise<import("@mlightcad/data-model").AcGeVector3dLike>;
173
+ getPoint(options: AcEdPromptPointOptions): Promise<AcEdPromptPointResult>;
130
174
  /**
131
175
  * Prompts the user to input an angle by clicking on the view or input
132
176
  * one number.
@@ -136,7 +180,7 @@ export declare class AcEditor {
136
180
  *
137
181
  * @returns Promise that resolves to the input angle value.
138
182
  */
139
- getAngle(options: AcEdPromptAngleOptions): Promise<number>;
183
+ getAngle(options: AcEdPromptAngleOptions): Promise<AcEdPromptDoubleResult>;
140
184
  /**
141
185
  * Prompts the user to input a distance by clicking on the view or input
142
186
  * one number.
@@ -146,40 +190,63 @@ export declare class AcEditor {
146
190
  *
147
191
  * @returns Promise that resolves to the input distance value.
148
192
  */
149
- getDistance(options: AcEdPromptDistanceOptions): Promise<number>;
193
+ getDistance(options: AcEdPromptDistanceOptions): Promise<AcEdPromptDoubleResult>;
194
+ /**
195
+ * Prompts the user to input a double value.
196
+ *
197
+ * @returns Promise that resolves to the input double value.
198
+ */
199
+ getDouble(options: AcEdPromptDoubleOptions): Promise<AcEdPromptDoubleResult>;
200
+ /**
201
+ * Prompts the user to input an integer value.
202
+ *
203
+ * @returns Promise that resolves to the input integer value.
204
+ */
205
+ getInteger(options: AcEdPromptIntegerOptions): Promise<AcEdPromptIntegerResult>;
150
206
  /**
151
207
  * Prompts the user to input a string.
152
208
  *
153
209
  * @returns Promise that resolves to the input one string.
154
210
  */
155
- getString(options: AcEdPromptStringOptions): Promise<string>;
211
+ getString(options: AcEdPromptStringOptions): Promise<AcEdPromptResult>;
156
212
  /**
157
213
  * Prompts the user to input a keyword.
158
214
  *
159
215
  * @returns Promise that resolves to the input one keyword.
160
216
  */
161
- getKeywords(options: AcEdPromptKeywordOptions): Promise<string>;
217
+ getKeywords(options: AcEdPromptKeywordOptions): Promise<AcEdPromptResult>;
162
218
  /**
163
219
  * Prompts the user to input a keyword.
164
220
  *
165
221
  * @returns Promise that resolves to the input one keyword.
166
222
  */
167
- getEntity(options: AcEdPromptEntityOptions): Promise<string | null>;
223
+ getEntity(options: AcEdPromptEntityOptions): Promise<AcEdPromptEntityResult>;
168
224
  /**
169
225
  * Prompts the user to select entities using box selection.
170
226
  *
171
227
  * This method allows the user to drag a selection box to select
172
228
  * multiple entities at once. The selection behavior follows CAD
173
- * conventions (left-to-right for crossing, right-to-left for window).
229
+ * conventions (left-to-right for window, right-to-left for crossing).
174
230
  *
175
231
  * @returns Promise that resolves to the selection set containing selected entity IDs
176
232
  */
177
- getSelection(options: AcEdPromptSelectionOptions): Promise<string[]>;
233
+ getSelection(options: AcEdPromptSelectionOptions): Promise<AcEdPromptSelectionResult>;
178
234
  /**
179
235
  * Prompts the user to specify a rectangular bounding box (two corners).
180
236
  *
181
237
  * @returns Promise that resolves to rectangular bounding box.
182
238
  */
183
- getBox(options: AcEdPromptBoxOptions): Promise<import("@mlightcad/data-model").AcGeBox2d>;
239
+ getBox(options: AcEdPromptBoxOptions): Promise<AcEdPromptBoxResult>;
240
+ /**
241
+ * Selects all objects in model space that satisfy the specified filter.
242
+ *
243
+ * This method is analogous to AutoCAD .NET `Editor.SelectAll(SelectionFilter)`,
244
+ * but it does not modify the current view selection set directly. Instead, it
245
+ * returns an independent {@link AcEdPromptSelectionResult}.
246
+ *
247
+ * @param filter - Optional typed-value filter expression
248
+ * @returns Selection result containing all matched object ids
249
+ */
250
+ selectAll(filter?: AcEdSelectionFilter): AcEdPromptSelectionResult;
184
251
  }
185
252
  //# sourceMappingURL=AcEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcEditor.d.ts","sourceRoot":"","sources":["../../../src/editor/input/AcEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAqB,MAAM,qBAAqB,CAAA;AACvE,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,UAAU,CAAA;AAGjB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;;GAIG;AACH,M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EAAE,uBAAuB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI5E;;;;OAIG;IACG,WAAW,CACf,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,gBAAgB,CAAC;IAI5B;;;;OAIG;IACG,SAAS,CACb,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,sBAAsB,CAAC;IAIlC;;;;;;;;OAQG;IACG,YAAY,CAChB,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,yBAAyB,CAAC;IAIrC;;;;OAIG;IACG,MAAM,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIzE;;;;;;;;;OASG;IACH,SAAS,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,yBAAyB;CAqBnE"}
@@ -34,8 +34,22 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
+ var __values = (this && this.__values) || function(o) {
38
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
39
+ if (m) return m.call(o);
40
+ if (o && typeof o.length === "number") return {
41
+ next: function () {
42
+ if (o && i >= o.length) o = void 0;
43
+ return { value: o && o[i++], done: !o };
44
+ }
45
+ };
46
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
47
+ };
37
48
  import { AcCmEventManager } from '@mlightcad/data-model';
49
+ import { AcApDocManager } from '../../app';
38
50
  import { AcEdCursorManager } from './AcEdCursorManager';
51
+ import { AcEdSelectionSet } from './AcEdSelectionSet';
52
+ import { AcEdPromptSelectionResult, AcEdPromptStatus } from './prompt';
39
53
  import { AcEdInputManager } from './ui';
40
54
  /**
41
55
  * Advanced input handler for CAD operations providing high-level user interaction methods.
@@ -100,6 +114,32 @@ var AcEditor = /** @class */ (function () {
100
114
  enumerable: false,
101
115
  configurable: true
102
116
  });
117
+ Object.defineProperty(AcEditor.prototype, "isEntitySelectionActive", {
118
+ /**
119
+ * Whether the current input session explicitly allows entity selection.
120
+ */
121
+ get: function () {
122
+ return this._inputManager.isEntitySelectionActive;
123
+ },
124
+ enumerable: false,
125
+ configurable: true
126
+ });
127
+ /**
128
+ * Current modifier key state (Ctrl/Shift/Alt/Meta) during input sessions.
129
+ */
130
+ AcEditor.prototype.getInputModifiers = function () {
131
+ return this._inputManager.modifiers;
132
+ };
133
+ /**
134
+ * Toggle-style input states (e.g. Ctrl-press flip) during input sessions.
135
+ */
136
+ AcEditor.prototype.getInputToggles = function () {
137
+ return this._inputManager.toggles;
138
+ };
139
+ /** Reset toggle-style inputs to their default state. */
140
+ AcEditor.prototype.resetInputToggles = function () {
141
+ this._inputManager.resetToggles();
142
+ };
103
143
  /**
104
144
  * Queues scripted command-line inputs for subsequent getXXX prompts.
105
145
  * One entry equals one Enter-confirmed input.
@@ -152,6 +192,60 @@ var AcEditor = /** @class */ (function () {
152
192
  this._previousCursor = this._currentCursor;
153
193
  this._currentCursor = cursorType;
154
194
  };
195
+ /**
196
+ * Temporarily sets a new cursor for the duration of a function execution.
197
+ *
198
+ * This method saves the current cursor, sets the new cursor, executes the provided function,
199
+ * and then restores the original cursor regardless of whether the function succeeds or fails.
200
+ *
201
+ * @param cursorType - The cursor type to use temporarily
202
+ * @param action - The function to execute with the temporary cursor
203
+ * @returns The result of the executed function
204
+ *
205
+ * @example
206
+ * ```typescript
207
+ * // Temporarily set grab cursor for a pan operation
208
+ * await editor.withCursor(AcEdCorsorType.Grab, async () => {
209
+ * // Perform pan operation
210
+ * await this.performPan();
211
+ * });
212
+ * // Cursor is automatically restored to previous state
213
+ * ```
214
+ */
215
+ AcEditor.prototype.withCursor = function (cursorType, action) {
216
+ return __awaiter(this, void 0, void 0, function () {
217
+ var originalCursor;
218
+ return __generator(this, function (_a) {
219
+ switch (_a.label) {
220
+ case 0:
221
+ originalCursor = this._currentCursor;
222
+ this.setCursor(cursorType);
223
+ _a.label = 1;
224
+ case 1:
225
+ _a.trys.push([1, , 3, 4]);
226
+ return [4 /*yield*/, Promise.resolve(action())];
227
+ case 2: return [2 /*return*/, _a.sent()];
228
+ case 3:
229
+ if (originalCursor !== undefined) {
230
+ this.setCursor(originalCursor);
231
+ }
232
+ else {
233
+ this.restoreCursor();
234
+ }
235
+ return [7 /*endfinally*/];
236
+ case 4: return [2 /*return*/];
237
+ }
238
+ });
239
+ });
240
+ };
241
+ /**
242
+ * Sets the cursor color for the crosshair cursor
243
+ *
244
+ * @param color - The color for the cursor
245
+ */
246
+ AcEditor.prototype.setCursorColor = function (color) {
247
+ this._cursorManager.setCursorColor(color);
248
+ };
155
249
  /**
156
250
  * Prompts the user to input a point by clicking on the view or inputting
157
251
  * one coordinate value.
@@ -210,6 +304,36 @@ var AcEditor = /** @class */ (function () {
210
304
  });
211
305
  });
212
306
  };
307
+ /**
308
+ * Prompts the user to input a double value.
309
+ *
310
+ * @returns Promise that resolves to the input double value.
311
+ */
312
+ AcEditor.prototype.getDouble = function (options) {
313
+ return __awaiter(this, void 0, void 0, function () {
314
+ return __generator(this, function (_a) {
315
+ switch (_a.label) {
316
+ case 0: return [4 /*yield*/, this._inputManager.getDouble(options)];
317
+ case 1: return [2 /*return*/, _a.sent()];
318
+ }
319
+ });
320
+ });
321
+ };
322
+ /**
323
+ * Prompts the user to input an integer value.
324
+ *
325
+ * @returns Promise that resolves to the input integer value.
326
+ */
327
+ AcEditor.prototype.getInteger = function (options) {
328
+ return __awaiter(this, void 0, void 0, function () {
329
+ return __generator(this, function (_a) {
330
+ switch (_a.label) {
331
+ case 0: return [4 /*yield*/, this._inputManager.getInteger(options)];
332
+ case 1: return [2 /*return*/, _a.sent()];
333
+ }
334
+ });
335
+ });
336
+ };
213
337
  /**
214
338
  * Prompts the user to input a string.
215
339
  *
@@ -260,7 +384,7 @@ var AcEditor = /** @class */ (function () {
260
384
  *
261
385
  * This method allows the user to drag a selection box to select
262
386
  * multiple entities at once. The selection behavior follows CAD
263
- * conventions (left-to-right for crossing, right-to-left for window).
387
+ * conventions (left-to-right for window, right-to-left for crossing).
264
388
  *
265
389
  * @returns Promise that resolves to the selection set containing selected entity IDs
266
390
  */
@@ -289,6 +413,43 @@ var AcEditor = /** @class */ (function () {
289
413
  });
290
414
  });
291
415
  };
416
+ /**
417
+ * Selects all objects in model space that satisfy the specified filter.
418
+ *
419
+ * This method is analogous to AutoCAD .NET `Editor.SelectAll(SelectionFilter)`,
420
+ * but it does not modify the current view selection set directly. Instead, it
421
+ * returns an independent {@link AcEdPromptSelectionResult}.
422
+ *
423
+ * @param filter - Optional typed-value filter expression
424
+ * @returns Selection result containing all matched object ids
425
+ */
426
+ AcEditor.prototype.selectAll = function (filter) {
427
+ var e_1, _a;
428
+ try {
429
+ var modelSpace = AcApDocManager.instance.curDocument.database.tables.blockTable
430
+ .modelSpace;
431
+ var ids = [];
432
+ try {
433
+ for (var _b = __values(modelSpace.newIterator()), _c = _b.next(); !_c.done; _c = _b.next()) {
434
+ var entity = _c.value;
435
+ if (!filter || filter.matches(entity)) {
436
+ ids.push(entity.objectId);
437
+ }
438
+ }
439
+ }
440
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
441
+ finally {
442
+ try {
443
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
444
+ }
445
+ finally { if (e_1) throw e_1.error; }
446
+ }
447
+ return new AcEdPromptSelectionResult(AcEdPromptStatus.OK, new AcEdSelectionSet(ids));
448
+ }
449
+ catch (_d) {
450
+ return new AcEdPromptSelectionResult(AcEdPromptStatus.Error);
451
+ }
452
+ };
292
453
  return AcEditor;
293
454
  }());
294
455
  export { AcEditor };
@@ -1 +1 @@
1
- {"version":3,"file":"AcEditor.js","sourceRoot":"","sources":["../../../src/editor/input/AcEditor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAIxD,OAAO,EAAkB,iBAAiB,EAAE,MAAM,qB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,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;wBACtC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;oBAC3B,CAAC;gBACH,CAAC;;;;;;;;;YAED,OAAO,IAAI,yBAAyB,CAClC,gBAAgB,CAAC,EAAE,EACnB,IAAI,gBAAgB,CAAC,GAAG,CAAC,CAC1B,CAAA;QACH,CAAC;QAAC,WAAM,CAAC;YACP,OAAO,IAAI,yBAAyB,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAA;QAC9D,CAAC;IACH,CAAC;IACH,eAAC;AAAD,CAAC,AArUD,IAqUC"}
@@ -1,6 +1,10 @@
1
1
  export * from './AcEdCursorManager';
2
+ export * from './AcEdInputModifiers';
3
+ export * from './AcEdInputToggles';
2
4
  export * from './AcEditor';
3
5
  export * from './AcEdPreviewJig';
6
+ export * from './AcEdPromptStateMachine';
7
+ export * from './AcEdSelectionFilter';
4
8
  export * from './AcEdSelectionSet';
5
9
  export * from './marker';
6
10
  export * from './prompt';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/input/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,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,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,6 +1,10 @@
1
1
  export * from './AcEdCursorManager';
2
+ export * from './AcEdInputModifiers';
3
+ export * from './AcEdInputToggles';
2
4
  export * from './AcEditor';
3
5
  export * from './AcEdPreviewJig';
6
+ export * from './AcEdPromptStateMachine';
7
+ export * from './AcEdSelectionFilter';
4
8
  export * from './AcEdSelectionSet';
5
9
  export * from './marker';
6
10
  export * from './prompt';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/input/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,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,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"}