@mlightcad/cad-simple-viewer 1.8.0-preview.2 → 1.8.0-preview.4

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 (668) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +206 -204
  3. package/dist/cad-simple-viewer-AcApSimpleUiChrome-D_0b6okm.js +890 -0
  4. package/dist/cad-simple-viewer-AcApSimpleUiChrome-DcZiBNvh.js +1 -0
  5. package/dist/cad-simple-viewer-AcUiFileOpenSession-AGSCe0Nv.js +324 -0
  6. package/dist/{cad-simple-viewer-AcUiFileOpenSession-BCcqBAH9.js → cad-simple-viewer-AcUiFileOpenSession-Bo3U3wCu.js} +707 -167
  7. package/dist/cad-simple-viewer-file-open-panel.js +26 -24
  8. package/dist/cad-simple-viewer-file-open-panel.umd.cjs +1 -1
  9. package/dist/cad-simple-viewer.js +64100 -41238
  10. package/dist/cad-simple-viewer.umd.cjs +1659 -497
  11. package/dist/mtext-renderer-worker.js +4 -5
  12. package/file-open-panel.ts +6 -6
  13. package/icons.ts +7 -7
  14. package/lib/app/AcApClipboard.d.ts +97 -0
  15. package/lib/app/AcApClipboard.d.ts.map +1 -0
  16. package/lib/app/AcApClipboard.js +270 -0
  17. package/lib/app/AcApClipboard.js.map +1 -0
  18. package/lib/app/AcApContext.d.ts +10 -0
  19. package/lib/app/AcApContext.d.ts.map +1 -1
  20. package/lib/app/AcApContext.js +24 -8
  21. package/lib/app/AcApContext.js.map +1 -1
  22. package/lib/app/AcApDocManager.d.ts +63 -0
  23. package/lib/app/AcApDocManager.d.ts.map +1 -1
  24. package/lib/app/AcApDocManager.js +264 -35
  25. package/lib/app/AcApDocManager.js.map +1 -1
  26. package/lib/app/AcApDocument.d.ts.map +1 -1
  27. package/lib/app/AcApDocument.js +11 -11
  28. package/lib/app/AcApDocument.js.map +1 -1
  29. package/lib/app/AcApOpenFileDialog.d.ts +2 -2
  30. package/lib/app/AcApOpenFileDialog.js +2 -2
  31. package/lib/app/AcApPaletteService.d.ts +154 -0
  32. package/lib/app/AcApPaletteService.d.ts.map +1 -0
  33. package/lib/app/AcApPaletteService.js +327 -0
  34. package/lib/app/AcApPaletteService.js.map +1 -0
  35. package/lib/app/acapHealModelLayoutLink.d.ts +30 -0
  36. package/lib/app/acapHealModelLayoutLink.d.ts.map +1 -0
  37. package/lib/app/acapHealModelLayoutLink.js +192 -0
  38. package/lib/app/acapHealModelLayoutLink.js.map +1 -0
  39. package/lib/app/dataSource/AcApLocalDataSource.d.ts +1 -1
  40. package/lib/app/dataSource/AcApLocalDataSource.js +2 -2
  41. package/lib/app/dataSource/AcApLocalDataSource.js.map +1 -1
  42. package/lib/app/dataSource/AcApUrlDataSource.js +1 -1
  43. package/lib/app/dataSource/AcApUrlDataSource.js.map +1 -1
  44. package/lib/app/index.d.ts +2 -0
  45. package/lib/app/index.d.ts.map +1 -1
  46. package/lib/app/index.js +2 -0
  47. package/lib/app/index.js.map +1 -1
  48. package/lib/command/AcApShortCutToolbarDocBind.d.ts.map +1 -1
  49. package/lib/command/AcApShortCutToolbarDocBind.js +30 -3
  50. package/lib/command/AcApShortCutToolbarDocBind.js.map +1 -1
  51. package/lib/command/AcApUcsCmd.d.ts +26 -0
  52. package/lib/command/AcApUcsCmd.d.ts.map +1 -0
  53. package/lib/command/AcApUcsCmd.js +545 -0
  54. package/lib/command/AcApUcsCmd.js.map +1 -0
  55. package/lib/command/AcApViewRestoreCmd.d.ts +13 -0
  56. package/lib/command/AcApViewRestoreCmd.d.ts.map +1 -0
  57. package/lib/command/AcApViewRestoreCmd.js +101 -0
  58. package/lib/command/AcApViewRestoreCmd.js.map +1 -0
  59. package/lib/command/block/AcApDashBSearchCmd.d.ts +57 -0
  60. package/lib/command/block/AcApDashBSearchCmd.d.ts.map +1 -0
  61. package/lib/command/block/AcApDashBSearchCmd.js +618 -0
  62. package/lib/command/block/AcApDashBSearchCmd.js.map +1 -0
  63. package/lib/command/block/index.d.ts +2 -0
  64. package/lib/command/block/index.d.ts.map +1 -0
  65. package/lib/command/block/index.js +2 -0
  66. package/lib/command/block/index.js.map +1 -0
  67. package/lib/command/clipboard/AcApClipboardUtils.d.ts +61 -0
  68. package/lib/command/clipboard/AcApClipboardUtils.d.ts.map +1 -0
  69. package/lib/command/clipboard/AcApClipboardUtils.js +203 -0
  70. package/lib/command/clipboard/AcApClipboardUtils.js.map +1 -0
  71. package/lib/command/clipboard/AcApCopyBaseCmd.d.ts +13 -0
  72. package/lib/command/clipboard/AcApCopyBaseCmd.d.ts.map +1 -0
  73. package/lib/command/clipboard/AcApCopyBaseCmd.js +95 -0
  74. package/lib/command/clipboard/AcApCopyBaseCmd.js.map +1 -0
  75. package/lib/command/clipboard/AcApCopyClipCmd.d.ts +15 -0
  76. package/lib/command/clipboard/AcApCopyClipCmd.d.ts.map +1 -0
  77. package/lib/command/clipboard/AcApCopyClipCmd.js +85 -0
  78. package/lib/command/clipboard/AcApCopyClipCmd.js.map +1 -0
  79. package/lib/command/clipboard/AcApCutClipCmd.d.ts +11 -0
  80. package/lib/command/clipboard/AcApCutClipCmd.d.ts.map +1 -0
  81. package/lib/command/clipboard/AcApCutClipCmd.js +91 -0
  82. package/lib/command/clipboard/AcApCutClipCmd.js.map +1 -0
  83. package/lib/command/clipboard/AcApPasteBlockCmd.d.ts +23 -0
  84. package/lib/command/clipboard/AcApPasteBlockCmd.d.ts.map +1 -0
  85. package/lib/command/clipboard/AcApPasteBlockCmd.js +127 -0
  86. package/lib/command/clipboard/AcApPasteBlockCmd.js.map +1 -0
  87. package/lib/command/clipboard/AcApPasteClipCmd.d.ts +14 -0
  88. package/lib/command/clipboard/AcApPasteClipCmd.d.ts.map +1 -0
  89. package/lib/command/clipboard/AcApPasteClipCmd.js +100 -0
  90. package/lib/command/clipboard/AcApPasteClipCmd.js.map +1 -0
  91. package/lib/command/clipboard/AcApPasteOrigCmd.d.ts +15 -0
  92. package/lib/command/clipboard/AcApPasteOrigCmd.d.ts.map +1 -0
  93. package/lib/command/clipboard/AcApPasteOrigCmd.js +99 -0
  94. package/lib/command/clipboard/AcApPasteOrigCmd.js.map +1 -0
  95. package/lib/command/clipboard/AcApPastePreviewJig.d.ts +37 -0
  96. package/lib/command/clipboard/AcApPastePreviewJig.d.ts.map +1 -0
  97. package/lib/command/clipboard/AcApPastePreviewJig.js +87 -0
  98. package/lib/command/clipboard/AcApPastePreviewJig.js.map +1 -0
  99. package/lib/command/clipboard/index.d.ts +9 -0
  100. package/lib/command/clipboard/index.d.ts.map +1 -0
  101. package/lib/command/clipboard/index.js +9 -0
  102. package/lib/command/clipboard/index.js.map +1 -0
  103. package/lib/command/convert/AcApBlockPreviewConvertor.d.ts +8 -0
  104. package/lib/command/convert/AcApBlockPreviewConvertor.d.ts.map +1 -1
  105. package/lib/command/convert/AcApBlockPreviewConvertor.js +16 -0
  106. package/lib/command/convert/AcApBlockPreviewConvertor.js.map +1 -1
  107. package/lib/command/convert/AcApEntityPreviewConvertor.d.ts +32 -0
  108. package/lib/command/convert/AcApEntityPreviewConvertor.d.ts.map +1 -1
  109. package/lib/command/convert/AcApEntityPreviewConvertor.js +70 -14
  110. package/lib/command/convert/AcApEntityPreviewConvertor.js.map +1 -1
  111. package/lib/command/draw/AcApDimBlockUtil.d.ts +7 -0
  112. package/lib/command/draw/AcApDimBlockUtil.d.ts.map +1 -1
  113. package/lib/command/draw/AcApDimBlockUtil.js +16 -54
  114. package/lib/command/draw/AcApDimBlockUtil.js.map +1 -1
  115. package/lib/command/draw/AcApLeaderCmd.d.ts +49 -0
  116. package/lib/command/draw/AcApLeaderCmd.d.ts.map +1 -0
  117. package/lib/command/draw/AcApLeaderCmd.js +611 -0
  118. package/lib/command/draw/AcApLeaderCmd.js.map +1 -0
  119. package/lib/command/draw/AcApMLeaderCmd.d.ts +41 -0
  120. package/lib/command/draw/AcApMLeaderCmd.d.ts.map +1 -0
  121. package/lib/command/draw/AcApMLeaderCmd.js +632 -0
  122. package/lib/command/draw/AcApMLeaderCmd.js.map +1 -0
  123. package/lib/command/draw/AcApMLeaderCmdUtil.d.ts +137 -0
  124. package/lib/command/draw/AcApMLeaderCmdUtil.d.ts.map +1 -0
  125. package/lib/command/draw/AcApMLeaderCmdUtil.js +411 -0
  126. package/lib/command/draw/AcApMLeaderCmdUtil.js.map +1 -0
  127. package/lib/command/draw/AcApMLeaderEditCmd.d.ts +13 -0
  128. package/lib/command/draw/AcApMLeaderEditCmd.d.ts.map +1 -0
  129. package/lib/command/draw/AcApMLeaderEditCmd.js +245 -0
  130. package/lib/command/draw/AcApMLeaderEditCmd.js.map +1 -0
  131. package/lib/command/draw/acedRenderDimStylePreview.d.ts +7 -0
  132. package/lib/command/draw/acedRenderDimStylePreview.d.ts.map +1 -0
  133. package/lib/command/draw/acedRenderDimStylePreview.js +141 -0
  134. package/lib/command/draw/acedRenderDimStylePreview.js.map +1 -0
  135. package/lib/command/draw/dimStylePreview.d.ts +62 -0
  136. package/lib/command/draw/dimStylePreview.d.ts.map +1 -0
  137. package/lib/command/draw/dimStylePreview.js +723 -0
  138. package/lib/command/draw/dimStylePreview.js.map +1 -0
  139. package/lib/command/draw/index.d.ts +6 -0
  140. package/lib/command/draw/index.d.ts.map +1 -1
  141. package/lib/command/draw/index.js +6 -0
  142. package/lib/command/draw/index.js.map +1 -1
  143. package/lib/command/group/AcApDashGroupCmd.d.ts +18 -0
  144. package/lib/command/group/AcApDashGroupCmd.d.ts.map +1 -0
  145. package/lib/command/group/AcApDashGroupCmd.js +457 -0
  146. package/lib/command/group/AcApDashGroupCmd.js.map +1 -0
  147. package/lib/command/group/AcApGroupCmd.d.ts +18 -0
  148. package/lib/command/group/AcApGroupCmd.d.ts.map +1 -0
  149. package/lib/command/group/AcApGroupCmd.js +253 -0
  150. package/lib/command/group/AcApGroupCmd.js.map +1 -0
  151. package/lib/command/group/AcApGroupEditCmd.d.ts +14 -0
  152. package/lib/command/group/AcApGroupEditCmd.d.ts.map +1 -0
  153. package/lib/command/group/AcApGroupEditCmd.js +241 -0
  154. package/lib/command/group/AcApGroupEditCmd.js.map +1 -0
  155. package/lib/command/group/AcApUngroupCmd.d.ts +20 -0
  156. package/lib/command/group/AcApUngroupCmd.d.ts.map +1 -0
  157. package/lib/command/group/AcApUngroupCmd.js +249 -0
  158. package/lib/command/group/AcApUngroupCmd.js.map +1 -0
  159. package/lib/command/group/index.d.ts +5 -0
  160. package/lib/command/group/index.d.ts.map +1 -0
  161. package/lib/command/group/index.js +5 -0
  162. package/lib/command/group/index.js.map +1 -0
  163. package/lib/command/index.d.ts +5 -0
  164. package/lib/command/index.d.ts.map +1 -1
  165. package/lib/command/index.js +5 -0
  166. package/lib/command/index.js.map +1 -1
  167. package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts +9 -1
  168. package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts.map +1 -1
  169. package/lib/command/markup/AcApMarkupSessionBootstrap.js +21 -7
  170. package/lib/command/markup/AcApMarkupSessionBootstrap.js.map +1 -1
  171. package/lib/command/markup/index.d.ts +1 -1
  172. package/lib/command/markup/index.d.ts.map +1 -1
  173. package/lib/command/markup/index.js +4 -2
  174. package/lib/command/markup/index.js.map +1 -1
  175. package/lib/command/measure/AcApMeasureArcCmd.d.ts +7 -0
  176. package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
  177. package/lib/command/measure/AcApMeasureArcCmd.js +183 -73
  178. package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
  179. package/lib/command/measure/AcApMeasureArcLock.d.ts +23 -1
  180. package/lib/command/measure/AcApMeasureArcLock.d.ts.map +1 -1
  181. package/lib/command/measure/AcApMeasureArcLock.js +57 -1
  182. package/lib/command/measure/AcApMeasureArcLock.js.map +1 -1
  183. package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +3 -1
  184. package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -1
  185. package/lib/command/measure/entity/AcApMeasureDrawUtil.js +44 -4
  186. package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -1
  187. package/lib/command/modify/AcApScaleCmd.d.ts +115 -0
  188. package/lib/command/modify/AcApScaleCmd.d.ts.map +1 -0
  189. package/lib/command/modify/AcApScaleCmd.js +347 -0
  190. package/lib/command/modify/AcApScaleCmd.js.map +1 -0
  191. package/lib/command/modify/AcApScalePreviewJig.d.ts +56 -0
  192. package/lib/command/modify/AcApScalePreviewJig.d.ts.map +1 -0
  193. package/lib/command/modify/AcApScalePreviewJig.js +115 -0
  194. package/lib/command/modify/AcApScalePreviewJig.js.map +1 -0
  195. package/lib/command/modify/index.d.ts +1 -0
  196. package/lib/command/modify/index.d.ts.map +1 -1
  197. package/lib/command/modify/index.js +1 -0
  198. package/lib/command/modify/index.js.map +1 -1
  199. package/lib/command/ui/AcApFindUiCmd.d.ts +26 -0
  200. package/lib/command/ui/AcApFindUiCmd.d.ts.map +1 -0
  201. package/lib/command/ui/AcApFindUiCmd.js +83 -0
  202. package/lib/command/ui/AcApFindUiCmd.js.map +1 -0
  203. package/lib/command/ui/AcApLayerUiCmd.d.ts +65 -0
  204. package/lib/command/ui/AcApLayerUiCmd.d.ts.map +1 -0
  205. package/lib/command/ui/AcApLayerUiCmd.js +142 -0
  206. package/lib/command/ui/AcApLayerUiCmd.js.map +1 -0
  207. package/lib/command/ui/AcApMarkupPanelUiCmd.d.ts +26 -0
  208. package/lib/command/ui/AcApMarkupPanelUiCmd.d.ts.map +1 -0
  209. package/lib/command/ui/AcApMarkupPanelUiCmd.js +83 -0
  210. package/lib/command/ui/AcApMarkupPanelUiCmd.js.map +1 -0
  211. package/lib/command/ui/AcApMeasurementPanelUiCmd.d.ts +26 -0
  212. package/lib/command/ui/AcApMeasurementPanelUiCmd.d.ts.map +1 -0
  213. package/lib/command/ui/AcApMeasurementPanelUiCmd.js +83 -0
  214. package/lib/command/ui/AcApMeasurementPanelUiCmd.js.map +1 -0
  215. package/lib/command/ui/index.d.ts +5 -0
  216. package/lib/command/ui/index.d.ts.map +1 -0
  217. package/lib/command/ui/index.js +5 -0
  218. package/lib/command/ui/index.js.map +1 -0
  219. package/lib/editor/grip/AcEdGripEditSession.d.ts +13 -0
  220. package/lib/editor/grip/AcEdGripEditSession.d.ts.map +1 -1
  221. package/lib/editor/grip/AcEdGripEditSession.js +44 -9
  222. package/lib/editor/grip/AcEdGripEditSession.js.map +1 -1
  223. package/lib/editor/grip/AcEdGripManager.d.ts +21 -1
  224. package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -1
  225. package/lib/editor/grip/AcEdGripManager.js +204 -22
  226. package/lib/editor/grip/AcEdGripManager.js.map +1 -1
  227. package/lib/editor/grip/AcEdGripPreviewJig.d.ts +7 -0
  228. package/lib/editor/grip/AcEdGripPreviewJig.d.ts.map +1 -1
  229. package/lib/editor/grip/AcEdGripPreviewJig.js +18 -1
  230. package/lib/editor/grip/AcEdGripPreviewJig.js.map +1 -1
  231. package/lib/editor/grip/AcEdGripViewport.d.ts +35 -0
  232. package/lib/editor/grip/AcEdGripViewport.d.ts.map +1 -0
  233. package/lib/editor/grip/AcEdGripViewport.js +68 -0
  234. package/lib/editor/grip/AcEdGripViewport.js.map +1 -0
  235. package/lib/editor/grip/AcEdGroupGripEditSession.d.ts +24 -0
  236. package/lib/editor/grip/AcEdGroupGripEditSession.d.ts.map +1 -0
  237. package/lib/editor/grip/AcEdGroupGripEditSession.js +76 -0
  238. package/lib/editor/grip/AcEdGroupGripEditSession.js.map +1 -0
  239. package/lib/editor/grip/AcEdGroupGripPolicy.d.ts +46 -0
  240. package/lib/editor/grip/AcEdGroupGripPolicy.d.ts.map +1 -0
  241. package/lib/editor/grip/AcEdGroupGripPolicy.js +187 -0
  242. package/lib/editor/grip/AcEdGroupGripPolicy.js.map +1 -0
  243. package/lib/editor/grip/index.d.ts +3 -0
  244. package/lib/editor/grip/index.d.ts.map +1 -1
  245. package/lib/editor/grip/index.js +3 -0
  246. package/lib/editor/grip/index.js.map +1 -1
  247. package/lib/editor/input/AcEdOrthoMode.d.ts +2 -2
  248. package/lib/editor/input/AcEdOrthoMode.d.ts.map +1 -1
  249. package/lib/editor/input/AcEdOrthoMode.js +20 -7
  250. package/lib/editor/input/AcEdOrthoMode.js.map +1 -1
  251. package/lib/editor/input/AcEdOsnapCenterMarks.d.ts +16 -0
  252. package/lib/editor/input/AcEdOsnapCenterMarks.d.ts.map +1 -1
  253. package/lib/editor/input/AcEdOsnapCenterMarks.js +24 -3
  254. package/lib/editor/input/AcEdOsnapCenterMarks.js.map +1 -1
  255. package/lib/editor/input/AcEdOsnapResolver.d.ts +0 -1
  256. package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -1
  257. package/lib/editor/input/AcEdOsnapResolver.js +3 -16
  258. package/lib/editor/input/AcEdOsnapResolver.js.map +1 -1
  259. package/lib/editor/input/AcEdPolarTracking.d.ts.map +1 -1
  260. package/lib/editor/input/AcEdPolarTracking.js +16 -10
  261. package/lib/editor/input/AcEdPolarTracking.js.map +1 -1
  262. package/lib/editor/input/handler/AcEdPointHandler.d.ts +1 -1
  263. package/lib/editor/input/handler/AcEdPointHandler.d.ts.map +1 -1
  264. package/lib/editor/input/handler/AcEdPointHandler.js +36 -16
  265. package/lib/editor/input/handler/AcEdPointHandler.js.map +1 -1
  266. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.d.ts +12 -0
  267. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.d.ts.map +1 -1
  268. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.js +20 -0
  269. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.js.map +1 -1
  270. package/lib/editor/input/ui/AcEdCommandLine.d.ts +5 -0
  271. package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
  272. package/lib/editor/input/ui/AcEdCommandLine.js +33 -5
  273. package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
  274. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  275. package/lib/editor/input/ui/AcEdInputManager.js +30 -7
  276. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  277. package/lib/editor/view/AcEdBaseView.d.ts +47 -0
  278. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  279. package/lib/editor/view/AcEdBaseView.js +80 -0
  280. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  281. package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts +40 -4
  282. package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts.map +1 -1
  283. package/lib/editor/view/AcEdSelectionBoxIntersect.js +199 -3
  284. package/lib/editor/view/AcEdSelectionBoxIntersect.js.map +1 -1
  285. package/lib/editor/view/AcEdViewportBoxSelection.d.ts +10 -0
  286. package/lib/editor/view/AcEdViewportBoxSelection.d.ts.map +1 -1
  287. package/lib/editor/view/AcEdViewportBoxSelection.js +15 -8
  288. package/lib/editor/view/AcEdViewportBoxSelection.js.map +1 -1
  289. package/lib/file-open-panel.d.ts.map +1 -1
  290. package/lib/file-open-panel.js +4 -0
  291. package/lib/file-open-panel.js.map +1 -1
  292. package/lib/find/AcApFindNavigator.d.ts +47 -0
  293. package/lib/find/AcApFindNavigator.d.ts.map +1 -1
  294. package/lib/find/AcApFindNavigator.js +13 -5
  295. package/lib/find/AcApFindNavigator.js.map +1 -1
  296. package/lib/find/findDrawing.d.ts +1 -1
  297. package/lib/find/findDrawing.d.ts.map +1 -1
  298. package/lib/find/findDrawing.js +4 -3
  299. package/lib/find/findDrawing.js.map +1 -1
  300. package/lib/find/findText.d.ts +40 -13
  301. package/lib/find/findText.d.ts.map +1 -1
  302. package/lib/find/findText.js +100 -44
  303. package/lib/find/findText.js.map +1 -1
  304. package/lib/find/index.d.ts +8 -0
  305. package/lib/find/index.d.ts.map +1 -1
  306. package/lib/find/index.js +8 -0
  307. package/lib/find/index.js.map +1 -1
  308. package/lib/i18n/AcApI18n.d.ts +1 -1
  309. package/lib/i18n/AcApI18n.d.ts.map +1 -1
  310. package/lib/i18n/AcApI18n.js +2 -0
  311. package/lib/i18n/AcApI18n.js.map +1 -1
  312. package/lib/i18n/AcUiI18n.d.ts +23 -0
  313. package/lib/i18n/AcUiI18n.d.ts.map +1 -0
  314. package/lib/i18n/AcUiI18n.js +126 -0
  315. package/lib/i18n/AcUiI18n.js.map +1 -0
  316. package/lib/i18n/ar/command.d.ts +103 -6
  317. package/lib/i18n/ar/command.d.ts.map +1 -1
  318. package/lib/i18n/ar/command.js +601 -11
  319. package/lib/i18n/ar/command.js.map +1 -1
  320. package/lib/i18n/ar/jig.d.ts +1423 -579
  321. package/lib/i18n/ar/jig.d.ts.map +1 -1
  322. package/lib/i18n/ar/jig.js +2096 -322
  323. package/lib/i18n/ar/jig.js.map +1 -1
  324. package/lib/i18n/ar/main.d.ts +22 -0
  325. package/lib/i18n/ar/main.d.ts.map +1 -1
  326. package/lib/i18n/ar/main.js +22 -0
  327. package/lib/i18n/ar/main.js.map +1 -1
  328. package/lib/i18n/ar/simpleUi.d.ts +170 -0
  329. package/lib/i18n/ar/simpleUi.d.ts.map +1 -0
  330. package/lib/i18n/ar/simpleUi.js +169 -0
  331. package/lib/i18n/ar/simpleUi.js.map +1 -0
  332. package/lib/i18n/cs/command.d.ts +111 -1
  333. package/lib/i18n/cs/command.d.ts.map +1 -1
  334. package/lib/i18n/cs/command.js +112 -2
  335. package/lib/i18n/cs/command.js.map +1 -1
  336. package/lib/i18n/cs/jig.d.ts +867 -0
  337. package/lib/i18n/cs/jig.d.ts.map +1 -1
  338. package/lib/i18n/cs/jig.js +988 -24
  339. package/lib/i18n/cs/jig.js.map +1 -1
  340. package/lib/i18n/cs/main.d.ts +22 -0
  341. package/lib/i18n/cs/main.d.ts.map +1 -1
  342. package/lib/i18n/cs/main.js +23 -1
  343. package/lib/i18n/cs/main.js.map +1 -1
  344. package/lib/i18n/cs/simpleUi.d.ts +170 -0
  345. package/lib/i18n/cs/simpleUi.d.ts.map +1 -0
  346. package/lib/i18n/cs/simpleUi.js +169 -0
  347. package/lib/i18n/cs/simpleUi.js.map +1 -0
  348. package/lib/i18n/en/command.d.ts +98 -1
  349. package/lib/i18n/en/command.d.ts.map +1 -1
  350. package/lib/i18n/en/command.js +99 -2
  351. package/lib/i18n/en/command.js.map +1 -1
  352. package/lib/i18n/en/jig.d.ts +844 -0
  353. package/lib/i18n/en/jig.d.ts.map +1 -1
  354. package/lib/i18n/en/jig.js +801 -1
  355. package/lib/i18n/en/jig.js.map +1 -1
  356. package/lib/i18n/en/main.d.ts +22 -0
  357. package/lib/i18n/en/main.d.ts.map +1 -1
  358. package/lib/i18n/en/main.js +22 -0
  359. package/lib/i18n/en/main.js.map +1 -1
  360. package/lib/i18n/en/simpleUi.d.ts +170 -0
  361. package/lib/i18n/en/simpleUi.d.ts.map +1 -0
  362. package/lib/i18n/en/simpleUi.js +169 -0
  363. package/lib/i18n/en/simpleUi.js.map +1 -0
  364. package/lib/i18n/index.d.ts +1 -0
  365. package/lib/i18n/index.d.ts.map +1 -1
  366. package/lib/i18n/index.js +37 -6
  367. package/lib/i18n/index.js.map +1 -1
  368. package/lib/i18n/ja/command.d.ts +605 -0
  369. package/lib/i18n/ja/command.d.ts.map +1 -0
  370. package/lib/i18n/ja/command.js +604 -0
  371. package/lib/i18n/ja/command.js.map +1 -0
  372. package/lib/i18n/ja/jig.d.ts +2425 -0
  373. package/lib/i18n/ja/jig.d.ts.map +1 -0
  374. package/lib/i18n/ja/jig.js +2316 -0
  375. package/lib/i18n/ja/jig.js.map +1 -0
  376. package/lib/i18n/ja/main.d.ts +216 -0
  377. package/lib/i18n/ja/main.d.ts.map +1 -0
  378. package/lib/i18n/ja/main.js +215 -0
  379. package/lib/i18n/ja/main.js.map +1 -0
  380. package/lib/i18n/ja/simpleUi.d.ts +170 -0
  381. package/lib/i18n/ja/simpleUi.d.ts.map +1 -0
  382. package/lib/i18n/ja/simpleUi.js +169 -0
  383. package/lib/i18n/ja/simpleUi.js.map +1 -0
  384. package/lib/i18n/ko/command.d.ts +605 -0
  385. package/lib/i18n/ko/command.d.ts.map +1 -0
  386. package/lib/i18n/ko/command.js +604 -0
  387. package/lib/i18n/ko/command.js.map +1 -0
  388. package/lib/i18n/ko/jig.d.ts +2425 -0
  389. package/lib/i18n/ko/jig.d.ts.map +1 -0
  390. package/lib/i18n/ko/jig.js +2316 -0
  391. package/lib/i18n/ko/jig.js.map +1 -0
  392. package/lib/i18n/ko/main.d.ts +216 -0
  393. package/lib/i18n/ko/main.d.ts.map +1 -0
  394. package/lib/i18n/ko/main.js +215 -0
  395. package/lib/i18n/ko/main.js.map +1 -0
  396. package/lib/i18n/ko/simpleUi.d.ts +170 -0
  397. package/lib/i18n/ko/simpleUi.d.ts.map +1 -0
  398. package/lib/i18n/ko/simpleUi.js +169 -0
  399. package/lib/i18n/ko/simpleUi.js.map +1 -0
  400. package/lib/i18n/tr/command.d.ts +111 -1
  401. package/lib/i18n/tr/command.d.ts.map +1 -1
  402. package/lib/i18n/tr/command.js +112 -2
  403. package/lib/i18n/tr/command.js.map +1 -1
  404. package/lib/i18n/tr/jig.d.ts +867 -0
  405. package/lib/i18n/tr/jig.d.ts.map +1 -1
  406. package/lib/i18n/tr/jig.js +1096 -24
  407. package/lib/i18n/tr/jig.js.map +1 -1
  408. package/lib/i18n/tr/main.d.ts +22 -0
  409. package/lib/i18n/tr/main.d.ts.map +1 -1
  410. package/lib/i18n/tr/main.js +23 -1
  411. package/lib/i18n/tr/main.js.map +1 -1
  412. package/lib/i18n/tr/simpleUi.d.ts +170 -0
  413. package/lib/i18n/tr/simpleUi.d.ts.map +1 -0
  414. package/lib/i18n/tr/simpleUi.js +169 -0
  415. package/lib/i18n/tr/simpleUi.js.map +1 -0
  416. package/lib/i18n/zh/command.d.ts +98 -1
  417. package/lib/i18n/zh/command.d.ts.map +1 -1
  418. package/lib/i18n/zh/command.js +99 -2
  419. package/lib/i18n/zh/command.js.map +1 -1
  420. package/lib/i18n/zh/jig.d.ts +844 -0
  421. package/lib/i18n/zh/jig.d.ts.map +1 -1
  422. package/lib/i18n/zh/jig.js +793 -1
  423. package/lib/i18n/zh/jig.js.map +1 -1
  424. package/lib/i18n/zh/main.d.ts +22 -0
  425. package/lib/i18n/zh/main.d.ts.map +1 -1
  426. package/lib/i18n/zh/main.js +22 -0
  427. package/lib/i18n/zh/main.js.map +1 -1
  428. package/lib/i18n/zh/simpleUi.d.ts +170 -0
  429. package/lib/i18n/zh/simpleUi.d.ts.map +1 -0
  430. package/lib/i18n/zh/simpleUi.js +169 -0
  431. package/lib/i18n/zh/simpleUi.js.map +1 -0
  432. package/lib/index.d.ts +1 -1
  433. package/lib/index.d.ts.map +1 -1
  434. package/lib/index.js +1 -1
  435. package/lib/index.js.map +1 -1
  436. package/lib/service/AcApEntityService.d.ts +36 -2
  437. package/lib/service/AcApEntityService.d.ts.map +1 -1
  438. package/lib/service/AcApEntityService.js +92 -23
  439. package/lib/service/AcApEntityService.js.map +1 -1
  440. package/lib/service/AcApGroup.d.ts +95 -0
  441. package/lib/service/AcApGroup.d.ts.map +1 -0
  442. package/lib/service/AcApGroup.js +421 -0
  443. package/lib/service/AcApGroup.js.map +1 -0
  444. package/lib/service/AcApLlmSettingsService.d.ts +74 -0
  445. package/lib/service/AcApLlmSettingsService.d.ts.map +1 -0
  446. package/lib/service/AcApLlmSettingsService.js +126 -0
  447. package/lib/service/AcApLlmSettingsService.js.map +1 -0
  448. package/lib/service/AcApNamedViewService.d.ts +139 -0
  449. package/lib/service/AcApNamedViewService.d.ts.map +1 -0
  450. package/lib/service/AcApNamedViewService.js +407 -0
  451. package/lib/service/AcApNamedViewService.js.map +1 -0
  452. package/lib/service/AcApTextRecognitionService.d.ts +107 -0
  453. package/lib/service/AcApTextRecognitionService.d.ts.map +1 -0
  454. package/lib/service/AcApTextRecognitionService.js +304 -0
  455. package/lib/service/AcApTextRecognitionService.js.map +1 -0
  456. package/lib/service/AcApUcsService.d.ts +101 -0
  457. package/lib/service/AcApUcsService.d.ts.map +1 -0
  458. package/lib/service/AcApUcsService.js +753 -0
  459. package/lib/service/AcApUcsService.js.map +1 -0
  460. package/lib/service/index.d.ts +5 -0
  461. package/lib/service/index.d.ts.map +1 -1
  462. package/lib/service/index.js +5 -0
  463. package/lib/service/index.js.map +1 -1
  464. package/lib/smartBlock/AcApSmartBlockConvert.d.ts +98 -0
  465. package/lib/smartBlock/AcApSmartBlockConvert.d.ts.map +1 -0
  466. package/lib/smartBlock/AcApSmartBlockConvert.js +300 -0
  467. package/lib/smartBlock/AcApSmartBlockConvert.js.map +1 -0
  468. package/lib/smartBlock/AcApSmartBlockDetect.d.ts +149 -0
  469. package/lib/smartBlock/AcApSmartBlockDetect.d.ts.map +1 -0
  470. package/lib/smartBlock/AcApSmartBlockDetect.js +1464 -0
  471. package/lib/smartBlock/AcApSmartBlockDetect.js.map +1 -0
  472. package/lib/smartBlock/AcApSmartBlockSearch.d.ts +161 -0
  473. package/lib/smartBlock/AcApSmartBlockSearch.d.ts.map +1 -0
  474. package/lib/smartBlock/AcApSmartBlockSearch.js +712 -0
  475. package/lib/smartBlock/AcApSmartBlockSearch.js.map +1 -0
  476. package/lib/smartBlock/AcApSmartBlockSession.d.ts +85 -0
  477. package/lib/smartBlock/AcApSmartBlockSession.d.ts.map +1 -0
  478. package/lib/smartBlock/AcApSmartBlockSession.js +233 -0
  479. package/lib/smartBlock/AcApSmartBlockSession.js.map +1 -0
  480. package/lib/smartBlock/AcEdShapeFeatures.d.ts +33 -0
  481. package/lib/smartBlock/AcEdShapeFeatures.d.ts.map +1 -0
  482. package/lib/smartBlock/AcEdShapeFeatures.js +571 -0
  483. package/lib/smartBlock/AcEdShapeFeatures.js.map +1 -0
  484. package/lib/smartBlock/AcEdShapeMatcher.d.ts +146 -0
  485. package/lib/smartBlock/AcEdShapeMatcher.d.ts.map +1 -0
  486. package/lib/smartBlock/AcEdShapeMatcher.js +749 -0
  487. package/lib/smartBlock/AcEdShapeMatcher.js.map +1 -0
  488. package/lib/smartBlock/index.d.ts +7 -0
  489. package/lib/smartBlock/index.d.ts.map +1 -0
  490. package/lib/smartBlock/index.js +7 -0
  491. package/lib/smartBlock/index.js.map +1 -0
  492. package/lib/ui/AcApSimpleUiChrome.d.ts +374 -0
  493. package/lib/ui/AcApSimpleUiChrome.d.ts.map +1 -0
  494. package/lib/ui/AcApSimpleUiChrome.js +1308 -0
  495. package/lib/ui/AcApSimpleUiChrome.js.map +1 -0
  496. package/lib/ui/AcUiColorPicker.d.ts +47 -0
  497. package/lib/ui/AcUiColorPicker.d.ts.map +1 -0
  498. package/lib/ui/AcUiColorPicker.js +133 -0
  499. package/lib/ui/AcUiColorPicker.js.map +1 -0
  500. package/lib/ui/AcUiFileOpenPanel.js +1 -1
  501. package/lib/ui/AcUiFileOpenPanel.js.map +1 -1
  502. package/lib/ui/AcUiFindPaletteView.d.ts +99 -0
  503. package/lib/ui/AcUiFindPaletteView.d.ts.map +1 -0
  504. package/lib/ui/AcUiFindPaletteView.js +426 -0
  505. package/lib/ui/AcUiFindPaletteView.js.map +1 -0
  506. package/lib/ui/AcUiLayerListView.d.ts +114 -0
  507. package/lib/ui/AcUiLayerListView.d.ts.map +1 -0
  508. package/lib/ui/AcUiLayerListView.js +443 -0
  509. package/lib/ui/AcUiLayerListView.js.map +1 -0
  510. package/lib/ui/AcUiMeasurementPaletteView.d.ts +83 -0
  511. package/lib/ui/AcUiMeasurementPaletteView.d.ts.map +1 -0
  512. package/lib/ui/AcUiMeasurementPaletteView.js +341 -0
  513. package/lib/ui/AcUiMeasurementPaletteView.js.map +1 -0
  514. package/lib/ui/AcUiReviewPaletteView.d.ts +141 -0
  515. package/lib/ui/AcUiReviewPaletteView.d.ts.map +1 -0
  516. package/lib/ui/AcUiReviewPaletteView.js +524 -0
  517. package/lib/ui/AcUiReviewPaletteView.js.map +1 -0
  518. package/lib/ui/AcUiShortCutToolbar.d.ts +24 -2
  519. package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -1
  520. package/lib/ui/AcUiShortCutToolbar.js +48 -6
  521. package/lib/ui/AcUiShortCutToolbar.js.map +1 -1
  522. package/lib/ui/AcUiSimpleUiOptions.d.ts +88 -0
  523. package/lib/ui/AcUiSimpleUiOptions.d.ts.map +1 -0
  524. package/lib/ui/AcUiSimpleUiOptions.js +2 -0
  525. package/lib/ui/AcUiSimpleUiOptions.js.map +1 -0
  526. package/lib/ui/AcUiSimpleUiStyles.d.ts +12 -0
  527. package/lib/ui/AcUiSimpleUiStyles.d.ts.map +1 -0
  528. package/lib/ui/AcUiSimpleUiStyles.js +28 -0
  529. package/lib/ui/AcUiSimpleUiStyles.js.map +1 -0
  530. package/lib/ui/AcUiThemeSync.d.ts +58 -0
  531. package/lib/ui/AcUiThemeSync.d.ts.map +1 -0
  532. package/lib/ui/AcUiThemeSync.js +114 -0
  533. package/lib/ui/AcUiThemeSync.js.map +1 -0
  534. package/lib/ui/acuiNormalizeSimpleUiOptions.d.ts +20 -0
  535. package/lib/ui/acuiNormalizeSimpleUiOptions.d.ts.map +1 -0
  536. package/lib/ui/acuiNormalizeSimpleUiOptions.js +46 -0
  537. package/lib/ui/acuiNormalizeSimpleUiOptions.js.map +1 -0
  538. package/lib/ui/dock/AcUiDockPanel.d.ts +204 -0
  539. package/lib/ui/dock/AcUiDockPanel.d.ts.map +1 -0
  540. package/lib/ui/dock/AcUiDockPanel.js +926 -0
  541. package/lib/ui/dock/AcUiDockPanel.js.map +1 -0
  542. package/lib/ui/dock/acuiDockPanelStyles.d.ts +9 -0
  543. package/lib/ui/dock/acuiDockPanelStyles.d.ts.map +1 -0
  544. package/lib/ui/dock/acuiDockPanelStyles.js +27 -0
  545. package/lib/ui/dock/acuiDockPanelStyles.js.map +1 -0
  546. package/lib/ui/dock/index.d.ts +3 -0
  547. package/lib/ui/dock/index.d.ts.map +1 -0
  548. package/lib/ui/dock/index.js +3 -0
  549. package/lib/ui/dock/index.js.map +1 -0
  550. package/lib/ui/icons.d.ts +22 -14
  551. package/lib/ui/icons.d.ts.map +1 -1
  552. package/lib/ui/icons.js +42 -32
  553. package/lib/ui/icons.js.map +1 -1
  554. package/lib/ui/index.d.ts +12 -0
  555. package/lib/ui/index.d.ts.map +1 -1
  556. package/lib/ui/index.js +11 -0
  557. package/lib/ui/index.js.map +1 -1
  558. package/lib/ui/toolbar/AcUiToolbar.d.ts +1 -1
  559. package/lib/ui/toolbar/AcUiToolbar.js +1 -1
  560. package/lib/ui/toolbar/createLayoutToolbarItem.d.ts +41 -0
  561. package/lib/ui/toolbar/createLayoutToolbarItem.d.ts.map +1 -0
  562. package/lib/ui/toolbar/createLayoutToolbarItem.js +103 -0
  563. package/lib/ui/toolbar/createLayoutToolbarItem.js.map +1 -0
  564. package/lib/ui/toolbar/createToolbarLayoutSwitcher.d.ts +40 -0
  565. package/lib/ui/toolbar/createToolbarLayoutSwitcher.d.ts.map +1 -0
  566. package/lib/ui/toolbar/createToolbarLayoutSwitcher.js +65 -0
  567. package/lib/ui/toolbar/createToolbarLayoutSwitcher.js.map +1 -0
  568. package/lib/ui/toolbar/defaultToolbarItems.d.ts +44 -0
  569. package/lib/ui/toolbar/defaultToolbarItems.d.ts.map +1 -0
  570. package/lib/ui/toolbar/defaultToolbarItems.js +614 -0
  571. package/lib/ui/toolbar/defaultToolbarItems.js.map +1 -0
  572. package/lib/ui/toolbar/index.d.ts +3 -1
  573. package/lib/ui/toolbar/index.d.ts.map +1 -1
  574. package/lib/ui/toolbar/index.js +1 -0
  575. package/lib/ui/toolbar/index.js.map +1 -1
  576. package/lib/ui/toolbar/mergeToolbarOptionsForLayout.d.ts +25 -0
  577. package/lib/ui/toolbar/mergeToolbarOptionsForLayout.d.ts.map +1 -0
  578. package/lib/ui/toolbar/mergeToolbarOptionsForLayout.js +164 -0
  579. package/lib/ui/toolbar/mergeToolbarOptionsForLayout.js.map +1 -0
  580. package/lib/ui/toolbar/resolveDockMountTarget.d.ts +22 -0
  581. package/lib/ui/toolbar/resolveDockMountTarget.d.ts.map +1 -0
  582. package/lib/ui/toolbar/resolveDockMountTarget.js +47 -0
  583. package/lib/ui/toolbar/resolveDockMountTarget.js.map +1 -0
  584. package/lib/ui/toolbar/resolveToolbarItems.d.ts +46 -0
  585. package/lib/ui/toolbar/resolveToolbarItems.d.ts.map +1 -0
  586. package/lib/ui/toolbar/resolveToolbarItems.js +161 -0
  587. package/lib/ui/toolbar/resolveToolbarItems.js.map +1 -0
  588. package/lib/ui/toolbar/resolveToolbarMountTarget.d.ts +17 -0
  589. package/lib/ui/toolbar/resolveToolbarMountTarget.d.ts.map +1 -0
  590. package/lib/ui/toolbar/resolveToolbarMountTarget.js +39 -0
  591. package/lib/ui/toolbar/resolveToolbarMountTarget.js.map +1 -0
  592. package/lib/ui/toolbar/simpleUiPresets.d.ts +15 -0
  593. package/lib/ui/toolbar/simpleUiPresets.d.ts.map +1 -0
  594. package/lib/ui/toolbar/simpleUiPresets.js +14 -0
  595. package/lib/ui/toolbar/simpleUiPresets.js.map +1 -0
  596. package/lib/ui/toolbar/types.d.ts +18 -0
  597. package/lib/ui/toolbar/types.d.ts.map +1 -1
  598. package/lib/util/AcApFontUtil.d.ts +19 -0
  599. package/lib/util/AcApFontUtil.d.ts.map +1 -1
  600. package/lib/util/AcApFontUtil.js +108 -13
  601. package/lib/util/AcApFontUtil.js.map +1 -1
  602. package/lib/util/AcApGeTransform.d.ts +8 -0
  603. package/lib/util/AcApGeTransform.d.ts.map +1 -1
  604. package/lib/util/AcApGeTransform.js +13 -0
  605. package/lib/util/AcApGeTransform.js.map +1 -1
  606. package/lib/util/AcApLayoutViewFraming.d.ts +22 -0
  607. package/lib/util/AcApLayoutViewFraming.d.ts.map +1 -1
  608. package/lib/util/AcApLayoutViewFraming.js +24 -0
  609. package/lib/util/AcApLayoutViewFraming.js.map +1 -1
  610. package/lib/util/AcApTextMeasure.d.ts +43 -0
  611. package/lib/util/AcApTextMeasure.d.ts.map +1 -0
  612. package/lib/util/AcApTextMeasure.js +82 -0
  613. package/lib/util/AcApTextMeasure.js.map +1 -0
  614. package/lib/util/acapResolveOpenFileType.d.ts +12 -0
  615. package/lib/util/acapResolveOpenFileType.d.ts.map +1 -0
  616. package/lib/util/acapResolveOpenFileType.js +22 -0
  617. package/lib/util/acapResolveOpenFileType.js.map +1 -0
  618. package/lib/util/index.d.ts +2 -0
  619. package/lib/util/index.d.ts.map +1 -1
  620. package/lib/util/index.js +2 -0
  621. package/lib/util/index.js.map +1 -1
  622. package/lib/view/AcApUcsIconOverlay.d.ts +26 -0
  623. package/lib/view/AcApUcsIconOverlay.d.ts.map +1 -0
  624. package/lib/view/AcApUcsIconOverlay.js +143 -0
  625. package/lib/view/AcApUcsIconOverlay.js.map +1 -0
  626. package/lib/view/AcEdViewKeyHandler.d.ts +11 -0
  627. package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
  628. package/lib/view/AcEdViewKeyHandler.js +39 -3
  629. package/lib/view/AcEdViewKeyHandler.js.map +1 -1
  630. package/lib/view/AcTrEntityDisplayController.d.ts +5 -0
  631. package/lib/view/AcTrEntityDisplayController.d.ts.map +1 -1
  632. package/lib/view/AcTrEntityDisplayController.js +5 -0
  633. package/lib/view/AcTrEntityDisplayController.js.map +1 -1
  634. package/lib/view/AcTrLayer.d.ts +27 -0
  635. package/lib/view/AcTrLayer.d.ts.map +1 -1
  636. package/lib/view/AcTrLayer.js +40 -0
  637. package/lib/view/AcTrLayer.js.map +1 -1
  638. package/lib/view/AcTrLayout.d.ts +55 -1
  639. package/lib/view/AcTrLayout.d.ts.map +1 -1
  640. package/lib/view/AcTrLayout.js +252 -51
  641. package/lib/view/AcTrLayout.js.map +1 -1
  642. package/lib/view/AcTrLayoutView.d.ts +0 -12
  643. package/lib/view/AcTrLayoutView.d.ts.map +1 -1
  644. package/lib/view/AcTrLayoutView.js +0 -20
  645. package/lib/view/AcTrLayoutView.js.map +1 -1
  646. package/lib/view/AcTrLayoutViewManager.d.ts +6 -0
  647. package/lib/view/AcTrLayoutViewManager.d.ts.map +1 -1
  648. package/lib/view/AcTrLayoutViewManager.js +8 -0
  649. package/lib/view/AcTrLayoutViewManager.js.map +1 -1
  650. package/lib/view/AcTrScene.d.ts +12 -0
  651. package/lib/view/AcTrScene.d.ts.map +1 -1
  652. package/lib/view/AcTrScene.js +65 -16
  653. package/lib/view/AcTrScene.js.map +1 -1
  654. package/lib/view/AcTrView2d.d.ts +92 -1
  655. package/lib/view/AcTrView2d.d.ts.map +1 -1
  656. package/lib/view/AcTrView2d.js +371 -96
  657. package/lib/view/AcTrView2d.js.map +1 -1
  658. package/lib/view/AcTrViewSessionState.d.ts +5 -0
  659. package/lib/view/AcTrViewSessionState.d.ts.map +1 -1
  660. package/package.json +12 -16
  661. package/src/file-open-panel.ts +93 -89
  662. package/src/ui/icons.ts +428 -411
  663. package/dist/cad-simple-viewer-AcUiFileOpenSession-drptdOYc.js +0 -324
  664. package/find.ts +0 -7
  665. package/src/find/AcApFindNavigator.ts +0 -190
  666. package/src/find/findDrawing.ts +0 -211
  667. package/src/find/findText.ts +0 -624
  668. package/src/find/index.ts +0 -2
