@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,486 @@
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
+ import { AcGeMatrix3d, AcGePoint3d, AcGeTol } from '@mlightcad/data-model';
53
+ import { AcApAnnotation, AcApDocManager } from '../../app';
54
+ import { AcEdCommand, AcEdOpenMode, AcEdPreviewJig, AcEdPromptAngleOptions, AcEdPromptPointOptions, AcEdPromptSelectionOptions, AcEdPromptStatus, eventBus } from '../../editor';
55
+ import { AcApI18n } from '../../i18n';
56
+ /**
57
+ * Static preview jig used while ROTATE asks for supporting inputs such as
58
+ * reference points. It keeps cloned source entities visible without mutating
59
+ * database entities.
60
+ */
61
+ var AcApRotateStaticJig = /** @class */ (function (_super) {
62
+ __extends(AcApRotateStaticJig, _super);
63
+ /**
64
+ * Creates a static transient preview for prompts that do not modify geometry.
65
+ *
66
+ * @param view - Active editor view that renders transient entities.
67
+ * @param sourceEntities - Original entities cloned for preview display.
68
+ */
69
+ function AcApRotateStaticJig(view, sourceEntities) {
70
+ var _this = _super.call(this, view) || this;
71
+ _this._view = view;
72
+ _this._previewEntities = sourceEntities
73
+ .map(function (entity) { return entity.clone(); })
74
+ .filter(function (entity) { return !!entity; });
75
+ return _this;
76
+ }
77
+ Object.defineProperty(AcApRotateStaticJig.prototype, "entity", {
78
+ /**
79
+ * Gets the first preview entity so the jig can integrate with the editor API.
80
+ *
81
+ * @returns First transient preview entity, or `null` when cloning failed.
82
+ */
83
+ get: function () {
84
+ var _a;
85
+ return (_a = this._previewEntities[0]) !== null && _a !== void 0 ? _a : null;
86
+ },
87
+ enumerable: false,
88
+ configurable: true
89
+ });
90
+ /**
91
+ * Accepts prompt updates without changing geometry because this preview is static.
92
+ *
93
+ * @param _value - Prompt value supplied by the editor, ignored by this jig.
94
+ */
95
+ AcApRotateStaticJig.prototype.update = function (_value) {
96
+ // Static preview only.
97
+ };
98
+ /**
99
+ * Adds the cloned entities to the view as transient preview graphics.
100
+ */
101
+ AcApRotateStaticJig.prototype.render = function () {
102
+ if (this._previewEntities.length === 0)
103
+ return;
104
+ this._view.addTransientEntity(this._previewEntities);
105
+ };
106
+ /**
107
+ * Removes every transient preview entity from the view.
108
+ */
109
+ AcApRotateStaticJig.prototype.end = function () {
110
+ var _this = this;
111
+ this._previewEntities.forEach(function (entity) {
112
+ return _this._view.removeTransientEntity(entity.objectId);
113
+ });
114
+ };
115
+ return AcApRotateStaticJig;
116
+ }(AcEdPreviewJig));
117
+ /**
118
+ * ROTATE preview jig.
119
+ *
120
+ * It clones source entities once and applies only the incremental delta angle
121
+ * to those clones as the cursor moves, so database entities remain unchanged
122
+ * until command commit.
123
+ */
124
+ var AcApRotatePreviewJig = /** @class */ (function (_super) {
125
+ __extends(AcApRotatePreviewJig, _super);
126
+ /**
127
+ * Creates a dynamic ROTATE preview jig.
128
+ *
129
+ * @param view - Active editor view that renders transient entities.
130
+ * @param sourceEntities - Original entities cloned for preview display.
131
+ * @param basePoint - Rotation base point.
132
+ * @param referenceAngleDeg - Reference angle in degrees used for reference-based rotation prompts.
133
+ */
134
+ function AcApRotatePreviewJig(view, sourceEntities, basePoint, referenceAngleDeg) {
135
+ if (referenceAngleDeg === void 0) { referenceAngleDeg = 0; }
136
+ var _this = _super.call(this, view) || this;
137
+ _this._lastAngleRad = 0;
138
+ _this._view = view;
139
+ _this._basePoint = new AcGePoint3d(basePoint);
140
+ _this._referenceAngleDeg = referenceAngleDeg;
141
+ _this._previewEntities = sourceEntities
142
+ .map(function (entity) { return entity.clone(); })
143
+ .filter(function (entity) { return !!entity; });
144
+ return _this;
145
+ }
146
+ Object.defineProperty(AcApRotatePreviewJig.prototype, "entity", {
147
+ /**
148
+ * Gets the first transient preview entity required by the jig API.
149
+ *
150
+ * @returns First preview entity, or `null` when cloning failed.
151
+ */
152
+ get: function () {
153
+ var _a;
154
+ return (_a = this._previewEntities[0]) !== null && _a !== void 0 ? _a : null;
155
+ },
156
+ enumerable: false,
157
+ configurable: true
158
+ });
159
+ /**
160
+ * Applies only the incremental rotation delta to preview clones.
161
+ *
162
+ * @param angleDeg - Current angle input in degrees from the editor prompt.
163
+ */
164
+ AcApRotatePreviewJig.prototype.update = function (angleDeg) {
165
+ if (this._previewEntities.length === 0)
166
+ return;
167
+ var angleRad = ((angleDeg - this._referenceAngleDeg) * Math.PI) / 180;
168
+ var deltaRad = angleRad - this._lastAngleRad;
169
+ if (AcGeTol.equalToZero(deltaRad))
170
+ return;
171
+ var matrix = AcApRotateCmd.createRotationMatrix(this._basePoint, deltaRad);
172
+ this._previewEntities.forEach(function (entity) { return entity.transformBy(matrix); });
173
+ this._lastAngleRad = angleRad;
174
+ };
175
+ /**
176
+ * Adds rotated preview clones to the view as transient geometry.
177
+ */
178
+ AcApRotatePreviewJig.prototype.render = function () {
179
+ if (this._previewEntities.length === 0)
180
+ return;
181
+ this._view.addTransientEntity(this._previewEntities);
182
+ };
183
+ /**
184
+ * Removes transient preview clones from the view.
185
+ */
186
+ AcApRotatePreviewJig.prototype.end = function () {
187
+ var _this = this;
188
+ this._previewEntities.forEach(function (entity) {
189
+ return _this._view.removeTransientEntity(entity.objectId);
190
+ });
191
+ };
192
+ return AcApRotatePreviewJig;
193
+ }(AcEdPreviewJig));
194
+ /**
195
+ * Command to rotate selected entities around a base point.
196
+ *
197
+ * Supported workflow:
198
+ * 1) Select entities (or reuse preselection),
199
+ * 2) Specify base point,
200
+ * 3) Specify rotation angle, or choose `Copy` / `Reference`,
201
+ * 4) Apply rotation to originals or append rotated copies.
202
+ */
203
+ var AcApRotateCmd = /** @class */ (function (_super) {
204
+ __extends(AcApRotateCmd, _super);
205
+ /**
206
+ * Creates the ROTATE command and marks it as a review-mode command.
207
+ */
208
+ function AcApRotateCmd() {
209
+ var _this = _super.call(this) || this;
210
+ _this.mode = AcEdOpenMode.Review;
211
+ return _this;
212
+ }
213
+ /**
214
+ * Builds a world-space rotation matrix around a given base point.
215
+ *
216
+ * @param basePoint - Rotation origin.
217
+ * @param angleRad - Rotation angle in radians.
218
+ * @returns Composite transform that rotates around `basePoint`.
219
+ */
220
+ AcApRotateCmd.createRotationMatrix = function (basePoint, angleRad) {
221
+ return new AcGeMatrix3d()
222
+ .makeTranslation(basePoint.x, basePoint.y, basePoint.z)
223
+ .multiply(new AcGeMatrix3d().makeRotationZ(angleRad))
224
+ .multiply(new AcGeMatrix3d().makeTranslation(-basePoint.x, -basePoint.y, -basePoint.z));
225
+ };
226
+ /**
227
+ * Adds one localized ROTATE keyword to an angle prompt.
228
+ *
229
+ * @param prompt - Angle prompt that should expose the keyword.
230
+ * @param key - Translation key suffix describing which keyword to add.
231
+ */
232
+ AcApRotateCmd.prototype.addKeyword = function (prompt, key) {
233
+ prompt.keywords.add(AcApI18n.t("jig.rotate.keywords.".concat(key, ".display")), AcApI18n.t("jig.rotate.keywords.".concat(key, ".global")), AcApI18n.t("jig.rotate.keywords.".concat(key, ".local")));
234
+ };
235
+ /**
236
+ * Shows a localized warning for invalid reference-point input.
237
+ *
238
+ * @param key - Warning message key suffix.
239
+ */
240
+ AcApRotateCmd.prototype.warnInvalidInput = function (key) {
241
+ eventBus.emit('message', {
242
+ message: AcApI18n.t("jig.rotate.invalid.".concat(key)),
243
+ type: 'warning'
244
+ });
245
+ };
246
+ /**
247
+ * Computes the planar direction angle from one point to another.
248
+ *
249
+ * @param start - Start/reference point.
250
+ * @param end - End/target point.
251
+ * @returns Direction angle in degrees, or `undefined` when points are coincident.
252
+ */
253
+ AcApRotateCmd.prototype.computeAngleDeg = function (start, end) {
254
+ var dx = end.x - start.x;
255
+ var dy = end.y - start.y;
256
+ if (!AcGeTol.isPositive(Math.hypot(dx, dy)))
257
+ return undefined;
258
+ return (Math.atan2(dy, dx) * 180) / Math.PI;
259
+ };
260
+ /**
261
+ * Prompts for a reference angle used by the ROTATE `Reference` option.
262
+ *
263
+ * The user can either enter the angle directly or define it from two points.
264
+ * When the point-based definition is degenerate, the command warns and asks again.
265
+ *
266
+ * @param context - Current application/document context.
267
+ * @param sourceEntities - Entities used to build transient preview geometry.
268
+ * @param basePoint - Rotation base point shared by subsequent angle prompts.
269
+ * @returns Reference angle in degrees, or `undefined` when input is canceled.
270
+ */
271
+ AcApRotateCmd.prototype.promptReferenceAngle = function (context, sourceEntities, basePoint) {
272
+ return __awaiter(this, void 0, void 0, function () {
273
+ var prompt_1, result, firstPrompt, firstResult, secondPrompt, secondResult, angle;
274
+ var _a;
275
+ return __generator(this, function (_b) {
276
+ switch (_b.label) {
277
+ case 0:
278
+ if (!true) return [3 /*break*/, 5];
279
+ prompt_1 = new AcEdPromptAngleOptions(AcApI18n.t('jig.rotate.referenceAngleOrPoints'));
280
+ this.addKeyword(prompt_1, 'points');
281
+ prompt_1.useBasePoint = true;
282
+ prompt_1.useDashedLine = true;
283
+ prompt_1.basePoint = basePoint;
284
+ prompt_1.allowNegative = true;
285
+ prompt_1.allowZero = true;
286
+ prompt_1.useDefaultValue = true;
287
+ prompt_1.defaultValue = 0;
288
+ prompt_1.jig = new AcApRotateStaticJig(context.view, sourceEntities);
289
+ return [4 /*yield*/, AcApDocManager.instance.editor.getAngle(prompt_1)];
290
+ case 1:
291
+ result = _b.sent();
292
+ if (result.status === AcEdPromptStatus.OK) {
293
+ return [2 /*return*/, (_a = result.value) !== null && _a !== void 0 ? _a : 0];
294
+ }
295
+ if (!(result.status === AcEdPromptStatus.Keyword &&
296
+ result.stringResult === 'Points')) return [3 /*break*/, 4];
297
+ firstPrompt = new AcEdPromptPointOptions(AcApI18n.t('jig.rotate.firstReferencePoint'));
298
+ firstPrompt.jig = new AcApRotateStaticJig(context.view, sourceEntities);
299
+ return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(firstPrompt)];
300
+ case 2:
301
+ firstResult = _b.sent();
302
+ if (firstResult.status !== AcEdPromptStatus.OK)
303
+ return [2 /*return*/, undefined];
304
+ secondPrompt = new AcEdPromptPointOptions(AcApI18n.t('jig.rotate.secondReferencePoint'));
305
+ secondPrompt.useBasePoint = true;
306
+ secondPrompt.useDashedLine = true;
307
+ secondPrompt.basePoint = new AcGePoint3d(firstResult.value);
308
+ secondPrompt.jig = new AcApRotateStaticJig(context.view, sourceEntities);
309
+ return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(secondPrompt)];
310
+ case 3:
311
+ secondResult = _b.sent();
312
+ if (secondResult.status !== AcEdPromptStatus.OK)
313
+ return [2 /*return*/, undefined];
314
+ angle = this.computeAngleDeg(firstResult.value, secondResult.value);
315
+ if (angle == null) {
316
+ this.warnInvalidInput('referencePoints');
317
+ return [3 /*break*/, 0];
318
+ }
319
+ return [2 /*return*/, angle];
320
+ case 4: return [2 /*return*/, undefined];
321
+ case 5: return [2 /*return*/];
322
+ }
323
+ });
324
+ });
325
+ };
326
+ /**
327
+ * Prompts for the final rotation angle and optional ROTATE sub-modes.
328
+ *
329
+ * The prompt supports `Copy` to preserve originals and `Reference` to derive
330
+ * the final rotation from an existing angle and a new target angle.
331
+ *
332
+ * @param context - Current application/document context.
333
+ * @param sourceEntities - Entities selected for rotation.
334
+ * @param basePoint - Rotation base point.
335
+ * @returns Rotation settings, or `undefined` when input is canceled.
336
+ */
337
+ AcApRotateCmd.prototype.promptRotationAngle = function (context, sourceEntities, basePoint) {
338
+ return __awaiter(this, void 0, void 0, function () {
339
+ var copyMode, prompt_2, result, keyword, referenceAngleDeg, newAnglePrompt, newAngleResult;
340
+ var _a, _b, _c;
341
+ return __generator(this, function (_d) {
342
+ switch (_d.label) {
343
+ case 0:
344
+ copyMode = false;
345
+ _d.label = 1;
346
+ case 1:
347
+ if (!true) return [3 /*break*/, 5];
348
+ prompt_2 = new AcEdPromptAngleOptions(AcApI18n.t('jig.rotate.rotationAngleOrOptions'));
349
+ this.addKeyword(prompt_2, 'copy');
350
+ this.addKeyword(prompt_2, 'reference');
351
+ prompt_2.useBasePoint = true;
352
+ prompt_2.useDashedLine = true;
353
+ prompt_2.basePoint = basePoint;
354
+ prompt_2.allowNegative = true;
355
+ prompt_2.allowZero = true;
356
+ prompt_2.jig = new AcApRotatePreviewJig(context.view, sourceEntities, basePoint);
357
+ return [4 /*yield*/, AcApDocManager.instance.editor.getAngle(prompt_2)];
358
+ case 2:
359
+ result = _d.sent();
360
+ if (result.status === AcEdPromptStatus.OK) {
361
+ return [2 /*return*/, {
362
+ copyMode: copyMode,
363
+ angleRad: (((_a = result.value) !== null && _a !== void 0 ? _a : 0) * Math.PI) / 180
364
+ }];
365
+ }
366
+ if (result.status !== AcEdPromptStatus.Keyword)
367
+ return [2 /*return*/, undefined];
368
+ keyword = (_b = result.stringResult) !== null && _b !== void 0 ? _b : '';
369
+ if (keyword === 'Copy') {
370
+ copyMode = true;
371
+ return [3 /*break*/, 1];
372
+ }
373
+ if (keyword !== 'Reference')
374
+ return [2 /*return*/, undefined];
375
+ return [4 /*yield*/, this.promptReferenceAngle(context, sourceEntities, basePoint)];
376
+ case 3:
377
+ referenceAngleDeg = _d.sent();
378
+ if (referenceAngleDeg == null)
379
+ return [2 /*return*/, undefined];
380
+ newAnglePrompt = new AcEdPromptAngleOptions(AcApI18n.t('jig.rotate.newAngle'));
381
+ newAnglePrompt.useBasePoint = true;
382
+ newAnglePrompt.useDashedLine = true;
383
+ newAnglePrompt.basePoint = basePoint;
384
+ newAnglePrompt.allowNegative = true;
385
+ newAnglePrompt.allowZero = true;
386
+ newAnglePrompt.jig = new AcApRotatePreviewJig(context.view, sourceEntities, basePoint, referenceAngleDeg);
387
+ return [4 /*yield*/, AcApDocManager.instance.editor.getAngle(newAnglePrompt)];
388
+ case 4:
389
+ newAngleResult = _d.sent();
390
+ if (newAngleResult.status !== AcEdPromptStatus.OK)
391
+ return [2 /*return*/, undefined];
392
+ return [2 /*return*/, {
393
+ copyMode: copyMode,
394
+ angleRad: ((((_c = newAngleResult.value) !== null && _c !== void 0 ? _c : 0) - referenceAngleDeg) * Math.PI) / 180
395
+ }];
396
+ case 5: return [2 /*return*/];
397
+ }
398
+ });
399
+ });
400
+ };
401
+ /**
402
+ * Executes ROTATE using selection reuse, base-point input, and angle prompts.
403
+ *
404
+ * The command rotates the original entities in place unless the user chooses
405
+ * `Copy`, in which case rotated clones are appended to model space instead.
406
+ *
407
+ * @param context - Current application/document context.
408
+ */
409
+ AcApRotateCmd.prototype.execute = function (context) {
410
+ return __awaiter(this, void 0, void 0, function () {
411
+ var selectionSet, annotation, blockTable, selectionIds, _a, ids, sourceEntities, basePointPrompt, basePointResult, basePoint, rotation, matrix, clones;
412
+ var _b, _c;
413
+ return __generator(this, function (_d) {
414
+ switch (_d.label) {
415
+ case 0:
416
+ selectionSet = context.view.selectionSet;
417
+ annotation = new AcApAnnotation(context.doc.database);
418
+ blockTable = context.doc.database.tables.blockTable;
419
+ if (!(selectionSet.count > 0)) return [3 /*break*/, 1];
420
+ _a = selectionSet.ids;
421
+ return [3 /*break*/, 3];
422
+ case 1: return [4 /*yield*/, AcApDocManager.instance.editor.getSelection(new AcEdPromptSelectionOptions(AcApI18n.sysCmdPrompt('rotate')))];
423
+ case 2:
424
+ _a = ((_c = (_b = (_d.sent()).value) === null || _b === void 0 ? void 0 : _b.ids) !== null && _c !== void 0 ? _c : []);
425
+ _d.label = 3;
426
+ case 3:
427
+ selectionIds = _a;
428
+ if (selectionIds.length === 0)
429
+ return [2 /*return*/];
430
+ ids = context.doc.openMode == AcEdOpenMode.Review
431
+ ? annotation.filterAnnotationEntities(selectionIds)
432
+ : selectionIds;
433
+ if (ids.length === 0) {
434
+ selectionSet.clear();
435
+ return [2 /*return*/];
436
+ }
437
+ sourceEntities = ids
438
+ .map(function (id) { return blockTable.getEntityById(id); })
439
+ .filter(function (entity) { return !!entity; });
440
+ if (sourceEntities.length === 0) {
441
+ selectionSet.clear();
442
+ return [2 /*return*/];
443
+ }
444
+ basePointPrompt = new AcEdPromptPointOptions(AcApI18n.t('jig.rotate.basePoint'));
445
+ basePointPrompt.jig = new AcApRotateStaticJig(context.view, sourceEntities);
446
+ return [4 /*yield*/, AcApDocManager.instance.editor.getPoint(basePointPrompt)];
447
+ case 4:
448
+ basePointResult = _d.sent();
449
+ if (basePointResult.status !== AcEdPromptStatus.OK) {
450
+ selectionSet.clear();
451
+ return [2 /*return*/];
452
+ }
453
+ basePoint = new AcGePoint3d(basePointResult.value);
454
+ return [4 /*yield*/, this.promptRotationAngle(context, sourceEntities, basePoint)];
455
+ case 5:
456
+ rotation = _d.sent();
457
+ if (!rotation) {
458
+ selectionSet.clear();
459
+ return [2 /*return*/];
460
+ }
461
+ matrix = AcApRotateCmd.createRotationMatrix(basePoint, rotation.angleRad);
462
+ if (rotation.copyMode) {
463
+ clones = sourceEntities
464
+ .map(function (entity) { return entity.clone(); })
465
+ .filter(function (entity) { return !!entity; });
466
+ clones.forEach(function (entity) { return entity.transformBy(matrix); });
467
+ if (clones.length > 0) {
468
+ blockTable.modelSpace.appendEntity(clones);
469
+ }
470
+ }
471
+ else {
472
+ sourceEntities.forEach(function (entity) {
473
+ entity.transformBy(matrix);
474
+ entity.triggerModifiedEvent();
475
+ });
476
+ }
477
+ selectionSet.clear();
478
+ return [2 /*return*/];
479
+ }
480
+ });
481
+ });
482
+ };
483
+ return AcApRotateCmd;
484
+ }(AcEdCommand));
485
+ export { AcApRotateCmd };
486
+ //# sourceMappingURL=AcApRotateCmd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApRotateCmd.js","sourceRoot":"","sources":["../../../src/command/modify/AcApRotateCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAEL,YAAY,EACZ,WAAW,EAEX,OAAO,EACR,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,cAAc,EAAe,cAAc,EAAE,MAAM,WAAW,CAAA;AACvE,OAAO,EAEL,WAAW,EACX,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,gBAAgB,EAChB,QAAQ,EACT,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,C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AoB,CAC/C,SAAS,EACT,QAAQ,CAAC,QAAQ,CAClB,CAAA;wBAED,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;4BAChB,MAAM,GAAG,cAAc;iCAC1B,GAAG,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,KAAK,EAAE,EAAd,CAAc,CAAC;iCAC7B,MAAM,CAAC,UAAC,MAAM,IAA2B,OAAA,CAAC,CAAC,MAAM,EAAR,CAAQ,CAAC,CAAA;4BACrD,MAAM,CAAC,OAAO,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,EAA1B,CAA0B,CAAC,CAAA;4BACpD,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gCACtB,UAAU,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA;4BAC5C,CAAC;wBACH,CAAC;6BAAM,CAAC;4BACN,cAAc,CAAC,OAAO,CAAC,UAAA,MAAM;gCAC3B,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;gCAC1B,MAAM,CAAC,oBAAoB,EAAE,CAAA;4BAC/B,CAAC,CAAC,CAAA;wBACJ,CAAC;wBAED,YAAY,CAAC,KAAK,EAAE,CAAA;;;;;KACrB;IACH,oBAAC;AAAD,CAAC,AAvUD,CAAmC,WAAW,GAuU7C"}
@@ -0,0 +1,6 @@
1
+ export * from './AcApCopyCmd';
2
+ export * from './AcApEraseCmd';
3
+ export * from './AcApMoveCmd';
4
+ export * from './AcApOffsetCmd';
5
+ export * from './AcApRotateCmd';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/command/modify/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from './AcApCopyCmd';
2
+ export * from './AcApEraseCmd';
3
+ export * from './AcApMoveCmd';
4
+ export * from './AcApOffsetCmd';
5
+ export * from './AcApRotateCmd';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/command/modify/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA"}
@@ -1,5 +1,5 @@
1
- import { AcApContext } from '../app';
2
- import { AcEdCommand } from '../editor';
1
+ import { AcApContext } from '../../app';
2
+ import { AcEdCommand } from '../../editor';
3
3
  /**
4
4
  * Base command for revision commands.
5
5
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApBaseRevCmd.d.ts","sourceRoot":"","sources":["../../../src/command/review/AcApBaseRevCmd.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,WAAW,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,WAAW,EAAgB,MAAM,cAAc,CAAA;AAExD;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,OAAO,CAAC,cAAc,CAAC,CAAQ;IAC/B;;OAEG;IACH,OAAO,CAAC,cAAc,CAAC,CAAQ;IAC/B;;OAEG;IACH,OAAO,CAAC,gBAAgB,CAAC,CAAQ;IACjC;;OAEG;IACH,OAAO,CAAC,kBAAkB,CAAC,CAAgB;IAC3C;;OAEG;IACH,OAAO,CAAC,6BAA6B,CAAS;;IAQ9C;;OAEG;IACH,IAAI,4BAA4B,IAGQ,OAAO,CAD9C;IACD,IAAI,4BAA4B,CAAC,KAAK,EAAE,OAAO,EAE9C;IAED,SAAS,CAAC,kBAAkB,CAAC,OAAO,EAAE,WAAW;IAUjD,SAAS,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW;CAU9C"}
@@ -14,8 +14,8 @@ var __extends = (this && this.__extends) || (function () {
14
14
  };
15
15
  })();
16
16
  import { AcCmColor } from '@mlightcad/data-model';
17
- import { AcApAnnotation } from '../app';
18
- import { AcEdCommand, AcEdOpenMode } from '../editor';
17
+ import { AcApAnnotation } from '../../app';
18
+ import { AcEdCommand, AcEdOpenMode } from '../../editor';
19
19
  /**
20
20
  * Base command for revision commands.
21
21
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApBaseRevCmd.js","sourceRoot":"","sources":["../../../src/command/review/AcApBaseRevCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAkB,MAAM,uBAAuB,CAAA;AAEjE,OAAO,EAAE,cAAc,EAAe,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAExD;;GAEG;AACH;IAAoC,kCAAW;IAsB7C;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,IAAI,GAAG,YAAY,CAAC,MAAM,CAAA;QAC/B,KAAI,CAAC,6BAA6B,GAAG,IAAI,CAAA;;IAC3C,CAAC;IAKD,sBAAI,wDAA4B;QAHhC;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,6BAA6B,CAAA;QAC3C,CAAC;aACD,UAAiC,KAAc;YAC7C,IAAI,CAAC,6BAA6B,GAAG,KAAK,CAAA;QAC5C,CAAC;;;OAHA;IAKS,2CAAkB,GAA5B,UAA6B,OAAoB;QAC/C,IAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAA;QAC/B,IAAM,UAAU,GAAG,IAAI,cAAc,CAAC,EAAE,CAAC,CAAA;QACzC,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC,MAAM,CAAA;QAC/B,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAA;QAC7C,IAAI,CAAC,kBAAkB,GAAG,EAAE,CAAC,SAAS,CAAA;QACtC,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,kBAAkB,EAAE,CAAA;QACrD,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,CAAA;IACjC,CAAC;IAES,uCAAc,GAAxB,UAAyB,OAAoB;;QAC3C,IAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAA;QAC/B,IAAI,IAAI,CAAC,cAAc;YAAE,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,CAAA;QACxD,IAAI,IAAI,CAAC,gBAAgB;YACvB,EAAE,CAAC,OAAO;gBACR,MAAA,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAgB,CAAC,mCAAI,IAAI,SAAS,EAAE,CAAA;QAClE,IAAI,IAAI,CAAC,kBAAkB;YAAE,EAAE,CAAC,SAAS,GAAG,IAAI,CAAC,kBAAkB,CAAA;QACnE,IAAI,CAAC,cAAc,GAAG,SAAS,CAAA;QAC/B,IAAI,CAAC,cAAc,GAAG,SAAS,CAAA;IACjC,CAAC;IACH,qBAAC;AAAD,CAAC,AA1DD,CAAoC,WAAW,GA0D9C"}
@@ -1,4 +1,4 @@
1
- import { AcApContext } from '../app';
1
+ import { AcApContext } from '../../app';
2
2
  import { AcApBaseRevCmd } from './AcApBaseRevCmd';
3
3
  /**
4
4
  * Command to create one revision circle.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApRevCircleCmd.d.ts","sourceRoot":"","sources":["../../../src/command/review/AcApRevCircleCmd.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAA;AASvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,cAAc;IAClD;;OAEG;;IAMH;;;;OAIG;IACG,OAAO,CAAC,OAAO,EAAE,WAAW;CA0BnC"}
@@ -49,12 +49,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49
49
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
50
50
  }
51
51
  };
52
- import { AcDbCircle } from '@mlightcad/data-model';
53
- import { AcApDocManager } from '../app';
54
- import { AcEdOpenMode, AcEdPromptDistanceOptions, AcEdPromptPointOptions, AcEdPromptStatus } from '../editor';
55
- import { AcApI18n } from '../i18n';
52
+ import { AcDbCircle, AcGePoint3d } from '@mlightcad/data-model';
53
+ import { AcApDocManager } from '../../app';
54
+ import { AcEdOpenMode, AcEdPromptDistanceOptions, AcEdPromptPointOptions, AcEdPromptStatus } from '../../editor';
55
+ import { AcApI18n } from '../../i18n';
56
+ import { AcApCircleJig } from '../draw/AcApCircleCmd';
56
57
  import { AcApBaseRevCmd } from './AcApBaseRevCmd';
57
- import { AcApCircleJig } from './AcApCircleCmd';
58
58
  /**
59
59
  * Command to create one revision circle.
60
60
  */
