@mlightcad/cad-simple-viewer 1.2.4 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/dist/index.js +13000 -10094
  2. package/dist/index.umd.cjs +327 -24
  3. package/dist/libredwg-parser-worker.js +7267 -7238
  4. package/dist/mtext-renderer-worker.js +81 -41
  5. package/lib/app/AcApContext.js +1 -1
  6. package/lib/app/AcApContext.js.map +1 -1
  7. package/lib/app/AcApDocManager.d.ts +20 -3
  8. package/lib/app/AcApDocManager.d.ts.map +1 -1
  9. package/lib/app/AcApDocManager.js +67 -12
  10. package/lib/app/AcApDocManager.js.map +1 -1
  11. package/lib/app/AcApProgress.d.ts +133 -0
  12. package/lib/app/AcApProgress.d.ts.map +1 -0
  13. package/lib/app/AcApProgress.js +148 -0
  14. package/lib/app/AcApProgress.js.map +1 -0
  15. package/lib/app/AcApSettingManager.d.ts +42 -0
  16. package/lib/app/AcApSettingManager.d.ts.map +1 -1
  17. package/lib/app/AcApSettingManager.js +63 -0
  18. package/lib/app/AcApSettingManager.js.map +1 -1
  19. package/lib/app/index.d.ts +0 -1
  20. package/lib/app/index.d.ts.map +1 -1
  21. package/lib/app/index.js +0 -1
  22. package/lib/app/index.js.map +1 -1
  23. package/lib/command/AcApCircleCmd.d.ts +21 -0
  24. package/lib/command/AcApCircleCmd.d.ts.map +1 -0
  25. package/lib/command/AcApCircleCmd.js +115 -0
  26. package/lib/command/AcApCircleCmd.js.map +1 -0
  27. package/lib/command/AcApDimCmd.d.ts +57 -0
  28. package/lib/command/AcApDimCmd.d.ts.map +1 -0
  29. package/lib/command/AcApDimCmd.js +228 -0
  30. package/lib/command/AcApDimCmd.js.map +1 -0
  31. package/lib/command/AcApLogCmd.d.ts +13 -0
  32. package/lib/command/AcApLogCmd.d.ts.map +1 -0
  33. package/lib/command/AcApLogCmd.js +97 -0
  34. package/lib/command/AcApLogCmd.js.map +1 -0
  35. package/lib/command/AcApSysVarCmd.d.ts +15 -0
  36. package/lib/command/AcApSysVarCmd.d.ts.map +1 -0
  37. package/lib/command/AcApSysVarCmd.js +94 -0
  38. package/lib/command/AcApSysVarCmd.js.map +1 -0
  39. package/lib/command/AcApZoomCmd.js +1 -1
  40. package/lib/command/AcApZoomCmd.js.map +1 -1
  41. package/lib/command/AcApZoomToBoxCmd.d.ts +0 -36
  42. package/lib/command/AcApZoomToBoxCmd.d.ts.map +1 -1
  43. package/lib/command/AcApZoomToBoxCmd.js +4 -61
  44. package/lib/command/AcApZoomToBoxCmd.js.map +1 -1
  45. package/lib/command/index.d.ts +4 -0
  46. package/lib/command/index.d.ts.map +1 -1
  47. package/lib/command/index.js +4 -0
  48. package/lib/command/index.js.map +1 -1
  49. package/lib/editor/command/AcEdCommandStack.d.ts +19 -1
  50. package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
  51. package/lib/editor/command/AcEdCommandStack.js +40 -0
  52. package/lib/editor/command/AcEdCommandStack.js.map +1 -1
  53. package/lib/editor/input/AcEdCursorManager.d.ts +14 -30
  54. package/lib/editor/input/AcEdCursorManager.d.ts.map +1 -1
  55. package/lib/editor/input/AcEdCursorManager.js +32 -31
  56. package/lib/editor/input/AcEdCursorManager.js.map +1 -1
  57. package/lib/editor/input/AcEdPreviewJig.d.ts +103 -0
  58. package/lib/editor/input/AcEdPreviewJig.d.ts.map +1 -0
  59. package/lib/editor/input/AcEdPreviewJig.js +82 -0
  60. package/lib/editor/input/AcEdPreviewJig.js.map +1 -0
  61. package/lib/editor/input/AcEditor.d.ts +58 -11
  62. package/lib/editor/input/AcEditor.d.ts.map +1 -1
  63. package/lib/editor/input/AcEditor.js +86 -22
  64. package/lib/editor/input/AcEditor.js.map +1 -1
  65. package/lib/editor/input/handler/AcEdAngleHandler.d.ts +12 -0
  66. package/lib/editor/input/handler/AcEdAngleHandler.d.ts.map +1 -0
  67. package/lib/editor/input/handler/AcEdAngleHandler.js +25 -0
  68. package/lib/editor/input/handler/AcEdAngleHandler.js.map +1 -0
  69. package/lib/editor/input/handler/AcEdDistanceHandler.d.ts +8 -0
  70. package/lib/editor/input/handler/AcEdDistanceHandler.d.ts.map +1 -0
  71. package/lib/editor/input/handler/AcEdDistanceHandler.js +29 -0
  72. package/lib/editor/input/handler/AcEdDistanceHandler.js.map +1 -0
  73. package/lib/editor/input/handler/AcEdDoubleHandler.d.ts +7 -0
  74. package/lib/editor/input/handler/AcEdDoubleHandler.d.ts.map +1 -0
  75. package/lib/editor/input/handler/AcEdDoubleHandler.js +28 -0
  76. package/lib/editor/input/handler/AcEdDoubleHandler.js.map +1 -0
  77. package/lib/editor/input/handler/AcEdInputHandler.d.ts +14 -0
  78. package/lib/editor/input/handler/AcEdInputHandler.d.ts.map +1 -0
  79. package/lib/editor/input/handler/AcEdInputHandler.js +2 -0
  80. package/lib/editor/input/handler/AcEdInputHandler.js.map +1 -0
  81. package/lib/editor/input/handler/AcEdIntegerHandler.d.ts +11 -0
  82. package/lib/editor/input/handler/AcEdIntegerHandler.d.ts.map +1 -0
  83. package/lib/editor/input/handler/AcEdIntegerHandler.js +44 -0
  84. package/lib/editor/input/handler/AcEdIntegerHandler.js.map +1 -0
  85. package/lib/editor/input/handler/AcEdNumericalHandler.d.ts +11 -0
  86. package/lib/editor/input/handler/AcEdNumericalHandler.d.ts.map +1 -0
  87. package/lib/editor/input/handler/AcEdNumericalHandler.js +24 -0
  88. package/lib/editor/input/handler/AcEdNumericalHandler.js.map +1 -0
  89. package/lib/editor/input/handler/AcEdPointHandler.d.ts +16 -0
  90. package/lib/editor/input/handler/AcEdPointHandler.d.ts.map +1 -0
  91. package/lib/editor/input/handler/AcEdPointHandler.js +19 -0
  92. package/lib/editor/input/handler/AcEdPointHandler.js.map +1 -0
  93. package/lib/editor/input/handler/AcEdStringHandler.d.ts +12 -0
  94. package/lib/editor/input/handler/AcEdStringHandler.d.ts.map +1 -0
  95. package/lib/editor/input/handler/AcEdStringHandler.js +24 -0
  96. package/lib/editor/input/handler/AcEdStringHandler.js.map +1 -0
  97. package/lib/editor/input/handler/index.d.ts +9 -0
  98. package/lib/editor/input/handler/index.d.ts.map +1 -0
  99. package/lib/editor/input/handler/index.js +9 -0
  100. package/lib/editor/input/handler/index.js.map +1 -0
  101. package/lib/editor/input/index.d.ts +4 -1
  102. package/lib/editor/input/index.d.ts.map +1 -1
  103. package/lib/editor/input/index.js +4 -1
  104. package/lib/editor/input/index.js.map +1 -1
  105. package/lib/editor/input/marker/AcEdMarker.d.ts +72 -0
  106. package/lib/editor/input/marker/AcEdMarker.d.ts.map +1 -0
  107. package/lib/editor/input/marker/AcEdMarker.js +124 -0
  108. package/lib/editor/input/marker/AcEdMarker.js.map +1 -0
  109. package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts +52 -0
  110. package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts.map +1 -0
  111. package/lib/editor/input/marker/AcEdOSnapMarkerManager.js +91 -0
  112. package/lib/editor/input/marker/AcEdOSnapMarkerManager.js.map +1 -0
  113. package/lib/editor/input/marker/index.d.ts +3 -0
  114. package/lib/editor/input/marker/index.d.ts.map +1 -0
  115. package/lib/editor/input/marker/index.js +3 -0
  116. package/lib/editor/input/marker/index.js.map +1 -0
  117. package/lib/editor/input/prompt/AcEdKeyword.d.ts +63 -0
  118. package/lib/editor/input/prompt/AcEdKeyword.d.ts.map +1 -0
  119. package/lib/editor/input/prompt/AcEdKeyword.js +120 -0
  120. package/lib/editor/input/prompt/AcEdKeyword.js.map +1 -0
  121. package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts +52 -0
  122. package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts.map +1 -0
  123. package/lib/editor/input/prompt/AcEdKeywordCollection.js +103 -0
  124. package/lib/editor/input/prompt/AcEdKeywordCollection.js.map +1 -0
  125. package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts +75 -0
  126. package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts.map +1 -0
  127. package/lib/editor/input/prompt/AcEdPromptAngleOptions.js +182 -0
  128. package/lib/editor/input/prompt/AcEdPromptAngleOptions.js.map +1 -0
  129. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.d.ts +46 -0
  130. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.d.ts.map +1 -0
  131. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js +114 -0
  132. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js.map +1 -0
  133. package/lib/editor/input/prompt/AcEdPromptDoubleOptions.d.ts +10 -0
  134. package/lib/editor/input/prompt/AcEdPromptDoubleOptions.d.ts.map +1 -0
  135. package/lib/editor/input/prompt/AcEdPromptDoubleOptions.js +31 -0
  136. package/lib/editor/input/prompt/AcEdPromptDoubleOptions.js.map +1 -0
  137. package/lib/editor/input/prompt/AcEdPromptIntegerOptions.d.ts +39 -0
  138. package/lib/editor/input/prompt/AcEdPromptIntegerOptions.d.ts.map +1 -0
  139. package/lib/editor/input/prompt/AcEdPromptIntegerOptions.js +84 -0
  140. package/lib/editor/input/prompt/AcEdPromptIntegerOptions.js.map +1 -0
  141. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.d.ts +59 -0
  142. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.d.ts.map +1 -0
  143. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.js +140 -0
  144. package/lib/editor/input/prompt/AcEdPromptNumericalOptions.js.map +1 -0
  145. package/lib/editor/input/prompt/AcEdPromptNumericalResult.d.ts +19 -0
  146. package/lib/editor/input/prompt/AcEdPromptNumericalResult.d.ts.map +1 -0
  147. package/lib/editor/input/prompt/AcEdPromptNumericalResult.js +36 -0
  148. package/lib/editor/input/prompt/AcEdPromptNumericalResult.js.map +1 -0
  149. package/lib/editor/input/prompt/AcEdPromptOptions.d.ts +61 -0
  150. package/lib/editor/input/prompt/AcEdPromptOptions.d.ts.map +1 -0
  151. package/lib/editor/input/prompt/AcEdPromptOptions.js +179 -0
  152. package/lib/editor/input/prompt/AcEdPromptOptions.js.map +1 -0
  153. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +46 -0
  154. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -0
  155. package/lib/editor/input/prompt/AcEdPromptPointOptions.js +113 -0
  156. package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -0
  157. package/lib/editor/input/prompt/AcEdPromptPointResult.d.ts +25 -0
  158. package/lib/editor/input/prompt/AcEdPromptPointResult.d.ts.map +1 -0
  159. package/lib/editor/input/prompt/AcEdPromptPointResult.js +38 -0
  160. package/lib/editor/input/prompt/AcEdPromptPointResult.js.map +1 -0
  161. package/lib/editor/input/prompt/AcEdPromptResult.d.ts +27 -0
  162. package/lib/editor/input/prompt/AcEdPromptResult.d.ts.map +1 -0
  163. package/lib/editor/input/prompt/AcEdPromptResult.js +19 -0
  164. package/lib/editor/input/prompt/AcEdPromptResult.js.map +1 -0
  165. package/lib/editor/input/prompt/AcEdPromptStatus.d.ts +22 -0
  166. package/lib/editor/input/prompt/AcEdPromptStatus.d.ts.map +1 -0
  167. package/lib/editor/input/prompt/AcEdPromptStatus.js +23 -0
  168. package/lib/editor/input/prompt/AcEdPromptStatus.js.map +1 -0
  169. package/lib/editor/input/prompt/AcEdPromptStringOptions.d.ts +54 -0
  170. package/lib/editor/input/prompt/AcEdPromptStringOptions.d.ts.map +1 -0
  171. package/lib/editor/input/prompt/AcEdPromptStringOptions.js +124 -0
  172. package/lib/editor/input/prompt/AcEdPromptStringOptions.js.map +1 -0
  173. package/lib/editor/input/prompt/index.d.ts +11 -0
  174. package/lib/editor/input/prompt/index.d.ts.map +1 -0
  175. package/lib/editor/input/prompt/index.js +11 -0
  176. package/lib/editor/input/prompt/index.js.map +1 -0
  177. package/lib/editor/input/ui/AcEdCommandLine.d.ts +116 -0
  178. package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -0
  179. package/lib/editor/input/ui/AcEdCommandLine.js +481 -0
  180. package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -0
  181. package/lib/editor/input/ui/AcEdFloatingInput.d.ts +151 -0
  182. package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -0
  183. package/lib/editor/input/ui/AcEdFloatingInput.js +239 -0
  184. package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -0
  185. package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts +60 -0
  186. package/lib/editor/input/ui/AcEdFloatingInputBox.d.ts.map +1 -0
  187. package/lib/editor/input/ui/AcEdFloatingInputBox.js +113 -0
  188. package/lib/editor/input/ui/AcEdFloatingInputBox.js.map +1 -0
  189. package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts +104 -0
  190. package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts.map +1 -0
  191. package/lib/editor/input/ui/AcEdFloatingInputBoxes.js +154 -0
  192. package/lib/editor/input/ui/AcEdFloatingInputBoxes.js.map +1 -0
  193. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +113 -0
  194. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -0
  195. package/lib/editor/input/ui/AcEdFloatingInputTypes.js +2 -0
  196. package/lib/editor/input/ui/AcEdFloatingInputTypes.js.map +1 -0
  197. package/lib/editor/input/ui/AcEdInputManager.d.ts +132 -0
  198. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -0
  199. package/lib/editor/input/ui/AcEdInputManager.js +477 -0
  200. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -0
  201. package/lib/editor/input/ui/AcEdRubberBand.d.ts +66 -0
  202. package/lib/editor/input/ui/AcEdRubberBand.d.ts.map +1 -0
  203. package/lib/editor/input/ui/AcEdRubberBand.js +276 -0
  204. package/lib/editor/input/ui/AcEdRubberBand.js.map +1 -0
  205. package/lib/editor/input/ui/index.d.ts +3 -0
  206. package/lib/editor/input/ui/index.d.ts.map +1 -0
  207. package/lib/editor/input/ui/index.js +3 -0
  208. package/lib/editor/input/ui/index.js.map +1 -0
  209. package/lib/editor/view/AcEdBaseView.d.ts +54 -16
  210. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  211. package/lib/editor/view/AcEdBaseView.js +14 -11
  212. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  213. package/lib/editor/view/AcEdLayerInfo.d.ts +5 -0
  214. package/lib/editor/view/AcEdLayerInfo.d.ts.map +1 -1
  215. package/lib/i18n/AcApI18n.d.ts +135 -0
  216. package/lib/i18n/AcApI18n.d.ts.map +1 -0
  217. package/lib/i18n/AcApI18n.js +208 -0
  218. package/lib/i18n/AcApI18n.js.map +1 -0
  219. package/lib/i18n/en/command.d.ts +18 -0
  220. package/lib/i18n/en/command.d.ts.map +1 -0
  221. package/lib/i18n/en/command.js +17 -0
  222. package/lib/i18n/en/command.js.map +1 -0
  223. package/lib/i18n/en/jig.d.ts +11 -0
  224. package/lib/i18n/en/jig.d.ts.map +1 -0
  225. package/lib/i18n/en/jig.js +10 -0
  226. package/lib/i18n/en/jig.js.map +1 -0
  227. package/lib/i18n/en/main.d.ts +37 -0
  228. package/lib/i18n/en/main.d.ts.map +1 -0
  229. package/lib/i18n/en/main.js +36 -0
  230. package/lib/i18n/en/main.js.map +1 -0
  231. package/lib/i18n/index.d.ts +6 -0
  232. package/lib/i18n/index.d.ts.map +1 -0
  233. package/lib/i18n/index.js +31 -0
  234. package/lib/i18n/index.js.map +1 -0
  235. package/lib/i18n/zh/command.d.ts +18 -0
  236. package/lib/i18n/zh/command.d.ts.map +1 -0
  237. package/lib/i18n/zh/command.js +17 -0
  238. package/lib/i18n/zh/command.js.map +1 -0
  239. package/lib/i18n/zh/jig.d.ts +11 -0
  240. package/lib/i18n/zh/jig.d.ts.map +1 -0
  241. package/lib/i18n/zh/jig.js +10 -0
  242. package/lib/i18n/zh/jig.js.map +1 -0
  243. package/lib/i18n/zh/main.d.ts +37 -0
  244. package/lib/i18n/zh/main.d.ts.map +1 -0
  245. package/lib/i18n/zh/main.js +36 -0
  246. package/lib/i18n/zh/main.js.map +1 -0
  247. package/lib/index.d.ts +1 -0
  248. package/lib/index.d.ts.map +1 -1
  249. package/lib/index.js +1 -0
  250. package/lib/index.js.map +1 -1
  251. package/lib/view/AcTrLayer.d.ts +29 -5
  252. package/lib/view/AcTrLayer.d.ts.map +1 -1
  253. package/lib/view/AcTrLayer.js +44 -6
  254. package/lib/view/AcTrLayer.js.map +1 -1
  255. package/lib/view/AcTrLayout.d.ts +13 -7
  256. package/lib/view/AcTrLayout.d.ts.map +1 -1
  257. package/lib/view/AcTrLayout.js +29 -21
  258. package/lib/view/AcTrLayout.js.map +1 -1
  259. package/lib/view/AcTrScene.d.ts +22 -8
  260. package/lib/view/AcTrScene.d.ts.map +1 -1
  261. package/lib/view/AcTrScene.js +36 -9
  262. package/lib/view/AcTrScene.js.map +1 -1
  263. package/lib/view/AcTrView2d.d.ts +19 -4
  264. package/lib/view/AcTrView2d.d.ts.map +1 -1
  265. package/lib/view/AcTrView2d.js +135 -43
  266. package/lib/view/AcTrView2d.js.map +1 -1
  267. package/package.json +7 -7
  268. package/lib/editor/input/AcEdBaseInput.d.ts +0 -89
  269. package/lib/editor/input/AcEdBaseInput.d.ts.map +0 -1
  270. package/lib/editor/input/AcEdBaseInput.js +0 -166
  271. package/lib/editor/input/AcEdBaseInput.js.map +0 -1
  272. package/lib/editor/input/AcEdBoxSelector.d.ts +0 -108
  273. package/lib/editor/input/AcEdBoxSelector.d.ts.map +0 -1
  274. package/lib/editor/input/AcEdBoxSelector.js +0 -220
  275. package/lib/editor/input/AcEdBoxSelector.js.map +0 -1
  276. package/lib/editor/input/AcEdInputPoint.d.ts +0 -51
  277. package/lib/editor/input/AcEdInputPoint.d.ts.map +0 -1
  278. package/lib/editor/input/AcEdInputPoint.js +0 -78
  279. package/lib/editor/input/AcEdInputPoint.js.map +0 -1
  280. package/lib/editor/input/AcEdJig.d.ts +0 -180
  281. package/lib/editor/input/AcEdJig.d.ts.map +0 -1
  282. package/lib/editor/input/AcEdJig.js +0 -256
  283. package/lib/editor/input/AcEdJig.js.map +0 -1
  284. package/lib/editor/input/AcEdJigLoop.d.ts +0 -63
  285. package/lib/editor/input/AcEdJigLoop.d.ts.map +0 -1
  286. package/lib/editor/input/AcEdJigLoop.js +0 -91
  287. package/lib/editor/input/AcEdJigLoop.js.map +0 -1