@@ -112,13 +112,16 @@ import { notifyMeasurementLayoutChanged } from '../command/measure/AcApMeasureme
112
112
  import { acedAttachMobileBoxGesture, AcEdBaseView, acedCollectViewportBoxSelectionIds, AcEdConditionWaiter, AcEdCorsorType, AcEdGripManager, acedGuardCanvasTouchCallout, acedInteractionStrategy, acedIsTouchDerivedMouseEvent, AcEdMTextEditor, AcEdOpenMode, acedShouldIgnoreCompatMouse, AcEdViewMode, eventBus, resolvePointerSelectionAction } from '../editor';
113
113
  import { ACGI_MODEL_SPACE_BACKGROUND, isModelSpaceDatabase, readLayoutBackgroundColor } from '../editor/global/AcEdUiColor';
114
114
  import { ML_UI_Z_CANVAS_HTML_OVERLAY } from '../editor/global/AcEdUiLayout';
115
- import { acedEntityIntersectsSelectionBox, acedNeedsCrossingGeometryRefine } from '../editor/view/AcEdSelectionBoxIntersect';
115
+ import { acedPickViewportForModelExtents } from '../editor/grip/AcEdGripViewport';
116
+ import { acedBlockReferenceIntersectsSelectionBox, acedEntityIntersectsSelectionBox, acedNeedsCrossingGeometryRefine } from '../editor/view/AcEdSelectionBoxIntersect';
116
117
  import { isEffectiveSpatialQueryHit } from '../editor/view/AcEdSpatialQueryResult';
