file-viewer3 1.0.26 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +7 -377
- package/README.md +8 -352
- package/dist/file-viewer3.css +1 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +27 -129
- 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,217 +0,0 @@
|
|
|
1
|
-
import { n as e, r as t } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { O as n, c as r, s as i, x as a } from "./chunk-CSCIHK7Q.js";
|
|
3
|
-
import { Q as o, _ as s, v as c } from "./src.js";
|
|
4
|
-
import { g as l } from "./chunk-5ZQYHXKU.js";
|
|
5
|
-
import "./chunk-BSJP7CBP.js";
|
|
6
|
-
import "./chunk-L5ZTLDWV.js";
|
|
7
|
-
import "./chunk-NZK2D7GU.js";
|
|
8
|
-
import "./chunk-O5CBEL6O.js";
|
|
9
|
-
import "./chunk-3OPIFGDE.js";
|
|
10
|
-
import "./chunk-KSCS5N6A.js";
|
|
11
|
-
import "./chunk-LZXEDZCA.js";
|
|
12
|
-
import { t as u } from "./graphlib.js";
|
|
13
|
-
import { t as d } from "./dagre.js";
|
|
14
|
-
import "./chunk-55IACEB6.js";
|
|
15
|
-
import "./chunk-2J33WTMH.js";
|
|
16
|
-
import { i as f, n as p, t as m } from "./chunk-AQP2D5EJ.js";
|
|
17
|
-
//#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-AJRCARHV.mjs
|
|
18
|
-
var h = /* @__PURE__ */ e((e) => e.append("circle").attr("class", "start-state").attr("r", a().state.sizeUnit).attr("cx", a().state.padding + a().state.sizeUnit).attr("cy", a().state.padding + a().state.sizeUnit), "drawStartState"), g = /* @__PURE__ */ e((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", a().state.textHeight).attr("class", "divider").attr("x2", a().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), _ = /* @__PURE__ */ e((e, t) => {
|
|
19
|
-
let n = e.append("text").attr("x", 2 * a().state.padding).attr("y", a().state.textHeight + 2 * a().state.padding).attr("font-size", a().state.fontSize).attr("class", "state-title").text(t.id), r = n.node().getBBox();
|
|
20
|
-
return e.insert("rect", ":first-child").attr("x", a().state.padding).attr("y", a().state.padding).attr("width", r.width + 2 * a().state.padding).attr("height", r.height + 2 * a().state.padding).attr("rx", a().state.radius), n;
|
|
21
|
-
}, "drawSimpleState"), v = /* @__PURE__ */ e((t, n) => {
|
|
22
|
-
let r = /* @__PURE__ */ e(function(e, t, n) {
|
|
23
|
-
let r = e.append("tspan").attr("x", 2 * a().state.padding).text(t);
|
|
24
|
-
n || r.attr("dy", a().state.textHeight);
|
|
25
|
-
}, "addTspan"), i = t.append("text").attr("x", 2 * a().state.padding).attr("y", a().state.textHeight + 1.3 * a().state.padding).attr("font-size", a().state.fontSize).attr("class", "state-title").text(n.descriptions[0]).node().getBBox(), o = i.height, s = t.append("text").attr("x", a().state.padding).attr("y", o + a().state.padding * .4 + a().state.dividerMargin + a().state.textHeight).attr("class", "state-description"), c = !0, l = !0;
|
|
26
|
-
n.descriptions.forEach(function(e) {
|
|
27
|
-
c || (r(s, e, l), l = !1), c = !1;
|
|
28
|
-
});
|
|
29
|
-
let u = t.append("line").attr("x1", a().state.padding).attr("y1", a().state.padding + o + a().state.dividerMargin / 2).attr("y2", a().state.padding + o + a().state.dividerMargin / 2).attr("class", "descr-divider"), d = s.node().getBBox(), f = Math.max(d.width, i.width);
|
|
30
|
-
return u.attr("x2", f + 3 * a().state.padding), t.insert("rect", ":first-child").attr("x", a().state.padding).attr("y", a().state.padding).attr("width", f + 2 * a().state.padding).attr("height", d.height + o + 2 * a().state.padding).attr("rx", a().state.radius), t;
|
|
31
|
-
}, "drawDescrState"), y = /* @__PURE__ */ e((e, t, n) => {
|
|
32
|
-
let r = a().state.padding, i = 2 * a().state.padding, o = e.node().getBBox(), s = o.width, c = o.x, l = e.append("text").attr("x", 0).attr("y", a().state.titleShift).attr("font-size", a().state.fontSize).attr("class", "state-title").text(t.id), u = l.node().getBBox().width + i, d = Math.max(u, s);
|
|
33
|
-
d === s && (d += i);
|
|
34
|
-
let f, p = e.node().getBBox();
|
|
35
|
-
t.doc, f = c - r, u > s && (f = (s - d) / 2 + r), Math.abs(c - p.x) < r && u > s && (f = c - (u - s) / 2);
|
|
36
|
-
let m = 1 - a().state.textHeight;
|
|
37
|
-
return e.insert("rect", ":first-child").attr("x", f).attr("y", m).attr("class", n ? "alt-composit" : "composit").attr("width", d).attr("height", p.height + a().state.textHeight + a().state.titleShift + 1).attr("rx", "0"), l.attr("x", f + r), u <= s && l.attr("x", c + (d - i) / 2 - u / 2 + r), e.insert("rect", ":first-child").attr("x", f).attr("y", a().state.titleShift - a().state.textHeight - a().state.padding).attr("width", d).attr("height", a().state.textHeight * 3).attr("rx", a().state.radius), e.insert("rect", ":first-child").attr("x", f).attr("y", a().state.titleShift - a().state.textHeight - a().state.padding).attr("width", d).attr("height", p.height + 3 + 2 * a().state.textHeight).attr("rx", a().state.radius), e;
|
|
38
|
-
}, "addTitleAndBox"), b = /* @__PURE__ */ e((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", a().state.sizeUnit + a().state.miniPadding).attr("cx", a().state.padding + a().state.sizeUnit + a().state.miniPadding).attr("cy", a().state.padding + a().state.sizeUnit + a().state.miniPadding), e.append("circle").attr("class", "end-state-inner").attr("r", a().state.sizeUnit).attr("cx", a().state.padding + a().state.sizeUnit + 2).attr("cy", a().state.padding + a().state.sizeUnit + 2)), "drawEndState"), x = /* @__PURE__ */ e((e, t) => {
|
|
39
|
-
let n = a().state.forkWidth, r = a().state.forkHeight;
|
|
40
|
-
if (t.parentId) {
|
|
41
|
-
let e = n;
|
|
42
|
-
n = r, r = e;
|
|
43
|
-
}
|
|
44
|
-
return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", n).attr("height", r).attr("x", a().state.padding).attr("y", a().state.padding);
|
|
45
|
-
}, "drawForkJoinState"), S = /* @__PURE__ */ e((e, t, n, r) => {
|
|
46
|
-
let o = 0, s = r.append("text");
|
|
47
|
-
s.style("text-anchor", "start"), s.attr("class", "noteText");
|
|
48
|
-
let c = e.replace(/\r\n/g, "<br/>");
|
|
49
|
-
c = c.replace(/\n/g, "<br/>");
|
|
50
|
-
let l = c.split(i.lineBreakRegex), u = 1.25 * a().state.noteMargin;
|
|
51
|
-
for (let e of l) {
|
|
52
|
-
let r = e.trim();
|
|
53
|
-
if (r.length > 0) {
|
|
54
|
-
let e = s.append("tspan");
|
|
55
|
-
if (e.text(r), u === 0) {
|
|
56
|
-
let t = e.node().getBBox();
|
|
57
|
-
u += t.height;
|
|
58
|
-
}
|
|
59
|
-
o += u, e.attr("x", t + a().state.noteMargin), e.attr("y", n + o + 1.25 * a().state.noteMargin);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
textWidth: s.node().getBBox().width,
|
|
64
|
-
textHeight: o
|
|
65
|
-
};
|
|
66
|
-
}, "_drawLongText"), C = /* @__PURE__ */ e((e, t) => {
|
|
67
|
-
t.attr("class", "state-note");
|
|
68
|
-
let n = t.append("rect").attr("x", 0).attr("y", a().state.padding), { textWidth: r, textHeight: i } = S(e, 0, 0, t.append("g"));
|
|
69
|
-
return n.attr("height", i + 2 * a().state.noteMargin), n.attr("width", r + a().state.noteMargin * 2), n;
|
|
70
|
-
}, "drawNote"), w = /* @__PURE__ */ e(function(e, t) {
|
|
71
|
-
let n = t.id, r = {
|
|
72
|
-
id: n,
|
|
73
|
-
label: t.id,
|
|
74
|
-
width: 0,
|
|
75
|
-
height: 0
|
|
76
|
-
}, i = e.append("g").attr("id", n).attr("class", "stateGroup");
|
|
77
|
-
t.type === "start" && h(i), t.type === "end" && b(i), (t.type === "fork" || t.type === "join") && x(i, t), t.type === "note" && C(t.note.text, i), t.type === "divider" && g(i), t.type === "default" && t.descriptions.length === 0 && _(i, t), t.type === "default" && t.descriptions.length > 0 && v(i, t);
|
|
78
|
-
let o = i.node().getBBox();
|
|
79
|
-
return r.width = o.width + 2 * a().state.padding, r.height = o.height + 2 * a().state.padding, r;
|
|
80
|
-
}, "drawState"), T = 0, E = /* @__PURE__ */ e(function(r, o, u) {
|
|
81
|
-
let d = /* @__PURE__ */ e(function(e) {
|
|
82
|
-
switch (e) {
|
|
83
|
-
case m.relationType.AGGREGATION: return "aggregation";
|
|
84
|
-
case m.relationType.EXTENSION: return "extension";
|
|
85
|
-
case m.relationType.COMPOSITION: return "composition";
|
|
86
|
-
case m.relationType.DEPENDENCY: return "dependency";
|
|
87
|
-
}
|
|
88
|
-
}, "getRelationType");
|
|
89
|
-
o.points = o.points.filter((e) => !Number.isNaN(e.y));
|
|
90
|
-
let f = o.points, p = c().x(function(e) {
|
|
91
|
-
return e.x;
|
|
92
|
-
}).y(function(e) {
|
|
93
|
-
return e.y;
|
|
94
|
-
}).curve(s), h = r.append("path").attr("d", p(f)).attr("id", "edge" + T).attr("class", "transition"), g = "";
|
|
95
|
-
if (a().state.arrowMarkerAbsolute && (g = n(!0)), h.attr("marker-end", "url(" + g + "#" + d(m.relationType.DEPENDENCY) + "End)"), u.title !== void 0) {
|
|
96
|
-
let e = r.append("g").attr("class", "stateLabel"), { x: n, y: s } = l.calcLabelPosition(o.points), c = i.getRows(u.title), d = 0, f = [], p = 0, m = 0;
|
|
97
|
-
for (let r = 0; r <= c.length; r++) {
|
|
98
|
-
let i = e.append("text").attr("text-anchor", "middle").text(c[r]).attr("x", n).attr("y", s + d), a = i.node().getBBox();
|
|
99
|
-
p = Math.max(p, a.width), m = Math.min(m, a.x), t.info(a.x, n, s + d), d === 0 && (d = i.node().getBBox().height, t.info("Title height", d, s)), f.push(i);
|
|
100
|
-
}
|
|
101
|
-
let h = d * c.length;
|
|
102
|
-
if (c.length > 1) {
|
|
103
|
-
let e = (c.length - 1) * d * .5;
|
|
104
|
-
f.forEach((t, n) => t.attr("y", s + n * d - e)), h = d * c.length;
|
|
105
|
-
}
|
|
106
|
-
let g = e.node().getBBox();
|
|
107
|
-
e.insert("rect", ":first-child").attr("class", "box").attr("x", n - p / 2 - a().state.padding / 2).attr("y", s - h / 2 - a().state.padding / 2 - 3.5).attr("width", p + a().state.padding).attr("height", h + a().state.padding), t.info(g);
|
|
108
|
-
}
|
|
109
|
-
T++;
|
|
110
|
-
}, "drawEdge"), D, O = {}, k = /* @__PURE__ */ e(function() {}, "setConf"), A = /* @__PURE__ */ e(function(e) {
|
|
111
|
-
e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
112
|
-
}, "insertMarkers"), j = /* @__PURE__ */ e(function(e, n, i, s) {
|
|
113
|
-
D = a().state;
|
|
114
|
-
let c = a().securityLevel, l;
|
|
115
|
-
c === "sandbox" && (l = o("#i" + n));
|
|
116
|
-
let u = o(c === "sandbox" ? l.nodes()[0].contentDocument.body : "body"), d = c === "sandbox" ? l.nodes()[0].contentDocument : document;
|
|
117
|
-
t.debug("Rendering diagram " + e);
|
|
118
|
-
let f = u.select(`[id='${n}']`);
|
|
119
|
-
A(f), N(s.db.getRootDoc(), f.append("g").attr("id", n + "-root"), void 0, !1, u, d, s);
|
|
120
|
-
let p = D.padding, m = f.node().getBBox(), h = m.width + p * 2, g = m.height + p * 2;
|
|
121
|
-
r(f, g, h * 1.75, D.useMaxWidth), f.attr("viewBox", `${m.x - D.padding} ${m.y - D.padding} ` + h + " " + g);
|
|
122
|
-
}, "draw"), M = /* @__PURE__ */ e((e) => e ? e.length * D.fontSizeFactor : 1, "getLabelWidth"), N = /* @__PURE__ */ e((e, n, r, a, o, s, c) => {
|
|
123
|
-
let l = new u({
|
|
124
|
-
compound: !0,
|
|
125
|
-
multigraph: !0
|
|
126
|
-
}), f, p = !0;
|
|
127
|
-
for (f = 0; f < e.length; f++) if (e[f].stmt === "relation") {
|
|
128
|
-
p = !1;
|
|
129
|
-
break;
|
|
130
|
-
}
|
|
131
|
-
r ? l.setGraph({
|
|
132
|
-
rankdir: "LR",
|
|
133
|
-
multigraph: !0,
|
|
134
|
-
compound: !0,
|
|
135
|
-
ranker: "tight-tree",
|
|
136
|
-
ranksep: p ? 1 : D.edgeLengthFactor,
|
|
137
|
-
nodeSep: p ? 1 : 50,
|
|
138
|
-
isMultiGraph: !0
|
|
139
|
-
}) : l.setGraph({
|
|
140
|
-
rankdir: "TB",
|
|
141
|
-
multigraph: !0,
|
|
142
|
-
compound: !0,
|
|
143
|
-
ranksep: p ? 1 : D.edgeLengthFactor,
|
|
144
|
-
nodeSep: p ? 1 : 50,
|
|
145
|
-
ranker: "tight-tree",
|
|
146
|
-
isMultiGraph: !0
|
|
147
|
-
}), l.setDefaultEdgeLabel(function() {
|
|
148
|
-
return {};
|
|
149
|
-
});
|
|
150
|
-
let m = c.db.getStates(), h = c.db.getRelations(), g = Object.keys(m);
|
|
151
|
-
for (let e of g) {
|
|
152
|
-
let t = m[e];
|
|
153
|
-
r && (t.parentId = r);
|
|
154
|
-
let i;
|
|
155
|
-
if (t.doc) {
|
|
156
|
-
let e = n.append("g").attr("id", t.id).attr("class", "stateGroup");
|
|
157
|
-
i = N(t.doc, e, t.id, !a, o, s, c);
|
|
158
|
-
{
|
|
159
|
-
e = y(e, t, a);
|
|
160
|
-
let n = e.node().getBBox();
|
|
161
|
-
i.width = n.width, i.height = n.height + D.padding / 2, O[t.id] = { y: D.compositTitleSize };
|
|
162
|
-
}
|
|
163
|
-
} else i = w(n, t, l);
|
|
164
|
-
if (t.note) {
|
|
165
|
-
let e = w(n, {
|
|
166
|
-
descriptions: [],
|
|
167
|
-
id: t.id + "-note",
|
|
168
|
-
note: t.note,
|
|
169
|
-
type: "note"
|
|
170
|
-
}, l);
|
|
171
|
-
t.note.position === "left of" ? (l.setNode(i.id + "-note", e), l.setNode(i.id, i)) : (l.setNode(i.id, i), l.setNode(i.id + "-note", e)), l.setParent(i.id, i.id + "-group"), l.setParent(i.id + "-note", i.id + "-group");
|
|
172
|
-
} else l.setNode(i.id, i);
|
|
173
|
-
}
|
|
174
|
-
t.debug("Count=", l.nodeCount(), l);
|
|
175
|
-
let _ = 0;
|
|
176
|
-
h.forEach(function(e) {
|
|
177
|
-
_++, t.debug("Setting edge", e), l.setEdge(e.id1, e.id2, {
|
|
178
|
-
relation: e,
|
|
179
|
-
width: M(e.title),
|
|
180
|
-
height: D.labelHeight * i.getRows(e.title).length,
|
|
181
|
-
labelpos: "c"
|
|
182
|
-
}, "id" + _);
|
|
183
|
-
}), d(l), t.debug("Graph after layout", l.nodes());
|
|
184
|
-
let v = n.node();
|
|
185
|
-
l.nodes().forEach(function(e) {
|
|
186
|
-
e !== void 0 && l.node(e) !== void 0 ? (t.warn("Node " + e + ": " + JSON.stringify(l.node(e))), o.select("#" + v.id + " #" + e).attr("transform", "translate(" + (l.node(e).x - l.node(e).width / 2) + "," + (l.node(e).y + (O[e] ? O[e].y : 0) - l.node(e).height / 2) + " )"), o.select("#" + v.id + " #" + e).attr("data-x-shift", l.node(e).x - l.node(e).width / 2), s.querySelectorAll("#" + v.id + " #" + e + " .divider").forEach((e) => {
|
|
187
|
-
let t = e.parentElement, n = 0, r = 0;
|
|
188
|
-
t && (t.parentElement && (n = t.parentElement.getBBox().width), r = parseInt(t.getAttribute("data-x-shift"), 10), Number.isNaN(r) && (r = 0)), e.setAttribute("x1", 0 - r + 8), e.setAttribute("x2", n - r - 8);
|
|
189
|
-
})) : t.debug("No Node " + e + ": " + JSON.stringify(l.node(e)));
|
|
190
|
-
});
|
|
191
|
-
let b = v.getBBox();
|
|
192
|
-
l.edges().forEach(function(e) {
|
|
193
|
-
e !== void 0 && l.edge(e) !== void 0 && (t.debug("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(l.edge(e))), E(n, l.edge(e), l.edge(e).relation));
|
|
194
|
-
}), b = v.getBBox();
|
|
195
|
-
let x = {
|
|
196
|
-
id: r || "root",
|
|
197
|
-
label: r || "root",
|
|
198
|
-
width: 0,
|
|
199
|
-
height: 0
|
|
200
|
-
};
|
|
201
|
-
return x.width = b.width + 2 * D.padding, x.height = b.height + 2 * D.padding, t.debug("Doc rendered", x, l), x;
|
|
202
|
-
}, "renderDoc"), P = {
|
|
203
|
-
parser: p,
|
|
204
|
-
get db() {
|
|
205
|
-
return new m(1);
|
|
206
|
-
},
|
|
207
|
-
renderer: {
|
|
208
|
-
setConf: k,
|
|
209
|
-
draw: j
|
|
210
|
-
},
|
|
211
|
-
styles: f,
|
|
212
|
-
init: /* @__PURE__ */ e((e) => {
|
|
213
|
-
e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
214
|
-
}, "init")
|
|
215
|
-
};
|
|
216
|
-
//#endregion
|
|
217
|
-
export { P as diagram };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import "./chunk-CSCIHK7Q.js";
|
|
3
|
-
import "./chunk-5ZQYHXKU.js";
|
|
4
|
-
import "./chunk-BSJP7CBP.js";
|
|
5
|
-
import "./chunk-L5ZTLDWV.js";
|
|
6
|
-
import "./chunk-NZK2D7GU.js";
|
|
7
|
-
import "./chunk-O5CBEL6O.js";
|
|
8
|
-
import "./chunk-3OPIFGDE.js";
|
|
9
|
-
import "./chunk-KSCS5N6A.js";
|
|
10
|
-
import "./chunk-LZXEDZCA.js";
|
|
11
|
-
import "./chunk-55IACEB6.js";
|
|
12
|
-
import "./chunk-2J33WTMH.js";
|
|
13
|
-
import { i as t, n, r, t as i } from "./chunk-AQP2D5EJ.js";
|
|
14
|
-
//#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-BHNVJYJU.mjs
|
|
15
|
-
var a = {
|
|
16
|
-
parser: n,
|
|
17
|
-
get db() {
|
|
18
|
-
return new i(2);
|
|
19
|
-
},
|
|
20
|
-
renderer: r,
|
|
21
|
-
styles: t,
|
|
22
|
-
init: /* @__PURE__ */ e((e) => {
|
|
23
|
-
e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
24
|
-
}, "init")
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
|
-
export { a as diagram };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./asyncToGenerator.js";
|
|
2
|
-
import "./chunk-SRAX5OIU.js";
|
|
3
|
-
import { n, r } from "./chunk-EIO257PC.js";
|
|
4
|
-
//#region node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.2.3_@types+react@19.2.17__@types+reac_20b48e3fb533bfb35e3cd3573f75cb5d/node_modules/@excalidraw/excalidraw/dist/prod/subset-worker.chunk.js
|
|
5
|
-
e();
|
|
6
|
-
var i = import.meta.url ? new URL(import.meta.url) : void 0;
|
|
7
|
-
typeof window > "u" && typeof self < "u" && (self.onmessage = function() {
|
|
8
|
-
var e = t(function* (e) {
|
|
9
|
-
switch (e.data.command) {
|
|
10
|
-
case n.Subset:
|
|
11
|
-
let t = yield r(e.data.arrayBuffer, e.data.codePoints);
|
|
12
|
-
self.postMessage(t, { transfer: [t] });
|
|
13
|
-
break;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
return function(t) {
|
|
17
|
-
return e.apply(this, arguments);
|
|
18
|
-
};
|
|
19
|
-
}());
|
|
20
|
-
//#endregion
|
|
21
|
-
export { i as WorkerUrl };
|