@@ -88,6 +88,9 @@ var AcApRevCircleCmd = /** @class */ (function (_super) {
88
88
  center = centerResult.value;
89
89
  radiusPrompt = new AcEdPromptDistanceOptions(AcApI18n.t('jig.circle.radius'));
90
90
  radiusPrompt.allowZero = false;
91
+ radiusPrompt.useBasePoint = true;
92
+ radiusPrompt.useDashedLine = true;
93
+ radiusPrompt.basePoint = new AcGePoint3d(center);
91
94
  radiusPrompt.jig = new AcApCircleJig(context.view, center);
92
95
  return [4 /*yield*/, AcApDocManager.instance.editor.getDistance(radiusPrompt)];
93
96
  case 2:
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApRevCircleCmd.js","sourceRoot":"","sources":["../../../src/command/review/AcApRevCircleCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAE/D,OAAO,EAAe,cAAc,EAAE,MAAM,WAAW,CAAA;AACvD,OAA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ChB,SAA8D;wBAChE,IAAI,YAAY,CAAC,MAAM,KAAK,gBAAgB,CAAC,EAAE;4BAAE,sBAAM;wBACjD,MAAM,GAAG,YAAY,CAAC,KAAM,CAAA;wBAElC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,YAAY,CAC5D,IAAI,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,CAC/B,CAAA;;;;;KACF;IACH,uBAAC;AAAD,CAAC,AAxCD,CAAsC,cAAc,GAwCnD"}
@@ -1,6 +1,6 @@
1
1
  import { AcDbPolyline, AcGePoint2dLike } from '@mlightcad/data-model';
2
- import { AcApContext } from '../app';
3
- import { AcEdBaseView, AcEdPreviewJig } from '../editor';
2
+ import { AcApContext } from '../../app';
3
+ import { AcEdBaseView, AcEdPreviewJig } from '../../editor';
4
4
  import { AcApBaseRevCmd } from './AcApBaseRevCmd';
5
5
  export declare class AcApRevCloudJig extends AcEdPreviewJig<AcGePoint2dLike> {
6
6
  private _cloud;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApRevCloudCmd.d.ts","sourceRoot":"","sources":["../../../src/command/review/AcApRevCloudCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAEZ,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,YAAY,EAEZ,cAAc,EAGf,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAgJjD,qBAAa,eAAgB,SAAQ,cAAc,CAAC,eAAe,CAAC;IAClE,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,WAAW,CAAa;IAChC,OAAO,CAAC,KAAK,CAAc;IAE3B;;;;;OAKG;gBACS,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,eAAe;IAOtD,IAAI,MAAM,IAAI,YAAY,CAEzB;IAED,MAAM,CAAC,WAAW,EAAE,eAAe;CAGpC;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,cAAc;;IAM3C,OAAO,CAAC,OAAO,EAAE,WAAW;CAyBnC"}
@@ -50,9 +50,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
50
50
  }
51
51
  };
52
52
  import { AcDbPolyline, AcGePoint2d } from '@mlightcad/data-model';
53
- import { AcApDocManager } from '../app';
54
- import { AcEdOpenMode, AcEdPreviewJig, AcEdPromptPointOptions, AcEdPromptStatus } from '../editor';
55
- import { AcApI18n } from '../i18n';
53
+ import { AcApDocManager } from '../../app';
54
+ import { AcEdOpenMode, AcEdPreviewJig, AcEdPromptPointOptions, AcEdPromptStatus } from '../../editor';
55
+ import { AcApI18n } from '../../i18n';
56
56
  import { AcApBaseRevCmd } from './AcApBaseRevCmd';
57
57
  // Cloud line diameter in pixels
58
58
  var CLOUD_DIAMETER_PIXELS = 8;