118
+ import { AcApUcsService } from '../service/AcApUcsService';
117
119
  import { AcTrGeometryUtil } from '../util';
118
120
  import { acapRunDatabaseEdit } from '../util/AcApDatabaseEdit';
119
- import { acapResolveLayoutFrameBox } from '../util/AcApLayoutViewFraming';
121
+ import { acapResolveContentFrameBox, acapResolveLayoutFrameBox } from '../util/AcApLayoutViewFraming';
120
122
  import { collectTextStyleFontNames, planTextStyleFontPreload } from '../util/AcApTextStyleFontPreload';
121
123
  import { ACAP_READING_MODE_BACKGROUND, AcApReadingModeState } from './AcApReadingMode';
124
+ import { AcApUcsIconOverlay } from './AcApUcsIconOverlay';
122
125
  import { trySelectReviewOverlay, trySelectReviewOverlaysByBox } from './AcEdReviewOverlayPick';
123
126
  import { AcEdViewKeyHandler } from './AcEdViewKeyHandler';
124
127
  import { absorbConvertQueue, adaptConvertSliceSize, createConvertPending, hasPendingActiveOwner } from './AcTrConvertQueue';
@@ -210,6 +213,8 @@ var AcTrView2d = /** @class */ (function (_super) {
210
213
  * A value of `null` indicates that no animation frame is currently scheduled.
211
214
  */
212
215
  _this._rafId = null;
216
+ /** Drawing UCS triad overlay (On / at origin). */
217
+ _this._ucsIconOverlay = null;
213
218
  /**
214
219
  * Block table record ids of layouts whose entities are currently being
215
220
  * batch-converted into the scene. Used by
@@ -255,6 +260,17 @@ var AcTrView2d = /** @class */ (function (_super) {
255
260
  * **first visit** to every other layout the user has not framed yet.
256
261
  */
257
262
  _this._openViewMode = AcApOpenViewMode.Extents;
263
+ /**
264
+ * Layout cameras captured by {@link clearForRegen}. Each entry is applied
265
+ * (and dropped) when the regen recreates that layout's view.
266
+ */
267
+ _this._regenCameras = new Map();
268
+ /**
269
+ * True once this document's scene has fat-line geometry for LWDISPLAY.
270
+ * Opening with LWDISPLAY off keeps cheap `GL_LINES`; the first enable may
271
+ * need one upgrade regen, after which toggles only flip `linewidth`.
272
+ */
273
+ _this._lineWeightGeometryReady = false;
258
274
  /**
259
275
  * Layer names with an in-flight {@link convertMissingEntitiesOnLayer} pass.
260
276
  *
@@ -425,12 +441,13 @@ var AcTrView2d = /** @class */ (function (_super) {
425
441
  /** Last text-style font preload plan (for OPENPERF). */
426
442
  _this._fontPreloadDiag = null;
427
443
  _this.animate = function () {
428
- var _a;
444
+ var _a, _b;
429
445
  _this._rafId = requestAnimationFrame(_this.animate);
430
446
  _this.events.renderFrame.dispatch({
431
447
  render: _this._renderer,
432
448
  camera: _this.internalCamera
433
449
  });
450
+ (_a = _this._ucsIconOverlay) === null || _a === void 0 ? void 0 : _a.update(_this);
434
451
  var stillLoading = _this._numOfEntitiesToProcess > 0;
435
452
  var sceneBusy = stillLoading || _this._pendingGeometryJobs > 0;
436
453
  // Headless non-progressive (`cooperativeYield` false): skip WebGL until
@@ -474,7 +491,7 @@ var AcTrView2d = /** @class */ (function (_super) {
474
491
  if (_this.internalCamera && (_this._isDirty || _this._htmlDirty)) {
475
492
  _this._css2dRenderer.render(_this._scene.internalScene, _this.internalCamera);
476
493
  }
477
- (_a = _this._stats) === null || _a === void 0 ? void 0 : _a.update();
494
+ (_b = _this._stats) === null || _b === void 0 ? void 0 : _b.update();
478
495
  // Do not re-dirty every frame during progressive open — paint is throttled
479
496
  // from geometry batches to keep total open time down. Counter hitting 0
480
497
  // still forces a final dirty in decreaseNumOfEntitiesToProcess().
@@ -824,11 +841,17 @@ var AcTrView2d = /** @class */ (function (_super) {
824
841
  _this._css2dRenderer.domElement.style.maxWidth = '100%';
825
842
  _this._css2dRenderer.domElement.style.maxHeight = '100%';
826
843
  container.appendChild(_this._css2dRenderer.domElement);
844
+ _this._ucsIconOverlay = new AcApUcsIconOverlay(container);
845
+ _this._onUcsChanged = function () {
846
+ var _a;
847
+ (_a = _this._ucsIconOverlay) === null || _a === void 0 ? void 0 : _a.update(_this);
848
+ _this._isDirty = true;
849
+ };
850
+ AcApUcsService.events.ucsChanged.addEventListener(_this._onUcsChanged);
827
851
  _this._missedImages = new Map();
828
852
  _this._layoutViewManager = new AcTrLayoutViewManager();
829
853
  _this._progressiveOpenFit = new AcTrProgressiveOpenFitController(function (box, margin) {
830
- _this.activeLayoutView.zoomTo(box, margin !== null && margin !== void 0 ? margin : 1.1);
831
- _this._isDirty = true;
854
+ _this.zoomTo(box, margin !== null && margin !== void 0 ? margin : 1.1);
832
855
  });
833
856
  _this._entityDisplay = new AcTrEntityDisplayController(function (layerName) {
834
857
  return _this.resolveLayerInfo(layerName);
@@ -1349,6 +1372,36 @@ var AcTrView2d = /** @class */ (function (_super) {
1349
1372
  enumerable: false,
1350
1373
  configurable: true
1351
1374
  });
1375
+ /**
1376
+ * Applies AutoCAD LWDISPLAY.
1377
+ *
1378
+ * - Off: keep fat geometry (if any) and force hairline `linewidth`.
1379
+ * - On, geometry already fat: restore authored `linewidth`.
1380
+ * - On, scene still on cheap `GL_LINES`: returns `true` so the caller can
1381
+ * run one camera-preserving upgrade regen.
1382
+ *
1383
+ * @param show - Whether entity lineweights should be displayed
1384
+ * @returns `true` when the caller must rebuild line geometry for display-on
1385
+ */
1386
+ AcTrView2d.prototype.setShowLineWeight = function (show) {
1387
+ this._renderer.showLineWeight = show;
1388
+ this._scene.applyShowLineWeight(show);
1389
+ this._isDirty = true;
1390
+ if (!show) {
1391
+ return false;
1392
+ }
1393
+ if (this._lineWeightGeometryReady) {
1394
+ return false;
1395
+ }
1396
+ return true;
1397
+ };
1398
+ /**
1399
+ * Records that the active scene now has fat-line geometry for LWDISPLAY.
1400
+ * Call after open-with-display-on or after an upgrade regen.
1401
+ */
1402
+ AcTrView2d.prototype.markLineWeightGeometryReady = function () {
1403
+ this._lineWeightGeometryReady = true;
1404
+ };
1352
1405
  /**
1353
1406
  * Applies canvas background colour from layout background sysvars or explicit
1354
1407
  * API calls. Also refreshes ACI-7 foreground inversion via the style
@@ -1622,11 +1675,15 @@ var AcTrView2d = /** @class */ (function (_super) {
1622
1675
  },
1623
1676
  set: function (value) {
1624
1677
  var previous = this._scene.activeLayoutBtrId;
1678
+ this.ensureLayoutView(value);
1625
1679
  this._layoutViewManager.activeLayoutBtrId = value;
1626
1680
  this._scene.activeLayoutBtrId = value;
1627
1681
  this.htmlTransientManager.setActiveLayoutId(value);
1628
1682
  this._isDirty = true;
1629
1683
  if (previous !== value) {
1684
+ // Viewport drill-through hints are layout-local; drop them on switch so
1685
+ // grips do not reuse a paper viewport id from the previous sheet.
1686
+ this.clearModelEntityViewportHints();
1630
1687
  notifyMeasurementLayoutChanged();
1631
1688
  }
1632
1689
  },
@@ -1643,6 +1700,20 @@ var AcTrView2d = /** @class */ (function (_super) {
1643
1700
  enumerable: false,
1644
1701
  configurable: true
1645
1702
  });
1703
+ /**
1704
+ * Ensures a scene layout and {@link AcTrLayoutView} exist for `layoutBtrId`.
1705
+ *
1706
+ * Open framing and picking require an active layout view. Entity streams
1707
+ * create scene layouts by owner id, but layout views normally come from
1708
+ * `AcDbLayout` dictionary entries — which can point at a stale BTR id while
1709
+ * `currentSpaceId` / entities use the real `*Model_Space` handle.
1710
+ */
1711
+ AcTrView2d.prototype.ensureLayoutView = function (layoutBtrId) {
1712
+ if (!layoutBtrId)
1713
+ return;
1714
+ this._scene.addEmptyLayout(layoutBtrId);
1715
+ this.createLayoutViewIfNeeded(layoutBtrId);
1716
+ };
1646
1717
  Object.defineProperty(AcTrView2d.prototype, "stats", {
1647
1718
  /**
1648
1719
  * The statistics of the current scene
@@ -1829,26 +1900,34 @@ var AcTrView2d = /** @class */ (function (_super) {
1829
1900
  * @inheritdoc
1830
1901
  */
1831
1902
  AcTrView2d.prototype.screenToWorld = function (point) {
1832
- var activeLayoutView = this.activeLayoutView;
1833
- return activeLayoutView
1834
- ? activeLayoutView.screenToWorld(point)
1835
- : new AcGePoint2d(point);
1903
+ var activeLayoutView = this._layoutViewManager.activeLayoutView;
1904
+ if (activeLayoutView) {
1905
+ return activeLayoutView.screenToWorld(point);
1906
+ }
1907
+ // No layout camera yet. Screen Y grows downward; invert so orientation
1908
+ // consumers (UCS icon axes) stay upright until setActiveLayout runs.
1909
+ return new AcGePoint2d(point.x, -point.y);
1836
1910
  };
1837
1911
  /**
1838
1912
  * @inheritdoc
1839
1913
  */
1840
1914
  AcTrView2d.prototype.worldToScreen = function (point) {
1841
- var activeLayoutView = this.activeLayoutView;
1842
- return activeLayoutView
1843
- ? activeLayoutView.worldToScreen(point)
1844
- : new AcGePoint2d(point);
1915
+ var activeLayoutView = this._layoutViewManager.activeLayoutView;
1916
+ if (activeLayoutView) {
1917
+ return activeLayoutView.worldToScreen(point);
1918
+ }
1919
+ // See screenToWorld — never pass WCS through as CSS pixels (that flips Y).
1920
+ return new AcGePoint2d(point.x, -point.y);
1845
1921
  };
1846
1922
  /**
1847
1923
  * @inheritdoc
1848
1924
  */
1849
1925
  AcTrView2d.prototype.zoomTo = function (box, margin) {
1850
1926
  if (margin === void 0) { margin = 1.1; }
1851
- this.activeLayoutView.zoomTo(box, margin);
1927
+ var layoutView = this.activeLayoutView;
1928
+ if (!layoutView)
1929
+ return;
1930
+ layoutView.zoomTo(box, margin);
1852
1931
  this._isDirty = true;
1853
1932
  };
1854
1933
  /**
@@ -2323,6 +2402,8 @@ var AcTrView2d = /** @class */ (function (_super) {
2323
2402
  if (!activeLayout)
2324
2403
  return results;
2325
2404
  var activeLayoutView = this.activeLayoutView;
2405
+ if (!activeLayoutView)
2406
+ return results;
2326
2407
  var effectiveHitRadius = hitRadius !== null && hitRadius !== void 0 ? hitRadius : this.selectionBoxSize;
2327
2408
  var paperBox = activeLayoutView.pointToBox(point, effectiveHitRadius);
2328
2409
  var threshold = Math.max(paperBox.size.width / 2, paperBox.size.height / 2);
@@ -2451,6 +2532,63 @@ var AcTrView2d = /** @class */ (function (_super) {
2451
2532
  containsPaperPoint: function (point) { return vpView.containsPaperPoint(point); }
2452
2533
  };
2453
2534
  };
2535
+ /**
2536
+ * @inheritdoc
2537
+ *
2538
+ * Resolves a user viewport that shows the model-space entity so grips can
2539
+ * be positioned in paper WCS (and drag deltas mapped back to model WCS).
2540
+ */
2541
+ AcTrView2d.prototype.findViewportMapperForModelEntity = function (entityId) {
2542
+ var e_9, _a;
2543
+ var _b, _c;
2544
+ var activeLayoutView = this.activeLayoutView;
2545
+ if (!activeLayoutView)
2546
+ return undefined;
2547
+ if (activeLayoutView.layoutBtrId === this._scene.modelSpaceBtrId) {
2548
+ return undefined;
2549
+ }
2550
+ var database = (_c = (_b = AcApDocManager.tryGetInstance()) === null || _b === void 0 ? void 0 : _b.curDocument) === null || _c === void 0 ? void 0 : _c.database;
2551
+ var entity = database === null || database === void 0 ? void 0 : database.tables.blockTable.getEntityById(entityId);
2552
+ if (!entity || entity.ownerId !== this._scene.modelSpaceBtrId) {
2553
+ return undefined;
2554
+ }
2555
+ var candidates = [];
2556
+ try {
2557
+ for (var _d = __values(activeLayoutView.viewportViews), _e = _d.next(); !_e.done; _e = _d.next()) {
2558
+ var vpView = _e.value;
2559
+ var viewBox = vpView.viewport.viewBox;
2560
+ candidates.push({
2561
+ viewportId: vpView.viewport.id,
2562
+ viewBox: {
2563
+ min: { x: viewBox.min.x, y: viewBox.min.y },
2564
+ max: { x: viewBox.max.x, y: viewBox.max.y }
2565
+ }
2566
+ });
2567
+ }
2568
+ }
2569
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
2570
+ finally {
2571
+ try {
2572
+ if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
2573
+ }
2574
+ finally { if (e_9) throw e_9.error; }
2575
+ }
2576
+ if (candidates.length === 0)
2577
+ return undefined;
2578
+ var extents = entity.geometricExtents;
2579
+ var viewportId = acedPickViewportForModelExtents(extents
2580
+ ? {
2581
+ min: { x: extents.min.x, y: extents.min.y },
2582
+ max: { x: extents.max.x, y: extents.max.y }
2583
+ }
2584
+ : undefined, candidates, this.getModelEntityViewportHint(entityId));
2585
+ if (viewportId == null)
2586
+ return undefined;
2587
+ var mapper = this.getViewportCoordinateMapper(viewportId);
2588
+ if (!mapper)
2589
+ return undefined;
2590
+ return { viewportId: viewportId, mapper: mapper };
2591
+ };
2454
2592
  /**
2455
2593
  * Resolves hits against the model-space layout for each viewport the
2456
2594
  * click drills through. Appends the matches into `results` (caller
@@ -2468,7 +2606,7 @@ var AcTrView2d = /** @class */ (function (_super) {
2468
2606
  * paper-space pick.
2469
2607
  */
2470
2608
  AcTrView2d.prototype.pickThroughViewports = function (paperPoint, paperBox, viewports, results) {
2471
- var e_9, _a;
2609
+ var e_10, _a;
2472
2610
  var modelLayout = this._scene.modelSpaceLayout;
2473
2611
  if (!modelLayout)
2474
2612
  return;
@@ -2503,12 +2641,12 @@ var AcTrView2d = /** @class */ (function (_super) {
2503
2641
  _loop_1(vpView);
2504
2642
  }
2505
2643
  }
2506
- catch (e_9_1) { e_9 = { error: e_9_1 }; }
2644
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
2507
2645
  finally {
2508
2646
  try {
2509
2647
  if (viewports_1_1 && !viewports_1_1.done && (_a = viewports_1.return)) _a.call(viewports_1);
2510
2648
  }
2511
- finally { if (e_9) throw e_9.error; }
2649
+ finally { if (e_10) throw e_10.error; }
2512
2650
  }
2513
2651
  };
2514
2652
  /**
@@ -2521,9 +2659,15 @@ var AcTrView2d = /** @class */ (function (_super) {
2521
2659
  * @inheritdoc
2522
2660
  */
2523
2661
  AcTrView2d.prototype.select = function (point) {
2662
+ var _this = this;
2524
2663
  var idsAdded = [];
2525
2664
  var results = this.pick(point);
2526
- results.forEach(function (item) { return idsAdded.push(item.id); });
2665
+ results.forEach(function (item) {
2666
+ idsAdded.push(item.id);
2667
+ // Remember which viewport the click drilled through so grips map
2668
+ // through the same viewport when several overlap the entity.
2669
+ _this.rememberModelEntityViewportHint(item.id, item.viewportId);
2670
+ });
2527
2671
  var selectable = this.selectableIds(idsAdded, 'add');
2528
2672
  if (selectable.length > 0)
2529
2673
  this.selectionSet.add(selectable);
@@ -2546,7 +2690,8 @@ var AcTrView2d = /** @class */ (function (_super) {
2546
2690
  * AutoCAD meaning.
2547
2691
  */
2548
2692
  AcTrView2d.prototype.collectViewportDrillThroughSelectionIds = function (box, mode) {
2549
- var e_10, _a;
2693
+ var e_11, _a;
2694
+ var _this = this;
2550
2695
  var _b, _c;
2551
2696
  var activeLayoutView = this.activeLayoutView;
2552
2697
  var modelLayout = this._scene.modelSpaceLayout;
@@ -2557,6 +2702,7 @@ var AcTrView2d = /** @class */ (function (_super) {
2557
2702
  var viewports = [];
2558
2703
  var _loop_2 = function (vpView) {
2559
2704
  viewports.push({
2705
+ viewportId: vpView.viewport.id,
2560
2706
  paperBox: vpView.viewport.box,
2561
2707
  frozenLayers: vpView.viewport.frozenLayers,
2562
2708
  paperPointToModel: function (point) { return vpView.paperPointToModel(point); },
@@ -2569,12 +2715,12 @@ var AcTrView2d = /** @class */ (function (_super) {
2569
2715
  _loop_2(vpView);
2570
2716
  }
2571
2717
  }
2572
- catch (e_10_1) { e_10 = { error: e_10_1 }; }
2718
+ catch (e_11_1) { e_11 = { error: e_11_1 }; }
2573
2719
  finally {
2574
2720
  try {
2575
2721
  if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
2576
2722
  }
2577
- finally { if (e_10) throw e_10.error; }
2723
+ finally { if (e_11) throw e_11.error; }
2578
2724
  }
2579
2725
  if (viewports.length === 0)
2580
2726
  return [];
@@ -2586,7 +2732,12 @@ var AcTrView2d = /** @class */ (function (_super) {
2586
2732
  searchModel: function (modelBox, selectionMode) {
2587
2733
  return modelLayout.search(modelBox, { selectionMode: selectionMode });
2588
2734
  },
2589
- entityOf: function (id) { var _a; return (_a = database === null || database === void 0 ? void 0 : database.tables.blockTable.getEntityById(id)) !== null && _a !== void 0 ? _a : undefined; }
2735
+ entityOf: function (id) { var _a; return (_a = database === null || database === void 0 ? void 0 : database.tables.blockTable.getEntityById(id)) !== null && _a !== void 0 ? _a : undefined; },
2736
+ // Mirror click-pick hints so grips map through the same viewport when
2737
+ // several overlap the entity after a window/crossing select.
2738
+ onHit: function (entityId, viewport) {
2739
+ _this.rememberModelEntityViewportHint(entityId, viewport.viewportId);
2740
+ }
2590
2741
  });
2591
2742
  };
2592
2743
  /**
@@ -2597,7 +2748,7 @@ var AcTrView2d = /** @class */ (function (_super) {
2597
2748
  * that interior also selects those polylines and can stall highlight work.
2598
2749
  */
2599
2750
  AcTrView2d.prototype.refineCrossingSelectionHits = function (box, results) {
2600
- var e_11, _a;
2751
+ var e_12, _a;
2601
2752
  var _b;
2602
2753
  var database = (_b = AcApDocManager.instance.curDocument) === null || _b === void 0 ? void 0 : _b.database;
2603
2754
  if (!database) {
@@ -2608,7 +2759,15 @@ var AcTrView2d = /** @class */ (function (_super) {
2608
2759
  for (var results_1 = __values(results), results_1_1 = results_1.next(); !results_1_1.done; results_1_1 = results_1.next()) {
2609
2760
  var item = results_1_1.value;
2610
2761
  if (!acedNeedsCrossingGeometryRefine(item)) {
2611
- ids.push(item.id);
2762
+ // INSERT: the child index only filtered sub-entities by AABB. Like
2763
+ // AutoCAD, require the box to touch a sub-entity's real geometry so
2764
+ // a crossing box in the empty interior of a frame block misses it.
2765
+ var blockRef = database.tables.blockTable.getEntityById(item.id);
2766
+ if (!(blockRef instanceof AcDbBlockReference) ||
2767
+ !item.children ||
2768
+ acedBlockReferenceIntersectsSelectionBox(blockRef, item.children, box)) {
2769
+ ids.push(item.id);
2770
+ }
2612
2771
  continue;
2613
2772
  }
2614
2773
  var entityBox = new AcGeBox2d({ x: item.minX, y: item.minY }, { x: item.maxX, y: item.maxY });
@@ -2622,12 +2781,12 @@ var AcTrView2d = /** @class */ (function (_super) {
2622
2781
  }
2623
2782
  }
2624
2783
  }
2625
- catch (e_11_1) { e_11 = { error: e_11_1 }; }
2784
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
2626
2785
  finally {
2627
2786
  try {
2628
2787
  if (results_1_1 && !results_1_1.done && (_a = results_1.return)) _a.call(results_1);
2629
2788
  }
2630
- finally { if (e_11) throw e_11.error; }
2789
+ finally { if (e_12) throw e_12.error; }
2631
2790
  }
2632
2791
  return ids;
2633
2792
  };
@@ -2643,7 +2802,7 @@ var AcTrView2d = /** @class */ (function (_super) {
2643
2802
  * @inheritdoc
2644
2803
  */
2645
2804
  AcTrView2d.prototype.updateLayer = function (layer, changes) {
2646
- var e_12, _a;
2805
+ var e_13, _a;
2647
2806
  var touchedObjectIds = this._scene.updateLayer(this.toLayerInfo(layer)).touchedObjectIds;
2648
2807
  if (this._layerAppearance.layerStyleMayHaveChanged(changes)) {
2649
2808
  this._layerAppearance.syncFromLiveRecord(layer);
@@ -2665,17 +2824,23 @@ var AcTrView2d = /** @class */ (function (_super) {
2665
2824
  this.applySessionHiddenObjectState(objectId);
2666
2825
  }
2667
2826
  }
2668
- catch (e_12_1) { e_12 = { error: e_12_1 }; }
2827
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
2669
2828
  finally {
2670
2829
  try {
2671
2830
  if (touchedObjectIds_1_1 && !touchedObjectIds_1_1.done && (_a = touchedObjectIds_1.return)) _a.call(touchedObjectIds_1);
2672
2831
  }
2673
- finally { if (e_12) throw e_12.error; }
2832
+ finally { if (e_13) throw e_13.error; }
2674
2833
  }
2675
2834
  this._isDirty = true;
2676
2835
  };
2677
2836
  /**
2678
- * Add the specified transient entity or entities into this view
2837
+ * Add the specified transient entity or entities into this view.
2838
+ *
2839
+ * Transients are jig previews of drawing entities (PASTECLIP, MOVE, grip
2840
+ * edits, ...), so they follow the drawing's lineweight display (LWDISPLAY)
2841
+ * like the entities they preview. Markups and measurements draw through
2842
+ * {@link htmlTransientManager} instead.
2843
+ *
2679
2844
  * @param entity Input one or multiple transient entities
2680
2845
  */
2681
2846
  AcTrView2d.prototype.addTransientEntity = function (entity) {
@@ -2683,10 +2848,6 @@ var AcTrView2d = /** @class */ (function (_super) {
2683
2848
  var _a, _b;
2684
2849
  var entities = Array.isArray(entity) ? entity : [entity];
2685
2850
  var epoch = this._convertEpoch;
2686
- // Overlay transients (markup / measurement / jigs) must honor entity
2687
- // lineweight even when LWDISPLAY is off; otherwise ribbon style is a no-op.
2688
- var previousForce = this._renderer.forceShowLineWeight;
2689
- this._renderer.forceShowLineWeight = true;
2690
2851
  // Force merge-mode glyphs on the transient tree (see AcTrMText). Keep the
2691
2852
  // context flag raised for the whole sync convert so nested MTEXT never
2692
2853
  // enqueue world InstancedMesh placements that flush after the command.
@@ -2745,7 +2906,6 @@ var AcTrView2d = /** @class */ (function (_super) {
2745
2906
  }
2746
2907
  }
2747
2908
  finally {
2748
- this._renderer.forceShowLineWeight = previousForce;
2749
2909
  releaseSkipMeshGlyph();
2750
2910
  }
2751
2911
  };
@@ -2821,7 +2981,6 @@ var AcTrView2d = /** @class */ (function (_super) {
2821
2981
  */
2822
2982
  AcTrView2d.prototype.addEntity = function (entity) {
2823
2983
  var _a;
2824
- var _b;
2825
2984
  var entities = Array.isArray(entity) ? entity : [entity];
2826
2985
  // Mark each owner layout as loaded as soon as the open-time ENTITY stream
2827
2986
  // enqueues work. Progressive convert may not have committed scene entities
@@ -2831,7 +2990,7 @@ var AcTrView2d = /** @class */ (function (_super) {
2831
2990
  // "Rendering drawing ..." up long after linework should have finished —
2832
2991
  // so progressive rendering cannot release pan/zoom on time.
2833
2992
  for (var i = 0; i < entities.length; i++) {
2834
- var ownerId = (_b = entities[i]) === null || _b === void 0 ? void 0 : _b.ownerId;
2993
+ var ownerId = (_a = entities[i]) === null || _a === void 0 ? void 0 : _a.ownerId;
2835
2994
  if (!ownerId)
2836
2995
  continue;
2837
2996
  var layout = this._scene.layouts.get(ownerId);
@@ -2849,7 +3008,7 @@ var AcTrView2d = /** @class */ (function (_super) {
2849
3008
  // many converts in parallel and OOM'd dense drawings (e.g. cathedral.dwg)
2850
3009
  // during "Rendering drawing ...". Progressive mid-open paints stay gated
2851
3010
  // by `_progressiveRendering` inside batchConvert / markProgressiveDirty.
2852
- (_a = this._convertQueue).push.apply(_a, __spreadArray([], __read(entities), false));
3011
+ this.enqueueConvert(entities);
2853
3012
  void this.drainConvertQueue();
2854
3013
  };
2855
3014
  /**
@@ -2858,10 +3017,14 @@ var AcTrView2d = /** @class */ (function (_super) {
2858
3017
  AcTrView2d.prototype.removeEntity = function (entity) {
2859
3018
  var _this = this;
2860
3019
  var entities = Array.isArray(entity) ? entity : [entity];
2861
- entities.forEach(function (entity) {
2862
- _this.releaseConvertClaim(entity.objectId);
2863
- _this._scene.removeEntity(entity.objectId);
2864
- });
3020
+ entities.forEach(function (entity) { return _this.releaseConvertClaim(entity.objectId); });
3021
+ if (entities.length === 1) {
3022
+ this._scene.removeEntity(entities[0].objectId);
3023
+ }
3024
+ else if (entities.length > 1) {
3025
+ // One bulk removal: batches are compacted once, not once per entity.
3026
+ this._scene.removeEntities(entities.map(function (entity) { return entity.objectId; }));
3027
+ }
2865
3028
  this._isDirty = true;
2866
3029
  };
2867
3030
  /**
@@ -3007,7 +3170,7 @@ var AcTrView2d = /** @class */ (function (_super) {
3007
3170
  * drawable entity that must be rebuilt (for example ATTRIB → INSERT).
3008
3171
  */
3009
3172
  AcTrView2d.prototype.resolveSceneUpdateEntities = function (entities) {
3010
- var e_13, _a;
3173
+ var e_14, _a;
3011
3174
  var _b;
3012
3175
  var db = (_b = AcApDocManager.instance.curDocument) === null || _b === void 0 ? void 0 : _b.database;
3013
3176
  var resolved = [];
@@ -3029,12 +3192,12 @@ var AcTrView2d = /** @class */ (function (_super) {
3029
3192
  resolved.push(target);
3030
3193
  }
3031
3194
  }
3032
- catch (e_13_1) { e_13 = { error: e_13_1 }; }
3195
+ catch (e_14_1) { e_14 = { error: e_14_1 }; }
3033
3196
  finally {
3034
3197
  try {
3035
3198
  if (entities_1_1 && !entities_1_1.done && (_a = entities_1.return)) _a.call(entities_1);
3036
3199
  }
3037
- finally { if (e_13) throw e_13.error; }
3200
+ finally { if (e_14) throw e_14.error; }
3038
3201
  }
3039
3202
  return resolved;
3040
3203
  };
@@ -3042,10 +3205,42 @@ var AcTrView2d = /** @class */ (function (_super) {
3042
3205
  * @inheritdoc
3043
3206
  */
3044
3207
  AcTrView2d.prototype.addLayout = function (layout) {
3045
- this._scene.addEmptyLayout(layout.blockTableRecordId);
3046
- this.createLayoutViewIfNeeded(layout.blockTableRecordId);
3208
+ var btrId = layout.blockTableRecordId;
3209
+ // Converters can emit a layout before its BTR link is healed (empty
3210
+ // blockTableRecordId). Skip until a real id exists — otherwise the scene
3211
+ // grows a junk layout under `''` and paper tabs stay missing.
3212
+ if (!btrId)
3213
+ return;
3214
+ this._scene.addEmptyLayout(btrId);
3215
+ this.createLayoutViewIfNeeded(btrId);
3047
3216
  this._isDirty = true;
3048
3217
  };
3218
+ /**
3219
+ * Ensures entities for `layoutBtrId` are queued for convert / already loaded.
3220
+ *
3221
+ * Open-into-paper (`$TILEMODE = 0`) activates the sheet via
3222
+ * {@link AcApDocManager.setActiveLayout} without a `layoutSwitched` event, so
3223
+ * the first-visit loader must be invoked explicitly or the canvas stays blank.
3224
+ *
3225
+ * @param layoutBtrId - Layout block table record id.
3226
+ * @param options.forceIfEmpty - When true, clear a stale `isLoaded` flag if
3227
+ * the scene layout still has no entities so the BTR is scanned again.
3228
+ */
3229
+ AcTrView2d.prototype.ensureLayoutEntitiesLoaded = function (layoutBtrId, options) {
3230
+ if (!layoutBtrId)
3231
+ return;
3232
+ this.ensureLayoutView(layoutBtrId);
3233
+ if (options === null || options === void 0 ? void 0 : options.forceIfEmpty) {
3234
+ var layout = this._scene.layouts.get(layoutBtrId);
3235
+ if (layout &&
3236
+ layout.isLoaded &&
3237
+ layout.entityCount === 0 &&
3238
+ !this._loadingLayouts.has(layoutBtrId)) {
3239
+ layout.isLoaded = false;
3240
+ }
3241
+ }
3242
+ this.loadLayoutEntitiesIfNeeded(layoutBtrId);
3243
+ };
3049
3244
  /**
3050
3245
  * Marks a layout as already framed by an external caller (typically
3051
3246
  * `AcApDocManager.onAfterOpenDocument`, which zooms the startup
@@ -3163,9 +3358,9 @@ var AcTrView2d = /** @class */ (function (_super) {
3163
3358
  }
3164
3359
  // Extents (any layout), or Saved model fallback without *ACTIVE:
3165
3360
  // prefer drawable content; never lead with template model/paper limits.
3166
- return (_b = acapResolveLayoutFrameBox({
3167
- limits: undefined,
3168
- viewportsBox: isModelSpace ? undefined : viewportsBox,
3361
+ return (_b = acapResolveContentFrameBox({
3362
+ isModelSpace: isModelSpace,
3363
+ viewportsBox: viewportsBox,
3169
3364
  layoutExtents: layoutExtents,
3170
3365
  entityBox: entityBox
3171
3366
  })) === null || _b === void 0 ? void 0 : _b.box;
@@ -3196,8 +3391,56 @@ var AcTrView2d = /** @class */ (function (_super) {
3196
3391
  * @inheritdoc
3197
3392
  */
3198
3393
  AcTrView2d.prototype.clear = function () {
3394
+ this._regenCameras.clear();
3395
+ this._lineWeightGeometryReady = false;
3396
+ this.resetScene();
3397
+ };
3398
+ /**
3399
+ * Clears converted content before `database.regen()` while keeping what
3400
+ * the user is looking at.
3401
+ *
3402
+ * Unlike {@link clear}, which is meant for document open / close, every
3403
+ * layout keeps its camera (re-applied when the regen recreates its view)
3404
+ * and already-framed layouts are not auto-zoomed again on their next visit.
3405
+ */
3406
+ AcTrView2d.prototype.clearForRegen = function () {
3407
+ var _this = this;
3408
+ this._layoutViewManager.forEach(function (layoutView) {
3409
+ var camera = layoutView.internalCamera;
3410
+ _this._regenCameras.set(layoutView.layoutBtrId, {
3411
+ center: { x: camera.position.x, y: camera.position.y },
3412
+ zoom: camera.zoom
3413
+ });
3414
+ });
3415
+ var initializedLayouts = new Set(this._initializedLayouts);
3416
+ var openViewMode = this._openViewMode;
3417
+ this.resetScene();
3418
+ this._initializedLayouts = initializedLayouts;
3419
+ this._openViewMode = openViewMode;
3420
+ };
3421
+ /**
3422
+ * Tears down scene content and layout views shared by {@link clear} and
3423
+ * {@link clearForRegen}.
3424
+ */
3425
+ AcTrView2d.prototype.resetScene = function () {
3199
3426
  this.abortConversion();
3427
+ // Scene.clear keeps active/model BTR ids (regen reuses them). Capture
3428
+ // before layouts are dropped so we can rebind cameras afterward.
3429
+ var activeLayoutBtrId = this._scene.activeLayoutBtrId;
3430
+ var modelSpaceBtrId = this._scene.modelSpaceBtrId;
3200
3431
  this._scene.clear();
3432
+ // Layout views hold cameras for prior BTR ids — drop them with the
3433
+ // scene so a later open cannot activate a stale handle. Regen and
3434
+ // same-document clear still need an active layout view, so rebind
3435
+ // empty views for the ids the scene retained.
3436
+ this._layoutViewManager = new AcTrLayoutViewManager();
3437
+ if (activeLayoutBtrId) {
3438
+ this.ensureLayoutView(activeLayoutBtrId);
3439
+ this._layoutViewManager.activeLayoutBtrId = activeLayoutBtrId;
3440
+ }
3441
+ if (modelSpaceBtrId && modelSpaceBtrId !== activeLayoutBtrId) {
3442
+ this.ensureLayoutView(modelSpaceBtrId);
3443
+ }
3201
3444
  // Scene teardown orphans InstancedMeshes — drop singleton slot maps too.
3202
3445
  AcTrMTextRenderer.getInstance().resetMeshGlyphBatch();
3203
3446
  this._renderer.resetDrawOrderZ();
@@ -3229,6 +3472,7 @@ var AcTrView2d = /** @class */ (function (_super) {
3229
3472
  missedImages: this._missedImages,
3230
3473
  missedFonts: this._renderer.snapshotMissedFonts(),
3231
3474
  selectionIds: this.selectionSet.ids,
3475
+ lineWeightGeometryReady: this._lineWeightGeometryReady,
3232
3476
  // Detach so the next document cannot pick/highlight this one's glyphs.
3233
3477
  meshGlyphBatch: AcTrMTextRenderer.getInstance().detachMeshGlyphBatch()
3234
3478
  };
@@ -3239,7 +3483,7 @@ var AcTrView2d = /** @class */ (function (_super) {
3239
3483
  * @param state - Snapshot previously returned by {@link captureSessionState} or {@link beginNewSession}.
3240
3484
  */
3241
3485
  AcTrView2d.prototype.restoreSessionState = function (state) {
3242
- var _a, _b;
3486
+ var _a, _b, _c;
3243
3487
  this._convertEpoch++;
3244
3488
  this.clearFontLoadedRedrawTimer();
3245
3489
  this.clearMeshGlyphFlushTimer();
@@ -3251,6 +3495,7 @@ var AcTrView2d = /** @class */ (function (_super) {
3251
3495
  this._entityConvertGeneration.clear();
3252
3496
  this.resetDeferredGeometryQueue();
3253
3497
  this._entityProcessingIdleAt = 0;
3498
+ this._regenCameras.clear();
3254
3499
  this._scene = state.scene;
3255
3500
  this._layoutViewManager = state.layoutViewManager;
3256
3501
  this._initializedLayouts = state.initializedLayouts;
@@ -3258,7 +3503,8 @@ var AcTrView2d = /** @class */ (function (_super) {
3258
3503
  this._openViewMode = (_a = state.openViewMode) !== null && _a !== void 0 ? _a : AcApOpenViewMode.Extents;
3259
3504
  this._loadingLayouts = state.loadingLayouts;
3260
3505
  this._missedImages = state.missedImages;
3261
- this._renderer.replaceMissedFonts((_b = state.missedFonts) !== null && _b !== void 0 ? _b : {});
3506
+ this._lineWeightGeometryReady = (_b = state.lineWeightGeometryReady) !== null && _b !== void 0 ? _b : false;
3507
+ this._renderer.replaceMissedFonts((_c = state.missedFonts) !== null && _c !== void 0 ? _c : {});
3262
3508
  AcTrMTextRenderer.getInstance().attachMeshGlyphBatch(state.meshGlyphBatch);
3263
3509
  this.rebindLayerAppearance();
3264
3510
  this._layoutViewManager.resize(this.width, this.height);
@@ -3286,6 +3532,8 @@ var AcTrView2d = /** @class */ (function (_super) {
3286
3532
  this._entityConvertGeneration.clear();
3287
3533
  this.resetDeferredGeometryQueue();
3288
3534
  this._entityProcessingIdleAt = 0;
3535
+ this._regenCameras.clear();
3536
+ this._lineWeightGeometryReady = false;
3289
3537
  this._scene = this.createScene();
3290
3538
  this._layoutViewManager = new AcTrLayoutViewManager();
3291
3539
  this._initializedLayouts = new Set();
@@ -3364,6 +3612,17 @@ var AcTrView2d = /** @class */ (function (_super) {
3364
3612
  var active = document.activeElement;
3365
3613
  return active instanceof Node && this.container.contains(active);
3366
3614
  };
3615
+ /**
3616
+ * Appends entities to the convert queue. Not `push(...entities)`: one
3617
+ * commit can carry hundreds of thousands of entities (e.g. a PDF import),
3618
+ * which exceeds the engine's argument limit and throws "Maximum call stack
3619
+ * size exceeded".
3620
+ */
3621
+ AcTrView2d.prototype.enqueueConvert = function (entities) {
3622
+ var queue = this._convertQueue;
3623
+ for (var i = 0; i < entities.length; i++)
3624
+ queue.push(entities[i]);
3625
+ };
3367
3626
  /**
3368
3627
  * Drains the convert queue on a single serial worker so ENTITY flush chunks
3369
3628
  * can enqueue without overlapping multiple {@link batchConvert} runs (which
@@ -3667,7 +3926,7 @@ var AcTrView2d = /** @class */ (function (_super) {
3667
3926
  * view teardown). Safe to call more than once.
3668
3927
  */
3669
3928
  AcTrView2d.prototype.dispose = function () {
3670
- var _a, _b, _c;
3929
+ var _a, _b, _c, _d;
3671
3930
  if (this._viewDisposed)
3672
3931
  return;
3673
3932
  this._viewDisposed = true;
@@ -3695,6 +3954,12 @@ var AcTrView2d = /** @class */ (function (_super) {
3695
3954
  if (this._onLayoutSwitched) {
3696
3955
  acdbHostApplicationServices().layoutManager.events.layoutSwitched.removeEventListener(this._onLayoutSwitched);
3697
3956
  }
3957
+ if (this._onUcsChanged) {
3958
+ AcApUcsService.events.ucsChanged.removeEventListener(this._onUcsChanged);
3959
+ this._onUcsChanged = undefined;
3960
+ }
3961
+ (_d = this._ucsIconOverlay) === null || _d === void 0 ? void 0 : _d.dispose();
3962
+ this._ucsIconOverlay = null;
3698
3963
  if (this._onCommandWillStartHitTest) {
3699
3964
  this.editor.events.commandWillStart.removeEventListener(this._onCommandWillStartHitTest);
3700
3965
  }
@@ -3790,6 +4055,11 @@ var AcTrView2d = /** @class */ (function (_super) {
3790
4055
  _this.events.viewChanged.dispatch();
3791
4056
  _this.clearHover();
3792
4057
  });
4058
+ var regenCamera = this._regenCameras.get(layoutBtrId);
4059
+ if (regenCamera) {
4060
+ this._regenCameras.delete(layoutBtrId);
4061
+ layoutView.flyTo(regenCamera.center, regenCamera.zoom);
4062
+ }
3793
4063
  this._layoutViewManager.add(layoutView);
3794
4064
  }
3795
4065
  // Viewport entities may already have been converted while this view was
@@ -3819,10 +4089,16 @@ var AcTrView2d = /** @class */ (function (_super) {
3819
4089
  * @param layoutBtrId Input the block table record id of the layout
3820
4090
  */
3821
4091
  AcTrView2d.prototype.loadLayoutEntitiesIfNeeded = function (layoutBtrId) {
3822
- var e_14, _a;
4092
+ var e_15, _a;
3823
4093
  var _this = this;
4094
+ var _b, _c, _d;
3824
4095
  try {
3825
- var db = AcApDocManager.instance.curDocument.database;
4096
+ // Prefer tryGetInstance: setActiveLayout used to call this during
4097
+ // createInstance before the singleton was assigned.
4098
+ var db = (_d = (_c = (_b = AcApDocManager.tryGetInstance()) === null || _b === void 0 ? void 0 : _b.curDocument) === null || _c === void 0 ? void 0 : _c.database) !== null && _d !== void 0 ? _d : this._renderer.context.database;
4099
+ if (!db) {
4100
+ return;
4101
+ }
3826
4102
  var blockTableRecord = db.tables.blockTable.getIdAt(layoutBtrId);
3827
4103
  if (!blockTableRecord) {
3828
4104
  return;
@@ -3883,12 +4159,12 @@ var AcTrView2d = /** @class */ (function (_super) {
3883
4159
  entities_2.push(entity);
3884
4160
  }
3885
4161
  }
3886
- catch (e_14_1) { e_14 = { error: e_14_1 }; }
4162
+ catch (e_15_1) { e_15 = { error: e_15_1 }; }
3887
4163
  finally {
3888
4164
  try {
3889
4165
  if (iterator_1_1 && !iterator_1_1.done && (_a = iterator_1.return)) _a.call(iterator_1);
3890
4166
  }
3891
- finally { if (e_14) throw e_14.error; }
4167
+ finally { if (e_15) throw e_15.error; }
3892
4168
  }
3893
4169
  if (entities_2.length === 0) {
3894
4170
  // Empty layout (e.g. a freshly-created paper space tab). Mark as
@@ -3904,21 +4180,20 @@ var AcTrView2d = /** @class */ (function (_super) {
3904
4180
  this._numOfEntitiesToProcess += entities_2.length;
3905
4181
  var convert = function () { return __awaiter(_this, void 0, void 0, function () {
3906
4182
  var layout;
3907
- var _a;
3908
- return __generator(this, function (_b) {
3909
- switch (_b.label) {
4183
+ return __generator(this, function (_a) {
4184
+ switch (_a.label) {
3910
4185
  case 0:
3911
- _b.trys.push([0, , 5, 6]);
4186
+ _a.trys.push([0, , 5, 6]);
3912
4187
  if (!this._progressiveRendering) return [3 /*break*/, 2];
3913
- (_a = this._convertQueue).push.apply(_a, __spreadArray([], __read(entities_2), false));
4188
+ this.enqueueConvert(entities_2);
3914
4189
  return [4 /*yield*/, this.drainConvertQueue()];
3915
4190
  case 1:
3916
- _b.sent();
4191
+ _a.sent();
3917
4192
  return [3 /*break*/, 4];
3918
4193
  case 2: return [4 /*yield*/, this.batchConvert(entities_2)];
3919
4194
  case 3:
3920
- _b.sent();
3921
- _b.label = 4;
4195
+ _a.sent();
4196
+ _a.label = 4;
3922
4197
  case 4:
3923
4198
  layout = this._scene.layouts.get(layoutBtrId);
3924
4199
  if (layout) {
@@ -4231,8 +4506,8 @@ var AcTrView2d = /** @class */ (function (_super) {
4231
4506
  */
4232
4507
  AcTrView2d.prototype.redrawGlyphEntitiesAfterFontLoad = function (epoch, fontName) {
4233
4508
  return __awaiter(this, void 0, void 0, function () {
4234
- var redrawEpoch, glyphs, _a, _b, layout, glyphs_1, glyphs_1_1, glyph, e_15_1, defaults, normalized_1, msSinceIdle, db;
4235
- var e_16, _c, e_15, _d;
4509
+ var redrawEpoch, glyphs, _a, _b, layout, glyphs_1, glyphs_1_1, glyph, e_16_1, defaults, normalized_1, msSinceIdle, db;
4510
+ var e_17, _c, e_16, _d;
4236
4511
  var _e, _f;
4237
4512
  return __generator(this, function (_g) {
4238
4513
  switch (_g.label) {
@@ -4254,12 +4529,12 @@ var AcTrView2d = /** @class */ (function (_super) {
4254
4529
  });
4255
4530
  }
4256
4531
  }
4257
- catch (e_16_1) { e_16 = { error: e_16_1 }; }
4532
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
4258
4533
  finally {
4259
4534
  try {
4260
4535
  if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
4261
4536
  }
4262
- finally { if (e_16) throw e_16.error; }
4537
+ finally { if (e_17) throw e_17.error; }
4263
4538
  }
4264
4539
  _g.label = 1;
4265
4540
  case 1:
@@ -4282,14 +4557,14 @@ var AcTrView2d = /** @class */ (function (_super) {
4282
4557
  return [3 /*break*/, 2];
4283
4558
  case 5: return [3 /*break*/, 8];
4284
4559
  case 6:
4285
- e_15_1 = _g.sent();
4286
- e_15 = { error: e_15_1 };
4560
+ e_16_1 = _g.sent();
4561
+ e_16 = { error: e_16_1 };
4287
4562
  return [3 /*break*/, 8];
4288
4563
  case 7:
4289
4564
  try {
4290
4565
  if (glyphs_1_1 && !glyphs_1_1.done && (_d = glyphs_1.return)) _d.call(glyphs_1);
4291
4566
  }
4292
- finally { if (e_15) throw e_15.error; }
4567
+ finally { if (e_16) throw e_16.error; }
4293
4568
  return [7 /*endfinally*/];
4294
4569
  case 8:
4295
4570
  if (glyphs.length > 0) {
@@ -4340,7 +4615,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4340
4615
  });
4341
4616
  };
4342
4617
  AcTrView2d.prototype.groupHasPendingGlyphGeometry = function (group) {
4343
- var e_17, _a;
4618
+ var e_18, _a;
4344
4619
  try {
4345
4620
  // Prefer O(block-def shells). A full THREE.traverse over a mega-block
4346
4621
  // (100k+ flattened mesh leaves) was dominating scene-convert wall time.
@@ -4351,12 +4626,12 @@ var AcTrView2d = /** @class */ (function (_super) {
4351
4626
  }
4352
4627
  }
4353
4628
  }
4354
- catch (e_17_1) { e_17 = { error: e_17_1 }; }
4629
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
4355
4630
  finally {
4356
4631
  try {
4357
4632
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4358
4633
  }
4359
- finally { if (e_17) throw e_17.error; }
4634
+ finally { if (e_18) throw e_18.error; }
4360
4635
  }
4361
4636
  return AcTrView2d.directChildrenHavePendingGlyphs(group);
4362
4637
  };
@@ -4367,7 +4642,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4367
4642
  * a whole-floor INSERT is O(glyph shells), not O(all drawable leaves).
4368
4643
  */
4369
4644
  AcTrView2d.directChildrenHavePendingGlyphs = function (root) {
4370
- var e_18, _a;
4645
+ var e_19, _a;
4371
4646
  var children = root.children;
4372
4647
  for (var i = 0; i < children.length; i++) {
4373
4648
  var child = children[i];
@@ -4379,7 +4654,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4379
4654
  }
4380
4655
  if (child instanceof AcTrGroup) {
4381
4656
  try {
4382
- for (var _b = (e_18 = void 0, __values(child.getSourceEntities())), _c = _b.next(); !_c.done; _c = _b.next()) {
4657
+ for (var _b = (e_19 = void 0, __values(child.getSourceEntities())), _c = _b.next(); !_c.done; _c = _b.next()) {
4383
4658
  var entity = _c.value;
4384
4659
  if (entity instanceof AcTrGlyphEntity &&
4385
4660
  !entity.hasDrawableGeometry()) {
@@ -4387,12 +4662,12 @@ var AcTrView2d = /** @class */ (function (_super) {
4387
4662
  }
4388
4663
  }
4389
4664
  }
4390
- catch (e_18_1) { e_18 = { error: e_18_1 }; }
4665
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
4391
4666
  finally {
4392
4667
  try {
4393
4668
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4394
4669
  }
4395
- finally { if (e_18) throw e_18.error; }
4670
+ finally { if (e_19) throw e_19.error; }
4396
4671
  }
4397
4672
  if (AcTrView2d.directChildrenHavePendingGlyphs(child)) {
4398
4673
  return true;
@@ -4556,7 +4831,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4556
4831
  * paper layouts.
4557
4832
  */
4558
4833
  AcTrView2d.prototype.ensureViewportViews = function (blockTableRecord, layoutView) {
4559
- var e_19, _a;
4834
+ var e_20, _a;
4560
4835
  var iterator = blockTableRecord.newIterator();
4561
4836
  try {
4562
4837
  for (var iterator_2 = __values(iterator), iterator_2_1 = iterator_2.next(); !iterator_2_1.done; iterator_2_1 = iterator_2.next()) {
@@ -4569,12 +4844,12 @@ var AcTrView2d = /** @class */ (function (_super) {
4569
4844
  layoutView.addViewport(viewportView);
4570
4845
  }
4571
4846
  }
4572
- catch (e_19_1) { e_19 = { error: e_19_1 }; }
4847
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
4573
4848
  finally {
4574
4849
  try {
4575
4850
  if (iterator_2_1 && !iterator_2_1.done && (_a = iterator_2.return)) _a.call(iterator_2);
4576
4851
  }
4577
- finally { if (e_19) throw e_19.error; }
4852
+ finally { if (e_20) throw e_20.error; }
4578
4853
  }
4579
4854
  };
4580
4855
  /**
@@ -4583,7 +4858,7 @@ var AcTrView2d = /** @class */ (function (_super) {
4583
4858
  * {@link AcDbViewport.frozenLayerIds} but omit them from `toGiViewport()`.
4584
4859
  */
4585
4860
  AcTrView2d.prototype.toGiViewportWithFrozenLayers = function (entity) {
4586
- var e_20, _a;
4861
+ var e_21, _a;
4587
4862
  var _b;
4588
4863
  var gi = entity.toGiViewport();
4589
4864
  if (gi.frozenLayers && gi.frozenLayers.length > 0) {
@@ -4603,12 +4878,12 @@ var AcTrView2d = /** @class */ (function (_super) {
4603
4878
  names.push(layer.name);
4604
4879
  }
4605
4880
  }
4606
- catch (e_20_1) { e_20 = { error: e_20_1 }; }
4881
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
4607
4882
  finally {
4608
4883
  try {
4609
4884
  if (ids_1_1 && !ids_1_1.done && (_a = ids_1.return)) _a.call(ids_1);
4610
4885
  }
4611
- finally { if (e_20) throw e_20.error; }
4886
+ finally { if (e_21) throw e_21.error; }
4612
4887
  }
4613
4888
  }
4614
4889
  gi.frozenLayerIds = __spreadArray([], __read(ids), false);
@@ -4928,8 +5203,8 @@ var AcTrView2d = /** @class */ (function (_super) {
4928
5203
  };
4929
5204
  AcTrView2d.prototype.handleGroup = function (group_1, progressive_1) {
4930
5205
  return __awaiter(this, arguments, void 0, function (group, progressive, epoch, convertGen) {
4931
- var t0, objectId, children, objectsGroupByLayer_2, children_1, children_1_1, child, renderContext, groupObjectId, groupLayerName, lazyChildren, groupChildBoxes, aggregateSpatialBbox, registeredChildIndex, yieldToEventLoop, lastGroupYieldAt, _loop_5, this_3, objectsGroupByLayer_1, objectsGroupByLayer_1_1, _a, layerName, objects, e_21_1;
4932
- var e_22, _b, e_21, _c;
5206
+ var t0, objectId, children, objectsGroupByLayer_2, children_1, children_1_1, child, renderContext, groupObjectId, groupLayerName, lazyChildren, groupChildBoxes, aggregateSpatialBbox, registeredChildIndex, yieldToEventLoop, lastGroupYieldAt, _loop_5, this_3, objectsGroupByLayer_1, objectsGroupByLayer_1_1, _a, layerName, objects, e_22_1;
5207
+ var e_23, _b, e_22, _c;
4933
5208
  var _this = this;
4934
5209
  var _d, _e;
4935
5210
  if (epoch === void 0) { epoch = this._convertEpoch; }
@@ -4984,12 +5259,12 @@ var AcTrView2d = /** @class */ (function (_super) {
4984
5259
  child.parent = null;
4985
5260
  }
4986
5261
  }
4987
- catch (e_22_1) { e_22 = { error: e_22_1 }; }
5262
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
4988
5263
  finally {
4989
5264
  try {
4990
5265
  if (children_1_1 && !children_1_1.done && (_b = children_1.return)) _b.call(children_1);
4991
5266
  }
4992
- finally { if (e_22) throw e_22.error; }
5267
+ finally { if (e_23) throw e_23.error; }
4993
5268
  }
4994
5269
  renderContext = group.renderContext;
4995
5270
  groupObjectId = group.objectId;
@@ -5104,14 +5379,14 @@ var AcTrView2d = /** @class */ (function (_super) {
5104
5379
  return [3 /*break*/, 4];
5105
5380
  case 7: return [3 /*break*/, 10];
5106
5381
  case 8:
5107
- e_21_1 = _f.sent();
5108
- e_21 = { error: e_21_1 };
5382
+ e_22_1 = _f.sent();
5383
+ e_22 = { error: e_22_1 };
5109
5384
  return [3 /*break*/, 10];
5110
5385
  case 9:
5111
5386
  try {
5112
5387
  if (objectsGroupByLayer_1_1 && !objectsGroupByLayer_1_1.done && (_c = objectsGroupByLayer_1.return)) _c.call(objectsGroupByLayer_1);
5113
5388
  }
5114
- finally { if (e_21) throw e_21.error; }
5389
+ finally { if (e_22) throw e_22.error; }
5115
5390
  return [7 /*endfinally*/];
5116
5391
  case 10:
5117
5392
  group.dispose();
@@ -5249,7 +5524,7 @@ var AcTrView2d = /** @class */ (function (_super) {
5249
5524
  * Glyphs with no layout owner still follow the active layout.
5250
5525
  */
5251
5526
  AcTrView2d.prototype.resolveMeshGlyphLayerParent = function (layerName, ownerId) {
5252
- var e_23, _a;
5527
+ var e_24, _a;
5253
5528
  var _b, _c, _d;
5254
5529
  var owner = ownerId === null || ownerId === void 0 ? void 0 : ownerId.trim();
5255
5530
  if (owner) {
@@ -5272,12 +5547,12 @@ var AcTrView2d = /** @class */ (function (_super) {
5272
5547
  }
5273
5548
  }
5274
5549
  }
5275
- catch (e_23_1) { e_23 = { error: e_23_1 }; }
5550
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
5276
5551
  finally {
5277
5552
  try {
5278
5553
  if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
5279
5554
  }
5280
- finally { if (e_23) throw e_23.error; }
5555
+ finally { if (e_24) throw e_24.error; }
5281
5556
  }
5282
5557
  return null;
5283
5558
  };