@@ -0,0 +1,37 @@
1
+ declare const _default: {
2
+ commandLine: {
3
+ noLast: string;
4
+ unknownCommand: string;
5
+ executed: string;
6
+ showHistory: string;
7
+ placeholder: string;
8
+ showMessages: string;
9
+ canceled: string;
10
+ noHistory: string;
11
+ };
12
+ inputManager: {
13
+ firstCorner: string;
14
+ secondCorner: string;
15
+ };
16
+ message: {
17
+ fetchingDrawingFile: string;
18
+ };
19
+ progress: {
20
+ start: string;
21
+ parse: string;
22
+ font: string;
23
+ ltype: string;
24
+ style: string;
25
+ dimstyle: string;
26
+ layer: string;
27
+ vport: string;
28
+ blockrecord: string;
29
+ header: string;
30
+ block: string;
31
+ entity: string;
32
+ object: string;
33
+ end: string;
34
+ };
35
+ };
36
+ export default _default;
37
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/i18n/zh/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAkCC"}
@@ -0,0 +1,36 @@
1
+ export default {
2
+ commandLine: {
3
+ noLast: '(无上一次命令)',
4
+ unknownCommand: '未知命令',
5
+ executed: '已执行命令',
6
+ showHistory: '显示命令历史',
7
+ placeholder: '输入命令',
8
+ showMessages: '显示消息历史',
9
+ canceled: '*已取消*',
10
+ noHistory: '(无历史记录)'
11
+ },
12
+ inputManager: {
13
+ firstCorner: '指定第一个角点或',
14
+ secondCorner: '指定第二个角点或'
15
+ },
16
+ message: {
17
+ fetchingDrawingFile: '正在加载图纸文件...'
18
+ },
19
+ progress: {
20
+ start: '开始解析文件...',
21
+ parse: '正在解析文件 ...',
22
+ font: '正在下载图纸所需字体...',
23
+ ltype: '正在解析线形...',
24
+ style: '正在解析文字样式...',
25
+ dimstyle: '正在解析标注样式...',
26
+ layer: '正在解析图层...',
27
+ vport: '正在解析视口...',
28
+ blockrecord: '正在解析BTRs...',
29
+ header: '正在解析文件头...',
30
+ block: '正在解析块..',
31
+ entity: '正在解析图元...',
32
+ object: '正在解析NODs...',
33
+ end: '完成!'
34
+ }
35
+ };
36
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/i18n/zh/main.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,WAAW,EAAE;QACX,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE,MAAM;QACtB,QAAQ,EAAE,OAAO;QACjB,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,MAAM;QACnB,YAAY,EAAE,QAAQ;QACtB,QAAQ,EAAE,OAAO;QACjB,SAAS,EAAE,SAAS;KACrB;IACD,YAAY,EAAE;QACZ,WAAW,EAAE,UAAU;QACvB,YAAY,EAAE,UAAU;KACzB;IACD,OAAO,EAAE;QACP,mBAAmB,EAAE,aAAa;KACnC;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,aAAa;QACpB,QAAQ,EAAE,aAAa;QACvB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,aAAa;QAC1B,MAAM,EAAE,YAAY;QACpB,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,aAAa;QACrB,GAAG,EAAE,KAAK;KACX;CACF,CAAA"}
package/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './app';
2
2
  export * from './command';
