@flyfish-group/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 +3 -388
  2. package/README.md +3 -364
  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 +22 -126
  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,986 +0,0 @@
1
- import { n as e, t } from "./asyncToGenerator.js";
2
- import { n, r } from "./chunk-AGHRB4JF.js";
3
- import { J as i, et as a, f as o, rt as s, tt as c, x as l, z as u } from "./chunk-CSCIHK7Q.js";
4
- import "./chunk-5ZQYHXKU.js";
5
- import { t as d } from "./chunk-WU5MYG2G.js";
6
- import { n as f, t as p } from "./chunk-XPW4576I.js";
7
- import "./chunk-L5ZTLDWV.js";
8
- import "./chunk-NZK2D7GU.js";
9
- import "./chunk-O5CBEL6O.js";
10
- import { a as m, c as h, i as g } from "./chunk-3OPIFGDE.js";
11
- import { t as _ } from "./chunk-FMBD7UC4.js";
12
- //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-UN3LZRKU.mjs
13
- e();
14
- var v = (function() {
15
- var e = /* @__PURE__ */ n(function(e, t, n, r) {
16
- for (n = n || {}, r = e.length; r--; n[e[r]] = t);
17
- return n;
18
- }, "o"), t = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
19
- 6,
20
- 7,
21
- 8
22
- ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
23
- 6,
24
- 7,
25
- 11
26
- ], m = [1, 31], h = [
27
- 6,
28
- 7,
29
- 11,
30
- 24
31
- ], g = [
32
- 1,
33
- 6,
34
- 13,
35
- 16,
36
- 17,
37
- 20,
38
- 23
39
- ], _ = [1, 35], v = [1, 36], y = [
40
- 1,
41
- 6,
42
- 7,
43
- 11,
44
- 13,
45
- 16,
46
- 17,
47
- 20,
48
- 23
49
- ], b = [1, 38], x = {
50
- trace: /* @__PURE__ */ n(function() {}, "trace"),
51
- yy: {},
52
- symbols_: {
53
- error: 2,
54
- start: 3,
55
- mindMap: 4,
56
- spaceLines: 5,
57
- SPACELINE: 6,
58
- NL: 7,
59
- KANBAN: 8,
60
- document: 9,
61
- stop: 10,
62
- EOF: 11,
63
- statement: 12,
64
- SPACELIST: 13,
65
- node: 14,
66
- shapeData: 15,
67
- ICON: 16,
68
- CLASS: 17,
69
- nodeWithId: 18,
70
- nodeWithoutId: 19,
71
- NODE_DSTART: 20,
72
- NODE_DESCR: 21,
73
- NODE_DEND: 22,
74
- NODE_ID: 23,
75
- SHAPE_DATA: 24,
76
- $accept: 0,
77
- $end: 1
78
- },
79
- terminals_: {
80
- 2: "error",
81
- 6: "SPACELINE",
82
- 7: "NL",
83
- 8: "KANBAN",
84
- 11: "EOF",
85
- 13: "SPACELIST",
86
- 16: "ICON",
87
- 17: "CLASS",
88
- 20: "NODE_DSTART",
89
- 21: "NODE_DESCR",
90
- 22: "NODE_DEND",
91
- 23: "NODE_ID",
92
- 24: "SHAPE_DATA"
93
- },
94
- productions_: [
95
- 0,
96
- [3, 1],
97
- [3, 2],
98
- [5, 1],
99
- [5, 2],
100
- [5, 2],
101
- [4, 2],
102
- [4, 3],
103
- [10, 1],
104
- [10, 1],
105
- [10, 1],
106
- [10, 2],
107
- [10, 2],
108
- [9, 3],
109
- [9, 2],
110
- [12, 3],
111
- [12, 2],
112
- [12, 2],
113
- [12, 2],
114
- [12, 1],
115
- [12, 2],
116
- [12, 1],
117
- [12, 1],
118
- [12, 1],
119
- [12, 1],
120
- [14, 1],
121
- [14, 1],
122
- [19, 3],
123
- [18, 1],
124
- [18, 4],
125
- [15, 2],
126
- [15, 1]
127
- ],
128
- performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
129
- var s = a.length - 1;
130
- switch (i) {
131
- case 6:
132
- case 7: return r;
133
- case 8:
134
- r.getLogger().trace("Stop NL ");
135
- break;
136
- case 9:
137
- r.getLogger().trace("Stop EOF ");
138
- break;
139
- case 11:
140
- r.getLogger().trace("Stop NL2 ");
141
- break;
142
- case 12:
143
- r.getLogger().trace("Stop EOF2 ");
144
- break;
145
- case 15:
146
- r.getLogger().info("Node: ", a[s - 1].id), r.addNode(a[s - 2].length, a[s - 1].id, a[s - 1].descr, a[s - 1].type, a[s]);
147
- break;
148
- case 16:
149
- r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
150
- break;
151
- case 17:
152
- r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
153
- break;
154
- case 18:
155
- case 23:
156
- r.decorateNode({ class: a[s] });
157
- break;
158
- case 19:
159
- r.getLogger().trace("SPACELIST");
160
- break;
161
- case 20:
162
- r.getLogger().trace("Node: ", a[s - 1].id), r.addNode(0, a[s - 1].id, a[s - 1].descr, a[s - 1].type, a[s]);
163
- break;
164
- case 21:
165
- r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
166
- break;
167
- case 22:
168
- r.decorateNode({ icon: a[s] });
169
- break;
170
- case 27:
171
- r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
172
- id: a[s - 1],
173
- descr: a[s - 1],
174
- type: r.getType(a[s - 2], a[s])
175
- };
176
- break;
177
- case 28:
178
- this.$ = {
179
- id: a[s],
180
- descr: a[s],
181
- type: 0
182
- };
183
- break;
184
- case 29:
185
- r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
186
- id: a[s - 3],
187
- descr: a[s - 1],
188
- type: r.getType(a[s - 2], a[s])
189
- };
190
- break;
191
- case 30:
192
- this.$ = a[s - 1] + a[s];
193
- break;
194
- case 31:
195
- this.$ = a[s];
196
- break;
197
- }
198
- }, "anonymous"),
199
- table: [
200
- {
201
- 3: 1,
202
- 4: 2,
203
- 5: 3,
204
- 6: [1, 5],
205
- 8: t
206
- },
207
- { 1: [3] },
208
- { 1: [2, 1] },
209
- {
210
- 4: 6,
211
- 6: [1, 7],
212
- 7: [1, 8],
213
- 8: t
214
- },
215
- {
216
- 6: r,
217
- 7: [1, 10],
218
- 9: 9,
219
- 12: 11,
220
- 13: i,
221
- 14: 14,
222
- 16: a,
223
- 17: o,
224
- 18: 17,
225
- 19: 18,
226
- 20: s,
227
- 23: c
228
- },
229
- e(l, [2, 3]),
230
- { 1: [2, 2] },
231
- e(l, [2, 4]),
232
- e(l, [2, 5]),
233
- {
234
- 1: [2, 6],
235
- 6: r,
236
- 12: 21,
237
- 13: i,
238
- 14: 14,
239
- 16: a,
240
- 17: o,
241
- 18: 17,
242
- 19: 18,
243
- 20: s,
244
- 23: c
245
- },
246
- {
247
- 6: r,
248
- 9: 22,
249
- 12: 11,
250
- 13: i,
251
- 14: 14,
252
- 16: a,
253
- 17: o,
254
- 18: 17,
255
- 19: 18,
256
- 20: s,
257
- 23: c
258
- },
259
- {
260
- 6: u,
261
- 7: d,
262
- 10: 23,
263
- 11: f
264
- },
265
- e(p, [2, 24], {
266
- 18: 17,
267
- 19: 18,
268
- 14: 27,
269
- 16: [1, 28],
270
- 17: [1, 29],
271
- 20: s,
272
- 23: c
273
- }),
274
- e(p, [2, 19]),
275
- e(p, [2, 21], {
276
- 15: 30,
277
- 24: m
278
- }),
279
- e(p, [2, 22]),
280
- e(p, [2, 23]),
281
- e(h, [2, 25]),
282
- e(h, [2, 26]),
283
- e(h, [2, 28], { 20: [1, 32] }),
284
- { 21: [1, 33] },
285
- {
286
- 6: u,
287
- 7: d,
288
- 10: 34,
289
- 11: f
290
- },
291
- {
292
- 1: [2, 7],
293
- 6: r,
294
- 12: 21,
295
- 13: i,
296
- 14: 14,
297
- 16: a,
298
- 17: o,
299
- 18: 17,
300
- 19: 18,
301
- 20: s,
302
- 23: c
303
- },
304
- e(g, [2, 14], {
305
- 7: _,
306
- 11: v
307
- }),
308
- e(y, [2, 8]),
309
- e(y, [2, 9]),
310
- e(y, [2, 10]),
311
- e(p, [2, 16], {
312
- 15: 37,
313
- 24: m
314
- }),
315
- e(p, [2, 17]),
316
- e(p, [2, 18]),
317
- e(p, [2, 20], { 24: b }),
318
- e(h, [2, 31]),
319
- { 21: [1, 39] },
320
- { 22: [1, 40] },
321
- e(g, [2, 13], {
322
- 7: _,
323
- 11: v
324
- }),
325
- e(y, [2, 11]),
326
- e(y, [2, 12]),
327
- e(p, [2, 15], { 24: b }),
328
- e(h, [2, 30]),
329
- { 22: [1, 41] },
330
- e(h, [2, 27]),
331
- e(h, [2, 29])
332
- ],
333
- defaultActions: {
334
- 2: [2, 1],
335
- 6: [2, 2]
336
- },
337
- parseError: /* @__PURE__ */ n(function(e, t) {
338
- if (t.recoverable) this.trace(e);
339
- else {
340
- var n = Error(e);
341
- throw n.hash = t, n;
342
- }
343
- }, "parseError"),
344
- parse: /* @__PURE__ */ n(function(e) {
345
- var t = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
346
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
347
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
348
- var v = h.yylloc;
349
- o.push(v);
350
- var y = h.options && h.options.ranges;
351
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
352
- function b(e) {
353
- r.length -= 2 * e, a.length -= e, o.length -= e;
354
- }
355
- n(b, "popStack");
356
- function x() {
357
- var e = i.pop() || h.lex() || p;
358
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
359
- }
360
- n(x, "lex");
361
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
362
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
363
- var M = "";
364
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
365
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
366
- text: h.match,
367
- token: this.terminals_[S] || S,
368
- line: h.yylineno,
369
- loc: v,
370
- expected: j
371
- });
372
- }
373
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
374
- switch (T[0]) {
375
- case 1:
376
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
377
- break;
378
- case 2:
379
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
380
- first_line: o[o.length - (k || 1)].first_line,
381
- last_line: o[o.length - 1].last_line,
382
- first_column: o[o.length - (k || 1)].first_column,
383
- last_column: o[o.length - 1].last_column
384
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
385
- c,
386
- u,
387
- l,
388
- g.yy,
389
- T[1],
390
- a,
391
- o
392
- ].concat(m)), E !== void 0) return E;
393
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
394
- break;
395
- case 3: return !0;
396
- }
397
- }
398
- return !0;
399
- }, "parse")
400
- };
401
- x.lexer = /* @__PURE__ */ (function() {
402
- return {
403
- EOF: 1,
404
- parseError: /* @__PURE__ */ n(function(e, t) {
405
- if (this.yy.parser) this.yy.parser.parseError(e, t);
406
- else throw Error(e);
407
- }, "parseError"),
408
- setInput: /* @__PURE__ */ n(function(e, t) {
409
- return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
410
- first_line: 1,
411
- first_column: 0,
412
- last_line: 1,
413
- last_column: 0
414
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
415
- }, "setInput"),
416
- input: /* @__PURE__ */ n(function() {
417
- var e = this._input[0];
418
- return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
419
- }, "input"),
420
- unput: /* @__PURE__ */ n(function(e) {
421
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
422
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
423
- var r = this.match.split(/(?:\r\n?|\n)/g);
424
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
425
- var i = this.yylloc.range;
426
- return this.yylloc = {
427
- first_line: this.yylloc.first_line,
428
- last_line: this.yylineno + 1,
429
- first_column: this.yylloc.first_column,
430
- last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
431
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
432
- }, "unput"),
433
- more: /* @__PURE__ */ n(function() {
434
- return this._more = !0, this;
435
- }, "more"),
436
- reject: /* @__PURE__ */ n(function() {
437
- if (this.options.backtrack_lexer) this._backtrack = !0;
438
- else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
439
- text: "",
440
- token: null,
441
- line: this.yylineno
442
- });
443
- return this;
444
- }, "reject"),
445
- less: /* @__PURE__ */ n(function(e) {
446
- this.unput(this.match.slice(e));
447
- }, "less"),
448
- pastInput: /* @__PURE__ */ n(function() {
449
- var e = this.matched.substr(0, this.matched.length - this.match.length);
450
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
451
- }, "pastInput"),
452
- upcomingInput: /* @__PURE__ */ n(function() {
453
- var e = this.match;
454
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
455
- }, "upcomingInput"),
456
- showPosition: /* @__PURE__ */ n(function() {
457
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
458
- return e + this.upcomingInput() + "\n" + t + "^";
459
- }, "showPosition"),
460
- test_match: /* @__PURE__ */ n(function(e, t) {
461
- var n, r, i;
462
- if (this.options.backtrack_lexer && (i = {
463
- yylineno: this.yylineno,
464
- yylloc: {
465
- first_line: this.yylloc.first_line,
466
- last_line: this.last_line,
467
- first_column: this.yylloc.first_column,
468
- last_column: this.yylloc.last_column
469
- },
470
- yytext: this.yytext,
471
- match: this.match,
472
- matches: this.matches,
473
- matched: this.matched,
474
- yyleng: this.yyleng,
475
- offset: this.offset,
476
- _more: this._more,
477
- _input: this._input,
478
- yy: this.yy,
479
- conditionStack: this.conditionStack.slice(0),
480
- done: this.done
481
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
482
- first_line: this.yylloc.last_line,
483
- last_line: this.yylineno + 1,
484
- first_column: this.yylloc.last_column,
485
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
486
- }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
487
- if (this._backtrack) {
488
- for (var a in i) this[a] = i[a];
489
- return !1;
490
- }
491
- return !1;
492
- }, "test_match"),
493
- next: /* @__PURE__ */ n(function() {
494
- if (this.done) return this.EOF;
495
- this._input || (this.done = !0);
496
- var e, t, n, r;
497
- this._more || (this.yytext = "", this.match = "");
498
- for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
499
- if (t = n, r = a, this.options.backtrack_lexer) {
500
- if (e = this.test_match(n, i[a]), e !== !1) return e;
501
- if (this._backtrack) {
502
- t = !1;
503
- continue;
504
- } else return !1;
505
- } else if (!this.options.flex) break;
506
- }
507
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
508
- text: "",
509
- token: null,
510
- line: this.yylineno
511
- });
512
- }, "next"),
513
- lex: /* @__PURE__ */ n(function() {
514
- return this.next() || this.lex();
515
- }, "lex"),
516
- begin: /* @__PURE__ */ n(function(e) {
517
- this.conditionStack.push(e);
518
- }, "begin"),
519
- popState: /* @__PURE__ */ n(function() {
520
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
521
- }, "popState"),
522
- _currentRules: /* @__PURE__ */ n(function() {
523
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
524
- }, "_currentRules"),
525
- topState: /* @__PURE__ */ n(function(e) {
526
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
527
- }, "topState"),
528
- pushState: /* @__PURE__ */ n(function(e) {
529
- this.begin(e);
530
- }, "pushState"),
531
- stateStackSize: /* @__PURE__ */ n(function() {
532
- return this.conditionStack.length;
533
- }, "stateStackSize"),
534
- options: { "case-insensitive": !0 },
535
- performAction: /* @__PURE__ */ n(function(e, t, n, r) {
536
- switch (n) {
537
- case 0: return this.pushState("shapeData"), t.yytext = "", 24;
538
- case 1: return this.pushState("shapeDataStr"), 24;
539
- case 2: return this.popState(), 24;
540
- case 3: return t.yytext = t.yytext.replace(/\n\s*/g, "<br/>"), 24;
541
- case 4: return 24;
542
- case 5:
543
- this.popState();
544
- break;
545
- case 6: return e.getLogger().trace("Found comment", t.yytext), 6;
546
- case 7: return 8;
547
- case 8:
548
- this.begin("CLASS");
549
- break;
550
- case 9: return this.popState(), 17;
551
- case 10:
552
- this.popState();
553
- break;
554
- case 11:
555
- e.getLogger().trace("Begin icon"), this.begin("ICON");
556
- break;
557
- case 12: return e.getLogger().trace("SPACELINE"), 6;
558
- case 13: return 7;
559
- case 14: return 16;
560
- case 15:
561
- e.getLogger().trace("end icon"), this.popState();
562
- break;
563
- case 16: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
564
- case 17: return e.getLogger().trace("Cloud"), this.begin("NODE"), 20;
565
- case 18: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
566
- case 19: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
567
- case 20: return this.begin("NODE"), 20;
568
- case 21: return this.begin("NODE"), 20;
569
- case 22: return this.begin("NODE"), 20;
570
- case 23: return this.begin("NODE"), 20;
571
- case 24: return 13;
572
- case 25: return 23;
573
- case 26: return 11;
574
- case 27:
575
- this.begin("NSTR2");
576
- break;
577
- case 28: return "NODE_DESCR";
578
- case 29:
579
- this.popState();
580
- break;
581
- case 30:
582
- e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
583
- break;
584
- case 31: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
585
- case 32:
586
- this.popState();
587
- break;
588
- case 33: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
589
- case 34: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
590
- case 35: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
591
- case 36: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
592
- case 37: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
593
- case 38: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
594
- case 39: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
595
- case 40: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
596
- case 41: return e.getLogger().trace("Long description:", t.yytext), 21;
597
- case 42: return e.getLogger().trace("Long description:", t.yytext), 21;
598
- }
599
- }, "anonymous"),
600
- rules: [
601
- /^(?:@\{)/i,
602
- /^(?:["])/i,
603
- /^(?:["])/i,
604
- /^(?:[^\"]+)/i,
605
- /^(?:[^}^"]+)/i,
606
- /^(?:\})/i,
607
- /^(?:\s*%%.*)/i,
608
- /^(?:kanban\b)/i,
609
- /^(?::::)/i,
610
- /^(?:.+)/i,
611
- /^(?:\n)/i,
612
- /^(?:::icon\()/i,
613
- /^(?:[\s]+[\n])/i,
614
- /^(?:[\n]+)/i,
615
- /^(?:[^\)]+)/i,
616
- /^(?:\))/i,
617
- /^(?:-\))/i,
618
- /^(?:\(-)/i,
619
- /^(?:\)\))/i,
620
- /^(?:\))/i,
621
- /^(?:\(\()/i,
622
- /^(?:\{\{)/i,
623
- /^(?:\()/i,
624
- /^(?:\[)/i,
625
- /^(?:[\s]+)/i,
626
- /^(?:[^\(\[\n\)\{\}@]+)/i,
627
- /^(?:$)/i,
628
- /^(?:["][`])/i,
629
- /^(?:[^`"]+)/i,
630
- /^(?:[`]["])/i,
631
- /^(?:["])/i,
632
- /^(?:[^"]+)/i,
633
- /^(?:["])/i,
634
- /^(?:[\)]\))/i,
635
- /^(?:[\)])/i,
636
- /^(?:[\]])/i,
637
- /^(?:\}\})/i,
638
- /^(?:\(-)/i,
639
- /^(?:-\))/i,
640
- /^(?:\(\()/i,
641
- /^(?:\()/i,
642
- /^(?:[^\)\]\(\}]+)/i,
643
- /^(?:.+(?!\(\())/i
644
- ],
645
- conditions: {
646
- shapeDataEndBracket: {
647
- rules: [],
648
- inclusive: !1
649
- },
650
- shapeDataStr: {
651
- rules: [2, 3],
652
- inclusive: !1
653
- },
654
- shapeData: {
655
- rules: [
656
- 1,
657
- 4,
658
- 5
659
- ],
660
- inclusive: !1
661
- },
662
- CLASS: {
663
- rules: [9, 10],
664
- inclusive: !1
665
- },
666
- ICON: {
667
- rules: [14, 15],
668
- inclusive: !1
669
- },
670
- NSTR2: {
671
- rules: [28, 29],
672
- inclusive: !1
673
- },
674
- NSTR: {
675
- rules: [31, 32],
676
- inclusive: !1
677
- },
678
- NODE: {
679
- rules: [
680
- 27,
681
- 30,
682
- 33,
683
- 34,
684
- 35,
685
- 36,
686
- 37,
687
- 38,
688
- 39,
689
- 40,
690
- 41,
691
- 42
692
- ],
693
- inclusive: !1
694
- },
695
- INITIAL: {
696
- rules: [
697
- 0,
698
- 6,
699
- 7,
700
- 8,
701
- 11,
702
- 12,
703
- 13,
704
- 16,
705
- 17,
706
- 18,
707
- 19,
708
- 20,
709
- 21,
710
- 22,
711
- 23,
712
- 24,
713
- 25,
714
- 26
715
- ],
716
- inclusive: !0
717
- }
718
- }
719
- };
720
- })();
721
- function S() {
722
- this.yy = {};
723
- }
724
- return n(S, "Parser"), S.prototype = x, x.Parser = S, new S();
725
- })();
726
- v.parser = v;
727
- var y = v, b = [], x = [], S = 0, C = {}, w = /* @__PURE__ */ n(() => {
728
- b = [], x = [], S = 0, C = {};
729
- }, "clear"), T = /* @__PURE__ */ n((e) => {
730
- if (b.length === 0) return null;
731
- let t = b[0].level, n = null;
732
- for (let e = b.length - 1; e >= 0; e--) if (b[e].level === t && !n && (n = b[e]), b[e].level < t) throw Error("Items without section detected, found section (\"" + b[e].label + "\")");
733
- return e === (n == null ? void 0 : n.level) ? null : n;
734
- }, "getSection"), E = /* @__PURE__ */ n(function() {
735
- return x;
736
- }, "getSections"), D = /* @__PURE__ */ n(function() {
737
- let e = [], t = [], n = E(), r = l();
738
- for (let e of n) {
739
- var i;
740
- let n = {
741
- id: e.id,
742
- label: u((i = e.label) == null ? "" : i, r),
743
- labelType: "markdown",
744
- isGroup: !0,
745
- ticket: e.ticket,
746
- shape: "kanbanSection",
747
- level: e.level,
748
- look: r.look
749
- };
750
- t.push(n);
751
- let o = b.filter((t) => t.parentId === e.id);
752
- for (let n of o) {
753
- var a;
754
- let i = {
755
- id: n.id,
756
- parentId: e.id,
757
- label: u((a = n.label) == null ? "" : a, r),
758
- labelType: "markdown",
759
- isGroup: !1,
760
- ticket: n == null ? void 0 : n.ticket,
761
- priority: n == null ? void 0 : n.priority,
762
- assigned: n == null ? void 0 : n.assigned,
763
- icon: n == null ? void 0 : n.icon,
764
- shape: "kanbanItem",
765
- level: n.level,
766
- rx: 5,
767
- ry: 5,
768
- cssStyles: ["text-align: left"]
769
- };
770
- t.push(i);
771
- }
772
- }
773
- return {
774
- nodes: t,
775
- edges: e,
776
- other: {},
777
- config: l()
778
- };
779
- }, "getData"), O = /* @__PURE__ */ n((e, t, n, r, i) => {
780
- var a, s, c, d;
781
- let m = l(), h = (a = (s = m.mindmap) == null ? void 0 : s.padding) == null ? o.mindmap.padding : a;
782
- switch (r) {
783
- case k.ROUNDED_RECT:
784
- case k.RECT:
785
- case k.HEXAGON: h *= 2;
786
- }
787
- let g = {
788
- id: u(t, m) || "kbn" + S++,
789
- level: e,
790
- label: u(n, m),
791
- width: (c = (d = m.mindmap) == null ? void 0 : d.maxNodeWidth) == null ? o.mindmap.maxNodeWidth : c,
792
- padding: h,
793
- isGroup: !1
794
- };
795
- if (i !== void 0) {
796
- let e;
797
- e = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}";
798
- let t = f(e, { schema: p });
799
- if (t.shape && (t.shape !== t.shape.toLowerCase() || t.shape.includes("_"))) throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);
800
- t != null && t.shape && t.shape === "kanbanItem" && (g.shape = t == null ? void 0 : t.shape), t != null && t.label && (g.label = t == null ? void 0 : t.label), t != null && t.icon && (g.icon = t == null ? void 0 : t.icon.toString()), t != null && t.assigned && (g.assigned = t == null ? void 0 : t.assigned.toString()), t != null && t.ticket && (g.ticket = t == null ? void 0 : t.ticket.toString()), t != null && t.priority && (g.priority = t == null ? void 0 : t.priority);
801
- }
802
- let _ = T(e);
803
- _ ? g.parentId = _.id || "kbn" + S++ : x.push(g), b.push(g);
804
- }, "addNode"), k = {
805
- DEFAULT: 0,
806
- NO_BORDER: 0,
807
- ROUNDED_RECT: 1,
808
- RECT: 2,
809
- CIRCLE: 3,
810
- CLOUD: 4,
811
- BANG: 5,
812
- HEXAGON: 6
813
- }, A = {
814
- clear: w,
815
- addNode: O,
816
- getSections: E,
817
- getData: D,
818
- nodeType: k,
819
- getType: /* @__PURE__ */ n((e, t) => {
820
- switch (r.debug("In get type", e, t), e) {
821
- case "[": return k.RECT;
822
- case "(": return t === ")" ? k.ROUNDED_RECT : k.CLOUD;
823
- case "((": return k.CIRCLE;
824
- case ")": return k.CLOUD;
825
- case "))": return k.BANG;
826
- case "{{": return k.HEXAGON;
827
- default: return k.DEFAULT;
828
- }
829
- }, "getType"),
830
- setElementForId: /* @__PURE__ */ n((e, t) => {
831
- C[e] = t;
832
- }, "setElementForId"),
833
- decorateNode: /* @__PURE__ */ n((e) => {
834
- if (!e) return;
835
- let t = l(), n = b[b.length - 1];
836
- e.icon && (n.icon = u(e.icon, t)), e.class && (n.cssClasses = u(e.class, t));
837
- }, "decorateNode"),
838
- type2Str: /* @__PURE__ */ n((e) => {
839
- switch (e) {
840
- case k.DEFAULT: return "no-border";
841
- case k.RECT: return "rect";
842
- case k.ROUNDED_RECT: return "rounded-rect";
843
- case k.CIRCLE: return "circle";
844
- case k.CLOUD: return "cloud";
845
- case k.BANG: return "bang";
846
- case k.HEXAGON: return "hexgon";
847
- default: return "no-border";
848
- }
849
- }, "type2Str"),
850
- getLogger: /* @__PURE__ */ n(() => r, "getLogger"),
851
- getElementById: /* @__PURE__ */ n((e) => C[e], "getElementById")
852
- }, j = { draw: /* @__PURE__ */ n(function() {
853
- var e = t(function* (e, t, n, a) {
854
- var s, c, u, f;
855
- r.debug("Rendering kanban diagram\n" + e);
856
- let p = a.db.getData(), _ = l();
857
- _.htmlLabels = !1;
858
- let v = d(t);
859
- for (let e of p.nodes) e.domId = `${t}-${e.id}`;
860
- let y = v.append("g");
861
- y.attr("class", "sections");
862
- let b = v.append("g");
863
- b.attr("class", "items");
864
- let x = p.nodes.filter((e) => e.isGroup), S = 0, C = [], w = 25;
865
- for (let e of x) {
866
- var T, E;
867
- let t = (_ == null || (T = _.kanban) == null ? void 0 : T.sectionWidth) || 200;
868
- S += 1, e.x = t * S + (S - 1) * 10 / 2, e.width = t, e.y = 0, e.height = t * 3, e.rx = 5, e.ry = 5, e.cssClasses = e.cssClasses + " section-" + S;
869
- let n = yield g(y, e);
870
- w = Math.max(w, n == null || (E = n.labelBBox) == null ? void 0 : E.height), C.push(n);
871
- }
872
- let D = 0;
873
- for (let e of x) {
874
- var O;
875
- let t = C[D];
876
- D += 1;
877
- let n = (_ == null || (O = _.kanban) == null ? void 0 : O.sectionWidth) || 200, r = -n * 3 / 2 + w, i = r, a = p.nodes.filter((t) => t.parentId === e.id);
878
- for (let t of a) {
879
- if (t.isGroup) throw Error("Groups within groups are not allowed in Kanban diagrams");
880
- t.x = e.x, t.width = n - 1.5 * 10;
881
- let r = (yield m(b, t, { config: _ })).node().getBBox();
882
- t.y = i + r.height / 2, yield h(t), i = t.y + r.height / 2 + 10 / 2;
883
- }
884
- let o = t.cluster.select("rect"), s = Math.max(i - r + 30, 50) + (w - 25);
885
- o.attr("height", s);
886
- }
887
- i(void 0, v, (s = (c = _.mindmap) == null ? void 0 : c.padding) == null ? o.kanban.padding : s, (u = (f = _.mindmap) == null ? void 0 : f.useMaxWidth) == null ? o.kanban.useMaxWidth : u);
888
- });
889
- return function(t, n, r, i) {
890
- return e.apply(this, arguments);
891
- };
892
- }(), "draw") }, M = /* @__PURE__ */ n((e) => {
893
- let t = "";
894
- for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], s(e["lineColor" + t]) ? e["lineColor" + t] = c(e["lineColor" + t], 20) : e["lineColor" + t] = a(e["lineColor" + t], 20);
895
- let r = /* @__PURE__ */ n((t, n) => e.darkMode ? a(t, n) : c(t, n), "adjuster");
896
- for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
897
- let i = "" + (17 - 3 * n);
898
- t += `
899
- .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
900
- fill: ${r(e["cScale" + n], 10)};
901
- stroke: ${r(e["cScale" + n], 10)};
902
-
903
- }
904
- .section-${n - 1} text {
905
- fill: ${e["cScaleLabel" + n]};
906
- }
907
- .node-icon-${n - 1} {
908
- font-size: 40px;
909
- color: ${e["cScaleLabel" + n]};
910
- }
911
- .section-edge-${n - 1}{
912
- stroke: ${e["cScale" + n]};
913
- }
914
- .edge-depth-${n - 1}{
915
- stroke-width: ${i};
916
- }
917
- .section-${n - 1} line {
918
- stroke: ${e["cScaleInv" + n]} ;
919
- stroke-width: 3;
920
- }
921
-
922
- .disabled, .disabled circle, .disabled text {
923
- fill: lightgray;
924
- }
925
- .disabled text {
926
- fill: #efefef;
927
- }
928
-
929
- .node rect,
930
- .node circle,
931
- .node ellipse,
932
- .node polygon,
933
- .node path {
934
- fill: ${e.background};
935
- stroke: ${e.nodeBorder};
936
- stroke-width: 1px;
937
- }
938
-
939
- .kanban-ticket-link {
940
- fill: ${e.background};
941
- stroke: ${e.nodeBorder};
942
- text-decoration: underline;
943
- }
944
- `;
945
- }
946
- return t;
947
- }, "genSections"), N = {
948
- db: A,
949
- renderer: j,
950
- parser: y,
951
- styles: /* @__PURE__ */ n((e) => `
952
- .edge {
953
- stroke-width: 3;
954
- }
955
- ${M(e)}
956
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
957
- fill: ${e.git0};
958
- }
959
- .section-root text {
960
- fill: ${e.gitBranchLabel0};
961
- }
962
- .icon-container {
963
- height:100%;
964
- display: flex;
965
- justify-content: center;
966
- align-items: center;
967
- }
968
- .edge {
969
- fill: none;
970
- }
971
- .cluster-label, .label {
972
- color: ${e.textColor};
973
- fill: ${e.textColor};
974
- }
975
- .kanban-label {
976
- dy: 1em;
977
- alignment-baseline: middle;
978
- text-anchor: middle;
979
- dominant-baseline: middle;
980
- text-align: center;
981
- }
982
- ${_()}
983
- `, "getStyles")
984
- };
985
- //#endregion
986
- export { N as diagram };