@mlightcad/cad-simple-viewer 1.4.10 → 1.4.12

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 (309) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +88 -88
  3. package/dist/index.js +21257 -14069
  4. package/dist/index.umd.cjs +201 -76
  5. package/dist/libredwg-parser-worker.js +6604 -12157
  6. package/dist/mtext-renderer-worker.js +28725 -28097
  7. package/lib/app/AcApAnnotation.d.ts.map +1 -1
  8. package/lib/app/AcApAnnotation.js +3 -3
  9. package/lib/app/AcApAnnotation.js.map +1 -1
  10. package/lib/app/AcApContext.d.ts.map +1 -1
  11. package/lib/app/AcApContext.js +3 -3
  12. package/lib/app/AcApContext.js.map +1 -1
  13. package/lib/app/AcApDocManager.d.ts +24 -1
  14. package/lib/app/AcApDocManager.d.ts.map +1 -1
  15. package/lib/app/AcApDocManager.js +67 -12
  16. package/lib/app/AcApDocManager.js.map +1 -1
  17. package/lib/app/AcApDocument.d.ts +6 -0
  18. package/lib/app/AcApDocument.d.ts.map +1 -1
  19. package/lib/app/AcApDocument.js +14 -2
  20. package/lib/app/AcApDocument.js.map +1 -1
  21. package/lib/app/AcApProgress.d.ts.map +1 -1
  22. package/lib/app/AcApProgress.js +3 -3
  23. package/lib/app/AcApProgress.js.map +1 -1
  24. package/lib/app/AcApSettingManager.d.ts.map +1 -1
  25. package/lib/app/AcApSettingManager.js +3 -1
  26. package/lib/app/AcApSettingManager.js.map +1 -1
  27. package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +1 -1
  28. package/lib/command/AcApArcCmd.d.ts +140 -0
  29. package/lib/command/AcApArcCmd.d.ts.map +1 -0
  30. package/lib/command/AcApArcCmd.js +1009 -0
  31. package/lib/command/AcApArcCmd.js.map +1 -0
  32. package/lib/command/AcApCircleCmd.d.ts.map +1 -1
  33. package/lib/command/AcApCircleCmd.js +10 -4
  34. package/lib/command/AcApCircleCmd.js.map +1 -1
  35. package/lib/command/AcApClearMeasurementsCmd.d.ts +13 -0
  36. package/lib/command/AcApClearMeasurementsCmd.d.ts.map +1 -0
  37. package/lib/command/AcApClearMeasurementsCmd.js +84 -0
  38. package/lib/command/AcApClearMeasurementsCmd.js.map +1 -0
  39. package/lib/command/AcApConvertToDxfCmd.d.ts +9 -0
  40. package/lib/command/AcApConvertToDxfCmd.d.ts.map +1 -0
  41. package/lib/command/AcApConvertToDxfCmd.js +75 -0
  42. package/lib/command/AcApConvertToDxfCmd.js.map +1 -0
  43. package/lib/command/AcApDimLinearCmd.d.ts.map +1 -1
  44. package/lib/command/AcApDimLinearCmd.js +14 -5
  45. package/lib/command/AcApDimLinearCmd.js.map +1 -1
  46. package/lib/command/AcApDxfConvertor.d.ts +12 -0
  47. package/lib/command/AcApDxfConvertor.d.ts.map +1 -0
  48. package/lib/command/AcApDxfConvertor.js +37 -0
  49. package/lib/command/AcApDxfConvertor.js.map +1 -0
  50. package/lib/command/AcApEraseCmd.d.ts.map +1 -1
  51. package/lib/command/AcApEraseCmd.js +10 -6
  52. package/lib/command/AcApEraseCmd.js.map +1 -1
  53. package/lib/command/AcApLineCmd.d.ts.map +1 -1
  54. package/lib/command/AcApLineCmd.js +10 -4
  55. package/lib/command/AcApLineCmd.js.map +1 -1
  56. package/lib/command/AcApLogCmd.js +3 -3
  57. package/lib/command/AcApLogCmd.js.map +1 -1
  58. package/lib/command/AcApMTextCmd.d.ts +12 -0
  59. package/lib/command/AcApMTextCmd.d.ts.map +1 -0
  60. package/lib/command/AcApMTextCmd.js +123 -0
  61. package/lib/command/AcApMTextCmd.js.map +1 -0
  62. package/lib/command/AcApMeasureAngleCmd.d.ts +15 -0
  63. package/lib/command/AcApMeasureAngleCmd.d.ts.map +1 -0
  64. package/lib/command/AcApMeasureAngleCmd.js +369 -0
  65. package/lib/command/AcApMeasureAngleCmd.js.map +1 -0
  66. package/lib/command/AcApMeasureArcCmd.d.ts +25 -0
  67. package/lib/command/AcApMeasureArcCmd.d.ts.map +1 -0
  68. package/lib/command/AcApMeasureArcCmd.js +429 -0
  69. package/lib/command/AcApMeasureArcCmd.js.map +1 -0
  70. package/lib/command/AcApMeasureAreaCmd.d.ts +21 -0
  71. package/lib/command/AcApMeasureAreaCmd.d.ts.map +1 -0
  72. package/lib/command/AcApMeasureAreaCmd.js +387 -0
  73. package/lib/command/AcApMeasureAreaCmd.js.map +1 -0
  74. package/lib/command/AcApMeasureDistanceCmd.d.ts +34 -0
  75. package/lib/command/AcApMeasureDistanceCmd.d.ts.map +1 -0
  76. package/lib/command/AcApMeasureDistanceCmd.js +191 -0
  77. package/lib/command/AcApMeasureDistanceCmd.js.map +1 -0
  78. package/lib/command/AcApPolylineCmd.d.ts +71 -0
  79. package/lib/command/AcApPolylineCmd.d.ts.map +1 -0
  80. package/lib/command/AcApPolylineCmd.js +569 -0
  81. package/lib/command/AcApPolylineCmd.js.map +1 -0
  82. package/lib/command/AcApRectCmd.d.ts.map +1 -1
  83. package/lib/command/AcApRectCmd.js +10 -4
  84. package/lib/command/AcApRectCmd.js.map +1 -1
  85. package/lib/command/AcApRevCloudCmd.d.ts.map +1 -1
  86. package/lib/command/AcApRevCloudCmd.js +10 -4
  87. package/lib/command/AcApRevCloudCmd.js.map +1 -1
  88. package/lib/command/AcApSketchCmd.d.ts.map +1 -1
  89. package/lib/command/AcApSketchCmd.js +11 -7
  90. package/lib/command/AcApSketchCmd.js.map +1 -1
  91. package/lib/command/AcApSplineCmd.d.ts +20 -0
  92. package/lib/command/AcApSplineCmd.d.ts.map +1 -0
  93. package/lib/command/AcApSplineCmd.js +213 -0
  94. package/lib/command/AcApSplineCmd.js.map +1 -0
  95. package/lib/command/AcApSwitchBgCmd.js +2 -2
  96. package/lib/command/AcApSwitchBgCmd.js.map +1 -1
  97. package/lib/command/AcApSysVarCmd.d.ts.map +1 -1
  98. package/lib/command/AcApSysVarCmd.js +20 -7
  99. package/lib/command/AcApSysVarCmd.js.map +1 -1
  100. package/lib/command/AcApZoomToBoxCmd.d.ts +1 -1
  101. package/lib/command/AcApZoomToBoxCmd.d.ts.map +1 -1
  102. package/lib/command/AcApZoomToBoxCmd.js +10 -5
  103. package/lib/command/AcApZoomToBoxCmd.js.map +1 -1
  104. package/lib/command/index.d.ts +11 -0
  105. package/lib/command/index.d.ts.map +1 -1
  106. package/lib/command/index.js +11 -0
  107. package/lib/command/index.js.map +1 -1
  108. package/lib/editor/command/AcEdCommandIterator.d.ts.map +1 -1
  109. package/lib/editor/command/AcEdCommandIterator.js.map +1 -1
  110. package/lib/editor/global/AcEdConditionWaiter.d.ts +1 -1
  111. package/lib/editor/global/AcEdConditionWaiter.d.ts.map +1 -1
  112. package/lib/editor/global/AcEdConditionWaiter.js +3 -2
  113. package/lib/editor/global/AcEdConditionWaiter.js.map +1 -1
  114. package/lib/editor/global/AcEdUiTheme.d.ts +4 -0
  115. package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -0
  116. package/lib/editor/global/AcEdUiTheme.js +44 -0
  117. package/lib/editor/global/AcEdUiTheme.js.map +1 -0
  118. package/lib/editor/global/index.d.ts +1 -0
  119. package/lib/editor/global/index.d.ts.map +1 -1
  120. package/lib/editor/global/index.js +1 -0
  121. package/lib/editor/global/index.js.map +1 -1
  122. package/lib/editor/input/AcEdCursorManager.d.ts +10 -0
  123. package/lib/editor/input/AcEdCursorManager.d.ts.map +1 -1
  124. package/lib/editor/input/AcEdCursorManager.js +26 -6
  125. package/lib/editor/input/AcEdCursorManager.js.map +1 -1
  126. package/lib/editor/input/AcEdInputModifiers.d.ts +39 -0
  127. package/lib/editor/input/AcEdInputModifiers.d.ts.map +1 -0
  128. package/lib/editor/input/AcEdInputModifiers.js +2 -0
  129. package/lib/editor/input/AcEdInputModifiers.js.map +1 -0
  130. package/lib/editor/input/AcEdInputToggles.d.ts +24 -0
  131. package/lib/editor/input/AcEdInputToggles.d.ts.map +1 -0
  132. package/lib/editor/input/AcEdInputToggles.js +2 -0
  133. package/lib/editor/input/AcEdInputToggles.js.map +1 -0
  134. package/lib/editor/input/AcEdPromptStateMachine.d.ts +110 -0
  135. package/lib/editor/input/AcEdPromptStateMachine.d.ts.map +1 -0
  136. package/lib/editor/input/AcEdPromptStateMachine.js +147 -0
  137. package/lib/editor/input/AcEdPromptStateMachine.js.map +1 -0
  138. package/lib/editor/input/AcEditor.d.ts +58 -9
  139. package/lib/editor/input/AcEditor.d.ts.map +1 -1
  140. package/lib/editor/input/AcEditor.js +98 -3
  141. package/lib/editor/input/AcEditor.js.map +1 -1
  142. package/lib/editor/input/index.d.ts +3 -0
  143. package/lib/editor/input/index.d.ts.map +1 -1
  144. package/lib/editor/input/index.js +3 -0
  145. package/lib/editor/input/index.js.map +1 -1
  146. package/lib/editor/input/marker/AcEdMarker.d.ts.map +1 -1
  147. package/lib/editor/input/marker/AcEdMarker.js +3 -3
  148. package/lib/editor/input/marker/AcEdMarker.js.map +1 -1
  149. package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts.map +1 -1
  150. package/lib/editor/input/prompt/AcEdKeywordCollection.js +11 -4
  151. package/lib/editor/input/prompt/AcEdKeywordCollection.js.map +1 -1
  152. package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts +1 -1
  153. package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts.map +1 -1
  154. package/lib/editor/input/prompt/AcEdPromptAngleOptions.js +2 -2
  155. package/lib/editor/input/prompt/AcEdPromptAngleOptions.js.map +1 -1
  156. package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts +20 -0
  157. package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts.map +1 -0
  158. package/lib/editor/input/prompt/AcEdPromptBoxOptions.js +80 -0
  159. package/lib/editor/input/prompt/AcEdPromptBoxOptions.js.map +1 -0
  160. package/lib/editor/input/prompt/AcEdPromptBoxResult.d.ts +12 -0
  161. package/lib/editor/input/prompt/AcEdPromptBoxResult.d.ts.map +1 -0
  162. package/lib/editor/input/prompt/AcEdPromptBoxResult.js +30 -0
  163. package/lib/editor/input/prompt/AcEdPromptBoxResult.js.map +1 -0
  164. package/lib/editor/input/prompt/AcEdPromptDoubleResult.d.ts +9 -0
  165. package/lib/editor/input/prompt/AcEdPromptDoubleResult.d.ts.map +1 -0
  166. package/lib/editor/input/prompt/AcEdPromptDoubleResult.js +28 -0
  167. package/lib/editor/input/prompt/AcEdPromptDoubleResult.js.map +1 -0
  168. package/lib/editor/input/prompt/AcEdPromptEntityOptions.d.ts +1 -1
  169. package/lib/editor/input/prompt/AcEdPromptEntityOptions.d.ts.map +1 -1
  170. package/lib/editor/input/prompt/AcEdPromptEntityOptions.js +2 -2
  171. package/lib/editor/input/prompt/AcEdPromptEntityOptions.js.map +1 -1
  172. package/lib/editor/input/prompt/AcEdPromptEntityResult.d.ts +14 -0
  173. package/lib/editor/input/prompt/AcEdPromptEntityResult.d.ts.map +1 -0
  174. package/lib/editor/input/prompt/AcEdPromptEntityResult.js +31 -0
  175. package/lib/editor/input/prompt/AcEdPromptEntityResult.js.map +1 -0
  176. package/lib/editor/input/prompt/AcEdPromptIntegerResult.d.ts +9 -0
  177. package/lib/editor/input/prompt/AcEdPromptIntegerResult.d.ts.map +1 -0
  178. package/lib/editor/input/prompt/AcEdPromptIntegerResult.js +28 -0
  179. package/lib/editor/input/prompt/AcEdPromptIntegerResult.js.map +1 -0
  180. package/lib/editor/input/prompt/AcEdPromptKeywordOptions.d.ts +1 -1
  181. package/lib/editor/input/prompt/AcEdPromptKeywordOptions.d.ts.map +1 -1
  182. package/lib/editor/input/prompt/AcEdPromptKeywordOptions.js +2 -2
  183. package/lib/editor/input/prompt/AcEdPromptKeywordOptions.js.map +1 -1
  184. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.d.ts +1 -1
  185. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.d.ts.map +1 -1
  186. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.js +2 -2
  187. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.js.map +1 -1
  188. package/lib/editor/input/prompt/AcEdPromptOptions.d.ts +3 -2
  189. package/lib/editor/input/prompt/AcEdPromptOptions.d.ts.map +1 -1
  190. package/lib/editor/input/prompt/AcEdPromptOptions.js +15 -4
  191. package/lib/editor/input/prompt/AcEdPromptOptions.js.map +1 -1
  192. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +1 -1
  193. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
  194. package/lib/editor/input/prompt/AcEdPromptPointOptions.js +2 -2
  195. package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
  196. package/lib/editor/input/prompt/AcEdPromptPointResult.d.ts +3 -3
  197. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.d.ts +1 -1
  198. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.d.ts.map +1 -1
  199. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.js +2 -2
  200. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.js.map +1 -1
  201. package/lib/editor/input/prompt/AcEdPromptSelectionResult.d.ts +12 -0
  202. package/lib/editor/input/prompt/AcEdPromptSelectionResult.d.ts.map +1 -0
  203. package/lib/editor/input/prompt/AcEdPromptSelectionResult.js +30 -0
  204. package/lib/editor/input/prompt/AcEdPromptSelectionResult.js.map +1 -0
  205. package/lib/editor/input/prompt/AcEdPromptStringOptions.d.ts +1 -1
  206. package/lib/editor/input/prompt/AcEdPromptStringOptions.d.ts.map +1 -1
  207. package/lib/editor/input/prompt/AcEdPromptStringOptions.js +2 -2
  208. package/lib/editor/input/prompt/AcEdPromptStringOptions.js.map +1 -1
  209. package/lib/editor/input/prompt/index.d.ts +10 -0
  210. package/lib/editor/input/prompt/index.d.ts.map +1 -1
  211. package/lib/editor/input/prompt/index.js +10 -0
  212. package/lib/editor/input/prompt/index.js.map +1 -1
  213. package/lib/editor/input/session/AcEdKeywordSession.d.ts +2 -1
  214. package/lib/editor/input/session/AcEdKeywordSession.d.ts.map +1 -1
  215. package/lib/editor/input/session/AcEdKeywordSession.js +7 -1
  216. package/lib/editor/input/session/AcEdKeywordSession.js.map +1 -1
  217. package/lib/editor/input/ui/AcEdCommandLine.d.ts +4 -1
  218. package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
  219. package/lib/editor/input/ui/AcEdCommandLine.js +34 -5
  220. package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
  221. package/lib/editor/input/ui/AcEdFloatingInput.d.ts +23 -1
  222. package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
  223. package/lib/editor/input/ui/AcEdFloatingInput.js +140 -26
  224. package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
  225. package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts +2 -0
  226. package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts.map +1 -1
  227. package/lib/editor/input/ui/AcEdFloatingInputBox.js +4 -0
  228. package/lib/editor/input/ui/AcEdFloatingInputBox.js.map +1 -1
  229. package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts +7 -0
  230. package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts.map +1 -1
  231. package/lib/editor/input/ui/AcEdFloatingInputBoxes.js +14 -6
  232. package/lib/editor/input/ui/AcEdFloatingInputBoxes.js.map +1 -1
  233. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +5 -0
  234. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
  235. package/lib/editor/input/ui/AcEdFloatingMessage.d.ts +12 -0
  236. package/lib/editor/input/ui/AcEdFloatingMessage.d.ts.map +1 -1
  237. package/lib/editor/input/ui/AcEdFloatingMessage.js +61 -2
  238. package/lib/editor/input/ui/AcEdFloatingMessage.js.map +1 -1
  239. package/lib/editor/input/ui/AcEdInputManager.d.ts +47 -13
  240. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  241. package/lib/editor/input/ui/AcEdInputManager.js +854 -389
  242. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  243. package/lib/editor/input/ui/AcEdMTextEditor.d.ts +79 -0
  244. package/lib/editor/input/ui/AcEdMTextEditor.d.ts.map +1 -0
  245. package/lib/editor/input/ui/AcEdMTextEditor.js +157 -0
  246. package/lib/editor/input/ui/AcEdMTextEditor.js.map +1 -0
  247. package/lib/editor/input/ui/AcEdRubberBand.js +1 -1
  248. package/lib/editor/input/ui/AcEdRubberBand.js.map +1 -1
  249. package/lib/editor/input/ui/index.d.ts +2 -0
  250. package/lib/editor/input/ui/index.d.ts.map +1 -1
  251. package/lib/editor/input/ui/index.js +1 -0
  252. package/lib/editor/input/ui/index.js.map +1 -1
  253. package/lib/editor/view/AcEdBaseView.d.ts +81 -0
  254. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  255. package/lib/editor/view/AcEdBaseView.js +173 -1
  256. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  257. package/lib/editor/view/AcEdSpatialQueryResult.d.ts.map +1 -1
  258. package/lib/i18n/en/command.d.ts +21 -0
  259. package/lib/i18n/en/command.d.ts.map +1 -1
  260. package/lib/i18n/en/command.js +21 -0
  261. package/lib/i18n/en/command.js.map +1 -1
  262. package/lib/i18n/en/jig.d.ts +131 -0
  263. package/lib/i18n/en/jig.d.ts.map +1 -1
  264. package/lib/i18n/en/jig.js +131 -0
  265. package/lib/i18n/en/jig.js.map +1 -1
  266. package/lib/i18n/zh/command.d.ts +21 -0
  267. package/lib/i18n/zh/command.d.ts.map +1 -1
  268. package/lib/i18n/zh/command.js +21 -0
  269. package/lib/i18n/zh/command.js.map +1 -1
  270. package/lib/i18n/zh/jig.d.ts +131 -0
  271. package/lib/i18n/zh/jig.d.ts.map +1 -1
  272. package/lib/i18n/zh/jig.js +131 -0
  273. package/lib/i18n/zh/jig.js.map +1 -1
  274. package/lib/index.d.ts +2 -0
  275. package/lib/index.d.ts.map +1 -1
  276. package/lib/index.js +1 -0
  277. package/lib/index.js.map +1 -1
  278. package/lib/plugin/AcApPluginExample.d.ts.map +1 -1
  279. package/lib/plugin/AcApPluginExample.js +7 -6
  280. package/lib/plugin/AcApPluginExample.js.map +1 -1
  281. package/lib/plugin/AcApPluginManager.d.ts +4 -4
  282. package/lib/plugin/AcApPluginManager.d.ts.map +1 -1
  283. package/lib/plugin/AcApPluginManager.js +7 -6
  284. package/lib/plugin/AcApPluginManager.js.map +1 -1
  285. package/lib/util/AcApMeasurementElementGenerator.d.ts +36 -0
  286. package/lib/util/AcApMeasurementElementGenerator.d.ts.map +1 -0
  287. package/lib/util/AcApMeasurementElementGenerator.js +92 -0
  288. package/lib/util/AcApMeasurementElementGenerator.js.map +1 -0
  289. package/lib/util/index.d.ts +1 -0
  290. package/lib/util/index.d.ts.map +1 -1
  291. package/lib/util/index.js +1 -0
  292. package/lib/util/index.js.map +1 -1
  293. package/lib/view/AcTrLayout.d.ts +14 -0
  294. package/lib/view/AcTrLayout.d.ts.map +1 -1
  295. package/lib/view/AcTrLayout.js +21 -0
  296. package/lib/view/AcTrLayout.js.map +1 -1
  297. package/lib/view/AcTrLayoutView.d.ts +11 -0
  298. package/lib/view/AcTrLayoutView.d.ts.map +1 -1
  299. package/lib/view/AcTrLayoutView.js +30 -0
  300. package/lib/view/AcTrLayoutView.js.map +1 -1
  301. package/lib/view/AcTrScene.d.ts +7 -1
  302. package/lib/view/AcTrScene.d.ts.map +1 -1
  303. package/lib/view/AcTrScene.js +16 -2
  304. package/lib/view/AcTrScene.js.map +1 -1
  305. package/lib/view/AcTrView2d.d.ts +16 -1
  306. package/lib/view/AcTrView2d.d.ts.map +1 -1
  307. package/lib/view/AcTrView2d.js +145 -56
  308. package/lib/view/AcTrView2d.js.map +1 -1
  309. package/package.json +10 -9
