@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,1988 +0,0 @@
1
- import { n as e, t } from "./objectSpread2.js";
2
- import { n, r } from "./chunk-AGHRB4JF.js";
3
- import { D as i, H as a, K as o, U as s, a as c, c as l, f as u, v as d, w as f, x as p, y as m, z as h } from "./chunk-CSCIHK7Q.js";
4
- import { t as g } from "./linear.js";
5
- import { Q as _ } from "./src.js";
6
- //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-W4KKPZXB.mjs
7
- e();
8
- var v, y, b = (function() {
9
- var e = /* @__PURE__ */ n(function(e, t, n, r) {
10
- for (n = n || {}, r = e.length; r--; n[e[r]] = t);
11
- return n;
12
- }, "o"), t = [1, 3], r = [1, 4], i = [1, 5], a = [1, 6], o = [1, 7], s = [
13
- 1,
14
- 4,
15
- 5,
16
- 10,
17
- 12,
18
- 13,
19
- 14,
20
- 15,
21
- 18,
22
- 25,
23
- 35,
24
- 37,
25
- 39,
26
- 41,
27
- 42,
28
- 48,
29
- 50,
30
- 51,
31
- 52,
32
- 53,
33
- 54,
34
- 55,
35
- 56,
36
- 57,
37
- 60,
38
- 61,
39
- 63,
40
- 64,
41
- 65,
42
- 66,
43
- 67
44
- ], c = [
45
- 1,
46
- 4,
47
- 5,
48
- 10,
49
- 12,
50
- 13,
51
- 14,
52
- 15,
53
- 18,
54
- 25,
55
- 28,
56
- 35,
57
- 37,
58
- 39,
59
- 41,
60
- 42,
61
- 48,
62
- 50,
63
- 51,
64
- 52,
65
- 53,
66
- 54,
67
- 55,
68
- 56,
69
- 57,
70
- 60,
71
- 61,
72
- 63,
73
- 64,
74
- 65,
75
- 66,
76
- 67
77
- ], l = [
78
- 55,
79
- 56,
80
- 57
81
- ], u = [2, 36], d = [1, 37], f = [1, 36], p = [1, 38], m = [1, 35], h = [1, 43], g = [1, 41], _ = [1, 45], v = [1, 14], y = [1, 23], b = [1, 18], x = [1, 19], S = [1, 20], C = [1, 21], w = [1, 22], T = [1, 24], E = [1, 25], D = [1, 26], O = [1, 27], k = [1, 28], A = [1, 29], j = [1, 32], M = [1, 33], N = [1, 34], P = [1, 39], F = [1, 40], I = [1, 42], L = [1, 44], R = [1, 63], z = [1, 62], B = [
82
- 4,
83
- 5,
84
- 8,
85
- 10,
86
- 12,
87
- 13,
88
- 14,
89
- 15,
90
- 18,
91
- 44,
92
- 47,
93
- 49,
94
- 55,
95
- 56,
96
- 57,
97
- 63,
98
- 64,
99
- 65,
100
- 66,
101
- 67
102
- ], ee = [1, 66], te = [1, 67], ne = [1, 68], V = [1, 69], re = [1, 70], ie = [1, 71], ae = [1, 72], oe = [1, 73], se = [1, 74], ce = [1, 75], le = [1, 76], ue = [1, 77], H = [
103
- 4,
104
- 5,
105
- 6,
106
- 7,
107
- 8,
108
- 9,
109
- 10,
110
- 11,
111
- 12,
112
- 13,
113
- 14,
114
- 15,
115
- 18
116
- ], U = [1, 91], W = [1, 92], G = [1, 93], K = [1, 100], q = [1, 94], J = [1, 97], Y = [1, 95], X = [1, 96], Z = [1, 98], Q = [1, 99], de = [1, 103], fe = [
117
- 10,
118
- 55,
119
- 56,
120
- 57
121
- ], $ = [
122
- 4,
123
- 5,
124
- 6,
125
- 8,
126
- 10,
127
- 11,
128
- 13,
129
- 17,
130
- 18,
131
- 19,
132
- 20,
133
- 55,
134
- 56,
135
- 57
136
- ], pe = {
137
- trace: /* @__PURE__ */ n(function() {}, "trace"),
138
- yy: {},
139
- symbols_: {
140
- error: 2,
141
- idStringToken: 3,
142
- ALPHA: 4,
143
- NUM: 5,
144
- NODE_STRING: 6,
145
- DOWN: 7,
146
- MINUS: 8,
147
- DEFAULT: 9,
148
- COMMA: 10,
149
- COLON: 11,
150
- AMP: 12,
151
- BRKT: 13,
152
- MULT: 14,
153
- UNICODE_TEXT: 15,
154
- styleComponent: 16,
155
- UNIT: 17,
156
- SPACE: 18,
157
- STYLE: 19,
158
- PCT: 20,
159
- idString: 21,
160
- style: 22,
161
- stylesOpt: 23,
162
- classDefStatement: 24,
163
- CLASSDEF: 25,
164
- start: 26,
165
- eol: 27,
166
- QUADRANT: 28,
167
- document: 29,
168
- line: 30,
169
- statement: 31,
170
- axisDetails: 32,
171
- quadrantDetails: 33,
172
- points: 34,
173
- title: 35,
174
- title_value: 36,
175
- acc_title: 37,
176
- acc_title_value: 38,
177
- acc_descr: 39,
178
- acc_descr_value: 40,
179
- acc_descr_multiline_value: 41,
180
- section: 42,
181
- text: 43,
182
- point_start: 44,
183
- point_x: 45,
184
- point_y: 46,
185
- class_name: 47,
186
- "X-AXIS": 48,
187
- "AXIS-TEXT-DELIMITER": 49,
188
- "Y-AXIS": 50,
189
- QUADRANT_1: 51,
190
- QUADRANT_2: 52,
191
- QUADRANT_3: 53,
192
- QUADRANT_4: 54,
193
- NEWLINE: 55,
194
- SEMI: 56,
195
- EOF: 57,
196
- alphaNumToken: 58,
197
- textNoTagsToken: 59,
198
- STR: 60,
199
- MD_STR: 61,
200
- alphaNum: 62,
201
- PUNCTUATION: 63,
202
- PLUS: 64,
203
- EQUALS: 65,
204
- DOT: 66,
205
- UNDERSCORE: 67,
206
- $accept: 0,
207
- $end: 1
208
- },
209
- terminals_: {
210
- 2: "error",
211
- 4: "ALPHA",
212
- 5: "NUM",
213
- 6: "NODE_STRING",
214
- 7: "DOWN",
215
- 8: "MINUS",
216
- 9: "DEFAULT",
217
- 10: "COMMA",
218
- 11: "COLON",
219
- 12: "AMP",
220
- 13: "BRKT",
221
- 14: "MULT",
222
- 15: "UNICODE_TEXT",
223
- 17: "UNIT",
224
- 18: "SPACE",
225
- 19: "STYLE",
226
- 20: "PCT",
227
- 25: "CLASSDEF",
228
- 28: "QUADRANT",
229
- 35: "title",
230
- 36: "title_value",
231
- 37: "acc_title",
232
- 38: "acc_title_value",
233
- 39: "acc_descr",
234
- 40: "acc_descr_value",
235
- 41: "acc_descr_multiline_value",
236
- 42: "section",
237
- 44: "point_start",
238
- 45: "point_x",
239
- 46: "point_y",
240
- 47: "class_name",
241
- 48: "X-AXIS",
242
- 49: "AXIS-TEXT-DELIMITER",
243
- 50: "Y-AXIS",
244
- 51: "QUADRANT_1",
245
- 52: "QUADRANT_2",
246
- 53: "QUADRANT_3",
247
- 54: "QUADRANT_4",
248
- 55: "NEWLINE",
249
- 56: "SEMI",
250
- 57: "EOF",
251
- 60: "STR",
252
- 61: "MD_STR",
253
- 63: "PUNCTUATION",
254
- 64: "PLUS",
255
- 65: "EQUALS",
256
- 66: "DOT",
257
- 67: "UNDERSCORE"
258
- },
259
- productions_: [
260
- 0,
261
- [3, 1],
262
- [3, 1],
263
- [3, 1],
264
- [3, 1],
265
- [3, 1],
266
- [3, 1],
267
- [3, 1],
268
- [3, 1],
269
- [3, 1],
270
- [3, 1],
271
- [3, 1],
272
- [3, 1],
273
- [16, 1],
274
- [16, 1],
275
- [16, 1],
276
- [16, 1],
277
- [16, 1],
278
- [16, 1],
279
- [16, 1],
280
- [16, 1],
281
- [16, 1],
282
- [16, 1],
283
- [21, 1],
284
- [21, 2],
285
- [22, 1],
286
- [22, 2],
287
- [23, 1],
288
- [23, 3],
289
- [24, 5],
290
- [26, 2],
291
- [26, 2],
292
- [26, 2],
293
- [29, 0],
294
- [29, 2],
295
- [30, 2],
296
- [31, 0],
297
- [31, 1],
298
- [31, 2],
299
- [31, 1],
300
- [31, 1],
301
- [31, 1],
302
- [31, 2],
303
- [31, 2],
304
- [31, 2],
305
- [31, 1],
306
- [31, 1],
307
- [34, 4],
308
- [34, 5],
309
- [34, 5],
310
- [34, 6],
311
- [32, 4],
312
- [32, 3],
313
- [32, 2],
314
- [32, 4],
315
- [32, 3],
316
- [32, 2],
317
- [33, 2],
318
- [33, 2],
319
- [33, 2],
320
- [33, 2],
321
- [27, 1],
322
- [27, 1],
323
- [27, 1],
324
- [43, 1],
325
- [43, 2],
326
- [43, 1],
327
- [43, 1],
328
- [62, 1],
329
- [62, 2],
330
- [58, 1],
331
- [58, 1],
332
- [58, 1],
333
- [58, 1],
334
- [58, 1],
335
- [58, 1],
336
- [58, 1],
337
- [58, 1],
338
- [58, 1],
339
- [58, 1],
340
- [58, 1],
341
- [58, 1],
342
- [59, 1],
343
- [59, 1],
344
- [59, 1]
345
- ],
346
- performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
347
- var s = a.length - 1;
348
- switch (i) {
349
- case 23:
350
- this.$ = a[s];
351
- break;
352
- case 24:
353
- this.$ = a[s - 1] + "" + a[s];
354
- break;
355
- case 26:
356
- this.$ = a[s - 1] + a[s];
357
- break;
358
- case 27:
359
- this.$ = [a[s].trim()];
360
- break;
361
- case 28:
362
- a[s - 2].push(a[s].trim()), this.$ = a[s - 2];
363
- break;
364
- case 29:
365
- this.$ = a[s - 4], r.addClass(a[s - 2], a[s]);
366
- break;
367
- case 37:
368
- this.$ = [];
369
- break;
370
- case 42:
371
- this.$ = a[s].trim(), r.setDiagramTitle(this.$);
372
- break;
373
- case 43:
374
- this.$ = a[s].trim(), r.setAccTitle(this.$);
375
- break;
376
- case 44:
377
- case 45:
378
- this.$ = a[s].trim(), r.setAccDescription(this.$);
379
- break;
380
- case 46:
381
- r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
382
- break;
383
- case 47:
384
- r.addPoint(a[s - 3], "", a[s - 1], a[s], []);
385
- break;
386
- case 48:
387
- r.addPoint(a[s - 4], a[s - 3], a[s - 1], a[s], []);
388
- break;
389
- case 49:
390
- r.addPoint(a[s - 4], "", a[s - 2], a[s - 1], a[s]);
391
- break;
392
- case 50:
393
- r.addPoint(a[s - 5], a[s - 4], a[s - 2], a[s - 1], a[s]);
394
- break;
395
- case 51:
396
- r.setXAxisLeftText(a[s - 2]), r.setXAxisRightText(a[s]);
397
- break;
398
- case 52:
399
- a[s - 1].text += " ⟶ ", r.setXAxisLeftText(a[s - 1]);
400
- break;
401
- case 53:
402
- r.setXAxisLeftText(a[s]);
403
- break;
404
- case 54:
405
- r.setYAxisBottomText(a[s - 2]), r.setYAxisTopText(a[s]);
406
- break;
407
- case 55:
408
- a[s - 1].text += " ⟶ ", r.setYAxisBottomText(a[s - 1]);
409
- break;
410
- case 56:
411
- r.setYAxisBottomText(a[s]);
412
- break;
413
- case 57:
414
- r.setQuadrant1Text(a[s]);
415
- break;
416
- case 58:
417
- r.setQuadrant2Text(a[s]);
418
- break;
419
- case 59:
420
- r.setQuadrant3Text(a[s]);
421
- break;
422
- case 60:
423
- r.setQuadrant4Text(a[s]);
424
- break;
425
- case 64:
426
- this.$ = {
427
- text: a[s],
428
- type: "text"
429
- };
430
- break;
431
- case 65:
432
- this.$ = {
433
- text: a[s - 1].text + "" + a[s],
434
- type: a[s - 1].type
435
- };
436
- break;
437
- case 66:
438
- this.$ = {
439
- text: a[s],
440
- type: "text"
441
- };
442
- break;
443
- case 67:
444
- this.$ = {
445
- text: a[s],
446
- type: "markdown"
447
- };
448
- break;
449
- case 68:
450
- this.$ = a[s];
451
- break;
452
- case 69:
453
- this.$ = a[s - 1] + "" + a[s];
454
- break;
455
- }
456
- }, "anonymous"),
457
- table: [
458
- {
459
- 18: t,
460
- 26: 1,
461
- 27: 2,
462
- 28: r,
463
- 55: i,
464
- 56: a,
465
- 57: o
466
- },
467
- { 1: [3] },
468
- {
469
- 18: t,
470
- 26: 8,
471
- 27: 2,
472
- 28: r,
473
- 55: i,
474
- 56: a,
475
- 57: o
476
- },
477
- {
478
- 18: t,
479
- 26: 9,
480
- 27: 2,
481
- 28: r,
482
- 55: i,
483
- 56: a,
484
- 57: o
485
- },
486
- e(s, [2, 33], { 29: 10 }),
487
- e(c, [2, 61]),
488
- e(c, [2, 62]),
489
- e(c, [2, 63]),
490
- { 1: [2, 30] },
491
- { 1: [2, 31] },
492
- e(l, u, {
493
- 30: 11,
494
- 31: 12,
495
- 24: 13,
496
- 32: 15,
497
- 33: 16,
498
- 34: 17,
499
- 43: 30,
500
- 58: 31,
501
- 1: [2, 32],
502
- 4: d,
503
- 5: f,
504
- 10: p,
505
- 12: m,
506
- 13: h,
507
- 14: g,
508
- 15: _,
509
- 18: v,
510
- 25: y,
511
- 35: b,
512
- 37: x,
513
- 39: S,
514
- 41: C,
515
- 42: w,
516
- 48: T,
517
- 50: E,
518
- 51: D,
519
- 52: O,
520
- 53: k,
521
- 54: A,
522
- 60: j,
523
- 61: M,
524
- 63: N,
525
- 64: P,
526
- 65: F,
527
- 66: I,
528
- 67: L
529
- }),
530
- e(s, [2, 34]),
531
- {
532
- 27: 46,
533
- 55: i,
534
- 56: a,
535
- 57: o
536
- },
537
- e(l, [2, 37]),
538
- e(l, u, {
539
- 24: 13,
540
- 32: 15,
541
- 33: 16,
542
- 34: 17,
543
- 43: 30,
544
- 58: 31,
545
- 31: 47,
546
- 4: d,
547
- 5: f,
548
- 10: p,
549
- 12: m,
550
- 13: h,
551
- 14: g,
552
- 15: _,
553
- 18: v,
554
- 25: y,
555
- 35: b,
556
- 37: x,
557
- 39: S,
558
- 41: C,
559
- 42: w,
560
- 48: T,
561
- 50: E,
562
- 51: D,
563
- 52: O,
564
- 53: k,
565
- 54: A,
566
- 60: j,
567
- 61: M,
568
- 63: N,
569
- 64: P,
570
- 65: F,
571
- 66: I,
572
- 67: L
573
- }),
574
- e(l, [2, 39]),
575
- e(l, [2, 40]),
576
- e(l, [2, 41]),
577
- { 36: [1, 48] },
578
- { 38: [1, 49] },
579
- { 40: [1, 50] },
580
- e(l, [2, 45]),
581
- e(l, [2, 46]),
582
- { 18: [1, 51] },
583
- {
584
- 4: d,
585
- 5: f,
586
- 10: p,
587
- 12: m,
588
- 13: h,
589
- 14: g,
590
- 15: _,
591
- 43: 52,
592
- 58: 31,
593
- 60: j,
594
- 61: M,
595
- 63: N,
596
- 64: P,
597
- 65: F,
598
- 66: I,
599
- 67: L
600
- },
601
- {
602
- 4: d,
603
- 5: f,
604
- 10: p,
605
- 12: m,
606
- 13: h,
607
- 14: g,
608
- 15: _,
609
- 43: 53,
610
- 58: 31,
611
- 60: j,
612
- 61: M,
613
- 63: N,
614
- 64: P,
615
- 65: F,
616
- 66: I,
617
- 67: L
618
- },
619
- {
620
- 4: d,
621
- 5: f,
622
- 10: p,
623
- 12: m,
624
- 13: h,
625
- 14: g,
626
- 15: _,
627
- 43: 54,
628
- 58: 31,
629
- 60: j,
630
- 61: M,
631
- 63: N,
632
- 64: P,
633
- 65: F,
634
- 66: I,
635
- 67: L
636
- },
637
- {
638
- 4: d,
639
- 5: f,
640
- 10: p,
641
- 12: m,
642
- 13: h,
643
- 14: g,
644
- 15: _,
645
- 43: 55,
646
- 58: 31,
647
- 60: j,
648
- 61: M,
649
- 63: N,
650
- 64: P,
651
- 65: F,
652
- 66: I,
653
- 67: L
654
- },
655
- {
656
- 4: d,
657
- 5: f,
658
- 10: p,
659
- 12: m,
660
- 13: h,
661
- 14: g,
662
- 15: _,
663
- 43: 56,
664
- 58: 31,
665
- 60: j,
666
- 61: M,
667
- 63: N,
668
- 64: P,
669
- 65: F,
670
- 66: I,
671
- 67: L
672
- },
673
- {
674
- 4: d,
675
- 5: f,
676
- 10: p,
677
- 12: m,
678
- 13: h,
679
- 14: g,
680
- 15: _,
681
- 43: 57,
682
- 58: 31,
683
- 60: j,
684
- 61: M,
685
- 63: N,
686
- 64: P,
687
- 65: F,
688
- 66: I,
689
- 67: L
690
- },
691
- {
692
- 4: d,
693
- 5: f,
694
- 8: R,
695
- 10: p,
696
- 12: m,
697
- 13: h,
698
- 14: g,
699
- 15: _,
700
- 18: z,
701
- 44: [1, 58],
702
- 47: [1, 59],
703
- 58: 61,
704
- 59: 60,
705
- 63: N,
706
- 64: P,
707
- 65: F,
708
- 66: I,
709
- 67: L
710
- },
711
- e(B, [2, 64]),
712
- e(B, [2, 66]),
713
- e(B, [2, 67]),
714
- e(B, [2, 70]),
715
- e(B, [2, 71]),
716
- e(B, [2, 72]),
717
- e(B, [2, 73]),
718
- e(B, [2, 74]),
719
- e(B, [2, 75]),
720
- e(B, [2, 76]),
721
- e(B, [2, 77]),
722
- e(B, [2, 78]),
723
- e(B, [2, 79]),
724
- e(B, [2, 80]),
725
- e(B, [2, 81]),
726
- e(s, [2, 35]),
727
- e(l, [2, 38]),
728
- e(l, [2, 42]),
729
- e(l, [2, 43]),
730
- e(l, [2, 44]),
731
- {
732
- 3: 65,
733
- 4: ee,
734
- 5: te,
735
- 6: ne,
736
- 7: V,
737
- 8: re,
738
- 9: ie,
739
- 10: ae,
740
- 11: oe,
741
- 12: se,
742
- 13: ce,
743
- 14: le,
744
- 15: ue,
745
- 21: 64
746
- },
747
- e(l, [2, 53], {
748
- 59: 60,
749
- 58: 61,
750
- 4: d,
751
- 5: f,
752
- 8: R,
753
- 10: p,
754
- 12: m,
755
- 13: h,
756
- 14: g,
757
- 15: _,
758
- 18: z,
759
- 49: [1, 78],
760
- 63: N,
761
- 64: P,
762
- 65: F,
763
- 66: I,
764
- 67: L
765
- }),
766
- e(l, [2, 56], {
767
- 59: 60,
768
- 58: 61,
769
- 4: d,
770
- 5: f,
771
- 8: R,
772
- 10: p,
773
- 12: m,
774
- 13: h,
775
- 14: g,
776
- 15: _,
777
- 18: z,
778
- 49: [1, 79],
779
- 63: N,
780
- 64: P,
781
- 65: F,
782
- 66: I,
783
- 67: L
784
- }),
785
- e(l, [2, 57], {
786
- 59: 60,
787
- 58: 61,
788
- 4: d,
789
- 5: f,
790
- 8: R,
791
- 10: p,
792
- 12: m,
793
- 13: h,
794
- 14: g,
795
- 15: _,
796
- 18: z,
797
- 63: N,
798
- 64: P,
799
- 65: F,
800
- 66: I,
801
- 67: L
802
- }),
803
- e(l, [2, 58], {
804
- 59: 60,
805
- 58: 61,
806
- 4: d,
807
- 5: f,
808
- 8: R,
809
- 10: p,
810
- 12: m,
811
- 13: h,
812
- 14: g,
813
- 15: _,
814
- 18: z,
815
- 63: N,
816
- 64: P,
817
- 65: F,
818
- 66: I,
819
- 67: L
820
- }),
821
- e(l, [2, 59], {
822
- 59: 60,
823
- 58: 61,
824
- 4: d,
825
- 5: f,
826
- 8: R,
827
- 10: p,
828
- 12: m,
829
- 13: h,
830
- 14: g,
831
- 15: _,
832
- 18: z,
833
- 63: N,
834
- 64: P,
835
- 65: F,
836
- 66: I,
837
- 67: L
838
- }),
839
- e(l, [2, 60], {
840
- 59: 60,
841
- 58: 61,
842
- 4: d,
843
- 5: f,
844
- 8: R,
845
- 10: p,
846
- 12: m,
847
- 13: h,
848
- 14: g,
849
- 15: _,
850
- 18: z,
851
- 63: N,
852
- 64: P,
853
- 65: F,
854
- 66: I,
855
- 67: L
856
- }),
857
- { 45: [1, 80] },
858
- { 44: [1, 81] },
859
- e(B, [2, 65]),
860
- e(B, [2, 82]),
861
- e(B, [2, 83]),
862
- e(B, [2, 84]),
863
- {
864
- 3: 83,
865
- 4: ee,
866
- 5: te,
867
- 6: ne,
868
- 7: V,
869
- 8: re,
870
- 9: ie,
871
- 10: ae,
872
- 11: oe,
873
- 12: se,
874
- 13: ce,
875
- 14: le,
876
- 15: ue,
877
- 18: [1, 82]
878
- },
879
- e(H, [2, 23]),
880
- e(H, [2, 1]),
881
- e(H, [2, 2]),
882
- e(H, [2, 3]),
883
- e(H, [2, 4]),
884
- e(H, [2, 5]),
885
- e(H, [2, 6]),
886
- e(H, [2, 7]),
887
- e(H, [2, 8]),
888
- e(H, [2, 9]),
889
- e(H, [2, 10]),
890
- e(H, [2, 11]),
891
- e(H, [2, 12]),
892
- e(l, [2, 52], {
893
- 58: 31,
894
- 43: 84,
895
- 4: d,
896
- 5: f,
897
- 10: p,
898
- 12: m,
899
- 13: h,
900
- 14: g,
901
- 15: _,
902
- 60: j,
903
- 61: M,
904
- 63: N,
905
- 64: P,
906
- 65: F,
907
- 66: I,
908
- 67: L
909
- }),
910
- e(l, [2, 55], {
911
- 58: 31,
912
- 43: 85,
913
- 4: d,
914
- 5: f,
915
- 10: p,
916
- 12: m,
917
- 13: h,
918
- 14: g,
919
- 15: _,
920
- 60: j,
921
- 61: M,
922
- 63: N,
923
- 64: P,
924
- 65: F,
925
- 66: I,
926
- 67: L
927
- }),
928
- { 46: [1, 86] },
929
- { 45: [1, 87] },
930
- {
931
- 4: U,
932
- 5: W,
933
- 6: G,
934
- 8: K,
935
- 11: q,
936
- 13: J,
937
- 16: 90,
938
- 17: Y,
939
- 18: X,
940
- 19: Z,
941
- 20: Q,
942
- 22: 89,
943
- 23: 88
944
- },
945
- e(H, [2, 24]),
946
- e(l, [2, 51], {
947
- 59: 60,
948
- 58: 61,
949
- 4: d,
950
- 5: f,
951
- 8: R,
952
- 10: p,
953
- 12: m,
954
- 13: h,
955
- 14: g,
956
- 15: _,
957
- 18: z,
958
- 63: N,
959
- 64: P,
960
- 65: F,
961
- 66: I,
962
- 67: L
963
- }),
964
- e(l, [2, 54], {
965
- 59: 60,
966
- 58: 61,
967
- 4: d,
968
- 5: f,
969
- 8: R,
970
- 10: p,
971
- 12: m,
972
- 13: h,
973
- 14: g,
974
- 15: _,
975
- 18: z,
976
- 63: N,
977
- 64: P,
978
- 65: F,
979
- 66: I,
980
- 67: L
981
- }),
982
- e(l, [2, 47], {
983
- 22: 89,
984
- 16: 90,
985
- 23: 101,
986
- 4: U,
987
- 5: W,
988
- 6: G,
989
- 8: K,
990
- 11: q,
991
- 13: J,
992
- 17: Y,
993
- 18: X,
994
- 19: Z,
995
- 20: Q
996
- }),
997
- { 46: [1, 102] },
998
- e(l, [2, 29], { 10: de }),
999
- e(fe, [2, 27], {
1000
- 16: 104,
1001
- 4: U,
1002
- 5: W,
1003
- 6: G,
1004
- 8: K,
1005
- 11: q,
1006
- 13: J,
1007
- 17: Y,
1008
- 18: X,
1009
- 19: Z,
1010
- 20: Q
1011
- }),
1012
- e($, [2, 25]),
1013
- e($, [2, 13]),
1014
- e($, [2, 14]),
1015
- e($, [2, 15]),
1016
- e($, [2, 16]),
1017
- e($, [2, 17]),
1018
- e($, [2, 18]),
1019
- e($, [2, 19]),
1020
- e($, [2, 20]),
1021
- e($, [2, 21]),
1022
- e($, [2, 22]),
1023
- e(l, [2, 49], { 10: de }),
1024
- e(l, [2, 48], {
1025
- 22: 89,
1026
- 16: 90,
1027
- 23: 105,
1028
- 4: U,
1029
- 5: W,
1030
- 6: G,
1031
- 8: K,
1032
- 11: q,
1033
- 13: J,
1034
- 17: Y,
1035
- 18: X,
1036
- 19: Z,
1037
- 20: Q
1038
- }),
1039
- {
1040
- 4: U,
1041
- 5: W,
1042
- 6: G,
1043
- 8: K,
1044
- 11: q,
1045
- 13: J,
1046
- 16: 90,
1047
- 17: Y,
1048
- 18: X,
1049
- 19: Z,
1050
- 20: Q,
1051
- 22: 106
1052
- },
1053
- e($, [2, 26]),
1054
- e(l, [2, 50], { 10: de }),
1055
- e(fe, [2, 28], {
1056
- 16: 104,
1057
- 4: U,
1058
- 5: W,
1059
- 6: G,
1060
- 8: K,
1061
- 11: q,
1062
- 13: J,
1063
- 17: Y,
1064
- 18: X,
1065
- 19: Z,
1066
- 20: Q
1067
- })
1068
- ],
1069
- defaultActions: {
1070
- 8: [2, 30],
1071
- 9: [2, 31]
1072
- },
1073
- parseError: /* @__PURE__ */ n(function(e, t) {
1074
- if (t.recoverable) this.trace(e);
1075
- else {
1076
- var n = Error(e);
1077
- throw n.hash = t, n;
1078
- }
1079
- }, "parseError"),
1080
- parse: /* @__PURE__ */ n(function(e) {
1081
- var t = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1082
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1083
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1084
- var v = h.yylloc;
1085
- o.push(v);
1086
- var y = h.options && h.options.ranges;
1087
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1088
- function b(e) {
1089
- r.length -= 2 * e, a.length -= e, o.length -= e;
1090
- }
1091
- n(b, "popStack");
1092
- function x() {
1093
- var e = i.pop() || h.lex() || p;
1094
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
1095
- }
1096
- n(x, "lex");
1097
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1098
- 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]) {
1099
- var M = "";
1100
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
1101
- 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, {
1102
- text: h.match,
1103
- token: this.terminals_[S] || S,
1104
- line: h.yylineno,
1105
- loc: v,
1106
- expected: j
1107
- });
1108
- }
1109
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1110
- switch (T[0]) {
1111
- case 1:
1112
- 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--);
1113
- break;
1114
- case 2:
1115
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1116
- first_line: o[o.length - (k || 1)].first_line,
1117
- last_line: o[o.length - 1].last_line,
1118
- first_column: o[o.length - (k || 1)].first_column,
1119
- last_column: o[o.length - 1].last_column
1120
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1121
- c,
1122
- u,
1123
- l,
1124
- g.yy,
1125
- T[1],
1126
- a,
1127
- o
1128
- ].concat(m)), E !== void 0) return E;
1129
- 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);
1130
- break;
1131
- case 3: return !0;
1132
- }
1133
- }
1134
- return !0;
1135
- }, "parse")
1136
- };
1137
- pe.lexer = /* @__PURE__ */ (function() {
1138
- return {
1139
- EOF: 1,
1140
- parseError: /* @__PURE__ */ n(function(e, t) {
1141
- if (this.yy.parser) this.yy.parser.parseError(e, t);
1142
- else throw Error(e);
1143
- }, "parseError"),
1144
- setInput: /* @__PURE__ */ n(function(e, t) {
1145
- 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 = {
1146
- first_line: 1,
1147
- first_column: 0,
1148
- last_line: 1,
1149
- last_column: 0
1150
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1151
- }, "setInput"),
1152
- input: /* @__PURE__ */ n(function() {
1153
- var e = this._input[0];
1154
- 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;
1155
- }, "input"),
1156
- unput: /* @__PURE__ */ n(function(e) {
1157
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1158
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1159
- var r = this.match.split(/(?:\r\n?|\n)/g);
1160
- 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);
1161
- var i = this.yylloc.range;
1162
- return this.yylloc = {
1163
- first_line: this.yylloc.first_line,
1164
- last_line: this.yylineno + 1,
1165
- first_column: this.yylloc.first_column,
1166
- 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
1167
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1168
- }, "unput"),
1169
- more: /* @__PURE__ */ n(function() {
1170
- return this._more = !0, this;
1171
- }, "more"),
1172
- reject: /* @__PURE__ */ n(function() {
1173
- if (this.options.backtrack_lexer) this._backtrack = !0;
1174
- 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(), {
1175
- text: "",
1176
- token: null,
1177
- line: this.yylineno
1178
- });
1179
- return this;
1180
- }, "reject"),
1181
- less: /* @__PURE__ */ n(function(e) {
1182
- this.unput(this.match.slice(e));
1183
- }, "less"),
1184
- pastInput: /* @__PURE__ */ n(function() {
1185
- var e = this.matched.substr(0, this.matched.length - this.match.length);
1186
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1187
- }, "pastInput"),
1188
- upcomingInput: /* @__PURE__ */ n(function() {
1189
- var e = this.match;
1190
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1191
- }, "upcomingInput"),
1192
- showPosition: /* @__PURE__ */ n(function() {
1193
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
1194
- return e + this.upcomingInput() + "\n" + t + "^";
1195
- }, "showPosition"),
1196
- test_match: /* @__PURE__ */ n(function(e, t) {
1197
- var n, r, i;
1198
- if (this.options.backtrack_lexer && (i = {
1199
- yylineno: this.yylineno,
1200
- yylloc: {
1201
- first_line: this.yylloc.first_line,
1202
- last_line: this.last_line,
1203
- first_column: this.yylloc.first_column,
1204
- last_column: this.yylloc.last_column
1205
- },
1206
- yytext: this.yytext,
1207
- match: this.match,
1208
- matches: this.matches,
1209
- matched: this.matched,
1210
- yyleng: this.yyleng,
1211
- offset: this.offset,
1212
- _more: this._more,
1213
- _input: this._input,
1214
- yy: this.yy,
1215
- conditionStack: this.conditionStack.slice(0),
1216
- done: this.done
1217
- }, 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 = {
1218
- first_line: this.yylloc.last_line,
1219
- last_line: this.yylineno + 1,
1220
- first_column: this.yylloc.last_column,
1221
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1222
- }, 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;
1223
- if (this._backtrack) {
1224
- for (var a in i) this[a] = i[a];
1225
- return !1;
1226
- }
1227
- return !1;
1228
- }, "test_match"),
1229
- next: /* @__PURE__ */ n(function() {
1230
- if (this.done) return this.EOF;
1231
- this._input || (this.done = !0);
1232
- var e, t, n, r;
1233
- this._more || (this.yytext = "", this.match = "");
1234
- 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)) {
1235
- if (t = n, r = a, this.options.backtrack_lexer) {
1236
- if (e = this.test_match(n, i[a]), e !== !1) return e;
1237
- if (this._backtrack) {
1238
- t = !1;
1239
- continue;
1240
- } else return !1;
1241
- } else if (!this.options.flex) break;
1242
- }
1243
- 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(), {
1244
- text: "",
1245
- token: null,
1246
- line: this.yylineno
1247
- });
1248
- }, "next"),
1249
- lex: /* @__PURE__ */ n(function() {
1250
- return this.next() || this.lex();
1251
- }, "lex"),
1252
- begin: /* @__PURE__ */ n(function(e) {
1253
- this.conditionStack.push(e);
1254
- }, "begin"),
1255
- popState: /* @__PURE__ */ n(function() {
1256
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1257
- }, "popState"),
1258
- _currentRules: /* @__PURE__ */ n(function() {
1259
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1260
- }, "_currentRules"),
1261
- topState: /* @__PURE__ */ n(function(e) {
1262
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1263
- }, "topState"),
1264
- pushState: /* @__PURE__ */ n(function(e) {
1265
- this.begin(e);
1266
- }, "pushState"),
1267
- stateStackSize: /* @__PURE__ */ n(function() {
1268
- return this.conditionStack.length;
1269
- }, "stateStackSize"),
1270
- options: { "case-insensitive": !0 },
1271
- performAction: /* @__PURE__ */ n(function(e, t, n, r) {
1272
- switch (n) {
1273
- case 0: break;
1274
- case 1: break;
1275
- case 2: return 55;
1276
- case 3: break;
1277
- case 4: return this.begin("title"), 35;
1278
- case 5: return this.popState(), "title_value";
1279
- case 6: return this.begin("acc_title"), 37;
1280
- case 7: return this.popState(), "acc_title_value";
1281
- case 8: return this.begin("acc_descr"), 39;
1282
- case 9: return this.popState(), "acc_descr_value";
1283
- case 10:
1284
- this.begin("acc_descr_multiline");
1285
- break;
1286
- case 11:
1287
- this.popState();
1288
- break;
1289
- case 12: return "acc_descr_multiline_value";
1290
- case 13: return 48;
1291
- case 14: return 50;
1292
- case 15: return 49;
1293
- case 16: return 51;
1294
- case 17: return 52;
1295
- case 18: return 53;
1296
- case 19: return 54;
1297
- case 20: return 25;
1298
- case 21:
1299
- this.begin("md_string");
1300
- break;
1301
- case 22: return "MD_STR";
1302
- case 23:
1303
- this.popState();
1304
- break;
1305
- case 24:
1306
- this.begin("string");
1307
- break;
1308
- case 25:
1309
- this.popState();
1310
- break;
1311
- case 26: return "STR";
1312
- case 27:
1313
- this.begin("class_name");
1314
- break;
1315
- case 28: return this.popState(), 47;
1316
- case 29: return this.begin("point_start"), 44;
1317
- case 30: return this.begin("point_x"), 45;
1318
- case 31:
1319
- this.popState();
1320
- break;
1321
- case 32:
1322
- this.popState(), this.begin("point_y");
1323
- break;
1324
- case 33: return this.popState(), 46;
1325
- case 34: return 28;
1326
- case 35: return 4;
1327
- case 36: return 15;
1328
- case 37: return 11;
1329
- case 38: return 64;
1330
- case 39: return 10;
1331
- case 40: return 65;
1332
- case 41: return 65;
1333
- case 42: return 14;
1334
- case 43: return 13;
1335
- case 44: return 67;
1336
- case 45: return 66;
1337
- case 46: return 12;
1338
- case 47: return 8;
1339
- case 48: return 5;
1340
- case 49: return 18;
1341
- case 50: return 56;
1342
- case 51: return 63;
1343
- case 52: return 57;
1344
- }
1345
- }, "anonymous"),
1346
- rules: [
1347
- /^(?:%%(?!\{)[^\n]*)/i,
1348
- /^(?:[^\}]%%[^\n]*)/i,
1349
- /^(?:[\n\r]+)/i,
1350
- /^(?:%%[^\n]*)/i,
1351
- /^(?:title\b)/i,
1352
- /^(?:(?!\n||)*[^\n]*)/i,
1353
- /^(?:accTitle\s*:\s*)/i,
1354
- /^(?:(?!\n||)*[^\n]*)/i,
1355
- /^(?:accDescr\s*:\s*)/i,
1356
- /^(?:(?!\n||)*[^\n]*)/i,
1357
- /^(?:accDescr\s*\{\s*)/i,
1358
- /^(?:[\}])/i,
1359
- /^(?:[^\}]*)/i,
1360
- /^(?: *x-axis *)/i,
1361
- /^(?: *y-axis *)/i,
1362
- /^(?: *--+> *)/i,
1363
- /^(?: *quadrant-1 *)/i,
1364
- /^(?: *quadrant-2 *)/i,
1365
- /^(?: *quadrant-3 *)/i,
1366
- /^(?: *quadrant-4 *)/i,
1367
- /^(?:classDef\b)/i,
1368
- /^(?:["][`])/i,
1369
- /^(?:[^`"]+)/i,
1370
- /^(?:[`]["])/i,
1371
- /^(?:["])/i,
1372
- /^(?:["])/i,
1373
- /^(?:[^"]*)/i,
1374
- /^(?::::)/i,
1375
- /^(?:^\w+)/i,
1376
- /^(?:\s*:\s*\[\s*)/i,
1377
- /^(?:(1)|(0(.\d+)?))/i,
1378
- /^(?:\s*\] *)/i,
1379
- /^(?:\s*,\s*)/i,
1380
- /^(?:(1)|(0(.\d+)?))/i,
1381
- /^(?: *quadrantChart *)/i,
1382
- /^(?:[A-Za-z]+)/i,
1383
- /^(?:[^\x00-\x7F]+)/i,
1384
- /^(?::)/i,
1385
- /^(?:\+)/i,
1386
- /^(?:,)/i,
1387
- /^(?:=)/i,
1388
- /^(?:=)/i,
1389
- /^(?:\*)/i,
1390
- /^(?:#)/i,
1391
- /^(?:[\_])/i,
1392
- /^(?:\.)/i,
1393
- /^(?:&)/i,
1394
- /^(?:-)/i,
1395
- /^(?:[0-9]+)/i,
1396
- /^(?:\s)/i,
1397
- /^(?:;)/i,
1398
- /^(?:[!"#$%&'*+,-.`?\\_/])/i,
1399
- /^(?:$)/i
1400
- ],
1401
- conditions: {
1402
- class_name: {
1403
- rules: [28],
1404
- inclusive: !1
1405
- },
1406
- point_y: {
1407
- rules: [33],
1408
- inclusive: !1
1409
- },
1410
- point_x: {
1411
- rules: [32],
1412
- inclusive: !1
1413
- },
1414
- point_start: {
1415
- rules: [30, 31],
1416
- inclusive: !1
1417
- },
1418
- acc_descr_multiline: {
1419
- rules: [11, 12],
1420
- inclusive: !1
1421
- },
1422
- acc_descr: {
1423
- rules: [9],
1424
- inclusive: !1
1425
- },
1426
- acc_title: {
1427
- rules: [7],
1428
- inclusive: !1
1429
- },
1430
- title: {
1431
- rules: [5],
1432
- inclusive: !1
1433
- },
1434
- md_string: {
1435
- rules: [22, 23],
1436
- inclusive: !1
1437
- },
1438
- string: {
1439
- rules: [25, 26],
1440
- inclusive: !1
1441
- },
1442
- INITIAL: {
1443
- rules: [
1444
- 0,
1445
- 1,
1446
- 2,
1447
- 3,
1448
- 4,
1449
- 6,
1450
- 8,
1451
- 10,
1452
- 13,
1453
- 14,
1454
- 15,
1455
- 16,
1456
- 17,
1457
- 18,
1458
- 19,
1459
- 20,
1460
- 21,
1461
- 24,
1462
- 27,
1463
- 29,
1464
- 34,
1465
- 35,
1466
- 36,
1467
- 37,
1468
- 38,
1469
- 39,
1470
- 40,
1471
- 41,
1472
- 42,
1473
- 43,
1474
- 44,
1475
- 45,
1476
- 46,
1477
- 47,
1478
- 48,
1479
- 49,
1480
- 50,
1481
- 51,
1482
- 52
1483
- ],
1484
- inclusive: !0
1485
- }
1486
- }
1487
- };
1488
- })();
1489
- function me() {
1490
- this.yy = {};
1491
- }
1492
- return n(me, "Parser"), me.prototype = pe, pe.Parser = me, new me();
1493
- })();
1494
- b.parser = b;
1495
- var x = b, S = i(), C = (v = class {
1496
- constructor() {
1497
- this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
1498
- }
1499
- getDefaultData() {
1500
- return {
1501
- titleText: "",
1502
- quadrant1Text: "",
1503
- quadrant2Text: "",
1504
- quadrant3Text: "",
1505
- quadrant4Text: "",
1506
- xAxisLeftText: "",
1507
- xAxisRightText: "",
1508
- yAxisBottomText: "",
1509
- yAxisTopText: "",
1510
- points: []
1511
- };
1512
- }
1513
- getDefaultConfig() {
1514
- var e, t, n, r, i, a, o, s, c, l, d, f, p, m, h, g, _, v;
1515
- return {
1516
- showXAxis: !0,
1517
- showYAxis: !0,
1518
- showTitle: !0,
1519
- chartHeight: ((e = u.quadrantChart) == null ? void 0 : e.chartWidth) || 500,
1520
- chartWidth: ((t = u.quadrantChart) == null ? void 0 : t.chartHeight) || 500,
1521
- titlePadding: ((n = u.quadrantChart) == null ? void 0 : n.titlePadding) || 10,
1522
- titleFontSize: ((r = u.quadrantChart) == null ? void 0 : r.titleFontSize) || 20,
1523
- quadrantPadding: ((i = u.quadrantChart) == null ? void 0 : i.quadrantPadding) || 5,
1524
- xAxisLabelPadding: ((a = u.quadrantChart) == null ? void 0 : a.xAxisLabelPadding) || 5,
1525
- yAxisLabelPadding: ((o = u.quadrantChart) == null ? void 0 : o.yAxisLabelPadding) || 5,
1526
- xAxisLabelFontSize: ((s = u.quadrantChart) == null ? void 0 : s.xAxisLabelFontSize) || 16,
1527
- yAxisLabelFontSize: ((c = u.quadrantChart) == null ? void 0 : c.yAxisLabelFontSize) || 16,
1528
- quadrantLabelFontSize: ((l = u.quadrantChart) == null ? void 0 : l.quadrantLabelFontSize) || 16,
1529
- quadrantTextTopPadding: ((d = u.quadrantChart) == null ? void 0 : d.quadrantTextTopPadding) || 5,
1530
- pointTextPadding: ((f = u.quadrantChart) == null ? void 0 : f.pointTextPadding) || 5,
1531
- pointLabelFontSize: ((p = u.quadrantChart) == null ? void 0 : p.pointLabelFontSize) || 12,
1532
- pointRadius: ((m = u.quadrantChart) == null ? void 0 : m.pointRadius) || 5,
1533
- xAxisPosition: ((h = u.quadrantChart) == null ? void 0 : h.xAxisPosition) || "top",
1534
- yAxisPosition: ((g = u.quadrantChart) == null ? void 0 : g.yAxisPosition) || "left",
1535
- quadrantInternalBorderStrokeWidth: ((_ = u.quadrantChart) == null ? void 0 : _.quadrantInternalBorderStrokeWidth) || 1,
1536
- quadrantExternalBorderStrokeWidth: ((v = u.quadrantChart) == null ? void 0 : v.quadrantExternalBorderStrokeWidth) || 2
1537
- };
1538
- }
1539
- getDefaultThemeConfig() {
1540
- return {
1541
- quadrant1Fill: S.quadrant1Fill,
1542
- quadrant2Fill: S.quadrant2Fill,
1543
- quadrant3Fill: S.quadrant3Fill,
1544
- quadrant4Fill: S.quadrant4Fill,
1545
- quadrant1TextFill: S.quadrant1TextFill,
1546
- quadrant2TextFill: S.quadrant2TextFill,
1547
- quadrant3TextFill: S.quadrant3TextFill,
1548
- quadrant4TextFill: S.quadrant4TextFill,
1549
- quadrantPointFill: S.quadrantPointFill,
1550
- quadrantPointTextFill: S.quadrantPointTextFill,
1551
- quadrantXAxisTextFill: S.quadrantXAxisTextFill,
1552
- quadrantYAxisTextFill: S.quadrantYAxisTextFill,
1553
- quadrantTitleFill: S.quadrantTitleFill,
1554
- quadrantInternalBorderStrokeFill: S.quadrantInternalBorderStrokeFill,
1555
- quadrantExternalBorderStrokeFill: S.quadrantExternalBorderStrokeFill
1556
- };
1557
- }
1558
- clear() {
1559
- this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), r.info("clear called");
1560
- }
1561
- setData(e) {
1562
- this.data = t(t({}, this.data), e);
1563
- }
1564
- addPoints(e) {
1565
- this.data.points = [...e, ...this.data.points];
1566
- }
1567
- addClass(e, t) {
1568
- this.classes.set(e, t);
1569
- }
1570
- setConfig(e) {
1571
- r.trace("setConfig called with: ", e), this.config = t(t({}, this.config), e);
1572
- }
1573
- setThemeConfig(e) {
1574
- r.trace("setThemeConfig called with: ", e), this.themeConfig = t(t({}, this.themeConfig), e);
1575
- }
1576
- calculateSpace(e, t, n, r) {
1577
- let i = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, a = {
1578
- top: e === "top" && t ? i : 0,
1579
- bottom: e === "bottom" && t ? i : 0
1580
- }, o = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, s = {
1581
- left: this.config.yAxisPosition === "left" && n ? o : 0,
1582
- right: this.config.yAxisPosition === "right" && n ? o : 0
1583
- }, c = this.config.titleFontSize + this.config.titlePadding * 2, l = { top: r ? c : 0 }, u = this.config.quadrantPadding + s.left, d = this.config.quadrantPadding + a.top + l.top, f = this.config.chartWidth - this.config.quadrantPadding * 2 - s.left - s.right, p = this.config.chartHeight - this.config.quadrantPadding * 2 - a.top - a.bottom - l.top;
1584
- return {
1585
- xAxisSpace: a,
1586
- yAxisSpace: s,
1587
- titleSpace: l,
1588
- quadrantSpace: {
1589
- quadrantLeft: u,
1590
- quadrantTop: d,
1591
- quadrantWidth: f,
1592
- quadrantHalfWidth: f / 2,
1593
- quadrantHeight: p,
1594
- quadrantHalfHeight: p / 2
1595
- }
1596
- };
1597
- }
1598
- getAxisLabels(e, t, n, r) {
1599
- let { quadrantSpace: i, titleSpace: a } = r, { quadrantHalfHeight: o, quadrantHeight: s, quadrantLeft: c, quadrantHalfWidth: l, quadrantTop: u, quadrantWidth: d } = i, f = !!this.data.xAxisRightText, p = !!this.data.yAxisTopText, m = [];
1600
- return this.data.xAxisLeftText && t && m.push({
1601
- text: this.data.xAxisLeftText,
1602
- fill: this.themeConfig.quadrantXAxisTextFill,
1603
- x: c + (f ? l / 2 : 0),
1604
- y: e === "top" ? this.config.xAxisLabelPadding + a.top : this.config.xAxisLabelPadding + u + s + this.config.quadrantPadding,
1605
- fontSize: this.config.xAxisLabelFontSize,
1606
- verticalPos: f ? "center" : "left",
1607
- horizontalPos: "top",
1608
- rotation: 0
1609
- }), this.data.xAxisRightText && t && m.push({
1610
- text: this.data.xAxisRightText,
1611
- fill: this.themeConfig.quadrantXAxisTextFill,
1612
- x: c + l + (f ? l / 2 : 0),
1613
- y: e === "top" ? this.config.xAxisLabelPadding + a.top : this.config.xAxisLabelPadding + u + s + this.config.quadrantPadding,
1614
- fontSize: this.config.xAxisLabelFontSize,
1615
- verticalPos: f ? "center" : "left",
1616
- horizontalPos: "top",
1617
- rotation: 0
1618
- }), this.data.yAxisBottomText && n && m.push({
1619
- text: this.data.yAxisBottomText,
1620
- fill: this.themeConfig.quadrantYAxisTextFill,
1621
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + c + d + this.config.quadrantPadding,
1622
- y: u + s - (p ? o / 2 : 0),
1623
- fontSize: this.config.yAxisLabelFontSize,
1624
- verticalPos: p ? "center" : "left",
1625
- horizontalPos: "top",
1626
- rotation: -90
1627
- }), this.data.yAxisTopText && n && m.push({
1628
- text: this.data.yAxisTopText,
1629
- fill: this.themeConfig.quadrantYAxisTextFill,
1630
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + c + d + this.config.quadrantPadding,
1631
- y: u + o - (p ? o / 2 : 0),
1632
- fontSize: this.config.yAxisLabelFontSize,
1633
- verticalPos: p ? "center" : "left",
1634
- horizontalPos: "top",
1635
- rotation: -90
1636
- }), m;
1637
- }
1638
- getQuadrants(e) {
1639
- let { quadrantSpace: t } = e, { quadrantHalfHeight: n, quadrantLeft: r, quadrantHalfWidth: i, quadrantTop: a } = t, o = [
1640
- {
1641
- text: {
1642
- text: this.data.quadrant1Text,
1643
- fill: this.themeConfig.quadrant1TextFill,
1644
- x: 0,
1645
- y: 0,
1646
- fontSize: this.config.quadrantLabelFontSize,
1647
- verticalPos: "center",
1648
- horizontalPos: "middle",
1649
- rotation: 0
1650
- },
1651
- x: r + i,
1652
- y: a,
1653
- width: i,
1654
- height: n,
1655
- fill: this.themeConfig.quadrant1Fill
1656
- },
1657
- {
1658
- text: {
1659
- text: this.data.quadrant2Text,
1660
- fill: this.themeConfig.quadrant2TextFill,
1661
- x: 0,
1662
- y: 0,
1663
- fontSize: this.config.quadrantLabelFontSize,
1664
- verticalPos: "center",
1665
- horizontalPos: "middle",
1666
- rotation: 0
1667
- },
1668
- x: r,
1669
- y: a,
1670
- width: i,
1671
- height: n,
1672
- fill: this.themeConfig.quadrant2Fill
1673
- },
1674
- {
1675
- text: {
1676
- text: this.data.quadrant3Text,
1677
- fill: this.themeConfig.quadrant3TextFill,
1678
- x: 0,
1679
- y: 0,
1680
- fontSize: this.config.quadrantLabelFontSize,
1681
- verticalPos: "center",
1682
- horizontalPos: "middle",
1683
- rotation: 0
1684
- },
1685
- x: r,
1686
- y: a + n,
1687
- width: i,
1688
- height: n,
1689
- fill: this.themeConfig.quadrant3Fill
1690
- },
1691
- {
1692
- text: {
1693
- text: this.data.quadrant4Text,
1694
- fill: this.themeConfig.quadrant4TextFill,
1695
- x: 0,
1696
- y: 0,
1697
- fontSize: this.config.quadrantLabelFontSize,
1698
- verticalPos: "center",
1699
- horizontalPos: "middle",
1700
- rotation: 0
1701
- },
1702
- x: r + i,
1703
- y: a + n,
1704
- width: i,
1705
- height: n,
1706
- fill: this.themeConfig.quadrant4Fill
1707
- }
1708
- ];
1709
- for (let e of o) e.text.x = e.x + e.width / 2, this.data.points.length === 0 ? (e.text.y = e.y + e.height / 2, e.text.horizontalPos = "middle") : (e.text.y = e.y + this.config.quadrantTextTopPadding, e.text.horizontalPos = "top");
1710
- return o;
1711
- }
1712
- getQuadrantPoints(e) {
1713
- let { quadrantSpace: n } = e, { quadrantHeight: r, quadrantLeft: i, quadrantTop: a, quadrantWidth: o } = n, s = g().domain([0, 1]).range([i, o + i]), c = g().domain([0, 1]).range([r + a, a]);
1714
- return this.data.points.map((e) => {
1715
- var n, r, i, a;
1716
- let o = this.classes.get(e.className);
1717
- return o && (e = t(t({}, o), e)), {
1718
- x: s(e.x),
1719
- y: c(e.y),
1720
- fill: (n = e.color) == null ? this.themeConfig.quadrantPointFill : n,
1721
- radius: (r = e.radius) == null ? this.config.pointRadius : r,
1722
- text: {
1723
- text: e.text,
1724
- fill: this.themeConfig.quadrantPointTextFill,
1725
- x: s(e.x),
1726
- y: c(e.y) + this.config.pointTextPadding,
1727
- verticalPos: "center",
1728
- horizontalPos: "top",
1729
- fontSize: this.config.pointLabelFontSize,
1730
- rotation: 0
1731
- },
1732
- strokeColor: (i = e.strokeColor) == null ? this.themeConfig.quadrantPointFill : i,
1733
- strokeWidth: (a = e.strokeWidth) == null ? "0px" : a
1734
- };
1735
- });
1736
- }
1737
- getBorders(e) {
1738
- let t = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: n } = e, { quadrantHalfHeight: r, quadrantHeight: i, quadrantLeft: a, quadrantHalfWidth: o, quadrantTop: s, quadrantWidth: c } = n;
1739
- return [
1740
- {
1741
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1742
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1743
- x1: a - t,
1744
- y1: s,
1745
- x2: a + c + t,
1746
- y2: s
1747
- },
1748
- {
1749
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1750
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1751
- x1: a + c,
1752
- y1: s + t,
1753
- x2: a + c,
1754
- y2: s + i - t
1755
- },
1756
- {
1757
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1758
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1759
- x1: a - t,
1760
- y1: s + i,
1761
- x2: a + c + t,
1762
- y2: s + i
1763
- },
1764
- {
1765
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1766
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1767
- x1: a,
1768
- y1: s + t,
1769
- x2: a,
1770
- y2: s + i - t
1771
- },
1772
- {
1773
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1774
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1775
- x1: a + o,
1776
- y1: s + t,
1777
- x2: a + o,
1778
- y2: s + i - t
1779
- },
1780
- {
1781
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1782
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1783
- x1: a + t,
1784
- y1: s + r,
1785
- x2: a + c - t,
1786
- y2: s + r
1787
- }
1788
- ];
1789
- }
1790
- getTitle(e) {
1791
- if (e) return {
1792
- text: this.data.titleText,
1793
- fill: this.themeConfig.quadrantTitleFill,
1794
- fontSize: this.config.titleFontSize,
1795
- horizontalPos: "top",
1796
- verticalPos: "center",
1797
- rotation: 0,
1798
- y: this.config.titlePadding,
1799
- x: this.config.chartWidth / 2
1800
- };
1801
- }
1802
- build() {
1803
- let e = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), t = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), n = this.config.showTitle && !!this.data.titleText, r = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, i = this.calculateSpace(r, e, t, n);
1804
- return {
1805
- points: this.getQuadrantPoints(i),
1806
- quadrants: this.getQuadrants(i),
1807
- axisLabels: this.getAxisLabels(r, e, t, i),
1808
- borderLines: this.getBorders(i),
1809
- title: this.getTitle(n)
1810
- };
1811
- }
1812
- }, n(v, "QuadrantBuilder"), v), w = (y = class extends Error {
1813
- constructor(e, t, n) {
1814
- super(`value for ${e} ${t} is invalid, please use a valid ${n}`), this.name = "InvalidStyleError";
1815
- }
1816
- }, n(y, "InvalidStyleError"), y);
1817
- function T(e) {
1818
- return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e);
1819
- }
1820
- n(T, "validateHexCode");
1821
- function E(e) {
1822
- return !/^\d+$/.test(e);
1823
- }
1824
- n(E, "validateNumber");
1825
- function D(e) {
1826
- return !/^\d+px$/.test(e);
1827
- }
1828
- n(D, "validateSizeInPixels");
1829
- var O = p();
1830
- function k(e) {
1831
- return h(e.trim(), O);
1832
- }
1833
- n(k, "textSanitizer");
1834
- var A = new C();
1835
- function j(e) {
1836
- A.setData({ quadrant1Text: k(e.text) });
1837
- }
1838
- n(j, "setQuadrant1Text");
1839
- function M(e) {
1840
- A.setData({ quadrant2Text: k(e.text) });
1841
- }
1842
- n(M, "setQuadrant2Text");
1843
- function N(e) {
1844
- A.setData({ quadrant3Text: k(e.text) });
1845
- }
1846
- n(N, "setQuadrant3Text");
1847
- function P(e) {
1848
- A.setData({ quadrant4Text: k(e.text) });
1849
- }
1850
- n(P, "setQuadrant4Text");
1851
- function F(e) {
1852
- A.setData({ xAxisLeftText: k(e.text) });
1853
- }
1854
- n(F, "setXAxisLeftText");
1855
- function I(e) {
1856
- A.setData({ xAxisRightText: k(e.text) });
1857
- }
1858
- n(I, "setXAxisRightText");
1859
- function L(e) {
1860
- A.setData({ yAxisTopText: k(e.text) });
1861
- }
1862
- n(L, "setYAxisTopText");
1863
- function R(e) {
1864
- A.setData({ yAxisBottomText: k(e.text) });
1865
- }
1866
- n(R, "setYAxisBottomText");
1867
- function z(e) {
1868
- let t = {};
1869
- for (let n of e) {
1870
- let [e, r] = n.trim().split(/\s*:\s*/);
1871
- if (e === "radius") {
1872
- if (E(r)) throw new w(e, r, "number");
1873
- t.radius = parseInt(r);
1874
- } else if (e === "color") {
1875
- if (T(r)) throw new w(e, r, "hex code");
1876
- t.color = r;
1877
- } else if (e === "stroke-color") {
1878
- if (T(r)) throw new w(e, r, "hex code");
1879
- t.strokeColor = r;
1880
- } else if (e === "stroke-width") {
1881
- if (D(r)) throw new w(e, r, "number of pixels (eg. 10px)");
1882
- t.strokeWidth = r;
1883
- } else throw Error(`style named ${e} is not supported.`);
1884
- }
1885
- return t;
1886
- }
1887
- n(z, "parseStyles");
1888
- function B(e, n, r, i, a) {
1889
- let o = z(a);
1890
- A.addPoints([t({
1891
- x: r,
1892
- y: i,
1893
- text: k(e.text),
1894
- className: n
1895
- }, o)]);
1896
- }
1897
- n(B, "addPoint");
1898
- function ee(e, t) {
1899
- A.addClass(e, z(t));
1900
- }
1901
- n(ee, "addClass");
1902
- function te(e) {
1903
- A.setConfig({ chartWidth: e });
1904
- }
1905
- n(te, "setWidth");
1906
- function ne(e) {
1907
- A.setConfig({ chartHeight: e });
1908
- }
1909
- n(ne, "setHeight");
1910
- function V() {
1911
- let { themeVariables: e, quadrantChart: t } = p();
1912
- return t && A.setConfig(t), A.setThemeConfig({
1913
- quadrant1Fill: e.quadrant1Fill,
1914
- quadrant2Fill: e.quadrant2Fill,
1915
- quadrant3Fill: e.quadrant3Fill,
1916
- quadrant4Fill: e.quadrant4Fill,
1917
- quadrant1TextFill: e.quadrant1TextFill,
1918
- quadrant2TextFill: e.quadrant2TextFill,
1919
- quadrant3TextFill: e.quadrant3TextFill,
1920
- quadrant4TextFill: e.quadrant4TextFill,
1921
- quadrantPointFill: e.quadrantPointFill,
1922
- quadrantPointTextFill: e.quadrantPointTextFill,
1923
- quadrantXAxisTextFill: e.quadrantXAxisTextFill,
1924
- quadrantYAxisTextFill: e.quadrantYAxisTextFill,
1925
- quadrantExternalBorderStrokeFill: e.quadrantExternalBorderStrokeFill,
1926
- quadrantInternalBorderStrokeFill: e.quadrantInternalBorderStrokeFill,
1927
- quadrantTitleFill: e.quadrantTitleFill
1928
- }), A.setData({ titleText: f() }), A.build();
1929
- }
1930
- n(V, "getQuadrantData");
1931
- var re = {
1932
- parser: x,
1933
- db: {
1934
- setWidth: te,
1935
- setHeight: ne,
1936
- setQuadrant1Text: j,
1937
- setQuadrant2Text: M,
1938
- setQuadrant3Text: N,
1939
- setQuadrant4Text: P,
1940
- setXAxisLeftText: F,
1941
- setXAxisRightText: I,
1942
- setYAxisTopText: L,
1943
- setYAxisBottomText: R,
1944
- parseStyles: z,
1945
- addPoint: B,
1946
- addClass: ee,
1947
- getQuadrantData: V,
1948
- clear: /* @__PURE__ */ n(function() {
1949
- A.clear(), c();
1950
- }, "clear"),
1951
- setAccTitle: s,
1952
- getAccTitle: m,
1953
- setDiagramTitle: o,
1954
- getDiagramTitle: f,
1955
- getAccDescription: d,
1956
- setAccDescription: a
1957
- },
1958
- renderer: { draw: /* @__PURE__ */ n((e, t, i, a) => {
1959
- var o, s, c, u, d, f;
1960
- function m(e) {
1961
- return e === "top" ? "hanging" : "middle";
1962
- }
1963
- n(m, "getDominantBaseLine");
1964
- function h(e) {
1965
- return e === "left" ? "start" : "middle";
1966
- }
1967
- n(h, "getTextAnchor");
1968
- function g(e) {
1969
- return `translate(${e.x}, ${e.y}) rotate(${e.rotation || 0})`;
1970
- }
1971
- n(g, "getTransformation");
1972
- let v = p();
1973
- r.debug("Rendering quadrant chart\n" + e);
1974
- let y = v.securityLevel, b;
1975
- y === "sandbox" && (b = _("#i" + t));
1976
- let x = _(y === "sandbox" ? b.nodes()[0].contentDocument.body : "body").select(`[id="${t}"]`), S = x.append("g").attr("class", "main"), C = (o = (s = v.quadrantChart) == null ? void 0 : s.chartWidth) == null ? 500 : o, w = (c = (u = v.quadrantChart) == null ? void 0 : u.chartHeight) == null ? 500 : c;
1977
- l(x, w, C, (d = (f = v.quadrantChart) == null ? void 0 : f.useMaxWidth) == null ? !0 : d), x.attr("viewBox", "0 0 " + C + " " + w), a.db.setHeight(w), a.db.setWidth(C);
1978
- let T = a.db.getQuadrantData(), E = S.append("g").attr("class", "quadrants"), D = S.append("g").attr("class", "border"), O = S.append("g").attr("class", "data-points"), k = S.append("g").attr("class", "labels"), A = S.append("g").attr("class", "title");
1979
- T.title && A.append("text").attr("x", 0).attr("y", 0).attr("fill", T.title.fill).attr("font-size", T.title.fontSize).attr("dominant-baseline", m(T.title.horizontalPos)).attr("text-anchor", h(T.title.verticalPos)).attr("transform", g(T.title)).text(T.title.text), T.borderLines && D.selectAll("line").data(T.borderLines).enter().append("line").attr("x1", (e) => e.x1).attr("y1", (e) => e.y1).attr("x2", (e) => e.x2).attr("y2", (e) => e.y2).style("stroke", (e) => e.strokeFill).style("stroke-width", (e) => e.strokeWidth);
1980
- let j = E.selectAll("g.quadrant").data(T.quadrants).enter().append("g").attr("class", "quadrant");
1981
- j.append("rect").attr("x", (e) => e.x).attr("y", (e) => e.y).attr("width", (e) => e.width).attr("height", (e) => e.height).attr("fill", (e) => e.fill), j.append("text").attr("x", 0).attr("y", 0).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => m(e.text.horizontalPos)).attr("text-anchor", (e) => h(e.text.verticalPos)).attr("transform", (e) => g(e.text)).text((e) => e.text.text), k.selectAll("g.label").data(T.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((e) => e.text).attr("fill", (e) => e.fill).attr("font-size", (e) => e.fontSize).attr("dominant-baseline", (e) => m(e.horizontalPos)).attr("text-anchor", (e) => h(e.verticalPos)).attr("transform", (e) => g(e));
1982
- let M = O.selectAll("g.data-point").data(T.points).enter().append("g").attr("class", "data-point");
1983
- M.append("circle").attr("cx", (e) => e.x).attr("cy", (e) => e.y).attr("r", (e) => e.radius).attr("fill", (e) => e.fill).attr("stroke", (e) => e.strokeColor).attr("stroke-width", (e) => e.strokeWidth), M.append("text").attr("x", 0).attr("y", 0).text((e) => e.text.text).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => m(e.text.horizontalPos)).attr("text-anchor", (e) => h(e.text.verticalPos)).attr("transform", (e) => g(e.text));
1984
- }, "draw") },
1985
- styles: /* @__PURE__ */ n(() => "", "styles")
1986
- };
1987
- //#endregion
1988
- export { re as diagram };