oolong-engine 0.0.3 → 0.0.4
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/dist/ability/delete/DeleteWorker.d.ts.map +1 -1
- package/dist/ability/export/ImageExportDiagnostics.d.ts +32 -0
- package/dist/ability/export/ImageExportDiagnostics.d.ts.map +1 -0
- package/dist/ability/export/pdf/PdfExportWorker.d.ts +40 -0
- package/dist/ability/export/pdf/PdfExportWorker.d.ts.map +1 -0
- package/dist/ability/export/pdf/PdfFontLoader.d.ts +2 -0
- package/dist/ability/export/pdf/PdfFontLoader.d.ts.map +1 -0
- package/dist/ability/formula/FormulaLatexGuard.d.ts +20 -0
- package/dist/ability/formula/FormulaLatexGuard.d.ts.map +1 -0
- package/dist/ability/formula/LatexToSvg.d.ts +12 -2
- package/dist/ability/formula/LatexToSvg.d.ts.map +1 -1
- package/dist/ability/formula/index.d.ts +3 -0
- package/dist/ability/formula/index.d.ts.map +1 -0
- package/dist/ability/index.d.ts +3 -0
- package/dist/ability/index.d.ts.map +1 -1
- package/dist/ability/moveLayer/MoveLayerWorker.d.ts.map +1 -1
- package/dist/ability/resize/WindowResizeWorker.d.ts.map +1 -1
- package/dist/ability/svg/CreateSvgWorker.d.ts +3 -0
- package/dist/ability/svg/CreateSvgWorker.d.ts.map +1 -1
- package/dist/ability/svg/GenSvgBitmapWorker.d.ts.map +1 -1
- package/dist/ability/textInput/textFont/AbsTextFontWorker.d.ts.map +1 -1
- package/dist/ability/textInput/textFont/TextFontSizeWorker.d.ts.map +1 -1
- package/dist/ability/textInput/textParagraphPrefix/TextNormalWorker.d.ts.map +1 -1
- package/dist/ability/textInput/textParagraphPrefix/TextOrderWorker.d.ts.map +1 -1
- package/dist/ability/textInput/textParagraphPrefix/TextQuoteWorker.d.ts.map +1 -1
- package/dist/ability/textInput/textParagraphPrefix/TextUnOrderWorker.d.ts.map +1 -1
- package/dist/action/executor/node/TextFocusExecutor.d.ts.map +1 -1
- package/dist/action/executor/node/remove/RemoveExecutor.d.ts.map +1 -1
- package/dist/action/executor/node/update/UpdateExecutor.d.ts +1 -0
- package/dist/action/executor/node/update/UpdateExecutor.d.ts.map +1 -1
- package/dist/action/executor/node/update/handler/FormulaPropsHandler.d.ts +1 -0
- package/dist/action/executor/node/update/handler/FormulaPropsHandler.d.ts.map +1 -1
- package/dist/action/render/RenderManager.d.ts +5 -0
- package/dist/action/render/RenderManager.d.ts.map +1 -1
- package/dist/app/AppEventContext.d.ts +2 -0
- package/dist/app/AppEventContext.d.ts.map +1 -1
- package/dist/app/OolongApp.d.ts +3 -3
- package/dist/app/OolongApp.d.ts.map +1 -1
- package/dist/app/ai-api/module/AINodeAPI.d.ts +132 -11
- package/dist/app/ai-api/module/AINodeAPI.d.ts.map +1 -1
- package/dist/app/api/OolongAPI.d.ts +16 -0
- package/dist/app/api/OolongAPI.d.ts.map +1 -1
- package/dist/app/api/module/CopyPasteAPI.d.ts +24 -0
- package/dist/app/api/module/CopyPasteAPI.d.ts.map +1 -1
- package/dist/app/api/module/CreateAPI.d.ts +19 -1
- package/dist/app/api/module/CreateAPI.d.ts.map +1 -1
- package/dist/app/api/module/SwitchAPI.d.ts +14 -0
- package/dist/app/api/module/SwitchAPI.d.ts.map +1 -1
- package/dist/app/api/module/layout/LayoutAPI.d.ts +47 -0
- package/dist/app/api/module/layout/LayoutAPI.d.ts.map +1 -0
- package/dist/app/api/module/propChange/PropChangeAPI.d.ts +5 -1
- package/dist/app/api/module/propChange/PropChangeAPI.d.ts.map +1 -1
- package/dist/app/api/module/syntax/SyntaxAPI.d.ts.map +1 -1
- package/dist/application/CanvasRender.d.ts +1 -0
- package/dist/application/CanvasRender.d.ts.map +1 -1
- package/dist/application/GMLRender.d.ts +7 -0
- package/dist/application/GMLRender.d.ts.map +1 -1
- package/dist/{arc-BQ0RiW53.js → arc-Dvb9RuGN.js} +33 -33
- package/dist/architecture-PBZL5I3N-BsjgXHEx.js +6 -0
- package/dist/{architectureDiagram-2XIMDMQ5-C6ALHSjU.js → architectureDiagram-2XIMDMQ5-D7Is69IP.js} +4 -4
- package/dist/asyncRender/AsyncRenderNodeManager.d.ts.map +1 -1
- package/dist/auxiliary/graphics/preview/PreviewGraphics.d.ts.map +1 -1
- package/dist/{blockDiagram-WCTKOSBZ-8qV_lgsa.js → blockDiagram-WCTKOSBZ-GUzvfW6U.js} +3 -3
- package/dist/{c4Diagram-IC4MRINW-BiOZAA9L.js → c4Diagram-IC4MRINW-DhYrnE8z.js} +2 -2
- package/dist/channel-CT6FpYEZ.js +5 -0
- package/dist/{chunk-4BX2VUAB-C9R2rIjS.js → chunk-4BX2VUAB-zaPS7TSb.js} +1 -1
- package/dist/{chunk-55IACEB6-Bp3vChuk.js → chunk-55IACEB6-BrK3ifIg.js} +1 -1
- package/dist/{chunk-FMBD7UC4-BUMToluv.js → chunk-FMBD7UC4-BVjhMdw1.js} +1 -1
- package/dist/{chunk-JSJVCQXG-DXXsAt16.js → chunk-JSJVCQXG-9zNTOA62.js} +1 -1
- package/dist/{chunk-KX2RTZJC-DbLmjTNe.js → chunk-KX2RTZJC-D0YZPq7w.js} +1 -1
- package/dist/{chunk-NQ4KR5QH-Dd6Ne4x8.js → chunk-NQ4KR5QH-D0H5LJ70.js} +22 -22
- package/dist/{chunk-QZHKN3VN-Q3PAlxxo.js → chunk-QZHKN3VN-DiSQK9Ey.js} +1 -1
- package/dist/{chunk-WL4C6EOR-5UEAHDMO.js → chunk-WL4C6EOR-DvQXGWh1.js} +45 -44
- package/dist/{classDiagram-VBA2DB6C-BtBSXwO6.js → classDiagram-VBA2DB6C-BvpG0U9j.js} +2 -2
- package/dist/{classDiagram-v2-RAHNMMFH-BtBSXwO6.js → classDiagram-v2-RAHNMMFH-BvpG0U9j.js} +2 -2
- package/dist/component/canvas/dhp/DHPCanvas.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-Cr3kBFLQ.js → cose-bilkent-S5V4N54A-DAuQiwAY.js} +2 -2
- package/dist/{dagre-KLK3FWXG-Cx_a9Dpr.js → dagre-KLK3FWXG-B1LnQ4Nh.js} +15 -15
- package/dist/{diagram-E7M64L7V-Daamug9n.js → diagram-E7M64L7V-DYD7i37U.js} +21 -21
- package/dist/{diagram-IFDJBPK2-BUeGzqbs.js → diagram-IFDJBPK2-BLpeLjoP.js} +13 -13
- package/dist/{diagram-P4PSJMXO-BeJkYuvS.js → diagram-P4PSJMXO-DdGmWn7A.js} +9 -9
- package/dist/engine.js +302 -294
- package/dist/engine.umd.cjs +757 -462
- package/dist/{erDiagram-INFDFZHY-DGuIco1D.js → erDiagram-INFDFZHY-BGJ4Sx6M.js} +4 -4
- package/dist/{flowDiagram-PKNHOUZH-BMOCC0tz.js → flowDiagram-PKNHOUZH-CfIgi5h-.js} +16 -15
- package/dist/{ganttDiagram-A5KZAMGK-D3KHPb6N.js → ganttDiagram-A5KZAMGK-C2mK-u4N.js} +98 -98
- package/dist/gitGraph-HDMCJU4V-UybiZcds.js +6 -0
- package/dist/{gitGraphDiagram-K3NZZRJ6-9uiz_n5o.js → gitGraphDiagram-K3NZZRJ6-CsaLOmfL.js} +4 -4
- package/dist/graphics/IDrawer.d.ts +8 -0
- package/dist/graphics/IDrawer.d.ts.map +1 -1
- package/dist/graphics/OolongNode.d.ts +1 -0
- package/dist/graphics/OolongNode.d.ts.map +1 -1
- package/dist/graphics/OolongSVGNode.d.ts +1 -0
- package/dist/graphics/OolongSVGNode.d.ts.map +1 -1
- package/dist/graphics/OolongSection.d.ts +1 -0
- package/dist/graphics/OolongSection.d.ts.map +1 -1
- package/dist/graphics/drawer/AbsDrawer.d.ts +14 -0
- package/dist/graphics/drawer/AbsDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/CloudDrawer.d.ts +1 -0
- package/dist/graphics/drawer/CloudDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/CrossDrawer.d.ts +1 -4
- package/dist/graphics/drawer/CrossDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/EllipseDrawer.d.ts +1 -0
- package/dist/graphics/drawer/EllipseDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/HexagonDrawer.d.ts +1 -4
- package/dist/graphics/drawer/HexagonDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/LingxingDrawer.d.ts +2 -4
- package/dist/graphics/drawer/LingxingDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/OctagonDrawer.d.ts +1 -4
- package/dist/graphics/drawer/OctagonDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/ParallelogramDrawer.d.ts +1 -4
- package/dist/graphics/drawer/ParallelogramDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/PentagonDrawer.d.ts +1 -4
- package/dist/graphics/drawer/PentagonDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/RectDrawer.d.ts +1 -0
- package/dist/graphics/drawer/RectDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/RoundRectDrawer.d.ts +1 -0
- package/dist/graphics/drawer/RoundRectDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/StarDrawer.d.ts +1 -4
- package/dist/graphics/drawer/StarDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/TrapezoidDrawer.d.ts +1 -4
- package/dist/graphics/drawer/TrapezoidDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/TriangleDrawer.d.ts +1 -4
- package/dist/graphics/drawer/TriangleDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/chart/EditableDrawer.d.ts +4 -0
- package/dist/graphics/drawer/chart/EditableDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/chart/PieDrawer.d.ts +5 -0
- package/dist/graphics/drawer/chart/PieDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/chart/RingDrawer.d.ts +6 -0
- package/dist/graphics/drawer/chart/RingDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/line/BrokenLineDrawer.d.ts +1 -0
- package/dist/graphics/drawer/line/BrokenLineDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/line/CurveDrawer.d.ts +1 -0
- package/dist/graphics/drawer/line/CurveDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/line/PolyLineDrawer.d.ts +1 -0
- package/dist/graphics/drawer/line/PolyLineDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/line/RoundPolyLineDrawer.d.ts +1 -0
- package/dist/graphics/drawer/line/RoundPolyLineDrawer.d.ts.map +1 -1
- package/dist/graphics/drawer/line/SimpleLineDrawer.d.ts +1 -0
- package/dist/graphics/drawer/line/SimpleLineDrawer.d.ts.map +1 -1
- package/dist/graphics/editable/OolongEditableNode.d.ts +1 -0
- package/dist/graphics/editable/OolongEditableNode.d.ts.map +1 -1
- package/dist/graphics/editable/OolongPieNode.d.ts +3 -0
- package/dist/graphics/editable/OolongPieNode.d.ts.map +1 -1
- package/dist/graphics/img/AbsImgNode.d.ts +21 -0
- package/dist/graphics/img/AbsImgNode.d.ts.map +1 -1
- package/dist/graphics/line/OolongLine.d.ts +18 -0
- package/dist/graphics/line/OolongLine.d.ts.map +1 -1
- package/dist/graphics/line/arrow/AbsArrowDrawer.d.ts +20 -0
- package/dist/graphics/line/arrow/AbsArrowDrawer.d.ts.map +1 -1
- package/dist/graphics/line/arrow/CircleArrowDrawer.d.ts +1 -0
- package/dist/graphics/line/arrow/CircleArrowDrawer.d.ts.map +1 -1
- package/dist/graphics/line/arrow/DiamondArrowDrawer.d.ts +1 -0
- package/dist/graphics/line/arrow/DiamondArrowDrawer.d.ts.map +1 -1
- package/dist/graphics/line/arrow/EmptyCircleArrowDrawer.d.ts +1 -0
- package/dist/graphics/line/arrow/EmptyCircleArrowDrawer.d.ts.map +1 -1
- package/dist/graphics/line/arrow/EmptyDiamondArrowDrawer.d.ts +1 -0
- package/dist/graphics/line/arrow/EmptyDiamondArrowDrawer.d.ts.map +1 -1
- package/dist/graphics/line/arrow/EmptyTriangleArrowDrawer.d.ts +1 -0
- package/dist/graphics/line/arrow/EmptyTriangleArrowDrawer.d.ts.map +1 -1
- package/dist/graphics/line/arrow/SimpleArrowDrawer.d.ts +1 -0
- package/dist/graphics/line/arrow/SimpleArrowDrawer.d.ts.map +1 -1
- package/dist/graphics/line/arrow/TriangleArrowDrawer.d.ts +1 -0
- package/dist/graphics/line/arrow/TriangleArrowDrawer.d.ts.map +1 -1
- package/dist/graphics/mathFormula/MathFormula.d.ts +1 -0
- package/dist/graphics/mathFormula/MathFormula.d.ts.map +1 -1
- package/dist/graphics/node/GraphicNode.d.ts +15 -0
- package/dist/graphics/node/GraphicNode.d.ts.map +1 -1
- package/dist/graphics/props/FormulaProps.d.ts +4 -0
- package/dist/graphics/props/FormulaProps.d.ts.map +1 -1
- package/dist/graphics/props/TextProps.d.ts +5 -0
- package/dist/graphics/props/TextProps.d.ts.map +1 -1
- package/dist/graphics/props/chart/ChartProps.d.ts +7 -0
- package/dist/graphics/props/chart/ChartProps.d.ts.map +1 -1
- package/dist/graphics/utils/GraphicUtils.d.ts +11 -0
- package/dist/graphics/utils/GraphicUtils.d.ts.map +1 -1
- package/dist/graphics/utils/SvgUtils.d.ts +39 -0
- package/dist/graphics/utils/SvgUtils.d.ts.map +1 -0
- package/dist/graphics/widget/checkbox/OolongCheckbox.d.ts +2 -0
- package/dist/graphics/widget/checkbox/OolongCheckbox.d.ts.map +1 -1
- package/dist/graphics/widget/checkbox/OolongCheckboxText.d.ts +1 -0
- package/dist/graphics/widget/checkbox/OolongCheckboxText.d.ts.map +1 -1
- package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
- package/dist/idl/capInfo/IFormulaProps.d.ts +4 -0
- package/dist/idl/capInfo/IFormulaProps.d.ts.map +1 -1
- package/dist/idl/capInfo/chart/BarInfo.d.ts +6 -0
- package/dist/idl/capInfo/chart/BarInfo.d.ts.map +1 -1
- package/dist/idl/capInfo/chart/ChartColorConfig.d.ts +4 -0
- package/dist/idl/capInfo/chart/ChartColorConfig.d.ts.map +1 -0
- package/dist/idl/capInfo/chart/ChartStyleType.d.ts +22 -0
- package/dist/idl/capInfo/chart/ChartStyleType.d.ts.map +1 -0
- package/dist/idl/capInfo/chart/LineInfo.d.ts +2 -0
- package/dist/idl/capInfo/chart/LineInfo.d.ts.map +1 -1
- package/dist/idl/capInfo/chart/PieInfo.d.ts +1 -0
- package/dist/idl/capInfo/chart/PieInfo.d.ts.map +1 -1
- package/dist/idl/capInfo/chart/ScatterInfo.d.ts +2 -0
- package/dist/idl/capInfo/chart/ScatterInfo.d.ts.map +1 -1
- package/dist/idl/index.d.ts +2 -0
- package/dist/idl/index.d.ts.map +1 -1
- package/dist/index-BRgAJnwv.js +57071 -0
- package/dist/index.es-2qd1RRW-.js +5631 -0
- package/dist/info-3K5VOQVL-78flST2I.js +6 -0
- package/dist/{infoDiagram-LFFYTUFH-DgiCUqNo.js → infoDiagram-LFFYTUFH-C7KoISIK.js} +2 -2
- package/dist/{ishikawaDiagram-PHBUUO56-BAOksr4U.js → ishikawaDiagram-PHBUUO56-0xSCsnmA.js} +27 -27
- package/dist/{journeyDiagram-4ABVD52K-CeC4IUKr.js → journeyDiagram-4ABVD52K-B8QS_tUN.js} +4 -4
- package/dist/{kanban-definition-K7BYSVSG-BxvbSGBe.js → kanban-definition-K7BYSVSG-CISgdl5Z.js} +46 -46
- package/dist/{mermaid-parser.core-Df9ZUR77.js → mermaid-parser.core-Z-sfRN-r.js} +8 -8
- package/dist/{mermaid.core-CYBWUA0z.js → mermaid.core-CLtuKi0e.js} +3869 -4418
- package/dist/{mindmap-definition-YRQLILUH-DGALSA7L.js → mindmap-definition-YRQLILUH-qZi1auIt.js} +19 -19
- package/dist/packet-RMMSAZCW-CWMgbydz.js +6 -0
- package/dist/parse-engine/bar-chart/BarParseEngine.d.ts +4 -0
- package/dist/parse-engine/bar-chart/BarParseEngine.d.ts.map +1 -1
- package/dist/parse-engine/line-chart/LineParseEngine.d.ts.map +1 -1
- package/dist/parse-engine/mermaid/layout-engine/DAGLayoutEngine.d.ts +23 -0
- package/dist/parse-engine/mermaid/layout-engine/DAGLayoutEngine.d.ts.map +1 -1
- package/dist/parse-engine/pie/PieParseEngine.d.ts +27 -0
- package/dist/parse-engine/pie/PieParseEngine.d.ts.map +1 -1
- package/dist/parse-engine/scatter-chart/ScatterParseEngine.d.ts.map +1 -1
- package/dist/parse-engine/util/ParserUtils.d.ts +8 -1
- package/dist/parse-engine/util/ParserUtils.d.ts.map +1 -1
- package/dist/pie-UPGHQEXC-DpBgTDK3.js +6 -0
- package/dist/{pieDiagram-SKSYHLDU-Bz-yFOVt.js → pieDiagram-SKSYHLDU-C6NZe1Xj.js} +32 -32
- package/dist/plugin-copy-paste/copy-paste/paste/oolongData/pasteNode/posHandler/EmptyPlacePosHandler.d.ts.map +1 -1
- package/dist/plugin-copy-paste/copy-paste/paste/plainText/RichTextSelectionPasteHandler.d.ts +1 -1
- package/dist/plugin-copy-paste/copy-paste/paste/plainText/RichTextSelectionPasteHandler.d.ts.map +1 -1
- package/dist/plugin-copy-paste/copy-paste/paste/svg/OolongSvgPasteHandler.d.ts +8 -1
- package/dist/plugin-copy-paste/copy-paste/paste/svg/OolongSvgPasteHandler.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/basic/DbClickMode.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/basic/TripleClickMode.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/click/handler/AnchorQuickCreateHandler.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/click/handler/ClickExpandShapeHandler.d.ts +2 -0
- package/dist/plugin-pointer/interact/default/click/handler/ClickExpandShapeHandler.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/create/CreateLineMainMode.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/create/CreateMainMode.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/create/CreateRectMode.d.ts +1 -1
- package/dist/plugin-pointer/interact/default/create/CreateRectMode.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/create/CreateTextMode.d.ts +1 -1
- package/dist/plugin-pointer/interact/default/create/CreateTextMode.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/create/line/CreateLineMode.d.ts +1 -1
- package/dist/plugin-pointer/interact/default/create/line/CreateLineMode.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/create/normal/grab/CreateUpProcessor.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/AbsCreateUpHandler.d.ts +2 -0
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/AbsCreateUpHandler.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpChartSectionHandler.d.ts +1 -0
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpChartSectionHandler.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpResourceHandler.d.ts +1 -0
- package/dist/plugin-pointer/interact/default/create/normal/grab/handler/CreateUpResourceHandler.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/create/section/CreateSectionMode.d.ts +1 -1
- package/dist/plugin-pointer/interact/default/create/section/CreateSectionMode.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/drag/DragProcessor.d.ts +2 -0
- package/dist/plugin-pointer/interact/default/drag/DragProcessor.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/group/handler/NormalGroupHandler.d.ts +1 -0
- package/dist/plugin-pointer/interact/default/group/handler/NormalGroupHandler.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/normal/hover/HoverProcessor.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/default/stretch/StretchProcessorV2.d.ts +2 -1
- package/dist/plugin-pointer/interact/default/stretch/StretchProcessorV2.d.ts.map +1 -1
- package/dist/plugin-pointer/interact/viewOnly/ViewOnlyMode.d.ts.map +1 -1
- package/dist/plugin-resize/WindowResizePlugin.d.ts +1 -0
- package/dist/plugin-resize/WindowResizePlugin.d.ts.map +1 -1
- package/dist/preview/PreviewQuickCreateManager.d.ts.map +1 -1
- package/dist/preview/previewCreate/handler/PreviewChartSectionHandler.d.ts +5 -1
- package/dist/preview/previewCreate/handler/PreviewChartSectionHandler.d.ts.map +1 -1
- package/dist/preview/previewCreate/handler/PreviewMathFormulaHandler.d.ts +2 -1
- package/dist/preview/previewCreate/handler/PreviewMathFormulaHandler.d.ts.map +1 -1
- package/dist/purify.es-BpFm6ZGf.js +553 -0
- package/dist/{quadrantDiagram-337W2JSQ-BoIKPBpy.js → quadrantDiagram-337W2JSQ-Cf-2ozrv.js} +1 -1
- package/dist/radar-KQ55EAFF-Cu5Ei-Fy.js +6 -0
- package/dist/renderText/RenderText.d.ts +1 -0
- package/dist/renderText/RenderText.d.ts.map +1 -1
- package/dist/renderText/TextBlock.d.ts +4 -0
- package/dist/renderText/TextBlock.d.ts.map +1 -1
- package/dist/renderText/TextCharacter.d.ts +3 -1
- package/dist/renderText/TextCharacter.d.ts.map +1 -1
- package/dist/renderText/TextLine.d.ts +1 -0
- package/dist/renderText/TextLine.d.ts.map +1 -1
- package/dist/renderText/TextParagraph.d.ts +1 -0
- package/dist/renderText/TextParagraph.d.ts.map +1 -1
- package/dist/renderText/editInfo/baseprops/OolongNodeModifyWorker.d.ts.map +1 -1
- package/dist/renderText/paraStyle/IParagraphStyleProp.d.ts +1 -0
- package/dist/renderText/paraStyle/IParagraphStyleProp.d.ts.map +1 -1
- package/dist/renderText/paraStyle/PrefixDrawer.d.ts +1 -0
- package/dist/renderText/paraStyle/PrefixDrawer.d.ts.map +1 -1
- package/dist/renderText/paraStyle/TextQuoteLineWorker.d.ts +4 -0
- package/dist/renderText/paraStyle/TextQuoteLineWorker.d.ts.map +1 -1
- package/dist/{requirementDiagram-Z7DCOOCP-BmjGkh2H.js → requirementDiagram-Z7DCOOCP-CuOF47GX.js} +3 -3
- package/dist/{sankeyDiagram-WA2Y5GQK-CCalsEo-.js → sankeyDiagram-WA2Y5GQK-DO1mUPyq.js} +65 -65
- package/dist/{sequenceDiagram-2WXFIKYE-C7Q6NaRl.js → sequenceDiagram-2WXFIKYE-DHpeSu5J.js} +3 -3
- package/dist/{stateDiagram-RAJIS63D-DpTZFw3b.js → stateDiagram-RAJIS63D-DVzCgrpp.js} +11 -11
- package/dist/{stateDiagram-v2-FVOUBMTO-0vsxUPPH.js → stateDiagram-v2-FVOUBMTO-D_lBnjpu.js} +2 -2
- package/dist/{timeline-definition-YZTLITO2-BKTXWUrb.js → timeline-definition-YZTLITO2-BIpxM9AM.js} +25 -25
- package/dist/treemap-KZPCXAKY-YWs5tyJW.js +6 -0
- package/dist/{vennDiagram-LZ73GAT5-BlXB90A7.js → vennDiagram-LZ73GAT5-Bl0gRBuS.js} +118 -118
- package/dist/{xychartDiagram-JWTSCODW-DLM68KZ7.js → xychartDiagram-JWTSCODW-BiNHE4Cc.js} +31 -31
- package/package.json +4 -3
- package/dist/architecture-PBZL5I3N-Cjhd8To5.js +0 -6
- package/dist/channel-Dk-8zCVP.js +0 -5
- package/dist/gitGraph-HDMCJU4V-BF-0OQyY.js +0 -6
- package/dist/index-DUkSgUzW.js +0 -42183
- package/dist/info-3K5VOQVL-BLrlEFQe.js +0 -6
- package/dist/packet-RMMSAZCW-BMJZtbSC.js +0 -6
- package/dist/pie-UPGHQEXC-DQFgLqV3.js +0 -6
- package/dist/radar-KQ55EAFF-D6kEG9zs.js +0 -6
- package/dist/treemap-KZPCXAKY-CIr8Ze2e.js +0 -6
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { g as et } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { c as tt } from "./chunk-JSJVCQXG-
|
|
3
|
-
import { g as st } from "./chunk-55IACEB6-
|
|
4
|
-
import { s as it } from "./chunk-KX2RTZJC-
|
|
5
|
-
import { _ as A, l as Oe, c as F, n as at, r as rt, u as we,
|
|
1
|
+
import { g as et } from "./chunk-FMBD7UC4-BVjhMdw1.js";
|
|
2
|
+
import { c as tt } from "./chunk-JSJVCQXG-9zNTOA62.js";
|
|
3
|
+
import { g as st } from "./chunk-55IACEB6-BrK3ifIg.js";
|
|
4
|
+
import { s as it } from "./chunk-KX2RTZJC-D0YZPq7w.js";
|
|
5
|
+
import { _ as A, l as Oe, c as F, n as at, r as rt, u as we, b as nt, a as ut, s as lt, g as ot, o as ct, p as ht, j as v, x as dt, v as pt, h as At, O as G } from "./mermaid.core-CLtuKi0e.js";
|
|
6
6
|
import { s as de } from "./transform-QfIdy88w.js";
|
|
7
|
+
import ft from "./purify.es-BpFm6ZGf.js";
|
|
7
8
|
var Ve = function() {
|
|
8
9
|
var s = /* @__PURE__ */ A(function(O, c, h, p) {
|
|
9
10
|
for (h = h || {}, p = O.length; p--; h[O[p]] = c) ;
|
|
10
11
|
return h;
|
|
11
|
-
}, "o"), i = [1, 18], a = [1, 19], u = [1, 20], l = [1, 41], r = [1, 42], o = [1, 26], f = [1, 24],
|
|
12
|
+
}, "o"), i = [1, 18], a = [1, 19], u = [1, 20], l = [1, 41], r = [1, 42], o = [1, 26], f = [1, 24], m = [1, 25], k = [1, 32], B = [1, 33], Ae = [1, 34], C = [1, 45], fe = [1, 35], ge = [1, 36], me = [1, 37], Ce = [1, 38], be = [1, 27], Ee = [1, 28], ye = [1, 29], ke = [1, 30], Te = [1, 31], b = [1, 44], E = [1, 46], y = [1, 43], T = [1, 47], De = [1, 9], d = [1, 8, 9], ee = [1, 58], te = [1, 59], se = [1, 60], ie = [1, 61], ae = [1, 62], Fe = [1, 63], Be = [1, 64], I = [1, 8, 9, 41], Me = [1, 76], P = [1, 8, 9, 12, 13, 22, 39, 41, 44, 68, 69, 70, 71, 72, 73, 74, 79, 81], re = [1, 8, 9, 12, 13, 18, 20, 22, 39, 41, 44, 50, 60, 68, 69, 70, 71, 72, 73, 74, 79, 81, 86, 100, 102, 103], ne = [13, 60, 86, 100, 102, 103], Y = [13, 60, 73, 74, 86, 100, 102, 103], Pe = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], _e = [1, 101], K = [1, 118], j = [1, 114], Q = [1, 110], W = [1, 116], X = [1, 111], H = [1, 112], q = [1, 113], J = [1, 115], Z = [1, 117], Re = [22, 48, 60, 61, 82, 86, 87, 88, 89, 90], Se = [1, 8, 9, 39, 41, 44], ue = [1, 8, 9, 22], Ge = [1, 147], Ue = [1, 8, 9, 61], x = [1, 8, 9, 22, 48, 60, 61, 82, 86, 87, 88, 89, 90], Ne = {
|
|
12
13
|
trace: /* @__PURE__ */ A(function() {
|
|
13
14
|
}, "trace"),
|
|
14
15
|
yy: {},
|
|
@@ -237,7 +238,7 @@ var Ve = function() {
|
|
|
237
238
|
break;
|
|
238
239
|
}
|
|
239
240
|
}, "anonymous"),
|
|
240
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 49: o, 51: f, 52:
|
|
241
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 49: o, 51: f, 52: m, 54: k, 56: B, 57: Ae, 60: C, 62: fe, 63: ge, 64: me, 65: Ce, 75: be, 76: Ee, 78: ye, 82: ke, 83: Te, 86: b, 100: E, 102: y, 103: T }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(De, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(d, [2, 19], { 22: [1, 50] }), s(d, [2, 21]), s(d, [2, 22]), s(d, [2, 23]), s(d, [2, 24]), s(d, [2, 25]), s(d, [2, 26]), s(d, [2, 27]), s(d, [2, 28]), s(d, [2, 29]), s(d, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, s(d, [2, 33]), s(d, [2, 56], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: ee, 69: te, 70: se, 71: ie, 72: ae, 73: Fe, 74: Be }), { 39: [1, 65] }, s(I, [2, 43], { 39: [1, 67], 44: [1, 66] }), s(d, [2, 58]), s(d, [2, 59]), { 16: 68, 60: C, 86: b, 100: E, 102: y }, { 16: 39, 17: 40, 19: 69, 60: C, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 70, 60: C, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 71, 60: C, 86: b, 100: E, 102: y, 103: T }, { 60: [1, 72] }, { 13: [1, 73] }, { 16: 39, 17: 40, 19: 74, 60: C, 86: b, 100: E, 102: y, 103: T }, { 13: Me, 55: 75 }, { 58: 77, 60: [1, 78] }, s(d, [2, 69]), s(d, [2, 70]), s(d, [2, 71]), s(d, [2, 72]), s(P, [2, 13], { 16: 39, 17: 40, 19: 80, 18: [1, 79], 20: [1, 81], 60: C, 86: b, 100: E, 102: y, 103: T }), s(P, [2, 15], { 20: [1, 82] }), { 15: 83, 16: 84, 17: 85, 60: C, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 86, 60: C, 86: b, 100: E, 102: y, 103: T }, s(re, [2, 126]), s(re, [2, 127]), s(re, [2, 128]), s(re, [2, 129]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 130]), s(De, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 19: 21, 38: 22, 43: 23, 16: 39, 17: 40, 5: 87, 33: i, 35: a, 37: u, 42: l, 46: r, 49: o, 51: f, 52: m, 54: k, 56: B, 57: Ae, 60: C, 62: fe, 63: ge, 64: me, 65: Ce, 75: be, 76: Ee, 78: ye, 82: ke, 83: Te, 86: b, 100: E, 102: y, 103: T }), { 5: 88, 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 49: o, 51: f, 52: m, 54: k, 56: B, 57: Ae, 60: C, 62: fe, 63: ge, 64: me, 65: Ce, 75: be, 76: Ee, 78: ye, 82: ke, 83: Te, 86: b, 100: E, 102: y, 103: T }, s(d, [2, 20]), s(d, [2, 31]), s(d, [2, 32]), { 13: [1, 90], 16: 39, 17: 40, 19: 89, 60: C, 86: b, 100: E, 102: y, 103: T }, { 53: 91, 66: 56, 67: 57, 68: ee, 69: te, 70: se, 71: ie, 72: ae, 73: Fe, 74: Be }, s(d, [2, 57]), { 67: 92, 73: Fe, 74: Be }, s(ne, [2, 76], { 66: 93, 68: ee, 69: te, 70: se, 71: ie, 72: ae }), s(Y, [2, 77]), s(Y, [2, 78]), s(Y, [2, 79]), s(Y, [2, 80]), s(Y, [2, 81]), s(Pe, [2, 82]), s(Pe, [2, 83]), { 8: [1, 95], 24: 96, 30: 97, 40: 94, 43: 23, 46: r, 54: k, 56: B }, { 16: 98, 60: C, 86: b, 100: E, 102: y }, { 41: [1, 100], 45: 99, 51: _e }, { 50: [1, 102] }, { 13: [1, 103] }, { 13: [1, 104] }, { 79: [1, 105], 81: [1, 106] }, { 22: K, 48: j, 59: 107, 60: Q, 82: W, 84: 108, 85: 109, 86: X, 87: H, 88: q, 89: J, 90: Z }, { 60: [1, 119] }, { 13: Me, 55: 120 }, s(I, [2, 65]), s(I, [2, 131]), { 22: K, 48: j, 59: 121, 60: Q, 61: [1, 122], 82: W, 84: 108, 85: 109, 86: X, 87: H, 88: q, 89: J, 90: Z }, s(Re, [2, 67]), { 16: 39, 17: 40, 19: 123, 60: C, 86: b, 100: E, 102: y, 103: T }, s(P, [2, 16]), s(P, [2, 17]), s(P, [2, 18]), { 39: [2, 36] }, { 15: 125, 16: 84, 17: 85, 18: [1, 124], 39: [2, 9], 60: C, 86: b, 100: E, 102: y, 103: T }, { 39: [2, 10] }, s(Se, [2, 48], { 11: 126, 12: [1, 127] }), s(De, [2, 7]), { 9: [1, 128] }, s(ue, [2, 60]), { 16: 39, 17: 40, 19: 129, 60: C, 86: b, 100: E, 102: y, 103: T }, { 13: [1, 131], 16: 39, 17: 40, 19: 130, 60: C, 86: b, 100: E, 102: y, 103: T }, s(ne, [2, 75], { 66: 132, 68: ee, 69: te, 70: se, 71: ie, 72: ae }), s(ne, [2, 74]), { 41: [1, 133] }, { 24: 96, 30: 97, 40: 134, 43: 23, 46: r, 54: k, 56: B }, { 8: [1, 135], 41: [2, 37] }, { 8: [1, 136], 41: [2, 40] }, s(I, [2, 44], { 39: [1, 137] }), { 41: [1, 138] }, s(I, [2, 46]), { 41: [2, 54], 45: 139, 51: _e }, { 16: 39, 17: 40, 19: 140, 60: C, 86: b, 100: E, 102: y, 103: T }, s(d, [2, 84], { 13: [1, 141] }), s(d, [2, 86], { 13: [1, 143], 77: [1, 142] }), s(d, [2, 90], { 13: [1, 144], 80: [1, 145] }), { 13: [1, 146] }, s(d, [2, 98], { 61: Ge }), s(Ue, [2, 100], { 85: 148, 22: K, 48: j, 60: Q, 82: W, 86: X, 87: H, 88: q, 89: J, 90: Z }), s(x, [2, 102]), s(x, [2, 104]), s(x, [2, 105]), s(x, [2, 106]), s(x, [2, 107]), s(x, [2, 108]), s(x, [2, 109]), s(x, [2, 110]), s(x, [2, 111]), s(x, [2, 112]), s(d, [2, 99]), s(I, [2, 64]), s(d, [2, 66], { 61: Ge }), { 60: [1, 149] }, s(P, [2, 14]), { 15: 150, 16: 84, 17: 85, 60: C, 86: b, 100: E, 102: y, 103: T }, { 39: [2, 12] }, s(Se, [2, 49]), { 13: [1, 151] }, { 1: [2, 4] }, s(ue, [2, 62]), s(ue, [2, 61]), { 16: 39, 17: 40, 19: 152, 60: C, 86: b, 100: E, 102: y, 103: T }, s(ne, [2, 73]), s(d, [2, 34]), { 41: [1, 153] }, { 24: 96, 30: 97, 40: 154, 41: [2, 38], 43: 23, 46: r, 54: k, 56: B }, { 24: 96, 30: 97, 40: 155, 41: [2, 41], 43: 23, 46: r, 54: k, 56: B }, { 45: 156, 51: _e }, s(I, [2, 45]), { 41: [2, 55] }, s(d, [2, 53]), s(d, [2, 85]), s(d, [2, 87]), s(d, [2, 88], { 77: [1, 157] }), s(d, [2, 91]), s(d, [2, 92], { 13: [1, 158] }), s(d, [2, 94], { 13: [1, 160], 77: [1, 159] }), { 22: K, 48: j, 60: Q, 82: W, 84: 161, 85: 109, 86: X, 87: H, 88: q, 89: J, 90: Z }, s(x, [2, 103]), s(Re, [2, 68]), { 39: [2, 11] }, { 14: [1, 162] }, s(ue, [2, 63]), s(d, [2, 35]), { 41: [2, 39] }, { 41: [2, 42] }, { 41: [1, 163] }, s(d, [2, 89]), s(d, [2, 93]), s(d, [2, 95]), s(d, [2, 96], { 77: [1, 164] }), s(Ue, [2, 101], { 85: 148, 22: K, 48: j, 60: Q, 82: W, 86: X, 87: H, 88: q, 89: J, 90: Z }), s(Se, [2, 8]), s(I, [2, 47]), s(d, [2, 97])],
|
|
241
242
|
defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 83: [2, 36], 85: [2, 10], 125: [2, 12], 128: [2, 4], 139: [2, 55], 150: [2, 11], 154: [2, 39], 155: [2, 42] },
|
|
242
243
|
parseError: /* @__PURE__ */ A(function(c, h) {
|
|
243
244
|
if (h.recoverable)
|
|
@@ -708,10 +709,10 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Ie =
|
|
|
708
709
|
return A(le, "Parser"), le.prototype = Ne, Ne.Parser = le, new le();
|
|
709
710
|
}();
|
|
710
711
|
Ve.parser = Ve;
|
|
711
|
-
var
|
|
712
|
+
var _t = Ve, Qe = ["#", "+", "~", "-", ""], U, We = (U = class {
|
|
712
713
|
constructor(i, a) {
|
|
713
714
|
this.memberType = a, this.visibility = "", this.classifier = "", this.text = "";
|
|
714
|
-
const u =
|
|
715
|
+
const u = At(i, F());
|
|
715
716
|
this.parseMember(u);
|
|
716
717
|
}
|
|
717
718
|
getDisplayDetails() {
|
|
@@ -755,7 +756,7 @@ var Bt = Ve, Qe = ["#", "+", "~", "-", ""], U, We = (U = class {
|
|
|
755
756
|
return "";
|
|
756
757
|
}
|
|
757
758
|
}
|
|
758
|
-
}, A(U, "ClassMember"), U), pe = "classId-", Xe = 0,
|
|
759
|
+
}, A(U, "ClassMember"), U), pe = "classId-", Xe = 0, M = /* @__PURE__ */ A((s) => v.sanitizeText(s, F()), "sanitizeText"), z, St = (z = class {
|
|
759
760
|
constructor() {
|
|
760
761
|
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.functions = [], this.lineType = {
|
|
761
762
|
LINE: 0,
|
|
@@ -774,25 +775,25 @@ var Bt = Ve, Qe = ["#", "+", "~", "-", ""], U, We = (U = class {
|
|
|
774
775
|
const o = de(r.currentTarget), f = o.attr("title");
|
|
775
776
|
if (!f)
|
|
776
777
|
return;
|
|
777
|
-
const
|
|
778
|
-
a.transition().duration(200).style("opacity", ".9"), a.html(
|
|
778
|
+
const m = r.currentTarget.getBoundingClientRect();
|
|
779
|
+
a.transition().duration(200).style("opacity", ".9"), a.html(ft.sanitize(f)).style("left", `${window.scrollX + m.left + m.width / 2}px`).style("top", `${window.scrollY + m.bottom + 4}px`), o.classed("hover", !0);
|
|
779
780
|
}).on("mouseout", (r) => {
|
|
780
781
|
a.transition().duration(500).style("opacity", 0), de(r.currentTarget).classed("hover", !1);
|
|
781
782
|
});
|
|
782
|
-
}, "setupToolTips"), this.direction = "TB", this.setAccTitle =
|
|
783
|
+
}, "setupToolTips"), this.direction = "TB", this.setAccTitle = nt, this.getAccTitle = ut, this.setAccDescription = lt, this.getAccDescription = ot, this.setDiagramTitle = ct, this.getDiagramTitle = ht, this.getConfig = /* @__PURE__ */ A(() => F().class, "getConfig"), this.functions.push(this.setupToolTips.bind(this)), this.clear(), this.addRelation = this.addRelation.bind(this), this.addClassesToNamespace = this.addClassesToNamespace.bind(this), this.addNamespace = this.addNamespace.bind(this), this.setCssClass = this.setCssClass.bind(this), this.addMembers = this.addMembers.bind(this), this.addClass = this.addClass.bind(this), this.setClassLabel = this.setClassLabel.bind(this), this.addAnnotation = this.addAnnotation.bind(this), this.addMember = this.addMember.bind(this), this.cleanupLabel = this.cleanupLabel.bind(this), this.addNote = this.addNote.bind(this), this.defineClass = this.defineClass.bind(this), this.setDirection = this.setDirection.bind(this), this.setLink = this.setLink.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.clear = this.clear.bind(this), this.setTooltip = this.setTooltip.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setCssStyle = this.setCssStyle.bind(this);
|
|
783
784
|
}
|
|
784
785
|
splitClassNameAndType(i) {
|
|
785
786
|
const a = v.sanitizeText(i, F());
|
|
786
787
|
let u = "", l = a;
|
|
787
788
|
if (a.indexOf("~") > 0) {
|
|
788
789
|
const r = a.split("~");
|
|
789
|
-
l =
|
|
790
|
+
l = M(r[0]), u = M(r[1]);
|
|
790
791
|
}
|
|
791
792
|
return { className: l, type: u };
|
|
792
793
|
}
|
|
793
794
|
setClassLabel(i, a) {
|
|
794
795
|
const u = v.sanitizeText(i, F());
|
|
795
|
-
a && (a =
|
|
796
|
+
a && (a = M(a));
|
|
796
797
|
const { className: l } = this.splitClassNameAndType(u);
|
|
797
798
|
this.classes.get(l).label = a, this.classes.get(l).text = `${a}${this.classes.get(l).type ? `<${this.classes.get(l).type}>` : ""}`;
|
|
798
799
|
}
|
|
@@ -842,7 +843,7 @@ var Bt = Ve, Qe = ["#", "+", "~", "-", ""], U, We = (U = class {
|
|
|
842
843
|
throw new Error("Class not found: " + a);
|
|
843
844
|
}
|
|
844
845
|
clear() {
|
|
845
|
-
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.direction = "TB",
|
|
846
|
+
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.direction = "TB", dt();
|
|
846
847
|
}
|
|
847
848
|
getClass(i) {
|
|
848
849
|
return this.classes.get(i);
|
|
@@ -903,7 +904,7 @@ var Bt = Ve, Qe = ["#", "+", "~", "-", ""], U, We = (U = class {
|
|
|
903
904
|
const u = this.splitClassNameAndType(i).className, l = this.classes.get(u);
|
|
904
905
|
if (typeof a == "string") {
|
|
905
906
|
const r = a.trim();
|
|
906
|
-
r.startsWith("<<") && r.endsWith(">>") ? l.annotations.push(
|
|
907
|
+
r.startsWith("<<") && r.endsWith(">>") ? l.annotations.push(M(r.substring(2, r.length - 2))) : r.indexOf(")") > 0 ? l.methods.push(new We(r, "method")) : r && l.members.push(new We(r, "attribute"));
|
|
907
908
|
}
|
|
908
909
|
}
|
|
909
910
|
addMembers(i, a) {
|
|
@@ -919,7 +920,7 @@ var Bt = Ve, Qe = ["#", "+", "~", "-", ""], U, We = (U = class {
|
|
|
919
920
|
return this.notes.set(l.id, l), l.id;
|
|
920
921
|
}
|
|
921
922
|
cleanupLabel(i) {
|
|
922
|
-
return i.startsWith(":") && (i = i.substring(1)),
|
|
923
|
+
return i.startsWith(":") && (i = i.substring(1)), M(i.trim());
|
|
923
924
|
}
|
|
924
925
|
/**
|
|
925
926
|
* Called by parser when assigning cssClass to a class
|
|
@@ -957,7 +958,7 @@ var Bt = Ve, Qe = ["#", "+", "~", "-", ""], U, We = (U = class {
|
|
|
957
958
|
*/
|
|
958
959
|
setTooltip(i, a) {
|
|
959
960
|
i.split(",").forEach((u) => {
|
|
960
|
-
a !== void 0 && (this.classes.get(u).tooltip =
|
|
961
|
+
a !== void 0 && (this.classes.get(u).tooltip = M(a));
|
|
961
962
|
});
|
|
962
963
|
}
|
|
963
964
|
getTooltip(i, a) {
|
|
@@ -976,7 +977,7 @@ var Bt = Ve, Qe = ["#", "+", "~", "-", ""], U, We = (U = class {
|
|
|
976
977
|
let o = r;
|
|
977
978
|
/\d/.exec(r[0]) && (o = pe + o);
|
|
978
979
|
const f = this.classes.get(o);
|
|
979
|
-
f && (f.link = we.formatUrl(a, l), l.securityLevel === "sandbox" ? f.linkTarget = "_top" : typeof u == "string" ? f.linkTarget =
|
|
980
|
+
f && (f.link = we.formatUrl(a, l), l.securityLevel === "sandbox" ? f.linkTarget = "_top" : typeof u == "string" ? f.linkTarget = M(u) : f.linkTarget = "_blank");
|
|
980
981
|
}), this.setCssClass(i, "clickable");
|
|
981
982
|
}
|
|
982
983
|
/**
|
|
@@ -998,20 +999,20 @@ var Bt = Ve, Qe = ["#", "+", "~", "-", ""], U, We = (U = class {
|
|
|
998
999
|
const o = l;
|
|
999
1000
|
if (this.classes.has(o)) {
|
|
1000
1001
|
const f = this.lookUpDomId(o);
|
|
1001
|
-
let
|
|
1002
|
+
let m = [];
|
|
1002
1003
|
if (typeof u == "string") {
|
|
1003
|
-
|
|
1004
|
-
for (let k = 0; k <
|
|
1005
|
-
let B =
|
|
1006
|
-
B.startsWith('"') && B.endsWith('"') && (B = B.substr(1, B.length - 2)),
|
|
1004
|
+
m = u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
|
1005
|
+
for (let k = 0; k < m.length; k++) {
|
|
1006
|
+
let B = m[k].trim();
|
|
1007
|
+
B.startsWith('"') && B.endsWith('"') && (B = B.substr(1, B.length - 2)), m[k] = B;
|
|
1007
1008
|
}
|
|
1008
1009
|
}
|
|
1009
|
-
|
|
1010
|
+
m.length === 0 && m.push(f), this.functions.push(() => {
|
|
1010
1011
|
const k = document.querySelector(`[id="${f}"]`);
|
|
1011
1012
|
k !== null && k.addEventListener(
|
|
1012
1013
|
"click",
|
|
1013
1014
|
() => {
|
|
1014
|
-
we.runFunc(a, ...
|
|
1015
|
+
we.runFunc(a, ...m);
|
|
1015
1016
|
},
|
|
1016
1017
|
!1
|
|
1017
1018
|
);
|
|
@@ -1153,12 +1154,12 @@ var Bt = Ve, Qe = ["#", "+", "~", "-", ""], U, We = (U = class {
|
|
|
1153
1154
|
labelType: "markdown"
|
|
1154
1155
|
};
|
|
1155
1156
|
i.push(f);
|
|
1156
|
-
const
|
|
1157
|
-
if (
|
|
1157
|
+
const m = (r = this.classes.get(o.class)) == null ? void 0 : r.id;
|
|
1158
|
+
if (m) {
|
|
1158
1159
|
const k = {
|
|
1159
1160
|
id: `edgeNote${o.index}`,
|
|
1160
1161
|
start: o.id,
|
|
1161
|
-
end:
|
|
1162
|
+
end: m,
|
|
1162
1163
|
type: "normal",
|
|
1163
1164
|
thickness: "normal",
|
|
1164
1165
|
classes: "relation",
|
|
@@ -1188,7 +1189,7 @@ var Bt = Ve, Qe = ["#", "+", "~", "-", ""], U, We = (U = class {
|
|
|
1188
1189
|
for (const o of this.relations) {
|
|
1189
1190
|
l++;
|
|
1190
1191
|
const f = {
|
|
1191
|
-
id:
|
|
1192
|
+
id: pt(o.id1, o.id2, {
|
|
1192
1193
|
prefix: "id",
|
|
1193
1194
|
counter: l
|
|
1194
1195
|
}),
|
|
@@ -1397,34 +1398,34 @@ g.classGroup line {
|
|
|
1397
1398
|
fill: ${s.textColor};
|
|
1398
1399
|
}
|
|
1399
1400
|
${et()}
|
|
1400
|
-
`, "getStyles"),
|
|
1401
|
+
`, "getStyles"), Nt = gt, mt = /* @__PURE__ */ A((s, i = "TB") => {
|
|
1401
1402
|
if (!s.doc)
|
|
1402
1403
|
return i;
|
|
1403
1404
|
let a = i;
|
|
1404
1405
|
for (const u of s.doc)
|
|
1405
1406
|
u.stmt === "dir" && (a = u.value);
|
|
1406
1407
|
return a;
|
|
1407
|
-
}, "getDir"),
|
|
1408
|
+
}, "getDir"), Ct = /* @__PURE__ */ A(function(s, i) {
|
|
1408
1409
|
return i.db.getClasses();
|
|
1409
1410
|
}, "getClasses"), bt = /* @__PURE__ */ A(async function(s, i, a, u) {
|
|
1410
1411
|
Oe.info("REF0:"), Oe.info("Drawing class diagram (v3)", i);
|
|
1411
|
-
const { securityLevel: l, state: r, layout: o } = F(), f = u.db.getData(),
|
|
1412
|
-
f.type = u.type, f.layoutAlgorithm = at(o), f.nodeSpacing = (r == null ? void 0 : r.nodeSpacing) || 50, f.rankSpacing = (r == null ? void 0 : r.rankSpacing) || 50, f.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], f.diagramId = i, await rt(f,
|
|
1412
|
+
const { securityLevel: l, state: r, layout: o } = F(), f = u.db.getData(), m = st(i, l);
|
|
1413
|
+
f.type = u.type, f.layoutAlgorithm = at(o), f.nodeSpacing = (r == null ? void 0 : r.nodeSpacing) || 50, f.rankSpacing = (r == null ? void 0 : r.rankSpacing) || 50, f.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], f.diagramId = i, await rt(f, m);
|
|
1413
1414
|
const k = 8;
|
|
1414
1415
|
we.insertTitle(
|
|
1415
|
-
|
|
1416
|
+
m,
|
|
1416
1417
|
"classDiagramTitleText",
|
|
1417
1418
|
(r == null ? void 0 : r.titleTopMargin) ?? 25,
|
|
1418
1419
|
u.db.getDiagramTitle()
|
|
1419
|
-
), it(
|
|
1420
|
-
}, "draw"),
|
|
1421
|
-
getClasses:
|
|
1420
|
+
), it(m, k, "classDiagram", (r == null ? void 0 : r.useMaxWidth) ?? !0);
|
|
1421
|
+
}, "draw"), xt = {
|
|
1422
|
+
getClasses: Ct,
|
|
1422
1423
|
draw: bt,
|
|
1423
|
-
getDir:
|
|
1424
|
+
getDir: mt
|
|
1424
1425
|
};
|
|
1425
1426
|
export {
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1427
|
+
St as C,
|
|
1428
|
+
_t as a,
|
|
1429
|
+
xt as c,
|
|
1430
|
+
Nt as s
|
|
1430
1431
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as r, c as s, a as e, C as t } from "./chunk-WL4C6EOR-
|
|
2
|
-
import { _ as l } from "./mermaid.core-
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-WL4C6EOR-DvQXGWh1.js";
|
|
2
|
+
import { _ as l } from "./mermaid.core-CLtuKi0e.js";
|
|
3
3
|
import "./transform-QfIdy88w.js";
|
|
4
4
|
var m = {
|
|
5
5
|
parser: e,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as r, c as s, a as e, C as t } from "./chunk-WL4C6EOR-
|
|
2
|
-
import { _ as l } from "./mermaid.core-
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-WL4C6EOR-DvQXGWh1.js";
|
|
2
|
+
import { _ as l } from "./mermaid.core-CLtuKi0e.js";
|
|
3
3
|
import "./transform-QfIdy88w.js";
|
|
4
4
|
var m = {
|
|
5
5
|
parser: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DHPCanvas.d.ts","sourceRoot":"","sources":["../../../../src/component/canvas/dhp/DHPCanvas.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,UAAU,MAAM;IACd,SAAS,EAAE,SAAS,CAAC;CACtB;AACD,eAAO,MAAM,SAAS,GAAI,eAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"DHPCanvas.d.ts","sourceRoot":"","sources":["../../../../src/component/canvas/dhp/DHPCanvas.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,UAAU,MAAM;IACd,SAAS,EAAE,SAAS,CAAC;CACtB;AACD,eAAO,MAAM,SAAS,GAAI,eAAe,MAAM,4CAgB9C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as V, l as $ } from "./mermaid.core-
|
|
1
|
+
import { _ as V, l as $ } from "./mermaid.core-CLtuKi0e.js";
|
|
2
2
|
import { c as J } from "./cytoscape.esm-ZmItrg9y.js";
|
|
3
|
-
import { c as Q, g as lt } from "./index-
|
|
3
|
+
import { c as Q, g as lt } from "./index-BRgAJnwv.js";
|
|
4
4
|
import { s as gt } from "./transform-QfIdy88w.js";
|
|
5
5
|
var tt = { exports: {} }, k = { exports: {} }, Z = { exports: {} }, q;
|
|
6
6
|
function ut() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as X,
|
|
1
|
+
import { _ as X, ao as F, ap as Y, aq as _, ar as H, l as i, c as V, as as q, at as U, ab as $, ah as z, ac as P, aa as K, au as Q, av as W, aw as Z } from "./mermaid.core-CLtuKi0e.js";
|
|
2
2
|
import { G as B } from "./graph-DiZQNfv4.js";
|
|
3
3
|
import { l as I } from "./index-BhhXoa2I.js";
|
|
4
4
|
import { i as x } from "./_baseUniq-CwpENewx.js";
|
|
@@ -63,10 +63,10 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
63
63
|
const u = t.edges(a);
|
|
64
64
|
i.debug("Copying Edges", u), u.forEach((l) => {
|
|
65
65
|
i.info("Edge", l);
|
|
66
|
-
const
|
|
67
|
-
i.info("Edge data",
|
|
66
|
+
const v = t.edge(l.v, l.w, l.name);
|
|
67
|
+
i.info("Edge data", v, o);
|
|
68
68
|
try {
|
|
69
|
-
se(l, o) ? (i.info("Copying as ", l.v, l.w,
|
|
69
|
+
se(l, o) ? (i.info("Copying as ", l.v, l.w, v, l.name), n.setEdge(l.v, l.w, v, l.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info(
|
|
70
70
|
"Skipping copy of edge ",
|
|
71
71
|
l.v,
|
|
72
72
|
"-->",
|
|
@@ -91,7 +91,7 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
91
91
|
return o;
|
|
92
92
|
}, "extractDescendants"), ie = /* @__PURE__ */ X((e, t, n) => {
|
|
93
93
|
const o = e.edges().filter((l) => l.v === t || l.w === t), c = e.edges().filter((l) => l.v === n || l.w === n), a = o.map((l) => ({ v: l.v === t ? n : l.v, w: l.w === t ? t : l.w })), r = c.map((l) => ({ v: l.v, w: l.w }));
|
|
94
|
-
return a.filter((l) => r.some((
|
|
94
|
+
return a.filter((l) => r.some((v) => l.v === v.v && l.w === v.w));
|
|
95
95
|
}, "findCommonEdges"), D = /* @__PURE__ */ X((e, t, n) => {
|
|
96
96
|
const o = t.children(e);
|
|
97
97
|
if (i.trace("Searching children of id ", e, o), o.length < 1)
|
|
@@ -193,7 +193,7 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
193
193
|
);
|
|
194
194
|
let l = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
195
195
|
(a = (c = f.get(r)) == null ? void 0 : c.clusterData) != null && a.dir && (l = f.get(r).clusterData.dir, i.warn("Fixing dir", f.get(r).clusterData.dir, l));
|
|
196
|
-
const
|
|
196
|
+
const v = new B({
|
|
197
197
|
multigraph: !0,
|
|
198
198
|
compound: !0
|
|
199
199
|
}).setGraph({
|
|
@@ -205,13 +205,13 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
205
205
|
}).setDefaultEdgeLabel(function() {
|
|
206
206
|
return {};
|
|
207
207
|
});
|
|
208
|
-
i.warn("Old graph before copy", E(e)), G(r, e,
|
|
208
|
+
i.warn("Old graph before copy", E(e)), G(r, e, v, r), e.setNode(r, {
|
|
209
209
|
clusterNode: !0,
|
|
210
210
|
id: r,
|
|
211
211
|
clusterData: f.get(r).clusterData,
|
|
212
212
|
label: f.get(r).label,
|
|
213
|
-
graph:
|
|
214
|
-
}), i.warn("New graph after copy node: (", r, ")", E(
|
|
213
|
+
graph: v
|
|
214
|
+
}), i.warn("New graph after copy node: (", r, ")", E(v)), i.debug("Old graph after copy", E(e));
|
|
215
215
|
} else
|
|
216
216
|
i.warn(
|
|
217
217
|
"Cluster ** ",
|
|
@@ -244,7 +244,7 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
244
244
|
i.trace("Dir in recursive render - dir:", r);
|
|
245
245
|
const u = e.insert("g").attr("class", "root");
|
|
246
246
|
t.nodes() ? i.info("Recursive render XXX", t.nodes()) : i.info("No nodes found for", t), t.edges().length > 0 && i.info("Recursive edges", t.edge(t.edges()[0]));
|
|
247
|
-
const l = u.insert("g").attr("class", "clusters"),
|
|
247
|
+
const l = u.insert("g").attr("class", "clusters"), v = u.insert("g").attr("class", "edgePaths"), C = u.insert("g").attr("class", "edgeLabels"), g = u.insert("g").attr("class", "nodes");
|
|
248
248
|
await Promise.all(
|
|
249
249
|
t.nodes().map(async function(d) {
|
|
250
250
|
const s = t.node(d);
|
|
@@ -377,21 +377,21 @@ Parent cluster`,
|
|
|
377
377
|
i.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(s), s), s.points.forEach((S) => S.y += y / 2);
|
|
378
378
|
const w = t.node(d.v);
|
|
379
379
|
var m = t.node(d.w);
|
|
380
|
-
const N = Q(
|
|
380
|
+
const N = Q(v, s, f, n, w, m, o);
|
|
381
381
|
W(s, N);
|
|
382
382
|
}), t.nodes().forEach(function(d) {
|
|
383
383
|
const s = t.node(d);
|
|
384
384
|
i.info(d, s.type, s.diff), s.isGroup && (p = s.diff);
|
|
385
385
|
}), i.warn("Returning from recursive render XAX", u, p), { elem: u, diff: p };
|
|
386
386
|
}, "recursiveRender"), ge = /* @__PURE__ */ X(async (e, t) => {
|
|
387
|
-
var a, r, u, l,
|
|
387
|
+
var a, r, u, l, v, C;
|
|
388
388
|
const n = new B({
|
|
389
389
|
multigraph: !0,
|
|
390
390
|
compound: !0
|
|
391
391
|
}).setGraph({
|
|
392
392
|
rankdir: e.direction,
|
|
393
393
|
nodesep: ((a = e.config) == null ? void 0 : a.nodeSpacing) || ((u = (r = e.config) == null ? void 0 : r.flowchart) == null ? void 0 : u.nodeSpacing) || e.nodeSpacing,
|
|
394
|
-
ranksep: ((l = e.config) == null ? void 0 : l.rankSpacing) || ((C = (
|
|
394
|
+
ranksep: ((l = e.config) == null ? void 0 : l.rankSpacing) || ((C = (v = e.config) == null ? void 0 : v.flowchart) == null ? void 0 : C.rankSpacing) || e.rankSpacing,
|
|
395
395
|
marginx: 8,
|
|
396
396
|
marginy: 8
|
|
397
397
|
}).setDefaultEdgeLabel(function() {
|
|
@@ -401,7 +401,7 @@ Parent cluster`,
|
|
|
401
401
|
n.setNode(g.id, { ...g }), g.parentId && n.setParent(g.id, g.parentId);
|
|
402
402
|
}), i.debug("Edges:", e.edges), e.edges.forEach((g) => {
|
|
403
403
|
if (g.start === g.end) {
|
|
404
|
-
const
|
|
404
|
+
const h = g.start, p = h + "---" + h + "---1", y = h + "---" + h + "---2", d = n.node(h);
|
|
405
405
|
n.setNode(p, {
|
|
406
406
|
domId: p,
|
|
407
407
|
id: p,
|
|
@@ -428,7 +428,7 @@ Parent cluster`,
|
|
|
428
428
|
height: 10
|
|
429
429
|
}), n.setParent(y, d.parentId);
|
|
430
430
|
const s = structuredClone(g), w = structuredClone(g), m = structuredClone(g);
|
|
431
|
-
s.label = "", s.arrowTypeEnd = "none", s.id =
|
|
431
|
+
s.label = "", s.arrowTypeEnd = "none", s.id = h + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = h + "-cyclic-special-mid", m.label = "", d.isGroup && (s.fromCluster = h, m.toCluster = h), m.id = h + "-cyclic-special-2", m.arrowTypeStart = "none", n.setEdge(h, p, s, h + "-cyclic-special-0"), n.setEdge(p, y, w, h + "-cyclic-special-1"), n.setEdge(y, h, m, h + "-cyc<lic-special-2");
|
|
432
432
|
} else
|
|
433
433
|
n.setEdge(g.start, g.end, { ...g }, g.id);
|
|
434
434
|
}), i.warn("Graph at first:", JSON.stringify(E(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(E(n)));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as w,
|
|
2
|
-
import { s as we } from "./chunk-KX2RTZJC-
|
|
3
|
-
import { p as Ce } from "./chunk-4BX2VUAB-
|
|
4
|
-
import { p as Te } from "./mermaid-parser.core-
|
|
1
|
+
import { _ as w, C as te, E as ae, G as he, d as ue, l as K, aD as P, b as pe, a as fe, o as ge, p as me, g as ye, s as Se, D as ve, aE as xe, x as be } from "./mermaid.core-CLtuKi0e.js";
|
|
2
|
+
import { s as we } from "./chunk-KX2RTZJC-D0YZPq7w.js";
|
|
3
|
+
import { p as Ce } from "./chunk-4BX2VUAB-zaPS7TSb.js";
|
|
4
|
+
import { p as Te } from "./mermaid-parser.core-Z-sfRN-r.js";
|
|
5
5
|
import { s as j } from "./transform-QfIdy88w.js";
|
|
6
6
|
import { b as O } from "./defaultLocale-BgPVtth8.js";
|
|
7
7
|
import { o as J } from "./ordinal-DfAQgscy.js";
|
|
@@ -54,20 +54,20 @@ function _e(t) {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
function ze(t) {
|
|
57
|
-
for (var a = this, l =
|
|
57
|
+
for (var a = this, l = De(a, t), n = [a]; a !== l; )
|
|
58
58
|
a = a.parent, n.push(a);
|
|
59
59
|
for (var o = n.length; t !== l; )
|
|
60
60
|
n.splice(o, 0, t), t = t.parent;
|
|
61
61
|
return n;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function De(t, a) {
|
|
64
64
|
if (t === a) return t;
|
|
65
65
|
var l = t.ancestors(), n = a.ancestors(), o = null;
|
|
66
66
|
for (t = l.pop(), a = n.pop(); t === a; )
|
|
67
67
|
o = t, t = l.pop(), a = n.pop();
|
|
68
68
|
return o;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Ve() {
|
|
71
71
|
for (var t = this, a = [t]; t = t.parent; )
|
|
72
72
|
a.push(t);
|
|
73
73
|
return a;
|
|
@@ -135,7 +135,7 @@ U.prototype = Q.prototype = {
|
|
|
135
135
|
sum: Me,
|
|
136
136
|
sort: _e,
|
|
137
137
|
path: ze,
|
|
138
|
-
ancestors:
|
|
138
|
+
ancestors: Ve,
|
|
139
139
|
descendants: Pe,
|
|
140
140
|
leaves: Be,
|
|
141
141
|
links: Ee,
|
|
@@ -167,17 +167,17 @@ function je(t, a, l, n, o) {
|
|
|
167
167
|
}
|
|
168
168
|
var Ue = (1 + Math.sqrt(5)) / 2;
|
|
169
169
|
function Ze(t, a, l, n, o, s) {
|
|
170
|
-
for (var d = [], h = a.children, g, c, u = 0, b = 0, r = h.length, x, S, v = a.value, p, m, N, k,
|
|
170
|
+
for (var d = [], h = a.children, g, c, u = 0, b = 0, r = h.length, x, S, v = a.value, p, m, N, k, D, R, M; u < r; ) {
|
|
171
171
|
x = o - l, S = s - n;
|
|
172
172
|
do
|
|
173
173
|
p = h[b++].value;
|
|
174
174
|
while (!p && b < r);
|
|
175
|
-
for (m = N = p, R = Math.max(S / x, x / S) / (v * t), M = p * p * R,
|
|
176
|
-
if (p += c = h[b].value, c < m && (m = c), c > N && (N = c), M = p * p * R, k = Math.max(N / M, M / m), k >
|
|
175
|
+
for (m = N = p, R = Math.max(S / x, x / S) / (v * t), M = p * p * R, D = Math.max(N / M, M / m); b < r; ++b) {
|
|
176
|
+
if (p += c = h[b].value, c < m && (m = c), c > N && (N = c), M = p * p * R, k = Math.max(N / M, M / m), k > D) {
|
|
177
177
|
p -= c;
|
|
178
178
|
break;
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
D = k;
|
|
181
181
|
}
|
|
182
182
|
d.push(g = { value: p, dice: x < S, children: h.slice(u, b) }), g.dice ? Ye(g, l, n, o, v ? n += S * p / v : s) : je(g, l, n, v ? l += x * p / v : o, s), v -= p, u = b;
|
|
183
183
|
}
|
|
@@ -387,9 +387,9 @@ var Qe = /* @__PURE__ */ w((t, a) => {
|
|
|
387
387
|
c.cScaleLabel11
|
|
388
388
|
]);
|
|
389
389
|
h && b.append("text").attr("x", S / 2).attr("y", u / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(h);
|
|
390
|
-
const
|
|
390
|
+
const D = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), R = Q(g).sum((e) => e.value ?? 0).sort((e, i) => (i.value ?? 0) - (e.value ?? 0)), ee = Ke().size([r, x]).paddingTop(
|
|
391
391
|
(e) => e.children && e.children.length > 0 ? X + B : 0
|
|
392
|
-
).paddingInner(d).paddingLeft((e) => e.children && e.children.length > 0 ? B : 0).paddingRight((e) => e.children && e.children.length > 0 ? B : 0).paddingBottom((e) => e.children && e.children.length > 0 ? B : 0).round(!0)(R), se = ee.descendants().filter((e) => e.children && e.children.length > 0), W =
|
|
392
|
+
).paddingInner(d).paddingLeft((e) => e.children && e.children.length > 0 ? B : 0).paddingRight((e) => e.children && e.children.length > 0 ? B : 0).paddingBottom((e) => e.children && e.children.length > 0 ? B : 0).round(!0)(R), se = ee.descendants().filter((e) => e.children && e.children.length > 0), W = D.selectAll(".treemapSection").data(se).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
393
393
|
W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", X).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), W.append("clipPath").attr("id", (e, i) => `clip-section-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", X), W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, i) => `treemapSection section${i}`).attr("fill", (e) => m(e.data.name)).attr("fill-opacity", 0.6).attr("stroke", (e) => N(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (e) => {
|
|
394
394
|
if (e.depth === 0)
|
|
395
395
|
return "display: none;";
|
|
@@ -427,19 +427,19 @@ var Qe = /* @__PURE__ */ w((t, a) => {
|
|
|
427
427
|
const i = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
428
428
|
return i + f.labelStyles.replace("color:", "fill:");
|
|
429
429
|
});
|
|
430
|
-
const ie = ee.leaves(), Y =
|
|
430
|
+
const ie = ee.leaves(), Y = D.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class", (e, i) => `treemapNode treemapLeafGroup leaf${i}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
431
431
|
Y.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? m(e.parent.data.name) : m(e.data.name)).attr("style", (e) => P({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? m(e.parent.data.name) : m(e.data.name)).attr("stroke-width", 3), Y.append("clipPath").attr("id", (e, i) => `clip-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), Y.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => {
|
|
432
432
|
const i = "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + k(e.data.name) + ";", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
433
433
|
return i + f.labelStyles.replace("color:", "fill:");
|
|
434
434
|
}).attr("clip-path", (e, i) => `url(#clip-${a}-${i})`).text((e) => e.data.name).each(function(e) {
|
|
435
|
-
const i = j(this), f = e.x1 - e.x0, C = e.y1 - e.y0, $ = i.node(), A = 4,
|
|
436
|
-
if (
|
|
435
|
+
const i = j(this), f = e.x1 - e.x0, C = e.y1 - e.y0, $ = i.node(), A = 4, V = f - 2 * A, F = C - 2 * A;
|
|
436
|
+
if (V < 10 || F < 10) {
|
|
437
437
|
i.style("display", "none");
|
|
438
438
|
return;
|
|
439
439
|
}
|
|
440
440
|
let y = parseInt(i.style("font-size"), 10);
|
|
441
441
|
const _ = 8, T = 28, L = 0.6, z = 6, H = 2;
|
|
442
|
-
for (; $.getComputedTextLength() >
|
|
442
|
+
for (; $.getComputedTextLength() > V && y > _; )
|
|
443
443
|
y--, i.style("font-size", `${y}px`);
|
|
444
444
|
let I = Math.max(
|
|
445
445
|
z,
|
|
@@ -450,7 +450,7 @@ var Qe = /* @__PURE__ */ w((t, a) => {
|
|
|
450
450
|
Math.min(T, Math.round(y * L))
|
|
451
451
|
), !(I < z && y === _)); )
|
|
452
452
|
i.style("font-size", `${y}px`), Z = y + H + I;
|
|
453
|
-
i.style("font-size", `${y}px`), ($.getComputedTextLength() >
|
|
453
|
+
i.style("font-size", `${y}px`), ($.getComputedTextLength() > V || y < _ || F < y) && i.style("display", "none");
|
|
454
454
|
}), s.showValues !== !1 && Y.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) {
|
|
455
455
|
return (i.y1 - i.y0) / 2;
|
|
456
456
|
}).attr("style", (i) => {
|
|
@@ -467,9 +467,9 @@ var Qe = /* @__PURE__ */ w((t, a) => {
|
|
|
467
467
|
f.style("display", "none");
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const A = parseFloat($.style("font-size")),
|
|
470
|
+
const A = parseFloat($.style("font-size")), V = 28, F = 0.6, y = 6, _ = 2, T = Math.max(
|
|
471
471
|
y,
|
|
472
|
-
Math.min(
|
|
472
|
+
Math.min(V, Math.round(A * F))
|
|
473
473
|
);
|
|
474
474
|
f.style("font-size", `${T}px`);
|
|
475
475
|
const z = (i.y1 - i.y0) / 2 + A / 2 + _;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as k, g as
|
|
2
|
-
import { p as H } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as V } from "./mermaid-parser.core-
|
|
1
|
+
import { s as k, g as R, p as E, o as I, a as _, b as D, _ as l, G as F, x as G, C as y, D as z, E as C, l as P, H as W, d as B } from "./mermaid.core-CLtuKi0e.js";
|
|
2
|
+
import { p as H } from "./chunk-4BX2VUAB-zaPS7TSb.js";
|
|
3
|
+
import { p as V } from "./mermaid-parser.core-Z-sfRN-r.js";
|
|
4
4
|
var h = {
|
|
5
5
|
showLegend: !0,
|
|
6
6
|
ticks: 5,
|
|
@@ -11,7 +11,7 @@ var h = {
|
|
|
11
11
|
axes: [],
|
|
12
12
|
curves: [],
|
|
13
13
|
options: h
|
|
14
|
-
}, x = structuredClone(w), j =
|
|
14
|
+
}, x = structuredClone(w), j = z.radar, N = /* @__PURE__ */ l(() => y({
|
|
15
15
|
...j,
|
|
16
16
|
...C().radar
|
|
17
17
|
}), "getConfig"), b = /* @__PURE__ */ l(() => x.axes, "getAxes"), U = /* @__PURE__ */ l(() => x.curves, "getCurves"), X = /* @__PURE__ */ l(() => x.options, "getOptions"), Y = /* @__PURE__ */ l((a) => {
|
|
@@ -54,7 +54,7 @@ var h = {
|
|
|
54
54
|
graticule: ((i = t.graticule) == null ? void 0 : i.value) ?? h.graticule
|
|
55
55
|
};
|
|
56
56
|
}, "setOptions"), K = /* @__PURE__ */ l(() => {
|
|
57
|
-
|
|
57
|
+
G(), x = structuredClone(w);
|
|
58
58
|
}, "clear"), $ = {
|
|
59
59
|
getAxes: b,
|
|
60
60
|
getCurves: U,
|
|
@@ -64,11 +64,11 @@ var h = {
|
|
|
64
64
|
setOptions: J,
|
|
65
65
|
getConfig: N,
|
|
66
66
|
clear: K,
|
|
67
|
-
setAccTitle:
|
|
68
|
-
getAccTitle:
|
|
69
|
-
setDiagramTitle:
|
|
70
|
-
getDiagramTitle:
|
|
71
|
-
getAccDescription:
|
|
67
|
+
setAccTitle: D,
|
|
68
|
+
getAccTitle: _,
|
|
69
|
+
setDiagramTitle: I,
|
|
70
|
+
getDiagramTitle: E,
|
|
71
|
+
getAccDescription: R,
|
|
72
72
|
setAccDescription: k
|
|
73
73
|
}, Q = /* @__PURE__ */ l((a) => {
|
|
74
74
|
H(a, $);
|
|
@@ -80,7 +80,7 @@ var h = {
|
|
|
80
80
|
P.debug(t), Q(t);
|
|
81
81
|
}, "parse")
|
|
82
82
|
}, et = /* @__PURE__ */ l((a, t, e, r) => {
|
|
83
|
-
const s = r.db, o = s.getAxes(), i = s.getCurves(), n = s.getOptions(), c = s.getConfig(), d = s.getDiagramTitle(), p =
|
|
83
|
+
const s = r.db, o = s.getAxes(), i = s.getCurves(), n = s.getOptions(), c = s.getConfig(), d = s.getDiagramTitle(), p = F(t), u = at(p, c), g = n.max ?? Math.max(...i.map((f) => Math.max(...f.entries))), m = n.min, v = Math.min(c.width, c.height) / 2;
|
|
84
84
|
rt(u, o, v, n.ticks, n.graticule), st(u, o, v, c), M(u, o, i, m, g, n.graticule, c), T(u, i, n.showLegend, c), u.append("text").attr("class", "radarTitle").text(d).attr("x", 0).attr("y", -c.height / 2 - c.marginTop);
|
|
85
85
|
}, "draw"), at = /* @__PURE__ */ l((a, t) => {
|
|
86
86
|
const e = t.width + t.marginLeft + t.marginRight, r = t.height + t.marginTop + t.marginBottom, s = {
|
|
@@ -117,7 +117,7 @@ function M(a, t, e, r, s, o, i) {
|
|
|
117
117
|
if (d.entries.length !== n)
|
|
118
118
|
return;
|
|
119
119
|
const u = d.entries.map((g, m) => {
|
|
120
|
-
const v = 2 * Math.PI * m / n - Math.PI / 2,
|
|
120
|
+
const v = 2 * Math.PI * m / n - Math.PI / 2, f = A(g, r, s, c), S = f * Math.cos(v), O = f * Math.sin(v);
|
|
121
121
|
return { x: S, y: O };
|
|
122
122
|
});
|
|
123
123
|
o === "circle" ? a.append("path").attr("d", L(u, i.curveTension)).attr("class", `radarCurve-${p}`) : o === "polygon" && a.append("polygon").attr("points", u.map((g) => `${g.x},${g.y}`).join(" ")).attr("class", `radarCurve-${p}`);
|
|
@@ -176,7 +176,7 @@ var nt = { draw: et }, ot = /* @__PURE__ */ l((a, t) => {
|
|
|
176
176
|
}
|
|
177
177
|
return e;
|
|
178
178
|
}, "genIndexStyles"), it = /* @__PURE__ */ l((a) => {
|
|
179
|
-
const t = W(), e = C(), r =
|
|
179
|
+
const t = W(), e = C(), r = y(t, e.themeVariables), s = y(r.radar, a);
|
|
180
180
|
return { themeVariables: r, radarOptions: s };
|
|
181
181
|
}, "buildRadarStyleOptions"), lt = /* @__PURE__ */ l(({ radar: a } = {}) => {
|
|
182
182
|
const { themeVariables: t, radarOptions: e } = it(a);
|