@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.
- package/README.en.md +3 -388
- package/README.md +3 -364
- package/dist/file-viewer3.css +1 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +22 -126
- package/dist/components/3MFLoader.js +0 -527
- package/dist/components/AMFLoader.js +0 -188
- package/dist/components/ArchiveViewer.js +0 -526
- package/dist/components/AudioViewer.js +0 -66
- package/dist/components/CadViewer.js +0 -9040
- package/dist/components/CodeViewer.js +0 -151
- package/dist/components/ColladaLoader.js +0 -2282
- package/dist/components/DrawingViewer.js +0 -295
- package/dist/components/EdaViewer.js +0 -630
- package/dist/components/EmailViewer.js +0 -276
- package/dist/components/EpubViewer.js +0 -172
- package/dist/components/FBXLoader.js +0 -1574
- package/dist/components/GLTFLoader.js +0 -1383
- package/dist/components/ImageViewer.js +0 -1519
- package/dist/components/KMZLoader.js +0 -45
- package/dist/components/MarkdownViewer.js +0 -1476
- package/dist/components/ModelViewer.js +0 -797
- package/dist/components/OBJLoader.js +0 -287
- package/dist/components/OfdViewer.js +0 -133
- package/dist/components/PCDLoader.js +0 -141
- package/dist/components/PLYLoader.js +0 -305
- package/dist/components/PdfView.js +0 -27667
- package/dist/components/PptxRender.js +0 -11217
- package/dist/components/STLLoader.js +0 -83
- package/dist/components/TDSLoader.js +0 -228
- package/dist/components/TypstViewer.js +0 -1697
- package/dist/components/USDLoader.js +0 -2526
- package/dist/components/UmdViewer.js +0 -1873
- package/dist/components/VRMLLoader.js +0 -6422
- package/dist/components/VTKLoader.js +0 -337
- package/dist/components/XYZLoader.js +0 -30
- package/dist/components/XlsxTable.js +0 -7879
- package/dist/components/__vite-browser-external.js +0 -7
- package/dist/components/_plugin-vue_export-helper.js +0 -8
- package/dist/components/ar-SA-G6X2FPQ2.js +0 -523
- package/dist/components/arc.js +0 -79
- package/dist/components/architecture-7EHR7CIX.js +0 -3
- package/dist/components/architectureDiagram-3BPJPVTR.js +0 -4096
- package/dist/components/archive.js +0 -24
- package/dist/components/asyncToGenerator.js +0 -29
- package/dist/components/audio.js +0 -19
- package/dist/components/az-AZ-76LH7QW2.js +0 -523
- package/dist/components/bash.js +0 -169
- package/dist/components/bg-BG-XCXSNQG7.js +0 -523
- package/dist/components/blockDiagram-GPEHLZMM.js +0 -3357
- package/dist/components/bn-BD-2XOGV67Q.js +0 -523
- package/dist/components/c4Diagram-AAUBKEIU.js +0 -2957
- package/dist/components/ca-ES-6MX7JW3Y.js +0 -523
- package/dist/components/cad.js +0 -23
- package/dist/components/cfb.js +0 -1174
- package/dist/components/channel.js +0 -5
- package/dist/components/chunk-2J33WTMH.js +0 -26
- package/dist/components/chunk-3OPIFGDE.js +0 -4167
- package/dist/components/chunk-4BX2VUAB.js +0 -19
- package/dist/components/chunk-55IACEB6.js +0 -9
- package/dist/components/chunk-5ZQYHXKU.js +0 -669
- package/dist/components/chunk-6U3AYISY.js +0 -624
- package/dist/components/chunk-727SXJPM.js +0 -3356
- package/dist/components/chunk-AGHRB4JF.js +0 -324
- package/dist/components/chunk-AQP2D5EJ.js +0 -2055
- package/dist/components/chunk-BSJP7CBP.js +0 -83
- package/dist/components/chunk-CSCIHK7Q.js +0 -3500
- package/dist/components/chunk-EIO257PC.js +0 -1836
- package/dist/components/chunk-FMBD7UC4.js +0 -5
- package/dist/components/chunk-K2UTITRG.js +0 -17627
- package/dist/components/chunk-KSCS5N6A.js +0 -572
- package/dist/components/chunk-L5ZTLDWV.js +0 -40
- package/dist/components/chunk-LZXEDZCA.js +0 -60
- package/dist/components/chunk-ND2GUHAM.js +0 -61
- package/dist/components/chunk-NNHCCRGN.js +0 -20425
- package/dist/components/chunk-NZK2D7GU.js +0 -68
- package/dist/components/chunk-O5CBEL6O.js +0 -1894
- package/dist/components/chunk-QZHKN3VN.js +0 -12
- package/dist/components/chunk-SRAX5OIU.js +0 -22
- package/dist/components/chunk-WU5MYG2G.js +0 -14
- package/dist/components/chunk-XPW4576I.js +0 -1146
- package/dist/components/chunk-Z3N5DIM6.js +0 -59
- package/dist/components/chunk-ZUYEQ4TG.js +0 -22
- package/dist/components/chunk.js +0 -23
- package/dist/components/classDiagram-4FO5ZUOK.js +0 -29
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +0 -29
- package/dist/components/compiler.js +0 -2
- package/dist/components/core.js +0 -845
- package/dist/components/cose-bilkent-S5V4N54A.js +0 -2268
- package/dist/components/cpp.js +0 -225
- package/dist/components/cs-CZ-2BRQDIVT.js +0 -523
- package/dist/components/csharp.js +0 -260
- package/dist/components/css.js +0 -140
- package/dist/components/cytoscape.esm.js +0 -18114
- package/dist/components/da-DK-5WZEPLOC.js +0 -523
- package/dist/components/dagre-BM42HDAG.js +0 -325
- package/dist/components/dagre.js +0 -1936
- package/dist/components/de-DE-XR44H4JA.js +0 -523
- package/dist/components/defaultLocale.js +0 -201
- package/dist/components/defineProperty.js +0 -50
- package/dist/components/diagram-2AECGRRQ.js +0 -229
- package/dist/components/diagram-5GNKFQAL.js +0 -108
- package/dist/components/diagram-KO2AKTUF.js +0 -443
- package/dist/components/diagram-LMA3HP47.js +0 -139
- package/dist/components/diagram-OG6HWLK6.js +0 -541
- package/dist/components/diff.js +0 -39
- package/dist/components/directory-open-01563666.js +0 -26
- package/dist/components/directory-open-4ed118d0.js +0 -83
- package/dist/components/dist.js +0 -50
- package/dist/components/dist2.js +0 -3291
- package/dist/components/dist3.js +0 -1593
- package/dist/components/documentSearch.js +0 -378
- package/dist/components/docx-preview.js +0 -3113
- package/dist/components/drawing.js +0 -19
- package/dist/components/ebook.js +0 -16
- package/dist/components/eda.js +0 -20
- package/dist/components/el-GR-BZB4AONW.js +0 -523
- package/dist/components/email.js +0 -21
- package/dist/components/en-B4ZKOASM.js +0 -3
- package/dist/components/erDiagram-TEJ5UH35.js +0 -1719
- package/dist/components/es-ES-U4NZUMDT.js +0 -523
- package/dist/components/eu-ES-A7QVB2H4.js +0 -523
- package/dist/components/eventmodeling-FCH6USID.js +0 -3
- package/dist/components/fa-IR-HGAKTJCU.js +0 -523
- package/dist/components/fflate.module.js +0 -323
- package/dist/components/fi-FI-Z5N7JZ37.js +0 -523
- package/dist/components/file-open-002ab408.js +0 -38
- package/dist/components/file-open-7c801643.js +0 -24
- package/dist/components/file-save-3189631c.js +0 -40
- package/dist/components/file-save-745eba88.js +0 -36
- package/dist/components/flowDiagram-I6XJVG4X.js +0 -4181
- package/dist/components/fr-FR-RHASNOE6.js +0 -523
- package/dist/components/ganttDiagram-6RSMTGT7.js +0 -2182
- package/dist/components/gitGraph-WXDBUCRP.js +0 -3
- package/dist/components/gitGraphDiagram-PVQCEYII.js +0 -788
- package/dist/components/gl-ES-HMX3MZ6V.js +0 -523
- package/dist/components/global-compiler.js +0 -23
- package/dist/components/global-renderer.js +0 -23
- package/dist/components/go.js +0 -140
- package/dist/components/graphlib.js +0 -1267
- package/dist/components/he-IL-6SHJWFNN.js +0 -523
- package/dist/components/hi-IN-IWLTKZ5I.js +0 -523
- package/dist/components/hu-HU-A5ZG7DT2.js +0 -523
- package/dist/components/id-ID-SAP4L64H.js +0 -523
- package/dist/components/image-GAAHSSAO.js +0 -3
- package/dist/components/image-blob-reduce.esm.js +0 -1429
- package/dist/components/image.js +0 -17
- package/dist/components/info-J43DQDTF.js +0 -3
- package/dist/components/infoDiagram-5YYISTIA.js +0 -26
- package/dist/components/ini.js +0 -88
- package/dist/components/init.js +0 -15
- package/dist/components/ishikawaDiagram-YF4QCWOH.js +0 -718
- package/dist/components/it-IT-JPQ66NNP.js +0 -523
- package/dist/components/ja-JP-DBVTYXUO.js +0 -523
- package/dist/components/java.js +0 -169
- package/dist/components/javascript.js +0 -436
- package/dist/components/journeyDiagram-JHISSGLW.js +0 -885
- package/dist/components/json.js +0 -36
- package/dist/components/jszip.min.js +0 -3033
- package/dist/components/kaa-6HZHGXH3.js +0 -523
- package/dist/components/kab-KAB-ZGHBKWFO.js +0 -523
- package/dist/components/kanban-definition-UN3LZRKU.js +0 -986
- package/dist/components/katex.js +0 -21979
- package/dist/components/kk-KZ-P5N5QNE5.js +0 -523
- package/dist/components/km-KH-HSX4SM5Z.js +0 -523
- package/dist/components/ko-KR-MTYHY66A.js +0 -523
- package/dist/components/ku-TR-6OUDTVRD.js +0 -523
- package/dist/components/lib.js +0 -4877
- package/dist/components/libarchive.js +0 -360
- package/dist/components/linear.js +0 -289
- package/dist/components/lt-LT-XHIRWOB4.js +0 -523
- package/dist/components/lv-LV-5QDEKY6T.js +0 -523
- package/dist/components/markdown.js +0 -181
- package/dist/components/md.js +0 -17
- package/dist/components/mermaid-parser.core.js +0 -328
- package/dist/components/mindmap-definition-RKZ34NQL.js +0 -1016
- package/dist/components/model.js +0 -21
- package/dist/components/mp4.js +0 -12
- package/dist/components/mr-IN-CRQNXWMA.js +0 -523
- package/dist/components/my-MM-5M5IBNSE.js +0 -523
- package/dist/components/nb-NO-T6EIAALU.js +0 -523
- package/dist/components/nestedRender.js +0 -158
- package/dist/components/nl-NL-IS3SIHDZ.js +0 -523
- package/dist/components/nn-NO-6E72VCQL.js +0 -523
- package/dist/components/objectSpread2.js +0 -29
- package/dist/components/objectWithoutProperties.js +0 -28
- package/dist/components/oc-FR-POXYY2M6.js +0 -523
- package/dist/components/ofd.js +0 -5261
- package/dist/components/ofd2.js +0 -16
- package/dist/components/ordinal.js +0 -65
- package/dist/components/pa-IN-N4M65BXN.js +0 -523
- package/dist/components/packet-YPE3B663.js +0 -3
- package/dist/components/pdf.js +0 -24
- package/dist/components/percentages-BXMCSKIN.js +0 -3
- package/dist/components/php.js +0 -294
- package/dist/components/pica.js +0 -1009
- package/dist/components/pie-LRSECV5Y.js +0 -3
- package/dist/components/pie.js +0 -47
- package/dist/components/pieDiagram-4H26LBE5.js +0 -130
- package/dist/components/pl-PL-T2D74RX3.js +0 -523
- package/dist/components/postal-mime.js +0 -3146
- package/dist/components/pptx.js +0 -15
- package/dist/components/printLayout.js +0 -42
- package/dist/components/prod.js +0 -21770
- package/dist/components/pt-BR-5N22H2LF.js +0 -523
- package/dist/components/pt-PT-UZXXM6DQ.js +0 -523
- package/dist/components/python.js +0 -238
- package/dist/components/quadrantDiagram-W4KKPZXB.js +0 -1988
- package/dist/components/radar-GUYGQ44K.js +0 -3
- package/dist/components/renderer.js +0 -2
- package/dist/components/requirementDiagram-4Y6WPE33.js +0 -2230
- package/dist/components/ro-RO-JPDTUUEW.js +0 -523
- package/dist/components/rough.esm.js +0 -1355
- package/dist/components/roundRect.js +0 -90
- package/dist/components/ru-RU-B4JR7IUQ.js +0 -523
- package/dist/components/rust.js +0 -169
- package/dist/components/sankeyDiagram-5OEKKPKP.js +0 -972
- package/dist/components/sequenceDiagram-3UESZ5HK.js +0 -4255
- package/dist/components/shared.js +0 -175
- package/dist/components/shared2.js +0 -4
- package/dist/components/si-LK-N5RQ5JYF.js +0 -523
- package/dist/components/sk-SK-C5VTKIMK.js +0 -523
- package/dist/components/sl-SI-NN7IZMDC.js +0 -523
- package/dist/components/sourceLoading.js +0 -134
- package/dist/components/sql.js +0 -118
- package/dist/components/src.js +0 -2664
- package/dist/components/src2.js +0 -10722
- package/dist/components/stateDiagram-AJRCARHV.js +0 -217
- package/dist/components/stateDiagram-v2-BHNVJYJU.js +0 -27
- package/dist/components/subset-shared.chunk.js +0 -3
- package/dist/components/subset-worker.chunk.js +0 -21
- package/dist/components/sv-SE-XGPEYMSR.js +0 -523
- package/dist/components/ta-IN-2NMHFXQM.js +0 -523
- package/dist/components/text.js +0 -20
- package/dist/components/th-TH-HPSO5L25.js +0 -523
- package/dist/components/three.module.js +0 -13134
- package/dist/components/time.js +0 -910
- package/dist/components/timeline-definition-PNZ67QCA.js +0 -1084
- package/dist/components/tr-TR-DEFEU3FU.js +0 -523
- package/dist/components/treeView-BLDUP644.js +0 -3
- package/dist/components/treemap-LRROVOQU.js +0 -3
- package/dist/components/typescript.js +0 -521
- package/dist/components/typst.js +0 -25
- package/dist/components/uk-UA-QMV73CPH.js +0 -523
- package/dist/components/umd.js +0 -16
- package/dist/components/use.js +0 -422
- package/dist/components/util.js +0 -49
- package/dist/components/vennDiagram-CIIHVFJN.js +0 -1880
- package/dist/components/vi-VN-M7AON7JQ.js +0 -523
- package/dist/components/viewerZoom.js +0 -92
- package/dist/components/wardley-L42UT6IY.js +0 -3
- package/dist/components/wardleyDiagram-YWT4CUSO.js +0 -656
- package/dist/components/wasm-pack-shim.js +0 -1711
- package/dist/components/wasm-pack-shim2.js +0 -934
- package/dist/components/wasm.js +0 -97
- package/dist/components/word.js +0 -3055
- package/dist/components/worker-ref.js +0 -16
- package/dist/components/xlsx.js +0 -21
- package/dist/components/xml.js +0 -166
- package/dist/components/xychartDiagram-2RQKCTM6.js +0 -2015
- package/dist/components/yaml.js +0 -144
- package/dist/components/zh-CN-LNUGB5OW.js +0 -523
- package/dist/components/zh-HK-E62DVLB3.js +0 -523
- package/dist/components/zh-TW-RAJ6MFWO.js +0 -523
- package/dist/index.mjs +0 -3293
- package/dist/src/App.vue.d.ts +0 -3
- package/dist/src/compare/CompareApp.vue.d.ts +0 -3
- package/dist/src/compare/main.d.ts +0 -0
- package/dist/src/compare/useSynchronizedScroll.d.ts +0 -7
- package/dist/src/components/HelloWorld.vue.d.ts +0 -3
- package/dist/src/components/utils.d.ts +0 -4
- package/dist/src/main.d.ts +0 -0
- package/dist/src/package/common/printCapability.d.ts +0 -27
- package/dist/src/package/common/printLayout.d.ts +0 -16
- package/dist/src/package/common/sourceLoading.d.ts +0 -10
- package/dist/src/package/common/type.d.ts +0 -544
- package/dist/src/package/common/util.d.ts +0 -5
- package/dist/src/package/common/worker-ref.d.ts +0 -12
- package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +0 -75
- package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +0 -9
- package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +0 -29
- package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +0 -21
- package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +0 -8
- package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +0 -34
- package/dist/src/package/components/FileViewer/index.d.ts +0 -2
- package/dist/src/package/components/FileViewer/util.d.ts +0 -3
- package/dist/src/package/index.d.ts +0 -22
- package/dist/src/package/use/documentLocation.d.ts +0 -15
- package/dist/src/package/use/documentSearch.d.ts +0 -234
- package/dist/src/package/use/index.d.ts +0 -5
- package/dist/src/package/use/loading.d.ts +0 -33
- package/dist/src/package/use/viewerZoom.d.ts +0 -42
- package/dist/src/package/use/worker.d.ts +0 -24
- package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +0 -9
- package/dist/src/package/vendors/archive/cache.d.ts +0 -10
- package/dist/src/package/vendors/archive/fallback.d.ts +0 -9
- package/dist/src/package/vendors/archive/index.d.ts +0 -3
- package/dist/src/package/vendors/archive/shared.d.ts +0 -24
- package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +0 -7
- package/dist/src/package/vendors/audio/index.d.ts +0 -7
- package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +0 -9
- package/dist/src/package/vendors/cad/index.d.ts +0 -8
- package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +0 -15
- package/dist/src/package/vendors/drawing/index.d.ts +0 -7
- package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/ebook/index.d.ts +0 -7
- package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +0 -8
- package/dist/src/package/vendors/eda/index.d.ts +0 -2
- package/dist/src/package/vendors/eda/parser.d.ts +0 -77
- package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +0 -10
- package/dist/src/package/vendors/email/index.d.ts +0 -2
- package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/image/index.d.ts +0 -4
- package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/md/index.d.ts +0 -4
- package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +0 -8
- package/dist/src/package/vendors/model/index.d.ts +0 -3
- package/dist/src/package/vendors/model/shared.d.ts +0 -1
- package/dist/src/package/vendors/mp4/index.d.ts +0 -4
- package/dist/src/package/vendors/nestedRender.d.ts +0 -10
- package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/ofd/index.d.ts +0 -7
- package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +0 -10
- package/dist/src/package/vendors/pdf/index.d.ts +0 -2
- package/dist/src/package/vendors/pdf/worker/index.d.ts +0 -4
- package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
- package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +0 -9
- package/dist/src/package/vendors/pptx/index.d.ts +0 -6
- package/dist/src/package/vendors/pptx/options.d.ts +0 -39
- package/dist/src/package/vendors/pptx/support/chart.d.ts +0 -4
- package/dist/src/package/vendors/pptx/worker/index.d.ts +0 -4
- package/dist/src/package/vendors/renders.d.ts +0 -3
- package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +0 -7
- package/dist/src/package/vendors/text/index.d.ts +0 -10
- package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +0 -15
- package/dist/src/package/vendors/typst/index.d.ts +0 -8
- package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +0 -6
- package/dist/src/package/vendors/umd/index.d.ts +0 -7
- package/dist/src/package/vendors/umd/parser.d.ts +0 -30
- package/dist/src/package/vendors/word/doc.d.ts +0 -5
- package/dist/src/package/vendors/word/docx.d.ts +0 -5
- package/dist/src/package/vendors/word/docx.worker.d.ts +0 -1
- package/dist/src/package/vendors/word/index.d.ts +0 -3
- package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +0 -80
- package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +0 -25
- package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +0 -6
- package/dist/src/package/vendors/xlsx/index.d.ts +0 -6
- package/dist/src/package/vendors/xlsx/util.d.ts +0 -3
- package/dist/src/package/vendors/xlsx/worker/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +0 -73
- package/dist/src/package/vendors/xlsx/worker/sheetjs/color.d.ts +0 -2
- package/dist/src/package/vendors/xlsx/worker/sheetjs/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +0 -1
- package/dist/style.css +0 -1
- package/dist/wasm/cad/dwfv-render.wasm +0 -0
- package/dist/wasm/cad/dwg-worker.js +0 -24
- package/dist/wasm/cad/libredwg-web.js +0 -15
- package/dist/wasm/cad/libredwg-web.wasm +0 -0
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./objectSpread2.js";
|
|
2
|
-
import { n, t as r } from "./asyncToGenerator.js";
|
|
3
|
-
import { n as i, r as a } from "./chunk-AGHRB4JF.js";
|
|
4
|
-
import { x as o } from "./chunk-CSCIHK7Q.js";
|
|
5
|
-
import "./chunk-5ZQYHXKU.js";
|
|
6
|
-
import "./chunk-BSJP7CBP.js";
|
|
7
|
-
import { n as s } from "./chunk-L5ZTLDWV.js";
|
|
8
|
-
import "./chunk-NZK2D7GU.js";
|
|
9
|
-
import "./chunk-O5CBEL6O.js";
|
|
10
|
-
import { a as c, c as l, i as u, l as d, n as f, t as p, u as m } from "./chunk-3OPIFGDE.js";
|
|
11
|
-
import { a as h, i as g, n as _, r as v, t as y } from "./chunk-KSCS5N6A.js";
|
|
12
|
-
import { r as b, t as x } from "./graphlib.js";
|
|
13
|
-
import { n as S, r as C, t as w } from "./dagre.js";
|
|
14
|
-
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/clone.js
|
|
15
|
-
var T = 4;
|
|
16
|
-
function E(e) {
|
|
17
|
-
return C(e, T);
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/graphlib/json.js
|
|
21
|
-
function D(e) {
|
|
22
|
-
var t = {
|
|
23
|
-
options: {
|
|
24
|
-
directed: e.isDirected(),
|
|
25
|
-
multigraph: e.isMultigraph(),
|
|
26
|
-
compound: e.isCompound()
|
|
27
|
-
},
|
|
28
|
-
nodes: O(e),
|
|
29
|
-
edges: k(e)
|
|
30
|
-
};
|
|
31
|
-
return b(e.graph()) || (t.value = E(e.graph())), t;
|
|
32
|
-
}
|
|
33
|
-
function O(e) {
|
|
34
|
-
return S(e.nodes(), function(t) {
|
|
35
|
-
var n = e.node(t), r = e.parent(t), i = { v: t };
|
|
36
|
-
return b(n) || (i.value = n), b(r) || (i.parent = r), i;
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
function k(e) {
|
|
40
|
-
return S(e.edges(), function(t) {
|
|
41
|
-
var n = e.edge(t), r = {
|
|
42
|
-
v: t.v,
|
|
43
|
-
w: t.w
|
|
44
|
-
};
|
|
45
|
-
return b(t.name) || (r.name = t.name), b(n) || (r.value = n), r;
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
e(), n();
|
|
49
|
-
var A = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ i(() => {
|
|
50
|
-
j.clear(), M.clear(), A.clear();
|
|
51
|
-
}, "clear"), P = /* @__PURE__ */ i((e, t) => {
|
|
52
|
-
let n = j.get(t) || [];
|
|
53
|
-
return a.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
|
|
54
|
-
}, "isDescendant"), F = /* @__PURE__ */ i((e, t) => {
|
|
55
|
-
let n = j.get(t) || [];
|
|
56
|
-
return a.info("Descendants of ", t, " is ", n), a.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || P(e.v, t) || P(e.w, t) || n.includes(e.w) : (a.debug("Tilt, ", t, ",not in descendants"), !1);
|
|
57
|
-
}, "edgeInCluster"), I = /* @__PURE__ */ i((e, t, n, r) => {
|
|
58
|
-
a.warn("Copying children of ", e, "root", r, "data", t.node(e), r);
|
|
59
|
-
let i = t.children(e) || [];
|
|
60
|
-
e !== r && i.push(e), a.warn("Copying (nodes) clusterId", e, "nodes", i), i.forEach((i) => {
|
|
61
|
-
if (t.children(i).length > 0) I(i, t, n, r);
|
|
62
|
-
else {
|
|
63
|
-
let o = t.node(i);
|
|
64
|
-
a.info("cp ", i, " to ", r, " with parent ", e), n.setNode(i, o), r !== t.parent(i) && (a.warn("Setting parent", i, t.parent(i)), n.setParent(i, t.parent(i))), e !== r && i !== e ? (a.debug("Setting parent", i, e), n.setParent(i, e)) : (a.info("In copy ", e, "root", r, "data", t.node(e), r), a.debug("Not Setting parent for node=", i, "cluster!==rootId", e !== r, "node!==clusterId", i !== e));
|
|
65
|
-
let s = t.edges(i);
|
|
66
|
-
a.debug("Copying Edges", s), s.forEach((i) => {
|
|
67
|
-
a.info("Edge", i);
|
|
68
|
-
let o = t.edge(i.v, i.w, i.name);
|
|
69
|
-
a.info("Edge data", o, r);
|
|
70
|
-
try {
|
|
71
|
-
F(i, r) ? (a.info("Copying as ", i.v, i.w, o, i.name), n.setEdge(i.v, i.w, o, i.name), a.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : a.info("Skipping copy of edge ", i.v, "-->", i.w, " rootId: ", r, " clusterId:", e);
|
|
72
|
-
} catch (e) {
|
|
73
|
-
a.error(e);
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
a.debug("Removing node", i), t.removeNode(i);
|
|
78
|
-
});
|
|
79
|
-
}, "copy"), L = /* @__PURE__ */ i((e, t) => {
|
|
80
|
-
let n = t.children(e), r = [...n];
|
|
81
|
-
for (let i of n) M.set(i, e), r = [...r, ...L(i, t)];
|
|
82
|
-
return r;
|
|
83
|
-
}, "extractDescendants"), R = /* @__PURE__ */ i((e, t, n) => {
|
|
84
|
-
let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
|
|
85
|
-
v: e.v === t ? n : e.v,
|
|
86
|
-
w: e.w === t ? t : e.w
|
|
87
|
-
})), o = i.map((e) => ({
|
|
88
|
-
v: e.v,
|
|
89
|
-
w: e.w
|
|
90
|
-
}));
|
|
91
|
-
return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
|
|
92
|
-
}, "findCommonEdges"), z = /* @__PURE__ */ i((e, t, n) => {
|
|
93
|
-
let r = t.children(e);
|
|
94
|
-
if (a.trace("Searching children of id ", e, r), r.length < 1) return e;
|
|
95
|
-
let i;
|
|
96
|
-
for (let e of r) {
|
|
97
|
-
let r = z(e, t, n), a = R(t, n, r);
|
|
98
|
-
if (r) if (a.length > 0) i = r;
|
|
99
|
-
else return r;
|
|
100
|
-
}
|
|
101
|
-
return i;
|
|
102
|
-
}, "findNonClusterChild"), B = /* @__PURE__ */ i((e) => !A.has(e) || !A.get(e).externalConnections ? e : A.has(e) ? A.get(e).id : e, "getAnchorId"), V = /* @__PURE__ */ i((e, t) => {
|
|
103
|
-
if (!e || t > 10) {
|
|
104
|
-
a.debug("Opting out, no graph ");
|
|
105
|
-
return;
|
|
106
|
-
} else a.debug("Opting in, graph ");
|
|
107
|
-
e.nodes().forEach(function(t) {
|
|
108
|
-
e.children(t).length > 0 && (a.warn("Cluster identified", t, " Replacement id in edges: ", z(t, e, t)), j.set(t, L(t, e)), A.set(t, {
|
|
109
|
-
id: z(t, e, t),
|
|
110
|
-
clusterData: e.node(t)
|
|
111
|
-
}));
|
|
112
|
-
}), e.nodes().forEach(function(t) {
|
|
113
|
-
let n = e.children(t), r = e.edges();
|
|
114
|
-
n.length > 0 ? (a.debug("Cluster identified", t, j), r.forEach((e) => {
|
|
115
|
-
P(e.v, t) ^ P(e.w, t) && (a.warn("Edge: ", e, " leaves cluster ", t), a.warn("Descendants of XXX ", t, ": ", j.get(t)), A.get(t).externalConnections = !0);
|
|
116
|
-
})) : a.debug("Not a cluster ", t, j);
|
|
117
|
-
});
|
|
118
|
-
for (let t of A.keys()) {
|
|
119
|
-
let n = A.get(t).id, r = e.parent(n);
|
|
120
|
-
r !== t && A.has(r) && !A.get(r).externalConnections && (A.get(t).id = r);
|
|
121
|
-
}
|
|
122
|
-
e.edges().forEach(function(t) {
|
|
123
|
-
let n = e.edge(t);
|
|
124
|
-
a.warn("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), a.warn("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
|
|
125
|
-
let r = t.v, i = t.w;
|
|
126
|
-
if (a.warn("Fix XXX", A, "ids:", t.v, t.w, "Translating: ", A.get(t.v), " --- ", A.get(t.w)), A.get(t.v) || A.get(t.w)) {
|
|
127
|
-
if (a.warn("Fixing and trying - removing XXX", t.v, t.w, t.name), r = B(t.v), i = B(t.w), e.removeEdge(t.v, t.w, t.name), r !== t.v) {
|
|
128
|
-
let i = e.parent(r);
|
|
129
|
-
A.get(i).externalConnections = !0, n.fromCluster = t.v;
|
|
130
|
-
}
|
|
131
|
-
if (i !== t.w) {
|
|
132
|
-
let r = e.parent(i);
|
|
133
|
-
A.get(r).externalConnections = !0, n.toCluster = t.w;
|
|
134
|
-
}
|
|
135
|
-
a.warn("Fix Replacing with XXX", r, i, t.name), e.setEdge(r, i, n, t.name);
|
|
136
|
-
}
|
|
137
|
-
}), a.warn("Adjusted Graph", D(e)), H(e, 0), a.trace(A);
|
|
138
|
-
}, "adjustClustersAndEdges"), H = /* @__PURE__ */ i((e, t) => {
|
|
139
|
-
if (a.warn("extractor - ", t, D(e), e.children("D")), t > 10) {
|
|
140
|
-
a.error("Bailing out");
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
let n = e.nodes(), r = !1;
|
|
144
|
-
for (let t of n) {
|
|
145
|
-
let n = e.children(t);
|
|
146
|
-
r = r || n.length > 0;
|
|
147
|
-
}
|
|
148
|
-
if (!r) {
|
|
149
|
-
a.debug("Done, no node has children", e.nodes());
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
a.debug("Nodes = ", n, t);
|
|
153
|
-
for (let r of n) if (a.debug("Extracting node", r, A, A.has(r) && !A.get(r).externalConnections, !e.parent(r), e.node(r), e.children("D"), " Depth ", t), !A.has(r)) a.debug("Not a cluster", r, t);
|
|
154
|
-
else if (!A.get(r).externalConnections && e.children(r) && e.children(r).length > 0) {
|
|
155
|
-
var i;
|
|
156
|
-
a.warn("Cluster without external connections, without a parent and with children", r, t);
|
|
157
|
-
let n = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
158
|
-
!((i = A.get(r)) == null || (i = i.clusterData) == null) && i.dir && (n = A.get(r).clusterData.dir, a.warn("Fixing dir", A.get(r).clusterData.dir, n));
|
|
159
|
-
let o = new x({
|
|
160
|
-
multigraph: !0,
|
|
161
|
-
compound: !0
|
|
162
|
-
}).setGraph({
|
|
163
|
-
rankdir: n,
|
|
164
|
-
nodesep: 50,
|
|
165
|
-
ranksep: 50,
|
|
166
|
-
marginx: 8,
|
|
167
|
-
marginy: 8
|
|
168
|
-
}).setDefaultEdgeLabel(function() {
|
|
169
|
-
return {};
|
|
170
|
-
});
|
|
171
|
-
a.warn("Old graph before copy", D(e)), I(r, e, o, r), e.setNode(r, {
|
|
172
|
-
clusterNode: !0,
|
|
173
|
-
id: r,
|
|
174
|
-
clusterData: A.get(r).clusterData,
|
|
175
|
-
label: A.get(r).label,
|
|
176
|
-
graph: o
|
|
177
|
-
}), a.warn("New graph after copy node: (", r, ")", D(o)), a.debug("Old graph after copy", D(e));
|
|
178
|
-
} else a.warn("Cluster ** ", r, " **not meeting the criteria !externalConnections:", !A.get(r).externalConnections, " no parent: ", !e.parent(r), " children ", e.children(r) && e.children(r).length > 0, e.children("D"), t), a.debug(A);
|
|
179
|
-
n = e.nodes(), a.warn("New list of nodes", n);
|
|
180
|
-
for (let r of n) {
|
|
181
|
-
let n = e.node(r);
|
|
182
|
-
a.warn(" Now next level", r, n), n != null && n.clusterNode && H(n.graph, t + 1);
|
|
183
|
-
}
|
|
184
|
-
}, "extractor"), U = /* @__PURE__ */ i((e, t) => {
|
|
185
|
-
if (t.length === 0) return [];
|
|
186
|
-
let n = Object.assign([], t);
|
|
187
|
-
return t.forEach((t) => {
|
|
188
|
-
let r = U(e, e.children(t));
|
|
189
|
-
n = [...n, ...r];
|
|
190
|
-
}), n;
|
|
191
|
-
}, "sorter"), W = /* @__PURE__ */ i((e) => U(e, e.children()), "sortNodesByHierarchy"), G = /* @__PURE__ */ i(function() {
|
|
192
|
-
var e = r(function* (e, n, o, f, p, g) {
|
|
193
|
-
a.warn("Graph in recursive render:XAX", D(n), p);
|
|
194
|
-
let y = n.graph().rankdir;
|
|
195
|
-
a.trace("Dir in recursive render - dir:", y);
|
|
196
|
-
let b = e.insert("g").attr("class", "root");
|
|
197
|
-
n.nodes() ? a.info("Recursive render XXX", n.nodes()) : a.info("No nodes found for", n), n.edges().length > 0 && a.info("Recursive edges", n.edge(n.edges()[0]));
|
|
198
|
-
let x = b.insert("g").attr("class", "clusters"), S = b.insert("g").attr("class", "edgePaths"), C = b.insert("g").attr("class", "edgeLabels"), T = b.insert("g").attr("class", "nodes");
|
|
199
|
-
yield Promise.all(n.nodes().map(/* @__PURE__ */ function() {
|
|
200
|
-
var e = r(function* (e) {
|
|
201
|
-
let r = n.node(e);
|
|
202
|
-
if (p !== void 0) {
|
|
203
|
-
let t = JSON.parse(JSON.stringify(p.clusterData));
|
|
204
|
-
a.trace("Setting data for parent cluster XXX\n Node.id = ", e, "\n data=", t.height, "\nParent cluster", p.height), n.setNode(p.id, t), n.parent(e) || (a.trace("Setting parent", e, p.id), n.setParent(e, p.id, t));
|
|
205
|
-
}
|
|
206
|
-
if (a.info("(Insert) Node XXX" + e + ": " + JSON.stringify(n.node(e))), r != null && r.clusterNode) {
|
|
207
|
-
a.info("Cluster identified XBX", e, r.width, n.node(e));
|
|
208
|
-
let { ranksep: i, nodesep: s } = n.graph();
|
|
209
|
-
r.graph.setGraph(t(t({}, r.graph.graph()), {}, {
|
|
210
|
-
ranksep: i + 25,
|
|
211
|
-
nodesep: s
|
|
212
|
-
}));
|
|
213
|
-
let c = yield G(T, r.graph, o, f, n.node(e), g), l = c.elem;
|
|
214
|
-
m(r, l), r.diff = c.diff || 0, a.info("New compound node after recursive render XAX", e, "width", r.width, "height", r.height), d(l, r);
|
|
215
|
-
} else n.children(e).length > 0 ? (a.trace("Cluster - the non recursive path XBX", e, r.id, r, r.width, "Graph:", n), a.trace(z(r.id, n)), A.set(r.id, {
|
|
216
|
-
id: z(r.id, n),
|
|
217
|
-
node: r
|
|
218
|
-
})) : (a.trace("Node - the non recursive path XAX", e, T, n.node(e), y), yield c(T, n.node(e), {
|
|
219
|
-
config: g,
|
|
220
|
-
dir: y
|
|
221
|
-
}));
|
|
222
|
-
});
|
|
223
|
-
return function(t) {
|
|
224
|
-
return e.apply(this, arguments);
|
|
225
|
-
};
|
|
226
|
-
}())), yield (/* @__PURE__ */ i(r(function* () {
|
|
227
|
-
let e = n.edges().map(/* @__PURE__ */ function() {
|
|
228
|
-
var e = r(function* (e) {
|
|
229
|
-
let t = n.edge(e.v, e.w, e.name);
|
|
230
|
-
a.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e)), a.info("Edge " + e.v + " -> " + e.w + ": ", e, " ", JSON.stringify(n.edge(e))), a.info("Fix", A, "ids:", e.v, e.w, "Translating: ", A.get(e.v), A.get(e.w)), yield v(C, t);
|
|
231
|
-
});
|
|
232
|
-
return function(t) {
|
|
233
|
-
return e.apply(this, arguments);
|
|
234
|
-
};
|
|
235
|
-
}());
|
|
236
|
-
yield Promise.all(e);
|
|
237
|
-
}), "processEdges"))(), a.info("Graph before layout:", JSON.stringify(D(n))), a.info("############################################# XXX"), a.info("### Layout ### XXX"), a.info("############################################# XXX"), w(n), a.info("Graph after layout:", JSON.stringify(D(n)));
|
|
238
|
-
let E = 0, { subGraphTitleTotalMargin: O } = s(g);
|
|
239
|
-
return yield Promise.all(W(n).map(/* @__PURE__ */ function() {
|
|
240
|
-
var e = r(function* (e) {
|
|
241
|
-
let t = n.node(e);
|
|
242
|
-
if (a.info("Position XBX => " + e + ": (" + t.x, "," + t.y, ") width: ", t.width, " height: ", t.height), t != null && t.clusterNode) t.y += O, a.info("A tainted cluster node XBX1", e, t.id, t.width, t.height, t.x, t.y, n.parent(e)), A.get(t.id).node = t, l(t);
|
|
243
|
-
else if (n.children(e).length > 0) {
|
|
244
|
-
var r;
|
|
245
|
-
a.info("A pure cluster node XBX1", e, t.id, t.x, t.y, t.width, t.height, n.parent(e)), t.height += O, n.node(t.parentId);
|
|
246
|
-
let i = (t == null ? void 0 : t.padding) / 2 || 0, o = (t == null || (r = t.labelBBox) == null ? void 0 : r.height) || 0, s = o - i || 0;
|
|
247
|
-
a.debug("OffsetY", s, "labelHeight", o, "halfPadding", i), yield u(x, t), A.get(t.id).node = t;
|
|
248
|
-
} else {
|
|
249
|
-
let e = n.node(t.parentId);
|
|
250
|
-
t.y += O / 2, a.info("A regular node XBX1 - using the padding", t.id, "parent", t.parentId, t.width, t.height, t.x, t.y, "offsetY", t.offsetY, "parent", e, e == null ? void 0 : e.offsetY, t), l(t);
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
return function(t) {
|
|
254
|
-
return e.apply(this, arguments);
|
|
255
|
-
};
|
|
256
|
-
}())), n.edges().forEach(function(e) {
|
|
257
|
-
let t = n.edge(e);
|
|
258
|
-
a.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(t), t), t.points.forEach((e) => e.y += O / 2), h(t, _(S, t, A, o, n.node(e.v), n.node(e.w), f));
|
|
259
|
-
}), n.nodes().forEach(function(e) {
|
|
260
|
-
let t = n.node(e);
|
|
261
|
-
a.info(e, t.type, t.diff), t.isGroup && (E = t.diff);
|
|
262
|
-
}), a.warn("Returning from recursive render XAX", b, E), {
|
|
263
|
-
elem: b,
|
|
264
|
-
diff: E
|
|
265
|
-
};
|
|
266
|
-
});
|
|
267
|
-
return function(t, n, r, i, a, o) {
|
|
268
|
-
return e.apply(this, arguments);
|
|
269
|
-
};
|
|
270
|
-
}(), "recursiveRender"), K = /* @__PURE__ */ i(function() {
|
|
271
|
-
var e = r(function* (e, n) {
|
|
272
|
-
var r, i, s, c;
|
|
273
|
-
let l = new x({
|
|
274
|
-
multigraph: !0,
|
|
275
|
-
compound: !0
|
|
276
|
-
}).setGraph({
|
|
277
|
-
rankdir: e.direction,
|
|
278
|
-
nodesep: ((r = e.config) == null ? void 0 : r.nodeSpacing) || ((i = e.config) == null || (i = i.flowchart) == null ? void 0 : i.nodeSpacing) || e.nodeSpacing,
|
|
279
|
-
ranksep: ((s = e.config) == null ? void 0 : s.rankSpacing) || ((c = e.config) == null || (c = c.flowchart) == null ? void 0 : c.rankSpacing) || e.rankSpacing,
|
|
280
|
-
marginx: 8,
|
|
281
|
-
marginy: 8
|
|
282
|
-
}).setDefaultEdgeLabel(function() {
|
|
283
|
-
return {};
|
|
284
|
-
}), u = n.select("g");
|
|
285
|
-
g(u, e.markers, e.type, e.diagramId), f(), y(), p(), N(), e.nodes.forEach((e) => {
|
|
286
|
-
l.setNode(e.id, t({}, e)), e.parentId && l.setParent(e.id, e.parentId);
|
|
287
|
-
}), a.debug("Edges:", e.edges), e.edges.forEach((e) => {
|
|
288
|
-
if (e.start === e.end) {
|
|
289
|
-
let t = e.start, n = t + "---" + t + "---1", r = t + "---" + t + "---2", i = l.node(t);
|
|
290
|
-
l.setNode(n, {
|
|
291
|
-
domId: n,
|
|
292
|
-
id: n,
|
|
293
|
-
parentId: i.parentId,
|
|
294
|
-
labelStyle: "",
|
|
295
|
-
label: "",
|
|
296
|
-
padding: 0,
|
|
297
|
-
shape: "labelRect",
|
|
298
|
-
style: "",
|
|
299
|
-
width: 10,
|
|
300
|
-
height: 10
|
|
301
|
-
}), l.setParent(n, i.parentId), l.setNode(r, {
|
|
302
|
-
domId: r,
|
|
303
|
-
id: r,
|
|
304
|
-
parentId: i.parentId,
|
|
305
|
-
labelStyle: "",
|
|
306
|
-
padding: 0,
|
|
307
|
-
shape: "labelRect",
|
|
308
|
-
label: "",
|
|
309
|
-
style: "",
|
|
310
|
-
width: 10,
|
|
311
|
-
height: 10
|
|
312
|
-
}), l.setParent(r, i.parentId);
|
|
313
|
-
let a = structuredClone(e), o = structuredClone(e), s = structuredClone(e);
|
|
314
|
-
a.label = "", a.arrowTypeEnd = "none", a.endLabelLeft = "", a.endLabelRight = "", a.startLabelLeft = "", a.id = t + "-cyclic-special-1", o.startLabelRight = "", o.startLabelLeft = "", o.endLabelLeft = "", o.endLabelRight = "", o.arrowTypeStart = "none", o.arrowTypeEnd = "none", o.id = t + "-cyclic-special-mid", s.label = "", s.startLabelRight = "", s.startLabelLeft = "", s.arrowTypeStart = "none", i.isGroup && (a.fromCluster = t, s.toCluster = t), s.id = t + "-cyclic-special-2", s.arrowTypeStart = "none", l.setEdge(t, n, a, t + "-cyclic-special-0"), l.setEdge(n, r, o, t + "-cyclic-special-1"), l.setEdge(r, t, s, t + "-cyc<lic-special-2");
|
|
315
|
-
} else l.setEdge(e.start, e.end, t({}, e), e.id);
|
|
316
|
-
}), a.warn("Graph at first:", JSON.stringify(D(l))), V(l), a.warn("Graph after XAX:", JSON.stringify(D(l)));
|
|
317
|
-
let d = o();
|
|
318
|
-
yield G(u, l, e.type, e.diagramId, void 0, d);
|
|
319
|
-
});
|
|
320
|
-
return function(t, n) {
|
|
321
|
-
return e.apply(this, arguments);
|
|
322
|
-
};
|
|
323
|
-
}(), "render");
|
|
324
|
-
//#endregion
|
|
325
|
-
export { K as render };
|