@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,885 +0,0 @@
1
- import { n as e } from "./chunk-AGHRB4JF.js";
2
- import { H as t, K as n, U as r, a as i, c as a, v as o, w as s, x as c, y as l } from "./chunk-CSCIHK7Q.js";
3
- import { Q as u } from "./src.js";
4
- import { t as d } from "./arc.js";
5
- import { t as f } from "./chunk-FMBD7UC4.js";
6
- import { a as p, n as m, o as h, s as g } from "./chunk-ND2GUHAM.js";
7
- //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-JHISSGLW.mjs
8
- var _ = (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
- 8,
15
- 10,
16
- 11,
17
- 12,
18
- 14,
19
- 16,
20
- 17,
21
- 18
22
- ], r = [1, 9], i = [1, 10], a = [1, 11], o = [1, 12], s = [1, 13], c = [1, 14], l = {
23
- trace: /* @__PURE__ */ e(function() {}, "trace"),
24
- yy: {},
25
- symbols_: {
26
- error: 2,
27
- start: 3,
28
- journey: 4,
29
- document: 5,
30
- EOF: 6,
31
- line: 7,
32
- SPACE: 8,
33
- statement: 9,
34
- NEWLINE: 10,
35
- title: 11,
36
- acc_title: 12,
37
- acc_title_value: 13,
38
- acc_descr: 14,
39
- acc_descr_value: 15,
40
- acc_descr_multiline_value: 16,
41
- section: 17,
42
- taskName: 18,
43
- taskData: 19,
44
- $accept: 0,
45
- $end: 1
46
- },
47
- terminals_: {
48
- 2: "error",
49
- 4: "journey",
50
- 6: "EOF",
51
- 8: "SPACE",
52
- 10: "NEWLINE",
53
- 11: "title",
54
- 12: "acc_title",
55
- 13: "acc_title_value",
56
- 14: "acc_descr",
57
- 15: "acc_descr_value",
58
- 16: "acc_descr_multiline_value",
59
- 17: "section",
60
- 18: "taskName",
61
- 19: "taskData"
62
- },
63
- productions_: [
64
- 0,
65
- [3, 3],
66
- [5, 0],
67
- [5, 2],
68
- [7, 2],
69
- [7, 1],
70
- [7, 1],
71
- [7, 1],
72
- [9, 1],
73
- [9, 2],
74
- [9, 2],
75
- [9, 1],
76
- [9, 1],
77
- [9, 2]
78
- ],
79
- performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
80
- var s = a.length - 1;
81
- switch (i) {
82
- case 1: return a[s - 1];
83
- case 2:
84
- this.$ = [];
85
- break;
86
- case 3:
87
- a[s - 1].push(a[s]), this.$ = a[s - 1];
88
- break;
89
- case 4:
90
- case 5:
91
- this.$ = a[s];
92
- break;
93
- case 6:
94
- case 7:
95
- this.$ = [];
96
- break;
97
- case 8:
98
- r.setDiagramTitle(a[s].substr(6)), this.$ = a[s].substr(6);
99
- break;
100
- case 9:
101
- this.$ = a[s].trim(), r.setAccTitle(this.$);
102
- break;
103
- case 10:
104
- case 11:
105
- this.$ = a[s].trim(), r.setAccDescription(this.$);
106
- break;
107
- case 12:
108
- r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
109
- break;
110
- case 13:
111
- r.addTask(a[s - 1], a[s]), this.$ = "task";
112
- break;
113
- }
114
- }, "anonymous"),
115
- table: [
116
- {
117
- 3: 1,
118
- 4: [1, 2]
119
- },
120
- { 1: [3] },
121
- t(n, [2, 2], { 5: 3 }),
122
- {
123
- 6: [1, 4],
124
- 7: 5,
125
- 8: [1, 6],
126
- 9: 7,
127
- 10: [1, 8],
128
- 11: r,
129
- 12: i,
130
- 14: a,
131
- 16: o,
132
- 17: s,
133
- 18: c
134
- },
135
- t(n, [2, 7], { 1: [2, 1] }),
136
- t(n, [2, 3]),
137
- {
138
- 9: 15,
139
- 11: r,
140
- 12: i,
141
- 14: a,
142
- 16: o,
143
- 17: s,
144
- 18: c
145
- },
146
- t(n, [2, 5]),
147
- t(n, [2, 6]),
148
- t(n, [2, 8]),
149
- { 13: [1, 16] },
150
- { 15: [1, 17] },
151
- t(n, [2, 11]),
152
- t(n, [2, 12]),
153
- { 19: [1, 18] },
154
- t(n, [2, 4]),
155
- t(n, [2, 9]),
156
- t(n, [2, 10]),
157
- t(n, [2, 13])
158
- ],
159
- defaultActions: {},
160
- parseError: /* @__PURE__ */ e(function(e, t) {
161
- if (t.recoverable) this.trace(e);
162
- else {
163
- var n = Error(e);
164
- throw n.hash = t, n;
165
- }
166
- }, "parseError"),
167
- parse: /* @__PURE__ */ e(function(t) {
168
- 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: {} };
169
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
170
- h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
171
- var v = h.yylloc;
172
- o.push(v);
173
- var y = h.options && h.options.ranges;
174
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
175
- function b(e) {
176
- r.length -= 2 * e, a.length -= e, o.length -= e;
177
- }
178
- e(b, "popStack");
179
- function x() {
180
- var e = i.pop() || h.lex() || p;
181
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
182
- }
183
- e(x, "lex");
184
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
185
- 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]) {
186
- var M = "";
187
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
188
- 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, {
189
- text: h.match,
190
- token: this.terminals_[S] || S,
191
- line: h.yylineno,
192
- loc: v,
193
- expected: j
194
- });
195
- }
196
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
197
- switch (T[0]) {
198
- case 1:
199
- 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--);
200
- break;
201
- case 2:
202
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
203
- first_line: o[o.length - (k || 1)].first_line,
204
- last_line: o[o.length - 1].last_line,
205
- first_column: o[o.length - (k || 1)].first_column,
206
- last_column: o[o.length - 1].last_column
207
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
208
- c,
209
- u,
210
- l,
211
- g.yy,
212
- T[1],
213
- a,
214
- o
215
- ].concat(m)), E !== void 0) return E;
216
- 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);
217
- break;
218
- case 3: return !0;
219
- }
220
- }
221
- return !0;
222
- }, "parse")
223
- };
224
- l.lexer = /* @__PURE__ */ (function() {
225
- return {
226
- EOF: 1,
227
- parseError: /* @__PURE__ */ e(function(e, t) {
228
- if (this.yy.parser) this.yy.parser.parseError(e, t);
229
- else throw Error(e);
230
- }, "parseError"),
231
- setInput: /* @__PURE__ */ e(function(e, t) {
232
- 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 = {
233
- first_line: 1,
234
- first_column: 0,
235
- last_line: 1,
236
- last_column: 0
237
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
238
- }, "setInput"),
239
- input: /* @__PURE__ */ e(function() {
240
- var e = this._input[0];
241
- 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;
242
- }, "input"),
243
- unput: /* @__PURE__ */ e(function(e) {
244
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
245
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
246
- var r = this.match.split(/(?:\r\n?|\n)/g);
247
- 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);
248
- var i = this.yylloc.range;
249
- return this.yylloc = {
250
- first_line: this.yylloc.first_line,
251
- last_line: this.yylineno + 1,
252
- first_column: this.yylloc.first_column,
253
- 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
254
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
255
- }, "unput"),
256
- more: /* @__PURE__ */ e(function() {
257
- return this._more = !0, this;
258
- }, "more"),
259
- reject: /* @__PURE__ */ e(function() {
260
- if (this.options.backtrack_lexer) this._backtrack = !0;
261
- 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(), {
262
- text: "",
263
- token: null,
264
- line: this.yylineno
265
- });
266
- return this;
267
- }, "reject"),
268
- less: /* @__PURE__ */ e(function(e) {
269
- this.unput(this.match.slice(e));
270
- }, "less"),
271
- pastInput: /* @__PURE__ */ e(function() {
272
- var e = this.matched.substr(0, this.matched.length - this.match.length);
273
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
274
- }, "pastInput"),
275
- upcomingInput: /* @__PURE__ */ e(function() {
276
- var e = this.match;
277
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
278
- }, "upcomingInput"),
279
- showPosition: /* @__PURE__ */ e(function() {
280
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
281
- return e + this.upcomingInput() + "\n" + t + "^";
282
- }, "showPosition"),
283
- test_match: /* @__PURE__ */ e(function(e, t) {
284
- var n, r, i;
285
- if (this.options.backtrack_lexer && (i = {
286
- yylineno: this.yylineno,
287
- yylloc: {
288
- first_line: this.yylloc.first_line,
289
- last_line: this.last_line,
290
- first_column: this.yylloc.first_column,
291
- last_column: this.yylloc.last_column
292
- },
293
- yytext: this.yytext,
294
- match: this.match,
295
- matches: this.matches,
296
- matched: this.matched,
297
- yyleng: this.yyleng,
298
- offset: this.offset,
299
- _more: this._more,
300
- _input: this._input,
301
- yy: this.yy,
302
- conditionStack: this.conditionStack.slice(0),
303
- done: this.done
304
- }, 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 = {
305
- first_line: this.yylloc.last_line,
306
- last_line: this.yylineno + 1,
307
- first_column: this.yylloc.last_column,
308
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
309
- }, 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;
310
- if (this._backtrack) {
311
- for (var a in i) this[a] = i[a];
312
- return !1;
313
- }
314
- return !1;
315
- }, "test_match"),
316
- next: /* @__PURE__ */ e(function() {
317
- if (this.done) return this.EOF;
318
- this._input || (this.done = !0);
319
- var e, t, n, r;
320
- this._more || (this.yytext = "", this.match = "");
321
- 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)) {
322
- if (t = n, r = a, this.options.backtrack_lexer) {
323
- if (e = this.test_match(n, i[a]), e !== !1) return e;
324
- if (this._backtrack) {
325
- t = !1;
326
- continue;
327
- } else return !1;
328
- } else if (!this.options.flex) break;
329
- }
330
- 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(), {
331
- text: "",
332
- token: null,
333
- line: this.yylineno
334
- });
335
- }, "next"),
336
- lex: /* @__PURE__ */ e(function() {
337
- return this.next() || this.lex();
338
- }, "lex"),
339
- begin: /* @__PURE__ */ e(function(e) {
340
- this.conditionStack.push(e);
341
- }, "begin"),
342
- popState: /* @__PURE__ */ e(function() {
343
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
344
- }, "popState"),
345
- _currentRules: /* @__PURE__ */ e(function() {
346
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
347
- }, "_currentRules"),
348
- topState: /* @__PURE__ */ e(function(e) {
349
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
350
- }, "topState"),
351
- pushState: /* @__PURE__ */ e(function(e) {
352
- this.begin(e);
353
- }, "pushState"),
354
- stateStackSize: /* @__PURE__ */ e(function() {
355
- return this.conditionStack.length;
356
- }, "stateStackSize"),
357
- options: { "case-insensitive": !0 },
358
- performAction: /* @__PURE__ */ e(function(e, t, n, r) {
359
- switch (n) {
360
- case 0: break;
361
- case 1: break;
362
- case 2: return 10;
363
- case 3: break;
364
- case 4: break;
365
- case 5: return 4;
366
- case 6: return 11;
367
- case 7: return this.begin("acc_title"), 12;
368
- case 8: return this.popState(), "acc_title_value";
369
- case 9: return this.begin("acc_descr"), 14;
370
- case 10: return this.popState(), "acc_descr_value";
371
- case 11:
372
- this.begin("acc_descr_multiline");
373
- break;
374
- case 12:
375
- this.popState();
376
- break;
377
- case 13: return "acc_descr_multiline_value";
378
- case 14: return 17;
379
- case 15: return 18;
380
- case 16: return 19;
381
- case 17: return ":";
382
- case 18: return 6;
383
- case 19: return "INVALID";
384
- }
385
- }, "anonymous"),
386
- rules: [
387
- /^(?:%(?!\{)[^\n]*)/i,
388
- /^(?:[^\}]%%[^\n]*)/i,
389
- /^(?:[\n]+)/i,
390
- /^(?:\s+)/i,
391
- /^(?:#[^\n]*)/i,
392
- /^(?:journey\b)/i,
393
- /^(?:title\s[^#\n;]+)/i,
394
- /^(?:accTitle\s*:\s*)/i,
395
- /^(?:(?!\n||)*[^\n]*)/i,
396
- /^(?:accDescr\s*:\s*)/i,
397
- /^(?:(?!\n||)*[^\n]*)/i,
398
- /^(?:accDescr\s*\{\s*)/i,
399
- /^(?:[\}])/i,
400
- /^(?:[^\}]*)/i,
401
- /^(?:section\s[^#:\n;]+)/i,
402
- /^(?:[^#:\n;]+)/i,
403
- /^(?::[^#\n;]+)/i,
404
- /^(?::)/i,
405
- /^(?:$)/i,
406
- /^(?:.)/i
407
- ],
408
- conditions: {
409
- acc_descr_multiline: {
410
- rules: [12, 13],
411
- inclusive: !1
412
- },
413
- acc_descr: {
414
- rules: [10],
415
- inclusive: !1
416
- },
417
- acc_title: {
418
- rules: [8],
419
- inclusive: !1
420
- },
421
- INITIAL: {
422
- rules: [
423
- 0,
424
- 1,
425
- 2,
426
- 3,
427
- 4,
428
- 5,
429
- 6,
430
- 7,
431
- 9,
432
- 11,
433
- 14,
434
- 15,
435
- 16,
436
- 17,
437
- 18,
438
- 19
439
- ],
440
- inclusive: !0
441
- }
442
- }
443
- };
444
- })();
445
- function u() {
446
- this.yy = {};
447
- }
448
- return e(u, "Parser"), u.prototype = l, l.Parser = u, new u();
449
- })();
450
- _.parser = _;
451
- var v = _, y = "", b = [], x = [], S = [], C = /* @__PURE__ */ e(function() {
452
- b.length = 0, x.length = 0, y = "", S.length = 0, i();
453
- }, "clear"), w = /* @__PURE__ */ e(function(e) {
454
- y = e, b.push(e);
455
- }, "addSection"), T = /* @__PURE__ */ e(function() {
456
- return b;
457
- }, "getSections"), E = /* @__PURE__ */ e(function() {
458
- let e = A(), t = 0;
459
- for (; !e && t < 100;) e = A(), t++;
460
- return x.push(...S), x;
461
- }, "getTasks"), D = /* @__PURE__ */ e(function() {
462
- let e = [];
463
- return x.forEach((t) => {
464
- t.people && e.push(...t.people);
465
- }), [...new Set(e)].sort();
466
- }, "updateActors"), O = /* @__PURE__ */ e(function(e, t) {
467
- let n = t.substr(1).split(":"), r = 0, i = [];
468
- n.length === 1 ? (r = Number(n[0]), i = []) : (r = Number(n[0]), i = n[1].split(","));
469
- let a = i.map((e) => e.trim()), o = {
470
- section: y,
471
- type: y,
472
- people: a,
473
- task: e,
474
- score: r
475
- };
476
- S.push(o);
477
- }, "addTask"), k = /* @__PURE__ */ e(function(e) {
478
- let t = {
479
- section: y,
480
- type: y,
481
- description: e,
482
- task: e,
483
- classes: []
484
- };
485
- x.push(t);
486
- }, "addTaskOrg"), A = /* @__PURE__ */ e(function() {
487
- let t = /* @__PURE__ */ e(function(e) {
488
- return S[e].processed;
489
- }, "compileTask"), n = !0;
490
- for (let [e, r] of S.entries()) t(e), n = n && r.processed;
491
- return n;
492
- }, "compileTasks"), j = {
493
- getConfig: /* @__PURE__ */ e(() => c().journey, "getConfig"),
494
- clear: C,
495
- setDiagramTitle: n,
496
- getDiagramTitle: s,
497
- setAccTitle: r,
498
- getAccTitle: l,
499
- setAccDescription: t,
500
- getAccDescription: o,
501
- addSection: w,
502
- getSections: T,
503
- getTasks: E,
504
- addTask: O,
505
- addTaskOrg: k,
506
- getActors: /* @__PURE__ */ e(function() {
507
- return D();
508
- }, "getActors")
509
- }, M = /* @__PURE__ */ e((e) => `.label {
510
- font-family: ${e.fontFamily};
511
- color: ${e.textColor};
512
- }
513
- .mouth {
514
- stroke: #666;
515
- }
516
-
517
- line {
518
- stroke: ${e.textColor}
519
- }
520
-
521
- .legend {
522
- fill: ${e.textColor};
523
- font-family: ${e.fontFamily};
524
- }
525
-
526
- .label text {
527
- fill: #333;
528
- }
529
- .label {
530
- color: ${e.textColor}
531
- }
532
-
533
- .face {
534
- ${e.faceColor ? `fill: ${e.faceColor}` : "fill: #FFF8DC"};
535
- stroke: #999;
536
- }
537
-
538
- .node rect,
539
- .node circle,
540
- .node ellipse,
541
- .node polygon,
542
- .node path {
543
- fill: ${e.mainBkg};
544
- stroke: ${e.nodeBorder};
545
- stroke-width: 1px;
546
- }
547
-
548
- .node .label {
549
- text-align: center;
550
- }
551
- .node.clickable {
552
- cursor: pointer;
553
- }
554
-
555
- .arrowheadPath {
556
- fill: ${e.arrowheadColor};
557
- }
558
-
559
- .edgePath .path {
560
- stroke: ${e.lineColor};
561
- stroke-width: 1.5px;
562
- }
563
-
564
- .flowchart-link {
565
- stroke: ${e.lineColor};
566
- fill: none;
567
- }
568
-
569
- .edgeLabel {
570
- background-color: ${e.edgeLabelBackground};
571
- rect {
572
- opacity: 0.5;
573
- }
574
- text-align: center;
575
- }
576
-
577
- .cluster rect {
578
- }
579
-
580
- .cluster text {
581
- fill: ${e.titleColor};
582
- }
583
-
584
- div.mermaidTooltip {
585
- position: absolute;
586
- text-align: center;
587
- max-width: 200px;
588
- padding: 2px;
589
- font-family: ${e.fontFamily};
590
- font-size: 12px;
591
- background: ${e.tertiaryColor};
592
- border: 1px solid ${e.border2};
593
- border-radius: 2px;
594
- pointer-events: none;
595
- z-index: 100;
596
- }
597
-
598
- .task-type-0, .section-type-0 {
599
- ${e.fillType0 ? `fill: ${e.fillType0}` : ""};
600
- }
601
- .task-type-1, .section-type-1 {
602
- ${e.fillType0 ? `fill: ${e.fillType1}` : ""};
603
- }
604
- .task-type-2, .section-type-2 {
605
- ${e.fillType0 ? `fill: ${e.fillType2}` : ""};
606
- }
607
- .task-type-3, .section-type-3 {
608
- ${e.fillType0 ? `fill: ${e.fillType3}` : ""};
609
- }
610
- .task-type-4, .section-type-4 {
611
- ${e.fillType0 ? `fill: ${e.fillType4}` : ""};
612
- }
613
- .task-type-5, .section-type-5 {
614
- ${e.fillType0 ? `fill: ${e.fillType5}` : ""};
615
- }
616
- .task-type-6, .section-type-6 {
617
- ${e.fillType0 ? `fill: ${e.fillType6}` : ""};
618
- }
619
- .task-type-7, .section-type-7 {
620
- ${e.fillType0 ? `fill: ${e.fillType7}` : ""};
621
- }
622
-
623
- .actor-0 {
624
- ${e.actor0 ? `fill: ${e.actor0}` : ""};
625
- }
626
- .actor-1 {
627
- ${e.actor1 ? `fill: ${e.actor1}` : ""};
628
- }
629
- .actor-2 {
630
- ${e.actor2 ? `fill: ${e.actor2}` : ""};
631
- }
632
- .actor-3 {
633
- ${e.actor3 ? `fill: ${e.actor3}` : ""};
634
- }
635
- .actor-4 {
636
- ${e.actor4 ? `fill: ${e.actor4}` : ""};
637
- }
638
- .actor-5 {
639
- ${e.actor5 ? `fill: ${e.actor5}` : ""};
640
- }
641
- ${f()}
642
- `, "getStyles"), N = /* @__PURE__ */ e(function(e, t) {
643
- return p(e, t);
644
- }, "drawRect"), P = /* @__PURE__ */ e(function(t, n) {
645
- 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");
646
- 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");
647
- function a(e) {
648
- let t = d().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(15 / 2).outerRadius(15 / 2.2);
649
- e.append("path").attr("class", "mouth").attr("d", t).attr("transform", "translate(" + n.cx + "," + (n.cy + 2) + ")");
650
- }
651
- e(a, "smile");
652
- function o(e) {
653
- let t = d().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(15 / 2).outerRadius(15 / 2.2);
654
- e.append("path").attr("class", "mouth").attr("d", t).attr("transform", "translate(" + n.cx + "," + (n.cy + 7) + ")");
655
- }
656
- e(o, "sad");
657
- function s(e) {
658
- 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");
659
- }
660
- return e(s, "ambivalent"), n.score > 3 ? a(i) : n.score < 3 ? o(i) : s(i), r;
661
- }, "drawFace"), F = /* @__PURE__ */ e(function(e, t) {
662
- let n = e.append("circle");
663
- 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;
664
- }, "drawCircle"), I = /* @__PURE__ */ e(function(e, t) {
665
- return h(e, t);
666
- }, "drawText"), L = /* @__PURE__ */ e(function(t, n) {
667
- function r(e, t, n, r, i) {
668
- return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
669
- }
670
- e(r, "genPoints");
671
- let i = t.append("polygon");
672
- i.attr("points", r(n.x, n.y, 50, 20, 7)), i.attr("class", "labelBox"), n.y += n.labelMargin, n.x += .5 * n.labelMargin, I(t, n);
673
- }, "drawLabel"), R = /* @__PURE__ */ e(function(e, t, n) {
674
- let r = e.append("g"), i = g();
675
- i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = n.width * t.taskCount + n.diagramMarginX * (t.taskCount - 1), i.height = n.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, N(r, i), H(n)(t.text, r, i.x, i.y, i.width, i.height, { class: "journey-section section-type-" + t.num }, n, t.colour);
676
- }, "drawSection"), z = -1, B = /* @__PURE__ */ e(function(e, t, n, r) {
677
- let i = t.x + n.width / 2, a = e.append("g");
678
- z++, a.append("line").attr("id", r + "-task" + z).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"), P(a, {
679
- cx: i,
680
- cy: 300 + (5 - t.score) * 30,
681
- score: t.score
682
- });
683
- let o = g();
684
- 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, N(a, o);
685
- let s = t.x + 14;
686
- t.people.forEach((e) => {
687
- let n = t.actors[e].color;
688
- F(a, {
689
- cx: s,
690
- cy: t.y,
691
- r: 7,
692
- fill: n,
693
- stroke: "#000",
694
- title: e,
695
- pos: t.actors[e].position
696
- }), s += 10;
697
- }), H(n)(t.task, a, o.x, o.y, o.width, o.height, { class: "task" }, n, t.colour);
698
- }, "drawTask"), V = /* @__PURE__ */ e(function(e, t) {
699
- m(e, t);
700
- }, "drawBackgroundRect"), H = /* @__PURE__ */ (function() {
701
- function t(e, t, n, r, a, o, s, c) {
702
- 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);
703
- }
704
- e(t, "byText");
705
- function n(e, t, n, r, a, o, s, c, l) {
706
- let { taskFontSize: u, taskFontFamily: d } = c, f = e.split(/<br\s*\/?>/gi);
707
- for (let e = 0; e < f.length; e++) {
708
- 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);
709
- 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);
710
- }
711
- }
712
- e(n, "byTspan");
713
- function r(e, t, r, a, o, s, c, l) {
714
- 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%");
715
- 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);
716
- }
717
- e(r, "byFo");
718
- function i(e, t) {
719
- for (let n in t) n in t && e.attr(n, t[n]);
720
- }
721
- return e(i, "_setTextAttrs"), function(e) {
722
- return e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
723
- };
724
- })(), U = {
725
- drawRect: N,
726
- drawCircle: F,
727
- drawSection: R,
728
- drawText: I,
729
- drawLabel: L,
730
- drawTask: B,
731
- drawBackgroundRect: V,
732
- initGraphics: /* @__PURE__ */ e(function(e, t) {
733
- z = -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");
734
- }, "initGraphics")
735
- }, W = /* @__PURE__ */ e(function(e) {
736
- Object.keys(e).forEach(function(t) {
737
- J[t] = e[t];
738
- });
739
- }, "setConf"), G = {}, K = 0;
740
- function q(e) {
741
- let t = c().journey, n = t.maxLabelWidth;
742
- K = 0;
743
- let r = 60;
744
- Object.keys(G).forEach((i) => {
745
- let a = G[i].color, o = {
746
- cx: 20,
747
- cy: r,
748
- r: 7,
749
- fill: a,
750
- stroke: "#000",
751
- pos: G[i].position
752
- };
753
- U.drawCircle(e, o);
754
- let s = e.append("text").attr("visibility", "hidden").text(i), c = s.node().getBoundingClientRect().width;
755
- s.remove();
756
- let l = [];
757
- if (c <= n) l = [i];
758
- else {
759
- let t = i.split(" "), r = "";
760
- s = e.append("text").attr("visibility", "hidden"), t.forEach((e) => {
761
- let t = r ? `${r} ${e}` : e;
762
- if (s.text(t), s.node().getBoundingClientRect().width > n) {
763
- if (r && l.push(r), r = e, s.text(e), s.node().getBoundingClientRect().width > n) {
764
- let t = "";
765
- for (let r of e) t += r, s.text(t + "-"), s.node().getBoundingClientRect().width > n && (l.push(t.slice(0, -1) + "-"), t = r);
766
- r = t;
767
- }
768
- } else r = t;
769
- }), r && l.push(r), s.remove();
770
- }
771
- l.forEach((n, i) => {
772
- var a;
773
- let o = {
774
- x: 40,
775
- y: r + 7 + i * 20,
776
- fill: "#666",
777
- text: n,
778
- textMargin: (a = t.boxTextMargin) == null ? 5 : a
779
- }, s = U.drawText(e, o).node().getBoundingClientRect().width;
780
- s > K && s > t.leftMargin - s && (K = s);
781
- }), r += Math.max(20, l.length * 20);
782
- });
783
- }
784
- e(q, "drawActorLegend");
785
- var J = c().journey, Y = 0, ee = /* @__PURE__ */ e(function(e, t, n, r) {
786
- let i = c(), o = i.journey.titleColor, s = i.journey.titleFontSize, l = i.journey.titleFontFamily, d = i.securityLevel, f;
787
- d === "sandbox" && (f = u("#i" + t));
788
- let p = u(d === "sandbox" ? f.nodes()[0].contentDocument.body : "body");
789
- X.init();
790
- let m = p.select("#" + t);
791
- U.initGraphics(m, t);
792
- let h = r.db.getTasks(), g = r.db.getDiagramTitle(), _ = r.db.getActors();
793
- for (let e in G) delete G[e];
794
- let v = 0;
795
- _.forEach((e) => {
796
- G[e] = {
797
- color: J.actorColours[v % J.actorColours.length],
798
- position: v
799
- }, v++;
800
- }), q(m), Y = J.leftMargin + K, X.insert(0, 0, Y, Object.keys(G).length * 50), te(m, h, 0, t);
801
- let y = X.getBounds();
802
- g && m.append("text").text(g).attr("x", Y).attr("font-size", s).attr("font-weight", "bold").attr("y", 25).attr("fill", o).attr("font-family", l);
803
- let b = y.stopy - y.starty + 2 * J.diagramMarginY, x = Y + y.stopx + 2 * J.diagramMarginX;
804
- a(m, b, x, J.useMaxWidth), m.append("line").attr("x1", Y).attr("y1", J.height * 4).attr("x2", x - Y - 4).attr("y2", J.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#" + t + "-arrowhead)");
805
- let S = g ? 70 : 0;
806
- m.attr("viewBox", `${y.startx} -25 ${x} ${b + S}`), m.attr("preserveAspectRatio", "xMinYMin meet"), m.attr("height", b + S + 25);
807
- }, "draw"), X = {
808
- data: {
809
- startx: void 0,
810
- stopx: void 0,
811
- starty: void 0,
812
- stopy: void 0
813
- },
814
- verticalPos: 0,
815
- sequenceItems: [],
816
- init: /* @__PURE__ */ e(function() {
817
- this.sequenceItems = [], this.data = {
818
- startx: void 0,
819
- stopx: void 0,
820
- starty: void 0,
821
- stopy: void 0
822
- }, this.verticalPos = 0;
823
- }, "init"),
824
- updateVal: /* @__PURE__ */ e(function(e, t, n, r) {
825
- e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
826
- }, "updateVal"),
827
- updateBounds: /* @__PURE__ */ e(function(t, n, r, i) {
828
- let a = c().journey, o = this, s = 0;
829
- function l(c) {
830
- return /* @__PURE__ */ e(function(e) {
831
- s++;
832
- let l = o.sequenceItems.length - s + 1;
833
- o.updateVal(e, "starty", n - l * a.boxMargin, Math.min), o.updateVal(e, "stopy", i + l * a.boxMargin, Math.max), o.updateVal(X.data, "startx", t - l * a.boxMargin, Math.min), o.updateVal(X.data, "stopx", r + l * a.boxMargin, Math.max), c !== "activation" && (o.updateVal(e, "startx", t - l * a.boxMargin, Math.min), o.updateVal(e, "stopx", r + l * a.boxMargin, Math.max), o.updateVal(X.data, "starty", n - l * a.boxMargin, Math.min), o.updateVal(X.data, "stopy", i + l * a.boxMargin, Math.max));
834
- }, "updateItemBounds");
835
- }
836
- e(l, "updateFn"), this.sequenceItems.forEach(l());
837
- }, "updateBounds"),
838
- insert: /* @__PURE__ */ e(function(e, t, n, r) {
839
- let i = Math.min(e, n), a = Math.max(e, n), o = Math.min(t, r), s = Math.max(t, r);
840
- this.updateVal(X.data, "startx", i, Math.min), this.updateVal(X.data, "starty", o, Math.min), this.updateVal(X.data, "stopx", a, Math.max), this.updateVal(X.data, "stopy", s, Math.max), this.updateBounds(i, o, a, s);
841
- }, "insert"),
842
- bumpVerticalPos: /* @__PURE__ */ e(function(e) {
843
- this.verticalPos += e, this.data.stopy = this.verticalPos;
844
- }, "bumpVerticalPos"),
845
- getVerticalPos: /* @__PURE__ */ e(function() {
846
- return this.verticalPos;
847
- }, "getVerticalPos"),
848
- getBounds: /* @__PURE__ */ e(function() {
849
- return this.data;
850
- }, "getBounds")
851
- }, Z = J.sectionFills, Q = J.sectionColours, te = /* @__PURE__ */ e(function(e, t, n, r) {
852
- let i = c().journey, a = "", o = n + (i.height * 2 + i.diagramMarginY), s = 0, l = "#CCC", u = "black", d = 0;
853
- for (let [n, c] of t.entries()) {
854
- if (a !== c.section) {
855
- l = Z[s % Z.length], d = s % Z.length, u = Q[s % Q.length];
856
- let r = 0, o = c.section;
857
- for (let e = n; e < t.length && t[e].section == o; e++) r += 1;
858
- let f = {
859
- x: n * i.taskMargin + n * i.width + Y,
860
- y: 50,
861
- text: c.section,
862
- fill: l,
863
- num: d,
864
- colour: u,
865
- taskCount: r
866
- };
867
- U.drawSection(e, f, i), a = c.section, s++;
868
- }
869
- let f = c.people.reduce((e, t) => (G[t] && (e[t] = G[t]), e), {});
870
- c.x = n * i.taskMargin + n * i.width + Y, c.y = o, c.width = i.diagramMarginX, c.height = i.diagramMarginY, c.colour = u, c.fill = l, c.num = d, c.actors = f, U.drawTask(e, c, i, r), X.insert(c.x, c.y, c.x + c.width + i.taskMargin, 450);
871
- }
872
- }, "drawTasks"), $ = {
873
- setConf: W,
874
- draw: ee
875
- }, ne = {
876
- parser: v,
877
- db: j,
878
- renderer: $,
879
- styles: M,
880
- init: /* @__PURE__ */ e((e) => {
881
- $.setConf(e.journey), j.clear();
882
- }, "init")
883
- };
884
- //#endregion
885
- export { ne as diagram };