@mlightcad/cad-simple-viewer 1.4.13 → 1.5.1

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 (465) hide show
  1. package/dist/index.js +26532 -44513
  2. package/dist/index.umd.cjs +163 -52
  3. package/dist/libredwg-parser-worker.js +4378 -7481
  4. package/dist/mtext-renderer-worker.js +4107 -3865
  5. package/dist/viewer-runtime.iife.js +3879 -0
  6. package/lib/app/AcApAnnotation.js +4 -4
  7. package/lib/app/AcApAnnotation.js.map +1 -1
  8. package/lib/app/AcApDocManager.d.ts +59 -6
  9. package/lib/app/AcApDocManager.d.ts.map +1 -1
  10. package/lib/app/AcApDocManager.js +188 -28
  11. package/lib/app/AcApDocManager.js.map +1 -1
  12. package/lib/command/AcApLogCmd.d.ts +1 -1
  13. package/lib/command/AcApLogCmd.d.ts.map +1 -1
  14. package/lib/command/AcApLogCmd.js +1 -1
  15. package/lib/command/AcApLogCmd.js.map +1 -1
  16. package/lib/command/AcApOpenCmd.d.ts +1 -1
  17. package/lib/command/AcApOpenCmd.d.ts.map +1 -1
  18. package/lib/command/AcApOpenCmd.js +1 -2
  19. package/lib/command/AcApOpenCmd.js.map +1 -1
  20. package/lib/command/AcApPanCmd.d.ts +1 -1
  21. package/lib/command/AcApPanCmd.d.ts.map +1 -1
  22. package/lib/command/AcApPanCmd.js +1 -2
  23. package/lib/command/AcApPanCmd.js.map +1 -1
  24. package/lib/command/AcApQNewCmd.d.ts +1 -1
  25. package/lib/command/AcApQNewCmd.d.ts.map +1 -1
  26. package/lib/command/AcApQNewCmd.js +1 -1
  27. package/lib/command/AcApQNewCmd.js.map +1 -1
  28. package/lib/command/AcApRegenCmd.d.ts +1 -1
  29. package/lib/command/AcApRegenCmd.d.ts.map +1 -1
  30. package/lib/command/AcApRegenCmd.js +1 -1
  31. package/lib/command/AcApRegenCmd.js.map +1 -1
  32. package/lib/command/AcApSelectCmd.d.ts +1 -1
  33. package/lib/command/AcApSelectCmd.d.ts.map +1 -1
  34. package/lib/command/AcApSelectCmd.js +1 -2
  35. package/lib/command/AcApSelectCmd.js.map +1 -1
  36. package/lib/command/AcApZoomCmd.js +3 -3
  37. package/lib/command/AcApZoomCmd.js.map +1 -1
  38. package/lib/command/{AcApConvertToDxfCmd.d.ts → convert/AcApConvertToDxfCmd.d.ts} +2 -2
  39. package/lib/command/convert/AcApConvertToDxfCmd.d.ts.map +1 -0
  40. package/lib/command/{AcApConvertToDxfCmd.js → convert/AcApConvertToDxfCmd.js} +1 -1
  41. package/lib/command/convert/AcApConvertToDxfCmd.js.map +1 -0
  42. package/lib/command/{AcApConvertToPngCmd.d.ts → convert/AcApConvertToPngCmd.d.ts} +23 -5
  43. package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -0
  44. package/lib/command/{AcApConvertToPngCmd.js → convert/AcApConvertToPngCmd.js} +88 -15
  45. package/lib/command/convert/AcApConvertToPngCmd.js.map +1 -0
  46. package/lib/command/{AcApConvertToSvgCmd.d.ts → convert/AcApConvertToSvgCmd.d.ts} +2 -2
  47. package/lib/command/convert/AcApConvertToSvgCmd.d.ts.map +1 -0
  48. package/lib/command/{AcApConvertToSvgCmd.js → convert/AcApConvertToSvgCmd.js} +1 -1
  49. package/lib/command/convert/AcApConvertToSvgCmd.js.map +1 -0
  50. package/lib/command/convert/AcApDxfConvertor.d.ts.map +1 -0
  51. package/lib/command/{AcApDxfConvertor.js → convert/AcApDxfConvertor.js} +1 -1
  52. package/lib/command/convert/AcApDxfConvertor.js.map +1 -0
  53. package/lib/command/convert/AcApExportHtmlCmd.d.ts +22 -0
  54. package/lib/command/convert/AcApExportHtmlCmd.d.ts.map +1 -0
  55. package/lib/command/convert/AcApExportHtmlCmd.js +93 -0
  56. package/lib/command/convert/AcApExportHtmlCmd.js.map +1 -0
  57. package/lib/command/convert/AcApHtmlConvertor.d.ts +61 -0
  58. package/lib/command/convert/AcApHtmlConvertor.d.ts.map +1 -0
  59. package/lib/command/convert/AcApHtmlConvertor.js +223 -0
  60. package/lib/command/convert/AcApHtmlConvertor.js.map +1 -0
  61. package/lib/command/convert/AcApHtmlSnapshotBuilder.d.ts +65 -0
  62. package/lib/command/convert/AcApHtmlSnapshotBuilder.d.ts.map +1 -0
  63. package/lib/command/convert/AcApHtmlSnapshotBuilder.js +301 -0
  64. package/lib/command/convert/AcApHtmlSnapshotBuilder.js.map +1 -0
  65. package/lib/command/{AcApPngConvertor.d.ts → convert/AcApPngConvertor.d.ts} +20 -35
  66. package/lib/command/convert/AcApPngConvertor.d.ts.map +1 -0
  67. package/lib/command/{AcApPngConvertor.js → convert/AcApPngConvertor.js} +99 -71
  68. package/lib/command/convert/AcApPngConvertor.js.map +1 -0
  69. package/lib/command/convert/AcApSvgConvertor.d.ts.map +1 -0
  70. package/lib/command/{AcApSvgConvertor.js → convert/AcApSvgConvertor.js} +1 -1
  71. package/lib/command/convert/AcApSvgConvertor.js.map +1 -0
  72. package/lib/command/convert/index.d.ts +9 -0
  73. package/lib/command/convert/index.d.ts.map +1 -0
  74. package/lib/command/convert/index.js +9 -0
  75. package/lib/command/convert/index.js.map +1 -0
  76. package/lib/command/draw/AcApArcCmd.d.ts +297 -0
  77. package/lib/command/draw/AcApArcCmd.d.ts.map +1 -0
  78. package/lib/command/{AcApArcCmd.js → draw/AcApArcCmd.js} +839 -32
  79. package/lib/command/draw/AcApArcCmd.js.map +1 -0
  80. package/lib/command/{AcApCircleCmd.d.ts → draw/AcApCircleCmd.d.ts} +2 -2
  81. package/lib/command/draw/AcApCircleCmd.d.ts.map +1 -0
  82. package/lib/command/{AcApCircleCmd.js → draw/AcApCircleCmd.js} +8 -9
  83. package/lib/command/draw/AcApCircleCmd.js.map +1 -0
  84. package/lib/command/{AcApDimLinearCmd.d.ts → draw/AcApDimLinearCmd.d.ts} +2 -2
  85. package/lib/command/draw/AcApDimLinearCmd.d.ts.map +1 -0
  86. package/lib/command/{AcApDimLinearCmd.js → draw/AcApDimLinearCmd.js} +3 -3
  87. package/lib/command/draw/AcApDimLinearCmd.js.map +1 -0
  88. package/lib/command/{AcApEllipseCmd.d.ts → draw/AcApEllipseCmd.d.ts} +2 -2
  89. package/lib/command/draw/AcApEllipseCmd.d.ts.map +1 -0
  90. package/lib/command/{AcApEllipseCmd.js → draw/AcApEllipseCmd.js} +7 -9
  91. package/lib/command/draw/AcApEllipseCmd.js.map +1 -0
  92. package/lib/command/{AcApHatchCmd.d.ts → draw/AcApHatchCmd.d.ts} +54 -17
  93. package/lib/command/draw/AcApHatchCmd.d.ts.map +1 -0
  94. package/lib/command/{AcApHatchCmd.js → draw/AcApHatchCmd.js} +122 -30
  95. package/lib/command/draw/AcApHatchCmd.js.map +1 -0
  96. package/lib/command/{AcApLineCmd.d.ts → draw/AcApLineCmd.d.ts} +2 -2
  97. package/lib/command/draw/AcApLineCmd.d.ts.map +1 -0
  98. package/lib/command/{AcApLineCmd.js → draw/AcApLineCmd.js} +3 -3
  99. package/lib/command/draw/AcApLineCmd.js.map +1 -0
  100. package/lib/command/draw/AcApMLineCmd.d.ts +31 -0
  101. package/lib/command/draw/AcApMLineCmd.d.ts.map +1 -0
  102. package/lib/command/draw/AcApMLineCmd.js +528 -0
  103. package/lib/command/draw/AcApMLineCmd.js.map +1 -0
  104. package/lib/command/{AcApMTextCmd.d.ts → draw/AcApMTextCmd.d.ts} +2 -2
  105. package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -0
  106. package/lib/command/{AcApMTextCmd.js → draw/AcApMTextCmd.js} +6 -4
  107. package/lib/command/draw/AcApMTextCmd.js.map +1 -0
  108. package/lib/command/draw/AcApPointCmd.d.ts +16 -0
  109. package/lib/command/draw/AcApPointCmd.d.ts.map +1 -0
  110. package/lib/command/draw/AcApPointCmd.js +98 -0
  111. package/lib/command/draw/AcApPointCmd.js.map +1 -0
  112. package/lib/command/{AcApPolygonCmd.d.ts → draw/AcApPolygonCmd.d.ts} +2 -2
  113. package/lib/command/draw/AcApPolygonCmd.d.ts.map +1 -0
  114. package/lib/command/{AcApPolygonCmd.js → draw/AcApPolygonCmd.js} +7 -8
  115. package/lib/command/draw/AcApPolygonCmd.js.map +1 -0
  116. package/lib/command/{AcApPolylineCmd.d.ts → draw/AcApPolylineCmd.d.ts} +51 -2
  117. package/lib/command/draw/AcApPolylineCmd.d.ts.map +1 -0
  118. package/lib/command/{AcApPolylineCmd.js → draw/AcApPolylineCmd.js} +203 -21
  119. package/lib/command/draw/AcApPolylineCmd.js.map +1 -0
  120. package/lib/command/draw/AcApRayCmd.d.ts +10 -0
  121. package/lib/command/draw/AcApRayCmd.d.ts.map +1 -0
  122. package/lib/command/draw/AcApRayCmd.js +144 -0
  123. package/lib/command/draw/AcApRayCmd.js.map +1 -0
  124. package/lib/command/{AcApRectCmd.d.ts → draw/AcApRectCmd.d.ts} +2 -2
  125. package/lib/command/draw/AcApRectCmd.d.ts.map +1 -0
  126. package/lib/command/{AcApRectCmd.js → draw/AcApRectCmd.js} +12 -13
  127. package/lib/command/draw/AcApRectCmd.js.map +1 -0
  128. package/lib/command/{AcApSplineCmd.d.ts → draw/AcApSplineCmd.d.ts} +2 -2
  129. package/lib/command/draw/AcApSplineCmd.d.ts.map +1 -0
  130. package/lib/command/{AcApSplineCmd.js → draw/AcApSplineCmd.js} +6 -9
  131. package/lib/command/draw/AcApSplineCmd.js.map +1 -0
  132. package/lib/command/draw/AcApXLineCmd.d.ts +25 -0
  133. package/lib/command/draw/AcApXLineCmd.d.ts.map +1 -0
  134. package/lib/command/draw/AcApXLineCmd.js +209 -0
  135. package/lib/command/draw/AcApXLineCmd.js.map +1 -0
  136. package/lib/command/draw/index.d.ts +16 -0
  137. package/lib/command/draw/index.d.ts.map +1 -0
  138. package/lib/command/draw/index.js +16 -0
  139. package/lib/command/draw/index.js.map +1 -0
  140. package/lib/command/index.d.ts +6 -32
  141. package/lib/command/index.d.ts.map +1 -1
  142. package/lib/command/index.js +6 -32
  143. package/lib/command/index.js.map +1 -1
  144. package/lib/command/layer/AcApLayerCloseCmd.d.ts +23 -0
  145. package/lib/command/layer/AcApLayerCloseCmd.d.ts.map +1 -0
  146. package/lib/command/layer/AcApLayerCloseCmd.js +86 -0
  147. package/lib/command/layer/AcApLayerCloseCmd.js.map +1 -0
  148. package/lib/command/{AcApLayerCmd.d.ts → layer/AcApLayerCmd.d.ts} +3 -5
  149. package/lib/command/layer/AcApLayerCmd.d.ts.map +1 -0
  150. package/lib/command/{AcApLayerCmd.js → layer/AcApLayerCmd.js} +5 -8
  151. package/lib/command/layer/AcApLayerCmd.js.map +1 -0
  152. package/lib/command/layer/AcApLayerCurCmd.d.ts +43 -0
  153. package/lib/command/layer/AcApLayerCurCmd.d.ts.map +1 -0
  154. package/lib/command/layer/AcApLayerCurCmd.js +183 -0
  155. package/lib/command/layer/AcApLayerCurCmd.js.map +1 -0
  156. package/lib/command/layer/AcApLayerDelCmd.d.ts +112 -0
  157. package/lib/command/layer/AcApLayerDelCmd.d.ts.map +1 -0
  158. package/lib/command/layer/AcApLayerDelCmd.js +446 -0
  159. package/lib/command/layer/AcApLayerDelCmd.js.map +1 -0
  160. package/lib/command/layer/AcApLayerFreezeCmd.d.ts +103 -0
  161. package/lib/command/layer/AcApLayerFreezeCmd.d.ts.map +1 -0
  162. package/lib/command/layer/AcApLayerFreezeCmd.js +398 -0
  163. package/lib/command/layer/AcApLayerFreezeCmd.js.map +1 -0
  164. package/lib/command/layer/AcApLayerIsoCmd.d.ts +99 -0
  165. package/lib/command/layer/AcApLayerIsoCmd.d.ts.map +1 -0
  166. package/lib/command/layer/AcApLayerIsoCmd.js +485 -0
  167. package/lib/command/layer/AcApLayerIsoCmd.js.map +1 -0
  168. package/lib/command/layer/AcApLayerIsoState.d.ts +68 -0
  169. package/lib/command/layer/AcApLayerIsoState.d.ts.map +1 -0
  170. package/lib/command/layer/AcApLayerIsoState.js +53 -0
  171. package/lib/command/layer/AcApLayerIsoState.js.map +1 -0
  172. package/lib/command/layer/AcApLayerLockCmd.d.ts +50 -0
  173. package/lib/command/layer/AcApLayerLockCmd.d.ts.map +1 -0
  174. package/lib/command/layer/AcApLayerLockCmd.js +175 -0
  175. package/lib/command/layer/AcApLayerLockCmd.js.map +1 -0
  176. package/lib/command/layer/AcApLayerOffCmd.d.ts +95 -0
  177. package/lib/command/layer/AcApLayerOffCmd.d.ts.map +1 -0
  178. package/lib/command/layer/AcApLayerOffCmd.js +384 -0
  179. package/lib/command/layer/AcApLayerOffCmd.js.map +1 -0
  180. package/lib/command/layer/AcApLayerOnCmd.d.ts +30 -0
  181. package/lib/command/layer/AcApLayerOnCmd.d.ts.map +1 -0
  182. package/lib/command/layer/AcApLayerOnCmd.js +138 -0
  183. package/lib/command/layer/AcApLayerOnCmd.js.map +1 -0
  184. package/lib/command/layer/AcApLayerPCmd.d.ts +83 -0
  185. package/lib/command/layer/AcApLayerPCmd.d.ts.map +1 -0
  186. package/lib/command/layer/AcApLayerPCmd.js +241 -0
  187. package/lib/command/layer/AcApLayerPCmd.js.map +1 -0
  188. package/lib/command/layer/AcApLayerThawCmd.d.ts +37 -0
  189. package/lib/command/layer/AcApLayerThawCmd.d.ts.map +1 -0
  190. package/lib/command/layer/AcApLayerThawCmd.js +150 -0
  191. package/lib/command/layer/AcApLayerThawCmd.js.map +1 -0
  192. package/lib/command/layer/AcApLayerUnisoCmd.d.ts +52 -0
  193. package/lib/command/layer/AcApLayerUnisoCmd.d.ts.map +1 -0
  194. package/lib/command/layer/AcApLayerUnisoCmd.js +199 -0
  195. package/lib/command/layer/AcApLayerUnisoCmd.js.map +1 -0
  196. package/lib/command/layer/AcApLayerUnlockCmd.d.ts +50 -0
  197. package/lib/command/layer/AcApLayerUnlockCmd.d.ts.map +1 -0
  198. package/lib/command/layer/AcApLayerUnlockCmd.js +175 -0
  199. package/lib/command/layer/AcApLayerUnlockCmd.js.map +1 -0
  200. package/lib/command/layer/index.d.ts +14 -0
  201. package/lib/command/layer/index.d.ts.map +1 -0
  202. package/lib/command/layer/index.js +14 -0
  203. package/lib/command/layer/index.js.map +1 -0
  204. package/lib/command/measure/AcApClearMeasurementsCmd.d.ts +24 -0
  205. package/lib/command/measure/AcApClearMeasurementsCmd.d.ts.map +1 -0
  206. package/lib/command/{AcApClearMeasurementsCmd.js → measure/AcApClearMeasurementsCmd.js} +16 -5
  207. package/lib/command/measure/AcApClearMeasurementsCmd.js.map +1 -0
  208. package/lib/command/{AcApMeasureAngleCmd.d.ts → measure/AcApMeasureAngleCmd.d.ts} +2 -2
  209. package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -0
  210. package/lib/command/{AcApMeasureAngleCmd.js → measure/AcApMeasureAngleCmd.js} +18 -9
  211. package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -0
  212. package/lib/command/{AcApMeasureArcCmd.d.ts → measure/AcApMeasureArcCmd.d.ts} +2 -2
  213. package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -0
  214. package/lib/command/{AcApMeasureArcCmd.js → measure/AcApMeasureArcCmd.js} +14 -7
  215. package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -0
  216. package/lib/command/{AcApMeasureAreaCmd.d.ts → measure/AcApMeasureAreaCmd.d.ts} +2 -2
  217. package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -0
  218. package/lib/command/{AcApMeasureAreaCmd.js → measure/AcApMeasureAreaCmd.js} +14 -7
  219. package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -0
  220. package/lib/command/{AcApMeasureDistanceCmd.d.ts → measure/AcApMeasureDistanceCmd.d.ts} +5 -4
  221. package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -0
  222. package/lib/command/{AcApMeasureDistanceCmd.js → measure/AcApMeasureDistanceCmd.js} +17 -9
  223. package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -0
  224. package/lib/command/measure/index.d.ts +6 -0
  225. package/lib/command/measure/index.d.ts.map +1 -0
  226. package/lib/command/measure/index.js +6 -0
  227. package/lib/command/measure/index.js.map +1 -0
  228. package/lib/command/modify/AcApCopyCmd.d.ts +94 -0
  229. package/lib/command/modify/AcApCopyCmd.d.ts.map +1 -0
  230. package/lib/command/modify/AcApCopyCmd.js +549 -0
  231. package/lib/command/modify/AcApCopyCmd.js.map +1 -0
  232. package/lib/command/{AcApEraseCmd.d.ts → modify/AcApEraseCmd.d.ts} +2 -2
  233. package/lib/command/modify/AcApEraseCmd.d.ts.map +1 -0
  234. package/lib/command/{AcApEraseCmd.js → modify/AcApEraseCmd.js} +3 -5
  235. package/lib/command/modify/AcApEraseCmd.js.map +1 -0
  236. package/lib/command/{AcApMoveCmd.d.ts → modify/AcApMoveCmd.d.ts} +2 -2
  237. package/lib/command/modify/AcApMoveCmd.d.ts.map +1 -0
  238. package/lib/command/{AcApMoveCmd.js → modify/AcApMoveCmd.js} +3 -4
  239. package/lib/command/modify/AcApMoveCmd.js.map +1 -0
  240. package/lib/command/modify/AcApOffsetCmd.d.ts +30 -0
  241. package/lib/command/modify/AcApOffsetCmd.d.ts.map +1 -0
  242. package/lib/command/modify/AcApOffsetCmd.js +424 -0
  243. package/lib/command/modify/AcApOffsetCmd.js.map +1 -0
  244. package/lib/command/modify/AcApRotateCmd.d.ts +81 -0
  245. package/lib/command/modify/AcApRotateCmd.d.ts.map +1 -0
  246. package/lib/command/modify/AcApRotateCmd.js +486 -0
  247. package/lib/command/modify/AcApRotateCmd.js.map +1 -0
  248. package/lib/command/modify/index.d.ts +6 -0
  249. package/lib/command/modify/index.d.ts.map +1 -0
  250. package/lib/command/modify/index.js +6 -0
  251. package/lib/command/modify/index.js.map +1 -0
  252. package/lib/command/{AcApBaseRevCmd.d.ts → review/AcApBaseRevCmd.d.ts} +2 -2
  253. package/lib/command/review/AcApBaseRevCmd.d.ts.map +1 -0
  254. package/lib/command/{AcApBaseRevCmd.js → review/AcApBaseRevCmd.js} +2 -2
  255. package/lib/command/review/AcApBaseRevCmd.js.map +1 -0
  256. package/lib/command/{AcApRevCircleCmd.d.ts → review/AcApRevCircleCmd.d.ts} +1 -1
  257. package/lib/command/review/AcApRevCircleCmd.d.ts.map +1 -0
  258. package/lib/command/{AcApRevCircleCmd.js → review/AcApRevCircleCmd.js} +8 -5
  259. package/lib/command/review/AcApRevCircleCmd.js.map +1 -0
  260. package/lib/command/{AcApRevCloudCmd.d.ts → review/AcApRevCloudCmd.d.ts} +2 -2
  261. package/lib/command/review/AcApRevCloudCmd.d.ts.map +1 -0
  262. package/lib/command/{AcApRevCloudCmd.js → review/AcApRevCloudCmd.js} +3 -3
  263. package/lib/command/review/AcApRevCloudCmd.js.map +1 -0
  264. package/lib/command/{AcApRevRectCmd.d.ts → review/AcApRevRectCmd.d.ts} +1 -1
  265. package/lib/command/review/AcApRevRectCmd.d.ts.map +1 -0
  266. package/lib/command/{AcApRevRectCmd.js → review/AcApRevRectCmd.js} +3 -3
  267. package/lib/command/review/AcApRevRectCmd.js.map +1 -0
  268. package/lib/command/{AcApRevVisibilityCmd.d.ts → review/AcApRevVisibilityCmd.d.ts} +1 -1
  269. package/lib/command/review/AcApRevVisibilityCmd.d.ts.map +1 -0
  270. package/lib/command/{AcApRevVisibilityCmd.js → review/AcApRevVisibilityCmd.js} +2 -2
  271. package/lib/command/review/AcApRevVisibilityCmd.js.map +1 -0
  272. package/lib/command/{AcApSketchCmd.d.ts → review/AcApSketchCmd.d.ts} +2 -2
  273. package/lib/command/review/AcApSketchCmd.d.ts.map +1 -0
  274. package/lib/command/{AcApSketchCmd.js → review/AcApSketchCmd.js} +3 -3
  275. package/lib/command/review/AcApSketchCmd.js.map +1 -0
  276. package/lib/command/review/index.d.ts +7 -0
  277. package/lib/command/review/index.d.ts.map +1 -0
  278. package/lib/command/review/index.js +7 -0
  279. package/lib/command/review/index.js.map +1 -0
  280. package/lib/editor/global/eventBus.d.ts +4 -6
  281. package/lib/editor/global/eventBus.d.ts.map +1 -1
  282. package/lib/editor/global/eventBus.js.map +1 -1
  283. package/lib/editor/input/AcEdSelectionFilter.js +7 -6
  284. package/lib/editor/input/AcEdSelectionFilter.js.map +1 -1
  285. package/lib/editor/input/AcEditor.d.ts +17 -0
  286. package/lib/editor/input/AcEditor.d.ts.map +1 -1
  287. package/lib/editor/input/AcEditor.js +23 -0
  288. package/lib/editor/input/AcEditor.js.map +1 -1
  289. package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts +6 -0
  290. package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts.map +1 -1
  291. package/lib/editor/input/prompt/AcEdPromptBoxOptions.js +16 -0
  292. package/lib/editor/input/prompt/AcEdPromptBoxOptions.js.map +1 -1
  293. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.d.ts.map +1 -1
  294. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js +1 -1
  295. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js.map +1 -1
  296. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +6 -0
  297. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
  298. package/lib/editor/input/prompt/AcEdPromptPointOptions.js +16 -0
  299. package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
  300. package/lib/editor/input/ui/AcEdCommandLine.d.ts +25 -23
  301. package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
  302. package/lib/editor/input/ui/AcEdCommandLine.js +101 -43
  303. package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
  304. package/lib/editor/input/ui/AcEdFloatingInput.d.ts +9 -0
  305. package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
  306. package/lib/editor/input/ui/AcEdFloatingInput.js +25 -5
  307. package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
  308. package/lib/editor/input/ui/AcEdInputManager.d.ts +46 -6
  309. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  310. package/lib/editor/input/ui/AcEdInputManager.js +153 -43
  311. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  312. package/lib/editor/input/ui/AcEdMTextEditor.d.ts +67 -2
  313. package/lib/editor/input/ui/AcEdMTextEditor.d.ts.map +1 -1
  314. package/lib/editor/input/ui/AcEdMTextEditor.js +210 -19
  315. package/lib/editor/input/ui/AcEdMTextEditor.js.map +1 -1
  316. package/lib/editor/input/ui/AcEdMessageType.d.ts +10 -0
  317. package/lib/editor/input/ui/AcEdMessageType.d.ts.map +1 -0
  318. package/lib/editor/input/ui/AcEdMessageType.js +2 -0
  319. package/lib/editor/input/ui/AcEdMessageType.js.map +1 -0
  320. package/lib/editor/input/ui/AcEdRubberBand.d.ts.map +1 -1
  321. package/lib/editor/input/ui/AcEdRubberBand.js +16 -8
  322. package/lib/editor/input/ui/AcEdRubberBand.js.map +1 -1
  323. package/lib/editor/input/ui/index.d.ts +1 -0
  324. package/lib/editor/input/ui/index.d.ts.map +1 -1
  325. package/lib/editor/input/ui/index.js +1 -0
  326. package/lib/editor/input/ui/index.js.map +1 -1
  327. package/lib/editor/view/AcEdBaseView.d.ts +3 -8
  328. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  329. package/lib/editor/view/AcEdBaseView.js +3 -5
  330. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  331. package/lib/editor/view/AcEdHoverController.d.ts +2 -3
  332. package/lib/editor/view/AcEdHoverController.d.ts.map +1 -1
  333. package/lib/editor/view/AcEdHoverController.js +7 -0
  334. package/lib/editor/view/AcEdHoverController.js.map +1 -1
  335. package/lib/editor/view/AcEdSelectionAction.d.ts +108 -0
  336. package/lib/editor/view/AcEdSelectionAction.d.ts.map +1 -0
  337. package/lib/editor/view/AcEdSelectionAction.js +74 -0
  338. package/lib/editor/view/AcEdSelectionAction.js.map +1 -0
  339. package/lib/editor/view/index.d.ts +1 -0
  340. package/lib/editor/view/index.d.ts.map +1 -1
  341. package/lib/editor/view/index.js +1 -0
  342. package/lib/editor/view/index.js.map +1 -1
  343. package/lib/i18n/en/command.d.ts +187 -13
  344. package/lib/i18n/en/command.d.ts.map +1 -1
  345. package/lib/i18n/en/command.js +195 -21
  346. package/lib/i18n/en/command.js.map +1 -1
  347. package/lib/i18n/en/jig.d.ts +579 -212
  348. package/lib/i18n/en/jig.d.ts.map +1 -1
  349. package/lib/i18n/en/jig.js +669 -302
  350. package/lib/i18n/en/jig.js.map +1 -1
  351. package/lib/i18n/zh/command.d.ts +187 -13
  352. package/lib/i18n/zh/command.d.ts.map +1 -1
  353. package/lib/i18n/zh/command.js +196 -22
  354. package/lib/i18n/zh/command.js.map +1 -1
  355. package/lib/i18n/zh/jig.d.ts +579 -212
  356. package/lib/i18n/zh/jig.d.ts.map +1 -1
  357. package/lib/i18n/zh/jig.js +668 -301
  358. package/lib/i18n/zh/jig.js.map +1 -1
  359. package/lib/index.d.ts +2 -1
  360. package/lib/index.d.ts.map +1 -1
  361. package/lib/index.js +2 -1
  362. package/lib/index.js.map +1 -1
  363. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts +136 -2
  364. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts.map +1 -1
  365. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js +154 -16
  366. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js.map +1 -1
  367. package/lib/util/AcApFontUtil.d.ts +69 -0
  368. package/lib/util/AcApFontUtil.d.ts.map +1 -0
  369. package/lib/util/AcApFontUtil.js +161 -0
  370. package/lib/util/AcApFontUtil.js.map +1 -0
  371. package/lib/util/index.d.ts +2 -0
  372. package/lib/util/index.d.ts.map +1 -1
  373. package/lib/util/index.js +2 -0
  374. package/lib/util/index.js.map +1 -1
  375. package/lib/util/yieldToMain.d.ts +5 -0
  376. package/lib/util/yieldToMain.d.ts.map +1 -0
  377. package/lib/util/yieldToMain.js +11 -0
  378. package/lib/util/yieldToMain.js.map +1 -0
  379. package/lib/view/AcTrLayout.d.ts +17 -0
  380. package/lib/view/AcTrLayout.d.ts.map +1 -1
  381. package/lib/view/AcTrLayout.js +34 -2
  382. package/lib/view/AcTrLayout.js.map +1 -1
  383. package/lib/view/AcTrLayoutView.d.ts +12 -0
  384. package/lib/view/AcTrLayoutView.d.ts.map +1 -1
  385. package/lib/view/AcTrLayoutView.js +18 -0
  386. package/lib/view/AcTrLayoutView.js.map +1 -1
  387. package/lib/view/AcTrPickResultUtil.d.ts +4 -0
  388. package/lib/view/AcTrPickResultUtil.d.ts.map +1 -0
  389. package/lib/view/AcTrPickResultUtil.js +54 -0
  390. package/lib/view/AcTrPickResultUtil.js.map +1 -0
  391. package/lib/view/AcTrScene.d.ts +38 -6
  392. package/lib/view/AcTrScene.d.ts.map +1 -1
  393. package/lib/view/AcTrScene.js +57 -30
  394. package/lib/view/AcTrScene.js.map +1 -1
  395. package/lib/view/AcTrView2d.d.ts +191 -0
  396. package/lib/view/AcTrView2d.d.ts.map +1 -1
  397. package/lib/view/AcTrView2d.js +795 -137
  398. package/lib/view/AcTrView2d.js.map +1 -1
  399. package/package.json +14 -8
  400. package/lib/command/AcApArcCmd.d.ts +0 -140
  401. package/lib/command/AcApArcCmd.d.ts.map +0 -1
  402. package/lib/command/AcApArcCmd.js.map +0 -1
  403. package/lib/command/AcApBaseRevCmd.d.ts.map +0 -1
  404. package/lib/command/AcApBaseRevCmd.js.map +0 -1
  405. package/lib/command/AcApCircleCmd.d.ts.map +0 -1
  406. package/lib/command/AcApCircleCmd.js.map +0 -1
  407. package/lib/command/AcApClearMeasurementsCmd.d.ts +0 -13
  408. package/lib/command/AcApClearMeasurementsCmd.d.ts.map +0 -1
  409. package/lib/command/AcApClearMeasurementsCmd.js.map +0 -1
  410. package/lib/command/AcApConvertToDxfCmd.d.ts.map +0 -1
  411. package/lib/command/AcApConvertToDxfCmd.js.map +0 -1
  412. package/lib/command/AcApConvertToPngCmd.d.ts.map +0 -1
  413. package/lib/command/AcApConvertToPngCmd.js.map +0 -1
  414. package/lib/command/AcApConvertToSvgCmd.d.ts.map +0 -1
  415. package/lib/command/AcApConvertToSvgCmd.js.map +0 -1
  416. package/lib/command/AcApDimLinearCmd.d.ts.map +0 -1
  417. package/lib/command/AcApDimLinearCmd.js.map +0 -1
  418. package/lib/command/AcApDxfConvertor.d.ts.map +0 -1
  419. package/lib/command/AcApDxfConvertor.js.map +0 -1
  420. package/lib/command/AcApEllipseCmd.d.ts.map +0 -1
  421. package/lib/command/AcApEllipseCmd.js.map +0 -1
  422. package/lib/command/AcApEraseCmd.d.ts.map +0 -1
  423. package/lib/command/AcApEraseCmd.js.map +0 -1
  424. package/lib/command/AcApHatchCmd.d.ts.map +0 -1
  425. package/lib/command/AcApHatchCmd.js.map +0 -1
  426. package/lib/command/AcApLayerCmd.d.ts.map +0 -1
  427. package/lib/command/AcApLayerCmd.js.map +0 -1
  428. package/lib/command/AcApLineCmd.d.ts.map +0 -1
  429. package/lib/command/AcApLineCmd.js.map +0 -1
  430. package/lib/command/AcApMTextCmd.d.ts.map +0 -1
  431. package/lib/command/AcApMTextCmd.js.map +0 -1
  432. package/lib/command/AcApMeasureAngleCmd.d.ts.map +0 -1
  433. package/lib/command/AcApMeasureAngleCmd.js.map +0 -1
  434. package/lib/command/AcApMeasureArcCmd.d.ts.map +0 -1
  435. package/lib/command/AcApMeasureArcCmd.js.map +0 -1
  436. package/lib/command/AcApMeasureAreaCmd.d.ts.map +0 -1
  437. package/lib/command/AcApMeasureAreaCmd.js.map +0 -1
  438. package/lib/command/AcApMeasureDistanceCmd.d.ts.map +0 -1
  439. package/lib/command/AcApMeasureDistanceCmd.js.map +0 -1
  440. package/lib/command/AcApMoveCmd.d.ts.map +0 -1
  441. package/lib/command/AcApMoveCmd.js.map +0 -1
  442. package/lib/command/AcApPngConvertor.d.ts.map +0 -1
  443. package/lib/command/AcApPngConvertor.js.map +0 -1
  444. package/lib/command/AcApPolygonCmd.d.ts.map +0 -1
  445. package/lib/command/AcApPolygonCmd.js.map +0 -1
  446. package/lib/command/AcApPolylineCmd.d.ts.map +0 -1
  447. package/lib/command/AcApPolylineCmd.js.map +0 -1
  448. package/lib/command/AcApRectCmd.d.ts.map +0 -1
  449. package/lib/command/AcApRectCmd.js.map +0 -1
  450. package/lib/command/AcApRevCircleCmd.d.ts.map +0 -1
  451. package/lib/command/AcApRevCircleCmd.js.map +0 -1
  452. package/lib/command/AcApRevCloudCmd.d.ts.map +0 -1
  453. package/lib/command/AcApRevCloudCmd.js.map +0 -1
  454. package/lib/command/AcApRevRectCmd.d.ts.map +0 -1
  455. package/lib/command/AcApRevRectCmd.js.map +0 -1
  456. package/lib/command/AcApRevVisibilityCmd.d.ts.map +0 -1
  457. package/lib/command/AcApRevVisibilityCmd.js.map +0 -1
  458. package/lib/command/AcApSketchCmd.d.ts.map +0 -1
  459. package/lib/command/AcApSketchCmd.js.map +0 -1
  460. package/lib/command/AcApSplineCmd.d.ts.map +0 -1
  461. package/lib/command/AcApSplineCmd.js.map +0 -1
  462. package/lib/command/AcApSvgConvertor.d.ts.map +0 -1
  463. package/lib/command/AcApSvgConvertor.js.map +0 -1
  464. /package/lib/command/{AcApDxfConvertor.d.ts → convert/AcApDxfConvertor.d.ts} +0 -0
  465. /package/lib/command/{AcApSvgConvertor.d.ts → convert/AcApSvgConvertor.d.ts} +0 -0
