file-viewer3 1.0.26 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/README.en.md +7 -377
  2. package/README.md +8 -352
  3. package/dist/file-viewer3.css +1 -2
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.js +2 -0
  6. package/package.json +27 -129
  7. package/dist/components/3MFLoader.js +0 -527
  8. package/dist/components/AMFLoader.js +0 -188
  9. package/dist/components/ArchiveViewer.js +0 -526
  10. package/dist/components/AudioViewer.js +0 -66
  11. package/dist/components/CadViewer.js +0 -9040
  12. package/dist/components/CodeViewer.js +0 -151
  13. package/dist/components/ColladaLoader.js +0 -2282
  14. package/dist/components/DrawingViewer.js +0 -295
  15. package/dist/components/EdaViewer.js +0 -630
  16. package/dist/components/EmailViewer.js +0 -276
  17. package/dist/components/EpubViewer.js +0 -172
  18. package/dist/components/FBXLoader.js +0 -1574
  19. package/dist/components/GLTFLoader.js +0 -1383
  20. package/dist/components/ImageViewer.js +0 -1519
  21. package/dist/components/KMZLoader.js +0 -45
  22. package/dist/components/MarkdownViewer.js +0 -1476
  23. package/dist/components/ModelViewer.js +0 -797
  24. package/dist/components/OBJLoader.js +0 -287
  25. package/dist/components/OfdViewer.js +0 -133
  26. package/dist/components/PCDLoader.js +0 -141
  27. package/dist/components/PLYLoader.js +0 -305
  28. package/dist/components/PdfView.js +0 -27667
  29. package/dist/components/PptxRender.js +0 -11217
  30. package/dist/components/STLLoader.js +0 -83
  31. package/dist/components/TDSLoader.js +0 -228
  32. package/dist/components/TypstViewer.js +0 -1697
  33. package/dist/components/USDLoader.js +0 -2526
  34. package/dist/components/UmdViewer.js +0 -1873
  35. package/dist/components/VRMLLoader.js +0 -6422
  36. package/dist/components/VTKLoader.js +0 -337
  37. package/dist/components/XYZLoader.js +0 -30
  38. package/dist/components/XlsxTable.js +0 -7879
  39. package/dist/components/__vite-browser-external.js +0 -7
  40. package/dist/components/_plugin-vue_export-helper.js +0 -8
  41. package/dist/components/ar-SA-G6X2FPQ2.js +0 -523
  42. package/dist/components/arc.js +0 -79
  43. package/dist/components/architecture-7EHR7CIX.js +0 -3
  44. package/dist/components/architectureDiagram-3BPJPVTR.js +0 -4096
  45. package/dist/components/archive.js +0 -24
  46. package/dist/components/asyncToGenerator.js +0 -29
  47. package/dist/components/audio.js +0 -19
  48. package/dist/components/az-AZ-76LH7QW2.js +0 -523
  49. package/dist/components/bash.js +0 -169
  50. package/dist/components/bg-BG-XCXSNQG7.js +0 -523
  51. package/dist/components/blockDiagram-GPEHLZMM.js +0 -3357
  52. package/dist/components/bn-BD-2XOGV67Q.js +0 -523
  53. package/dist/components/c4Diagram-AAUBKEIU.js +0 -2957
  54. package/dist/components/ca-ES-6MX7JW3Y.js +0 -523
  55. package/dist/components/cad.js +0 -23
  56. package/dist/components/cfb.js +0 -1174
  57. package/dist/components/channel.js +0 -5
  58. package/dist/components/chunk-2J33WTMH.js +0 -26
  59. package/dist/components/chunk-3OPIFGDE.js +0 -4167
  60. package/dist/components/chunk-4BX2VUAB.js +0 -19
  61. package/dist/components/chunk-55IACEB6.js +0 -9
  62. package/dist/components/chunk-5ZQYHXKU.js +0 -669
  63. package/dist/components/chunk-6U3AYISY.js +0 -624
  64. package/dist/components/chunk-727SXJPM.js +0 -3356
  65. package/dist/components/chunk-AGHRB4JF.js +0 -324
  66. package/dist/components/chunk-AQP2D5EJ.js +0 -2055
  67. package/dist/components/chunk-BSJP7CBP.js +0 -83
  68. package/dist/components/chunk-CSCIHK7Q.js +0 -3500
  69. package/dist/components/chunk-EIO257PC.js +0 -1836
  70. package/dist/components/chunk-FMBD7UC4.js +0 -5
  71. package/dist/components/chunk-K2UTITRG.js +0 -17627
  72. package/dist/components/chunk-KSCS5N6A.js +0 -572
  73. package/dist/components/chunk-L5ZTLDWV.js +0 -40
  74. package/dist/components/chunk-LZXEDZCA.js +0 -60
  75. package/dist/components/chunk-ND2GUHAM.js +0 -61
  76. package/dist/components/chunk-NNHCCRGN.js +0 -20425
  77. package/dist/components/chunk-NZK2D7GU.js +0 -68
  78. package/dist/components/chunk-O5CBEL6O.js +0 -1894
  79. package/dist/components/chunk-QZHKN3VN.js +0 -12
  80. package/dist/components/chunk-SRAX5OIU.js +0 -22
  81. package/dist/components/chunk-WU5MYG2G.js +0 -14
  82. package/dist/components/chunk-XPW4576I.js +0 -1146
  83. package/dist/components/chunk-Z3N5DIM6.js +0 -59
  84. package/dist/components/chunk-ZUYEQ4TG.js +0 -22
  85. package/dist/components/chunk.js +0 -23
  86. package/dist/components/classDiagram-4FO5ZUOK.js +0 -29
  87. package/dist/components/classDiagram-v2-Q7XG4LA2.js +0 -29
  88. package/dist/components/compiler.js +0 -2
  89. package/dist/components/core.js +0 -845
  90. package/dist/components/cose-bilkent-S5V4N54A.js +0 -2268
  91. package/dist/components/cpp.js +0 -225
  92. package/dist/components/cs-CZ-2BRQDIVT.js +0 -523
  93. package/dist/components/csharp.js +0 -260
  94. package/dist/components/css.js +0 -140
  95. package/dist/components/cytoscape.esm.js +0 -18114
  96. package/dist/components/da-DK-5WZEPLOC.js +0 -523
  97. package/dist/components/dagre-BM42HDAG.js +0 -325
  98. package/dist/components/dagre.js +0 -1936
  99. package/dist/components/de-DE-XR44H4JA.js +0 -523
  100. package/dist/components/defaultLocale.js +0 -201
  101. package/dist/components/defineProperty.js +0 -50
  102. package/dist/components/diagram-2AECGRRQ.js +0 -229
  103. package/dist/components/diagram-5GNKFQAL.js +0 -108
  104. package/dist/components/diagram-KO2AKTUF.js +0 -443
  105. package/dist/components/diagram-LMA3HP47.js +0 -139
  106. package/dist/components/diagram-OG6HWLK6.js +0 -541
  107. package/dist/components/diff.js +0 -39
  108. package/dist/components/directory-open-01563666.js +0 -26
  109. package/dist/components/directory-open-4ed118d0.js +0 -83
  110. package/dist/components/dist.js +0 -50
  111. package/dist/components/dist2.js +0 -3291
  112. package/dist/components/dist3.js +0 -1593
  113. package/dist/components/documentSearch.js +0 -378
  114. package/dist/components/docx-preview.js +0 -3113
  115. package/dist/components/drawing.js +0 -19
  116. package/dist/components/ebook.js +0 -16
  117. package/dist/components/eda.js +0 -20
  118. package/dist/components/el-GR-BZB4AONW.js +0 -523
  119. package/dist/components/email.js +0 -21
  120. package/dist/components/en-B4ZKOASM.js +0 -3
  121. package/dist/components/erDiagram-TEJ5UH35.js +0 -1719
  122. package/dist/components/es-ES-U4NZUMDT.js +0 -523
  123. package/dist/components/eu-ES-A7QVB2H4.js +0 -523
  124. package/dist/components/eventmodeling-FCH6USID.js +0 -3
  125. package/dist/components/fa-IR-HGAKTJCU.js +0 -523
  126. package/dist/components/fflate.module.js +0 -323
  127. package/dist/components/fi-FI-Z5N7JZ37.js +0 -523
  128. package/dist/components/file-open-002ab408.js +0 -38
  129. package/dist/components/file-open-7c801643.js +0 -24
  130. package/dist/components/file-save-3189631c.js +0 -40
  131. package/dist/components/file-save-745eba88.js +0 -36
  132. package/dist/components/flowDiagram-I6XJVG4X.js +0 -4181
  133. package/dist/components/fr-FR-RHASNOE6.js +0 -523
  134. package/dist/components/ganttDiagram-6RSMTGT7.js +0 -2182
  135. package/dist/components/gitGraph-WXDBUCRP.js +0 -3
  136. package/dist/components/gitGraphDiagram-PVQCEYII.js +0 -788
  137. package/dist/components/gl-ES-HMX3MZ6V.js +0 -523
  138. package/dist/components/global-compiler.js +0 -23
  139. package/dist/components/global-renderer.js +0 -23
  140. package/dist/components/go.js +0 -140
  141. package/dist/components/graphlib.js +0 -1267
  142. package/dist/components/he-IL-6SHJWFNN.js +0 -523
  143. package/dist/components/hi-IN-IWLTKZ5I.js +0 -523
  144. package/dist/components/hu-HU-A5ZG7DT2.js +0 -523
  145. package/dist/components/id-ID-SAP4L64H.js +0 -523
  146. package/dist/components/image-GAAHSSAO.js +0 -3
  147. package/dist/components/image-blob-reduce.esm.js +0 -1429
  148. package/dist/components/image.js +0 -17
  149. package/dist/components/info-J43DQDTF.js +0 -3
  150. package/dist/components/infoDiagram-5YYISTIA.js +0 -26
  151. package/dist/components/ini.js +0 -88
  152. package/dist/components/init.js +0 -15
  153. package/dist/components/ishikawaDiagram-YF4QCWOH.js +0 -718
  154. package/dist/components/it-IT-JPQ66NNP.js +0 -523
  155. package/dist/components/ja-JP-DBVTYXUO.js +0 -523
  156. package/dist/components/java.js +0 -169
  157. package/dist/components/javascript.js +0 -436
  158. package/dist/components/journeyDiagram-JHISSGLW.js +0 -885
  159. package/dist/components/json.js +0 -36
  160. package/dist/components/jszip.min.js +0 -3033
  161. package/dist/components/kaa-6HZHGXH3.js +0 -523
  162. package/dist/components/kab-KAB-ZGHBKWFO.js +0 -523
  163. package/dist/components/kanban-definition-UN3LZRKU.js +0 -986
  164. package/dist/components/katex.js +0 -21979
  165. package/dist/components/kk-KZ-P5N5QNE5.js +0 -523
  166. package/dist/components/km-KH-HSX4SM5Z.js +0 -523
  167. package/dist/components/ko-KR-MTYHY66A.js +0 -523
  168. package/dist/components/ku-TR-6OUDTVRD.js +0 -523
  169. package/dist/components/lib.js +0 -4877
  170. package/dist/components/libarchive.js +0 -360
  171. package/dist/components/linear.js +0 -289
  172. package/dist/components/lt-LT-XHIRWOB4.js +0 -523
  173. package/dist/components/lv-LV-5QDEKY6T.js +0 -523
  174. package/dist/components/markdown.js +0 -181
  175. package/dist/components/md.js +0 -17
  176. package/dist/components/mermaid-parser.core.js +0 -328
  177. package/dist/components/mindmap-definition-RKZ34NQL.js +0 -1016
  178. package/dist/components/model.js +0 -21
  179. package/dist/components/mp4.js +0 -12
  180. package/dist/components/mr-IN-CRQNXWMA.js +0 -523
  181. package/dist/components/my-MM-5M5IBNSE.js +0 -523
  182. package/dist/components/nb-NO-T6EIAALU.js +0 -523
  183. package/dist/components/nestedRender.js +0 -158
  184. package/dist/components/nl-NL-IS3SIHDZ.js +0 -523
  185. package/dist/components/nn-NO-6E72VCQL.js +0 -523
  186. package/dist/components/objectSpread2.js +0 -29
  187. package/dist/components/objectWithoutProperties.js +0 -28
  188. package/dist/components/oc-FR-POXYY2M6.js +0 -523
  189. package/dist/components/ofd.js +0 -5261
  190. package/dist/components/ofd2.js +0 -16
  191. package/dist/components/ordinal.js +0 -65
  192. package/dist/components/pa-IN-N4M65BXN.js +0 -523
  193. package/dist/components/packet-YPE3B663.js +0 -3
  194. package/dist/components/pdf.js +0 -24
  195. package/dist/components/percentages-BXMCSKIN.js +0 -3
  196. package/dist/components/php.js +0 -294
  197. package/dist/components/pica.js +0 -1009
  198. package/dist/components/pie-LRSECV5Y.js +0 -3
  199. package/dist/components/pie.js +0 -47
  200. package/dist/components/pieDiagram-4H26LBE5.js +0 -130
  201. package/dist/components/pl-PL-T2D74RX3.js +0 -523
  202. package/dist/components/postal-mime.js +0 -3146
  203. package/dist/components/pptx.js +0 -15
  204. package/dist/components/printLayout.js +0 -42
  205. package/dist/components/prod.js +0 -21770
  206. package/dist/components/pt-BR-5N22H2LF.js +0 -523
  207. package/dist/components/pt-PT-UZXXM6DQ.js +0 -523
  208. package/dist/components/python.js +0 -238
  209. package/dist/components/quadrantDiagram-W4KKPZXB.js +0 -1988
  210. package/dist/components/radar-GUYGQ44K.js +0 -3
  211. package/dist/components/renderer.js +0 -2
  212. package/dist/components/requirementDiagram-4Y6WPE33.js +0 -2230
  213. package/dist/components/ro-RO-JPDTUUEW.js +0 -523
  214. package/dist/components/rough.esm.js +0 -1355
  215. package/dist/components/roundRect.js +0 -90
  216. package/dist/components/ru-RU-B4JR7IUQ.js +0 -523
  217. package/dist/components/rust.js +0 -169
  218. package/dist/components/sankeyDiagram-5OEKKPKP.js +0 -972
  219. package/dist/components/sequenceDiagram-3UESZ5HK.js +0 -4255
  220. package/dist/components/shared.js +0 -175
  221. package/dist/components/shared2.js +0 -4
  222. package/dist/components/si-LK-N5RQ5JYF.js +0 -523
  223. package/dist/components/sk-SK-C5VTKIMK.js +0 -523
  224. package/dist/components/sl-SI-NN7IZMDC.js +0 -523
  225. package/dist/components/sourceLoading.js +0 -134
  226. package/dist/components/sql.js +0 -118
  227. package/dist/components/src.js +0 -2664
  228. package/dist/components/src2.js +0 -10722
  229. package/dist/components/stateDiagram-AJRCARHV.js +0 -217
  230. package/dist/components/stateDiagram-v2-BHNVJYJU.js +0 -27
  231. package/dist/components/subset-shared.chunk.js +0 -3
  232. package/dist/components/subset-worker.chunk.js +0 -21
  233. package/dist/components/sv-SE-XGPEYMSR.js +0 -523
  234. package/dist/components/ta-IN-2NMHFXQM.js +0 -523
  235. package/dist/components/text.js +0 -20
  236. package/dist/components/th-TH-HPSO5L25.js +0 -523
  237. package/dist/components/three.module.js +0 -13134
  238. package/dist/components/time.js +0 -910
  239. package/dist/components/timeline-definition-PNZ67QCA.js +0 -1084
  240. package/dist/components/tr-TR-DEFEU3FU.js +0 -523
  241. package/dist/components/treeView-BLDUP644.js +0 -3
  242. package/dist/components/treemap-LRROVOQU.js +0 -3
  243. package/dist/components/typescript.js +0 -521
  244. package/dist/components/typst.js +0 -25
  245. package/dist/components/uk-UA-QMV73CPH.js +0 -523
  246. package/dist/components/umd.js +0 -16
  247. package/dist/components/use.js +0 -422
  248. package/dist/components/util.js +0 -49
  249. package/dist/components/vennDiagram-CIIHVFJN.js +0 -1880
  250. package/dist/components/vi-VN-M7AON7JQ.js +0 -523
  251. package/dist/components/viewerZoom.js +0 -92
  252. package/dist/components/wardley-L42UT6IY.js +0 -3
  253. package/dist/components/wardleyDiagram-YWT4CUSO.js +0 -656
  254. package/dist/components/wasm-pack-shim.js +0 -1711
  255. package/dist/components/wasm-pack-shim2.js +0 -934
  256. package/dist/components/wasm.js +0 -97
  257. package/dist/components/word.js +0 -3055
  258. package/dist/components/worker-ref.js +0 -16
  259. package/dist/components/xlsx.js +0 -21
  260. package/dist/components/xml.js +0 -166
  261. package/dist/components/xychartDiagram-2RQKCTM6.js +0 -2015
  262. package/dist/components/yaml.js +0 -144
  263. package/dist/components/zh-CN-LNUGB5OW.js +0 -523
  264. package/dist/components/zh-HK-E62DVLB3.js +0 -523
  265. package/dist/components/zh-TW-RAJ6MFWO.js +0 -523
  266. package/dist/index.mjs +0 -3293
  267. package/dist/src/App.vue.d.ts +0 -3
  268. package/dist/src/compare/CompareApp.vue.d.ts +0 -3
  269. package/dist/src/compare/main.d.ts +0 -0
  270. package/dist/src/compare/useSynchronizedScroll.d.ts +0 -7
  271. package/dist/src/components/HelloWorld.vue.d.ts +0 -3
  272. package/dist/src/components/utils.d.ts +0 -4
  273. package/dist/src/main.d.ts +0 -0
  274. package/dist/src/package/common/printCapability.d.ts +0 -27
  275. package/dist/src/package/common/printLayout.d.ts +0 -16
  276. package/dist/src/package/common/sourceLoading.d.ts +0 -10
  277. package/dist/src/package/common/type.d.ts +0 -544
  278. package/dist/src/package/common/util.d.ts +0 -5
  279. package/dist/src/package/common/worker-ref.d.ts +0 -12
  280. package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +0 -75
  281. package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +0 -9
  282. package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +0 -29
  283. package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +0 -21
  284. package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +0 -8
  285. package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +0 -34
  286. package/dist/src/package/components/FileViewer/index.d.ts +0 -2
  287. package/dist/src/package/components/FileViewer/util.d.ts +0 -3
  288. package/dist/src/package/index.d.ts +0 -22
  289. package/dist/src/package/use/documentLocation.d.ts +0 -15
  290. package/dist/src/package/use/documentSearch.d.ts +0 -234
  291. package/dist/src/package/use/index.d.ts +0 -5
  292. package/dist/src/package/use/loading.d.ts +0 -33
  293. package/dist/src/package/use/viewerZoom.d.ts +0 -42
  294. package/dist/src/package/use/worker.d.ts +0 -24
  295. package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +0 -9
  296. package/dist/src/package/vendors/archive/cache.d.ts +0 -10
  297. package/dist/src/package/vendors/archive/fallback.d.ts +0 -9
  298. package/dist/src/package/vendors/archive/index.d.ts +0 -3
  299. package/dist/src/package/vendors/archive/shared.d.ts +0 -24
  300. package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +0 -7
  301. package/dist/src/package/vendors/audio/index.d.ts +0 -7
  302. package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +0 -9
  303. package/dist/src/package/vendors/cad/index.d.ts +0 -8
  304. package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +0 -15
  305. package/dist/src/package/vendors/drawing/index.d.ts +0 -7
  306. package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +0 -6
  307. package/dist/src/package/vendors/ebook/index.d.ts +0 -7
  308. package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +0 -8
  309. package/dist/src/package/vendors/eda/index.d.ts +0 -2
  310. package/dist/src/package/vendors/eda/parser.d.ts +0 -77
  311. package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +0 -10
  312. package/dist/src/package/vendors/email/index.d.ts +0 -2
  313. package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +0 -6
  314. package/dist/src/package/vendors/image/index.d.ts +0 -4
  315. package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +0 -6
  316. package/dist/src/package/vendors/md/index.d.ts +0 -4
  317. package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +0 -8
  318. package/dist/src/package/vendors/model/index.d.ts +0 -3
  319. package/dist/src/package/vendors/model/shared.d.ts +0 -1
  320. package/dist/src/package/vendors/mp4/index.d.ts +0 -4
  321. package/dist/src/package/vendors/nestedRender.d.ts +0 -10
  322. package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +0 -6
  323. package/dist/src/package/vendors/ofd/index.d.ts +0 -7
  324. package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +0 -10
  325. package/dist/src/package/vendors/pdf/index.d.ts +0 -2
  326. package/dist/src/package/vendors/pdf/worker/index.d.ts +0 -4
  327. package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
  328. package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +0 -9
  329. package/dist/src/package/vendors/pptx/index.d.ts +0 -6
  330. package/dist/src/package/vendors/pptx/options.d.ts +0 -39
  331. package/dist/src/package/vendors/pptx/support/chart.d.ts +0 -4
  332. package/dist/src/package/vendors/pptx/worker/index.d.ts +0 -4
  333. package/dist/src/package/vendors/renders.d.ts +0 -3
  334. package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +0 -7
  335. package/dist/src/package/vendors/text/index.d.ts +0 -10
  336. package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +0 -15
  337. package/dist/src/package/vendors/typst/index.d.ts +0 -8
  338. package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +0 -6
  339. package/dist/src/package/vendors/umd/index.d.ts +0 -7
  340. package/dist/src/package/vendors/umd/parser.d.ts +0 -30
  341. package/dist/src/package/vendors/word/doc.d.ts +0 -5
  342. package/dist/src/package/vendors/word/docx.d.ts +0 -5
  343. package/dist/src/package/vendors/word/docx.worker.d.ts +0 -1
  344. package/dist/src/package/vendors/word/index.d.ts +0 -3
  345. package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +0 -80
  346. package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +0 -25
  347. package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +0 -6
  348. package/dist/src/package/vendors/xlsx/index.d.ts +0 -6
  349. package/dist/src/package/vendors/xlsx/util.d.ts +0 -3
  350. package/dist/src/package/vendors/xlsx/worker/index.d.ts +0 -4
  351. package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +0 -73
  352. package/dist/src/package/vendors/xlsx/worker/sheetjs/color.d.ts +0 -2
  353. package/dist/src/package/vendors/xlsx/worker/sheetjs/index.d.ts +0 -4
  354. package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +0 -1
  355. package/dist/style.css +0 -1
  356. package/dist/wasm/cad/dwfv-render.wasm +0 -0
  357. package/dist/wasm/cad/dwg-worker.js +0 -24
  358. package/dist/wasm/cad/libredwg-web.js +0 -15
  359. package/dist/wasm/cad/libredwg-web.wasm +0 -0
