@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
@@ -0,0 +1,890 @@
1
+ import { AcEdCommand as T, eventBus as y, ACAP_PALETTE_NAMED_TAB as k, acuiPrependToolbarLayoutSwitcher as C, acuiRegisterSimpleUiI18n as L, AcApSettingManager as M, acuiNormalizeSimpleUiOptions as U, AcApDocManager as l, AcUiThemeSync as S, AcApPaletteService as w, AcUiI18n as E, AcUiToolbar as O, acapBindToolbarDocState as A, acuiResolveDockMountTarget as g, acuiResolveToolbarMountTarget as R, acuiMergeToolbarOptionsForLayout as F, acuiResolveToolbarItems as v, acuiToolbarItemsIncludeItem as P, AcEdCommandStack as h, AcUiDockPanel as V, AcUiLayerListView as _, AcUiReviewPaletteView as x, AcUiMeasurementPaletteView as B, AcUiFindPaletteView as N, acuiRemoveUiStylesIfUnused as H } from "./cad-simple-viewer.js";
2
+ import { b as f, n as K, x as D } from "./cad-simple-viewer-AcUiFileOpenSession-Bo3U3wCu.js";
3
+ class z extends T {
4
+ /**
5
+ * @param actions - Prepare and open callbacks wired by the plugin.
6
+ */
7
+ constructor(e) {
8
+ super(), this.actions = e;
9
+ }
10
+ /**
11
+ * Ensures the dock panel is ready, then opens the find tab.
12
+ *
13
+ * @param _context - Application context (unused).
14
+ */
15
+ async execute(e) {
16
+ this.actions.prepare(), this.actions.toggle();
17
+ }
18
+ }
19
+ class I {
20
+ /**
21
+ * @param dockPanel - Dock panel hosting the layers tab.
22
+ * @param layersTabId - Tab id registered for the layer list.
23
+ */
24
+ constructor(e, t = "layers") {
25
+ this.dockPanel = e, this.layersTabId = t, this.handleCloseLayerManager = () => {
26
+ this.hide();
27
+ }, y.on("close-layer-manager", this.handleCloseLayerManager);
28
+ }
29
+ /** Opens the dock panel and activates the layers tab. */
30
+ toggleFromCommand() {
31
+ this.dockPanel.hasTab(this.layersTabId) && this.dockPanel.open(this.layersTabId);
32
+ }
33
+ /** Closes the dock panel. */
34
+ hide() {
35
+ this.dockPanel.close();
36
+ }
37
+ /** Refreshes dock panel locale (including tab labels). */
38
+ refreshLocale() {
39
+ this.dockPanel.refreshLocale();
40
+ }
41
+ /** Removes event listeners. */
42
+ destroy() {
43
+ y.off("close-layer-manager", this.handleCloseLayerManager);
44
+ }
45
+ }
46
+ class G {
47
+ toggleFromCommand() {
48
+ var e;
49
+ (e = this.current) == null || e.toggleFromCommand();
50
+ }
51
+ hide() {
52
+ var e;
53
+ (e = this.current) == null || e.hide();
54
+ }
55
+ refreshLocale() {
56
+ var e;
57
+ (e = this.current) == null || e.refreshLocale();
58
+ }
59
+ }
60
+ class Y extends T {
61
+ /**
62
+ * @param actions - Prepare and toggle callbacks wired by the plugin.
63
+ */
64
+ constructor(e) {
65
+ super(), this.actions = e;
66
+ }
67
+ /**
68
+ * Ensures the dock panel is ready, then opens or focuses the layers tab.
69
+ *
70
+ * @param _context - Application context (unused).
71
+ */
72
+ async execute(e) {
73
+ this.actions.prepare(), this.actions.toggle();
74
+ }
75
+ }
76
+ class W extends T {
77
+ /**
78
+ * @param actions - Prepare and open callbacks wired by the plugin.
79
+ */
80
+ constructor(e) {
81
+ super(), this.actions = e;
82
+ }
83
+ /**
84
+ * Ensures the dock panel is ready, then opens or focuses the review tab.
85
+ *
86
+ * @param _context - Application context (unused).
87
+ */
88
+ async execute(e) {
89
+ this.actions.prepare(), this.actions.toggle();
90
+ }
91
+ }
92
+ class $ extends T {
93
+ /**
94
+ * @param actions - Prepare and open callbacks wired by the plugin.
95
+ */
96
+ constructor(e) {
97
+ super(), this.actions = e;
98
+ }
99
+ /**
100
+ * Ensures the dock panel is ready, then opens or focuses the measurements tab.
101
+ *
102
+ * @param _context - Application context (unused).
103
+ */
104
+ async execute(e) {
105
+ this.actions.prepare(), this.actions.toggle();
106
+ }
107
+ }
108
+ const d = "layers", c = "review", u = "measurements", m = "find";
109
+ class J {
110
+ /**
111
+ * @param options - Toolbar, layer manager, dock panel, and host configuration.
112
+ */
113
+ constructor(e = {}) {
114
+ this.options = e, this.layerUiControllerHolder = new G(), this.baseToolbarItems = [], this.toolbarItemsInput = "default", this.toolbarItemsOverridden = !1, this.hasLayerToolbarItem = !1, this.hasMarkupPanelToolbarItem = !1, this.hasMeasurementPanelToolbarItem = !1, this.hasFindToolbarItem = !1, this.dockPanelExplicitlyEnabled = !1, this.toolbarPlacement = "right", this.toolbarCollapsible = !1, this.toolbarEdgeOffset = 8, this.toolbarSideOffset = 0, this.toolbarInCanvasParent = !1, this.toolbarShowLabels = !1, this.toolbarShowChildrenIndicator = !0, this.toolbarShowBorder = !0, this.toolbarShowButtonBorder = !1, this.toolbarShowSeparators = !0, this.toolbarSize = "auto", this.toolbarOverflow = "menu", this.layoutMode = "auto", this.activeLayoutKind = "desktop", this.registeredCommands = [], this.handleLocaleChanged = () => {
115
+ var t, o, a, r, s, i;
116
+ this.rebuildToolbarItems(this.activeLayoutKind), (t = this.toolbar) == null || t.setSelectedChild("locale", `locale-${f.currentLocale}`), (o = this.layerListView) == null || o.refreshLocale(), (a = this.reviewPaletteView) == null || a.refreshLocale(), (r = this.measurementPaletteView) == null || r.refreshLocale(), (s = this.findPaletteView) == null || s.refreshLocale(), (i = this.dockPanel) == null || i.refreshLocale(), this.toolbar && (this.toolbar.updateItems(this.baseToolbarItems), this.toolbar.refreshLocale());
117
+ }, this.handleDocumentActivatedForDock = () => {
118
+ var t, o;
119
+ this.hasLayerToolbarItem && this.mountLayerDockUi(), this.hasMarkupPanelToolbarItem && this.mountReviewDockUi(), this.hasMeasurementPanelToolbarItem && this.mountMeasurementDockUi(), this.hasFindToolbarItem && this.mountFindDockUi(), this.tryUpgradeDockMountTarget(), (t = this.dockPanel) == null || t.ensureMounted(), this.ensureViewerToolbar(), this.tryUpgradeToolbarMountTarget(), (o = this.toolbar) == null || o.syncInParentLayout();
120
+ }, this.paletteHost = {
121
+ show: (t, o) => {
122
+ this.ensureDockReady();
123
+ const a = this.dockPanel;
124
+ if (!a) return;
125
+ const r = `hosted-${t.id}`, s = a.isOpen, i = a.activeTab;
126
+ if (a.removeTab(r), !a.addTab({
127
+ id: r,
128
+ label: t.title,
129
+ content: t.element
130
+ }))
131
+ return;
132
+ a.open(r);
133
+ const n = a.addCloseListener(o);
134
+ return {
135
+ close: () => {
136
+ n(), a.removeTab(r), s ? i && i !== r && a.open(i) : a.close();
137
+ }
138
+ };
139
+ },
140
+ openNamedTab: (t) => {
141
+ var o, a, r, s, i, n, p;
142
+ switch (t) {
143
+ case k.layers:
144
+ return this.prepareLayerDockForCommand(), this.layerUiControllerHolder.toggleFromCommand(), ((o = this.dockPanel) == null ? void 0 : o.hasTab(d)) ?? !1;
145
+ case k.review:
146
+ return this.prepareReviewDockForCommand(), (a = this.dockPanel) == null || a.open(c), ((r = this.dockPanel) == null ? void 0 : r.hasTab(c)) ?? !1;
147
+ case k.measurements:
148
+ return this.prepareMeasurementDockForCommand(), (s = this.dockPanel) == null || s.open(u), ((i = this.dockPanel) == null ? void 0 : i.hasTab(u)) ?? !1;
149
+ case k.find:
150
+ return this.mountFindDockUi(), this.tryUpgradeDockMountTarget(), (n = this.dockPanel) != null && n.hasTab(m) ? (this.dockPanel.open(m), (p = this.findPaletteView) == null || p.focus(), !0) : !1;
151
+ default:
152
+ return !1;
153
+ }
154
+ }
155
+ };
156
+ }
157
+ /**
158
+ * Adds a tab to the dock panel and opens it.
159
+ * Creates the dock panel container when it does not exist yet.
160
+ *
161
+ * @param tab - Tab definition.
162
+ * @returns Whether the tab was added.
163
+ */
164
+ addDockPanelTab(e) {
165
+ return !e.labelKey && !e.label || (this.ensureDockReady(), !this.dockPanel) || !this.dockPanel.addTab(e) ? !1 : (this.dockPanel.open(e.id), !0);
166
+ }
167
+ /** Whether the dock panel is open. */
168
+ isDockPanelOpen() {
169
+ var e;
170
+ return ((e = this.dockPanel) == null ? void 0 : e.isOpen) ?? !1;
171
+ }
172
+ /** Whether a dock panel tab with the given id is registered. */
173
+ hasDockPanelTab(e) {
174
+ var t;
175
+ return ((t = this.dockPanel) == null ? void 0 : t.hasTab(e)) ?? !1;
176
+ }
177
+ /**
178
+ * Opens the dock panel and activates a tab, or closes the panel when that tab
179
+ * is already active.
180
+ *
181
+ * @param tabId - Tab to toggle.
182
+ * @returns `true` when applied; `false` when the tab or dock panel is unavailable.
183
+ */
184
+ toggleDockPanelTab(e) {
185
+ var t;
186
+ return !((t = this.dockPanel) != null && t.hasTab(e)) || (this.ensureDockReady(), !this.dockPanel) ? !1 : (this.dockPanel.toggle(e), !0);
187
+ }
188
+ /**
189
+ * Opens or closes the dock panel.
190
+ *
191
+ * @param open - Target open state.
192
+ * @returns `true` when applied; `false` when the dock panel is unavailable.
193
+ */
194
+ setDockPanelOpen(e) {
195
+ return e ? (this.ensureDockReady(), this.dockPanel ? (this.dockPanel.open(), !0) : (console.warn(
196
+ "[SimpleUiChrome] setDockPanelOpen skipped: dock panel is unavailable."
197
+ ), !1)) : (this.dockPanel && this.dockPanel.close(), !0);
198
+ }
199
+ /** Returns the dock panel side, if the dock panel exists. */
200
+ getDockPanelSide() {
201
+ var e;
202
+ return (e = this.dockPanel) == null ? void 0 : e.getSide();
203
+ }
204
+ /** Returns the dock panel size in px, if the dock panel exists. */
205
+ getDockPanelSize() {
206
+ var e;
207
+ return (e = this.dockPanel) == null ? void 0 : e.getSize();
208
+ }
209
+ /**
210
+ * Sets the dock panel width or height in px.
211
+ *
212
+ * @param size - Target size in px.
213
+ * @returns `true` when applied; `false` when the dock panel is unavailable.
214
+ */
215
+ setDockPanelSize(e) {
216
+ return this.ensureDockReady(), this.dockPanel ? (this.dockPanel.setPanelSize(e), !0) : (console.warn(
217
+ "[SimpleUiChrome] setDockPanelSize skipped: dock panel is unavailable."
218
+ ), !1);
219
+ }
220
+ /** Returns the toolbar item configuration last passed to {@link setToolbarItems}. */
221
+ getToolbarItems() {
222
+ return this.toolbarItemsInput;
223
+ }
224
+ /**
225
+ * Replaces the entire toolbar item list at runtime.
226
+ *
227
+ * Unlike `toolbar.appendItems`, this replaces the full `items` collection.
228
+ * Preset references and `'default'` are resolved using the same rules as
229
+ * initial plugin load. Subsequent {@link setLayout} / auto viewport switches
230
+ * keep this list and only update toolbar chrome.
231
+ *
232
+ * @param items - Full toolbar layout definition.
233
+ * @param layoutSwitcher - Optional layout submenu button prepended before `items`.
234
+ */
235
+ setToolbarItems(e, t) {
236
+ if (!this.toolbar) return;
237
+ this.toolbarItemsOverridden = !0, this.toolbarLayoutSwitcher = t, this.toolbarItemsInput = e;
238
+ const o = this.resolveBaseToolbarItems(e);
239
+ this.baseToolbarItems = t ? C(o, t) : o, this.syncLayerToolbarItem(), this.syncReviewToolbarItem(), this.syncMeasurementToolbarItem(), this.syncFindToolbarItem(), this.renderToolbarItems();
240
+ }
241
+ /** Returns the viewer toolbar edge placement. */
242
+ getToolbarPlacement() {
243
+ return this.toolbarPlacement;
244
+ }
245
+ /**
246
+ * Moves the viewer toolbar to another host edge.
247
+ *
248
+ * @param placement - Target edge placement.
249
+ * @returns `true` when applied; `false` when the toolbar is unavailable.
250
+ */
251
+ setToolbarPlacement(e) {
252
+ return this.toolbar ? (this.applyToolbarPlacement(e), !0) : (console.warn(
253
+ "[SimpleUiChrome] setToolbarPlacement skipped: toolbar is unavailable."
254
+ ), !1);
255
+ }
256
+ /** Whether the viewer toolbar is visible. */
257
+ isToolbarVisible() {
258
+ var e;
259
+ return ((e = this.toolbar) == null ? void 0 : e.isVisible) ?? !1;
260
+ }
261
+ /**
262
+ * Shows or hides the viewer toolbar.
263
+ *
264
+ * @param visible - Target visibility.
265
+ * @returns `true` when applied; `false` when the toolbar is unavailable.
266
+ */
267
+ setToolbarVisible(e) {
268
+ var t;
269
+ return this.toolbar ? (this.toolbar.setVisible(e), e || (t = this.dockPanel) == null || t.close(), !0) : (console.warn(
270
+ "[SimpleUiChrome] setToolbarVisible skipped: toolbar is unavailable."
271
+ ), !1);
272
+ }
273
+ /** Whether the viewer toolbar is collapsed to its toggle button. */
274
+ isToolbarCollapsed() {
275
+ var e;
276
+ return ((e = this.toolbar) == null ? void 0 : e.isCollapsed) ?? !1;
277
+ }
278
+ /**
279
+ * Collapses or expands the viewer toolbar when {@link toolbar.collapsible} is enabled.
280
+ *
281
+ * @param collapsed - Target collapsed state.
282
+ * @returns `true` when applied; `false` when the toolbar is unavailable or not collapsible.
283
+ */
284
+ setToolbarCollapsed(e) {
285
+ return this.toolbar ? this.toolbarCollapsible ? (this.toolbar.setCollapsed(e), !0) : (console.warn(
286
+ "[SimpleUiChrome] setToolbarCollapsed skipped: toolbar is not collapsible."
287
+ ), !1) : (console.warn(
288
+ "[SimpleUiChrome] setToolbarCollapsed skipped: toolbar is unavailable."
289
+ ), !1);
290
+ }
291
+ /** Returns the viewer toolbar inset from the canvas edge in px. */
292
+ getToolbarEdgeOffset() {
293
+ var e;
294
+ return ((e = this.toolbar) == null ? void 0 : e.getEdgeOffset()) ?? this.toolbarEdgeOffset;
295
+ }
296
+ /** Returns the active UI layout kind (`phone`, `pad`, or `desktop`). */
297
+ getLayout() {
298
+ return this.activeLayoutKind;
299
+ }
300
+ /**
301
+ * Sets layout mode and reapplies toolbar chrome for the target kind.
302
+ *
303
+ * When `mode` is `'auto'`, subscribes to viewport media queries via
304
+ * {@link acedSubscribeUiLayout} and switches toolbar configuration when
305
+ * {@link acedGetUiLayout} changes. Forced modes stop auto subscription.
306
+ *
307
+ * @param mode - `'auto'` or a fixed {@link AcEdUiLayoutKind}.
308
+ * @returns `true` when the mode was stored or applied; `false` when the
309
+ * toolbar is unavailable and the mode could not be applied (except when only
310
+ * updating stored mode before toolbar creation).
311
+ */
312
+ setLayout(e) {
313
+ var t;
314
+ return !this.toolbar && e !== this.layoutMode ? (this.layoutMode = e, !0) : this.toolbar ? (this.layoutMode = e, (t = this.unsubscribeLayout) == null || t.call(this), this.unsubscribeLayout = void 0, e === "auto" ? (this.unsubscribeLayout = K((o) => {
315
+ o !== this.activeLayoutKind && this.applyLayoutKind(o);
316
+ }), this.applyLayoutKind(D())) : this.applyLayoutKind(e), !0) : !1;
317
+ }
318
+ /**
319
+ * Sets the viewer toolbar inset from the canvas edge.
320
+ *
321
+ * @param offset - Distance in px (clamped to >= 0).
322
+ * @returns `true` when applied; `false` when the toolbar is unavailable.
323
+ */
324
+ setToolbarEdgeOffset(e) {
325
+ return this.toolbar ? (this.toolbarEdgeOffset = Math.max(0, e), this.toolbar.setEdgeOffset(this.toolbarEdgeOffset), !0) : (console.warn(
326
+ "[SimpleUiChrome] setToolbarEdgeOffset skipped: toolbar is unavailable."
327
+ ), !1);
328
+ }
329
+ /**
330
+ * Creates UI components, registers commands, and starts theme sync.
331
+ *
332
+ * @param commandManager - Command stack used to register UI commands.
333
+ */
334
+ start(e) {
335
+ var s, i, n;
336
+ L(), this.commandManager = e, M.instance.set("isShowRibbon", !1, { persist: !1 });
337
+ const t = U(this.options), o = t.host ?? ((s = l.instance.curView) == null ? void 0 : s.container) ?? document.body;
338
+ this.hostEl = o, this.dockPanelMountTargetOption = (i = this.options.dockPanel) == null ? void 0 : i.mountTarget, this.toolbarMountTargetOption = (n = this.options.toolbar) == null ? void 0 : n.mountTarget, this.layoutMode = t.layout, this.dockPanelExplicitlyEnabled = t.dockPanel.enabled === !0, this.dockPanelDefaults = {
339
+ defaultOpen: t.dockPanel.defaultOpen ?? !1,
340
+ defaultSide: t.dockPanel.defaultSide ?? "left",
341
+ defaultHeight: t.dockPanel.defaultHeight ?? 240,
342
+ defaultWidth: t.dockPanel.defaultWidth ?? 280
343
+ }, this.themeSync = new S(o, () => {
344
+ var p;
345
+ return (p = this.toolbar) == null ? void 0 : p.refresh();
346
+ }), this.themeSync.start(), w.setHost(this.paletteHost), this.i18n = new E(), f.events.localeChanged.addEventListener(this.handleLocaleChanged), l.instance.events.documentActivated.addEventListener(
347
+ this.handleDocumentActivatedForDock
348
+ );
349
+ const a = this.layoutMode === "auto" ? D() : this.layoutMode, r = this.isViewerToolbarEnabled();
350
+ this.applyLayoutKind(a, { skipToolbarApply: !r }), t.shouldCreateDockPanel && this.ensureDockPanel(), this.hasLayerToolbarItem && (this.mountLayerDockUi(), this.ensureLayerCommandRegistered()), this.hasMarkupPanelToolbarItem && (this.mountReviewDockUi(), this.ensureMarkupPanelCommandRegistered()), this.hasMeasurementPanelToolbarItem && (this.mountMeasurementDockUi(), this.ensureMeasurementPanelCommandRegistered()), this.hasFindToolbarItem && (this.mountFindDockUi(), this.ensureFindCommandRegistered()), this.ensureViewerToolbar(o);
351
+ }
352
+ /** Whether viewer toolbar creation is allowed (only explicit `false` disables). */
353
+ isViewerToolbarEnabled() {
354
+ var e;
355
+ return ((e = this.options.toolbar) == null ? void 0 : e.enabled) !== !1;
356
+ }
357
+ /**
358
+ * Creates the floating toolbar when enabled and not already present.
359
+ *
360
+ * @param host - Plugin theme host; defaults to {@link hostEl}.
361
+ */
362
+ ensureViewerToolbar(e) {
363
+ var r;
364
+ if (!this.isViewerToolbarEnabled())
365
+ return;
366
+ if (this.toolbar) {
367
+ if (this.toolbar.isRootConnected())
368
+ return;
369
+ (r = this.toolbarDocUnbind) == null || r.call(this), this.toolbarDocUnbind = void 0, this.toolbar.destroy(), this.toolbar = void 0, this.toolbarMountEl = void 0;
370
+ }
371
+ const t = e ?? this.hostEl;
372
+ if (!t || !this.i18n)
373
+ return;
374
+ const o = this.getToolbarMountEl() ?? t;
375
+ this.toolbarMountEl = o;
376
+ const a = this.getMergedToolbarOptions(this.activeLayoutKind);
377
+ try {
378
+ this.toolbar = new O({
379
+ host: o,
380
+ themeHost: t,
381
+ placement: this.toolbarPlacement,
382
+ edgeOffset: this.toolbarEdgeOffset,
383
+ sideOffset: this.toolbarSideOffset,
384
+ items: this.baseToolbarItems,
385
+ i18n: this.i18n,
386
+ collapsible: this.toolbarCollapsible,
387
+ defaultCollapsed: a.defaultCollapsed,
388
+ showLabels: this.toolbarShowLabels,
389
+ showChildrenIndicator: this.toolbarShowChildrenIndicator,
390
+ size: this.toolbarSize,
391
+ overflow: this.toolbarOverflow,
392
+ showBorder: this.toolbarShowBorder,
393
+ showButtonBorder: this.toolbarShowButtonBorder,
394
+ showSeparators: this.toolbarShowSeparators,
395
+ inCanvasParent: this.toolbarInCanvasParent,
396
+ subToolbar: this.toolbarSubToolbar,
397
+ onCollapse: () => {
398
+ var s;
399
+ (s = this.dockPanel) == null || s.close();
400
+ },
401
+ onExclusiveOpen: () => this.dismissDockForExclusiveChrome(),
402
+ onCommand: (s) => {
403
+ l.instance.sendStringToExecute(s);
404
+ }
405
+ }), this.toolbarDocUnbind = A(this.toolbar);
406
+ } catch (s) {
407
+ console.error("[SimpleUiChrome] Failed to create viewer toolbar:", s);
408
+ return;
409
+ }
410
+ try {
411
+ this.setLayout(this.layoutMode);
412
+ } catch (s) {
413
+ console.warn("[SimpleUiChrome] setLayout failed during toolbar setup:", s);
414
+ }
415
+ }
416
+ /** Resolves the canvas element that receives the viewer toolbar. */
417
+ getToolbarMountEl() {
418
+ if (this.hostEl)
419
+ return this.toolbarInCanvasParent ? g(
420
+ this.hostEl,
421
+ this.toolbarMountTargetOption
422
+ ) : R(
423
+ this.hostEl,
424
+ this.toolbarMountTargetOption
425
+ );
426
+ }
427
+ /**
428
+ * Moves the toolbar from a host or inner-canvas fallback to the preferred
429
+ * mount (typically the canvas parent) once the view is available.
430
+ */
431
+ tryUpgradeToolbarMountTarget() {
432
+ var a;
433
+ if (this.toolbarMountTargetOption || !this.hostEl || !this.toolbar)
434
+ return;
435
+ const e = this.getToolbarMountEl();
436
+ if (!e || e === this.toolbarMountEl)
437
+ return;
438
+ const t = (a = l.instance.curView) == null ? void 0 : a.container, o = t == null ? void 0 : t.parentElement;
439
+ this.toolbarMountEl !== this.hostEl && this.toolbarMountEl !== t && this.toolbarMountEl !== o || (this.toolbar.reparentTo(e), this.toolbarMountEl = e, this.toolbar.syncInParentLayout());
440
+ }
441
+ /**
442
+ * Merges built-in, top-level, and per-layout toolbar options for a kind.
443
+ *
444
+ * @param kind - Layout kind to resolve options for.
445
+ * @returns Merged {@link AcUiToolbarOptions} used by {@link applyLayoutKind}.
446
+ */
447
+ getMergedToolbarOptions(e) {
448
+ var t, o;
449
+ return F(
450
+ e,
451
+ this.options.toolbar,
452
+ (o = (t = this.options.layouts) == null ? void 0 : t[e]) == null ? void 0 : o.toolbar
453
+ );
454
+ }
455
+ /**
456
+ * Applies toolbar configuration for a layout kind and refreshes dock wiring.
457
+ *
458
+ * Chrome always comes from merged layout options. Item lists come from those
459
+ * options unless {@link setToolbarItems} has replaced them at runtime.
460
+ *
461
+ * @param kind - Target layout kind.
462
+ * @param options - When `skipToolbarApply` is true, only updates resolved state.
463
+ */
464
+ applyLayoutKind(e, t) {
465
+ this.activeLayoutKind = e;
466
+ const o = this.getMergedToolbarOptions(e);
467
+ this.toolbarPlacement = o.placement ?? "right", this.toolbarCollapsible = o.collapsible ?? !1, this.toolbarEdgeOffset = o.edgeOffset ?? 8, this.toolbarSideOffset = o.sideOffset ?? 0, this.toolbarShowLabels = o.showLabels ?? !1, this.toolbarShowChildrenIndicator = o.showChildrenIndicator ?? !0, this.toolbarShowBorder = o.showBorder ?? !0, this.toolbarShowButtonBorder = o.showButtonBorder ?? !1, this.toolbarShowSeparators = o.showSeparators ?? !0, this.toolbarSize = o.size ?? "auto", this.toolbarOverflow = o.overflow ?? "menu", this.toolbarSubToolbar = o.subToolbar;
468
+ const a = o.inCanvasParent === !0, r = a !== this.toolbarInCanvasParent;
469
+ if (this.toolbarInCanvasParent = a, this.rebuildToolbarItems(e, o), this.syncLayerToolbarItem(), this.syncReviewToolbarItem(), this.syncMeasurementToolbarItem(), this.syncFindToolbarItem(), !(t != null && t.skipToolbarApply || !this.toolbar)) {
470
+ if (this.toolbar.applyViewOptions({
471
+ placement: this.toolbarPlacement,
472
+ edgeOffset: this.toolbarEdgeOffset,
473
+ sideOffset: this.toolbarSideOffset,
474
+ collapsible: this.toolbarCollapsible,
475
+ defaultCollapsed: o.defaultCollapsed,
476
+ showLabels: this.toolbarShowLabels,
477
+ showChildrenIndicator: this.toolbarShowChildrenIndicator,
478
+ size: this.toolbarSize,
479
+ overflow: this.toolbarOverflow,
480
+ showBorder: this.toolbarShowBorder,
481
+ showButtonBorder: this.toolbarShowButtonBorder,
482
+ showSeparators: this.toolbarShowSeparators,
483
+ subToolbar: this.toolbarSubToolbar,
484
+ inCanvasParent: this.toolbarInCanvasParent,
485
+ items: this.baseToolbarItems
486
+ }), r || !this.toolbar.isRootConnected()) {
487
+ const s = this.getToolbarMountEl();
488
+ s && (this.toolbar.reparentTo(s), this.toolbarMountEl = s);
489
+ }
490
+ this.toolbar.syncInParentLayout();
491
+ }
492
+ }
493
+ /** Context passed when resolving default toolbar presets. */
494
+ getToolbarContext() {
495
+ return {
496
+ getTheme: () => {
497
+ var e;
498
+ return ((e = this.themeSync) == null ? void 0 : e.getTheme()) ?? "dark";
499
+ },
500
+ setTheme: (e) => {
501
+ var t;
502
+ return (t = this.themeSync) == null ? void 0 : t.setTheme(e);
503
+ },
504
+ getLocale: () => f.currentLocale,
505
+ setLocale: (e) => this.setLocale(e),
506
+ getPlacement: () => this.toolbarPlacement,
507
+ setPlacement: (e) => {
508
+ this.applyToolbarPlacement(e);
509
+ }
510
+ };
511
+ }
512
+ /**
513
+ * Resolves {@link baseToolbarItems} from a runtime override or layout options.
514
+ *
515
+ * @param kind - Layout kind used for `'default'` and preset expansion.
516
+ * @param toolbarOpts - Merged options for `kind`; fetched when omitted.
517
+ */
518
+ rebuildToolbarItems(e, t) {
519
+ if (this.toolbarItemsOverridden) {
520
+ const a = this.resolveBaseToolbarItems(this.toolbarItemsInput);
521
+ this.baseToolbarItems = this.toolbarLayoutSwitcher ? C(a, this.toolbarLayoutSwitcher) : a;
522
+ return;
523
+ }
524
+ const o = t ?? this.getMergedToolbarOptions(e);
525
+ this.toolbarItemsInput = o.items ?? "default", this.baseToolbarItems = v(
526
+ o,
527
+ this.getToolbarContext(),
528
+ e
529
+ );
530
+ }
531
+ /** Resolves raw toolbar input into concrete toolbar items. */
532
+ resolveBaseToolbarItems(e) {
533
+ return v(
534
+ {
535
+ items: e,
536
+ appendItems: void 0
537
+ },
538
+ this.getToolbarContext(),
539
+ this.activeLayoutKind
540
+ );
541
+ }
542
+ /** Applies {@link baseToolbarItems} to the toolbar. */
543
+ renderToolbarItems() {
544
+ var e;
545
+ (e = this.toolbar) == null || e.updateItems(this.baseToolbarItems);
546
+ }
547
+ /** Mounts or tears down layer UI when the layer toolbar button is added or removed. */
548
+ syncLayerToolbarItem() {
549
+ const e = this.hasLayerToolbarItem, t = P(this.baseToolbarItems, "layer");
550
+ this.hasLayerToolbarItem = t, t && !e ? (this.ensureLayerCommandRegistered(), this.mountLayerDockUi()) : !t && e && (this.teardownLayerUi(), this.unregisterLayerCommand());
551
+ }
552
+ /** Mounts or tears down review UI when the markup panel button is added or removed. */
553
+ syncReviewToolbarItem() {
554
+ const e = this.hasMarkupPanelToolbarItem, t = P(
555
+ this.baseToolbarItems,
556
+ "markup-panel"
557
+ );
558
+ this.hasMarkupPanelToolbarItem = t, t && !e ? (this.ensureMarkupPanelCommandRegistered(), this.mountReviewDockUi()) : !t && e && (this.teardownReviewUi(), this.unregisterMarkupPanelCommand());
559
+ }
560
+ /** Mounts or tears down measurement UI when the panel button is added or removed. */
561
+ syncMeasurementToolbarItem() {
562
+ const e = this.hasMeasurementPanelToolbarItem, t = P(
563
+ this.baseToolbarItems,
564
+ "measurement-panel"
565
+ );
566
+ this.hasMeasurementPanelToolbarItem = t, t && !e ? (this.ensureMeasurementPanelCommandRegistered(), this.mountMeasurementDockUi()) : !t && e && (this.teardownMeasurementUi(), this.unregisterMeasurementPanelCommand());
567
+ }
568
+ /** Mounts or tears down find UI when the find toolbar button is added or removed. */
569
+ syncFindToolbarItem() {
570
+ const e = this.hasFindToolbarItem, t = P(this.baseToolbarItems, "find");
571
+ this.hasFindToolbarItem = t, t && !e ? (this.ensureFindCommandRegistered(), this.mountFindDockUi()) : !t && e && (this.teardownFindUi(), this.unregisterFindCommand());
572
+ }
573
+ /** Removes the `layer` command when the layer toolbar button is removed at runtime. */
574
+ unregisterLayerCommand() {
575
+ if (!this.commandManager) return;
576
+ const e = h.SYSTEMT_COMMAND_GROUP_NAME, t = this.registeredCommands.findIndex((o) => o.name === "layer");
577
+ t !== -1 && (this.commandManager.removeCmd(e, "layer"), this.registeredCommands.splice(t, 1));
578
+ }
579
+ /** Registers the `layer` command when a layer button appears at runtime. */
580
+ ensureLayerCommandRegistered() {
581
+ this.commandManager && (this.registeredCommands.some((e) => e.name === "layer") || this.registerLayerCommand(this.commandManager));
582
+ }
583
+ /** Removes the `markuppanel` command when the review toolbar button is removed. */
584
+ unregisterMarkupPanelCommand() {
585
+ if (!this.commandManager) return;
586
+ const e = h.SYSTEMT_COMMAND_GROUP_NAME, t = this.registeredCommands.findIndex(
587
+ (o) => o.name === "markuppanel"
588
+ );
589
+ t !== -1 && (this.commandManager.removeCmd(e, "markuppanel"), this.registeredCommands.splice(t, 1));
590
+ }
591
+ /** Registers the `markuppanel` command when a review button appears at runtime. */
592
+ ensureMarkupPanelCommandRegistered() {
593
+ this.commandManager && (this.registeredCommands.some((e) => e.name === "markuppanel") || this.registerMarkupPanelCommand(this.commandManager));
594
+ }
595
+ /** Removes the `measurementpanel` command when the measurement panel button is removed. */
596
+ unregisterMeasurementPanelCommand() {
597
+ if (!this.commandManager) return;
598
+ const e = h.SYSTEMT_COMMAND_GROUP_NAME, t = this.registeredCommands.findIndex(
599
+ (o) => o.name === "measurementpanel"
600
+ );
601
+ t !== -1 && (this.commandManager.removeCmd(e, "measurementpanel"), this.registeredCommands.splice(t, 1));
602
+ }
603
+ /** Registers the `measurementpanel` command when a panel button appears at runtime. */
604
+ ensureMeasurementPanelCommandRegistered() {
605
+ this.commandManager && (this.registeredCommands.some((e) => e.name === "measurementpanel") || this.registerMeasurementPanelCommand(this.commandManager));
606
+ }
607
+ /** Removes the `find` command when the find toolbar button is removed. */
608
+ unregisterFindCommand() {
609
+ if (!this.commandManager) return;
610
+ const e = h.SYSTEMT_COMMAND_GROUP_NAME, t = this.registeredCommands.findIndex((o) => o.name === "find");
611
+ t !== -1 && (this.commandManager.removeCmd(e, "find"), this.registeredCommands.splice(t, 1));
612
+ }
613
+ /** Registers the `find` command when a find button appears at runtime. */
614
+ ensureFindCommandRegistered() {
615
+ if (!this.commandManager || this.registeredCommands.some((t) => t.name === "find")) return;
616
+ const e = h.SYSTEMT_COMMAND_GROUP_NAME;
617
+ this.commandManager.addCommand(
618
+ e,
619
+ "find",
620
+ "find",
621
+ new z({
622
+ prepare: () => {
623
+ this.mountFindDockUi(), this.tryUpgradeDockMountTarget();
624
+ },
625
+ toggle: () => {
626
+ var t, o;
627
+ (t = this.dockPanel) == null || t.open(m), (o = this.findPaletteView) == null || o.focus();
628
+ }
629
+ })
630
+ ), this.registeredCommands.push({ group: e, name: "find" });
631
+ }
632
+ /** Registers the `layer` command with dock preparation wired in. */
633
+ registerLayerCommand(e) {
634
+ if (this.registeredCommands.some((o) => o.name === "layer")) return;
635
+ const t = h.SYSTEMT_COMMAND_GROUP_NAME;
636
+ e.addCommand(
637
+ t,
638
+ "layer",
639
+ "layer",
640
+ this.createLayerCommand()
641
+ ), this.registeredCommands.push({ group: t, name: "layer" });
642
+ }
643
+ /** Creates the `layer` command that prepares the dock panel before opening layers. */
644
+ createLayerCommand() {
645
+ return new Y({
646
+ prepare: () => this.prepareLayerDockForCommand(),
647
+ toggle: () => this.layerUiControllerHolder.toggleFromCommand()
648
+ });
649
+ }
650
+ /** Ensures the dock panel and layers tab exist for the `layer` command. */
651
+ prepareLayerDockForCommand() {
652
+ this.mountLayerDockUi(), this.tryUpgradeDockMountTarget();
653
+ }
654
+ /** Registers the `markuppanel` command with dock preparation wired in. */
655
+ registerMarkupPanelCommand(e) {
656
+ if (this.registeredCommands.some((o) => o.name === "markuppanel")) return;
657
+ const t = h.SYSTEMT_COMMAND_GROUP_NAME;
658
+ e.addCommand(
659
+ t,
660
+ "markuppanel",
661
+ "markuppanel",
662
+ this.createMarkupPanelCommand()
663
+ ), this.registeredCommands.push({ group: t, name: "markuppanel" });
664
+ }
665
+ /** Creates the `markuppanel` command that prepares the dock panel before opening review. */
666
+ createMarkupPanelCommand() {
667
+ return new W({
668
+ prepare: () => this.prepareReviewDockForCommand(),
669
+ toggle: () => {
670
+ var e;
671
+ return (e = this.dockPanel) == null ? void 0 : e.open(c);
672
+ }
673
+ });
674
+ }
675
+ /** Ensures the dock panel and review tab exist for the `markuppanel` command. */
676
+ prepareReviewDockForCommand() {
677
+ this.mountReviewDockUi(), this.tryUpgradeDockMountTarget();
678
+ }
679
+ /** Registers the `measurementpanel` command with dock preparation wired in. */
680
+ registerMeasurementPanelCommand(e) {
681
+ if (this.registeredCommands.some((o) => o.name === "measurementpanel"))
682
+ return;
683
+ const t = h.SYSTEMT_COMMAND_GROUP_NAME;
684
+ e.addCommand(
685
+ t,
686
+ "measurementpanel",
687
+ "measurementpanel",
688
+ this.createMeasurementPanelCommand()
689
+ ), this.registeredCommands.push({ group: t, name: "measurementpanel" });
690
+ }
691
+ /** Creates the `measurementpanel` command that prepares the dock before opening. */
692
+ createMeasurementPanelCommand() {
693
+ return new $({
694
+ prepare: () => this.prepareMeasurementDockForCommand(),
695
+ toggle: () => {
696
+ var e;
697
+ return (e = this.dockPanel) == null ? void 0 : e.open(u);
698
+ }
699
+ });
700
+ }
701
+ /** Ensures the dock panel and measurements tab exist for the command. */
702
+ prepareMeasurementDockForCommand() {
703
+ this.mountMeasurementDockUi(), this.tryUpgradeDockMountTarget();
704
+ }
705
+ /** Ensures the dock panel exists, tabs are mounted, and mount target is current. */
706
+ ensureDockReady() {
707
+ var e;
708
+ if (!this.dockPanel) {
709
+ this.prepareDockPanel();
710
+ return;
711
+ }
712
+ this.hasLayerToolbarItem && !this.dockPanel.hasTab(d) && this.mountLayerDockUi(), this.hasMarkupPanelToolbarItem && !this.dockPanel.hasTab(c) && this.mountReviewDockUi(), this.hasMeasurementPanelToolbarItem && !this.dockPanel.hasTab(u) && this.mountMeasurementDockUi(), this.hasFindToolbarItem && !this.dockPanel.hasTab(m) && this.mountFindDockUi(), this.tryUpgradeDockMountTarget(), this.dockPanel.ensureMounted(), (e = this.toolbar) == null || e.syncInParentLayout();
713
+ }
714
+ /** Ensures the dock panel exists, is mounted on the current target, and has tabs when applicable. */
715
+ prepareDockPanel() {
716
+ this.hasLayerToolbarItem && this.mountLayerDockUi(), this.hasMarkupPanelToolbarItem && this.mountReviewDockUi(), this.hasMeasurementPanelToolbarItem && this.mountMeasurementDockUi(), this.hasFindToolbarItem && this.mountFindDockUi(), this.dockPanel || this.ensureDockPanel(), this.tryUpgradeDockMountTarget();
717
+ }
718
+ /** Closes open sub-toolbars when {@link AcUiSubToolbarOptions.replaceOnNested} is set. */
719
+ dismissStripsForDockPanel() {
720
+ var e;
721
+ (e = this.toolbar) != null && e.replaceOnNested && this.toolbar.dismissOpenChildren();
722
+ }
723
+ /** Closes the dock panel when {@link AcUiSubToolbarOptions.replaceOnNested} is set. */
724
+ dismissDockForExclusiveChrome() {
725
+ var e, t;
726
+ (e = this.toolbar) != null && e.replaceOnNested && ((t = this.dockPanel) == null || t.close());
727
+ }
728
+ /** Ensures the dock panel container exists. */
729
+ ensureDockPanel() {
730
+ const e = this.getDockMountEl();
731
+ !e || !this.i18n || !this.dockPanelDefaults || this.dockPanel || (this.dockPanel = new V({
732
+ host: e,
733
+ t: (t) => f.t(t),
734
+ defaultSide: this.dockPanelDefaults.defaultSide,
735
+ defaultOpen: this.dockPanelDefaults.defaultOpen,
736
+ defaultHeight: this.dockPanelDefaults.defaultHeight,
737
+ defaultWidth: this.dockPanelDefaults.defaultWidth,
738
+ onOpen: () => this.dismissStripsForDockPanel()
739
+ }), this.syncToolbarMountAfterDockChange());
740
+ }
741
+ /** Resolves the dock mount element (lazy; canvas parent may appear after load). */
742
+ getDockMountEl() {
743
+ if (this.hostEl)
744
+ return g(
745
+ this.hostEl,
746
+ this.dockPanelMountTargetOption
747
+ );
748
+ }
749
+ /**
750
+ * Moves the dock panel from a host fallback to the canvas parent once available.
751
+ */
752
+ tryUpgradeDockMountTarget() {
753
+ if (this.dockPanelMountTargetOption || !this.hostEl || !this.dockPanel)
754
+ return;
755
+ const e = g(this.hostEl), t = this.dockPanel.getMountHost();
756
+ t !== e && (t !== this.hostEl || e === this.hostEl || (this.dockPanel.reparentTo(e), this.refreshLayerDockController(), this.syncToolbarMountAfterDockChange()));
757
+ }
758
+ /** Rebinds the layer dock controller after the dock panel moves. */
759
+ refreshLayerDockController() {
760
+ var e, t;
761
+ (e = this.dockPanel) != null && e.hasTab(d) && ((t = this.layerDockController) == null || t.destroy(), this.layerDockController = new I(
762
+ this.dockPanel,
763
+ d
764
+ ), this.layerUiControllerHolder.current = this.layerDockController);
765
+ }
766
+ /** Mounts the layer list in the dock panel layers tab. */
767
+ mountLayerDockUi() {
768
+ if (!this.hostEl || !this.i18n || (this.ensureDockPanel(), !this.dockPanel)) return;
769
+ if (this.dockPanel.hasTab(d)) {
770
+ this.refreshLayerDockController();
771
+ return;
772
+ }
773
+ if (this.layerListView = new _({
774
+ editor: l.instance,
775
+ i18n: this.i18n,
776
+ host: this.hostEl,
777
+ showHeader: !1
778
+ }), !this.dockPanel.addTab({
779
+ id: d,
780
+ labelKey: "main.dockPanel.tab.layers",
781
+ content: this.layerListView.element
782
+ })) {
783
+ this.layerListView.destroy(), this.layerListView = void 0;
784
+ return;
785
+ }
786
+ this.layerDockController = new I(
787
+ this.dockPanel,
788
+ d
789
+ ), this.layerUiControllerHolder.current = this.layerDockController;
790
+ }
791
+ /** Tears down active layer UI without removing the dock shell when other tabs remain. */
792
+ teardownLayerUi() {
793
+ var e, t, o;
794
+ (e = this.dockPanel) == null || e.removeTab(d), (t = this.layerListView) == null || t.destroy(), this.layerListView = void 0, (o = this.layerDockController) == null || o.destroy(), this.layerDockController = void 0, this.layerUiControllerHolder.current = void 0, this.destroyDockIfUnused();
795
+ }
796
+ /** Mounts the review palette in the dock panel review tab. */
797
+ mountReviewDockUi() {
798
+ if (!this.hostEl || !this.i18n || (this.ensureDockPanel(), !this.dockPanel) || this.dockPanel.hasTab(c))
799
+ return;
800
+ this.reviewPaletteView = new x({
801
+ editor: l.instance,
802
+ i18n: this.i18n
803
+ }), this.dockPanel.addTab({
804
+ id: c,
805
+ labelKey: "main.dockPanel.tab.review",
806
+ content: this.reviewPaletteView.element
807
+ }) || (this.reviewPaletteView.destroy(), this.reviewPaletteView = void 0);
808
+ }
809
+ /** Tears down review UI without removing the dock shell when other tabs remain. */
810
+ teardownReviewUi() {
811
+ var e, t;
812
+ (e = this.dockPanel) == null || e.removeTab(c), (t = this.reviewPaletteView) == null || t.destroy(), this.reviewPaletteView = void 0, this.destroyDockIfUnused();
813
+ }
814
+ /** Mounts the measurement list in the dock panel measurements tab. */
815
+ mountMeasurementDockUi() {
816
+ if (!this.hostEl || !this.i18n || (this.ensureDockPanel(), !this.dockPanel) || this.dockPanel.hasTab(u))
817
+ return;
818
+ this.measurementPaletteView = new B({
819
+ editor: l.instance,
820
+ i18n: this.i18n
821
+ }), this.dockPanel.addTab({
822
+ id: u,
823
+ labelKey: "main.dockPanel.tab.measurements",
824
+ content: this.measurementPaletteView.element
825
+ }) || (this.measurementPaletteView.destroy(), this.measurementPaletteView = void 0);
826
+ }
827
+ /** Tears down measurement UI without removing the dock shell when other tabs remain. */
828
+ teardownMeasurementUi() {
829
+ var e, t;
830
+ (e = this.dockPanel) == null || e.removeTab(u), (t = this.measurementPaletteView) == null || t.destroy(), this.measurementPaletteView = void 0, this.destroyDockIfUnused();
831
+ }
832
+ /** Mounts the text search view in the dock panel find tab. */
833
+ mountFindDockUi() {
834
+ if (!this.hostEl || !this.i18n || (this.ensureDockPanel(), !this.dockPanel) || this.dockPanel.hasTab(m))
835
+ return;
836
+ this.findPaletteView = new N({
837
+ editor: l.instance,
838
+ i18n: this.i18n
839
+ }), this.dockPanel.addTab({
840
+ id: m,
841
+ labelKey: "main.dockPanel.tab.find",
842
+ content: this.findPaletteView.element
843
+ }) || (this.findPaletteView.destroy(), this.findPaletteView = void 0);
844
+ }
845
+ /** Tears down find UI without removing the dock shell when other tabs remain. */
846
+ teardownFindUi() {
847
+ var e, t;
848
+ (e = this.dockPanel) == null || e.removeTab(m), (t = this.findPaletteView) == null || t.destroy(), this.findPaletteView = void 0, this.destroyDockIfUnused();
849
+ }
850
+ /** Closes and optionally destroys the dock panel when it has no remaining tabs. */
851
+ destroyDockIfUnused() {
852
+ this.dockPanel && (this.dockPanel.hasTabs || (this.dockPanel.close(), !this.dockPanelExplicitlyEnabled && (this.dockPanel.destroy(), this.dockPanel = void 0, this.syncToolbarMountAfterDockChange())));
853
+ }
854
+ /**
855
+ * Re-resolves the toolbar mount after dock wrap/unwrap, which can detach a
856
+ * stale `dock-main` host or change `canvas.parentElement`.
857
+ */
858
+ syncToolbarMountAfterDockChange() {
859
+ if (!this.toolbar || !this.hostEl) return;
860
+ const e = this.getToolbarMountEl();
861
+ e && ((e !== this.toolbarMountEl || !this.toolbar.isRootConnected()) && (this.toolbar.reparentTo(e), this.toolbarMountEl = e), this.toolbar.syncInParentLayout());
862
+ }
863
+ /** Updates toolbar placement. */
864
+ applyToolbarPlacement(e) {
865
+ var t;
866
+ this.toolbarPlacement = e, (t = this.toolbar) == null || t.setPlacement(e);
867
+ }
868
+ /**
869
+ * Tears down UI, unregisters commands, and removes injected styles if unused.
870
+ *
871
+ * @param commandManager - Command stack used to remove registered commands.
872
+ */
873
+ dispose(e) {
874
+ var o, a, r, s, i;
875
+ const t = e ?? this.commandManager;
876
+ if (w.setHost(void 0), (o = this.unsubscribeLayout) == null || o.call(this), this.unsubscribeLayout = void 0, f.events.localeChanged.removeEventListener(this.handleLocaleChanged), l.instance.events.documentActivated.removeEventListener(
877
+ this.handleDocumentActivatedForDock
878
+ ), t)
879
+ for (const n of this.registeredCommands)
880
+ t.removeCmd(n.group, n.name);
881
+ this.registeredCommands = [], this.teardownLayerUi(), this.teardownReviewUi(), this.teardownMeasurementUi(), this.teardownFindUi(), (a = this.toolbarDocUnbind) == null || a.call(this), this.toolbarDocUnbind = void 0, (r = this.toolbar) == null || r.destroy(), (s = this.dockPanel) == null || s.destroy(), this.toolbar = void 0, this.toolbarMountEl = void 0, this.toolbarMountTargetOption = void 0, this.dockPanel = void 0, this.hostEl = void 0, this.dockPanelMountTargetOption = void 0, this.baseToolbarItems = [], this.toolbarItemsInput = "default", this.toolbarItemsOverridden = !1, this.toolbarLayoutSwitcher = void 0, this.hasLayerToolbarItem = !1, this.hasMarkupPanelToolbarItem = !1, this.hasMeasurementPanelToolbarItem = !1, this.hasFindToolbarItem = !1, this.commandManager = void 0, this.i18n = void 0, (i = this.themeSync) == null || i.stop(), this.themeSync = void 0, M.instance.clearSessionOverride("isShowRibbon"), H();
882
+ }
883
+ /** Sets {@link AcApI18n.currentLocale} to one of the supported locales. */
884
+ setLocale(e) {
885
+ f.setCurrentLocale(e);
886
+ }
887
+ }
888
+ export {
889
+ J as AcApSimpleUiChrome
890
+ };