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 +7 -377
  2. package/README.md +8 -352
  3. package/dist/file-viewer3.css +1 -2
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.js +2 -0
  6. package/package.json +27 -129
  7. package/dist/components/3MFLoader.js +0 -527
  8. package/dist/components/AMFLoader.js +0 -188
  9. package/dist/components/ArchiveViewer.js +0 -526
  10. package/dist/components/AudioViewer.js +0 -66
  11. package/dist/components/CadViewer.js +0 -9040
  12. package/dist/components/CodeViewer.js +0 -151
  13. package/dist/components/ColladaLoader.js +0 -2282
  14. package/dist/components/DrawingViewer.js +0 -295
  15. package/dist/components/EdaViewer.js +0 -630
  16. package/dist/components/EmailViewer.js +0 -276
  17. package/dist/components/EpubViewer.js +0 -172
  18. package/dist/components/FBXLoader.js +0 -1574
  19. package/dist/components/GLTFLoader.js +0 -1383
  20. package/dist/components/ImageViewer.js +0 -1519
  21. package/dist/components/KMZLoader.js +0 -45
  22. package/dist/components/MarkdownViewer.js +0 -1476
  23. package/dist/components/ModelViewer.js +0 -797
  24. package/dist/components/OBJLoader.js +0 -287
  25. package/dist/components/OfdViewer.js +0 -133
  26. package/dist/components/PCDLoader.js +0 -141
  27. package/dist/components/PLYLoader.js +0 -305
  28. package/dist/components/PdfView.js +0 -27667
  29. package/dist/components/PptxRender.js +0 -11217
  30. package/dist/components/STLLoader.js +0 -83
  31. package/dist/components/TDSLoader.js +0 -228
  32. package/dist/components/TypstViewer.js +0 -1697
  33. package/dist/components/USDLoader.js +0 -2526
  34. package/dist/components/UmdViewer.js +0 -1873
  35. package/dist/components/VRMLLoader.js +0 -6422
  36. package/dist/components/VTKLoader.js +0 -337
  37. package/dist/components/XYZLoader.js +0 -30
  38. package/dist/components/XlsxTable.js +0 -7879
  39. package/dist/components/__vite-browser-external.js +0 -7
  40. package/dist/components/_plugin-vue_export-helper.js +0 -8
  41. package/dist/components/ar-SA-G6X2FPQ2.js +0 -523
  42. package/dist/components/arc.js +0 -79
  43. package/dist/components/architecture-7EHR7CIX.js +0 -3
  44. package/dist/components/architectureDiagram-3BPJPVTR.js +0 -4096
  45. package/dist/components/archive.js +0 -24
  46. package/dist/components/asyncToGenerator.js +0 -29
  47. package/dist/components/audio.js +0 -19
  48. package/dist/components/az-AZ-76LH7QW2.js +0 -523
  49. package/dist/components/bash.js +0 -169
  50. package/dist/components/bg-BG-XCXSNQG7.js +0 -523
  51. package/dist/components/blockDiagram-GPEHLZMM.js +0 -3357
  52. package/dist/components/bn-BD-2XOGV67Q.js +0 -523
  53. package/dist/components/c4Diagram-AAUBKEIU.js +0 -2957
  54. package/dist/components/ca-ES-6MX7JW3Y.js +0 -523
  55. package/dist/components/cad.js +0 -23
  56. package/dist/components/cfb.js +0 -1174
  57. package/dist/components/channel.js +0 -5
  58. package/dist/components/chunk-2J33WTMH.js +0 -26
  59. package/dist/components/chunk-3OPIFGDE.js +0 -4167
  60. package/dist/components/chunk-4BX2VUAB.js +0 -19
  61. package/dist/components/chunk-55IACEB6.js +0 -9
  62. package/dist/components/chunk-5ZQYHXKU.js +0 -669
  63. package/dist/components/chunk-6U3AYISY.js +0 -624
  64. package/dist/components/chunk-727SXJPM.js +0 -3356
  65. package/dist/components/chunk-AGHRB4JF.js +0 -324
  66. package/dist/components/chunk-AQP2D5EJ.js +0 -2055
  67. package/dist/components/chunk-BSJP7CBP.js +0 -83
  68. package/dist/components/chunk-CSCIHK7Q.js +0 -3500
  69. package/dist/components/chunk-EIO257PC.js +0 -1836
  70. package/dist/components/chunk-FMBD7UC4.js +0 -5
  71. package/dist/components/chunk-K2UTITRG.js +0 -17627
  72. package/dist/components/chunk-KSCS5N6A.js +0 -572
  73. package/dist/components/chunk-L5ZTLDWV.js +0 -40
  74. package/dist/components/chunk-LZXEDZCA.js +0 -60
  75. package/dist/components/chunk-ND2GUHAM.js +0 -61
  76. package/dist/components/chunk-NNHCCRGN.js +0 -20425
  77. package/dist/components/chunk-NZK2D7GU.js +0 -68
  78. package/dist/components/chunk-O5CBEL6O.js +0 -1894
  79. package/dist/components/chunk-QZHKN3VN.js +0 -12
  80. package/dist/components/chunk-SRAX5OIU.js +0 -22
  81. package/dist/components/chunk-WU5MYG2G.js +0 -14
  82. package/dist/components/chunk-XPW4576I.js +0 -1146
  83. package/dist/components/chunk-Z3N5DIM6.js +0 -59
  84. package/dist/components/chunk-ZUYEQ4TG.js +0 -22
  85. package/dist/components/chunk.js +0 -23
  86. package/dist/components/classDiagram-4FO5ZUOK.js +0 -29
  87. package/dist/components/classDiagram-v2-Q7XG4LA2.js +0 -29
  88. package/dist/components/compiler.js +0 -2
  89. package/dist/components/core.js +0 -845
  90. package/dist/components/cose-bilkent-S5V4N54A.js +0 -2268
  91. package/dist/components/cpp.js +0 -225
  92. package/dist/components/cs-CZ-2BRQDIVT.js +0 -523
  93. package/dist/components/csharp.js +0 -260
  94. package/dist/components/css.js +0 -140
  95. package/dist/components/cytoscape.esm.js +0 -18114
  96. package/dist/components/da-DK-5WZEPLOC.js +0 -523
  97. package/dist/components/dagre-BM42HDAG.js +0 -325
  98. package/dist/components/dagre.js +0 -1936
  99. package/dist/components/de-DE-XR44H4JA.js +0 -523
  100. package/dist/components/defaultLocale.js +0 -201
  101. package/dist/components/defineProperty.js +0 -50
  102. package/dist/components/diagram-2AECGRRQ.js +0 -229
  103. package/dist/components/diagram-5GNKFQAL.js +0 -108
  104. package/dist/components/diagram-KO2AKTUF.js +0 -443
  105. package/dist/components/diagram-LMA3HP47.js +0 -139
  106. package/dist/components/diagram-OG6HWLK6.js +0 -541
  107. package/dist/components/diff.js +0 -39
  108. package/dist/components/directory-open-01563666.js +0 -26
  109. package/dist/components/directory-open-4ed118d0.js +0 -83
  110. package/dist/components/dist.js +0 -50
  111. package/dist/components/dist2.js +0 -3291
  112. package/dist/components/dist3.js +0 -1593
  113. package/dist/components/documentSearch.js +0 -378
  114. package/dist/components/docx-preview.js +0 -3113
  115. package/dist/components/drawing.js +0 -19
  116. package/dist/components/ebook.js +0 -16
  117. package/dist/components/eda.js +0 -20
  118. package/dist/components/el-GR-BZB4AONW.js +0 -523
  119. package/dist/components/email.js +0 -21
  120. package/dist/components/en-B4ZKOASM.js +0 -3
  121. package/dist/components/erDiagram-TEJ5UH35.js +0 -1719
  122. package/dist/components/es-ES-U4NZUMDT.js +0 -523
  123. package/dist/components/eu-ES-A7QVB2H4.js +0 -523
  124. package/dist/components/eventmodeling-FCH6USID.js +0 -3
  125. package/dist/components/fa-IR-HGAKTJCU.js +0 -523
  126. package/dist/components/fflate.module.js +0 -323
  127. package/dist/components/fi-FI-Z5N7JZ37.js +0 -523
  128. package/dist/components/file-open-002ab408.js +0 -38
  129. package/dist/components/file-open-7c801643.js +0 -24
  130. package/dist/components/file-save-3189631c.js +0 -40
  131. package/dist/components/file-save-745eba88.js +0 -36
  132. package/dist/components/flowDiagram-I6XJVG4X.js +0 -4181
  133. package/dist/components/fr-FR-RHASNOE6.js +0 -523
  134. package/dist/components/ganttDiagram-6RSMTGT7.js +0 -2182
  135. package/dist/components/gitGraph-WXDBUCRP.js +0 -3
  136. package/dist/components/gitGraphDiagram-PVQCEYII.js +0 -788
  137. package/dist/components/gl-ES-HMX3MZ6V.js +0 -523
  138. package/dist/components/global-compiler.js +0 -23
  139. package/dist/components/global-renderer.js +0 -23
  140. package/dist/components/go.js +0 -140
  141. package/dist/components/graphlib.js +0 -1267
  142. package/dist/components/he-IL-6SHJWFNN.js +0 -523
  143. package/dist/components/hi-IN-IWLTKZ5I.js +0 -523
  144. package/dist/components/hu-HU-A5ZG7DT2.js +0 -523
  145. package/dist/components/id-ID-SAP4L64H.js +0 -523
  146. package/dist/components/image-GAAHSSAO.js +0 -3
  147. package/dist/components/image-blob-reduce.esm.js +0 -1429
  148. package/dist/components/image.js +0 -17
  149. package/dist/components/info-J43DQDTF.js +0 -3
  150. package/dist/components/infoDiagram-5YYISTIA.js +0 -26
  151. package/dist/components/ini.js +0 -88
  152. package/dist/components/init.js +0 -15
  153. package/dist/components/ishikawaDiagram-YF4QCWOH.js +0 -718
  154. package/dist/components/it-IT-JPQ66NNP.js +0 -523
  155. package/dist/components/ja-JP-DBVTYXUO.js +0 -523
  156. package/dist/components/java.js +0 -169
  157. package/dist/components/javascript.js +0 -436
  158. package/dist/components/journeyDiagram-JHISSGLW.js +0 -885
  159. package/dist/components/json.js +0 -36
  160. package/dist/components/jszip.min.js +0 -3033
  161. package/dist/components/kaa-6HZHGXH3.js +0 -523
  162. package/dist/components/kab-KAB-ZGHBKWFO.js +0 -523
  163. package/dist/components/kanban-definition-UN3LZRKU.js +0 -986
  164. package/dist/components/katex.js +0 -21979
  165. package/dist/components/kk-KZ-P5N5QNE5.js +0 -523
  166. package/dist/components/km-KH-HSX4SM5Z.js +0 -523
  167. package/dist/components/ko-KR-MTYHY66A.js +0 -523
  168. package/dist/components/ku-TR-6OUDTVRD.js +0 -523
  169. package/dist/components/lib.js +0 -4877
  170. package/dist/components/libarchive.js +0 -360
  171. package/dist/components/linear.js +0 -289
  172. package/dist/components/lt-LT-XHIRWOB4.js +0 -523
  173. package/dist/components/lv-LV-5QDEKY6T.js +0 -523
  174. package/dist/components/markdown.js +0 -181
  175. package/dist/components/md.js +0 -17
  176. package/dist/components/mermaid-parser.core.js +0 -328
  177. package/dist/components/mindmap-definition-RKZ34NQL.js +0 -1016
  178. package/dist/components/model.js +0 -21
  179. package/dist/components/mp4.js +0 -12
  180. package/dist/components/mr-IN-CRQNXWMA.js +0 -523
  181. package/dist/components/my-MM-5M5IBNSE.js +0 -523
  182. package/dist/components/nb-NO-T6EIAALU.js +0 -523
  183. package/dist/components/nestedRender.js +0 -158
  184. package/dist/components/nl-NL-IS3SIHDZ.js +0 -523
  185. package/dist/components/nn-NO-6E72VCQL.js +0 -523
  186. package/dist/components/objectSpread2.js +0 -29
  187. package/dist/components/objectWithoutProperties.js +0 -28
  188. package/dist/components/oc-FR-POXYY2M6.js +0 -523
  189. package/dist/components/ofd.js +0 -5261
  190. package/dist/components/ofd2.js +0 -16
  191. package/dist/components/ordinal.js +0 -65
  192. package/dist/components/pa-IN-N4M65BXN.js +0 -523
  193. package/dist/components/packet-YPE3B663.js +0 -3
  194. package/dist/components/pdf.js +0 -24
  195. package/dist/components/percentages-BXMCSKIN.js +0 -3
  196. package/dist/components/php.js +0 -294
  197. package/dist/components/pica.js +0 -1009
  198. package/dist/components/pie-LRSECV5Y.js +0 -3
  199. package/dist/components/pie.js +0 -47
  200. package/dist/components/pieDiagram-4H26LBE5.js +0 -130
  201. package/dist/components/pl-PL-T2D74RX3.js +0 -523
  202. package/dist/components/postal-mime.js +0 -3146
  203. package/dist/components/pptx.js +0 -15
  204. package/dist/components/printLayout.js +0 -42
  205. package/dist/components/prod.js +0 -21770
  206. package/dist/components/pt-BR-5N22H2LF.js +0 -523
  207. package/dist/components/pt-PT-UZXXM6DQ.js +0 -523
  208. package/dist/components/python.js +0 -238
  209. package/dist/components/quadrantDiagram-W4KKPZXB.js +0 -1988
  210. package/dist/components/radar-GUYGQ44K.js +0 -3
  211. package/dist/components/renderer.js +0 -2
  212. package/dist/components/requirementDiagram-4Y6WPE33.js +0 -2230
  213. package/dist/components/ro-RO-JPDTUUEW.js +0 -523
  214. package/dist/components/rough.esm.js +0 -1355
  215. package/dist/components/roundRect.js +0 -90
  216. package/dist/components/ru-RU-B4JR7IUQ.js +0 -523
  217. package/dist/components/rust.js +0 -169
  218. package/dist/components/sankeyDiagram-5OEKKPKP.js +0 -972
  219. package/dist/components/sequenceDiagram-3UESZ5HK.js +0 -4255
  220. package/dist/components/shared.js +0 -175
  221. package/dist/components/shared2.js +0 -4
  222. package/dist/components/si-LK-N5RQ5JYF.js +0 -523
  223. package/dist/components/sk-SK-C5VTKIMK.js +0 -523
  224. package/dist/components/sl-SI-NN7IZMDC.js +0 -523
  225. package/dist/components/sourceLoading.js +0 -134
  226. package/dist/components/sql.js +0 -118
  227. package/dist/components/src.js +0 -2664
  228. package/dist/components/src2.js +0 -10722
  229. package/dist/components/stateDiagram-AJRCARHV.js +0 -217
  230. package/dist/components/stateDiagram-v2-BHNVJYJU.js +0 -27
  231. package/dist/components/subset-shared.chunk.js +0 -3
  232. package/dist/components/subset-worker.chunk.js +0 -21
  233. package/dist/components/sv-SE-XGPEYMSR.js +0 -523
  234. package/dist/components/ta-IN-2NMHFXQM.js +0 -523
  235. package/dist/components/text.js +0 -20
  236. package/dist/components/th-TH-HPSO5L25.js +0 -523
  237. package/dist/components/three.module.js +0 -13134
  238. package/dist/components/time.js +0 -910
  239. package/dist/components/timeline-definition-PNZ67QCA.js +0 -1084
  240. package/dist/components/tr-TR-DEFEU3FU.js +0 -523
  241. package/dist/components/treeView-BLDUP644.js +0 -3
  242. package/dist/components/treemap-LRROVOQU.js +0 -3
  243. package/dist/components/typescript.js +0 -521
  244. package/dist/components/typst.js +0 -25
  245. package/dist/components/uk-UA-QMV73CPH.js +0 -523
  246. package/dist/components/umd.js +0 -16
  247. package/dist/components/use.js +0 -422
  248. package/dist/components/util.js +0 -49
  249. package/dist/components/vennDiagram-CIIHVFJN.js +0 -1880
  250. package/dist/components/vi-VN-M7AON7JQ.js +0 -523
  251. package/dist/components/viewerZoom.js +0 -92
  252. package/dist/components/wardley-L42UT6IY.js +0 -3
  253. package/dist/components/wardleyDiagram-YWT4CUSO.js +0 -656
  254. package/dist/components/wasm-pack-shim.js +0 -1711
  255. package/dist/components/wasm-pack-shim2.js +0 -934
  256. package/dist/components/wasm.js +0 -97
  257. package/dist/components/word.js +0 -3055
  258. package/dist/components/worker-ref.js +0 -16
  259. package/dist/components/xlsx.js +0 -21
  260. package/dist/components/xml.js +0 -166
  261. package/dist/components/xychartDiagram-2RQKCTM6.js +0 -2015
  262. package/dist/components/yaml.js +0 -144
  263. package/dist/components/zh-CN-LNUGB5OW.js +0 -523
  264. package/dist/components/zh-HK-E62DVLB3.js +0 -523
  265. package/dist/components/zh-TW-RAJ6MFWO.js +0 -523
  266. package/dist/index.mjs +0 -3293
  267. package/dist/src/App.vue.d.ts +0 -3
  268. package/dist/src/compare/CompareApp.vue.d.ts +0 -3
  269. package/dist/src/compare/main.d.ts +0 -0
  270. package/dist/src/compare/useSynchronizedScroll.d.ts +0 -7
  271. package/dist/src/components/HelloWorld.vue.d.ts +0 -3
  272. package/dist/src/components/utils.d.ts +0 -4
  273. package/dist/src/main.d.ts +0 -0
  274. package/dist/src/package/common/printCapability.d.ts +0 -27
  275. package/dist/src/package/common/printLayout.d.ts +0 -16
  276. package/dist/src/package/common/sourceLoading.d.ts +0 -10
  277. package/dist/src/package/common/type.d.ts +0 -544
  278. package/dist/src/package/common/util.d.ts +0 -5
  279. package/dist/src/package/common/worker-ref.d.ts +0 -12
  280. package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +0 -75
  281. package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +0 -9
  282. package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +0 -29
  283. package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +0 -21
  284. package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +0 -8
  285. package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +0 -34
  286. package/dist/src/package/components/FileViewer/index.d.ts +0 -2
  287. package/dist/src/package/components/FileViewer/util.d.ts +0 -3
  288. package/dist/src/package/index.d.ts +0 -22
  289. package/dist/src/package/use/documentLocation.d.ts +0 -15
  290. package/dist/src/package/use/documentSearch.d.ts +0 -234
  291. package/dist/src/package/use/index.d.ts +0 -5
  292. package/dist/src/package/use/loading.d.ts +0 -33
  293. package/dist/src/package/use/viewerZoom.d.ts +0 -42
  294. package/dist/src/package/use/worker.d.ts +0 -24
  295. package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +0 -9
  296. package/dist/src/package/vendors/archive/cache.d.ts +0 -10
  297. package/dist/src/package/vendors/archive/fallback.d.ts +0 -9
  298. package/dist/src/package/vendors/archive/index.d.ts +0 -3
  299. package/dist/src/package/vendors/archive/shared.d.ts +0 -24
  300. package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +0 -7
  301. package/dist/src/package/vendors/audio/index.d.ts +0 -7
  302. package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +0 -9
  303. package/dist/src/package/vendors/cad/index.d.ts +0 -8
  304. package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +0 -15
  305. package/dist/src/package/vendors/drawing/index.d.ts +0 -7
  306. package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +0 -6
  307. package/dist/src/package/vendors/ebook/index.d.ts +0 -7
  308. package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +0 -8
  309. package/dist/src/package/vendors/eda/index.d.ts +0 -2
  310. package/dist/src/package/vendors/eda/parser.d.ts +0 -77
  311. package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +0 -10
  312. package/dist/src/package/vendors/email/index.d.ts +0 -2
  313. package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +0 -6
  314. package/dist/src/package/vendors/image/index.d.ts +0 -4
  315. package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +0 -6
  316. package/dist/src/package/vendors/md/index.d.ts +0 -4
  317. package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +0 -8
  318. package/dist/src/package/vendors/model/index.d.ts +0 -3
  319. package/dist/src/package/vendors/model/shared.d.ts +0 -1
  320. package/dist/src/package/vendors/mp4/index.d.ts +0 -4
  321. package/dist/src/package/vendors/nestedRender.d.ts +0 -10
  322. package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +0 -6
  323. package/dist/src/package/vendors/ofd/index.d.ts +0 -7
  324. package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +0 -10
  325. package/dist/src/package/vendors/pdf/index.d.ts +0 -2
  326. package/dist/src/package/vendors/pdf/worker/index.d.ts +0 -4
  327. package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
  328. package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +0 -9
  329. package/dist/src/package/vendors/pptx/index.d.ts +0 -6
  330. package/dist/src/package/vendors/pptx/options.d.ts +0 -39
  331. package/dist/src/package/vendors/pptx/support/chart.d.ts +0 -4
  332. package/dist/src/package/vendors/pptx/worker/index.d.ts +0 -4
  333. package/dist/src/package/vendors/renders.d.ts +0 -3
  334. package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +0 -7
  335. package/dist/src/package/vendors/text/index.d.ts +0 -10
  336. package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +0 -15
  337. package/dist/src/package/vendors/typst/index.d.ts +0 -8
  338. package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +0 -6
  339. package/dist/src/package/vendors/umd/index.d.ts +0 -7
  340. package/dist/src/package/vendors/umd/parser.d.ts +0 -30
  341. package/dist/src/package/vendors/word/doc.d.ts +0 -5
  342. package/dist/src/package/vendors/word/docx.d.ts +0 -5
  343. package/dist/src/package/vendors/word/docx.worker.d.ts +0 -1
  344. package/dist/src/package/vendors/word/index.d.ts +0 -3
  345. package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +0 -80
  346. package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +0 -25
  347. package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +0 -6
  348. package/dist/src/package/vendors/xlsx/index.d.ts +0 -6
  349. package/dist/src/package/vendors/xlsx/util.d.ts +0 -3
  350. package/dist/src/package/vendors/xlsx/worker/index.d.ts +0 -4
  351. package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +0 -73
  352. package/dist/src/package/vendors/xlsx/worker/sheetjs/color.d.ts +0 -2
  353. package/dist/src/package/vendors/xlsx/worker/sheetjs/index.d.ts +0 -4
  354. package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +0 -1
  355. package/dist/style.css +0 -1
  356. package/dist/wasm/cad/dwfv-render.wasm +0 -0
  357. package/dist/wasm/cad/dwg-worker.js +0 -24
  358. package/dist/wasm/cad/libredwg-web.js +0 -15
  359. package/dist/wasm/cad/libredwg-web.wasm +0 -0
