@mlightcad/cad-simple-viewer 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +185 -180
  3. package/dist/cad-simple-viewer.js +17061 -12706
  4. package/dist/cad-simple-viewer.umd.cjs +981 -114
  5. package/dist/mtext-renderer-worker.js +1908 -1765
  6. package/icons.ts +7 -7
  7. package/lib/app/AcApContext.d.ts.map +1 -1
  8. package/lib/app/AcApContext.js +4 -3
  9. package/lib/app/AcApContext.js.map +1 -1
  10. package/lib/app/AcApDocManager.d.ts +38 -18
  11. package/lib/app/AcApDocManager.d.ts.map +1 -1
  12. package/lib/app/AcApDocManager.js +59 -45
  13. package/lib/app/AcApDocManager.js.map +1 -1
  14. package/lib/app/AcApOpenDatabaseOptions.d.ts +17 -1
  15. package/lib/app/AcApOpenDatabaseOptions.d.ts.map +1 -1
  16. package/lib/app/AcApOpenDatabaseOptions.js +1 -1
  17. package/lib/app/AcApOpenDatabaseOptions.js.map +1 -1
  18. package/lib/app/AcApOpenFileProgressController.d.ts +4 -2
  19. package/lib/app/AcApOpenFileProgressController.d.ts.map +1 -1
  20. package/lib/app/AcApOpenFileProgressController.js +4 -2
  21. package/lib/app/AcApOpenFileProgressController.js.map +1 -1
  22. package/lib/app/index.d.ts +1 -0
  23. package/lib/app/index.d.ts.map +1 -1
  24. package/lib/app/index.js +1 -0
  25. package/lib/app/index.js.map +1 -1
  26. package/lib/app/notification/AcApNotificationEventBridge.d.ts +130 -0
  27. package/lib/app/notification/AcApNotificationEventBridge.d.ts.map +1 -0
  28. package/lib/app/notification/AcApNotificationEventBridge.js +309 -0
  29. package/lib/app/notification/AcApNotificationEventBridge.js.map +1 -0
  30. package/lib/app/notification/AcApNotificationService.d.ts +185 -0
  31. package/lib/app/notification/AcApNotificationService.d.ts.map +1 -0
  32. package/lib/app/notification/AcApNotificationService.js +271 -0
  33. package/lib/app/notification/AcApNotificationService.js.map +1 -0
  34. package/lib/app/notification/AcApNotificationStore.d.ts +147 -0
  35. package/lib/app/notification/AcApNotificationStore.d.ts.map +1 -0
  36. package/lib/app/notification/AcApNotificationStore.js +345 -0
  37. package/lib/app/notification/AcApNotificationStore.js.map +1 -0
  38. package/lib/app/notification/AcApNotificationTypes.d.ts +195 -0
  39. package/lib/app/notification/AcApNotificationTypes.d.ts.map +1 -0
  40. package/lib/app/notification/AcApNotificationTypes.js +78 -0
  41. package/lib/app/notification/AcApNotificationTypes.js.map +1 -0
  42. package/lib/app/notification/index.d.ts +13 -0
  43. package/lib/app/notification/index.d.ts.map +1 -0
  44. package/lib/app/notification/index.js +13 -0
  45. package/lib/app/notification/index.js.map +1 -0
  46. package/lib/command/AcApInstallDrawStyleSessionAccessory.js +11 -7
  47. package/lib/command/AcApInstallDrawStyleSessionAccessory.js.map +1 -1
  48. package/lib/command/AcApSwitchBgCmd.d.ts.map +1 -1
  49. package/lib/command/AcApSwitchBgCmd.js +7 -2
  50. package/lib/command/AcApSwitchBgCmd.js.map +1 -1
  51. package/lib/command/AcApToolbarDocBind.d.ts +19 -0
  52. package/lib/command/AcApToolbarDocBind.d.ts.map +1 -0
  53. package/lib/command/AcApToolbarDocBind.js +62 -0
  54. package/lib/command/AcApToolbarDocBind.js.map +1 -0
  55. package/lib/command/convert/AcApConvertToBmpCmd.d.ts +14 -0
  56. package/lib/command/convert/AcApConvertToBmpCmd.d.ts.map +1 -0
  57. package/lib/command/convert/AcApConvertToBmpCmd.js +34 -0
  58. package/lib/command/convert/AcApConvertToBmpCmd.js.map +1 -0
  59. package/lib/command/convert/AcApConvertToJpgCmd.d.ts +14 -0
  60. package/lib/command/convert/AcApConvertToJpgCmd.d.ts.map +1 -0
  61. package/lib/command/convert/AcApConvertToJpgCmd.js +34 -0
  62. package/lib/command/convert/AcApConvertToJpgCmd.js.map +1 -0
  63. package/lib/command/convert/AcApConvertToPngCmd.d.ts +4 -36
  64. package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -1
  65. package/lib/command/convert/AcApConvertToPngCmd.js +4 -138
  66. package/lib/command/convert/AcApConvertToPngCmd.js.map +1 -1
  67. package/lib/command/convert/AcApConvertToRasterImageCmd.d.ts +40 -0
  68. package/lib/command/convert/AcApConvertToRasterImageCmd.d.ts.map +1 -0
  69. package/lib/command/convert/AcApConvertToRasterImageCmd.js +161 -0
  70. package/lib/command/convert/AcApConvertToRasterImageCmd.js.map +1 -0
  71. package/lib/command/convert/{AcApPngConvertor.d.ts → AcApRasterImageConvertor.d.ts} +36 -12
  72. package/lib/command/convert/AcApRasterImageConvertor.d.ts.map +1 -0
  73. package/lib/command/convert/{AcApPngConvertor.js → AcApRasterImageConvertor.js} +163 -32
  74. package/lib/command/convert/AcApRasterImageConvertor.js.map +1 -0
  75. package/lib/command/convert/index.d.ts +4 -1
  76. package/lib/command/convert/index.d.ts.map +1 -1
  77. package/lib/command/convert/index.js +4 -1
  78. package/lib/command/convert/index.js.map +1 -1
  79. package/lib/command/index.d.ts +2 -0
  80. package/lib/command/index.d.ts.map +1 -1
  81. package/lib/command/index.js +2 -0
  82. package/lib/command/index.js.map +1 -1
  83. package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -1
  84. package/lib/command/markup/AcApMarkupCalloutCmd.js +51 -1
  85. package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -1
  86. package/lib/command/markup/AcApMarkupCmdUtil.d.ts +5 -0
  87. package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -1
  88. package/lib/command/markup/AcApMarkupCmdUtil.js +27 -9
  89. package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -1
  90. package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -1
  91. package/lib/command/markup/AcApMarkupShapeCallout.js +49 -1
  92. package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -1
  93. package/lib/editor/global/AcEdUiLayout.d.ts +6 -0
  94. package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
  95. package/lib/editor/global/AcEdUiLayout.js +6 -0
  96. package/lib/editor/global/AcEdUiLayout.js.map +1 -1
  97. package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.d.ts +31 -0
  98. package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.d.ts.map +1 -0
  99. package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.js +67 -0
  100. package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.js.map +1 -0
  101. package/lib/editor/input/ui/AcEdFloatingInput.d.ts +2 -0
  102. package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
  103. package/lib/editor/input/ui/AcEdFloatingInput.js +13 -2
  104. package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
  105. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +6 -0
  106. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
  107. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  108. package/lib/editor/input/ui/AcEdInputManager.js +47 -7
  109. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  110. package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts.map +1 -1
  111. package/lib/editor/input/ui/AcEdMobileBoxGesture.js +2 -0
  112. package/lib/editor/input/ui/AcEdMobileBoxGesture.js.map +1 -1
  113. package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts +18 -4
  114. package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts.map +1 -1
  115. package/lib/editor/input/ui/AcEdMobileCommandChrome.js +14 -0
  116. package/lib/editor/input/ui/AcEdMobileCommandChrome.js.map +1 -1
  117. package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts +10 -2
  118. package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts.map +1 -1
  119. package/lib/editor/input/ui/AcEdSessionAccessoryController.js +15 -4
  120. package/lib/editor/input/ui/AcEdSessionAccessoryController.js.map +1 -1
  121. package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts +1 -1
  122. package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts.map +1 -1
  123. package/lib/editor/input/ui/AcEdTouchPointTiming.js +1 -1
  124. package/lib/editor/input/ui/AcEdTouchPointTiming.js.map +1 -1
  125. package/lib/editor/input/ui/index.d.ts +1 -0
  126. package/lib/editor/input/ui/index.d.ts.map +1 -1
  127. package/lib/editor/input/ui/index.js +1 -0
  128. package/lib/editor/input/ui/index.js.map +1 -1
  129. package/lib/editor/view/AcEdBaseView.d.ts +12 -0
  130. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  131. package/lib/editor/view/AcEdBaseView.js +19 -9
  132. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  133. package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts +36 -0
  134. package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts.map +1 -0
  135. package/lib/editor/view/AcEdSelectionBoxIntersect.js +113 -0
  136. package/lib/editor/view/AcEdSelectionBoxIntersect.js.map +1 -0
  137. package/lib/editor/view/index.d.ts +1 -0
  138. package/lib/editor/view/index.d.ts.map +1 -1
  139. package/lib/editor/view/index.js +1 -0
  140. package/lib/editor/view/index.js.map +1 -1
  141. package/lib/i18n/AcApI18n.d.ts +2 -1
  142. package/lib/i18n/AcApI18n.d.ts.map +1 -1
  143. package/lib/i18n/AcApI18n.js +4 -1
  144. package/lib/i18n/AcApI18n.js.map +1 -1
  145. package/lib/i18n/ar/command.d.ts +9 -0
  146. package/lib/i18n/ar/command.d.ts.map +1 -1
  147. package/lib/i18n/ar/command.js +1 -1
  148. package/lib/i18n/ar/command.js.map +1 -1
  149. package/lib/i18n/ar/jig.d.ts +47 -0
  150. package/lib/i18n/ar/jig.d.ts.map +1 -1
  151. package/lib/i18n/ar/jig.js +17 -1
  152. package/lib/i18n/ar/jig.js.map +1 -1
  153. package/lib/i18n/ar/main.d.ts +30 -0
  154. package/lib/i18n/ar/main.d.ts.map +1 -1
  155. package/lib/i18n/ar/main.js +34 -4
  156. package/lib/i18n/ar/main.js.map +1 -1
  157. package/lib/i18n/cs/command.d.ts +9 -0
  158. package/lib/i18n/cs/command.d.ts.map +1 -1
  159. package/lib/i18n/cs/command.js +9 -0
  160. package/lib/i18n/cs/command.js.map +1 -1
  161. package/lib/i18n/cs/jig.d.ts +47 -0
  162. package/lib/i18n/cs/jig.d.ts.map +1 -1
  163. package/lib/i18n/cs/jig.js +47 -0
  164. package/lib/i18n/cs/jig.js.map +1 -1
  165. package/lib/i18n/cs/main.d.ts +30 -0
  166. package/lib/i18n/cs/main.d.ts.map +1 -1
  167. package/lib/i18n/cs/main.js +34 -4
  168. package/lib/i18n/cs/main.js.map +1 -1
  169. package/lib/i18n/en/command.d.ts +9 -0
  170. package/lib/i18n/en/command.d.ts.map +1 -1
  171. package/lib/i18n/en/command.js +9 -0
  172. package/lib/i18n/en/command.js.map +1 -1
  173. package/lib/i18n/en/jig.d.ts +47 -0
  174. package/lib/i18n/en/jig.d.ts.map +1 -1
  175. package/lib/i18n/en/jig.js +47 -0
  176. package/lib/i18n/en/jig.js.map +1 -1
  177. package/lib/i18n/en/main.d.ts +30 -0
  178. package/lib/i18n/en/main.d.ts.map +1 -1
  179. package/lib/i18n/en/main.js +34 -4
  180. package/lib/i18n/en/main.js.map +1 -1
  181. package/lib/i18n/index.d.ts +2 -2
  182. package/lib/i18n/index.d.ts.map +1 -1
  183. package/lib/i18n/index.js.map +1 -1
  184. package/lib/i18n/tr/command.d.ts +9 -0
  185. package/lib/i18n/tr/command.d.ts.map +1 -1
  186. package/lib/i18n/tr/command.js +9 -0
  187. package/lib/i18n/tr/command.js.map +1 -1
  188. package/lib/i18n/tr/jig.d.ts +47 -0
  189. package/lib/i18n/tr/jig.d.ts.map +1 -1
  190. package/lib/i18n/tr/jig.js +47 -0
  191. package/lib/i18n/tr/jig.js.map +1 -1
  192. package/lib/i18n/tr/main.d.ts +30 -0
  193. package/lib/i18n/tr/main.d.ts.map +1 -1
  194. package/lib/i18n/tr/main.js +34 -4
  195. package/lib/i18n/tr/main.js.map +1 -1
  196. package/lib/i18n/zh/command.d.ts +9 -0
  197. package/lib/i18n/zh/command.d.ts.map +1 -1
  198. package/lib/i18n/zh/command.js +9 -0
  199. package/lib/i18n/zh/command.js.map +1 -1
  200. package/lib/i18n/zh/jig.d.ts +47 -0
  201. package/lib/i18n/zh/jig.d.ts.map +1 -1
  202. package/lib/i18n/zh/jig.js +47 -0
  203. package/lib/i18n/zh/jig.js.map +1 -1
  204. package/lib/i18n/zh/main.d.ts +30 -0
  205. package/lib/i18n/zh/main.d.ts.map +1 -1
  206. package/lib/i18n/zh/main.js +34 -4
  207. package/lib/i18n/zh/main.js.map +1 -1
  208. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts +6 -0
  209. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts.map +1 -1
  210. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js +10 -0
  211. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js.map +1 -1
  212. package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts +4 -0
  213. package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts.map +1 -1
  214. package/lib/spatialIndex/AcTrLinearSpatialIndex.js +9 -0
  215. package/lib/spatialIndex/AcTrLinearSpatialIndex.js.map +1 -1
  216. package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts +4 -0
  217. package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
  218. package/lib/spatialIndex/AcTrRBushSpatialIndex.js +9 -0
  219. package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
  220. package/lib/ui/AcUiDefaultNotificationUi.d.ts +167 -0
  221. package/lib/ui/AcUiDefaultNotificationUi.d.ts.map +1 -0
  222. package/lib/ui/AcUiDefaultNotificationUi.js +603 -0
  223. package/lib/ui/AcUiDefaultNotificationUi.js.map +1 -0
  224. package/lib/ui/AcUiDrawStyle.d.ts +2 -1
  225. package/lib/ui/AcUiDrawStyle.d.ts.map +1 -1
  226. package/lib/ui/AcUiDrawStyle.js +2 -1
  227. package/lib/ui/AcUiDrawStyle.js.map +1 -1
  228. package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts.map +1 -1
  229. package/lib/ui/AcUiDrawStyleSessionAccessory.js +5 -1
  230. package/lib/ui/AcUiDrawStyleSessionAccessory.js.map +1 -1
  231. package/lib/ui/AcUiMobileSessionPanel.d.ts +73 -8
  232. package/lib/ui/AcUiMobileSessionPanel.d.ts.map +1 -1
  233. package/lib/ui/AcUiMobileSessionPanel.js +314 -49
  234. package/lib/ui/AcUiMobileSessionPanel.js.map +1 -1
  235. package/lib/ui/AcUiShortCutToolbar.d.ts +24 -0
  236. package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -1
  237. package/lib/ui/AcUiShortCutToolbar.js +73 -5
  238. package/lib/ui/AcUiShortCutToolbar.js.map +1 -1
  239. package/lib/ui/index.d.ts +2 -0
  240. package/lib/ui/index.d.ts.map +1 -1
  241. package/lib/ui/index.js +2 -0
  242. package/lib/ui/index.js.map +1 -1
  243. package/lib/ui/toolbar/AcUiDropdownMenu.d.ts +48 -0
  244. package/lib/ui/toolbar/AcUiDropdownMenu.d.ts.map +1 -0
  245. package/lib/ui/toolbar/AcUiDropdownMenu.js +116 -0
  246. package/lib/ui/toolbar/AcUiDropdownMenu.js.map +1 -0
  247. package/lib/ui/toolbar/AcUiSubToolbar.d.ts +125 -0
  248. package/lib/ui/toolbar/AcUiSubToolbar.d.ts.map +1 -0
  249. package/lib/ui/toolbar/AcUiSubToolbar.js +625 -0
  250. package/lib/ui/toolbar/AcUiSubToolbar.js.map +1 -0
  251. package/lib/ui/toolbar/AcUiToolbar.d.ts +446 -0
  252. package/lib/ui/toolbar/AcUiToolbar.d.ts.map +1 -0
  253. package/lib/ui/toolbar/AcUiToolbar.js +1550 -0
  254. package/lib/ui/toolbar/AcUiToolbar.js.map +1 -0
  255. package/lib/ui/toolbar/AcUiToolbarStyles.d.ts +20 -0
  256. package/lib/ui/toolbar/AcUiToolbarStyles.d.ts.map +1 -0
  257. package/lib/ui/toolbar/AcUiToolbarStyles.js +34 -0
  258. package/lib/ui/toolbar/AcUiToolbarStyles.js.map +1 -0
  259. package/lib/ui/toolbar/acuiWrapPackLayout.d.ts +19 -0
  260. package/lib/ui/toolbar/acuiWrapPackLayout.d.ts.map +1 -0
  261. package/lib/ui/toolbar/acuiWrapPackLayout.js +36 -0
  262. package/lib/ui/toolbar/acuiWrapPackLayout.js.map +1 -0
  263. package/lib/ui/toolbar/index.d.ts +19 -0
  264. package/lib/ui/toolbar/index.d.ts.map +1 -0
  265. package/lib/ui/toolbar/index.js +15 -0
  266. package/lib/ui/toolbar/index.js.map +1 -0
  267. package/lib/ui/toolbar/resolveToolbarChrome.d.ts +14 -0
  268. package/lib/ui/toolbar/resolveToolbarChrome.d.ts.map +1 -0
  269. package/lib/ui/toolbar/resolveToolbarChrome.js +35 -0
  270. package/lib/ui/toolbar/resolveToolbarChrome.js.map +1 -0
  271. package/lib/ui/toolbar/resolveToolbarItemState.d.ts +63 -0
  272. package/lib/ui/toolbar/resolveToolbarItemState.d.ts.map +1 -0
  273. package/lib/ui/toolbar/resolveToolbarItemState.js +171 -0
  274. package/lib/ui/toolbar/resolveToolbarItemState.js.map +1 -0
  275. package/lib/ui/toolbar/toolbarItemUtils.d.ts +62 -0
  276. package/lib/ui/toolbar/toolbarItemUtils.d.ts.map +1 -0
  277. package/lib/ui/toolbar/toolbarItemUtils.js +184 -0
  278. package/lib/ui/toolbar/toolbarItemUtils.js.map +1 -0
  279. package/lib/ui/toolbar/types.d.ts +268 -0
  280. package/lib/ui/toolbar/types.d.ts.map +1 -0
  281. package/lib/ui/toolbar/types.js +8 -0
  282. package/lib/ui/toolbar/types.js.map +1 -0
  283. package/lib/ui-html-entry.d.ts +8 -1
  284. package/lib/ui-html-entry.d.ts.map +1 -1
  285. package/lib/ui-html-entry.js +6 -1
  286. package/lib/ui-html-entry.js.map +1 -1
  287. package/lib/util/AcApAnalyzeUnsupportedDrawing.d.ts +53 -0
  288. package/lib/util/AcApAnalyzeUnsupportedDrawing.d.ts.map +1 -0
  289. package/lib/util/AcApAnalyzeUnsupportedDrawing.js +164 -0
  290. package/lib/util/AcApAnalyzeUnsupportedDrawing.js.map +1 -0
  291. package/lib/util/AcApFormatFontMissedMessage.d.ts +32 -0
  292. package/lib/util/AcApFormatFontMissedMessage.d.ts.map +1 -0
  293. package/lib/util/AcApFormatFontMissedMessage.js +46 -0
  294. package/lib/util/AcApFormatFontMissedMessage.js.map +1 -0
  295. package/lib/util/AcApFormatUnsupportedEntitiesMessage.d.ts +44 -0
  296. package/lib/util/AcApFormatUnsupportedEntitiesMessage.d.ts.map +1 -0
  297. package/lib/util/AcApFormatUnsupportedEntitiesMessage.js +105 -0
  298. package/lib/util/AcApFormatUnsupportedEntitiesMessage.js.map +1 -0
  299. package/lib/util/index.d.ts +3 -0
  300. package/lib/util/index.d.ts.map +1 -1
  301. package/lib/util/index.js +3 -0
  302. package/lib/util/index.js.map +1 -1
  303. package/lib/view/AcTrLayer.d.ts +13 -1
  304. package/lib/view/AcTrLayer.d.ts.map +1 -1
  305. package/lib/view/AcTrLayer.js +28 -11
  306. package/lib/view/AcTrLayer.js.map +1 -1
  307. package/lib/view/AcTrLayout.d.ts +17 -2
  308. package/lib/view/AcTrLayout.d.ts.map +1 -1
  309. package/lib/view/AcTrLayout.js +44 -3
  310. package/lib/view/AcTrLayout.js.map +1 -1
  311. package/lib/view/AcTrScene.d.ts +4 -0
  312. package/lib/view/AcTrScene.d.ts.map +1 -1
  313. package/lib/view/AcTrScene.js +6 -0
  314. package/lib/view/AcTrScene.js.map +1 -1
  315. package/lib/view/AcTrView2d.d.ts +93 -14
  316. package/lib/view/AcTrView2d.d.ts.map +1 -1
  317. package/lib/view/AcTrView2d.js +382 -102
  318. package/lib/view/AcTrView2d.js.map +1 -1
  319. package/package.json +8 -8
  320. package/src/ui/icons.ts +387 -387
  321. package/lib/command/convert/AcApPngConvertor.d.ts.map +0 -1
  322. package/lib/command/convert/AcApPngConvertor.js.map +0 -1