@@ -0,0 +1,112 @@
1
+ import { AcApContext } from '../../app';
2
+ import { AcEdCommand } from '../../editor';
3
+ /**
4
+ * AutoCAD-like `LAYDEL` command.
5
+ *
6
+ * Supported workflows:
7
+ * - Pick an entity to delete its layer and every object on that layer.
8
+ * - Switch to the `Name` branch to delete a layer by name.
9
+ * - Use `Undo` to restore the most recently deleted layer in the current
10
+ * command session.
11
+ */
12
+ export declare class AcApLayerDelCmd extends AcEdCommand {
13
+ private _history;
14
+ /**
15
+ * Creates a write-enabled `LAYDEL` command instance.
16
+ */
17
+ constructor();
18
+ /**
19
+ * Runs the interactive layer deletion workflow until the user cancels.
20
+ *
21
+ * The command supports both entity-based and name-based deletion paths and
22
+ * keeps an in-memory undo history for the current command session only.
23
+ *
24
+ * @param context - Active application context used to inspect and mutate the drawing.
25
+ * @returns Resolves when the command loop ends.
26
+ */
27
+ execute(context: AcApContext): Promise<void>;
28
+ /**
29
+ * Sends a localized status message through the command-line output.
30
+ *
31
+ * @param message - Text to display to the user.
32
+ * @param type - Visual severity mapped to command-line message styles.
33
+ */
34
+ private notify;
35
+ /**
36
+ * Registers a localized keyword on an entity or string prompt.
37
+ *
38
+ * @param prompt - Prompt instance that should expose the keyword.
39
+ * @param keyword - I18n keyword identifier under `jig.laydel.keywords`.
40
+ */
41
+ private addKeyword;
42
+ /**
43
+ * Prompts for the main `LAYDEL` action.
44
+ *
45
+ * Users can either pick an entity to infer the target layer or switch to a
46
+ * keyword branch such as `Name` or `Undo`.
47
+ *
48
+ * @returns Resolved action, or `undefined` when the prompt is canceled.
49
+ */
50
+ private promptMainAction;
51
+ /**
52
+ * Runs the layer-name branch until the user exits that submenu.
53
+ *
54
+ * @param context - Active application context used to list, delete, or restore layers.
55
+ * @returns Resolves when the name submenu ends.
56
+ */
57
+ private runNameBranch;
58
+ /**
59
+ * Prompts for a layer name or one of the name-branch keywords.
60
+ *
61
+ * @returns Resolved name action, or `undefined` when canceled or left blank.
62
+ */
63
+ private promptLayerNameAction;
64
+ /**
65
+ * Prints a snapshot of all current layers to the console and notifies the UI.
66
+ *
67
+ * @param context - Active application context providing access to the layer table.
68
+ */
69
+ private listLayers;
70
+ /**
71
+ * Resolves the selected entity's layer name and delegates to layer deletion by name.
72
+ *
73
+ * @param context - Active application context containing the current database.
74
+ * @param objectId - Identifier of the entity selected by the user.
75
+ */
76
+ private deleteLayerByEntity;
77
+ /**
78
+ * Deletes a layer and every entity currently assigned to it.
79
+ *
80
+ * The removed layer record and cloned entities are stored in `_history` so
81
+ * that `Undo` can reconstruct the previous state during the same run.
82
+ *
83
+ * @param context - Active application context containing the drawing to mutate.
84
+ * @param layerName - Name of the layer to remove.
85
+ */
86
+ private deleteLayerByName;
87
+ /**
88
+ * Captures clones of every entity that belongs to the specified layer.
89
+ *
90
+ * Each snapshot also records the owning block record so undo can restore the
91
+ * entities to the correct container.
92
+ *
93
+ * @param context - Active application context containing the current database.
94
+ * @param layerName - Layer whose entities should be collected.
95
+ * @returns Cloned entity snapshots grouped later by owner during deletion or undo.
96
+ */
97
+ private collectLayerEntities;
98
+ /**
99
+ * Removes the captured entities from their owning block records.
100
+ *
101
+ * @param context - Active application context containing the current database.
102
+ * @param deletedEntities - Entity snapshots to remove from the drawing.
103
+ */
104
+ private removeLayerEntities;
105
+ /**
106
+ * Restores the most recently deleted layer and its entities.
107
+ *
108
+ * @param context - Active application context containing the current database and view.
109
+ */
110
+ private runUndo;
111
+ }
112
+ //# sourceMappingURL=AcApLayerDelCmd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApLayerDelCmd.d.ts","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerDelCmd.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,WAAW,EAMZ,MAAM,cAAc,CAAA;AAkFrB;;;;;;;;GAQG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C,OAAO,CAAC,QAAQ,CAA2B;IAE3C;;OAEG;;IAMH;;;;;;;;OAQG;IACG,OAAO,CAAC,OAAO,EAAE,WAAW;IAoBlC;;;;;OAKG;IACH,OAAO,CAAC,MAAM;IAId;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAWlB;;;;;;;OAOG;YACW,gBAAgB;IAyB9B;;;;;OAKG;YACW,aAAa;IAkB3B;;;;OAIG;YACW,qBAAqB;IAyBnC;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAalB;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;IAa3B;;;;;;;;OAQG;IACH,OAAO,CAAC,iBAAiB;IAoCzB;;;;;;;;;OASG;IACH,OAAO,CAAC,oBAAoB;IAoB5B;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;IAiB3B;;;;OAIG;IACH,OAAO,CAAC,OAAO;CAgChB"}
@@ -0,0 +1,446 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
+ return new (P || (P = Promise))(function (resolve, reject) {
19
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
22
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
23
+ });
24
+ };
25
+ var __generator = (this && this.__generator) || function (thisArg, body) {
26
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
27
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
28
+ function verb(n) { return function (v) { return step([n, v]); }; }
29
+ function step(op) {
30
+ if (f) throw new TypeError("Generator is already executing.");
31
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
32
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
33
+ if (y = 0, t) op = [op[0] & 2, t.value];
34
+ switch (op[0]) {
35
+ case 0: case 1: t = op; break;
36
+ case 4: _.label++; return { value: op[1], done: false };
37
+ case 5: _.label++; y = op[1]; op = [0]; continue;
38
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
39
+ default:
40
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
41
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
42
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
43
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
44
+ if (t[2]) _.ops.pop();
45
+ _.trys.pop(); continue;
46
+ }
47
+ op = body.call(thisArg, _);
48
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
49
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
50
+ }
51
+ };
52
+ var __read = (this && this.__read) || function (o, n) {
53
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
54
+ if (!m) return o;
55
+ var i = m.call(o), r, ar = [], e;
56
+ try {
57
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
58
+ }
59
+ catch (error) { e = { error: error }; }
60
+ finally {
61
+ try {
62
+ if (r && !r.done && (m = i["return"])) m.call(i);
63
+ }
64
+ finally { if (e) throw e.error; }
65
+ }
66
+ return ar;
67
+ };
68
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
69
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
70
+ if (ar || !(i in from)) {
71
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
72
+ ar[i] = from[i];
73
+ }
74
+ }
75
+ return to.concat(ar || Array.prototype.slice.call(from));
76
+ };
77
+ var __values = (this && this.__values) || function(o) {
78
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
79
+ if (m) return m.call(o);
80
+ if (o && typeof o.length === "number") return {
81
+ next: function () {
82
+ if (o && i >= o.length) o = void 0;
83
+ return { value: o && o[i++], done: !o };
84
+ }
85
+ };
86
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
87
+ };
88
+ import { AcApDocManager } from '../../app';
89
+ import { AcEdCommand, AcEdOpenMode, AcEdPromptEntityOptions, AcEdPromptStatus, AcEdPromptStringOptions } from '../../editor';
90
+ import { AcApI18n } from '../../i18n';
91
+ /**
92
+ * AutoCAD-like `LAYDEL` command.
93
+ *
94
+ * Supported workflows:
95
+ * - Pick an entity to delete its layer and every object on that layer.
96
+ * - Switch to the `Name` branch to delete a layer by name.
97
+ * - Use `Undo` to restore the most recently deleted layer in the current
98
+ * command session.
99
+ */
100
+ var AcApLayerDelCmd = /** @class */ (function (_super) {
101
+ __extends(AcApLayerDelCmd, _super);
102
+ /**
103
+ * Creates a write-enabled `LAYDEL` command instance.
104
+ */
105
+ function AcApLayerDelCmd() {
106
+ var _this = _super.call(this) || this;
107
+ _this._history = [];
108
+ _this.mode = AcEdOpenMode.Write;
109
+ return _this;
110
+ }
111
+ /**
112
+ * Runs the interactive layer deletion workflow until the user cancels.
113
+ *
114
+ * The command supports both entity-based and name-based deletion paths and
115
+ * keeps an in-memory undo history for the current command session only.
116
+ *
117
+ * @param context - Active application context used to inspect and mutate the drawing.
118
+ * @returns Resolves when the command loop ends.
119
+ */
120
+ AcApLayerDelCmd.prototype.execute = function (context) {
121
+ return __awaiter(this, void 0, void 0, function () {
122
+ var action;
123
+ return __generator(this, function (_a) {
124
+ switch (_a.label) {
125
+ case 0:
126
+ this._history = [];
127
+ _a.label = 1;
128
+ case 1:
129
+ if (!true) return [3 /*break*/, 7];
130
+ return [4 /*yield*/, this.promptMainAction()];
131
+ case 2:
132
+ action = _a.sent();
133
+ if (!action)
134
+ return [2 /*return*/];
135
+ if (!(action.type === 'keyword')) return [3 /*break*/, 6];
136
+ if (!(action.keyword === 'Name')) return [3 /*break*/, 4];
137
+ return [4 /*yield*/, this.runNameBranch(context)];
138
+ case 3:
139
+ _a.sent();
140
+ return [3 /*break*/, 5];
141
+ case 4:
142
+ this.runUndo(context);
143
+ _a.label = 5;
144
+ case 5: return [3 /*break*/, 1];
145
+ case 6:
146
+ this.deleteLayerByEntity(context, action.objectId);
147
+ return [3 /*break*/, 1];
148
+ case 7: return [2 /*return*/];
149
+ }
150
+ });
151
+ });
152
+ };
153
+ /**
154
+ * Sends a localized status message through the command-line output.
155
+ *
156
+ * @param message - Text to display to the user.
157
+ * @param type - Visual severity mapped to command-line message styles.
158
+ */
159
+ AcApLayerDelCmd.prototype.notify = function (message, type) {
160
+ if (type === void 0) { type = 'info'; }
161
+ AcApDocManager.instance.editor.showMessage(message, type);
162
+ };
163
+ /**
164
+ * Registers a localized keyword on an entity or string prompt.
165
+ *
166
+ * @param prompt - Prompt instance that should expose the keyword.
167
+ * @param keyword - I18n keyword identifier under `jig.laydel.keywords`.
168
+ */
169
+ AcApLayerDelCmd.prototype.addKeyword = function (prompt, keyword) {
170
+ prompt.keywords.add(AcApI18n.t("jig.laydel.keywords.".concat(keyword, ".display")), AcApI18n.t("jig.laydel.keywords.".concat(keyword, ".global")), AcApI18n.t("jig.laydel.keywords.".concat(keyword, ".local")));
171
+ };
172
+ /**
173
+ * Prompts for the main `LAYDEL` action.
174
+ *
175
+ * Users can either pick an entity to infer the target layer or switch to a
176
+ * keyword branch such as `Name` or `Undo`.
177
+ *
178
+ * @returns Resolved action, or `undefined` when the prompt is canceled.
179
+ */
180
+ AcApLayerDelCmd.prototype.promptMainAction = function () {
181
+ return __awaiter(this, void 0, void 0, function () {
182
+ var prompt, result;
183
+ return __generator(this, function (_a) {
184
+ switch (_a.label) {
185
+ case 0:
186
+ prompt = new AcEdPromptEntityOptions(AcApI18n.t('jig.laydel.selectPrompt'));
187
+ prompt.allowNone = true;
188
+ prompt.allowObjectOnLockedLayer = true;
189
+ prompt.setRejectMessage(AcApI18n.t('jig.laydel.invalidSelection'));
190
+ this.addKeyword(prompt, 'name');
191
+ this.addKeyword(prompt, 'undo');
192
+ return [4 /*yield*/, AcApDocManager.instance.editor.getEntity(prompt)];
193
+ case 1:
194
+ result = _a.sent();
195
+ if (result.status === AcEdPromptStatus.OK && result.objectId) {
196
+ return [2 /*return*/, { type: 'entity', objectId: result.objectId }];
197
+ }
198
+ if (result.status === AcEdPromptStatus.Keyword &&
199
+ (result.stringResult === 'Name' || result.stringResult === 'Undo')) {
200
+ return [2 /*return*/, { type: 'keyword', keyword: result.stringResult }];
201
+ }
202
+ return [2 /*return*/, undefined];
203
+ }
204
+ });
205
+ });
206
+ };
207
+ /**
208
+ * Runs the layer-name branch until the user exits that submenu.
209
+ *
210
+ * @param context - Active application context used to list, delete, or restore layers.
211
+ * @returns Resolves when the name submenu ends.
212
+ */
213
+ AcApLayerDelCmd.prototype.runNameBranch = function (context) {
214
+ return __awaiter(this, void 0, void 0, function () {
215
+ var action;
216
+ return __generator(this, function (_a) {
217
+ switch (_a.label) {
218
+ case 0:
219
+ if (!true) return [3 /*break*/, 2];
220
+ return [4 /*yield*/, this.promptLayerNameAction()];
221
+ case 1:
222
+ action = _a.sent();
223
+ if (!action)
224
+ return [2 /*return*/];
225
+ if (action.type === 'keyword') {
226
+ if (action.keyword === '?') {
227
+ this.listLayers(context);
228
+ }
229
+ else {
230
+ this.runUndo(context);
231
+ }
232
+ return [3 /*break*/, 0];
233
+ }
234
+ this.deleteLayerByName(context, action.layerName);
235
+ return [3 /*break*/, 0];
236
+ case 2: return [2 /*return*/];
237
+ }
238
+ });
239
+ });
240
+ };
241
+ /**
242
+ * Prompts for a layer name or one of the name-branch keywords.
243
+ *
244
+ * @returns Resolved name action, or `undefined` when canceled or left blank.
245
+ */
246
+ AcApLayerDelCmd.prototype.promptLayerNameAction = function () {
247
+ return __awaiter(this, void 0, void 0, function () {
248
+ var prompt, result, layerName;
249
+ var _a;
250
+ return __generator(this, function (_b) {
251
+ switch (_b.label) {
252
+ case 0:
253
+ prompt = new AcEdPromptStringOptions(AcApI18n.t('jig.laydel.namePrompt'));
254
+ prompt.allowSpaces = true;
255
+ prompt.allowEmpty = true;
256
+ this.addKeyword(prompt, 'list');
257
+ this.addKeyword(prompt, 'undo');
258
+ return [4 /*yield*/, AcApDocManager.instance.editor.getString(prompt)];
259
+ case 1:
260
+ result = _b.sent();
261
+ if (result.status === AcEdPromptStatus.Keyword &&
262
+ (result.stringResult === '?' || result.stringResult === 'Undo')) {
263
+ return [2 /*return*/, { type: 'keyword', keyword: result.stringResult }];
264
+ }
265
+ if (result.status !== AcEdPromptStatus.OK)
266
+ return [2 /*return*/, undefined];
267
+ layerName = ((_a = result.stringResult) !== null && _a !== void 0 ? _a : '').trim();
268
+ if (!layerName)
269
+ return [2 /*return*/, undefined];
270
+ return [2 /*return*/, { type: 'name', layerName: layerName }];
271
+ }
272
+ });
273
+ });
274
+ };
275
+ /**
276
+ * Prints a snapshot of all current layers to the console and notifies the UI.
277
+ *
278
+ * @param context - Active application context providing access to the layer table.
279
+ */
280
+ AcApLayerDelCmd.prototype.listLayers = function (context) {
281
+ var db = context.doc.database;
282
+ var rows = __spreadArray([], __read(db.tables.layerTable.newIterator()), false).map(function (layer) { return ({
283
+ name: layer.name,
284
+ current: db.clayer === layer.name ? '*' : '',
285
+ on: layer.isOff ? 'No' : 'Yes',
286
+ frozen: layer.isFrozen ? 'Yes' : 'No',
287
+ locked: layer.isLocked ? 'Yes' : 'No'
288
+ }); });
289
+ console.table(rows);
290
+ this.notify(AcApI18n.t('jig.laydel.layerListSummary'), 'info');
291
+ };
292
+ /**
293
+ * Resolves the selected entity's layer name and delegates to layer deletion by name.
294
+ *
295
+ * @param context - Active application context containing the current database.
296
+ * @param objectId - Identifier of the entity selected by the user.
297
+ */
298
+ AcApLayerDelCmd.prototype.deleteLayerByEntity = function (context, objectId) {
299
+ var _a;
300
+ var entity = context.doc.database.tables.blockTable.getEntityById(objectId);
301
+ var layerName = (_a = entity === null || entity === void 0 ? void 0 : entity.layer) === null || _a === void 0 ? void 0 : _a.trim();
302
+ if (!layerName) {
303
+ this.notify(AcApI18n.t('jig.laydel.invalidSelection'), 'warning');
304
+ return;
305
+ }
306
+ this.deleteLayerByName(context, layerName);
307
+ };
308
+ /**
309
+ * Deletes a layer and every entity currently assigned to it.
310
+ *
311
+ * The removed layer record and cloned entities are stored in `_history` so
312
+ * that `Undo` can reconstruct the previous state during the same run.
313
+ *
314
+ * @param context - Active application context containing the drawing to mutate.
315
+ * @param layerName - Name of the layer to remove.
316
+ */
317
+ AcApLayerDelCmd.prototype.deleteLayerByName = function (context, layerName) {
318
+ var db = context.doc.database;
319
+ var layer = db.tables.layerTable.getAt(layerName);
320
+ if (!layer) {
321
+ this.notify("".concat(AcApI18n.t('jig.laydel.layerNotFound'), ": ").concat(layerName));
322
+ return;
323
+ }
324
+ if (layer.name === '0') {
325
+ this.notify(AcApI18n.t('jig.laydel.cannotDeleteZeroLayer'), 'warning');
326
+ return;
327
+ }
328
+ if (layer.name === db.clayer) {
329
+ this.notify(AcApI18n.t('jig.laydel.cannotDeleteCurrent'), 'warning');
330
+ return;
331
+ }
332
+ var deletedEntities = this.collectLayerEntities(context, layer.name);
333
+ this.removeLayerEntities(context, deletedEntities);
334
+ var deletedLayer = layer.clone();
335
+ db.tables.layerTable.remove(layer.name);
336
+ db.events.layerErased.dispatch({ database: db, layer: layer });
337
+ this._history.push({
338
+ layer: deletedLayer,
339
+ entities: deletedEntities
340
+ });
341
+ context.view.selectionSet.clear();
342
+ AcApDocManager.instance.regen();
343
+ this.notify("".concat(AcApI18n.t('jig.laydel.deleted'), ": ").concat(layer.name), 'success');
344
+ };
345
+ /**
346
+ * Captures clones of every entity that belongs to the specified layer.
347
+ *
348
+ * Each snapshot also records the owning block record so undo can restore the
349
+ * entities to the correct container.
350
+ *
351
+ * @param context - Active application context containing the current database.
352
+ * @param layerName - Layer whose entities should be collected.
353
+ * @returns Cloned entity snapshots grouped later by owner during deletion or undo.
354
+ */
355
+ AcApLayerDelCmd.prototype.collectLayerEntities = function (context, layerName) {
356
+ var e_1, _a, e_2, _b;
357
+ var snapshots = [];
358
+ try {
359
+ for (var _c = __values(context.doc.database.tables.blockTable.newIterator()), _d = _c.next(); !_d.done; _d = _c.next()) {
360
+ var blockRecord = _d.value;
361
+ try {
362
+ for (var _e = (e_2 = void 0, __values(blockRecord.newIterator())), _f = _e.next(); !_f.done; _f = _e.next()) {
363
+ var entity = _f.value;
364
+ if (entity.layer !== layerName)
365
+ continue;
366
+ snapshots.push({
367
+ ownerId: blockRecord.objectId,
368
+ objectId: entity.objectId,
369
+ entity: entity.clone()
370
+ });
371
+ }
372
+ }
373
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
374
+ finally {
375
+ try {
376
+ if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
377
+ }
378
+ finally { if (e_2) throw e_2.error; }
379
+ }
380
+ }
381
+ }
382
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
383
+ finally {
384
+ try {
385
+ if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
386
+ }
387
+ finally { if (e_1) throw e_1.error; }
388
+ }
389
+ return snapshots;
390
+ };
391
+ /**
392
+ * Removes the captured entities from their owning block records.
393
+ *
394
+ * @param context - Active application context containing the current database.
395
+ * @param deletedEntities - Entity snapshots to remove from the drawing.
396
+ */
397
+ AcApLayerDelCmd.prototype.removeLayerEntities = function (context, deletedEntities) {
398
+ var idsByOwner = new Map();
399
+ deletedEntities.forEach(function (_a) {
400
+ var _b;
401
+ var ownerId = _a.ownerId, objectId = _a.objectId;
402
+ var ids = (_b = idsByOwner.get(ownerId)) !== null && _b !== void 0 ? _b : [];
403
+ ids.push(objectId);
404
+ idsByOwner.set(ownerId, ids);
405
+ });
406
+ idsByOwner.forEach(function (ids, ownerId) {
407
+ var _a;
408
+ (_a = context.doc.database.tables.blockTable.getIdAt(ownerId)) === null || _a === void 0 ? void 0 : _a.removeEntity(ids);
409
+ });
410
+ };
411
+ /**
412
+ * Restores the most recently deleted layer and its entities.
413
+ *
414
+ * @param context - Active application context containing the current database and view.
415
+ */
416
+ AcApLayerDelCmd.prototype.runUndo = function (context) {
417
+ var entry = this._history.pop();
418
+ if (!entry) {
419
+ this.notify(AcApI18n.t('jig.laydel.nothingToUndo'), 'warning');
420
+ return;
421
+ }
422
+ var db = context.doc.database;
423
+ if (!db.tables.layerTable.has(entry.layer.name)) {
424
+ db.tables.layerTable.add(entry.layer.clone());
425
+ }
426
+ var entitiesByOwner = new Map();
427
+ entry.entities.forEach(function (_a) {
428
+ var _b;
429
+ var ownerId = _a.ownerId, entity = _a.entity;
430
+ var entities = (_b = entitiesByOwner.get(ownerId)) !== null && _b !== void 0 ? _b : [];
431
+ entities.push(entity.clone());
432
+ entitiesByOwner.set(ownerId, entities);
433
+ });
434
+ entitiesByOwner.forEach(function (entities, ownerId) {
435
+ var _a;
436
+ var owner = (_a = db.tables.blockTable.getIdAt(ownerId)) !== null && _a !== void 0 ? _a : db.tables.blockTable.modelSpace;
437
+ owner.appendEntity(entities);
438
+ });
439
+ context.view.selectionSet.clear();
440
+ AcApDocManager.instance.regen();
441
+ this.notify("".concat(AcApI18n.t('jig.laydel.restored'), ": ").concat(entry.layer.name), 'success');
442
+ };
443
+ return AcApLayerDelCmd;
444
+ }(AcEdCommand));
445
+ export { AcApLayerDelCmd };
446
+ //# sourceMappingURL=AcApLayerDelCmd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApLayerDelCmd.js","sourceRoot":"","sources":["../../../src/command/layer/AcApLayerDelCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,OAAO,EAAe,cAAc,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,WAAW,EAEX,YAAY,EACZ,uBAAuB,EACvB,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,cAAc,CAAA;A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