@@ -1,572 +0,0 @@
1
- import { n as e, t } from "./objectSpread2.js";
2
- import { n, t as r } from "./asyncToGenerator.js";
3
- import { n as i, r as a } from "./chunk-AGHRB4JF.js";
4
- import { T as o, b as s, x as c } from "./chunk-CSCIHK7Q.js";
5
- import { Q as l, _ as u, a as d, i as f, n as p, o as m, p as h, r as g, t as _, u as v, v as y, x as b } from "./src.js";
6
- import { K as x, g as S, q as ee, u as te } from "./chunk-5ZQYHXKU.js";
7
- import { i as C, n as w, r as T, t as E } from "./chunk-BSJP7CBP.js";
8
- import { n as D } from "./chunk-L5ZTLDWV.js";
9
- import { i as O, n as ne } from "./chunk-NZK2D7GU.js";
10
- import { n as k } from "./chunk-O5CBEL6O.js";
11
- import { t as re } from "./rough.esm.js";
12
- import { r as A } from "./chunk-3OPIFGDE.js";
13
- n(), e();
14
- var ie = /* @__PURE__ */ i((e, t, n, r, i, a = !1, o) => {
15
- t.arrowTypeStart && N(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && N(e, "end", t.arrowTypeEnd, n, r, i, a, o);
16
- }, "addEdgeMarkers"), j = {
17
- arrow_cross: {
18
- type: "cross",
19
- fill: !1
20
- },
21
- arrow_point: {
22
- type: "point",
23
- fill: !0
24
- },
25
- arrow_barb: {
26
- type: "barb",
27
- fill: !0
28
- },
29
- arrow_barb_neo: {
30
- type: "barb",
31
- fill: !0
32
- },
33
- arrow_circle: {
34
- type: "circle",
35
- fill: !1
36
- },
37
- aggregation: {
38
- type: "aggregation",
39
- fill: !1
40
- },
41
- extension: {
42
- type: "extension",
43
- fill: !1
44
- },
45
- composition: {
46
- type: "composition",
47
- fill: !0
48
- },
49
- dependency: {
50
- type: "dependency",
51
- fill: !0
52
- },
53
- lollipop: {
54
- type: "lollipop",
55
- fill: !1
56
- },
57
- only_one: {
58
- type: "onlyOne",
59
- fill: !1
60
- },
61
- zero_or_one: {
62
- type: "zeroOrOne",
63
- fill: !1
64
- },
65
- one_or_more: {
66
- type: "oneOrMore",
67
- fill: !1
68
- },
69
- zero_or_more: {
70
- type: "zeroOrMore",
71
- fill: !1
72
- },
73
- requirement_arrow: {
74
- type: "requirement_arrow",
75
- fill: !1
76
- },
77
- requirement_contains: {
78
- type: "requirement_contains",
79
- fill: !1
80
- }
81
- }, M = [
82
- "cross",
83
- "point",
84
- "circle",
85
- "lollipop",
86
- "aggregation",
87
- "extension",
88
- "composition",
89
- "dependency",
90
- "barb"
91
- ], N = /* @__PURE__ */ i((e, t, n, r, i, o, s = !1, c) => {
92
- let l = j[n], u = l && M.includes(l.type);
93
- if (!l) {
94
- a.warn(`Unknown arrow type: ${n}`);
95
- return;
96
- }
97
- let d = `${i}_${o}-${l.type}${t === "start" ? "Start" : "End"}${s && u ? "-margin" : ""}`;
98
- if (c && c.trim() !== "") {
99
- let n = `${d}_${c.replace(/[^\dA-Za-z]/g, "_")}`;
100
- if (!document.getElementById(n)) {
101
- let e = document.getElementById(d);
102
- if (e) {
103
- var f;
104
- let t = e.cloneNode(!0);
105
- t.id = n, t.querySelectorAll("path, circle, line").forEach((e) => {
106
- e.setAttribute("stroke", c), l.fill && e.setAttribute("fill", c);
107
- }), (f = e.parentNode) == null || f.appendChild(t);
108
- }
109
- }
110
- e.attr(`marker-${t}`, `url(${r}#${n})`);
111
- } else e.attr(`marker-${t}`, `url(${r}#${d})`);
112
- }, "addEdgeMarker"), ae = /* @__PURE__ */ i((e) => {
113
- var t;
114
- return typeof e == "string" ? e : (t = c()) == null || (t = t.flowchart) == null ? void 0 : t.curve;
115
- }, "resolveEdgeCurveType"), P = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ i(() => {
116
- P.clear(), F.clear();
117
- }, "clear"), L = /* @__PURE__ */ i((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), R = /* @__PURE__ */ i(function() {
118
- var e = r(function* (e, t) {
119
- let n = c(), r = o(n), { labelStyles: i } = O(t);
120
- t.labelStyle = i;
121
- let s = e.insert("g").attr("class", "edgeLabel"), u = s.insert("g").attr("class", "label").attr("data-id", t.id), d = t.labelType === "markdown", f = yield k(e, t.label, {
122
- style: L(t.labelStyle),
123
- useHtmlLabels: r,
124
- addSvgBackground: !0,
125
- isNode: !1,
126
- markdown: d,
127
- width: void 0
128
- }, n);
129
- u.node().appendChild(f), a.info("abc82", t, t.labelType);
130
- let p = f.getBBox(), m = p;
131
- if (r) {
132
- let e = f.children[0], t = l(f);
133
- p = e.getBoundingClientRect(), m = p, t.attr("width", p.width), t.attr("height", p.height);
134
- } else {
135
- let e = l(f).select("text").node();
136
- e && typeof e.getBBox == "function" && (m = e.getBBox());
137
- }
138
- u.attr("transform", E(m, r)), P.set(t.id, s), t.width = p.width, t.height = p.height;
139
- let h;
140
- if (t.startLabelLeft) {
141
- let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = yield A(i, t.startLabelLeft, L(t.labelStyle) || "", !1, !1);
142
- h = a;
143
- let o = a.getBBox();
144
- if (r) {
145
- let e = a.children[0], t = l(a);
146
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
147
- }
148
- i.attr("transform", E(o, r)), F.get(t.id) || F.set(t.id, {}), F.get(t.id).startLeft = n, z(h, t.startLabelLeft);
149
- }
150
- if (t.startLabelRight) {
151
- let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = yield A(i, t.startLabelRight, L(t.labelStyle) || "", !1, !1);
152
- h = a;
153
- let o = a.getBBox();
154
- if (r) {
155
- let e = a.children[0], t = l(a);
156
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
157
- }
158
- i.attr("transform", E(o, r)), F.get(t.id) || F.set(t.id, {}), F.get(t.id).startRight = n, z(h, t.startLabelRight);
159
- }
160
- if (t.endLabelLeft) {
161
- let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = yield A(n, t.endLabelLeft, L(t.labelStyle) || "", !1, !1);
162
- h = a;
163
- let o = a.getBBox();
164
- if (r) {
165
- let e = a.children[0], t = l(a);
166
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
167
- }
168
- i.attr("transform", E(o, r)), F.get(t.id) || F.set(t.id, {}), F.get(t.id).endLeft = n, z(h, t.endLabelLeft);
169
- }
170
- if (t.endLabelRight) {
171
- let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = yield A(n, t.endLabelRight, L(t.labelStyle) || "", !1, !1);
172
- h = a;
173
- let o = a.getBBox();
174
- if (r) {
175
- let e = a.children[0], t = l(a);
176
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
177
- }
178
- i.attr("transform", E(o, r)), F.get(t.id) || F.set(t.id, {}), F.get(t.id).endRight = n, z(h, t.endLabelRight);
179
- }
180
- return f;
181
- });
182
- return function(t, n) {
183
- return e.apply(this, arguments);
184
- };
185
- }(), "insertEdgeLabel");
186
- function z(e, t) {
187
- o(c()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
188
- }
189
- i(z, "setTerminalWidth");
190
- var B = /* @__PURE__ */ i((e, t) => {
191
- a.debug("Moving label abc88 ", e.id, e.label, P.get(e.id), t);
192
- let n = t.updatedPath ? t.updatedPath : t.originalPath, { subGraphTitleTotalMargin: r } = D(c());
193
- if (e.label) {
194
- let i = P.get(e.id), o = e.x, s = e.y;
195
- if (n) {
196
- let r = S.calcLabelPosition(n);
197
- a.debug("Moving label " + e.label + " from (", o, ",", s, ") to (", r.x, ",", r.y, ") abc88"), t.updatedPath && (o = r.x, s = r.y);
198
- }
199
- i.attr("transform", `translate(${o}, ${s + r / 2})`);
200
- }
201
- if (e.startLabelLeft) {
202
- let t = F.get(e.id).startLeft, r = e.x, i = e.y;
203
- if (n) {
204
- let t = S.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
205
- r = t.x, i = t.y;
206
- }
207
- t.attr("transform", `translate(${r}, ${i})`);
208
- }
209
- if (e.startLabelRight) {
210
- let t = F.get(e.id).startRight, r = e.x, i = e.y;
211
- if (n) {
212
- let t = S.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
213
- r = t.x, i = t.y;
214
- }
215
- t.attr("transform", `translate(${r}, ${i})`);
216
- }
217
- if (e.endLabelLeft) {
218
- let t = F.get(e.id).endLeft, r = e.x, i = e.y;
219
- if (n) {
220
- let t = S.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
221
- r = t.x, i = t.y;
222
- }
223
- t.attr("transform", `translate(${r}, ${i})`);
224
- }
225
- if (e.endLabelRight) {
226
- let t = F.get(e.id).endRight, r = e.x, i = e.y;
227
- if (n) {
228
- let t = S.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
229
- r = t.x, i = t.y;
230
- }
231
- t.attr("transform", `translate(${r}, ${i})`);
232
- }
233
- }, "positionEdgeLabel"), V = /* @__PURE__ */ i((e, t) => {
234
- let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
235
- return i >= o || a >= s;
236
- }, "outsideNode"), H = /* @__PURE__ */ i((e, t, n) => {
237
- a.debug(`intersection calc abc89:
238
- outsidePoint: ${JSON.stringify(t)}
239
- insidePoint : ${JSON.stringify(n)}
240
- node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
241
- let r = e.x, i = e.y, o = Math.abs(r - n.x), s = e.width / 2, c = n.x < t.x ? s - o : s + o, l = e.height / 2, u = Math.abs(t.y - n.y), d = Math.abs(t.x - n.x);
242
- if (Math.abs(i - t.y) * s > Math.abs(r - t.x) * l) {
243
- let e = n.y < t.y ? t.y - l - i : i - l - t.y;
244
- c = d * e / u;
245
- let r = {
246
- x: n.x < t.x ? n.x + c : n.x - d + c,
247
- y: n.y < t.y ? n.y + u - e : n.y - u + e
248
- };
249
- return c === 0 && (r.x = t.x, r.y = t.y), d === 0 && (r.x = t.x), u === 0 && (r.y = t.y), a.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${c}`, r), r;
250
- } else {
251
- c = n.x < t.x ? t.x - s - r : r - s - t.x;
252
- let e = u * c / d, i = n.x < t.x ? n.x + d - c : n.x - d + c, o = n.y < t.y ? n.y + e : n.y - e;
253
- return a.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
254
- _x: i,
255
- _y: o
256
- }), c === 0 && (i = t.x, o = t.y), d === 0 && (i = t.x), u === 0 && (o = t.y), {
257
- x: i,
258
- y: o
259
- };
260
- }
261
- }, "intersection"), U = /* @__PURE__ */ i((e, t) => {
262
- a.warn("abc88 cutPathAtIntersect", e, t);
263
- let n = [], r = e[0], i = !1;
264
- return e.forEach((e) => {
265
- if (a.info("abc88 checking point", e, t), !V(t, e) && !i) {
266
- let o = H(t, r, e);
267
- a.debug("abc88 inside", e, r, o), a.debug("abc88 intersection", o, t);
268
- let s = !1;
269
- n.forEach((e) => {
270
- s = s || e.x === o.x && e.y === o.y;
271
- }), n.some((e) => e.x === o.x && e.y === o.y) ? a.warn("abc88 no intersect", o, n) : n.push(o), i = !0;
272
- } else a.warn("abc88 outside", e, r), r = e, i || n.push(e);
273
- }), a.debug("returning points", n), n;
274
- }, "cutPathAtIntersect");
275
- function W(e) {
276
- let t = [], n = [];
277
- for (let r = 1; r < e.length - 1; r++) {
278
- let i = e[r - 1], a = e[r], o = e[r + 1];
279
- (i.x === a.x && a.y === o.y && Math.abs(a.x - o.x) > 5 && Math.abs(a.y - i.y) > 5 || i.y === a.y && a.x === o.x && Math.abs(a.x - i.x) > 5 && Math.abs(a.y - o.y) > 5) && (t.push(a), n.push(r));
280
- }
281
- return {
282
- cornerPoints: t,
283
- cornerPointPositions: n
284
- };
285
- }
286
- i(W, "extractCornerPoints");
287
- var G = /* @__PURE__ */ i(function(e, t, n) {
288
- let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
289
- return {
290
- x: t.x - a * r,
291
- y: t.y - a * i
292
- };
293
- }, "findAdjacentPoint"), oe = /* @__PURE__ */ i(function(e) {
294
- let { cornerPointPositions: t } = W(e), n = [];
295
- for (let r = 0; r < e.length; r++) if (t.includes(r)) {
296
- let t = e[r - 1], i = e[r + 1], o = e[r], s = G(t, o, 5), c = G(i, o, 5), l = c.x - s.x, u = c.y - s.y;
297
- n.push(s);
298
- let d = Math.sqrt(2) * 2, f = {
299
- x: o.x,
300
- y: o.y
301
- };
302
- Math.abs(i.x - t.x) > 10 && Math.abs(i.y - t.y) >= 10 ? (a.debug("Corner point fixing", Math.abs(i.x - t.x), Math.abs(i.y - t.y)), f = o.x === s.x ? {
303
- x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
304
- y: u < 0 ? s.y - d : s.y + d
305
- } : {
306
- x: l < 0 ? s.x - d : s.x + d,
307
- y: u < 0 ? s.y - 5 + d : s.y + 5 - d
308
- }) : a.debug("Corner point skipping fixing", Math.abs(i.x - t.x), Math.abs(i.y - t.y)), n.push(f, c);
309
- } else n.push(e[r]);
310
- return n;
311
- }, "fixCorners"), se = /* @__PURE__ */ i((e, t, n) => {
312
- let r = e - t - n, i = Math.floor(r / 4);
313
- return `0 ${t} ${Array(i).fill("2 2").join(" ")} ${n}`;
314
- }, "generateDashArray"), K = /* @__PURE__ */ i(function(e, t, n, r, i, o, s, T = !1) {
315
- if (!s) throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
316
- let { handDrawnSeed: E } = c(), D = t.points, O = !1, k = i;
317
- var A = o;
318
- let j = [];
319
- for (let e in t.cssCompiledStyles) ne(e) || j.push(t.cssCompiledStyles[e]);
320
- a.debug("UIO intersect check", t.points, A.x, k.x), A.intersect && k.intersect && !T && (D = D.slice(1, t.points.length - 1), D.unshift(k.intersect(D[0])), a.debug("Last point UIO", t.start, "-->", t.end, D[D.length - 1], A, A.intersect(D[D.length - 1])), D.push(A.intersect(D[D.length - 1])));
321
- let M = btoa(JSON.stringify(D));
322
- t.toCluster && (a.info("to cluster abc88", n.get(t.toCluster)), D = U(t.points, n.get(t.toCluster).node), O = !0), t.fromCluster && (a.debug("from cluster abc88", n.get(t.fromCluster), JSON.stringify(D, null, 2)), D = U(D.reverse(), n.get(t.fromCluster).node).reverse(), O = !0);
323
- let N = D.filter((e) => !Number.isNaN(e.y)), P = ae(t.curve);
324
- P !== "rounded" && (N = oe(N));
325
- let F = b;
326
- switch (P) {
327
- case "linear":
328
- F = b;
329
- break;
330
- case "basis":
331
- F = u;
332
- break;
333
- case "cardinal":
334
- F = h;
335
- break;
336
- case "bumpX":
337
- F = x;
338
- break;
339
- case "bumpY":
340
- F = ee;
341
- break;
342
- case "catmullRom":
343
- F = v;
344
- break;
345
- case "monotoneX":
346
- F = d;
347
- break;
348
- case "monotoneY":
349
- F = m;
350
- break;
351
- case "natural":
352
- F = f;
353
- break;
354
- case "step":
355
- F = g;
356
- break;
357
- case "stepAfter":
358
- F = _;
359
- break;
360
- case "stepBefore":
361
- F = p;
362
- break;
363
- case "rounded":
364
- F = b;
365
- break;
366
- default: F = u;
367
- }
368
- let { x: I, y: L } = w(t), R = y().x(I).y(L).curve(F), z;
369
- switch (t.thickness) {
370
- case "normal":
371
- z = "edge-thickness-normal";
372
- break;
373
- case "thick":
374
- z = "edge-thickness-thick";
375
- break;
376
- case "invisible":
377
- z = "edge-thickness-invisible";
378
- break;
379
- default: z = "edge-thickness-normal";
380
- }
381
- switch (t.pattern) {
382
- case "solid":
383
- z += " edge-pattern-solid";
384
- break;
385
- case "dotted":
386
- z += " edge-pattern-dotted";
387
- break;
388
- case "dashed":
389
- z += " edge-pattern-dashed";
390
- break;
391
- default: z += " edge-pattern-solid";
392
- }
393
- let B, V = P === "rounded" ? q(Y(N, t), 5) : R(N), H = Array.isArray(t.style) ? t.style : [t.style], W = H.find((e) => e == null ? void 0 : e.startsWith("stroke:")), G = "";
394
- t.animate && (G = "edge-animation-fast"), t.animation && (G = "edge-animation-" + t.animation);
395
- let K = !1;
396
- if (t.look === "handDrawn") {
397
- let n = re.svg(e);
398
- Object.assign([], N);
399
- let r = n.path(V, {
400
- roughness: .3,
401
- seed: E
402
- });
403
- z += " transition", B = l(r).select("path").attr("id", `${s}-${t.id}`).attr("class", " " + z + (t.classes ? " " + t.classes : "") + (G ? " " + G : "")).attr("style", H ? H.reduce((e, t) => e + ";" + t, "") : "");
404
- let i = B.attr("d");
405
- B.attr("d", i), e.node().appendChild(B.node());
406
- } else {
407
- var J;
408
- let n = j.join(";"), r = H ? H.reduce((e, t) => e + t + ";", "") : "", i = (n ? n + ";" + r + ";" : r) + ";" + (H ? H.reduce((e, t) => e + ";" + t, "") : "");
409
- B = e.append("path").attr("d", V).attr("id", `${s}-${t.id}`).attr("class", " " + z + (t.classes ? " " + t.classes : "") + (G ? " " + G : "")).attr("style", i), W = (J = i.match(/stroke:([^;]+)/)) == null ? void 0 : J[1], K = t.animate === !0 || !!t.animation || n.includes("animation");
410
- let a = B.node(), o = typeof a.getTotalLength == "function" ? a.getTotalLength() : 0, c = C[t.arrowTypeStart] || 0, l = C[t.arrowTypeEnd] || 0;
411
- if (t.look === "neo" && !K) {
412
- let e = `stroke-dasharray: ${t.pattern === "dotted" || t.pattern === "dashed" ? se(o, c, l) : `0 ${c} ${o - c - l} ${l}`}; stroke-dashoffset: 0;`;
413
- B.attr("style", e + B.attr("style"));
414
- }
415
- }
416
- B.attr("data-edge", !0), B.attr("data-et", "edge"), B.attr("data-id", t.id), B.attr("data-points", M), B.attr("data-look", te(t.look)), t.showPoints && N.forEach((t) => {
417
- e.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", t.x).attr("cy", t.y);
418
- });
419
- let X = "";
420
- (c().flowchart.arrowMarkerAbsolute || c().state.arrowMarkerAbsolute) && (X = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, X = X.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), a.info("arrowTypeStart", t.arrowTypeStart), a.info("arrowTypeEnd", t.arrowTypeEnd);
421
- let Z = !K && (t == null ? void 0 : t.look) === "neo";
422
- ie(B, t, X, s, r, Z, W);
423
- let Q = Math.floor(D.length / 2), ce = D[Q];
424
- S.isLabelCoordinateInPath(ce, B.attr("d")) || (O = !0);
425
- let $ = {};
426
- return O && ($.updatedPath = D), $.originalPath = t.points, $;
427
- }, "insertEdge");
428
- function q(e, t) {
429
- if (e.length < 2) return "";
430
- let n = "", r = e.length, i = 1e-5;
431
- for (let a = 0; a < r; a++) {
432
- let o = e[a], s = e[a - 1], c = e[a + 1];
433
- if (a === 0) n += `M${o.x},${o.y}`;
434
- else if (a === r - 1) n += `L${o.x},${o.y}`;
435
- else {
436
- let e = o.x - s.x, r = o.y - s.y, a = c.x - o.x, l = c.y - o.y, u = Math.hypot(e, r), d = Math.hypot(a, l);
437
- if (u < i || d < i) {
438
- n += `L${o.x},${o.y}`;
439
- continue;
440
- }
441
- let f = e / u, p = r / u, m = a / d, h = l / d, g = f * m + p * h, _ = Math.acos(Math.max(-1, Math.min(1, g)));
442
- if (_ < i || Math.abs(Math.PI - _) < i) {
443
- n += `L${o.x},${o.y}`;
444
- continue;
445
- }
446
- let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2), y = o.x - f * v, b = o.y - p * v, x = o.x + m * v, S = o.y + h * v;
447
- n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
448
- }
449
- }
450
- return n;
451
- }
452
- i(q, "generateRoundedPath");
453
- function J(e, t) {
454
- if (!e || !t) return {
455
- angle: 0,
456
- deltaX: 0,
457
- deltaY: 0
458
- };
459
- let n = t.x - e.x, r = t.y - e.y;
460
- return {
461
- angle: Math.atan2(r, n),
462
- deltaX: n,
463
- deltaY: r
464
- };
465
- }
466
- i(J, "calculateDeltaAndAngle");
467
- function Y(e, n) {
468
- let r = e.map((e) => t({}, e));
469
- if (e.length >= 2 && T[n.arrowTypeStart]) {
470
- let t = T[n.arrowTypeStart], i = e[0], a = e[1], { angle: o } = J(i, a), s = t * Math.cos(o), c = t * Math.sin(o);
471
- r[0].x = i.x + s, r[0].y = i.y + c;
472
- }
473
- let i = e.length;
474
- if (i >= 2 && T[n.arrowTypeEnd]) {
475
- let t = T[n.arrowTypeEnd], a = e[i - 1], o = e[i - 2], { angle: s } = J(o, a), c = t * Math.cos(s), l = t * Math.sin(s);
476
- r[i - 1].x = a.x - c, r[i - 1].y = a.y - l;
477
- }
478
- return r;
479
- }
480
- i(Y, "applyMarkerOffsetsToPoints");
481
- var X = /* @__PURE__ */ i((e, t, n, r) => {
482
- t.forEach((t) => {
483
- Z[t](e, n, r);
484
- });
485
- }, "insertMarkers"), Z = {
486
- extension: /* @__PURE__ */ i((e, t, n) => {
487
- a.trace("Making markers for ", n), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), e.append("marker").attr("id", n + "_" + t + "-extensionStart-margin").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,7 18,13 18,1").style("stroke-width", 2).style("stroke-dasharray", "0"), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionEnd-margin").attr("class", "marker extension " + t).attr("refX", 9).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,1 10,13 18,7").style("stroke-width", 2).style("stroke-dasharray", "0");
488
- }, "extension"),
489
- composition: /* @__PURE__ */ i((e, t, n) => {
490
- e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart-margin").attr("class", "marker composition " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("viewBox", "0 0 15 15").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd-margin").attr("class", "marker composition " + t).attr("refX", 3.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
491
- }, "composition"),
492
- aggregation: /* @__PURE__ */ i((e, t, n) => {
493
- e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart-margin").attr("class", "marker aggregation " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd-margin").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
494
- }, "aggregation"),
495
- dependency: /* @__PURE__ */ i((e, t, n) => {
496
- e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart-margin").attr("class", "marker dependency " + t).attr("refX", 4).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd-margin").attr("class", "marker dependency " + t).attr("refX", 16).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
497
- }, "dependency"),
498
- lollipop: /* @__PURE__ */ i((e, t, n) => {
499
- e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart-margin").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd-margin").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2);
500
- }, "lollipop"),
501
- point: /* @__PURE__ */ i((e, t, n) => {
502
- e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 11.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 10.5).attr("markerHeight", 14).attr("orient", "auto").append("path").attr("d", "M 0 0 L 11.5 7 L 0 14 z").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 1).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11.5).attr("markerHeight", 14).attr("orient", "auto").append("polygon").attr("points", "0,7 11.5,14 11.5,0").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
503
- }, "point"),
504
- circle: /* @__PURE__ */ i((e, t, n) => {
505
- e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refY", 5).attr("refX", 12.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -2).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
506
- }, "circle"),
507
- cross: /* @__PURE__ */ i((e, t, n) => {
508
- e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossEnd-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", 17.7).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5), e.append("marker").attr("id", n + "_" + t + "-crossStart-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", -3.5).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5).style("stroke-dasharray", "1,0");
509
- }, "cross"),
510
- barb: /* @__PURE__ */ i((e, t, n) => {
511
- e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
512
- }, "barb"),
513
- barbNeo: /* @__PURE__ */ i((e, t, n) => {
514
- let { themeVariables: r } = s(), { transitionColor: i } = r;
515
- e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd-margin").attr("refX", 17).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z").attr("fill", `${i}`);
516
- }, "barbNeo"),
517
- only_one: /* @__PURE__ */ i((e, t, n) => {
518
- e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18"), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
519
- }, "only_one"),
520
- zero_or_one: /* @__PURE__ */ i((e, t, n) => {
521
- let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
522
- r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
523
- let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
524
- i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
525
- }, "zero_or_one"),
526
- one_or_more: /* @__PURE__ */ i((e, t, n) => {
527
- e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
528
- }, "one_or_more"),
529
- zero_or_more: /* @__PURE__ */ i((e, t, n) => {
530
- let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
531
- r.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
532
- let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
533
- i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
534
- }, "zero_or_more"),
535
- only_one_neo: /* @__PURE__ */ i((e, t, n) => {
536
- let { themeVariables: r } = s(), { strokeWidth: i } = r;
537
- e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18").attr("stroke-width", `${i}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18").attr("stroke-width", `${i}`);
538
- }, "only_one_neo"),
539
- zero_or_one_neo: /* @__PURE__ */ i((e, t, n) => {
540
- let { themeVariables: r } = s(), { strokeWidth: i, mainBkg: a } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
541
- o.append("circle").attr("fill", a == null ? "white" : a).attr("cx", 21).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), o.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${i}`);
542
- let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
543
- c.append("circle").attr("fill", a == null ? "white" : a).attr("cx", 9).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), c.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${i}`);
544
- }, "zero_or_one_neo"),
545
- one_or_more_neo: /* @__PURE__ */ i((e, t, n) => {
546
- let { themeVariables: r } = s(), { strokeWidth: i } = r;
547
- e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width", `${i}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width", `${i}`);
548
- }, "one_or_more_neo"),
549
- zero_or_more_neo: /* @__PURE__ */ i((e, t, n) => {
550
- let { themeVariables: r } = s(), { strokeWidth: i, mainBkg: a } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
551
- o.append("circle").attr("fill", a == null ? "white" : a).attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), o.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${i}`);
552
- let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
553
- c.append("circle").attr("fill", a == null ? "white" : a).attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), c.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${i}`);
554
- }, "zero_or_more_neo"),
555
- requirement_arrow: /* @__PURE__ */ i((e, t, n) => {
556
- e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20");
557
- }, "requirement_arrow"),
558
- requirement_contains: /* @__PURE__ */ i((e, t, n) => {
559
- let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
560
- r.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), r.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), r.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
561
- }, "requirement_contains"),
562
- requirement_arrow_neo: /* @__PURE__ */ i((e, t, n) => {
563
- let { themeVariables: r } = s(), { strokeWidth: i } = r;
564
- e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("stroke-width", `${i}`).attr("viewBox", "0 0 25 20").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20").attr("stroke-linejoin", "miter");
565
- }, "requirement_arrow_neo"),
566
- requirement_contains_neo: /* @__PURE__ */ i((e, t, n) => {
567
- let { themeVariables: r } = s(), { strokeWidth: i } = r, a = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g");
568
- a.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), a.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), a.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), a.selectAll("*").attr("stroke-width", `${i}`);
569
- }, "requirement_contains_neo")
570
- }, Q = X;
571
- //#endregion
572
- export { B as a, Q as i, K as n, R as r, I as t };
@@ -1,40 +0,0 @@
1
- import { n as e, t } from "./asyncToGenerator.js";
2
- import { n } from "./chunk-AGHRB4JF.js";
3
- import { f as r, x as i } from "./chunk-CSCIHK7Q.js";
4
- import { p as a } from "./chunk-5ZQYHXKU.js";
5
- //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-L5ZTLDWV.mjs
6
- e();
7
- var o = /* @__PURE__ */ n(({ flowchart: e }) => {
8
- var t, n, r, i;
9
- let a = (t = e == null || (n = e.subGraphTitleMargin) == null ? void 0 : n.top) == null ? 0 : t, o = (r = e == null || (i = e.subGraphTitleMargin) == null ? void 0 : i.bottom) == null ? 0 : r;
10
- return {
11
- subGraphTitleTopMargin: a,
12
- subGraphTitleBottomMargin: o,
13
- subGraphTitleTotalMargin: a + o
14
- };
15
- }, "getSubGraphTitleMargins");
16
- function s(e, t) {
17
- return c.apply(this, arguments);
18
- }
19
- function c() {
20
- return c = t(function* (e, t) {
21
- let o = e.getElementsByTagName("img");
22
- if (!o || o.length === 0) return;
23
- let s = t.replace(/<img[^>]*>/g, "").trim() === "";
24
- yield Promise.all([...o].map((e) => new Promise((t) => {
25
- function o() {
26
- if (e.style.display = "flex", e.style.flexDirection = "column", s) {
27
- let [t = r.fontSize] = a(i().fontSize ? i().fontSize : window.getComputedStyle(document.body).fontSize), n = t * 5 + "px";
28
- e.style.minWidth = n, e.style.maxWidth = n;
29
- } else e.style.width = "100%";
30
- t(e);
31
- }
32
- n(o, "setupImage"), setTimeout(() => {
33
- e.complete && o();
34
- }), e.addEventListener("error", o), e.addEventListener("load", o);
35
- })));
36
- }), c.apply(this, arguments);
37
- }
38
- n(s, "configureLabelImages");
39
- //#endregion
40
- export { o as n, s as t };