3
3
  export * from './editor';
4
+ export * from './i18n';
4
5
  export * from './view';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA"}
package/lib/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './app';
2
2
  export * from './command';
3
3
  export * from './editor';
4
+ export * from './i18n';
4
5
  export * from './view';
5
6
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import { AcDbObjectId } from '@mlightcad/data-model';
2
2
  import { AcTrBatchedGroup, AcTrBatchedGroupStats, AcTrEntity } from '@mlightcad/three-renderer';
3
3
  import * as THREE from 'three';
4
+ import { AcEdLayerInfo } from '../editor';
4
5
  /**
5
6
  * Statistics for a CAD layer including name and batched rendering metrics.
6
7
  *
@@ -56,16 +57,26 @@ export declare class AcTrLayer {
56
57
  * This group contains all entities in this layer
57
58
  */
58
59
  private _group;
60
+ /**
61
+ * Bounding box containing all entities in this layer
62
+ */
63
+ private _box;
59
64
  /**
60
65
  * Construct one instance of this class
61
- * @param name Input layer name
66
+ * @param layer - Layer information
62
67
  */
63
- constructor(name: string);
68
+ constructor(layer: AcEdLayerInfo);
64
69
  /**
65
70
  * Layer name
66
71
  */
67
72
  get name(): string;