@@ -0,0 +1,271 @@
1
+ import { AcUiDefaultNotificationUi } from '../../ui/AcUiDefaultNotificationUi';
2
+ import { AcApNotificationEventBridge } from './AcApNotificationEventBridge';
3
+ import { AcApNotificationStore } from './AcApNotificationStore';
4
+ /**
5
+ * Owns the active {@link AcApNotificationCenter}, optional default DOM UI, and
6
+ * the shared event bridge.
7
+ *
8
+ * Hosts override the center with {@link acapSetNotificationCenter}; passing
9
+ * `null` restores the built-in store + UI.
10
+ */
11
+ var AcApNotificationService = /** @class */ (function () {
12
+ function AcApNotificationService() {
13
+ /** Currently active center (built-in store or host adapter). */
14
+ this._center = new AcApNotificationStore();
15
+ /** Built-in store instance used when no custom center is installed. */
16
+ this._defaultStore = this._center;
17
+ /** Whether the built-in DOM UI should be mounted when not overridden. */
18
+ this._showDefaultUi = true;
19
+ /** `true` when {@link _center} is a host-supplied override. */
20
+ this._isCustom = false;
21
+ }
22
+ /**
23
+ * Installs bridge + default UI for a document manager instance.
24
+ * Safe to call once per {@link AcApDocManager.createInstance}.
25
+ *
26
+ * @param docManager - Manager whose sessions and events are observed.
27
+ * @param options - Bridge / UI install flags.
28
+ */
29
+ AcApNotificationService.prototype.install = function (docManager, options) {
30
+ var _this = this;
31
+ var _a;
32
+ if (options === void 0) { options = {}; }
33
+ this._docManager = docManager;
34
+ this._host = options.host;
35
+ this._showDefaultUi = options.showDefaultUi !== false;
36
+ this._placement = options.placement;
37
+ if (options.enableBridge !== false) {
38
+ (_a = this._bridge) === null || _a === void 0 ? void 0 : _a.uninstall();
39
+ this._bridge = new AcApNotificationEventBridge(docManager, function () {
40
+ return _this.center;
41
+ });
42
+ this._bridge.install();
43
+ }
44
+ else {
45
+ this._center.setActiveSession(docManager.activeSessionId);
46
+ }
47
+ if (!this._isCustom && this._showDefaultUi) {
48
+ this.mountDefaultUi();
49
+ }
50
+ };
51
+ Object.defineProperty(AcApNotificationService.prototype, "placement", {
52
+ /**
53
+ * Explicit bell placement, or `undefined` when using layout defaults.
54
+ */
55
+ get: function () {
56
+ return this._placement;
57
+ },
58
+ enumerable: false,
59
+ configurable: true
60
+ });
61
+ /**
62
+ * Sets or clears the built-in notification bell corner.
63
+ *
64
+ * Applies immediately when the default DOM UI is mounted. Pass `undefined`
65
+ * to restore layout-based defaults.
66
+ *
67
+ * @param placement - Corner placement, or `undefined` for auto.
68
+ */
69
+ AcApNotificationService.prototype.setPlacement = function (placement) {
70
+ var _a;
71
+ this._placement = placement;
72
+ (_a = this._defaultUi) === null || _a === void 0 ? void 0 : _a.setPlacement(placement);
73
+ };
74
+ Object.defineProperty(AcApNotificationService.prototype, "center", {
75
+ /**
76
+ * Active notification center (built-in or host override).
77
+ */
78
+ get: function () {
79
+ return this._center;
80
+ },
81
+ enumerable: false,
82
+ configurable: true
83
+ });
84
+ Object.defineProperty(AcApNotificationService.prototype, "isCustom", {
85
+ /**
86
+ * Whether a host-supplied center is currently installed.
87
+ */
88
+ get: function () {
89
+ return this._isCustom;
90
+ },
91
+ enumerable: false,
92
+ configurable: true
93
+ });
94
+ /**
95
+ * Replaces the active notification center.
96
+ *
97
+ * @param center - Custom center, or `null` to restore the built-in default.
98
+ */
99
+ AcApNotificationService.prototype.setCenter = function (center) {
100
+ var _a, _b;
101
+ if (center == null) {
102
+ this.restoreDefault();
103
+ return;
104
+ }
105
+ if (this._center === center)
106
+ return;
107
+ this.disposeDefaultUi();
108
+ if (!this._isCustom) {
109
+ this._defaultStore.dispose();
110
+ }
111
+ else {
112
+ (_b = (_a = this._center).dispose) === null || _b === void 0 ? void 0 : _b.call(_a);
113
+ }
114
+ this._center = center;
115
+ this._isCustom = true;
116
+ if (this._docManager) {
117
+ this._center.setActiveSession(this._docManager.activeSessionId);
118
+ }
119
+ };
120
+ /**
121
+ * Restores the built-in store and remounts the default UI when enabled.
122
+ */
123
+ AcApNotificationService.prototype.restoreDefault = function () {
124
+ var _a, _b;
125
+ if (!this._isCustom) {
126
+ if (this._showDefaultUi && !this._defaultUi) {
127
+ this.mountDefaultUi();
128
+ }
129
+ return;
130
+ }
131
+ (_b = (_a = this._center).dispose) === null || _b === void 0 ? void 0 : _b.call(_a);
132
+ this._defaultStore = new AcApNotificationStore();
133
+ this._center = this._defaultStore;
134
+ this._isCustom = false;
135
+ if (this._docManager) {
136
+ this._center.setActiveSession(this._docManager.activeSessionId);
137
+ }
138
+ if (this._showDefaultUi) {
139
+ this.mountDefaultUi();
140
+ }
141
+ };
142
+ /**
143
+ * Resolves the DOM host for the default bell / panel.
144
+ *
145
+ * @returns Explicit host, view container, or `document.body`.
146
+ */
147
+ AcApNotificationService.prototype.resolveHost = function () {
148
+ var _a, _b;
149
+ if (this._host)
150
+ return this._host;
151
+ var viewContainer = (_b = (_a = this._docManager) === null || _a === void 0 ? void 0 : _a.curView) === null || _b === void 0 ? void 0 : _b.container;
152
+ if (viewContainer)
153
+ return viewContainer;
154
+ return document.body;
155
+ };
156
+ /**
157
+ * Mounts (or remounts) {@link AcUiDefaultNotificationUi} on {@link resolveHost}.
158
+ */
159
+ AcApNotificationService.prototype.mountDefaultUi = function () {
160
+ this.disposeDefaultUi();
161
+ if (typeof document === 'undefined')
162
+ return;
163
+ this._defaultUi = new AcUiDefaultNotificationUi(this._center, this.resolveHost(), { placement: this._placement });
164
+ };
165
+ /**
166
+ * Tears down the default DOM UI if present.
167
+ */
168
+ AcApNotificationService.prototype.disposeDefaultUi = function () {
169
+ var _a;
170
+ (_a = this._defaultUi) === null || _a === void 0 ? void 0 : _a.dispose();
171
+ this._defaultUi = undefined;
172
+ };
173
+ /**
174
+ * Tears down bridge and UI (e.g. DocManager destroy).
175
+ *
176
+ * Resets to a fresh built-in store so a later {@link install} / host
177
+ * {@link setCenter} does not reuse a disposed custom center instance.
178
+ */
179
+ AcApNotificationService.prototype.dispose = function () {
180
+ var _a, _b, _c;
181
+ (_a = this._bridge) === null || _a === void 0 ? void 0 : _a.uninstall();
182
+ this._bridge = undefined;
183
+ this.disposeDefaultUi();
184
+ (_c = (_b = this._center).dispose) === null || _c === void 0 ? void 0 : _c.call(_b);
185
+ this._defaultStore = new AcApNotificationStore();
186
+ this._center = this._defaultStore;
187
+ this._isCustom = false;
188
+ this._docManager = undefined;
189
+ this._host = undefined;
190
+ this._showDefaultUi = true;
191
+ this._placement = undefined;
192
+ };
193
+ return AcApNotificationService;
194
+ }());
195
+ /** Process-wide notification service singleton. */
196
+ var notificationService = new AcApNotificationService();
197
+ /**
198
+ * Returns the active notification center (built-in or host override).
199
+ *
200
+ * @returns The center currently owned by the service.
201
+ */
202
+ export function acapNotificationCenter() {
203
+ return notificationService.center;
204
+ }
205
+ /**
206
+ * Installs / replaces the host notification center.
207
+ *
208
+ * Pass `null` to restore the built-in DOM notification center.
209
+ *
210
+ * @param center - Custom center adapter, or `null` to restore the default.
211
+ *
212
+ * @example
213
+ * ```ts
214
+ * // cad-viewer
215
+ * acapSetNotificationCenter(vueNotificationAdapter)
216
+ *
217
+ * // later / on unmount
218
+ * acapSetNotificationCenter(null)
219
+ * ```
220
+ */
221
+ export function acapSetNotificationCenter(center) {
222
+ notificationService.setCenter(center);
223
+ }
224
+ /**
225
+ * Returns the explicit built-in notification bell placement, if any.
226
+ *
227
+ * @returns Placement override, or `undefined` when using layout defaults.
228
+ */
229
+ export function acapGetNotificationUiPlacement() {
230
+ return notificationService.placement;
231
+ }
232
+ /**
233
+ * Sets the built-in notification bell corner (default DOM UI only).
234
+ *
235
+ * Pass `undefined` / omit override via `null` to restore layout defaults:
236
+ * phone `top-right`, pad / desktop `bottom-right`.
237
+ *
238
+ * Has no effect when a custom center replaced the default UI
239
+ * (`showDefaultUi: false` or {@link acapSetNotificationCenter}).
240
+ *
241
+ * @param placement - Corner placement, or `null` / `undefined` for auto.
242
+ *
243
+ * @example
244
+ * ```ts
245
+ * acapSetNotificationUiPlacement('bottom-left')
246
+ * acapSetNotificationUiPlacement(null) // restore auto
247
+ * ```
248
+ */
249
+ export function acapSetNotificationUiPlacement(placement) {
250
+ notificationService.setPlacement(placement !== null && placement !== void 0 ? placement : undefined);
251
+ }
252
+ /**
253
+ * @internal Used by {@link AcApDocManager}.
254
+ *
255
+ * @param docManager - Manager to bind the bridge to.
256
+ * @param options - Bridge / UI install flags.
257
+ */
258
+ export function acapInstallNotificationService(docManager, options) {
259
+ notificationService.install(docManager, options);
260
+ }
261
+ /**
262
+ * @internal Used by {@link AcApDocManager.destroy}.
263
+ */
264
+ export function acapDisposeNotificationService() {
265
+ notificationService.dispose();
266
+ }
267
+ /**
268
+ * Process-wide service instance (bridge + center + optional default UI).
269
+ */
270
+ export { notificationService as acapNotificationService };
271
+ //# sourceMappingURL=AcApNotificationService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApNotificationService.js","sourceRoot":"","sources":["../../../src/app/notification/AcApNotificationService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EAE1B,MAAM,oCAAoC,CAAA;AAE3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAmC/D;;;;;;GAMG;AACH;IAAA;QACE,gEAAgE;QACxD,YAAO,GAA2B,IAAI,qBAAqB,EAAE,CAAA;QACrE,uEAAuE;QAC/D,kBAAa,GAAG,IAAI,CAAC,OAAgC,CAAA;QAO7D,yEAAyE;QACjE,mBAAc,GAAG,IAAI,CAAA;QAG7B,+DAA+D;QACvD,cAAS,GAAG,KAAK,CAAA;IAuK3B,CAAC;IAnKC;;;;;;OAMG;IACH,yCAAO,GAAP,UAAQ,UAA0B,EAAE,OAA4C;QAAhF,iBAmBC;;QAnBmC,wBAAA,EAAA,YAA4C;QAC9E,IAAI,CAAC,WAAW,GAAG,UAAU,CAAA;QAC7B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,CAAA;QACzB,IAAI,CAAC,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A;IAC7B,CAAC;IACH,8BAAC;AAAD,CAAC,AAvLD,IAuLC;AAED,mDAAmD;AACnD,IAAM,mBAAmB,GAAG,IAAI,uBAAuB,EAAE,CAAA;AAEzD;;;;GAIG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,mBAAmB,CAAC,MAAM,CAAA;AACnC,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,yBAAyB,CACvC,MAAqC;IAErC,mBAAmB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;AACvC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,8BAA8B;IAG5C,OAAO,mBAAmB,CAAC,SAAS,CAAA;AACtC,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,8BAA8B,CAC5C,SAA2D;IAE3D,mBAAmB,CAAC,YAAY,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,SAAS,CAAC,CAAA;AAC1D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,8BAA8B,CAC5C,UAA0B,EAC1B,OAAwC;IAExC,mBAAmB,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;AAClD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,8BAA8B;IAC5C,mBAAmB,CAAC,OAAO,EAAE,CAAA;AAC/B,CAAC;AAED;;GAEG;AACH,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,CAAA"}
@@ -0,0 +1,147 @@
1
+ import type { AcApNotification, AcApNotificationCenter, AcApNotificationInput, AcApNotificationSource } from './AcApNotificationTypes';
2
+ /**
3
+ * In-memory notification store used by the built-in DOM notification UI and as
4
+ * a reference implementation for custom centers.
5
+ *
6
+ * Notifications are kept in per-session buckets. {@link notifications} /
7
+ * {@link unreadCount} / mutation helpers (except {@link clearSession} and
8
+ * {@link remove} by id) operate on the active session.
9
+ */
10
+ export declare class AcApNotificationStore implements AcApNotificationCenter {
11
+ /** Per-session notification lists keyed by {@link AcApDocSession.id}. */
12
+ private readonly _buckets;
13
+ /** Session currently exposed via {@link notifications}. */
14
+ private _activeSessionId;
15
+ /** Monotonic counter used to allocate notification ids. */
16
+ private _nextId;
17
+ /** Observers notified after any mutating change. */
18
+ private readonly _listeners;
19
+ /**
20
+ * Notifications for the active document session only.
21
+ */
22
+ get notifications(): readonly AcApNotification[];
23
+ /**
24
+ * Number of notifications in the active session.
25
+ */
26
+ get unreadCount(): number;
27
+ /**
28
+ * Currently active session id, or `null` when none is set.
29
+ */
30
+ get activeSessionId(): string | null;
31
+ /**
32
+ * Registers a change listener.
33
+ *
34
+ * @param listener - Callback invoked after list / session mutations.
35
+ * @returns Unsubscribe function.
36
+ */
37
+ subscribe(listener: () => void): () => void;
38
+ /**
39
+ * Notifies all {@link subscribe} listeners.
40
+ */
41
+ private emitChange;
42
+ /**
43
+ * Returns the mutable list for the active session, or an empty array.
44
+ */
45
+ private activeList;
46
+ /**
47
+ * Replaces the active session's list, deleting the bucket when empty.
48
+ *
49
+ * @param list - Next notification list for the active session.
50
+ */
51
+ private setActiveList;
52
+ /**
53
+ * Resolves which session bucket an add should target.
54
+ *
55
+ * @param explicit - Optional `sessionId` from the input payload.
56
+ * @returns Session id, or `null` when neither explicit nor active is set.
57
+ */
58
+ private resolveSessionId;
59
+ /**
60
+ * Switches which document's list is exposed via {@link notifications}.
61
+ *
62
+ * @param sessionId - Active session id, or `null` when none.
63
+ */
64
+ setActiveSession(sessionId: string | null): void;
65
+ /**
66
+ * Drops all notifications for a closed document session.
67
+ *
68
+ * @param sessionId - Session whose bucket should be deleted.
69
+ */
70
+ clearSession(sessionId: string): void;
71
+ /**
72
+ * Inserts a notification into the resolved session bucket (newest first).
73
+ *
74
+ * @param notification - Entry fields without `id` / `timestamp`.
75
+ * @returns The assigned id, or `''` when no session could be resolved.
76
+ */
77
+ add(notification: AcApNotificationInput): string;
78
+ /**
79
+ * Adds an `info` notification to the active (or explicit) session.
80
+ *
81
+ * @param title - Headline text.
82
+ * @param message - Optional body.
83
+ * @param options - Extra fields merged into the entry.
84
+ * @returns The assigned notification id.
85
+ */
86
+ info(title: string, message?: string, options?: Partial<AcApNotification>): string;
87
+ /**
88
+ * Adds a `warning` notification to the active (or explicit) session.
89
+ *
90
+ * @param title - Headline text.
91
+ * @param message - Optional body.
92
+ * @param options - Extra fields merged into the entry.
93
+ * @returns The assigned notification id.
94
+ */
95
+ warning(title: string, message?: string, options?: Partial<AcApNotification>): string;
96
+ /**
97
+ * Adds an `error` notification (defaults to `persistent: true`).
98
+ *
99
+ * @param title - Headline text.
100
+ * @param message - Optional body.
101
+ * @param options - Extra fields merged into the entry.
102
+ * @returns The assigned notification id.
103
+ */
104
+ error(title: string, message?: string, options?: Partial<AcApNotification>): string;
105
+ /**
106
+ * Adds a `success` notification to the active (or explicit) session.
107
+ *
108
+ * @param title - Headline text.
109
+ * @param message - Optional body.
110
+ * @param options - Extra fields merged into the entry.
111
+ * @returns The assigned notification id.
112
+ */
113
+ success(title: string, message?: string, options?: Partial<AcApNotification>): string;
114
+ /**
115
+ * Removes a notification by id from any session bucket.
116
+ *
117
+ * @param id - Notification id previously returned by {@link add}.
118
+ */
119
+ remove(id: string): void;
120
+ /**
121
+ * Clears notifications for the active session only.
122
+ */
123
+ clear(): void;
124
+ /**
125
+ * Removes notifications matching a predicate from the active session.
126
+ *
127
+ * @param predicate - Return `true` for entries that should be removed.
128
+ */
129
+ removeWhere(predicate: (notification: AcApNotification) => boolean): void;
130
+ /**
131
+ * Removes all active-session notifications with the given source.
132
+ *
133
+ * @param source - Producer to clear.
134
+ */
135
+ removeBySource(source: AcApNotificationSource): void;
136
+ /**
137
+ * Drops `font-missed` entries that no longer apply given the still-missing fonts.
138
+ *
139
+ * @param missedFontNames - Fonts that are still unresolved.
140
+ */
141
+ removeResolvedFontMissedNotifications(missedFontNames: Iterable<string>): void;
142
+ /**
143
+ * Clears listeners, all session buckets, and the active session pointer.
144
+ */
145
+ dispose(): void;
146
+ }
147
+ //# sourceMappingURL=AcApNotificationStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApNotificationStore.d.ts","sourceRoot":"","sources":["../../../src/app/notification/AcApNotificationStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,yBAAyB,CAAA;AAEhC;;;;;;;GAOG;AACH,qBAAa,qBAAsB,YAAW,sBAAsB;IAClE,yEAAyE;IACzE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwC;IACjE,2DAA2D;IAC3D,OAAO,CAAC,gBAAgB,CAAsB;IAC9C,2DAA2D;IAC3D,OAAO,CAAC,OAAO,CAAI;IACnB,oDAAoD;IACpD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAwB;IAEnD;;OAEG;IACH,IAAI,aAAa,IAAI,SAAS,gBAAgB,EAAE,CAE/C;IAED;;OAEG;IACH,IAAI,WAAW,IAAI,MAAM,CAExB;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,MAAM,GAAG,IAAI,CAEnC;IAED;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAO3C;;OAEG;IACH,OAAO,CAAC,UAAU;IAMlB;;OAEG;IACH,OAAO,CAAC,UAAU;IAKlB;;;;OAIG;IACH,OAAO,CAAC,aAAa;IASrB;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAIxB;;;;OAIG;IACH,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAMhD;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAWrC;;;;;OAKG;IACH,GAAG,CAAC,YAAY,EAAE,qBAAqB,GAAG,MAAM;IAmBhD;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,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