@@ -1,201 +0,0 @@
1
- //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js
2
- function e(e) {
3
- return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
4
- }
5
- function t(e, t) {
6
- if (!isFinite(e) || e === 0) return null;
7
- var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
8
- return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
9
- }
10
- //#endregion
11
- //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js
12
- function n(e) {
13
- return e = t(Math.abs(e)), e ? e[1] : NaN;
14
- }
15
- //#endregion
16
- //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatGroup.js
17
- function r(e, t) {
18
- return function(n, r) {
19
- for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
20
- return a.reverse().join(t);
21
- };
22
- }
23
- //#endregion
24
- //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatNumerals.js
25
- function i(e) {
26
- return function(t) {
27
- return t.replace(/[0-9]/g, function(t) {
28
- return e[+t];
29
- });
30
- };
31
- }
32
- //#endregion
33
- //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js
34
- var a = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
35
- function o(e) {
36
- if (!(t = a.exec(e))) throw Error("invalid format: " + e);
37
- var t;
38
- return new s({
39
- fill: t[1],
40
- align: t[2],
41
- sign: t[3],
42
- symbol: t[4],
43
- zero: t[5],
44
- width: t[6],
45
- comma: t[7],
46
- precision: t[8] && t[8].slice(1),
47
- trim: t[9],
48
- type: t[10]
49
- });
50
- }
51
- o.prototype = s.prototype;
52
- function s(e) {
53
- this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
54
- }
55
- s.prototype.toString = function() {
56
- return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
57
- };
58
- //#endregion
59
- //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTrim.js
60
- function c(e) {
61
- out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
62
- case ".":
63
- r = i = n;
64
- break;
65
- case "0":
66
- r === 0 && (r = n), i = n;
67
- break;
68
- default:
69
- if (!+e[n]) break out;
70
- r > 0 && (r = 0);
71
- break;
72
- }
73
- return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
74
- }
75
- //#endregion
76
- //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatPrefixAuto.js
77
- var l;
78
- function u(e, n) {
79
- var r = t(e, n);
80
- if (!r) return l = void 0, e.toPrecision(n);
81
- var i = r[0], a = r[1], o = a - (l = Math.max(-8, Math.min(8, Math.floor(a / 3))) * 3) + 1, s = i.length;
82
- return o === s ? i : o > s ? i + Array(o - s + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + Array(1 - o).join("0") + t(e, Math.max(0, n + o - 1))[0];
83
- }
84
- //#endregion
85
- //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatRounded.js
86
- function d(e, n) {
87
- var r = t(e, n);
88
- if (!r) return e + "";
89
- var i = r[0], a = r[1];
90
- return a < 0 ? "0." + Array(-a).join("0") + i : i.length > a + 1 ? i.slice(0, a + 1) + "." + i.slice(a + 1) : i + Array(a - i.length + 2).join("0");
91
- }
92
- //#endregion
93
- //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTypes.js
94
- var f = {
95
- "%": (e, t) => (e * 100).toFixed(t),
96
- b: (e) => Math.round(e).toString(2),
97
- c: (e) => e + "",
98
- d: e,
99
- e: (e, t) => e.toExponential(t),
100
- f: (e, t) => e.toFixed(t),
101
- g: (e, t) => e.toPrecision(t),
102
- o: (e) => Math.round(e).toString(8),
103
- p: (e, t) => d(e * 100, t),
104
- r: d,
105
- s: u,
106
- X: (e) => Math.round(e).toString(16).toUpperCase(),
107
- x: (e) => Math.round(e).toString(16)
108
- };
109
- //#endregion
110
- //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/identity.js
111
- function p(e) {
112
- return e;
113
- }
114
- //#endregion
115
- //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/locale.js
116
- var m = Array.prototype.map, h = [
117
- "y",
118
- "z",
119
- "a",
120
- "f",
121
- "p",
122
- "n",
123
- "µ",
124
- "m",
125
- "",
126
- "k",
127
- "M",
128
- "G",
129
- "T",
130
- "P",
131
- "E",
132
- "Z",
133
- "Y"
134
- ];
135
- function g(e) {
136
- var t = e.grouping === void 0 || e.thousands === void 0 ? p : r(m.call(e.grouping, Number), e.thousands + ""), a = e.currency === void 0 ? "" : e.currency[0] + "", s = e.currency === void 0 ? "" : e.currency[1] + "", u = e.decimal === void 0 ? "." : e.decimal + "", d = e.numerals === void 0 ? p : i(m.call(e.numerals, String)), g = e.percent === void 0 ? "%" : e.percent + "", _ = e.minus === void 0 ? "−" : e.minus + "", v = e.nan === void 0 ? "NaN" : e.nan + "";
137
- function y(e, n) {
138
- e = o(e);
139
- var r = e.fill, i = e.align, p = e.sign, m = e.symbol, y = e.zero, b = e.width, x = e.comma, S = e.precision, C = e.trim, w = e.type;
140
- w === "n" ? (x = !0, w = "g") : f[w] || (S === void 0 && (S = 12), C = !0, w = "g"), (y || r === "0" && i === "=") && (y = !0, r = "0", i = "=");
141
- var T = (n && n.prefix !== void 0 ? n.prefix : "") + (m === "$" ? a : m === "#" && /[boxX]/.test(w) ? "0" + w.toLowerCase() : ""), E = (m === "$" ? s : /[%p]/.test(w) ? g : "") + (n && n.suffix !== void 0 ? n.suffix : ""), D = f[w], O = /[defgprs%]/.test(w);
142
- S = S === void 0 ? 6 : /[gprs]/.test(w) ? Math.max(1, Math.min(21, S)) : Math.max(0, Math.min(20, S));
143
- function k(e) {
144
- var n = T, a = E, o, s, f;
145
- if (w === "c") a = D(e) + a, e = "";
146
- else {
147
- e = +e;
148
- var m = e < 0 || 1 / e < 0;
149
- if (e = isNaN(e) ? v : D(Math.abs(e), S), C && (e = c(e)), m && +e == 0 && p !== "+" && (m = !1), n = (m ? p === "(" ? p : _ : p === "-" || p === "(" ? "" : p) + n, a = (w === "s" && !isNaN(e) && l !== void 0 ? h[8 + l / 3] : "") + a + (m && p === "(" ? ")" : ""), O) {
150
- for (o = -1, s = e.length; ++o < s;) if (f = e.charCodeAt(o), 48 > f || f > 57) {
151
- a = (f === 46 ? u + e.slice(o + 1) : e.slice(o)) + a, e = e.slice(0, o);
152
- break;
153
- }
154
- }
155
- }
156
- x && !y && (e = t(e, Infinity));
157
- var g = n.length + e.length + a.length, k = g < b ? Array(b - g + 1).join(r) : "";
158
- switch (x && y && (e = t(k + e, k.length ? b - a.length : Infinity), k = ""), i) {
159
- case "<":
160
- e = n + e + a + k;
161
- break;
162
- case "=":
163
- e = n + k + e + a;
164
- break;
165
- case "^":
166
- e = k.slice(0, g = k.length >> 1) + n + e + a + k.slice(g);
167
- break;
168
- default:
169
- e = k + n + e + a;
170
- break;
171
- }
172
- return d(e);
173
- }
174
- return k.toString = function() {
175
- return e + "";
176
- }, k;
177
- }
178
- function b(e, t) {
179
- var r = Math.max(-8, Math.min(8, Math.floor(n(t) / 3))) * 3, i = Math.pow(10, -r), a = y((e = o(e), e.type = "f", e), { suffix: h[8 + r / 3] });
180
- return function(e) {
181
- return a(i * e);
182
- };
183
- }
184
- return {
185
- format: y,
186
- formatPrefix: b
187
- };
188
- }
189
- //#endregion
190
- //#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js
191
- var _, v, y;
192
- b({
193
- thousands: ",",
194
- grouping: [3],
195
- currency: ["$", ""]
196
- });
197
- function b(e) {
198
- return _ = g(e), v = _.format, y = _.formatPrefix, _;
199
- }
200
- //#endregion
201
- export { n as i, y as n, o as r, v as t };
@@ -1,50 +0,0 @@
1
- import { n as e } from "./chunk.js";
2
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
3
- function t(e) {
4
- "@babel/helpers - typeof";
5
- return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
6
- return typeof e;
7
- } : function(e) {
8
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
9
- }, t(e);
10
- }
11
- var n = e((() => {}));
12
- //#endregion
13
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
14
- function r(e, n) {
15
- if (t(e) != "object" || !e) return e;
16
- var r = e[Symbol.toPrimitive];
17
- if (r !== void 0) {
18
- var i = r.call(e, n || "default");
19
- if (t(i) != "object") return i;
20
- throw TypeError("@@toPrimitive must return a primitive value.");
21
- }
22
- return (n === "string" ? String : Number)(e);
23
- }
24
- var i = e((() => {
25
- n();
26
- }));
27
- //#endregion
28
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
29
- function a(e) {
30
- var n = r(e, "string");
31
- return t(n) == "symbol" ? n : n + "";
32
- }
33
- var o = e((() => {
34
- n(), i();
35
- }));
36
- //#endregion
37
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
38
- function s(e, t, n) {
39
- return (t = a(t)) in e ? Object.defineProperty(e, t, {
40
- value: n,
41
- enumerable: !0,
42
- configurable: !0,
43
- writable: !0
44
- }) : e[t] = n, e;
45
- }
46
- var c = e((() => {
47
- o();
48
- }));
49
- //#endregion
50
- export { c as n, s as t };
@@ -1,229 +0,0 @@
1
- import { n as e, t } from "./objectSpread2.js";
2
- import { n, t as r } from "./asyncToGenerator.js";
3
- import { n as i, r as a } from "./chunk-AGHRB4JF.js";
4
- import { D as o, H as s, K as c, U as l, a as u, b as d, c as f, f as p, v as m, w as h, y as g } from "./chunk-CSCIHK7Q.js";
5
- import { i as _ } from "./chunk-5ZQYHXKU.js";
6
- import { t as v } from "./chunk-WU5MYG2G.js";
7
- import { t as y } from "./mermaid-parser.core.js";
8
- import { t as b } from "./chunk-4BX2VUAB.js";
9
- e(), n();
10
- var x = {
11
- showLegend: !0,
12
- ticks: 5,
13
- max: null,
14
- min: 0,
15
- graticule: "circle"
16
- }, S = {
17
- axes: [],
18
- curves: [],
19
- options: x
20
- }, C = structuredClone(S), w = p.radar, T = /* @__PURE__ */ i(() => _(t(t({}, w), d().radar)), "getConfig"), E = /* @__PURE__ */ i(() => C.axes, "getAxes"), D = /* @__PURE__ */ i(() => C.curves, "getCurves"), O = /* @__PURE__ */ i(() => C.options, "getOptions"), k = /* @__PURE__ */ i((e) => {
21
- C.axes = e.map((e) => {
22
- var t;
23
- return {
24
- name: e.name,
25
- label: (t = e.label) == null ? e.name : t
26
- };
27
- });
28
- }, "setAxes"), A = /* @__PURE__ */ i((e) => {
29
- C.curves = e.map((e) => {
30
- var t;
31
- return {
32
- name: e.name,
33
- label: (t = e.label) == null ? e.name : t,
34
- entries: j(e.entries)
35
- };
36
- });
37
- }, "setCurves"), j = /* @__PURE__ */ i((e) => {
38
- if (e[0].axis == null) return e.map((e) => e.value);
39
- let t = E();
40
- if (t.length === 0) throw Error("Axes must be populated before curves for reference entries");
41
- return t.map((t) => {
42
- let n = e.find((e) => {
43
- var n;
44
- return ((n = e.axis) == null ? void 0 : n.$refText) === t.name;
45
- });
46
- if (n === void 0) throw Error("Missing entry for axis " + t.label);
47
- return n.value;
48
- });
49
- }, "computeCurveEntries"), M = {
50
- getAxes: E,
51
- getCurves: D,
52
- getOptions: O,
53
- setAxes: k,
54
- setCurves: A,
55
- setOptions: /* @__PURE__ */ i((e) => {
56
- var t, n, r, i, a, o, s, c, l, u;
57
- let d = e.reduce((e, t) => (e[t.name] = t, e), {});
58
- C.options = {
59
- showLegend: (t = (n = d.showLegend) == null ? void 0 : n.value) == null ? x.showLegend : t,
60
- ticks: (r = (i = d.ticks) == null ? void 0 : i.value) == null ? x.ticks : r,
61
- max: (a = (o = d.max) == null ? void 0 : o.value) == null ? x.max : a,
62
- min: (s = (c = d.min) == null ? void 0 : c.value) == null ? x.min : s,
63
- graticule: (l = (u = d.graticule) == null ? void 0 : u.value) == null ? x.graticule : l
64
- };
65
- }, "setOptions"),
66
- getConfig: T,
67
- clear: /* @__PURE__ */ i(() => {
68
- u(), C = structuredClone(S);
69
- }, "clear"),
70
- setAccTitle: l,
71
- getAccTitle: g,
72
- setDiagramTitle: c,
73
- getDiagramTitle: h,
74
- getAccDescription: m,
75
- setAccDescription: s
76
- }, N = /* @__PURE__ */ i((e) => {
77
- b(e, M);
78
- let { axes: t, curves: n, options: r } = e;
79
- M.setAxes(t), M.setCurves(n), M.setOptions(r);
80
- }, "populate"), P = { parse: /* @__PURE__ */ i(function() {
81
- var e = r(function* (e) {
82
- let t = yield y("radar", e);
83
- a.debug(t), N(t);
84
- });
85
- return function(t) {
86
- return e.apply(this, arguments);
87
- };
88
- }(), "parse") }, F = /* @__PURE__ */ i((e, t, n, r) => {
89
- var i;
90
- let a = r.db, o = a.getAxes(), s = a.getCurves(), c = a.getOptions(), l = a.getConfig(), u = a.getDiagramTitle(), d = I(v(t), l), f = (i = c.max) == null ? Math.max(...s.map((e) => Math.max(...e.entries))) : i, p = c.min, m = Math.min(l.width, l.height) / 2;
91
- L(d, o, m, c.ticks, c.graticule), R(d, o, m, l), z(d, o, s, p, f, c.graticule, l), H(d, s, c.showLegend, l), d.append("text").attr("class", "radarTitle").text(u).attr("x", 0).attr("y", -l.height / 2 - l.marginTop);
92
- }, "draw"), I = /* @__PURE__ */ i((e, t) => {
93
- var n;
94
- let r = t.width + t.marginLeft + t.marginRight, i = t.height + t.marginTop + t.marginBottom, a = {
95
- x: t.marginLeft + t.width / 2,
96
- y: t.marginTop + t.height / 2
97
- };
98
- return f(e, i, r, (n = t.useMaxWidth) == null ? !0 : n), e.attr("viewBox", `0 0 ${r} ${i}`), e.append("g").attr("transform", `translate(${a.x}, ${a.y})`);
99
- }, "drawFrame"), L = /* @__PURE__ */ i((e, t, n, r, i) => {
100
- if (i === "circle") for (let t = 0; t < r; t++) {
101
- let i = n * (t + 1) / r;
102
- e.append("circle").attr("r", i).attr("class", "radarGraticule");
103
- }
104
- else if (i === "polygon") {
105
- let i = t.length;
106
- for (let a = 0; a < r; a++) {
107
- let o = n * (a + 1) / r, s = t.map((e, t) => {
108
- let n = 2 * t * Math.PI / i - Math.PI / 2;
109
- return `${o * Math.cos(n)},${o * Math.sin(n)}`;
110
- }).join(" ");
111
- e.append("polygon").attr("points", s).attr("class", "radarGraticule");
112
- }
113
- }
114
- }, "drawGraticule"), R = /* @__PURE__ */ i((e, t, n, r) => {
115
- let i = t.length;
116
- for (let a = 0; a < i; a++) {
117
- let o = t[a].label, s = 2 * a * Math.PI / i - Math.PI / 2;
118
- e.append("line").attr("x1", 0).attr("y1", 0).attr("x2", n * r.axisScaleFactor * Math.cos(s)).attr("y2", n * r.axisScaleFactor * Math.sin(s)).attr("class", "radarAxisLine"), e.append("text").text(o).attr("x", n * r.axisLabelFactor * Math.cos(s)).attr("y", n * r.axisLabelFactor * Math.sin(s)).attr("class", "radarAxisLabel");
119
- }
120
- }, "drawAxes");
121
- function z(e, t, n, r, i, a, o) {
122
- let s = t.length, c = Math.min(o.width, o.height) / 2;
123
- n.forEach((t, n) => {
124
- if (t.entries.length !== s) return;
125
- let l = t.entries.map((e, t) => {
126
- let n = 2 * Math.PI * t / s - Math.PI / 2, a = B(e, r, i, c);
127
- return {
128
- x: a * Math.cos(n),
129
- y: a * Math.sin(n)
130
- };
131
- });
132
- a === "circle" ? e.append("path").attr("d", V(l, o.curveTension)).attr("class", `radarCurve-${n}`) : a === "polygon" && e.append("polygon").attr("points", l.map((e) => `${e.x},${e.y}`).join(" ")).attr("class", `radarCurve-${n}`);
133
- });
134
- }
135
- i(z, "drawCurves");
136
- function B(e, t, n, r) {
137
- return r * (Math.min(Math.max(e, t), n) - t) / (n - t);
138
- }
139
- i(B, "relativeRadius");
140
- function V(e, t) {
141
- let n = e.length, r = `M${e[0].x},${e[0].y}`;
142
- for (let i = 0; i < n; i++) {
143
- let a = e[(i - 1 + n) % n], o = e[i], s = e[(i + 1) % n], c = e[(i + 2) % n], l = {
144
- x: o.x + (s.x - a.x) * t,
145
- y: o.y + (s.y - a.y) * t
146
- }, u = {
147
- x: s.x - (c.x - o.x) * t,
148
- y: s.y - (c.y - o.y) * t
149
- };
150
- r += ` C${l.x},${l.y} ${u.x},${u.y} ${s.x},${s.y}`;
151
- }
152
- return `${r} Z`;
153
- }
154
- i(V, "closedRoundCurve");
155
- function H(e, t, n, r) {
156
- if (!n) return;
157
- let i = (r.width / 2 + r.marginRight) * 3 / 4, a = -(r.height / 2 + r.marginTop) * 3 / 4;
158
- t.forEach((t, n) => {
159
- let r = e.append("g").attr("transform", `translate(${i}, ${a + n * 20})`);
160
- r.append("rect").attr("width", 12).attr("height", 12).attr("class", `radarLegendBox-${n}`), r.append("text").attr("x", 16).attr("y", 0).attr("class", "radarLegendText").text(t.label);
161
- });
162
- }
163
- i(H, "drawLegend");
164
- var U = { draw: F }, W = /* @__PURE__ */ i((e, t) => {
165
- let n = "";
166
- for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) {
167
- let i = e[`cScale${r}`];
168
- n += `
169
- .radarCurve-${r} {
170
- color: ${i};
171
- fill: ${i};
172
- fill-opacity: ${t.curveOpacity};
173
- stroke: ${i};
174
- stroke-width: ${t.curveStrokeWidth};
175
- }
176
- .radarLegendBox-${r} {
177
- fill: ${i};
178
- fill-opacity: ${t.curveOpacity};
179
- stroke: ${i};
180
- }
181
- `;
182
- }
183
- return n;
184
- }, "genIndexStyles"), G = /* @__PURE__ */ i((e) => {
185
- let t = _(o(), d().themeVariables);
186
- return {
187
- themeVariables: t,
188
- radarOptions: _(t.radar, e)
189
- };
190
- }, "buildRadarStyleOptions"), K = {
191
- parser: P,
192
- db: M,
193
- renderer: U,
194
- styles: /* @__PURE__ */ i(({ radar: e } = {}) => {
195
- let { themeVariables: t, radarOptions: n } = G(e);
196
- return `
197
- .radarTitle {
198
- font-size: ${t.fontSize};
199
- color: ${t.titleColor};
200
- dominant-baseline: hanging;
201
- text-anchor: middle;
202
- }
203
- .radarAxisLine {
204
- stroke: ${n.axisColor};
205
- stroke-width: ${n.axisStrokeWidth};
206
- }
207
- .radarAxisLabel {
208
- dominant-baseline: middle;
209
- text-anchor: middle;
210
- font-size: ${n.axisLabelFontSize}px;
211
- color: ${n.axisColor};
212
- }
213
- .radarGraticule {
214
- fill: ${n.graticuleColor};
215
- fill-opacity: ${n.graticuleOpacity};
216
- stroke: ${n.graticuleColor};
217
- stroke-width: ${n.graticuleStrokeWidth};
218
- }
219
- .radarLegendText {
220
- text-anchor: start;
221
- font-size: ${n.legendFontSize}px;
222
- dominant-baseline: hanging;
223
- }
224
- ${W(t, n)}
225
- `;
226
- }, "styles")
227
- };
228
- //#endregion
229
- export { K as diagram };
@@ -1,108 +0,0 @@
1
- import { n as e, t } from "./asyncToGenerator.js";
2
- import { n, r } from "./chunk-AGHRB4JF.js";
3
- import { H as i, K as a, U as o, a as s, b as c, c as l, f as u, v as d, w as f, y as p } from "./chunk-CSCIHK7Q.js";
4
- import { i as m } from "./chunk-5ZQYHXKU.js";
5
- import { t as h } from "./chunk-WU5MYG2G.js";
6
- import { t as g } from "./mermaid-parser.core.js";
7
- import { t as _ } from "./chunk-4BX2VUAB.js";
8
- import { t as v } from "./chunk-QZHKN3VN.js";
9
- //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5GNKFQAL.mjs
10
- e();
11
- var y = new v(() => ({
12
- cnt: 1,
13
- stack: [{
14
- id: 0,
15
- level: -1,
16
- name: "/",
17
- children: []
18
- }]
19
- })), b = /* @__PURE__ */ n(() => {
20
- y.reset(), s();
21
- }, "clear"), x = /* @__PURE__ */ n(() => y.records.stack[0], "getRoot"), S = /* @__PURE__ */ n(() => y.records.cnt, "getCount"), C = u.treeView, w = {
22
- clear: b,
23
- addNode: /* @__PURE__ */ n((e, t) => {
24
- for (; e <= y.records.stack[y.records.stack.length - 1].level;) y.records.stack.pop();
25
- let n = {
26
- id: y.records.cnt++,
27
- level: e,
28
- name: t,
29
- children: []
30
- };
31
- y.records.stack[y.records.stack.length - 1].children.push(n), y.records.stack.push(n);
32
- }, "addNode"),
33
- getRoot: x,
34
- getCount: S,
35
- getConfig: /* @__PURE__ */ n(() => m(C, c().treeView), "getConfig"),
36
- getAccTitle: p,
37
- getAccDescription: d,
38
- getDiagramTitle: f,
39
- setAccDescription: i,
40
- setAccTitle: o,
41
- setDiagramTitle: a
42
- }, T = /* @__PURE__ */ n((e) => {
43
- _(e, w), e.nodes.map((e) => w.addNode(e.indent ? parseInt(e.indent) : 0, e.name));
44
- }, "populate"), E = { parse: /* @__PURE__ */ n(function() {
45
- var e = t(function* (e) {
46
- let t = yield g("treeView", e);
47
- r.debug(t), T(t);
48
- });
49
- return function(t) {
50
- return e.apply(this, arguments);
51
- };
52
- }(), "parse") }, D = /* @__PURE__ */ n((e, t, n, r, i) => {
53
- let a = r.append("text").text(n.name).attr("dominant-baseline", "middle").attr("class", "treeView-node-label"), { height: o, width: s } = a.node().getBBox(), c = o + i.paddingY * 2, l = s + i.paddingX * 2;
54
- a.attr("x", e + i.paddingX), a.attr("y", t + c / 2), n.BBox = {
55
- x: e,
56
- y: t,
57
- width: l,
58
- height: c
59
- };
60
- }, "positionLabel"), O = /* @__PURE__ */ n((e, t, n, r, i, a) => e.append("line").attr("x1", t).attr("y1", n).attr("x2", r).attr("y2", i).attr("stroke-width", a).attr("class", "treeView-node-line"), "positionLine"), k = /* @__PURE__ */ n((e, t, r) => {
61
- let i = 0, a = 0, o = /* @__PURE__ */ n((e, t, n, r) => {
62
- let o = r * (n.rowIndent + n.paddingX);
63
- D(o, i, t, e, n);
64
- let { height: s, width: c } = t.BBox;
65
- O(e, o - n.rowIndent, i + s / 2, o, i + s / 2, n.lineThickness), a = Math.max(a, o + c), i += s;
66
- }, "drawNode"), s = /* @__PURE__ */ n((t, n = 0) => {
67
- o(e, t, r, n), t.children.forEach((e) => {
68
- s(e, n + 1);
69
- });
70
- let { x: i, y: a, height: c } = t.BBox;
71
- if (t.children.length) {
72
- let { y: n, height: o } = t.children[t.children.length - 1].BBox;
73
- O(e, i + r.paddingX, a + c, i + r.paddingX, n + o / 2 + r.lineThickness / 2, r.lineThickness);
74
- }
75
- }, "processNode");
76
- return s(t), {
77
- totalHeight: i,
78
- totalWidth: a
79
- };
80
- }, "drawTree"), A = { draw: /* @__PURE__ */ n((e, t, n, i) => {
81
- r.debug("Rendering treeView diagram\n" + e);
82
- let a = i.db, o = a.getRoot(), s = a.getConfig(), c = h(t), u = c.append("g");
83
- u.attr("class", "tree-view");
84
- let { totalHeight: d, totalWidth: f } = k(u, o, s);
85
- c.attr("viewBox", `-${s.lineThickness / 2} 0 ${f} ${d}`), l(c, d, f, s.useMaxWidth);
86
- }, "draw") }, j = {
87
- labelFontSize: "16px",
88
- labelColor: "black",
89
- lineColor: "black"
90
- }, M = {
91
- db: w,
92
- renderer: A,
93
- parser: E,
94
- styles: /* @__PURE__ */ n(({ treeView: e }) => {
95
- let { labelFontSize: t, labelColor: n, lineColor: r } = m(j, e);
96
- return `
97
- .treeView-node-label {
98
- font-size: ${t};
99
- fill: ${n};
100
- }
101
- .treeView-node-line {
102
- stroke: ${r};
103
- }
104
- `;
105
- }, "styles")
106
- };
107
- //#endregion
108
- export { M as diagram };