@flyfish-group/file-viewer3 1.0.26 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,1084 +0,0 @@
1
- import { n as e, r as t, t as n } from "./chunk-AGHRB4JF.js";
2
- import { J as r, a as i, b as a, et as o, o as s, rt as c, tt as l, x as u } from "./chunk-CSCIHK7Q.js";
3
- import { Q as d } from "./src.js";
4
- import { t as f } from "./arc.js";
5
- import { p } from "./chunk-5ZQYHXKU.js";
6
- import { t as m } from "./chunk-WU5MYG2G.js";
7
- //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-PNZ67QCA.mjs
8
- var h = (function() {
9
- var t = /* @__PURE__ */ e(function(e, t, n, r) {
10
- for (n = n || {}, r = e.length; r--; n[e[r]] = t);
11
- return n;
12
- }, "o"), n = [
13
- 6,
14
- 11,
15
- 13,
16
- 14,
17
- 15,
18
- 17,
19
- 19,
20
- 20,
21
- 23,
22
- 24
23
- ], r = [1, 12], i = [1, 13], a = [1, 14], o = [1, 15], s = [1, 16], c = [1, 19], l = [1, 20], u = {
24
- trace: /* @__PURE__ */ e(function() {}, "trace"),
25
- yy: {},
26
- symbols_: {
27
- error: 2,
28
- start: 3,
29
- timeline_header: 4,
30
- document: 5,
31
- EOF: 6,
32
- timeline: 7,
33
- timeline_lr: 8,
34
- timeline_td: 9,
35
- line: 10,
36
- SPACE: 11,
37
- statement: 12,
38
- NEWLINE: 13,
39
- title: 14,
40
- acc_title: 15,
41
- acc_title_value: 16,
42
- acc_descr: 17,
43
- acc_descr_value: 18,
44
- acc_descr_multiline_value: 19,
45
- section: 20,
46
- period_statement: 21,
47
- event_statement: 22,
48
- period: 23,
49
- event: 24,
50
- $accept: 0,
51
- $end: 1
52
- },
53
- terminals_: {
54
- 2: "error",
55
- 6: "EOF",
56
- 7: "timeline",
57
- 8: "timeline_lr",
58
- 9: "timeline_td",
59
- 11: "SPACE",
60
- 13: "NEWLINE",
61
- 14: "title",
62
- 15: "acc_title",
63
- 16: "acc_title_value",
64
- 17: "acc_descr",
65
- 18: "acc_descr_value",
66
- 19: "acc_descr_multiline_value",
67
- 20: "section",
68
- 23: "period",
69
- 24: "event"
70
- },
71
- productions_: [
72
- 0,
73
- [3, 3],
74
- [4, 1],
75
- [4, 1],
76
- [4, 1],
77
- [5, 0],
78
- [5, 2],
79
- [10, 2],
80
- [10, 1],
81
- [10, 1],
82
- [10, 1],
83
- [12, 1],
84
- [12, 2],
85
- [12, 2],
86
- [12, 1],
87
- [12, 1],
88
- [12, 1],
89
- [12, 1],
90
- [21, 1],
91
- [22, 1]
92
- ],
93
- performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
94
- var s = a.length - 1;
95
- switch (i) {
96
- case 1: return a[s - 1];
97
- case 3:
98
- r.setDirection("LR");
99
- break;
100
- case 4:
101
- r.setDirection("TD");
102
- break;
103
- case 5:
104
- this.$ = [];
105
- break;
106
- case 6:
107
- a[s - 1].push(a[s]), this.$ = a[s - 1];
108
- break;
109
- case 7:
110
- case 8:
111
- this.$ = a[s];
112
- break;
113
- case 9:
114
- case 10:
115
- this.$ = [];
116
- break;
117
- case 11:
118
- r.getCommonDb().setDiagramTitle(a[s].substr(6)), this.$ = a[s].substr(6);
119
- break;
120
- case 12:
121
- this.$ = a[s].trim(), r.getCommonDb().setAccTitle(this.$);
122
- break;
123
- case 13:
124
- case 14:
125
- this.$ = a[s].trim(), r.getCommonDb().setAccDescription(this.$);
126
- break;
127
- case 15:
128
- r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
129
- break;
130
- case 18:
131
- r.addTask(a[s], 0, ""), this.$ = a[s];
132
- break;
133
- case 19:
134
- r.addEvent(a[s].substr(2)), this.$ = a[s];
135
- break;
136
- }
137
- }, "anonymous"),
138
- table: [
139
- {
140
- 3: 1,
141
- 4: 2,
142
- 7: [1, 3],
143
- 8: [1, 4],
144
- 9: [1, 5]
145
- },
146
- { 1: [3] },
147
- t(n, [2, 5], { 5: 6 }),
148
- t(n, [2, 2]),
149
- t(n, [2, 3]),
150
- t(n, [2, 4]),
151
- {
152
- 6: [1, 7],
153
- 10: 8,
154
- 11: [1, 9],
155
- 12: 10,
156
- 13: [1, 11],
157
- 14: r,
158
- 15: i,
159
- 17: a,
160
- 19: o,
161
- 20: s,
162
- 21: 17,
163
- 22: 18,
164
- 23: c,
165
- 24: l
166
- },
167
- t(n, [2, 10], { 1: [2, 1] }),
168
- t(n, [2, 6]),
169
- {
170
- 12: 21,
171
- 14: r,
172
- 15: i,
173
- 17: a,
174
- 19: o,
175
- 20: s,
176
- 21: 17,
177
- 22: 18,
178
- 23: c,
179
- 24: l
180
- },
181
- t(n, [2, 8]),
182
- t(n, [2, 9]),
183
- t(n, [2, 11]),
184
- { 16: [1, 22] },
185
- { 18: [1, 23] },
186
- t(n, [2, 14]),
187
- t(n, [2, 15]),
188
- t(n, [2, 16]),
189
- t(n, [2, 17]),
190
- t(n, [2, 18]),
191
- t(n, [2, 19]),
192
- t(n, [2, 7]),
193
- t(n, [2, 12]),
194
- t(n, [2, 13])
195
- ],
196
- defaultActions: {},
197
- parseError: /* @__PURE__ */ e(function(e, t) {
198
- if (t.recoverable) this.trace(e);
199
- else {
200
- var n = Error(e);
201
- throw n.hash = t, n;
202
- }
203
- }, "parseError"),
204
- parse: /* @__PURE__ */ e(function(t) {
205
- var n = 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: {} };
206
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
207
- h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
208
- var v = h.yylloc;
209
- o.push(v);
210
- var y = h.options && h.options.ranges;
211
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
212
- function b(e) {
213
- r.length -= 2 * e, a.length -= e, o.length -= e;
214
- }
215
- e(b, "popStack");
216
- function x() {
217
- var e = i.pop() || h.lex() || p;
218
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
219
- }
220
- e(x, "lex");
221
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
222
- 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]) {
223
- var M = "";
224
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
225
- 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, {
226
- text: h.match,
227
- token: this.terminals_[S] || S,
228
- line: h.yylineno,
229
- loc: v,
230
- expected: j
231
- });
232
- }
233
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
234
- switch (T[0]) {
235
- case 1:
236
- 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--);
237
- break;
238
- case 2:
239
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
240
- first_line: o[o.length - (k || 1)].first_line,
241
- last_line: o[o.length - 1].last_line,
242
- first_column: o[o.length - (k || 1)].first_column,
243
- last_column: o[o.length - 1].last_column
244
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
245
- c,
246
- u,
247
- l,
248
- g.yy,
249
- T[1],
250
- a,
251
- o
252
- ].concat(m)), E !== void 0) return E;
253
- 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);
254
- break;
255
- case 3: return !0;
256
- }
257
- }
258
- return !0;
259
- }, "parse")
260
- };
261
- u.lexer = /* @__PURE__ */ (function() {
262
- return {
263
- EOF: 1,
264
- parseError: /* @__PURE__ */ e(function(e, t) {
265
- if (this.yy.parser) this.yy.parser.parseError(e, t);
266
- else throw Error(e);
267
- }, "parseError"),
268
- setInput: /* @__PURE__ */ e(function(e, t) {
269
- 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 = {
270
- first_line: 1,
271
- first_column: 0,
272
- last_line: 1,
273
- last_column: 0
274
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
275
- }, "setInput"),
276
- input: /* @__PURE__ */ e(function() {
277
- var e = this._input[0];
278
- 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;
279
- }, "input"),
280
- unput: /* @__PURE__ */ e(function(e) {
281
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
282
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
283
- var r = this.match.split(/(?:\r\n?|\n)/g);
284
- 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);
285
- var i = this.yylloc.range;
286
- return this.yylloc = {
287
- first_line: this.yylloc.first_line,
288
- last_line: this.yylineno + 1,
289
- first_column: this.yylloc.first_column,
290
- 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
291
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
292
- }, "unput"),
293
- more: /* @__PURE__ */ e(function() {
294
- return this._more = !0, this;
295
- }, "more"),
296
- reject: /* @__PURE__ */ e(function() {
297
- if (this.options.backtrack_lexer) this._backtrack = !0;
298
- 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(), {
299
- text: "",
300
- token: null,
301
- line: this.yylineno
302
- });
303
- return this;
304
- }, "reject"),
305
- less: /* @__PURE__ */ e(function(e) {
306
- this.unput(this.match.slice(e));
307
- }, "less"),
308
- pastInput: /* @__PURE__ */ e(function() {
309
- var e = this.matched.substr(0, this.matched.length - this.match.length);
310
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
311
- }, "pastInput"),
312
- upcomingInput: /* @__PURE__ */ e(function() {
313
- var e = this.match;
314
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
315
- }, "upcomingInput"),
316
- showPosition: /* @__PURE__ */ e(function() {
317
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
318
- return e + this.upcomingInput() + "\n" + t + "^";
319
- }, "showPosition"),
320
- test_match: /* @__PURE__ */ e(function(e, t) {
321
- var n, r, i;
322
- if (this.options.backtrack_lexer && (i = {
323
- yylineno: this.yylineno,
324
- yylloc: {
325
- first_line: this.yylloc.first_line,
326
- last_line: this.last_line,
327
- first_column: this.yylloc.first_column,
328
- last_column: this.yylloc.last_column
329
- },
330
- yytext: this.yytext,
331
- match: this.match,
332
- matches: this.matches,
333
- matched: this.matched,
334
- yyleng: this.yyleng,
335
- offset: this.offset,
336
- _more: this._more,
337
- _input: this._input,
338
- yy: this.yy,
339
- conditionStack: this.conditionStack.slice(0),
340
- done: this.done
341
- }, 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 = {
342
- first_line: this.yylloc.last_line,
343
- last_line: this.yylineno + 1,
344
- first_column: this.yylloc.last_column,
345
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
346
- }, 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;
347
- if (this._backtrack) {
348
- for (var a in i) this[a] = i[a];
349
- return !1;
350
- }
351
- return !1;
352
- }, "test_match"),
353
- next: /* @__PURE__ */ e(function() {
354
- if (this.done) return this.EOF;
355
- this._input || (this.done = !0);
356
- var e, t, n, r;
357
- this._more || (this.yytext = "", this.match = "");
358
- 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)) {
359
- if (t = n, r = a, this.options.backtrack_lexer) {
360
- if (e = this.test_match(n, i[a]), e !== !1) return e;
361
- if (this._backtrack) {
362
- t = !1;
363
- continue;
364
- } else return !1;
365
- } else if (!this.options.flex) break;
366
- }
367
- 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(), {
368
- text: "",
369
- token: null,
370
- line: this.yylineno
371
- });
372
- }, "next"),
373
- lex: /* @__PURE__ */ e(function() {
374
- return this.next() || this.lex();
375
- }, "lex"),
376
- begin: /* @__PURE__ */ e(function(e) {
377
- this.conditionStack.push(e);
378
- }, "begin"),
379
- popState: /* @__PURE__ */ e(function() {
380
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
381
- }, "popState"),
382
- _currentRules: /* @__PURE__ */ e(function() {
383
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
384
- }, "_currentRules"),
385
- topState: /* @__PURE__ */ e(function(e) {
386
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
387
- }, "topState"),
388
- pushState: /* @__PURE__ */ e(function(e) {
389
- this.begin(e);
390
- }, "pushState"),
391
- stateStackSize: /* @__PURE__ */ e(function() {
392
- return this.conditionStack.length;
393
- }, "stateStackSize"),
394
- options: { "case-insensitive": !0 },
395
- performAction: /* @__PURE__ */ e(function(e, t, n, r) {
396
- switch (n) {
397
- case 0: break;
398
- case 1: break;
399
- case 2: return 13;
400
- case 3: break;
401
- case 4: break;
402
- case 5: return 8;
403
- case 6: return 9;
404
- case 7: return 7;
405
- case 8: return 14;
406
- case 9: return this.begin("acc_title"), 15;
407
- case 10: return this.popState(), "acc_title_value";
408
- case 11: return this.begin("acc_descr"), 17;
409
- case 12: return this.popState(), "acc_descr_value";
410
- case 13:
411
- this.begin("acc_descr_multiline");
412
- break;
413
- case 14:
414
- this.popState();
415
- break;
416
- case 15: return "acc_descr_multiline_value";
417
- case 16: return 20;
418
- case 17: return 24;
419
- case 18: return 23;
420
- case 19: return 6;
421
- case 20: return "INVALID";
422
- }
423
- }, "anonymous"),
424
- rules: [
425
- /^(?:%(?!\{)[^\n]*)/i,
426
- /^(?:[^\}]%%[^\n]*)/i,
427
- /^(?:[\n]+)/i,
428
- /^(?:\s+)/i,
429
- /^(?:#[^\n]*)/i,
430
- /^(?:timeline[ \t]+LR\b)/i,
431
- /^(?:timeline[ \t]+TD\b)/i,
432
- /^(?:timeline\b)/i,
433
- /^(?:title\s[^\n]+)/i,
434
- /^(?:accTitle\s*:\s*)/i,
435
- /^(?:(?!\n||)*[^\n]*)/i,
436
- /^(?:accDescr\s*:\s*)/i,
437
- /^(?:(?!\n||)*[^\n]*)/i,
438
- /^(?:accDescr\s*\{\s*)/i,
439
- /^(?:[\}])/i,
440
- /^(?:[^\}]*)/i,
441
- /^(?:section\s[^:\n]+)/i,
442
- /^(?::\s(?:[^:\n]|:(?!\s))+)/i,
443
- /^(?:[^#:\n]+)/i,
444
- /^(?:$)/i,
445
- /^(?:.)/i
446
- ],
447
- conditions: {
448
- acc_descr_multiline: {
449
- rules: [14, 15],
450
- inclusive: !1
451
- },
452
- acc_descr: {
453
- rules: [12],
454
- inclusive: !1
455
- },
456
- acc_title: {
457
- rules: [10],
458
- inclusive: !1
459
- },
460
- INITIAL: {
461
- rules: [
462
- 0,
463
- 1,
464
- 2,
465
- 3,
466
- 4,
467
- 5,
468
- 6,
469
- 7,
470
- 8,
471
- 9,
472
- 11,
473
- 13,
474
- 16,
475
- 17,
476
- 18,
477
- 19,
478
- 20
479
- ],
480
- inclusive: !0
481
- }
482
- }
483
- };
484
- })();
485
- function d() {
486
- this.yy = {};
487
- }
488
- return e(d, "Parser"), d.prototype = u, u.Parser = d, new d();
489
- })();
490
- h.parser = h;
491
- var g = h, _ = {};
492
- n(_, {
493
- addEvent: () => M,
494
- addSection: () => O,
495
- addTask: () => j,
496
- addTaskOrg: () => N,
497
- clear: () => T,
498
- default: () => F,
499
- getCommonDb: () => w,
500
- getDirection: () => D,
501
- getSections: () => k,
502
- getTasks: () => A,
503
- setDirection: () => E
504
- });
505
- var v = "", y = 0, b = "LR", x = [], S = [], C = [], w = /* @__PURE__ */ e(() => s, "getCommonDb"), T = /* @__PURE__ */ e(function() {
506
- x.length = 0, S.length = 0, v = "", C.length = 0, b = "LR", i();
507
- }, "clear"), E = /* @__PURE__ */ e(function(e) {
508
- b = e;
509
- }, "setDirection"), D = /* @__PURE__ */ e(function() {
510
- return b;
511
- }, "getDirection"), O = /* @__PURE__ */ e(function(e) {
512
- v = e, x.push(e);
513
- }, "addSection"), k = /* @__PURE__ */ e(function() {
514
- return x;
515
- }, "getSections"), A = /* @__PURE__ */ e(function() {
516
- let e = P(), t = 0;
517
- for (; !e && t < 100;) e = P(), t++;
518
- return S.push(...C), S;
519
- }, "getTasks"), j = /* @__PURE__ */ e(function(e, t, n) {
520
- let r = {
521
- id: y++,
522
- section: v,
523
- type: v,
524
- task: e,
525
- score: t || 0,
526
- events: n ? [n] : []
527
- };
528
- C.push(r);
529
- }, "addTask"), M = /* @__PURE__ */ e(function(e) {
530
- C.find((e) => e.id === y - 1).events.push(e);
531
- }, "addEvent"), N = /* @__PURE__ */ e(function(e) {
532
- let t = {
533
- section: v,
534
- type: v,
535
- description: e,
536
- task: e,
537
- classes: []
538
- };
539
- S.push(t);
540
- }, "addTaskOrg"), P = /* @__PURE__ */ e(function() {
541
- let t = /* @__PURE__ */ e(function(e) {
542
- return C[e].processed;
543
- }, "compileTask"), n = !0;
544
- for (let [e, r] of C.entries()) t(e), n = n && r.processed;
545
- return n;
546
- }, "compileTasks"), F = {
547
- clear: T,
548
- getCommonDb: w,
549
- getDirection: D,
550
- setDirection: E,
551
- addSection: O,
552
- getSections: k,
553
- getTasks: A,
554
- addTask: j,
555
- addTaskOrg: N,
556
- addEvent: M
557
- }, I = 0, L = /* @__PURE__ */ e(function(e, t) {
558
- let n = e.append("rect");
559
- return n.attr("x", t.x), n.attr("y", t.y), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("width", t.width), n.attr("height", t.height), n.attr("rx", t.rx), n.attr("ry", t.ry), t.class !== void 0 && n.attr("class", t.class), n;
560
- }, "drawRect"), R = /* @__PURE__ */ e(function(t, n) {
561
- let r = t.append("circle").attr("cx", n.cx).attr("cy", n.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g");
562
- i.append("circle").attr("cx", n.cx - 15 / 3).attr("cy", n.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", n.cx + 15 / 3).attr("cy", n.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
563
- function a(e) {
564
- let t = f().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(15 / 2).outerRadius(15 / 2.2);
565
- e.append("path").attr("class", "mouth").attr("d", t).attr("transform", "translate(" + n.cx + "," + (n.cy + 2) + ")");
566
- }
567
- e(a, "smile");
568
- function o(e) {
569
- let t = f().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(15 / 2).outerRadius(15 / 2.2);
570
- e.append("path").attr("class", "mouth").attr("d", t).attr("transform", "translate(" + n.cx + "," + (n.cy + 7) + ")");
571
- }
572
- e(o, "sad");
573
- function s(e) {
574
- e.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", n.cx - 5).attr("y1", n.cy + 7).attr("x2", n.cx + 5).attr("y2", n.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
575
- }
576
- return e(s, "ambivalent"), n.score > 3 ? a(i) : n.score < 3 ? o(i) : s(i), r;
577
- }, "drawFace"), z = /* @__PURE__ */ e(function(e, t) {
578
- let n = e.append("circle");
579
- return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n;
580
- }, "drawCircle"), B = /* @__PURE__ */ e(function(e, t) {
581
- let n = t.text.replace(/<br\s*\/?>/gi, " "), r = e.append("text");
582
- r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class !== void 0 && r.attr("class", t.class);
583
- let i = r.append("tspan");
584
- return i.attr("x", t.x + t.textMargin * 2), i.text(n), r;
585
- }, "drawText"), V = /* @__PURE__ */ e(function(t, n) {
586
- function r(e, t, n, r, i) {
587
- return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
588
- }
589
- e(r, "genPoints");
590
- let i = t.append("polygon");
591
- i.attr("points", r(n.x, n.y, 50, 20, 7)), i.attr("class", "labelBox"), n.y += n.labelMargin, n.x += .5 * n.labelMargin, B(t, n);
592
- }, "drawLabel"), H = /* @__PURE__ */ e(function(e, t, n) {
593
- let r = e.append("g"), i = W();
594
- i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = n.width, i.height = n.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, L(r, i), G(n)(t.text, r, i.x, i.y, i.width, i.height, { class: "journey-section section-type-" + t.num }, n, t.colour);
595
- }, "drawSection"), U = -1, ee = /* @__PURE__ */ e(function(e, t, n, r) {
596
- let i = t.x + n.width / 2, a = e.append("g");
597
- U++, a.append("line").attr("id", r + "-task" + U).attr("x1", i).attr("y1", t.y).attr("x2", i).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), R(a, {
598
- cx: i,
599
- cy: 300 + (5 - t.score) * 30,
600
- score: t.score
601
- });
602
- let o = W();
603
- o.x = t.x, o.y = t.y, o.fill = t.fill, o.width = n.width, o.height = n.height, o.class = "task task-type-" + t.num, o.rx = 3, o.ry = 3, L(a, o), G(n)(t.task, a, o.x, o.y, o.width, o.height, { class: "task" }, n, t.colour);
604
- }, "drawTask"), te = /* @__PURE__ */ e(function(e, t) {
605
- L(e, {
606
- x: t.startx,
607
- y: t.starty,
608
- width: t.stopx - t.startx,
609
- height: t.stopy - t.starty,
610
- fill: t.fill,
611
- class: "rect"
612
- }).lower();
613
- }, "drawBackgroundRect"), ne = /* @__PURE__ */ e(function() {
614
- return {
615
- x: 0,
616
- y: 0,
617
- fill: void 0,
618
- "text-anchor": "start",
619
- width: 100,
620
- height: 100,
621
- textMargin: 0,
622
- rx: 0,
623
- ry: 0
624
- };
625
- }, "getTextObj"), W = /* @__PURE__ */ e(function() {
626
- return {
627
- x: 0,
628
- y: 0,
629
- width: 100,
630
- anchor: "start",
631
- height: 100,
632
- rx: 0,
633
- ry: 0
634
- };
635
- }, "getNoteRect"), G = /* @__PURE__ */ (function() {
636
- function t(e, t, n, r, a, o, s, c) {
637
- i(t.append("text").attr("x", n + a / 2).attr("y", r + o / 2 + 5).style("font-color", c).style("text-anchor", "middle").text(e), s);
638
- }
639
- e(t, "byText");
640
- function n(e, t, n, r, a, o, s, c, l) {
641
- let { taskFontSize: u, taskFontFamily: d } = c, f = e.split(/<br\s*\/?>/gi);
642
- for (let e = 0; e < f.length; e++) {
643
- let c = e * u - u * (f.length - 1) / 2, p = t.append("text").attr("x", n + a / 2).attr("y", r).attr("fill", l).style("text-anchor", "middle").style("font-size", u).style("font-family", d);
644
- p.append("tspan").attr("x", n + a / 2).attr("dy", c).text(f[e]), p.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(p, s);
645
- }
646
- }
647
- e(n, "byTspan");
648
- function r(e, t, r, a, o, s, c, l) {
649
- let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
650
- d.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
651
- }
652
- e(r, "byFo");
653
- function i(e, t) {
654
- for (let n in t) n in t && e.attr(n, t[n]);
655
- }
656
- return e(i, "_setTextAttrs"), function(e) {
657
- return e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
658
- };
659
- })(), re = /* @__PURE__ */ e(function(e, t) {
660
- I = 0, U = -1, e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
661
- }, "initGraphics");
662
- function K(e, t) {
663
- e.each(function() {
664
- var e = d(this), n = e.text().split(/(\s+|<br>)/).reverse(), r, i = [], a = 1.1, o = e.attr("y"), s = parseFloat(e.attr("dy")), c = e.text(null).append("tspan").attr("x", 0).attr("y", o).attr("dy", s + "em");
665
- for (let s = 0; s < n.length; s++) r = n[n.length - 1 - s], i.push(r), c.text(i.join(" ").trim()), (c.node().getComputedTextLength() > t || r === "<br>") && (i.pop(), c.text(i.join(" ").trim()), i = r === "<br>" ? [""] : [r], c = e.append("tspan").attr("x", 0).attr("y", o).attr("dy", a + "em").text(r));
666
- });
667
- }
668
- e(K, "wrap");
669
- var ie = /* @__PURE__ */ e(function(e, t, n, r, i, a = !1) {
670
- var o, s, c;
671
- let { theme: l, look: u } = r, f = l == null ? void 0 : l.includes("redux"), p = n % ((o = r == null || (s = r.themeVariables) == null ? void 0 : s.THEME_COLOR_LIMIT) == null ? 12 : o) - 1, m = e.append("g");
672
- t.section = p, m.attr("class", (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + p));
673
- let h = m.append("g"), g = m.append("g"), _ = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(K, t.width).node().getBBox(), v = (c = r.fontSize) != null && c.replace ? r.fontSize.replace("px", "") : r.fontSize;
674
- if (t.height = _.height + v * 1.1 * .5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width += 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), f && g.attr("transform", `translate(${t.width / 2}, ${a ? t.padding / 2 + 3 : t.padding})`), oe(h, t, p, i, r), u === "neo" && (m.attr("data-look", "neo"), f)) {
675
- var y, b, x;
676
- let t = l.includes("dark"), n = d((y = (b = e.node()) == null ? void 0 : b.ownerSVGElement) == null ? e.node() : y), r = (x = n.attr("id")) == null ? "" : x, i = r ? `${r}-drop-shadow` : "drop-shadow";
677
- if (n.select(`#${i}`).empty()) {
678
- let e = n.select("defs");
679
- (e.empty() ? n.append("defs") : e).append("filter").attr("id", i).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", t ? "0.2" : "0.06").attr("flood-color", t ? "#FFFFFF" : "#000000");
680
- }
681
- }
682
- return t;
683
- }, "drawNode"), ae = /* @__PURE__ */ e(function(e, t, n) {
684
- var r;
685
- let i = e.append("g"), a = i.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(K, t.width).node().getBBox(), o = (r = n.fontSize) != null && r.replace ? n.fontSize.replace("px", "") : n.fontSize;
686
- return i.remove(), a.height + o * 1.1 * .5 + t.padding;
687
- }, "getVirtualNodeHeight"), oe = /* @__PURE__ */ e(function(e, t, n, r, i) {
688
- let { theme: a } = i, o = a != null && a.includes("redux") ? 0 : 5, s = o > 0 ? `M0 ${t.height - 5} v${-t.height + 10} q0,-${o},${o},-${o} h${t.width - 10} q${o},0,${o},${o} v${t.height - 5} H0 Z` : `M0 ${t.height - 5} v${-(t.height - 5)} h${t.width} v${t.height} H0 Z`;
689
- e.append("path").attr("id", r + "-node-" + I++).attr("class", "node-bkg node-" + t.type).attr("d", s), a != null && a.includes("redux") || e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
690
- }, "defaultBkg"), q = {
691
- drawRect: L,
692
- drawCircle: z,
693
- drawSection: H,
694
- drawText: B,
695
- drawLabel: V,
696
- drawTask: ee,
697
- drawBackgroundRect: te,
698
- getTextObj: ne,
699
- getNoteRect: W,
700
- initGraphics: re,
701
- drawNode: ie,
702
- getVirtualNodeHeight: ae
703
- }, se = /* @__PURE__ */ e(function(e, n, i, a) {
704
- var o, s, c, l, f, p;
705
- let m = u(), { look: h, theme: g, themeVariables: _ } = m, { useGradient: v, gradientStart: y, gradientStop: b } = _, x = (o = (s = m.timeline) == null ? void 0 : s.leftMargin) == null ? 50 : o;
706
- t.debug("timeline", a.db);
707
- let S = m.securityLevel, C;
708
- S === "sandbox" && (C = d("#i" + n));
709
- let w = d(S === "sandbox" ? C.nodes()[0].contentDocument.body : "body").select("#" + n);
710
- w.append("g");
711
- let T = a.db.getTasks(), E = a.db.getCommonDb().getDiagramTitle();
712
- t.debug("task", T), q.initGraphics(w, n);
713
- let D = a.db.getSections();
714
- t.debug("sections", D);
715
- let O = 0, k = 0, A = 0, j = 0, M = 50 + x, N = 50;
716
- j = 50;
717
- let P = 0, F = !0;
718
- D.forEach(function(e) {
719
- let n = {
720
- number: P,
721
- descr: e,
722
- section: P,
723
- width: 150,
724
- padding: 20,
725
- maxHeight: O
726
- }, r = q.getVirtualNodeHeight(w, n, m);
727
- t.debug("sectionHeight before draw", r), O = Math.max(O, r + 20);
728
- });
729
- let I = 0, L = 0;
730
- t.debug("tasks.length", T.length);
731
- for (let [e, n] of T.entries()) {
732
- let r = {
733
- number: e,
734
- descr: n,
735
- section: n.section,
736
- width: 150,
737
- padding: 20,
738
- maxHeight: k
739
- }, i = q.getVirtualNodeHeight(w, r, m);
740
- t.debug("taskHeight before draw", i), k = Math.max(k, i + 20), I = Math.max(I, n.events.length);
741
- let a = 0;
742
- for (let e of n.events) {
743
- let t = {
744
- descr: e,
745
- section: n.section,
746
- number: n.section,
747
- width: 150,
748
- padding: 20,
749
- maxHeight: 50
750
- };
751
- a += q.getVirtualNodeHeight(w, t, m);
752
- }
753
- n.events.length > 0 && (a += (n.events.length - 1) * 10), L = Math.max(L, a);
754
- }
755
- t.debug("maxSectionHeight before draw", O), t.debug("maxTaskHeight before draw", k), D && D.length > 0 ? D.forEach((e) => {
756
- let r = T.filter((t) => t.section === e), i = {
757
- number: P,
758
- descr: e,
759
- section: P,
760
- width: 200 * Math.max(r.length, 1) - 50,
761
- padding: 20,
762
- maxHeight: O
763
- };
764
- t.debug("sectionNode", i);
765
- let a = w.append("g"), o = q.drawNode(a, i, P, m, n);
766
- t.debug("sectionNode output", o), a.attr("transform", `translate(${M}, ${j})`), N += O + 50, r.length > 0 && J(w, r, P, M, N, k, m, I, L, O, !1, n), M += 200 * Math.max(r.length, 1), N = j, P++;
767
- }) : (F = !1, J(w, T, P, M, N, k, m, I, L, O, !0, n));
768
- let R = w.node().getBBox();
769
- if (t.debug("bounds", R), E && w.append("text").text(E).attr("x", h === "neo" ? R.x * 2 + x : R.width / 2 - x).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), A = F ? O + k + 150 : k + 100, w.append("g").attr("class", "lineWrapper").append("line").attr("x1", x).attr("y1", A).attr("x2", R.width + 3 * x).attr("y2", A).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", `url(#${n}-arrowhead)`), h === "neo" && v && g !== "neutral") {
770
- let e = w.select("defs"), t = (e.empty() ? w.append("defs") : e).append("linearGradient").attr("id", w.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
771
- t.append("stop").attr("offset", "0%").attr("stop-color", y).attr("stop-opacity", 1), t.append("stop").attr("offset", "100%").attr("stop-color", b).attr("stop-opacity", 1);
772
- }
773
- r(void 0, w, (c = (l = m.timeline) == null ? void 0 : l.padding) == null ? 50 : c, (f = (p = m.timeline) == null ? void 0 : p.useMaxWidth) == null ? !1 : f);
774
- }, "draw"), J = /* @__PURE__ */ e(function(e, n, r, i, a, o, s, c, l, u, d, f) {
775
- for (let c of n) {
776
- var p;
777
- let n = {
778
- descr: c.task,
779
- section: r,
780
- number: r,
781
- width: 150,
782
- padding: 20,
783
- maxHeight: o
784
- };
785
- t.debug("taskNode", n);
786
- let u = e.append("g").attr("class", "taskWrapper"), m = q.drawNode(u, n, r, s, f).height;
787
- if (t.debug("taskHeight after draw", m), u.attr("transform", `translate(${i}, ${a})`), o = Math.max(o, m), c.events) {
788
- let t = e.append("g").attr("class", "lineWrapper"), n = o;
789
- a += 100, n += ce(e, c.events, r, i, a, s, f), a -= 100, t.append("line").attr("x1", i + 190 / 2).attr("y1", a + o).attr("x2", i + 190 / 2).attr("y2", a + o + 100 + l + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", `url(#${f}-arrowhead)`).attr("stroke-dasharray", "5,5");
790
- }
791
- i += 200, d && !((p = s.timeline) != null && p.disableMulticolor) && r++;
792
- }
793
- a -= 10;
794
- }, "drawTasks"), ce = /* @__PURE__ */ e(function(e, n, r, i, a, o, s) {
795
- let c = 0, l = a;
796
- a += 100;
797
- for (let l of n) {
798
- let n = {
799
- descr: l,
800
- section: r,
801
- number: r,
802
- width: 150,
803
- padding: 20,
804
- maxHeight: 50
805
- };
806
- t.debug("eventNode", n);
807
- let u = e.append("g").attr("class", "eventWrapper"), d = q.drawNode(u, n, r, o, s, !0).height;
808
- c += d, u.attr("transform", `translate(${i}, ${a})`), a = a + 10 + d;
809
- }
810
- return a = l, c;
811
- }, "drawEvents"), le = {
812
- setConf: /* @__PURE__ */ e(() => {}, "setConf"),
813
- draw: se
814
- }, Y = 200, X = 5, ue = Y + X * 2, Z = Y + 100, de = Z + X * 2, Q = 10, fe = 0, pe = 20, me = 20, he = 30, ge = 50, _e = /* @__PURE__ */ e(function(e, n, i, a) {
815
- var o, s, c, l, d, f, h;
816
- let g = u(), _ = (o = (s = g.timeline) == null ? void 0 : s.leftMargin) == null ? 50 : o;
817
- t.debug("timeline", a.db);
818
- let v = m(n);
819
- v.append("g");
820
- let y = a.db.getTasks(), b = a.db.getCommonDb().getDiagramTitle();
821
- t.debug("task", y), q.initGraphics(v);
822
- let x = a.db.getSections();
823
- t.debug("sections", x);
824
- let S = 0, C = 0, w = 50 + _, T = 50, E = T, D = w, O = ue + me, k = de + ge, A = D + O, j = 0, M = x && x.length > 0, N = M ? A : w + O, P = Math.max(50, O + k - X * 2);
825
- x.forEach(function(e) {
826
- let n = {
827
- number: j,
828
- descr: e,
829
- section: j,
830
- width: P,
831
- padding: X,
832
- maxHeight: S
833
- }, r = q.getVirtualNodeHeight(v, n, g);
834
- t.debug("sectionHeight before draw", r), S = Math.max(S, r);
835
- });
836
- let F = 0;
837
- t.debug("tasks.length", y.length);
838
- for (let [e, n] of y.entries()) {
839
- let r = {
840
- number: e,
841
- descr: n,
842
- section: n.section,
843
- width: Y,
844
- padding: X,
845
- maxHeight: C
846
- }, i = q.getVirtualNodeHeight(v, r, g);
847
- t.debug("taskHeight before draw", i), C = Math.max(C, i);
848
- let a = 0;
849
- for (let e of n.events) {
850
- let t = {
851
- descr: e,
852
- section: n.section,
853
- number: n.section,
854
- width: Z,
855
- padding: X,
856
- maxHeight: 50
857
- };
858
- a += q.getVirtualNodeHeight(v, t, g);
859
- }
860
- n.events.length > 0 && (a += (n.events.length - 1) * Q), F = Math.max(F, a) + fe;
861
- }
862
- t.debug("maxSectionHeight before draw", S), t.debug("maxTaskHeight before draw", C);
863
- let I = Math.max(C, F) + he;
864
- M ? x.forEach((e) => {
865
- let n = y.filter((t) => t.section === e), r = {
866
- number: j,
867
- descr: e,
868
- section: j,
869
- width: P,
870
- padding: X,
871
- maxHeight: S
872
- };
873
- t.debug("sectionNode", r);
874
- let i = v.append("g"), a = q.drawNode(i, r, j, g);
875
- t.debug("sectionNode output", a);
876
- let o = N - O;
877
- i.attr("transform", `translate(${o}, ${T})`);
878
- let s = T + a.height + pe;
879
- n.length > 0 && $(v, n, j, N, s, C, g, I, !1);
880
- let c = n.length, l = a.height + pe + I * Math.max(c, 1) - (c > 0 ? he * 2 : 0);
881
- T += l, j++;
882
- }) : $(v, y, j, N, T, C, g, I, !0);
883
- let L = (c = v.node()) == null ? void 0 : c.getBBox();
884
- if (!L) throw Error("bbox not found");
885
- if (t.debug("bounds", L), b) {
886
- var R;
887
- if (v.append("text").text(b).attr("x", L.width / 2 - _).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), L = (R = v.node()) == null ? void 0 : R.getBBox(), !L) throw Error("bbox not found");
888
- t.debug("bounds after title", L);
889
- }
890
- let [z] = p(g.fontSize), B = (z == null ? 16 : z) * 2, V = (z == null ? 16 : z) * .5 + 20, H = v.append("g").attr("class", "lineWrapper");
891
- H.append("line").attr("x1", N).attr("y1", E - B).attr("x2", N).attr("y2", L.y + L.height + V).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), H.lower(), r(void 0, v, (l = (d = g.timeline) == null ? void 0 : d.padding) == null ? 50 : l, (f = (h = g.timeline) == null ? void 0 : h.useMaxWidth) == null ? !1 : f);
892
- }, "draw"), $ = /* @__PURE__ */ e(function(e, n, r, i, a, o, s, c, l) {
893
- for (let d of n) {
894
- var u;
895
- let n = {
896
- descr: d.task,
897
- section: r,
898
- number: r,
899
- width: Y,
900
- padding: X,
901
- maxHeight: o
902
- };
903
- t.debug("taskNode", n);
904
- let f = e.append("g").attr("class", "taskWrapper"), p = q.drawNode(f, n, r, s), m = p.height;
905
- t.debug("taskHeight after draw", m);
906
- let h = i - me - p.width;
907
- if (f.attr("transform", `translate(${h}, ${a})`), o = Math.max(o, m), d.events && d.events.length > 0) {
908
- let t = a, n = i + ge;
909
- ve(e, d.events, r, i, n, t, s);
910
- }
911
- a += c, l && !((u = s.timeline) != null && u.disableMulticolor) && r++;
912
- }
913
- }, "drawTasks"), ve = /* @__PURE__ */ e(function(e, n, r, i, a, o, s) {
914
- let c = o;
915
- for (let o of n) {
916
- let n = {
917
- descr: o,
918
- section: r,
919
- number: r,
920
- width: Z,
921
- padding: X,
922
- maxHeight: 0
923
- };
924
- t.debug("eventNode", n);
925
- let l = e.append("g").attr("class", "eventWrapper"), u = q.drawNode(l, n, r, s).height;
926
- l.attr("transform", `translate(${a}, ${c})`);
927
- let d = e.append("g").attr("class", "lineWrapper"), f = c + u / 2;
928
- d.append("line").attr("x1", i).attr("y1", f).attr("x2", a).attr("y2", f).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"), c = c + u + Q;
929
- }
930
- return c - o;
931
- }, "drawEvents"), ye = {
932
- setConf: /* @__PURE__ */ e(() => {}, "setConf"),
933
- draw: _e
934
- }, be = /* @__PURE__ */ e((e) => {
935
- var t, n, r;
936
- let { theme: i } = a(), o = i == null ? void 0 : i.includes("dark"), s = i == null ? void 0 : i.includes("color"), c = (t = (n = e.svgId) == null ? void 0 : n.replace(/^#/, "")) == null ? "" : t, l = c ? `url(#${c}-drop-shadow)` : (r = e.dropShadow) == null ? "none" : r, u = "";
937
- for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) {
938
- var d, f;
939
- let n = `${17 - 3 * t}`, r = s ? e.borderColorArray[t] : e.mainBkg, i = s ? e.borderColorArray[t] : e.nodeBorder;
940
- u += `
941
- .section-${t - 1} rect,
942
- .section-${t - 1} path,
943
- .section-${t - 1} circle {
944
- fill: ${o && s ? e.mainBkg : r};
945
- stroke: ${i};
946
- stroke-width: ${e.strokeWidth};
947
- filter: ${l};
948
- }
949
-
950
- .section-${t - 1} text {
951
- fill: ${e.nodeBorder};
952
- font-weight: ${e.fontWeight}
953
- }
954
-
955
- .node-icon-${t - 1} {
956
- font-size: 40px;
957
- color: ${e["cScaleLabel" + t]};
958
- }
959
-
960
- .section-edge-${t - 1} {
961
- stroke: ${e["cScale" + t]};
962
- }
963
-
964
- .edge-depth-${t - 1} {
965
- stroke-width: ${n};
966
- }
967
-
968
- .section-${t - 1} line {
969
- stroke: ${e["cScaleInv" + t]};
970
- stroke-width: 3;
971
- }
972
-
973
- .lineWrapper line {
974
- stroke: ${e.nodeBorder};
975
- stroke-width:${e.strokeWidth}
976
- }
977
-
978
- .disabled,
979
- .disabled circle,
980
- .disabled text {
981
- fill: ${(d = e.tertiaryColor) == null ? "lightgray" : d};
982
- }
983
-
984
- .disabled text {
985
- fill: ${(f = e.clusterBorder) == null ? "#efefef" : f};
986
- }
987
- `;
988
- }
989
- return u;
990
- }, "genReduxSections"), xe = /* @__PURE__ */ e((e) => {
991
- let t = "";
992
- for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], c(e["lineColor" + t]) ? e["lineColor" + t] = l(e["lineColor" + t], 20) : e["lineColor" + t] = o(e["lineColor" + t], 20);
993
- for (let i = 0; i < e.THEME_COLOR_LIMIT; i++) {
994
- var n, r;
995
- let a = "" + (17 - 3 * i);
996
- t += `
997
- .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} path {
998
- fill: ${e["cScale" + i]};
999
- }
1000
- .section-${i - 1} text {
1001
- fill: ${e["cScaleLabel" + i]};
1002
- }
1003
- .node-icon-${i - 1} {
1004
- font-size: 40px;
1005
- color: ${e["cScaleLabel" + i]};
1006
- }
1007
- .section-edge-${i - 1}{
1008
- stroke: ${e["cScale" + i]};
1009
- }
1010
- .edge-depth-${i - 1}{
1011
- stroke-width: ${a};
1012
- }
1013
- .section-${i - 1} line {
1014
- stroke: ${e["cScaleInv" + i]} ;
1015
- stroke-width: 3;
1016
- }
1017
-
1018
- .lineWrapper line{
1019
- stroke: ${e["cScaleLabel" + i]} ;
1020
- }
1021
-
1022
- .disabled, .disabled circle, .disabled text {
1023
- fill: ${(n = e.tertiaryColor) == null ? "lightgray" : n};
1024
- }
1025
- .disabled text {
1026
- fill: ${(r = e.clusterBorder) == null ? "#efefef" : r};
1027
- }
1028
- `;
1029
- }
1030
- return t;
1031
- }, "genSections"), Se = {
1032
- db: _,
1033
- renderer: {
1034
- setConf: /* @__PURE__ */ e(() => {}, "setConf"),
1035
- draw: /* @__PURE__ */ e((e, t, n, r) => {
1036
- var i, a, o;
1037
- return ((i = r == null || (a = r.db) == null || (o = a.getDirection) == null ? void 0 : o.call(a)) == null ? "LR" : i) === "TD" ? ye.draw(e, t, n, r) : le.draw(e, t, n, r);
1038
- }, "draw")
1039
- },
1040
- parser: g,
1041
- styles: /* @__PURE__ */ e((e) => {
1042
- var t, n;
1043
- let { theme: r } = a(), i = r == null ? void 0 : r.includes("redux"), o = r === "neutral", s = (t = (n = e.svgId) == null ? void 0 : n.replace(/^#/, "")) == null ? "" : t, c = "";
1044
- if (e.useGradient && s && e.THEME_COLOR_LIMIT && !o) for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) c += `
1045
- .section-${t - 1}[data-look="neo"] rect,
1046
- .section-${t - 1}[data-look="neo"] path,
1047
- .section-${t - 1}[data-look="neo"] circle {
1048
- fill: ${e.mainBkg};
1049
- stroke: url(#${s}-gradient);
1050
- stroke-width: 2;
1051
- }
1052
- .section-${t - 1}[data-look="neo"] line {
1053
- stroke: url(#${s}-gradient);
1054
- stroke-width: 2;
1055
- }`;
1056
- return `
1057
- .edge {
1058
- stroke-width: 3;
1059
- }
1060
- ${i ? be(e) : xe(e)}
1061
- ${c}
1062
- .section-root rect, .section-root path, .section-root circle {
1063
- fill: ${e.git0};
1064
- }
1065
- .section-root text {
1066
- fill: ${e.gitBranchLabel0};
1067
- }
1068
- .icon-container {
1069
- height:100%;
1070
- display: flex;
1071
- justify-content: center;
1072
- align-items: center;
1073
- }
1074
- .edge {
1075
- fill: none;
1076
- }
1077
- .eventWrapper {
1078
- filter: brightness(120%);
1079
- }
1080
- `;
1081
- }, "getStyles")
1082
- };
1083
- //#endregion
1084
- export { Se as diagram };