file-viewer3 1.0.8 → 1.0.26
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.
- package/LICENSE +160 -0
- package/README.en.md +390 -0
- package/README.md +306 -89
- package/dist/components/3MFLoader.js +527 -0
- package/dist/components/AMFLoader.js +188 -0
- package/dist/components/ArchiveViewer.js +526 -0
- package/dist/components/AudioViewer.js +66 -0
- package/dist/components/CadViewer.js +9040 -0
- package/dist/components/CodeViewer.js +151 -0
- package/dist/components/ColladaLoader.js +2282 -0
- package/dist/components/DrawingViewer.js +295 -0
- package/dist/components/EdaViewer.js +630 -0
- package/dist/components/EmailViewer.js +276 -0
- package/dist/components/EpubViewer.js +172 -0
- package/dist/components/FBXLoader.js +1574 -0
- package/dist/components/GLTFLoader.js +1383 -0
- package/dist/components/ImageViewer.js +1516 -1895
- package/dist/components/KMZLoader.js +45 -0
- package/dist/components/MarkdownViewer.js +1456 -1557
- package/dist/components/ModelViewer.js +797 -0
- package/dist/components/OBJLoader.js +287 -0
- package/dist/components/OfdViewer.js +133 -0
- package/dist/components/PCDLoader.js +141 -0
- package/dist/components/PLYLoader.js +305 -0
- package/dist/components/PdfView.js +27662 -21655
- package/dist/components/PptxRender.js +11170 -21118
- package/dist/components/STLLoader.js +83 -0
- package/dist/components/TDSLoader.js +228 -0
- package/dist/components/TypstViewer.js +1697 -0
- package/dist/components/USDLoader.js +2526 -0
- package/dist/components/UmdViewer.js +1873 -0
- package/dist/components/VRMLLoader.js +6422 -0
- package/dist/components/VTKLoader.js +337 -0
- package/dist/components/XYZLoader.js +30 -0
- package/dist/components/XlsxTable.js +7871 -69873
- package/dist/components/__vite-browser-external.js +7 -0
- package/dist/components/_plugin-vue_export-helper.js +8 -0
- package/dist/components/ar-SA-G6X2FPQ2.js +523 -0
- package/dist/components/arc.js +79 -0
- package/dist/components/architecture-7EHR7CIX.js +3 -0
- package/dist/components/architectureDiagram-3BPJPVTR.js +4096 -0
- package/dist/components/archive.js +24 -0
- package/dist/components/asyncToGenerator.js +29 -0
- package/dist/components/audio.js +19 -0
- package/dist/components/az-AZ-76LH7QW2.js +523 -0
- package/dist/components/bash.js +169 -0
- package/dist/components/bg-BG-XCXSNQG7.js +523 -0
- package/dist/components/blockDiagram-GPEHLZMM.js +3357 -0
- package/dist/components/bn-BD-2XOGV67Q.js +523 -0
- package/dist/components/c4Diagram-AAUBKEIU.js +2957 -0
- package/dist/components/ca-ES-6MX7JW3Y.js +523 -0
- package/dist/components/cad.js +23 -0
- package/dist/components/cfb.js +1174 -0
- package/dist/components/channel.js +5 -0
- package/dist/components/chunk-2J33WTMH.js +26 -0
- package/dist/components/chunk-3OPIFGDE.js +4167 -0
- package/dist/components/chunk-4BX2VUAB.js +19 -0
- package/dist/components/chunk-55IACEB6.js +9 -0
- package/dist/components/chunk-5ZQYHXKU.js +669 -0
- package/dist/components/chunk-6U3AYISY.js +624 -0
- package/dist/components/chunk-727SXJPM.js +3356 -0
- package/dist/components/chunk-AGHRB4JF.js +324 -0
- package/dist/components/chunk-AQP2D5EJ.js +2055 -0
- package/dist/components/chunk-BSJP7CBP.js +83 -0
- package/dist/components/chunk-CSCIHK7Q.js +3500 -0
- package/dist/components/chunk-EIO257PC.js +1836 -0
- package/dist/components/chunk-FMBD7UC4.js +5 -0
- package/dist/components/chunk-K2UTITRG.js +17627 -0
- package/dist/components/chunk-KSCS5N6A.js +572 -0
- package/dist/components/chunk-L5ZTLDWV.js +40 -0
- package/dist/components/chunk-LZXEDZCA.js +60 -0
- package/dist/components/chunk-ND2GUHAM.js +61 -0
- package/dist/components/chunk-NNHCCRGN.js +20425 -0
- package/dist/components/chunk-NZK2D7GU.js +68 -0
- package/dist/components/chunk-O5CBEL6O.js +1894 -0
- package/dist/components/chunk-QZHKN3VN.js +12 -0
- package/dist/components/chunk-SRAX5OIU.js +22 -0
- package/dist/components/chunk-WU5MYG2G.js +14 -0
- package/dist/components/chunk-XPW4576I.js +1146 -0
- package/dist/components/chunk-Z3N5DIM6.js +59 -0
- package/dist/components/chunk-ZUYEQ4TG.js +22 -0
- package/dist/components/chunk.js +23 -0
- package/dist/components/classDiagram-4FO5ZUOK.js +29 -0
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +29 -0
- package/dist/components/compiler.js +2 -0
- package/dist/components/core.js +845 -0
- package/dist/components/cose-bilkent-S5V4N54A.js +2268 -0
- package/dist/components/cpp.js +225 -0
- package/dist/components/cs-CZ-2BRQDIVT.js +523 -0
- package/dist/components/csharp.js +260 -0
- package/dist/components/css.js +140 -0
- package/dist/components/cytoscape.esm.js +18114 -0
- package/dist/components/da-DK-5WZEPLOC.js +523 -0
- package/dist/components/dagre-BM42HDAG.js +325 -0
- package/dist/components/dagre.js +1936 -0
- package/dist/components/de-DE-XR44H4JA.js +523 -0
- package/dist/components/defaultLocale.js +201 -0
- package/dist/components/defineProperty.js +50 -0
- package/dist/components/diagram-2AECGRRQ.js +229 -0
- package/dist/components/diagram-5GNKFQAL.js +108 -0
- package/dist/components/diagram-KO2AKTUF.js +443 -0
- package/dist/components/diagram-LMA3HP47.js +139 -0
- package/dist/components/diagram-OG6HWLK6.js +541 -0
- package/dist/components/diff.js +39 -0
- package/dist/components/directory-open-01563666.js +26 -0
- package/dist/components/directory-open-4ed118d0.js +83 -0
- package/dist/components/dist.js +50 -0
- package/dist/components/dist2.js +3291 -0
- package/dist/components/dist3.js +1593 -0
- package/dist/components/documentSearch.js +378 -0
- package/dist/components/docx-preview.js +3113 -0
- package/dist/components/drawing.js +19 -0
- package/dist/components/ebook.js +16 -0
- package/dist/components/eda.js +20 -0
- package/dist/components/el-GR-BZB4AONW.js +523 -0
- package/dist/components/email.js +21 -0
- package/dist/components/en-B4ZKOASM.js +3 -0
- package/dist/components/erDiagram-TEJ5UH35.js +1719 -0
- package/dist/components/es-ES-U4NZUMDT.js +523 -0
- package/dist/components/eu-ES-A7QVB2H4.js +523 -0
- package/dist/components/eventmodeling-FCH6USID.js +3 -0
- package/dist/components/fa-IR-HGAKTJCU.js +523 -0
- package/dist/components/fflate.module.js +323 -0
- package/dist/components/fi-FI-Z5N7JZ37.js +523 -0
- package/dist/components/file-open-002ab408.js +38 -0
- package/dist/components/file-open-7c801643.js +24 -0
- package/dist/components/file-save-3189631c.js +40 -0
- package/dist/components/file-save-745eba88.js +36 -0
- package/dist/components/flowDiagram-I6XJVG4X.js +4181 -0
- package/dist/components/fr-FR-RHASNOE6.js +523 -0
- package/dist/components/ganttDiagram-6RSMTGT7.js +2182 -0
- package/dist/components/gitGraph-WXDBUCRP.js +3 -0
- package/dist/components/gitGraphDiagram-PVQCEYII.js +788 -0
- package/dist/components/gl-ES-HMX3MZ6V.js +523 -0
- package/dist/components/global-compiler.js +23 -0
- package/dist/components/global-renderer.js +23 -0
- package/dist/components/go.js +140 -0
- package/dist/components/graphlib.js +1267 -0
- package/dist/components/he-IL-6SHJWFNN.js +523 -0
- package/dist/components/hi-IN-IWLTKZ5I.js +523 -0
- package/dist/components/hu-HU-A5ZG7DT2.js +523 -0
- package/dist/components/id-ID-SAP4L64H.js +523 -0
- package/dist/components/image-GAAHSSAO.js +3 -0
- package/dist/components/image-blob-reduce.esm.js +1429 -0
- package/dist/components/image.js +17 -0
- package/dist/components/info-J43DQDTF.js +3 -0
- package/dist/components/infoDiagram-5YYISTIA.js +26 -0
- package/dist/components/ini.js +88 -0
- package/dist/components/init.js +15 -0
- package/dist/components/ishikawaDiagram-YF4QCWOH.js +718 -0
- package/dist/components/it-IT-JPQ66NNP.js +523 -0
- package/dist/components/ja-JP-DBVTYXUO.js +523 -0
- package/dist/components/java.js +169 -0
- package/dist/components/javascript.js +436 -0
- package/dist/components/journeyDiagram-JHISSGLW.js +885 -0
- package/dist/components/json.js +36 -0
- package/dist/components/jszip.min.js +3033 -0
- package/dist/components/kaa-6HZHGXH3.js +523 -0
- package/dist/components/kab-KAB-ZGHBKWFO.js +523 -0
- package/dist/components/kanban-definition-UN3LZRKU.js +986 -0
- package/dist/components/katex.js +21979 -0
- package/dist/components/kk-KZ-P5N5QNE5.js +523 -0
- package/dist/components/km-KH-HSX4SM5Z.js +523 -0
- package/dist/components/ko-KR-MTYHY66A.js +523 -0
- package/dist/components/ku-TR-6OUDTVRD.js +523 -0
- package/dist/components/lib.js +4877 -0
- package/dist/components/libarchive.js +360 -0
- package/dist/components/linear.js +289 -0
- package/dist/components/lt-LT-XHIRWOB4.js +523 -0
- package/dist/components/lv-LV-5QDEKY6T.js +523 -0
- package/dist/components/markdown.js +181 -0
- package/dist/components/md.js +17 -0
- package/dist/components/mermaid-parser.core.js +328 -0
- package/dist/components/mindmap-definition-RKZ34NQL.js +1016 -0
- package/dist/components/model.js +21 -0
- package/dist/components/mp4.js +12 -0
- package/dist/components/mr-IN-CRQNXWMA.js +523 -0
- package/dist/components/my-MM-5M5IBNSE.js +523 -0
- package/dist/components/nb-NO-T6EIAALU.js +523 -0
- package/dist/components/nestedRender.js +158 -0
- package/dist/components/nl-NL-IS3SIHDZ.js +523 -0
- package/dist/components/nn-NO-6E72VCQL.js +523 -0
- package/dist/components/objectSpread2.js +29 -0
- package/dist/components/objectWithoutProperties.js +28 -0
- package/dist/components/oc-FR-POXYY2M6.js +523 -0
- package/dist/components/ofd.js +5261 -0
- package/dist/components/ofd2.js +16 -0
- package/dist/components/ordinal.js +65 -0
- package/dist/components/pa-IN-N4M65BXN.js +523 -0
- package/dist/components/packet-YPE3B663.js +3 -0
- package/dist/components/pdf.js +24 -0
- package/dist/components/percentages-BXMCSKIN.js +3 -0
- package/dist/components/php.js +294 -0
- package/dist/components/pica.js +1009 -0
- package/dist/components/pie-LRSECV5Y.js +3 -0
- package/dist/components/pie.js +47 -0
- package/dist/components/pieDiagram-4H26LBE5.js +130 -0
- package/dist/components/pl-PL-T2D74RX3.js +523 -0
- package/dist/components/postal-mime.js +3146 -0
- package/dist/components/pptx.js +15 -0
- package/dist/components/printLayout.js +42 -0
- package/dist/components/prod.js +21770 -0
- package/dist/components/pt-BR-5N22H2LF.js +523 -0
- package/dist/components/pt-PT-UZXXM6DQ.js +523 -0
- package/dist/components/python.js +238 -0
- package/dist/components/quadrantDiagram-W4KKPZXB.js +1988 -0
- package/dist/components/radar-GUYGQ44K.js +3 -0
- package/dist/components/renderer.js +2 -0
- package/dist/components/requirementDiagram-4Y6WPE33.js +2230 -0
- package/dist/components/ro-RO-JPDTUUEW.js +523 -0
- package/dist/components/rough.esm.js +1355 -0
- package/dist/components/roundRect.js +90 -0
- package/dist/components/ru-RU-B4JR7IUQ.js +523 -0
- package/dist/components/rust.js +169 -0
- package/dist/components/sankeyDiagram-5OEKKPKP.js +972 -0
- package/dist/components/sequenceDiagram-3UESZ5HK.js +4255 -0
- package/dist/components/shared.js +175 -0
- package/dist/components/shared2.js +4 -0
- package/dist/components/si-LK-N5RQ5JYF.js +523 -0
- package/dist/components/sk-SK-C5VTKIMK.js +523 -0
- package/dist/components/sl-SI-NN7IZMDC.js +523 -0
- package/dist/components/sourceLoading.js +134 -0
- package/dist/components/sql.js +118 -0
- package/dist/components/src.js +2664 -0
- package/dist/components/src2.js +10722 -0
- package/dist/components/stateDiagram-AJRCARHV.js +217 -0
- package/dist/components/stateDiagram-v2-BHNVJYJU.js +27 -0
- package/dist/components/subset-shared.chunk.js +3 -0
- package/dist/components/subset-worker.chunk.js +21 -0
- package/dist/components/sv-SE-XGPEYMSR.js +523 -0
- package/dist/components/ta-IN-2NMHFXQM.js +523 -0
- package/dist/components/text.js +20 -0
- package/dist/components/th-TH-HPSO5L25.js +523 -0
- package/dist/components/three.module.js +13134 -0
- package/dist/components/time.js +910 -0
- package/dist/components/timeline-definition-PNZ67QCA.js +1084 -0
- package/dist/components/tr-TR-DEFEU3FU.js +523 -0
- package/dist/components/treeView-BLDUP644.js +3 -0
- package/dist/components/treemap-LRROVOQU.js +3 -0
- package/dist/components/typescript.js +521 -0
- package/dist/components/typst.js +25 -0
- package/dist/components/uk-UA-QMV73CPH.js +523 -0
- package/dist/components/umd.js +16 -0
- package/dist/components/use.js +422 -0
- package/dist/components/util.js +49 -0
- package/dist/components/vennDiagram-CIIHVFJN.js +1880 -0
- package/dist/components/vi-VN-M7AON7JQ.js +523 -0
- package/dist/components/viewerZoom.js +92 -0
- package/dist/components/wardley-L42UT6IY.js +3 -0
- package/dist/components/wardleyDiagram-YWT4CUSO.js +656 -0
- package/dist/components/wasm-pack-shim.js +1711 -0
- package/dist/components/wasm-pack-shim2.js +934 -0
- package/dist/components/wasm.js +97 -0
- package/dist/components/word.js +3055 -0
- package/dist/components/worker-ref.js +15 -20
- package/dist/components/xlsx.js +21 -0
- package/dist/components/xml.js +166 -0
- package/dist/components/xychartDiagram-2RQKCTM6.js +2015 -0
- package/dist/components/yaml.js +144 -0
- package/dist/components/zh-CN-LNUGB5OW.js +523 -0
- package/dist/components/zh-HK-E62DVLB3.js +523 -0
- package/dist/components/zh-TW-RAJ6MFWO.js +523 -0
- package/dist/file-viewer3.css +2 -0
- package/dist/index.mjs +3292 -5
- package/dist/src/App.vue.d.ts +3 -0
- package/dist/src/compare/CompareApp.vue.d.ts +3 -0
- package/dist/src/compare/main.d.ts +0 -0
- package/dist/src/compare/useSynchronizedScroll.d.ts +7 -0
- package/dist/src/components/HelloWorld.vue.d.ts +3 -0
- package/dist/src/components/utils.d.ts +4 -0
- package/dist/src/main.d.ts +0 -0
- package/dist/src/package/common/printCapability.d.ts +27 -0
- package/dist/src/package/common/printLayout.d.ts +16 -0
- package/dist/src/package/common/sourceLoading.d.ts +10 -0
- package/dist/src/package/common/type.d.ts +522 -8
- package/dist/src/package/common/worker-ref.d.ts +1 -1
- package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +74 -24
- package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +9 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +29 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +21 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +8 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +34 -0
- package/dist/src/package/components/FileViewer/index.d.ts +1 -1
- package/dist/src/package/components/FileViewer/util.d.ts +2 -1
- package/dist/src/package/index.d.ts +14 -4
- package/dist/src/package/use/documentLocation.d.ts +15 -0
- package/dist/src/package/use/documentSearch.d.ts +234 -0
- package/dist/src/package/use/index.d.ts +4 -0
- package/dist/src/package/use/loading.d.ts +33 -0
- package/dist/src/package/use/viewerZoom.d.ts +42 -0
- package/dist/src/package/use/worker.d.ts +2 -2
- package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +9 -0
- package/dist/src/package/vendors/archive/cache.d.ts +10 -0
- package/dist/src/package/vendors/archive/fallback.d.ts +9 -0
- package/dist/src/package/vendors/archive/index.d.ts +3 -0
- package/dist/src/package/vendors/archive/shared.d.ts +24 -0
- package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +7 -0
- package/dist/src/package/vendors/audio/index.d.ts +7 -0
- package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +9 -0
- package/dist/src/package/vendors/cad/index.d.ts +8 -0
- package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +15 -0
- package/dist/src/package/vendors/drawing/index.d.ts +7 -0
- package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +6 -0
- package/dist/src/package/vendors/ebook/index.d.ts +7 -0
- package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +8 -0
- package/dist/src/package/vendors/eda/index.d.ts +2 -0
- package/dist/src/package/vendors/eda/parser.d.ts +77 -0
- package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +10 -0
- package/dist/src/package/vendors/email/index.d.ts +2 -0
- package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +6 -13
- package/dist/src/package/vendors/image/index.d.ts +1 -1
- package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +6 -13
- package/dist/src/package/vendors/md/index.d.ts +1 -1
- package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +8 -0
- package/dist/src/package/vendors/model/index.d.ts +3 -0
- package/dist/src/package/vendors/model/shared.d.ts +1 -0
- package/dist/src/package/vendors/nestedRender.d.ts +10 -0
- package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +6 -0
- package/dist/src/package/vendors/ofd/index.d.ts +7 -0
- package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +10 -13
- package/dist/src/package/vendors/pdf/index.d.ts +2 -1
- package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
- package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +9 -81
- package/dist/src/package/vendors/pptx/index.d.ts +1 -1
- package/dist/src/package/vendors/renders.d.ts +1 -1
- package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +7 -13
- package/dist/src/package/vendors/text/index.d.ts +6 -2
- package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +15 -0
- package/dist/src/package/vendors/typst/index.d.ts +8 -0
- package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +6 -0
- package/dist/src/package/vendors/umd/index.d.ts +7 -0
- package/dist/src/package/vendors/umd/parser.d.ts +30 -0
- package/dist/src/package/vendors/word/doc.d.ts +5 -0
- package/dist/src/package/vendors/word/docx.d.ts +5 -0
- package/dist/src/package/vendors/word/docx.worker.d.ts +1 -0
- package/dist/src/package/vendors/word/index.d.ts +3 -0
- package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +80 -0
- package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +25 -0
- package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +6 -21
- package/dist/src/package/vendors/xlsx/index.d.ts +3 -2
- package/dist/src/package/vendors/xlsx/util.d.ts +0 -5
- package/dist/src/package/vendors/xlsx/worker/index.d.ts +4 -6
- package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +73 -0
- package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +1 -0
- package/dist/style.css +1 -57
- package/dist/wasm/cad/dwfv-render.wasm +0 -0
- package/dist/wasm/cad/dwg-worker.js +24 -0
- package/dist/wasm/cad/libredwg-web.js +15 -0
- package/dist/wasm/cad/libredwg-web.wasm +0 -0
- package/package.json +118 -42
- package/.vscode/extensions.json +0 -3
- package/dist/components/_commonjs-dynamic-modules.js +0 -6
- package/dist/components/_commonjsHelpers.js +0 -36
- package/dist/components/docx-preview.min.js +0 -5287
- package/dist/components/index.js +0 -1717
- package/dist/favicon.ico +0 -0
- package/dist/index.umd.js +0 -436
- package/dist/src/package/vendors/docx/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/render.d.ts +0 -6
- package/dist/src/package/vendors/xlsx/worker/xls/SheetJsModel.d.ts +0 -36
- package/dist/src/package/vendors/xlsx/worker/xlsx/ExcelJsModel.d.ts +0 -39
- package/dist/src/package/vendors/xlsx/worker/xlsx/context.d.ts +0 -7
- package/dist/src/package/vendors/xlsx/worker/xlsx/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/worker/xlsx/util.d.ts +0 -10
- package/dist/worker/pdf.worker.js +0 -66
- package/dist/worker/pptx.worker.js +0 -21
- package/dist/worker/sheet.worker.js +0 -38
- package/dist/worker/xlsx.worker.js +0 -65
- /package/dist/src/package/vendors/xlsx/worker/{xlsx → sheetjs}/color.d.ts +0 -0
- /package/dist/src/package/vendors/xlsx/worker/{xls → sheetjs}/index.d.ts +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
4
|
+
}
|
|
5
|
+
function t(e, t) {
|
|
6
|
+
if (!isFinite(e) || e === 0) return null;
|
|
7
|
+
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
|
|
8
|
+
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js
|
|
12
|
+
function n(e) {
|
|
13
|
+
return e = t(Math.abs(e)), e ? e[1] : NaN;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatGroup.js
|
|
17
|
+
function r(e, t) {
|
|
18
|
+
return function(n, r) {
|
|
19
|
+
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
|
|
20
|
+
return a.reverse().join(t);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatNumerals.js
|
|
25
|
+
function i(e) {
|
|
26
|
+
return function(t) {
|
|
27
|
+
return t.replace(/[0-9]/g, function(t) {
|
|
28
|
+
return e[+t];
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js
|
|
34
|
+
var a = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
35
|
+
function o(e) {
|
|
36
|
+
if (!(t = a.exec(e))) throw Error("invalid format: " + e);
|
|
37
|
+
var t;
|
|
38
|
+
return new s({
|
|
39
|
+
fill: t[1],
|
|
40
|
+
align: t[2],
|
|
41
|
+
sign: t[3],
|
|
42
|
+
symbol: t[4],
|
|
43
|
+
zero: t[5],
|
|
44
|
+
width: t[6],
|
|
45
|
+
comma: t[7],
|
|
46
|
+
precision: t[8] && t[8].slice(1),
|
|
47
|
+
trim: t[9],
|
|
48
|
+
type: t[10]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
o.prototype = s.prototype;
|
|
52
|
+
function s(e) {
|
|
53
|
+
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
|
|
54
|
+
}
|
|
55
|
+
s.prototype.toString = function() {
|
|
56
|
+
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTrim.js
|
|
60
|
+
function c(e) {
|
|
61
|
+
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
|
|
62
|
+
case ".":
|
|
63
|
+
r = i = n;
|
|
64
|
+
break;
|
|
65
|
+
case "0":
|
|
66
|
+
r === 0 && (r = n), i = n;
|
|
67
|
+
break;
|
|
68
|
+
default:
|
|
69
|
+
if (!+e[n]) break out;
|
|
70
|
+
r > 0 && (r = 0);
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatPrefixAuto.js
|
|
77
|
+
var l;
|
|
78
|
+
function u(e, n) {
|
|
79
|
+
var r = t(e, n);
|
|
80
|
+
if (!r) return l = void 0, e.toPrecision(n);
|
|
81
|
+
var i = r[0], a = r[1], o = a - (l = Math.max(-8, Math.min(8, Math.floor(a / 3))) * 3) + 1, s = i.length;
|
|
82
|
+
return o === s ? i : o > s ? i + Array(o - s + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + Array(1 - o).join("0") + t(e, Math.max(0, n + o - 1))[0];
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatRounded.js
|
|
86
|
+
function d(e, n) {
|
|
87
|
+
var r = t(e, n);
|
|
88
|
+
if (!r) return e + "";
|
|
89
|
+
var i = r[0], a = r[1];
|
|
90
|
+
return a < 0 ? "0." + Array(-a).join("0") + i : i.length > a + 1 ? i.slice(0, a + 1) + "." + i.slice(a + 1) : i + Array(a - i.length + 2).join("0");
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTypes.js
|
|
94
|
+
var f = {
|
|
95
|
+
"%": (e, t) => (e * 100).toFixed(t),
|
|
96
|
+
b: (e) => Math.round(e).toString(2),
|
|
97
|
+
c: (e) => e + "",
|
|
98
|
+
d: e,
|
|
99
|
+
e: (e, t) => e.toExponential(t),
|
|
100
|
+
f: (e, t) => e.toFixed(t),
|
|
101
|
+
g: (e, t) => e.toPrecision(t),
|
|
102
|
+
o: (e) => Math.round(e).toString(8),
|
|
103
|
+
p: (e, t) => d(e * 100, t),
|
|
104
|
+
r: d,
|
|
105
|
+
s: u,
|
|
106
|
+
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
107
|
+
x: (e) => Math.round(e).toString(16)
|
|
108
|
+
};
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/identity.js
|
|
111
|
+
function p(e) {
|
|
112
|
+
return e;
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/locale.js
|
|
116
|
+
var m = Array.prototype.map, h = [
|
|
117
|
+
"y",
|
|
118
|
+
"z",
|
|
119
|
+
"a",
|
|
120
|
+
"f",
|
|
121
|
+
"p",
|
|
122
|
+
"n",
|
|
123
|
+
"µ",
|
|
124
|
+
"m",
|
|
125
|
+
"",
|
|
126
|
+
"k",
|
|
127
|
+
"M",
|
|
128
|
+
"G",
|
|
129
|
+
"T",
|
|
130
|
+
"P",
|
|
131
|
+
"E",
|
|
132
|
+
"Z",
|
|
133
|
+
"Y"
|
|
134
|
+
];
|
|
135
|
+
function g(e) {
|
|
136
|
+
var t = e.grouping === void 0 || e.thousands === void 0 ? p : r(m.call(e.grouping, Number), e.thousands + ""), a = e.currency === void 0 ? "" : e.currency[0] + "", s = e.currency === void 0 ? "" : e.currency[1] + "", u = e.decimal === void 0 ? "." : e.decimal + "", d = e.numerals === void 0 ? p : i(m.call(e.numerals, String)), g = e.percent === void 0 ? "%" : e.percent + "", _ = e.minus === void 0 ? "−" : e.minus + "", v = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
137
|
+
function y(e, n) {
|
|
138
|
+
e = o(e);
|
|
139
|
+
var r = e.fill, i = e.align, p = e.sign, m = e.symbol, y = e.zero, b = e.width, x = e.comma, S = e.precision, C = e.trim, w = e.type;
|
|
140
|
+
w === "n" ? (x = !0, w = "g") : f[w] || (S === void 0 && (S = 12), C = !0, w = "g"), (y || r === "0" && i === "=") && (y = !0, r = "0", i = "=");
|
|
141
|
+
var T = (n && n.prefix !== void 0 ? n.prefix : "") + (m === "$" ? a : m === "#" && /[boxX]/.test(w) ? "0" + w.toLowerCase() : ""), E = (m === "$" ? s : /[%p]/.test(w) ? g : "") + (n && n.suffix !== void 0 ? n.suffix : ""), D = f[w], O = /[defgprs%]/.test(w);
|
|
142
|
+
S = S === void 0 ? 6 : /[gprs]/.test(w) ? Math.max(1, Math.min(21, S)) : Math.max(0, Math.min(20, S));
|
|
143
|
+
function k(e) {
|
|
144
|
+
var n = T, a = E, o, s, f;
|
|
145
|
+
if (w === "c") a = D(e) + a, e = "";
|
|
146
|
+
else {
|
|
147
|
+
e = +e;
|
|
148
|
+
var m = e < 0 || 1 / e < 0;
|
|
149
|
+
if (e = isNaN(e) ? v : D(Math.abs(e), S), C && (e = c(e)), m && +e == 0 && p !== "+" && (m = !1), n = (m ? p === "(" ? p : _ : p === "-" || p === "(" ? "" : p) + n, a = (w === "s" && !isNaN(e) && l !== void 0 ? h[8 + l / 3] : "") + a + (m && p === "(" ? ")" : ""), O) {
|
|
150
|
+
for (o = -1, s = e.length; ++o < s;) if (f = e.charCodeAt(o), 48 > f || f > 57) {
|
|
151
|
+
a = (f === 46 ? u + e.slice(o + 1) : e.slice(o)) + a, e = e.slice(0, o);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
x && !y && (e = t(e, Infinity));
|
|
157
|
+
var g = n.length + e.length + a.length, k = g < b ? Array(b - g + 1).join(r) : "";
|
|
158
|
+
switch (x && y && (e = t(k + e, k.length ? b - a.length : Infinity), k = ""), i) {
|
|
159
|
+
case "<":
|
|
160
|
+
e = n + e + a + k;
|
|
161
|
+
break;
|
|
162
|
+
case "=":
|
|
163
|
+
e = n + k + e + a;
|
|
164
|
+
break;
|
|
165
|
+
case "^":
|
|
166
|
+
e = k.slice(0, g = k.length >> 1) + n + e + a + k.slice(g);
|
|
167
|
+
break;
|
|
168
|
+
default:
|
|
169
|
+
e = k + n + e + a;
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
return d(e);
|
|
173
|
+
}
|
|
174
|
+
return k.toString = function() {
|
|
175
|
+
return e + "";
|
|
176
|
+
}, k;
|
|
177
|
+
}
|
|
178
|
+
function b(e, t) {
|
|
179
|
+
var r = Math.max(-8, Math.min(8, Math.floor(n(t) / 3))) * 3, i = Math.pow(10, -r), a = y((e = o(e), e.type = "f", e), { suffix: h[8 + r / 3] });
|
|
180
|
+
return function(e) {
|
|
181
|
+
return a(i * e);
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
return {
|
|
185
|
+
format: y,
|
|
186
|
+
formatPrefix: b
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js
|
|
191
|
+
var _, v, y;
|
|
192
|
+
b({
|
|
193
|
+
thousands: ",",
|
|
194
|
+
grouping: [3],
|
|
195
|
+
currency: ["$", ""]
|
|
196
|
+
});
|
|
197
|
+
function b(e) {
|
|
198
|
+
return _ = g(e), v = _.format, y = _.formatPrefix, _;
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
201
|
+
export { n as i, y as n, o as r, v as t };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { n as e } from "./chunk.js";
|
|
2
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
"@babel/helpers - typeof";
|
|
5
|
+
return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
6
|
+
return typeof e;
|
|
7
|
+
} : function(e) {
|
|
8
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9
|
+
}, t(e);
|
|
10
|
+
}
|
|
11
|
+
var n = e((() => {}));
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
14
|
+
function r(e, n) {
|
|
15
|
+
if (t(e) != "object" || !e) return e;
|
|
16
|
+
var r = e[Symbol.toPrimitive];
|
|
17
|
+
if (r !== void 0) {
|
|
18
|
+
var i = r.call(e, n || "default");
|
|
19
|
+
if (t(i) != "object") return i;
|
|
20
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
21
|
+
}
|
|
22
|
+
return (n === "string" ? String : Number)(e);
|
|
23
|
+
}
|
|
24
|
+
var i = e((() => {
|
|
25
|
+
n();
|
|
26
|
+
}));
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
29
|
+
function a(e) {
|
|
30
|
+
var n = r(e, "string");
|
|
31
|
+
return t(n) == "symbol" ? n : n + "";
|
|
32
|
+
}
|
|
33
|
+
var o = e((() => {
|
|
34
|
+
n(), i();
|
|
35
|
+
}));
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
38
|
+
function s(e, t, n) {
|
|
39
|
+
return (t = a(t)) in e ? Object.defineProperty(e, t, {
|
|
40
|
+
value: n,
|
|
41
|
+
enumerable: !0,
|
|
42
|
+
configurable: !0,
|
|
43
|
+
writable: !0
|
|
44
|
+
}) : e[t] = n, e;
|
|
45
|
+
}
|
|
46
|
+
var c = e((() => {
|
|
47
|
+
o();
|
|
48
|
+
}));
|
|
49
|
+
//#endregion
|
|
50
|
+
export { c as n, s as t };
|
|
@@ -0,0 +1,229 @@
|
|
|
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 { D as o, H as s, K as c, U as l, a as u, b as d, c as f, f as p, v as m, w as h, y as g } from "./chunk-CSCIHK7Q.js";
|
|
5
|
+
import { i as _ } from "./chunk-5ZQYHXKU.js";
|
|
6
|
+
import { t as v } from "./chunk-WU5MYG2G.js";
|
|
7
|
+
import { t as y } from "./mermaid-parser.core.js";
|
|
8
|
+
import { t as b } from "./chunk-4BX2VUAB.js";
|
|
9
|
+
e(), n();
|
|
10
|
+
var x = {
|
|
11
|
+
showLegend: !0,
|
|
12
|
+
ticks: 5,
|
|
13
|
+
max: null,
|
|
14
|
+
min: 0,
|
|
15
|
+
graticule: "circle"
|
|
16
|
+
}, S = {
|
|
17
|
+
axes: [],
|
|
18
|
+
curves: [],
|
|
19
|
+
options: x
|
|
20
|
+
}, C = structuredClone(S), w = p.radar, T = /* @__PURE__ */ i(() => _(t(t({}, w), d().radar)), "getConfig"), E = /* @__PURE__ */ i(() => C.axes, "getAxes"), D = /* @__PURE__ */ i(() => C.curves, "getCurves"), O = /* @__PURE__ */ i(() => C.options, "getOptions"), k = /* @__PURE__ */ i((e) => {
|
|
21
|
+
C.axes = e.map((e) => {
|
|
22
|
+
var t;
|
|
23
|
+
return {
|
|
24
|
+
name: e.name,
|
|
25
|
+
label: (t = e.label) == null ? e.name : t
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
}, "setAxes"), A = /* @__PURE__ */ i((e) => {
|
|
29
|
+
C.curves = e.map((e) => {
|
|
30
|
+
var t;
|
|
31
|
+
return {
|
|
32
|
+
name: e.name,
|
|
33
|
+
label: (t = e.label) == null ? e.name : t,
|
|
34
|
+
entries: j(e.entries)
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
}, "setCurves"), j = /* @__PURE__ */ i((e) => {
|
|
38
|
+
if (e[0].axis == null) return e.map((e) => e.value);
|
|
39
|
+
let t = E();
|
|
40
|
+
if (t.length === 0) throw Error("Axes must be populated before curves for reference entries");
|
|
41
|
+
return t.map((t) => {
|
|
42
|
+
let n = e.find((e) => {
|
|
43
|
+
var n;
|
|
44
|
+
return ((n = e.axis) == null ? void 0 : n.$refText) === t.name;
|
|
45
|
+
});
|
|
46
|
+
if (n === void 0) throw Error("Missing entry for axis " + t.label);
|
|
47
|
+
return n.value;
|
|
48
|
+
});
|
|
49
|
+
}, "computeCurveEntries"), M = {
|
|
50
|
+
getAxes: E,
|
|
51
|
+
getCurves: D,
|
|
52
|
+
getOptions: O,
|
|
53
|
+
setAxes: k,
|
|
54
|
+
setCurves: A,
|
|
55
|
+
setOptions: /* @__PURE__ */ i((e) => {
|
|
56
|
+
var t, n, r, i, a, o, s, c, l, u;
|
|
57
|
+
let d = e.reduce((e, t) => (e[t.name] = t, e), {});
|
|
58
|
+
C.options = {
|
|
59
|
+
showLegend: (t = (n = d.showLegend) == null ? void 0 : n.value) == null ? x.showLegend : t,
|
|
60
|
+
ticks: (r = (i = d.ticks) == null ? void 0 : i.value) == null ? x.ticks : r,
|
|
61
|
+
max: (a = (o = d.max) == null ? void 0 : o.value) == null ? x.max : a,
|
|
62
|
+
min: (s = (c = d.min) == null ? void 0 : c.value) == null ? x.min : s,
|
|
63
|
+
graticule: (l = (u = d.graticule) == null ? void 0 : u.value) == null ? x.graticule : l
|
|
64
|
+
};
|
|
65
|
+
}, "setOptions"),
|
|
66
|
+
getConfig: T,
|
|
67
|
+
clear: /* @__PURE__ */ i(() => {
|
|
68
|
+
u(), C = structuredClone(S);
|
|
69
|
+
}, "clear"),
|
|
70
|
+
setAccTitle: l,
|
|
71
|
+
getAccTitle: g,
|
|
72
|
+
setDiagramTitle: c,
|
|
73
|
+
getDiagramTitle: h,
|
|
74
|
+
getAccDescription: m,
|
|
75
|
+
setAccDescription: s
|
|
76
|
+
}, N = /* @__PURE__ */ i((e) => {
|
|
77
|
+
b(e, M);
|
|
78
|
+
let { axes: t, curves: n, options: r } = e;
|
|
79
|
+
M.setAxes(t), M.setCurves(n), M.setOptions(r);
|
|
80
|
+
}, "populate"), P = { parse: /* @__PURE__ */ i(function() {
|
|
81
|
+
var e = r(function* (e) {
|
|
82
|
+
let t = yield y("radar", e);
|
|
83
|
+
a.debug(t), N(t);
|
|
84
|
+
});
|
|
85
|
+
return function(t) {
|
|
86
|
+
return e.apply(this, arguments);
|
|
87
|
+
};
|
|
88
|
+
}(), "parse") }, F = /* @__PURE__ */ i((e, t, n, r) => {
|
|
89
|
+
var i;
|
|
90
|
+
let a = r.db, o = a.getAxes(), s = a.getCurves(), c = a.getOptions(), l = a.getConfig(), u = a.getDiagramTitle(), d = I(v(t), l), f = (i = c.max) == null ? Math.max(...s.map((e) => Math.max(...e.entries))) : i, p = c.min, m = Math.min(l.width, l.height) / 2;
|
|
91
|
+
L(d, o, m, c.ticks, c.graticule), R(d, o, m, l), z(d, o, s, p, f, c.graticule, l), H(d, s, c.showLegend, l), d.append("text").attr("class", "radarTitle").text(u).attr("x", 0).attr("y", -l.height / 2 - l.marginTop);
|
|
92
|
+
}, "draw"), I = /* @__PURE__ */ i((e, t) => {
|
|
93
|
+
var n;
|
|
94
|
+
let r = t.width + t.marginLeft + t.marginRight, i = t.height + t.marginTop + t.marginBottom, a = {
|
|
95
|
+
x: t.marginLeft + t.width / 2,
|
|
96
|
+
y: t.marginTop + t.height / 2
|
|
97
|
+
};
|
|
98
|
+
return f(e, i, r, (n = t.useMaxWidth) == null ? !0 : n), e.attr("viewBox", `0 0 ${r} ${i}`), e.append("g").attr("transform", `translate(${a.x}, ${a.y})`);
|
|
99
|
+
}, "drawFrame"), L = /* @__PURE__ */ i((e, t, n, r, i) => {
|
|
100
|
+
if (i === "circle") for (let t = 0; t < r; t++) {
|
|
101
|
+
let i = n * (t + 1) / r;
|
|
102
|
+
e.append("circle").attr("r", i).attr("class", "radarGraticule");
|
|
103
|
+
}
|
|
104
|
+
else if (i === "polygon") {
|
|
105
|
+
let i = t.length;
|
|
106
|
+
for (let a = 0; a < r; a++) {
|
|
107
|
+
let o = n * (a + 1) / r, s = t.map((e, t) => {
|
|
108
|
+
let n = 2 * t * Math.PI / i - Math.PI / 2;
|
|
109
|
+
return `${o * Math.cos(n)},${o * Math.sin(n)}`;
|
|
110
|
+
}).join(" ");
|
|
111
|
+
e.append("polygon").attr("points", s).attr("class", "radarGraticule");
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}, "drawGraticule"), R = /* @__PURE__ */ i((e, t, n, r) => {
|
|
115
|
+
let i = t.length;
|
|
116
|
+
for (let a = 0; a < i; a++) {
|
|
117
|
+
let o = t[a].label, s = 2 * a * Math.PI / i - Math.PI / 2;
|
|
118
|
+
e.append("line").attr("x1", 0).attr("y1", 0).attr("x2", n * r.axisScaleFactor * Math.cos(s)).attr("y2", n * r.axisScaleFactor * Math.sin(s)).attr("class", "radarAxisLine"), e.append("text").text(o).attr("x", n * r.axisLabelFactor * Math.cos(s)).attr("y", n * r.axisLabelFactor * Math.sin(s)).attr("class", "radarAxisLabel");
|
|
119
|
+
}
|
|
120
|
+
}, "drawAxes");
|
|
121
|
+
function z(e, t, n, r, i, a, o) {
|
|
122
|
+
let s = t.length, c = Math.min(o.width, o.height) / 2;
|
|
123
|
+
n.forEach((t, n) => {
|
|
124
|
+
if (t.entries.length !== s) return;
|
|
125
|
+
let l = t.entries.map((e, t) => {
|
|
126
|
+
let n = 2 * Math.PI * t / s - Math.PI / 2, a = B(e, r, i, c);
|
|
127
|
+
return {
|
|
128
|
+
x: a * Math.cos(n),
|
|
129
|
+
y: a * Math.sin(n)
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
a === "circle" ? e.append("path").attr("d", V(l, o.curveTension)).attr("class", `radarCurve-${n}`) : a === "polygon" && e.append("polygon").attr("points", l.map((e) => `${e.x},${e.y}`).join(" ")).attr("class", `radarCurve-${n}`);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
i(z, "drawCurves");
|
|
136
|
+
function B(e, t, n, r) {
|
|
137
|
+
return r * (Math.min(Math.max(e, t), n) - t) / (n - t);
|
|
138
|
+
}
|
|
139
|
+
i(B, "relativeRadius");
|
|
140
|
+
function V(e, t) {
|
|
141
|
+
let n = e.length, r = `M${e[0].x},${e[0].y}`;
|
|
142
|
+
for (let i = 0; i < n; i++) {
|
|
143
|
+
let a = e[(i - 1 + n) % n], o = e[i], s = e[(i + 1) % n], c = e[(i + 2) % n], l = {
|
|
144
|
+
x: o.x + (s.x - a.x) * t,
|
|
145
|
+
y: o.y + (s.y - a.y) * t
|
|
146
|
+
}, u = {
|
|
147
|
+
x: s.x - (c.x - o.x) * t,
|
|
148
|
+
y: s.y - (c.y - o.y) * t
|
|
149
|
+
};
|
|
150
|
+
r += ` C${l.x},${l.y} ${u.x},${u.y} ${s.x},${s.y}`;
|
|
151
|
+
}
|
|
152
|
+
return `${r} Z`;
|
|
153
|
+
}
|
|
154
|
+
i(V, "closedRoundCurve");
|
|
155
|
+
function H(e, t, n, r) {
|
|
156
|
+
if (!n) return;
|
|
157
|
+
let i = (r.width / 2 + r.marginRight) * 3 / 4, a = -(r.height / 2 + r.marginTop) * 3 / 4;
|
|
158
|
+
t.forEach((t, n) => {
|
|
159
|
+
let r = e.append("g").attr("transform", `translate(${i}, ${a + n * 20})`);
|
|
160
|
+
r.append("rect").attr("width", 12).attr("height", 12).attr("class", `radarLegendBox-${n}`), r.append("text").attr("x", 16).attr("y", 0).attr("class", "radarLegendText").text(t.label);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
i(H, "drawLegend");
|
|
164
|
+
var U = { draw: F }, W = /* @__PURE__ */ i((e, t) => {
|
|
165
|
+
let n = "";
|
|
166
|
+
for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) {
|
|
167
|
+
let i = e[`cScale${r}`];
|
|
168
|
+
n += `
|
|
169
|
+
.radarCurve-${r} {
|
|
170
|
+
color: ${i};
|
|
171
|
+
fill: ${i};
|
|
172
|
+
fill-opacity: ${t.curveOpacity};
|
|
173
|
+
stroke: ${i};
|
|
174
|
+
stroke-width: ${t.curveStrokeWidth};
|
|
175
|
+
}
|
|
176
|
+
.radarLegendBox-${r} {
|
|
177
|
+
fill: ${i};
|
|
178
|
+
fill-opacity: ${t.curveOpacity};
|
|
179
|
+
stroke: ${i};
|
|
180
|
+
}
|
|
181
|
+
`;
|
|
182
|
+
}
|
|
183
|
+
return n;
|
|
184
|
+
}, "genIndexStyles"), G = /* @__PURE__ */ i((e) => {
|
|
185
|
+
let t = _(o(), d().themeVariables);
|
|
186
|
+
return {
|
|
187
|
+
themeVariables: t,
|
|
188
|
+
radarOptions: _(t.radar, e)
|
|
189
|
+
};
|
|
190
|
+
}, "buildRadarStyleOptions"), K = {
|
|
191
|
+
parser: P,
|
|
192
|
+
db: M,
|
|
193
|
+
renderer: U,
|
|
194
|
+
styles: /* @__PURE__ */ i(({ radar: e } = {}) => {
|
|
195
|
+
let { themeVariables: t, radarOptions: n } = G(e);
|
|
196
|
+
return `
|
|
197
|
+
.radarTitle {
|
|
198
|
+
font-size: ${t.fontSize};
|
|
199
|
+
color: ${t.titleColor};
|
|
200
|
+
dominant-baseline: hanging;
|
|
201
|
+
text-anchor: middle;
|
|
202
|
+
}
|
|
203
|
+
.radarAxisLine {
|
|
204
|
+
stroke: ${n.axisColor};
|
|
205
|
+
stroke-width: ${n.axisStrokeWidth};
|
|
206
|
+
}
|
|
207
|
+
.radarAxisLabel {
|
|
208
|
+
dominant-baseline: middle;
|
|
209
|
+
text-anchor: middle;
|
|
210
|
+
font-size: ${n.axisLabelFontSize}px;
|
|
211
|
+
color: ${n.axisColor};
|
|
212
|
+
}
|
|
213
|
+
.radarGraticule {
|
|
214
|
+
fill: ${n.graticuleColor};
|
|
215
|
+
fill-opacity: ${n.graticuleOpacity};
|
|
216
|
+
stroke: ${n.graticuleColor};
|
|
217
|
+
stroke-width: ${n.graticuleStrokeWidth};
|
|
218
|
+
}
|
|
219
|
+
.radarLegendText {
|
|
220
|
+
text-anchor: start;
|
|
221
|
+
font-size: ${n.legendFontSize}px;
|
|
222
|
+
dominant-baseline: hanging;
|
|
223
|
+
}
|
|
224
|
+
${W(t, n)}
|
|
225
|
+
`;
|
|
226
|
+
}, "styles")
|
|
227
|
+
};
|
|
228
|
+
//#endregion
|
|
229
|
+
export { K as diagram };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { n as e, t } from "./asyncToGenerator.js";
|
|
2
|
+
import { n, r } from "./chunk-AGHRB4JF.js";
|
|
3
|
+
import { H as i, K as a, U as o, a as s, b as c, c as l, f as u, v as d, w as f, y as p } from "./chunk-CSCIHK7Q.js";
|
|
4
|
+
import { i as m } from "./chunk-5ZQYHXKU.js";
|
|
5
|
+
import { t as h } from "./chunk-WU5MYG2G.js";
|
|
6
|
+
import { t as g } from "./mermaid-parser.core.js";
|
|
7
|
+
import { t as _ } from "./chunk-4BX2VUAB.js";
|
|
8
|
+
import { t as v } from "./chunk-QZHKN3VN.js";
|
|
9
|
+
//#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5GNKFQAL.mjs
|
|
10
|
+
e();
|
|
11
|
+
var y = new v(() => ({
|
|
12
|
+
cnt: 1,
|
|
13
|
+
stack: [{
|
|
14
|
+
id: 0,
|
|
15
|
+
level: -1,
|
|
16
|
+
name: "/",
|
|
17
|
+
children: []
|
|
18
|
+
}]
|
|
19
|
+
})), b = /* @__PURE__ */ n(() => {
|
|
20
|
+
y.reset(), s();
|
|
21
|
+
}, "clear"), x = /* @__PURE__ */ n(() => y.records.stack[0], "getRoot"), S = /* @__PURE__ */ n(() => y.records.cnt, "getCount"), C = u.treeView, w = {
|
|
22
|
+
clear: b,
|
|
23
|
+
addNode: /* @__PURE__ */ n((e, t) => {
|
|
24
|
+
for (; e <= y.records.stack[y.records.stack.length - 1].level;) y.records.stack.pop();
|
|
25
|
+
let n = {
|
|
26
|
+
id: y.records.cnt++,
|
|
27
|
+
level: e,
|
|
28
|
+
name: t,
|
|
29
|
+
children: []
|
|
30
|
+
};
|
|
31
|
+
y.records.stack[y.records.stack.length - 1].children.push(n), y.records.stack.push(n);
|
|
32
|
+
}, "addNode"),
|
|
33
|
+
getRoot: x,
|
|
34
|
+
getCount: S,
|
|
35
|
+
getConfig: /* @__PURE__ */ n(() => m(C, c().treeView), "getConfig"),
|
|
36
|
+
getAccTitle: p,
|
|
37
|
+
getAccDescription: d,
|
|
38
|
+
getDiagramTitle: f,
|
|
39
|
+
setAccDescription: i,
|
|
40
|
+
setAccTitle: o,
|
|
41
|
+
setDiagramTitle: a
|
|
42
|
+
}, T = /* @__PURE__ */ n((e) => {
|
|
43
|
+
_(e, w), e.nodes.map((e) => w.addNode(e.indent ? parseInt(e.indent) : 0, e.name));
|
|
44
|
+
}, "populate"), E = { parse: /* @__PURE__ */ n(function() {
|
|
45
|
+
var e = t(function* (e) {
|
|
46
|
+
let t = yield g("treeView", e);
|
|
47
|
+
r.debug(t), T(t);
|
|
48
|
+
});
|
|
49
|
+
return function(t) {
|
|
50
|
+
return e.apply(this, arguments);
|
|
51
|
+
};
|
|
52
|
+
}(), "parse") }, D = /* @__PURE__ */ n((e, t, n, r, i) => {
|
|
53
|
+
let a = r.append("text").text(n.name).attr("dominant-baseline", "middle").attr("class", "treeView-node-label"), { height: o, width: s } = a.node().getBBox(), c = o + i.paddingY * 2, l = s + i.paddingX * 2;
|
|
54
|
+
a.attr("x", e + i.paddingX), a.attr("y", t + c / 2), n.BBox = {
|
|
55
|
+
x: e,
|
|
56
|
+
y: t,
|
|
57
|
+
width: l,
|
|
58
|
+
height: c
|
|
59
|
+
};
|
|
60
|
+
}, "positionLabel"), O = /* @__PURE__ */ n((e, t, n, r, i, a) => e.append("line").attr("x1", t).attr("y1", n).attr("x2", r).attr("y2", i).attr("stroke-width", a).attr("class", "treeView-node-line"), "positionLine"), k = /* @__PURE__ */ n((e, t, r) => {
|
|
61
|
+
let i = 0, a = 0, o = /* @__PURE__ */ n((e, t, n, r) => {
|
|
62
|
+
let o = r * (n.rowIndent + n.paddingX);
|
|
63
|
+
D(o, i, t, e, n);
|
|
64
|
+
let { height: s, width: c } = t.BBox;
|
|
65
|
+
O(e, o - n.rowIndent, i + s / 2, o, i + s / 2, n.lineThickness), a = Math.max(a, o + c), i += s;
|
|
66
|
+
}, "drawNode"), s = /* @__PURE__ */ n((t, n = 0) => {
|
|
67
|
+
o(e, t, r, n), t.children.forEach((e) => {
|
|
68
|
+
s(e, n + 1);
|
|
69
|
+
});
|
|
70
|
+
let { x: i, y: a, height: c } = t.BBox;
|
|
71
|
+
if (t.children.length) {
|
|
72
|
+
let { y: n, height: o } = t.children[t.children.length - 1].BBox;
|
|
73
|
+
O(e, i + r.paddingX, a + c, i + r.paddingX, n + o / 2 + r.lineThickness / 2, r.lineThickness);
|
|
74
|
+
}
|
|
75
|
+
}, "processNode");
|
|
76
|
+
return s(t), {
|
|
77
|
+
totalHeight: i,
|
|
78
|
+
totalWidth: a
|
|
79
|
+
};
|
|
80
|
+
}, "drawTree"), A = { draw: /* @__PURE__ */ n((e, t, n, i) => {
|
|
81
|
+
r.debug("Rendering treeView diagram\n" + e);
|
|
82
|
+
let a = i.db, o = a.getRoot(), s = a.getConfig(), c = h(t), u = c.append("g");
|
|
83
|
+
u.attr("class", "tree-view");
|
|
84
|
+
let { totalHeight: d, totalWidth: f } = k(u, o, s);
|
|
85
|
+
c.attr("viewBox", `-${s.lineThickness / 2} 0 ${f} ${d}`), l(c, d, f, s.useMaxWidth);
|
|
86
|
+
}, "draw") }, j = {
|
|
87
|
+
labelFontSize: "16px",
|
|
88
|
+
labelColor: "black",
|
|
89
|
+
lineColor: "black"
|
|
90
|
+
}, M = {
|
|
91
|
+
db: w,
|
|
92
|
+
renderer: A,
|
|
93
|
+
parser: E,
|
|
94
|
+
styles: /* @__PURE__ */ n(({ treeView: e }) => {
|
|
95
|
+
let { labelFontSize: t, labelColor: n, lineColor: r } = m(j, e);
|
|
96
|
+
return `
|
|
97
|
+
.treeView-node-label {
|
|
98
|
+
font-size: ${t};
|
|
99
|
+
fill: ${n};
|
|
100
|
+
}
|
|
101
|
+
.treeView-node-line {
|
|
102
|
+
stroke: ${r};
|
|
103
|
+
}
|
|
104
|
+
`;
|
|
105
|
+
}, "styles")
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
export { M as diagram };
|