@@ -1,3 +1,39 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ 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);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ 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;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
1
37
  import { AcCmEventManager, AcGeBox3d, AcGePoint2d } from '@mlightcad/data-model';
2
38
  import { debounce } from 'lodash-es';
3
39
  import { AcEdCorsorType, AcEdSelectionSet } from '../input';
@@ -102,7 +138,9 @@ var AcEdBaseView = /** @class */ (function () {
102
138
  /** Fired when mouse hovers over an entity */
103
139
  hover: new AcCmEventManager(),
104
140
  /** Fired when mouse stops hovering over an entity */
105
- unhover: new AcCmEventManager()
141
+ unhover: new AcCmEventManager(),
142
+ /** Fired when a frame is rendered */
143
+ renderFrame: new AcCmEventManager()
106
144
  };
107
145
  this._container = container;
108
146
  this._canvas = canvas;
@@ -175,6 +213,46 @@ var AcEdBaseView = /** @class */ (function () {
175
213
  enumerable: false,
176
214
  configurable: true
177
215
  });
216
+ /**
217
+ * Temporarily switches the view mode, executes an action, then restores
218
+ * the previous mode — even if the action throws.
219
+ *
220
+ * This is the mode-level counterpart of {@link AcEditor.withCursor} and
221
+ * follows the same save → set → restore pattern.
222
+ *
223
+ * @param mode - The temporary view mode to apply
224
+ * @param action - The async (or sync) action to run under the temporary mode
225
+ * @returns The value returned by the action
226
+ *
227
+ * @example
228
+ * ```typescript
229
+ * await view.withMode(AcEdViewMode.SELECTION, async () => {
230
+ * const pt = await view.editor.getPoint('Pick a point')
231
+ * })
232
+ * // view.mode is restored to whatever it was before
233
+ * ```
234
+ */
235
+ AcEdBaseView.prototype.withMode = function (mode, action) {
236
+ return __awaiter(this, void 0, void 0, function () {
237
+ var previousMode;
238
+ return __generator(this, function (_a) {
239
+ switch (_a.label) {
240
+ case 0:
241
+ previousMode = this.mode;
242
+ this.mode = mode;
243
+ _a.label = 1;
244
+ case 1:
245
+ _a.trys.push([1, , 3, 4]);
246
+ return [4 /*yield*/, Promise.resolve(action())];
247
+ case 2: return [2 /*return*/, _a.sent()];
248
+ case 3:
249
+ this.mode = previousMode;
250
+ return [7 /*endfinally*/];
251
+ case 4: return [2 /*return*/];
252
+ }
253
+ });
254
+ });
255
+ };
178
256
  /**
179
257
  * Set cursor type of this view
180
258
  * @param cursorType Input cursor type
@@ -182,6 +260,100 @@ var AcEdBaseView = /** @class */ (function () {
182
260
  AcEdBaseView.prototype.setCursor = function (cursorType) {
183
261
  this._editor.setCursor(cursorType);
184
262
  };
263
+ /**
264
+ * Returns selection mode based on drag direction in canvas coordinates.
265
+ * Left-to-right = window selection, right-to-left = crossing selection.
266
+ */
267
+ AcEdBaseView.prototype.getSelectionMode = function (startCanvas, endCanvas) {
268
+ return endCanvas.x >= startCanvas.x ? 'window' : 'crossing';
269
+ };
270
+ /**
271
+ * Returns the selection action based on modifier keys.
272
+ * Shift: remove, Ctrl/Cmd: add, default: replace.
273
+ */
274
+ AcEdBaseView.prototype.getSelectionActionFromEvent = function (e, defaultAction) {
275
+ if (defaultAction === void 0) { defaultAction = 'replace'; }
276
+ if (e.shiftKey)
277
+ return 'remove';
278
+ if (e.ctrlKey || e.metaKey)
279
+ return 'add';
280
+ return defaultAction;
281
+ };
282
+ /**
283
+ * Determine whether a drag is effectively a click.
284
+ */
285
+ AcEdBaseView.prototype.isSelectionClick = function (startCanvas, endCanvas, threshold) {
286
+ if (threshold === void 0) { threshold = 2; }
287
+ var dx = endCanvas.x - startCanvas.x;
288
+ var dy = endCanvas.y - startCanvas.y;
289
+ return Math.hypot(dx, dy) < threshold;
290
+ };
291
+ /**
292
+ * Returns preview styles for selection rectangle.
293
+ */
294
+ AcEdBaseView.prototype.getSelectionPreviewStyle = function (mode, action) {
295
+ var windowLine = 'var(--ml-ui-canvas-line, #00ff5a)';
296
+ var crossingLine = 'var(--ml-ui-accent-alt, #00d1ff)';
297
+ var removeLine = 'var(--ml-ui-danger, #ff4d4f)';
298
+ var lineColor = action === 'remove'
299
+ ? removeLine
300
+ : mode === 'window'
301
+ ? windowLine
302
+ : crossingLine;
303
+ var background = 'var(--ml-ui-canvas-fill-mix, var(--ml-ui-canvas-fill, rgba(64, 158, 255, 0.12)))';
304
+ var borderStyle = mode === 'window' ? 'solid' : 'dashed';
305
+ return { borderStyle: borderStyle, lineColor: lineColor, background: background };
306
+ };
307
+ /**
308
+ * Applies selection based on action.
309
+ */
310
+ AcEdBaseView.prototype.applySelection = function (ids, action) {
311
+ var _this = this;
312
+ if (action === 'replace') {
313
+ this.selectionSet.clear();
314
+ var unique = ids.filter(function (id) { return !_this.selectionSet.has(id); });
315
+ if (unique.length > 0)
316
+ this.selectionSet.add(unique);
317
+ return;
318
+ }
319
+ if (ids.length === 0)
320
+ return;
321
+ if (action === 'add') {
322
+ var unique = ids.filter(function (id) { return !_this.selectionSet.has(id); });
323
+ if (unique.length > 0)
324
+ this.selectionSet.add(unique);
325
+ }
326
+ else {
327
+ var existing = ids.filter(function (id) { return _this.selectionSet.has(id); });
328
+ if (existing.length > 0)
329
+ this.selectionSet.delete(existing);
330
+ }
331
+ };
332
+ /**
333
+ * Select entities by box with window/crossing behavior.
334
+ */
335
+ AcEdBaseView.prototype.selectByBoxWithMode = function (box, mode, action) {
336
+ if (action === void 0) { action = 'add'; }
337
+ var ids = this.collectSelectionIdsByBox(box, mode);
338
+ this.applySelection(ids, action);
339
+ };
340
+ /**
341
+ * Collects ids using window or crossing selection rules.
342
+ */
343
+ AcEdBaseView.prototype.collectSelectionIdsByBox = function (box, mode) {
344
+ var results = this.search(box);
345
+ var ids = [];
346
+ results.forEach(function (item) {
347
+ if (mode === 'crossing' ||
348
+ (item.minX >= box.min.x &&
349
+ item.maxX <= box.max.x &&
350
+ item.minY >= box.min.y &&
351
+ item.maxY <= box.max.y)) {
352
+ ids.push(item.id);
353
+ }
354
+ });
355
+ return ids;
356
+ };
185
357
  /**
186
358
  * Set callback function used to calculate size of canvas when window resized
187
359
  * @param value Input callback function
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdBaseView.js","sourceRoot":"","sources":["../../../src/editor/view/AcEdBaseView.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAOhB,SAAS,EACT,WAAW,EAEZ,MAAM,uBAAuB,C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CAAC,gBAAgB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAA;YAC3D,CAAC;QACH,CAAC;IACH,CAAC;IACH,mBAAC;AAAD,CAAC,AAluBD,IAkuBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdSpatialQueryResult.d.ts","sourceRoot":"","sources":["../../../src/editor/view/AcEdSpatialQueryResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,YAAY,CAAA;CACjB;AAED,MAAM,WAAW,4BACf,SAAQ,0BAA0B;IAClC,QAAQ,CAAC,EAAE,0BAA0B,EAAE,CAAA;CACxC"}
1
+ {"version":3,"file":"AcEdSpatialQueryResult.d.ts","sourceRoot":"","sources":["../../../src/editor/view/AcEdSpatialQueryResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,YAAY,CAAA;CACjB;AAED,MAAM,WAAW,4BAA6B,SAAQ,0BAA0B;IAC9E,QAAQ,CAAC,EAAE,0BAA0B,EAAE,CAAA;CACxC"}
@@ -1,5 +1,8 @@
1
1
  declare const _default: {
2
2
  ACAD: {
3
+ arc: {
4
+ description: string;
5
+ };
3
6
  cecolor: {
4
7
  description: string;
5
8
  };
@@ -15,6 +18,12 @@ declare const _default: {
15
18
  circle: {
16
19
  description: string;
17
20
  };
21
+ colortheme: {
22
+ description: string;
23
+ };
24
+ cdxf: {
25
+ description: string;
26
+ };
18
27
  csvg: {
19
28
  description: string;
20
29
  };
@@ -28,6 +37,18 @@ declare const _default: {
28
37
  line: {
29
38
  description: string;
30
39
  };
40
+ lwdisplay: {
41
+ description: string;
42
+ };
43
+ pline: {
44
+ description: string;
45
+ };
46
+ spline: {
47
+ description: string;
48
+ };
49
+ mtext: {
50
+ description: string;
51
+ };
31
52
  log: {
32
53
  description: string;
33
54
  };
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/i18n/en/command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA4EC"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/i18n/en/command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAkGC"}
@@ -1,5 +1,8 @@
1
1
  export default {
2
2
  ACAD: {
3
+ arc: {
4
+ description: 'Creates an arc'
5
+ },
3
6
  cecolor: {
4
7
  description: 'Sets the current default color for newly created objects'
5
8
  },
@@ -15,6 +18,12 @@ export default {
15
18
  circle: {
16
19
  description: 'Creates one circle by center and radius'
17
20
  },
21
+ colortheme: {
22
+ description: 'Controls the color theme of the user interface (dark or light)'
23
+ },
24
+ cdxf: {
25
+ description: 'Exports current drawing to DXF'
26
+ },
18
27
  csvg: {
19
28
  description: 'Converts current drawing to SVG'
20
29
  },
@@ -28,6 +37,18 @@ export default {
28
37
  line: {
29
38
  description: 'Draws straight line segments between points'
30
39
  },
40
+ lwdisplay: {
41
+ description: 'Controls whether lineweights are displayed in the drawing'
42
+ },
43
+ pline: {
44
+ description: 'Creates a polyline by specifying multiple points'
45
+ },
46
+ spline: {
47
+ description: 'Creates a smooth spline curve by specifying control points'
48
+ },
49
+ mtext: {
50
+ description: 'Creates one mtext entity'
51
+ },
31
52
  log: {
32
53
  description: 'Logs debug information in console'
33
54
  },
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../src/i18n/en/command.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,WAAW,EAAE,0DAA0D;SACxE;QACD,SAAS,EAAE;YACT,WAAW,EACT,8DAA8D;SACjE;QACD,SAAS,EAAE;YACT,WAAW,EAAE,uDAAuD;SACrE;QACD,MAAM,EAAE;YACN,WAAW,EACT,+DAA+D;SAClE;QACD,MAAM,EAAE;YACN,WAAW,EAAE,yCAAyC;SACvD;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,iCAAiC;SAC/C;QACD,SAAS,EAAE;YACT,WAAW,EAAE,2BAA2B;SACzC;QACD,KAAK,EAAE;YACL,WAAW,EAAE,4CAA4C;YACzD,MAAM,EAAE,iBAAiB;SAC1B;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,6CAA6C;SAC3D;QACD,GAAG,EAAE;YACH,WAAW,EAAE,mCAAmC;SACjD;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,gCAAgC;SAC9C;QACD,GAAG,EAAE;YACH,WAAW,EACT,yEAAyE;SAC5E;QACD,OAAO,EAAE;YACP,WAAW,EACT,qEAAqE;SACxE;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,sBAAsB;SACpC;QACD,SAAS,EAAE;YACT,WAAW,EAAE,wDAAwD;SACtE;QACD,KAAK,EAAE;YACL,WAAW,EAAE,6BAA6B;SAC3C;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,4DAA4D;SAC1E;QACD,MAAM,EAAE;YACN,WAAW,EAAE,kBAAkB;SAChC;QACD,MAAM,EAAE;YACN,WAAW,EACT,iEAAiE;SACpE;QACD,YAAY,EAAE;YACZ,WAAW,EAAE,6DAA6D;SAC3E;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;SACpE;QACD,KAAK,EAAE;YACL,WAAW,EAAE,4DAA4D;SAC1E;KACF;IACD,IAAI,EAAE,EAAE;CACT,CAAA"}
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../src/i18n/en/command.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,IAAI,EAAE;QACJ,GAAG,EAAE;YACH,WAAW,EAAE,gBAAgB;SAC9B;QACD,OAAO,EAAE;YACP,WAAW,EAAE,0DAA0D;SACxE;QACD,SAAS,EAAE;YACT,WAAW,EACT,8DAA8D;SACjE;QACD,SAAS,EAAE;YACT,WAAW,EAAE,uDAAuD;SACrE;QACD,MAAM,EAAE;YACN,WAAW,EACT,+DAA+D;SAClE;QACD,MAAM,EAAE;YACN,WAAW,EAAE,yCAAyC;SACvD;QACD,UAAU,EAAE;YACV,WAAW,EACT,gEAAgE;SACnE;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,gCAAgC;SAC9C;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,iCAAiC;SAC/C;QACD,SAAS,EAAE;YACT,WAAW,EAAE,2BAA2B;SACzC;QACD,KAAK,EAAE;YACL,WAAW,EAAE,4CAA4C;YACzD,MAAM,EAAE,iBAAiB;SAC1B;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,6CAA6C;SAC3D;QACD,SAAS,EAAE;YACT,WAAW,EAAE,2DAA2D;SACzE;QACD,KAAK,EAAE;YACL,WAAW,EAAE,kDAAkD;SAChE;QACD,MAAM,EAAE;YACN,WAAW,EAAE,4DAA4D;SAC1E;QACD,KAAK,EAAE;YACL,WAAW,EAAE,0BAA0B;SACxC;QACD,GAAG,EAAE;YACH,WAAW,EAAE,mCAAmC;SACjD;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,gCAAgC;SAC9C;QACD,GAAG,EAAE;YACH,WAAW,EACT,yEAAyE;SAC5E;QACD,OAAO,EAAE;YACP,WAAW,EACT,qEAAqE;SACxE;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,sBAAsB;SACpC;QACD,SAAS,EAAE;YACT,WAAW,EAAE,wDAAwD;SACtE;QACD,KAAK,EAAE;YACL,WAAW,EAAE,6BAA6B;SAC3C;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,4DAA4D;SAC1E;QACD,MAAM,EAAE;YACN,WAAW,EAAE,kBAAkB;SAChC;QACD,MAAM,EAAE;YACN,WAAW,EACT,iEAAiE;SACpE;QACD,YAAY,EAAE;YACZ,WAAW,EAAE,6DAA6D;SAC3E;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;SACpE;QACD,KAAK,EAAE;YACL,WAAW,EAAE,4DAA4D;SAC1E;KACF;IACD,IAAI,EAAE,EAAE;CACT,CAAA"}
@@ -1,8 +1,79 @@
1
1
  declare const _default: {
2
+ arc: {
3
+ startPointOrCenter: string;
4
+ secondPointOrOptions: string;
5
+ startPoint: string;
6
+ centerPoint: string;
7
+ endPoint: string;
8
+ endPointOrOptions: string;
9
+ centerPointOrOptions: string;
10
+ includedAngle: string;
11
+ chordLength: string;
12
+ tangentDirection: string;
13
+ radius: string;
14
+ keywords: {
15
+ center: {
16
+ display: string;
17
+ local: string;
18
+ global: string;
19
+ };
20
+ end: {
21
+ display: string;
22
+ local: string;
23
+ global: string;
24
+ };
25
+ angle: {
26
+ display: string;
27
+ local: string;
28
+ global: string;
29
+ };
30
+ chordLength: {
31
+ display: string;
32
+ local: string;
33
+ global: string;
34
+ };
35
+ direction: {
36
+ display: string;
37
+ local: string;
38
+ global: string;
39
+ };
40
+ radius: {
41
+ display: string;
42
+ local: string;
43
+ global: string;
44
+ };
45
+ };
46
+ invalid: {
47
+ threePoint: string;
48
+ center: string;
49
+ angle: string;
50
+ chordLength: string;
51
+ direction: string;
52
+ radius: string;
53
+ };
54
+ };
2
55
  circle: {
3
56
  center: string;
4
57
  radius: string;
5
58
  };
59
+ measureDistance: {
60
+ firstPoint: string;
61
+ secondPoint: string;
62
+ };
63
+ measureArea: {
64
+ firstPoint: string;
65
+ nextPoint: string;
66
+ };
67
+ measureAngle: {
68
+ vertex: string;
69
+ arm1: string;
70
+ arm2: string;
71
+ };
72
+ measureArc: {
73
+ startPoint: string;
74
+ throughPoint: string;
75
+ endPoint: string;
76
+ };
6
77
  dimlinear: {
7
78
  xLine1Point: string;
8
79
  xLine2Point: string;
@@ -12,6 +83,9 @@ declare const _default: {
12
83
  firstPoint: string;
13
84
  nextPoint: string;
14
85
  };
86
+ mtext: {
87
+ point: string;
88
+ };
15
89
  rect: {
16
90
  firstPoint: string;
17
91
  nextPoint: string;
@@ -20,6 +94,63 @@ declare const _default: {
20
94
  firstPoint: string;
21
95
  nextPoint: string;
22
96
  };
97
+ polyline: {
98
+ firstPoint: string;
99
+ nextPoint: string;
100
+ nextPointWithOptions: string;
101
+ nextPointWithArcOptions: string;
102
+ keywords: {
103
+ arc: {
104
+ display: string;
105
+ local: string;
106
+ global: string;
107
+ };
108
+ undo: {
109
+ display: string;
110
+ local: string;
111
+ global: string;
112
+ };
113
+ close: {
114
+ display: string;
115
+ local: string;
116
+ global: string;
117
+ };
118
+ line: {
119
+ display: string;
120
+ local: string;
121
+ global: string;
122
+ };
123
+ angle: {
124
+ display: string;
125
+ local: string;
126
+ global: string;
127
+ };
128
+ center: {
129
+ display: string;
130
+ local: string;
131
+ global: string;
132
+ };
133
+ secondPoint: {
134
+ display: string;
135
+ local: string;
136
+ global: string;
137
+ };
138
+ radius: {
139
+ display: string;
140
+ local: string;
141
+ global: string;
142
+ };
143
+ };
144
+ arcAngle: string;
145
+ arcCenter: string;
146
+ arcSecondPoint: string;
147
+ arcEndPoint: string;
148
+ arcRadius: string;
149
+ };
150
+ spline: {
151
+ firstPoint: string;
152
+ nextPoint: string;
153
+ };
23
154
  sysvar: {
24
155
  prompt: string;
25
156
  };
@@ -1 +1 @@
1
- {"version":3,"file":"jig.d.ts","sourceRoot":"","sources":["../../../src/i18n/en/jig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAyBC"}
1
+ {"version":3,"file":"jig.d.ts","sourceRoot":"","sources":["../../../src/i18n/en/jig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAmKC"}
@@ -1,8 +1,79 @@
1
1
  export default {
2
+ arc: {
3
+ startPointOrCenter: 'Specify start point of arc or [Center]:',
4
+ secondPointOrOptions: 'Specify second point of arc or [Center/End]:',
5
+ startPoint: 'Specify start point of arc:',
6
+ centerPoint: 'Specify center point of arc:',
7
+ endPoint: 'Specify end point of arc:',
8
+ endPointOrOptions: 'Specify end point of arc or [Angle/chord Length]:',
9
+ centerPointOrOptions: 'Specify center point of arc or [Angle/Direction/Radius]:',
10
+ includedAngle: 'Specify included angle:',
11
+ chordLength: 'Specify chord length:',
12
+ tangentDirection: 'Specify tangent direction for start point of arc:',
13
+ radius: 'Specify radius of arc:',
14
+ keywords: {
15
+ center: {
16
+ display: 'Center(C)',
17
+ local: 'Center',
18
+ global: 'Center'
19
+ },
20
+ end: {
21
+ display: 'End(E)',
22
+ local: 'End',
23
+ global: 'End'
24
+ },
25
+ angle: {
26
+ display: 'Angle(A)',
27
+ local: 'Angle',
28
+ global: 'Angle'
29
+ },
30
+ chordLength: {
31
+ display: 'chord Length(L)',
32
+ local: 'Chord Length',
33
+ global: 'ChordLength'
34
+ },
35
+ direction: {
36
+ display: 'Direction(D)',
37
+ local: 'Direction',
38
+ global: 'Direction'
39
+ },
40
+ radius: {
41
+ display: 'Radius(R)',
42
+ local: 'Radius',
43
+ global: 'Radius'
44
+ }
45
+ },
46
+ invalid: {
47
+ threePoint: 'Invalid 3-point arc: points are collinear or cannot define an arc.',
48
+ center: 'Invalid center input: start and end points must lie on the same circle.',
49
+ angle: 'Invalid angle input: included angle must be greater than 0 and less than 360 degrees.',
50
+ chordLength: 'Invalid chord length: value is out of range for the current radius.',
51
+ direction: 'Invalid direction: cannot construct an arc from this tangent direction.',
52
+ radius: 'Invalid radius: the specified radius cannot connect start and end points.'
53
+ }
54
+ },
2
55
  circle: {
3
56
  center: 'Specify the center of circle:',
4
57
  radius: 'Specify the radius of circle:'
5
58
  },
59
+ measureDistance: {
60
+ firstPoint: 'Specify first point:',
61
+ secondPoint: 'Specify second point:'
62
+ },
63
+ measureArea: {
64
+ firstPoint: 'Specify first point:',
65
+ nextPoint: 'Specify next point (or press Enter to finish):'
66
+ },
67
+ measureAngle: {
68
+ vertex: 'Specify vertex point:',
69
+ arm1: 'Specify point on first arm:',
70
+ arm2: 'Specify point on second arm:'
71
+ },
72
+ measureArc: {
73
+ startPoint: 'Specify arc start point:',
74
+ throughPoint: 'Specify a point on the arc:',
75
+ endPoint: 'Specify arc end point:'
76
+ },
6
77
  dimlinear: {
7
78
  xLine1Point: 'Specify the first extension line origin:',
8
79
  xLine2Point: 'Specify the second extension line origin:',
@@ -12,6 +83,9 @@ export default {
12
83
  firstPoint: 'Specify the first point:',
13
84
  nextPoint: 'Specify the next point:'
14
85
  },
86
+ mtext: {
87
+ point: 'Specify mtext insertion point:'
88
+ },
15
89
  rect: {
16
90
  firstPoint: 'Specify the first point:',
17
91
  nextPoint: 'Specify the next point:'
@@ -20,6 +94,63 @@ export default {
20
94
  firstPoint: 'Specify the first point:',
21
95
  nextPoint: 'Specify the end point:'
22
96
  },
97
+ polyline: {
98
+ firstPoint: 'Specify the first point:',
99
+ nextPoint: 'Specify the next point (or press Enter to finish):',
100
+ nextPointWithOptions: 'Specify next point or',
101
+ nextPointWithArcOptions: 'Specify next point or',
102
+ keywords: {
103
+ arc: {
104
+ display: 'Arc(A)',
105
+ local: 'Arc',
106
+ global: 'Arc'
107
+ },
108
+ undo: {
109
+ display: 'Undo(U)',
110
+ local: 'Undo',
111
+ global: 'Undo'
112
+ },
113
+ close: {
114
+ display: 'Close(C)',
115
+ local: 'Close',
116
+ global: 'Close'
117
+ },
118
+ line: {
119
+ display: 'Line(L)',
120
+ local: 'Line',
121
+ global: 'Line'
122
+ },
123
+ angle: {
124
+ display: 'Angle(A)',
125
+ local: 'Angle',
126
+ global: 'Angle'
127
+ },
128
+ center: {
129
+ display: 'Center(C)',
130
+ local: 'Center',
131
+ global: 'Center'
132
+ },
133
+ secondPoint: {
134
+ display: 'Second point(P)',
135
+ local: 'Second point',
136
+ global: 'SecondPoint'
137
+ },
138
+ radius: {
139
+ display: 'Radius(R)',
140
+ local: 'Radius',
141
+ global: 'Radius'
142
+ }
143
+ },
144
+ arcAngle: 'Specify arc angle:',
145
+ arcCenter: 'Specify center point:',
146
+ arcSecondPoint: 'Specify second point on arc:',
147
+ arcEndPoint: 'Specify arc end point:',
148
+ arcRadius: 'Specify arc radius:'
149
+ },
150
+ spline: {
151
+ firstPoint: 'Specify the first point:',
152
+ nextPoint: 'Specify the next point (or press Enter to finish):'
153
+ },
23
154
  sysvar: {
24
155
  prompt: 'Please input new value:'
25
156
  }
@@ -1 +1 @@
1
- {"version":3,"file":"jig.js","sourceRoot":"","sources":["../../../src/i18n/en/jig.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,MAAM,EAAE;QACN,MAAM,EAAE,+BAA+B;QACvC,MAAM,EAAE,+BAA+B;KACxC;IACD,SAAS,EAAE;QACT,WAAW,EAAE,0CAA0C;QACvD,WAAW,EAAE,2CAA2C;QACxD,YAAY,EAAE,kCAAkC;KACjD;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,0BAA0B;QACtC,SAAS,EAAE,yBAAyB;KACrC;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,0BAA0B;QACtC,SAAS,EAAE,yBAAyB;KACrC;IACD,MAAM,EAAE;QACN,UAAU,EAAE,0BAA0B;QACtC,SAAS,EAAE,wBAAwB;KACpC;I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