68
73
  set name(value: string);
74
+ /**
75
+ * Gets the bounding box that contains all entities in this layer.
76
+ *
77
+ * @returns The layer's bounding box
78
+ */
79
+ get box(): THREE.Box3;
69
80
  get visible(): boolean;
70
81
  set visible(value: boolean);
71
82
  get internalObject(): AcTrBatchedGroup;
@@ -77,6 +88,17 @@ export declare class AcTrLayer {
77
88
  * The number of entities stored in this layer
78
89
  */
79
90
  get entityCount(): number;
91
+ /**
92
+ * Update layer information of this layer
93
+ * @param value - New layer information
94
+ */
95
+ update(value: AcEdLayerInfo): void;
96
+ /**
97
+ * Find entities associated with the specified material and replace their material with new material
98
+ * @param oldId - Id of the old material
99
+ * @param material - The new material associated with entities
100
+ */
101
+ updateMaterial(oldId: number, material: THREE.Material): void;
80
102
  /**
81
103
  * Re-render points with latest point style settings
82
104
  * @param displayMode Input display mode of points
@@ -92,8 +114,10 @@ export declare class AcTrLayer {
92
114
  /**
93
115
  * Add one AutoCAD entity into this layer.
94
116
  * @param entity Input AutoCAD entity to be added into this layer.
117
+ * @param extendBbox - Input the flag whether to extend the bounding box of the scene by union the bounding box
118
+ * of the specified entity. Defaults to true.
95
119
  */
96
- addEntity(entity: AcTrEntity): void;
120
+ addEntity(entity: AcTrEntity, extendBbox?: boolean): void;
97
121
  /**
98
122
  * Return true if the object with the specified object id is intersected with the ray by using raycast.
99
123
  * @param objectId Input object id of object to check for intersection with the ray.
@@ -105,13 +129,13 @@ export declare class AcTrLayer {
105
129
  * @param objectId Input the object id of the entity to remove
106
130
  * @returns Return true if remove the specified entity successfully. Otherwise, return false.
107
131
  */
108
- remove(_objectId: AcDbObjectId): boolean;
132
+ removeEntity(_objectId: AcDbObjectId): boolean;
109
133
  /**
110
134
  * Update the specified entity in this layer.
111
135
  * @param entity Input the entity to update
112
136
  * @returns Return true if update the specified entity successfully. Otherwise, return false.
113
137
  */
114
- update(entity: AcTrEntity): boolean;
138
+ updateEntity(entity: AcTrEntity): boolean;
115
139
  /**
116
140
  * Hover the specified entities
117
141
  */
@@ -1 +1 @@
1
- {"version":3,"file":"AcTrLayer.d.ts","sourceRoot":"","sources":["../../src/view/AcTrLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACX,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,qBAAqB,GAAG;IACnD,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBAAa,SAAS;IACpB;;OAEG;IACH,OAAO,CAAC,KAAK,CAAQ;IACrB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAkB;IAEhC;;;OAGG;gBACS,IAAI,EAAE,MAAM;IAKxB;;OAEG;IACH,IAAI,IAAI,IAGQ,MAAM,CADrB;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAErB;IAED,IAAI,OAAO,IAGQ,OAAO,CADzB;IACD,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAEzB;IAED,IAAI,cAAc,qBAEjB;IAED;;OAEG;IACH,IAAI,KAAK,IAKF,cAAc,CACpB;IAED;;OAEG;IACH,IAAI,WAAW,WAEd;IAED;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM;IAIlC;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,EAAE,YAAY;IAIhC;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,UAAU;IAI5B;;;;OAIG;IACH,eA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AO,IAGQ,OAAO,CADzB;IACD,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAEzB;IAED,IAAI,cAAc,qBAEjB;IAED;;OAEG;IACH,IAAI,KAAK,IAKF,cAAc,CACpB;IAED;;OAEG;IACH,IAAI,WAAW,WAEd;IAED;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,aAAa;IAK3B;;;;OAIG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ;IAItD;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM;IAIlC;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,EAAE,YAAY;IAIhC;;;;;OAKG;IACH,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,GAAE,OAAc;IAOxD;;;;OAIG;IACH,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS;IAI5D;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,YAAY,GAAG,OAAO;IAK9C;;;;OAIG;IACH,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO;IAMzC;;OAEG;IACH,KAAK,CAAC,GAAG,EAAE,YAAY,EAAE;IAMzB;;OAEG;IACH,OAAO,CAAC,GAAG,EAAE,YAAY,EAAE;IAM3B;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE;IAM1B;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,YAAY,EAAE;CAK7B"}
@@ -10,6 +10,7 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { AcTrBatchedGroup } from '@mlightcad/three-renderer';
13
+ import * as THREE from 'three';
13
14
  /**
14
15
  * Represents a CAD layer for organizing and rendering entities in Three.js.
15
16
  *
@@ -50,11 +51,13 @@ import { AcTrBatchedGroup } from '@mlightcad/three-renderer';
50
51
  var AcTrLayer = /** @class */ (function () {
51
52
  /**
52
53
  * Construct one instance of this class
53
- * @param name Input layer name
54
+ * @param layer - Layer information
54
55
  */
55
- function AcTrLayer(name) {
56
+ function AcTrLayer(layer) {
56
57
  this._group = new AcTrBatchedGroup();
57
- this._name = name;
58
+ this._name = layer.name;
59
+ this._box = new THREE.Box3();
60
+ this._group.visible = !(layer.isFrozen || layer.isOff);
58
61
  }
59
62
  Object.defineProperty(AcTrLayer.prototype, "name", {
60
63
  /**
@@ -69,6 +72,18 @@ var AcTrLayer = /** @class */ (function () {
69
72
  enumerable: false,
70
73
  configurable: true
71
74
  });
75
+ Object.defineProperty(AcTrLayer.prototype, "box", {
76
+ /**
77
+ * Gets the bounding box that contains all entities in this layer.
78
+ *
79
+ * @returns The layer's bounding box
80
+ */
81
+ get: function () {
82
+ return this._box;
83
+ },
84
+ enumerable: false,
85
+ configurable: true
86
+ });
72
87
  Object.defineProperty(AcTrLayer.prototype, "visible", {
73
88
  get: function () {
74
89
  return this._group.visible;
@@ -107,6 +122,22 @@ var AcTrLayer = /** @class */ (function () {
107
122
  enumerable: false,
108
123
  configurable: true
109
124
  });
125
+ /**
126
+ * Update layer information of this layer
127
+ * @param value - New layer information
128
+ */
129
+ AcTrLayer.prototype.update = function (value) {
130
+ this._name = value.name;
131
+ this._group.visible = !(value.isFrozen || value.isOff);
132
+ };
133
+ /**
134
+ * Find entities associated with the specified material and replace their material with new material
135
+ * @param oldId - Id of the old material
136
+ * @param material - The new material associated with entities
137
+ */
138
+ AcTrLayer.prototype.updateMaterial = function (oldId, material) {
139
+ this._group.updateMaterial(oldId, material);
140
+ };
110
141
  /**
111
142
  * Re-render points with latest point style settings
112
143
  * @param displayMode Input display mode of points
@@ -126,9 +157,16 @@ var AcTrLayer = /** @class */ (function () {
126
157
  /**
127
158
  * Add one AutoCAD entity into this layer.
128
159
  * @param entity Input AutoCAD entity to be added into this layer.
160
+ * @param extendBbox - Input the flag whether to extend the bounding box of the scene by union the bounding box
161
+ * of the specified entity. Defaults to true.
129
162
  */
130
- AcTrLayer.prototype.addEntity = function (entity) {
163
+ AcTrLayer.prototype.addEntity = function (entity, extendBbox) {
164
+ if (extendBbox === void 0) { extendBbox = true; }
131
165
  this._group.addEntity(entity);
166
+ var box = entity.box;
167
+ // For infinitive line such as ray and xline, they are not used to extend box
168
+ if (extendBbox)
169
+ this._box.union(box);
132
170
  };
133
171
  /**
134
172
  * Return true if the object with the specified object id is intersected with the ray by using raycast.
@@ -143,7 +181,7 @@ var AcTrLayer = /** @class */ (function () {
143
181
  * @param objectId Input the object id of the entity to remove
144
182
  * @returns Return true if remove the specified entity successfully. Otherwise, return false.
145
183
  */
146
- AcTrLayer.prototype.remove = function (_objectId) {
184
+ AcTrLayer.prototype.removeEntity = function (_objectId) {
147
185
  // TODO: Finish it
148
186
  throw new Error('Not implemented yet!');
149
187
  };
@@ -152,7 +190,7 @@ var AcTrLayer = /** @class */ (function () {
152
190
  * @param entity Input the entity to update
153
191
  * @returns Return true if update the specified entity successfully. Otherwise, return false.
154
192
  */
155
- AcTrLayer.prototype.update = function (entity) {
193
+ AcTrLayer.prototype.updateEntity = function (entity) {
156
194
  // TODO: Finish it
157
195
  this._group.add(entity);
158
196
  return true;
@@ -1 +1 @@
1
- {"version":3,"file":"AcTrLayer.js","sourceRoot":"","sources":["../../src/view/AcTrLayer.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EACL,gBAAgB,EAGjB,MAAM,2BAA2B,CAAA;AAalC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH;IAUE;;;OAGG;IACH,mBAAY,IAAY;QACtB,IAAI,CAAC,MAAM,GAAG,IAAI,gBAAgB,EAAE,CAAA;QACpC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;IACnB,CAAC;IAKD,sBAAI,2BAAI;QAHR;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,KAAK,CAAA;QACnB,CAAC;aACD,UAAS,KAAa;YACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA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AO,IAAI,CAAA;IACb,CAAC;IAED;;OAEG;IACH,yBAAK,GAAL,UAAM,GAAmB;QAAzB,iBAIC;QAHC,GAAG,CAAC,OAAO,CAAC,UAAA,EAAE;YACZ,KAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;QACvB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,2BAAO,GAAP,UAAQ,GAAmB;QAA3B,iBAIC;QAHC,GAAG,CAAC,OAAO,CAAC,UAAA,EAAE;YACZ,KAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QACzB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,0BAAM,GAAN,UAAO,GAAmB;QAA1B,iBAIC;QAHC,GAAG,CAAC,OAAO,CAAC,UAAA,EAAE;YACZ,KAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;QACxB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,4BAAQ,GAAR,UAAS,GAAmB;QAA5B,iBAIC;QAHC,GAAG,CAAC,OAAO,CAAC,UAAA,EAAE;YACZ,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QAC1B,CAAC,CAAC,CAAA;IACJ,CAAC;IACH,gBAAC;AAAD,CAAC,AA5LD,IA4LC"}
@@ -142,7 +142,7 @@ export declare class AcTrLayout {
142
142
  * @param objectId - Input the object id of the entity to remove
143
143
  * @returns Return true if remove the specified entity successfully. Otherwise, return false.
144
144
  */
145
- remove(objectId: AcDbObjectId): boolean;
145
+ removeEntity(objectId: AcDbObjectId): boolean;
146
146
  /**
147
147
  * Update the specified entity in this layout.
148
148
  *
@@ -151,19 +151,25 @@ export declare class AcTrLayout {
151
151
  */
152
152
  updateEntity(entity: AcTrEntity): boolean;
153
153
  /**
154
- * Adds layer group into this layout. If the layer already exist, do nothing.
154
+ * Gets the layer with the specified name from this layout
155
+ * @param name - Layer name
156
+ * @returns - The layer with the specified name in this layout
157
+ */
158
+ getLayer(name: string): AcTrLayer | undefined;
159
+ /**
160
+ * Adds layer into this layout. If the layer already exist, do nothing.
155
161
  *
156
162
  * @param name - Input layer name
157
- * @returns Return added layer group or the existing layer group in this layout if one layer
163
+ * @returns Return added layer or the existing layer in this layout if one layer
158
164
  * group already exists in this layout.
159
165
  */
160
- addLayer(layer: AcEdLayerInfo): AcEdLayerInfo;
166
+ addLayer(info: AcEdLayerInfo): AcTrLayer;
161
167
  /**
162
- * Updates layer group information (such as visibility). If the layer doesn't exist, do nothing.
163
- * @param layerName Input layer information
168
+ * Updates layer information (such as visibility). If the layer doesn't exist, do nothing.
169
+ * @param info - The layer information
164
170
  * @returns Returns the updated layer group.
165
171
  */
166
- updateLayer(layer: AcEdLayerInfo): AcTrLayer | undefined;
172
+ updateLayer(info: AcEdLayerInfo): AcTrLayer | undefined;
167
173
  /**
168
174
  * Hover the specified entities.
169
175
  * Applies hover highlighting to the entities with the given IDs.
@@ -1 +1 @@
1
- {"version":3,"file":"AcTrLayout.d.ts","sourceRoot":"","sources":["../../src/view/AcTrLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,aAAa,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEvD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,8CAA8C;IAC9C,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,+CAA+C;IAC/C,OAAO,EAAE;QACP,iDAAiD;QACjD,WAAW,EAAE,MAAM,CAAA;QACnB,4CAA4C;QAC5C,SAAS,EAAE;YACT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AAE,aAAa;IAS/B;;;;;OAKG;IACH,KAAK,CAAC,GAAG,EAAE,YAAY,EAAE;IASzB;;;;;OAKG;IACH,OAAO,CAAC,GAAG,EAAE,YAAY,EAAE;IAS3B;;;;;OAKG;IACH,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE;IAS1B;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE,YAAY,EAAE;IAS5B;;;;;OAKG;IACH,aAAa,CAAC,MAAM,EAAE,UAAU;IAQhC;;;;;;OAMG;IACH,MAAM,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS;IAUjC;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;CAM3B"}
@@ -228,7 +228,7 @@ var AcTrLayout = /** @class */ (function () {
228
228
  }
229
229
  layer.addEntity(entity);
230
230
  var box = entity.box;
231
- // For infinitive line such as ray and xline
231
+ // For infinitive line such as ray and xline, they are not used to extend box
232
232
  if (extendBbox)
233
233
  this._box.union(box);
234
234
  this._indexTree.insert({
@@ -246,12 +246,12 @@ var AcTrLayout = /** @class */ (function () {
246
246
  * @param objectId - Input the object id of the entity to remove
247
247
  * @returns Return true if remove the specified entity successfully. Otherwise, return false.
248
248
  */
249
- AcTrLayout.prototype.remove = function (objectId) {
249
+ AcTrLayout.prototype.removeEntity = function (objectId) {
250
250
  var e_1, _a;
251
251
  try {
252
252
  for (var _b = __values(this._layers), _c = _b.next(); !_c.done; _c = _b.next()) {
253
253
  var _d = __read(_c.value, 2), _1 = _d[0], layer = _d[1];
254
- if (layer.remove(objectId))
254
+ if (layer.removeEntity(objectId))
255
255
  return true;
256
256
  }
257
257
  }
@@ -275,7 +275,7 @@ var AcTrLayout = /** @class */ (function () {
275
275
  try {
276
276
  for (var _b = __values(this._layers), _c = _b.next(); !_c.done; _c = _b.next()) {
277
277
  var _d = __read(_c.value, 2), _2 = _d[0], layer = _d[1];
278
- if (layer.update(entity))
278
+ if (layer.updateEntity(entity))
279
279
  return true;
280
280
  }
281
281
  }
@@ -289,34 +289,42 @@ var AcTrLayout = /** @class */ (function () {
289
289
  return false;
290
290
  };
291
291
  /**
292
- * Adds layer group into this layout. If the layer already exist, do nothing.
292
+ * Gets the layer with the specified name from this layout
293
+ * @param name - Layer name
294
+ * @returns - The layer with the specified name in this layout
295
+ */
296
+ AcTrLayout.prototype.getLayer = function (name) {
297
+ return this._layers.get(name);
298
+ };
299
+ /**
300
+ * Adds layer into this layout. If the layer already exist, do nothing.
293
301
  *
294
302
  * @param name - Input layer name
295
- * @returns Return added layer group or the existing layer group in this layout if one layer
303
+ * @returns Return added layer or the existing layer in this layout if one layer
296
304
  * group already exists in this layout.
297
305
  */
298
- AcTrLayout.prototype.addLayer = function (layer) {
299
- var name = layer.name;
300
- var layerGroup = this._layers.get(name);
301
- if (layerGroup === undefined) {
302
- layerGroup = new AcTrLayer(name);
303
- layerGroup.visible = !(layer.isFrozen || layer.isOff);
304
- this._layers.set(name, layerGroup);
305
- this._group.add(layerGroup.internalObject);
306
+ AcTrLayout.prototype.addLayer = function (info) {
307
+ var name = info.name;
308
+ var layer = this._layers.get(name);
309
+ if (layer === undefined) {
310
+ layer = new AcTrLayer(info);
311
+ this._layers.set(name, layer);
312
+ this._group.add(layer.internalObject);
306
313
  }
307
314
  return layer;
308
315
  };
309
316
  /**
310
- * Updates layer group information (such as visibility). If the layer doesn't exist, do nothing.
311
- * @param layerName Input layer information
317
+ * Updates layer information (such as visibility). If the layer doesn't exist, do nothing.
318
+ * @param info - The layer information
312
319
  * @returns Returns the updated layer group.
313
320
  */
314
- AcTrLayout.prototype.updateLayer = function (layer) {
315
- var layerGroup = this._layers.get(layer.name);
316
- if (layerGroup) {
317
- layerGroup.visible = !(layer.isFrozen || layer.isOff);
321
+ AcTrLayout.prototype.updateLayer = function (info) {
322
+ var layer = this._layers.get(info.name);
323
+ if (layer) {
324
+ // TODO: Handle layer name changes
325
+ layer.update(info);
318
326
  }
319
- return layerGroup;
327
+ return layer;
320
328
  };
321
329
  /**
322
330
  * Hover the specified ent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AK,CAAC,SAAS,CAAC,QAAQ,CAAC;oBAAE,OAAO,KAAK,CAAA;YAC7C,CAAC;;;;;;;;;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;IACH,iBAAC;AAAD,CAAC,AAvWD,IAuWC"}
@@ -2,6 +2,7 @@ import { AcDbObjectId, AcGeBox2d, AcGeBox3d } from '@mlightcad/data-model';
2
2
  import { AcTrEntity, AcTrObject } from '@mlightcad/three-renderer';
3
3
  import { AcEdLayerInfo } from 'editor';
4
4
  import * as THREE from 'three';
5
+ import { AcTrLayer } from './AcTrLayer';
5
6
  import { AcTrLayout, AcTrLayoutStats } from './AcTrLayout';
6
7
  /**
7
8
  * Three.js scene manager for CAD drawings with hierarchical organization.
@@ -55,6 +56,8 @@ export declare class AcTrScene {
55
56
  private _activeLayoutBtrId;
56
57
  /** ID of the model space layout */
57
58
  private _modelSpaceBtrId;
59
+ /** Transient objects manager */
60
+ private _transientManager;
58
61
  /**
59
62
  * Creates a new CAD scene instance.
60
63
  *
@@ -134,11 +137,22 @@ export declare class AcTrScene {
134
137
  * @returns Return query results
135
138
  */
136
139
  search(box: AcGeBox2d | AcGeBox3d): import("editor").AcEdSpatialQueryResultItem[];
137
- addLayer(layer: AcEdLayerInfo): void;
138
- updateLayer(layer: AcEdLayerInfo): void;
140
+ addLayer(layer: AcEdLayerInfo): AcTrLayer[];
141
+ updateLayer(layer: AcEdLayerInfo): AcTrLayer[];
139
142
  /**
140
- * Add one AutoCAD entity into this scene. If the layout associated with this entity doesn't exist,
141
- * then create one layout, add this layout into this scene, and add the entity into the layout.
143
+ * Add the specified transient entity into this scene
144
+ * @param entity Input one transient entity
145
+ */
146
+ addTransientEntity(entity: AcTrEntity): void;
147
+ /**
148
+ * Remove the specified transient entity from this scene
149
+ * @param objectId Input the object id of the transient entity to remove
150
+ */
151
+ removeTransientEntity(objectId: AcDbObjectId): void;
152
+ /**
153
+ * Add one persistent entity (stored in the drawing database) into this scene. If the layout
154
+ * associated with this entity doesn't exist, then create one layout, add this layout into
155
+ * this scene, and add the entity into the layout.
142
156
  * @param entity Input AutoCAD entity to be added into scene.
143
157
  * @param extendBbox Input the flag whether to extend the bounding box of this scene by union the bounding box
144
158
  * of the specified entity.
@@ -146,17 +160,17 @@ export declare class AcTrScene {
146
160
  */
147
161
  addEntity(entity: AcTrEntity, extendBbox?: boolean): this;
148
162
  /**
149
- * Remove the specified entity from this scene.
163
+ * Remove the specified persistent entity (stored in the drawing database) from this scene.
150
164
  * @param objectId Input the object id of the entity to remove
151
165
  * @returns Return true if remove the specified entity successfully. Otherwise, return false.
152
166
  */
153
- remove(objectId: AcDbObjectId): boolean;
167
+ removeEntity(objectId: AcDbObjectId): boolean;
154
168
  /**
155
- * Update the specified entity in this scene.
169
+ * Update the specified persistent entity (stored in the drawing database) in this scene.
156
170
  * @param objectId Input the entity to update
157
171
  * @returns Return true if update the specified entity successfully. Otherwise, return false.
158
172
  */
159
- update(entity: AcTrEntity): boolean;
173
+ updateEntity(entity: AcTrEntity): boolean;
160
174
  setSnapObject(object: AcTrObject): this;
161
175
  }
162
176
  //# sourceMappingURL=AcTrScene.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcTrScene.d.ts","sourceRoot":"","sources":["../../src/view/AcTrScene.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,qBAAa,SAAS;IACpB,2CAA2C;IAC3C,OAAO,CAAC,MAAM,CAAa;IAC3B,wCAAwC;IACxC,O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