@loopstack/loopstack-studio 0.25.0 → 0.25.2
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/components/ai-elements/message.js +2 -2
- package/dist/components/ai-elements/reasoning.js +9 -9
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +2 -5
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +69 -72
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-7HQA4BMR.js → architecture-YZFGNWBL.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-TQ3KTPDO.js → chunk-2KRD3SAO.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-4F5CHEZ2.js → chunk-67CJDMHE.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-UMXZTB3W.js → chunk-7N4EOEYR.js} +5 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-PL6DKKU2.js → chunk-AA7GKIK3.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +23 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-SJTYNZTY.js → chunk-FOC6F5B3.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1197 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FRFDVMJY.js → chunk-KGLVRYIC.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-B2363JML.js → chunk-LIHQZDEY.js} +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +29 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-G5XIXVHT.js → gitGraph-7Q5UKJZL.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +27 -17
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +903 -0
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +76 -75
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +30 -28
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +31 -40
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +23 -26
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +12 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +181 -205
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +11 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +12 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +8 -9
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +176 -183
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +17 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +153 -160
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +10 -12
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +36 -38
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +37 -45
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +12 -14
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +80 -86
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +6 -2
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +39 -41
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +7 -8
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +69 -70
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +215 -205
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +76 -76
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +29 -39
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +252 -274
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +93 -106
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +61 -61
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +31 -41
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +15 -18
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +226 -226
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +17 -17
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +17 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +61 -61
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
- package/dist/node_modules/dompurify/dist/purify.es.js +67 -67
- package/dist/node_modules/katex/dist/katex.js +1256 -1209
- package/dist/node_modules/khroma/dist/methods/transparentize.js +3 -0
- package/dist/node_modules/lodash-es/_baseClone.js +2 -2
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseToString.js +1 -1
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.js +1 -1
- package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
- package/dist/node_modules/lodash-es/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/flatMap.js +1 -1
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- package/dist/node_modules/lodash-es/min.js +1 -1
- package/dist/node_modules/lodash-es/minBy.js +1 -1
- package/dist/node_modules/lodash-es/reduce.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +691 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-VD42YOAC.js → blockDiagram-DXYQGD6D.js} +183 -157
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +65 -63
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +47 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EXTU4WIE.js → chunk-426QAEUC.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +533 -393
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3638 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-S3R3BYOJ.js → chunk-5PVQY5BW.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-HN2XXSSU.js → chunk-BSJP7CBP.js} +20 -14
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-QN33PNHL.js → chunk-EDXVE4YY.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +568 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2320 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-DI55MBZ5.js → chunk-OYMX7WX6.js} +35 -21
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +272 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ATLVNIR6.js → chunk-X2U36JSP.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-MI3HLSF2.js → chunk-XPW4576I.js} +11 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +60 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +30 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-2ON5EDUG.js → classDiagram-6PBFFD2Q.js} +12 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-WZHVMYZB.js → classDiagram-v2-HSJHXN6E.js} +12 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-6UL2VRFP.js → dagre-KV5264BT.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +99 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-PSM6KHXK.js → diagram-G4DWMVQ6.js} +20 -23
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +211 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-S2PKOQOG.js → diagram-TYMM5635.js} +4 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +486 -386
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +915 -898
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-JELNMOA3.js → ganttDiagram-T4ZO3ILL.js} +59 -29
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +728 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +17 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +714 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-XKPGCS4Q.js → journeyDiagram-VCZTEJTY.js} +32 -32
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +13 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +105 -59
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +117 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +49 -19
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-TZEHDZUN.js → sankeyDiagram-XADWPNL6.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4155 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FKZM4ZOC.js → stateDiagram-FHFEXIEX.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-4FDKWEC3.js → stateDiagram-v2-QKLJ7IA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1071 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +959 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +574 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-PRI3JC2R.js → xychartDiagram-5P7HB3ND.js} +38 -35
- package/dist/node_modules/mermaid/dist/mermaid.core.js +235 -192
- package/dist/node_modules/nanoid/url-alphabet/index.js +1 -1
- package/dist/node_modules/remend/dist/index.js +333 -264
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2498 -0
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +35 -0
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +672 -667
- package/dist/pages/DashboardPage.js +3 -3
- package/package.json +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
- package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
- package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
- package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
- package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
- package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
- package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
- package/dist/node_modules/lodash-es/_baseSome.js +0 -9
- package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
- package/dist/node_modules/lodash-es/assign.js +0 -14
- package/dist/node_modules/lodash-es/compact.js +0 -9
- package/dist/node_modules/lodash-es/difference.js +0 -8
- package/dist/node_modules/lodash-es/drop.js +0 -8
- package/dist/node_modules/lodash-es/dropRight.js +0 -8
- package/dist/node_modules/lodash-es/every.js +0 -11
- package/dist/node_modules/lodash-es/groupBy.js +0 -6
- package/dist/node_modules/lodash-es/head.js +0 -5
- package/dist/node_modules/lodash-es/includes.js +0 -13
- package/dist/node_modules/lodash-es/indexOf.js +0 -11
- package/dist/node_modules/lodash-es/isRegExp.js +0 -5
- package/dist/node_modules/lodash-es/negate.js +0 -16
- package/dist/node_modules/lodash-es/pickBy.js +0 -15
- package/dist/node_modules/lodash-es/reject.js +0 -10
- package/dist/node_modules/lodash-es/some.js +0 -11
- package/dist/node_modules/lodash-es/uniq.js +0 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
- package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
- package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
- package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-6UL2VRFP.js → dagre-KV5264BT.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { getConfig2 } from "./chunk-
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import { clear as clear$1, clear2, insertCluster, insertNode, positionNode, setNodeElem, updateNodeBounds } from "./chunk-
|
|
9
|
-
import { clear, insertEdge, insertEdgeLabel, markers_default, positionEdgeLabel } from "./chunk-
|
|
2
|
+
import { getConfig2 } from "./chunk-ICPOFSXX.js";
|
|
3
|
+
import "./chunk-BSJP7CBP.js";
|
|
4
|
+
import "./chunk-5PVQY5BW.js";
|
|
5
|
+
import { getSubGraphTitleMargins } from "./chunk-ZZ45TVLE.js";
|
|
6
|
+
import "./chunk-X2U36JSP.js";
|
|
7
|
+
import "./chunk-U2HBQHQK.js";
|
|
8
|
+
import { clear as clear$1, clear2, insertCluster, insertNode, positionNode, setNodeElem, updateNodeBounds } from "./chunk-5FUZZQ4R.js";
|
|
9
|
+
import { clear, insertEdge, insertEdgeLabel, markers_default, positionEdgeLabel } from "./chunk-ENJZ2VHE.js";
|
|
10
10
|
import { Graph } from "../../../../dagre-d3-es/src/graphlib/graph.js";
|
|
11
11
|
import "../../../../dagre-d3-es/src/graphlib/index.js";
|
|
12
12
|
import { layout } from "../../../../dagre-d3-es/src/dagre/layout.js";
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
+
import { clear, configureSvgSize, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-ICPOFSXX.js";
|
|
3
|
+
import { selectSvgElement } from "./chunk-426QAEUC.js";
|
|
4
|
+
import { cleanAndMerge } from "./chunk-5PVQY5BW.js";
|
|
5
|
+
import { populateCommonDb } from "./chunk-4BX2VUAB.js";
|
|
6
|
+
import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
|
|
7
|
+
import { ImperativeState } from "./chunk-QZHKN3VN.js";
|
|
8
|
+
var state = new ImperativeState(() => ({
|
|
9
|
+
cnt: 1,
|
|
10
|
+
stack: [{
|
|
11
|
+
id: 0,
|
|
12
|
+
level: -1,
|
|
13
|
+
name: "/",
|
|
14
|
+
children: []
|
|
15
|
+
}]
|
|
16
|
+
})), clear2 = /* @__PURE__ */ __name(() => {
|
|
17
|
+
state.reset(), clear();
|
|
18
|
+
}, "clear"), getRoot = /* @__PURE__ */ __name(() => state.records.stack[0], "getRoot"), getCount = /* @__PURE__ */ __name(() => state.records.cnt, "getCount"), defaultConfig = defaultConfig_default.treeView, db_default = {
|
|
19
|
+
clear: clear2,
|
|
20
|
+
addNode: /* @__PURE__ */ __name((e, y) => {
|
|
21
|
+
for (; e <= state.records.stack[state.records.stack.length - 1].level;) state.records.stack.pop();
|
|
22
|
+
let b = {
|
|
23
|
+
id: state.records.cnt++,
|
|
24
|
+
level: e,
|
|
25
|
+
name: y,
|
|
26
|
+
children: []
|
|
27
|
+
};
|
|
28
|
+
state.records.stack[state.records.stack.length - 1].children.push(b), state.records.stack.push(b);
|
|
29
|
+
}, "addNode"),
|
|
30
|
+
getRoot,
|
|
31
|
+
getCount,
|
|
32
|
+
getConfig: /* @__PURE__ */ __name(() => cleanAndMerge(defaultConfig, getConfig().treeView), "getConfig"),
|
|
33
|
+
getAccTitle,
|
|
34
|
+
getAccDescription,
|
|
35
|
+
getDiagramTitle,
|
|
36
|
+
setAccDescription,
|
|
37
|
+
setAccTitle,
|
|
38
|
+
setDiagramTitle
|
|
39
|
+
}, populate = /* @__PURE__ */ __name((e) => {
|
|
40
|
+
populateCommonDb(e, db_default), e.nodes.map((e) => db_default.addNode(e.indent ? parseInt(e.indent) : 0, e.name));
|
|
41
|
+
}, "populate"), parser = { parse: /* @__PURE__ */ __name(async (e) => {
|
|
42
|
+
let b = await parse("treeView", e);
|
|
43
|
+
log.debug(b), populate(b);
|
|
44
|
+
}, "parse") }, positionLabel = /* @__PURE__ */ __name((e, y, b, x, S) => {
|
|
45
|
+
let C = x.append("text").text(b.name).attr("dominant-baseline", "middle").attr("class", "treeView-node-label"), { height: w, width: T } = C.node().getBBox(), E = w + S.paddingY * 2, D = T + S.paddingX * 2;
|
|
46
|
+
C.attr("x", e + S.paddingX), C.attr("y", y + E / 2), b.BBox = {
|
|
47
|
+
x: e,
|
|
48
|
+
y,
|
|
49
|
+
width: D,
|
|
50
|
+
height: E
|
|
51
|
+
};
|
|
52
|
+
}, "positionLabel"), positionLine = /* @__PURE__ */ __name((e, y, b, x, S, C) => e.append("line").attr("x1", y).attr("y1", b).attr("x2", x).attr("y2", S).attr("stroke-width", C).attr("class", "treeView-node-line"), "positionLine"), drawTree = /* @__PURE__ */ __name((y, b, x) => {
|
|
53
|
+
let S = 0, C = 0, w = /* @__PURE__ */ __name((e, y, b, x) => {
|
|
54
|
+
let w = x * (b.rowIndent + b.paddingX);
|
|
55
|
+
positionLabel(w, S, y, e, b);
|
|
56
|
+
let { height: T, width: E } = y.BBox;
|
|
57
|
+
positionLine(e, w - b.rowIndent, S + T / 2, w, S + T / 2, b.lineThickness), C = Math.max(C, w + E), S += T;
|
|
58
|
+
}, "drawNode"), T = /* @__PURE__ */ __name((e, b = 0) => {
|
|
59
|
+
w(y, e, x, b), e.children.forEach((e) => {
|
|
60
|
+
T(e, b + 1);
|
|
61
|
+
});
|
|
62
|
+
let { x: S, y: C, height: E } = e.BBox;
|
|
63
|
+
if (e.children.length) {
|
|
64
|
+
let { y: b, height: w } = e.children[e.children.length - 1].BBox;
|
|
65
|
+
positionLine(y, S + x.paddingX, C + E, S + x.paddingX, b + w / 2 + x.lineThickness / 2, x.lineThickness);
|
|
66
|
+
}
|
|
67
|
+
}, "processNode");
|
|
68
|
+
return T(b), {
|
|
69
|
+
totalHeight: S,
|
|
70
|
+
totalWidth: C
|
|
71
|
+
};
|
|
72
|
+
}, "drawTree"), renderer_default = { draw: /* @__PURE__ */ __name((e, b, S, C) => {
|
|
73
|
+
log.debug("Rendering treeView diagram\n" + e);
|
|
74
|
+
let w = C.db, T = w.getRoot(), E = w.getConfig(), D = selectSvgElement(b), O = D.append("g");
|
|
75
|
+
O.attr("class", "tree-view");
|
|
76
|
+
let { totalHeight: k, totalWidth: A } = drawTree(O, T, E);
|
|
77
|
+
D.attr("viewBox", `-${E.lineThickness / 2} 0 ${A} ${k}`), configureSvgSize(D, k, A, E.useMaxWidth);
|
|
78
|
+
}, "draw") }, defaultTreeViewDiagramStyles = {
|
|
79
|
+
labelFontSize: "16px",
|
|
80
|
+
labelColor: "black",
|
|
81
|
+
lineColor: "black"
|
|
82
|
+
}, diagram = {
|
|
83
|
+
db: db_default,
|
|
84
|
+
renderer: renderer_default,
|
|
85
|
+
parser,
|
|
86
|
+
styles: /* @__PURE__ */ __name(({ treeView: e }) => {
|
|
87
|
+
let { labelFontSize: y, labelColor: b, lineColor: x } = cleanAndMerge(defaultTreeViewDiagramStyles, e);
|
|
88
|
+
return `
|
|
89
|
+
.treeView-node-label {
|
|
90
|
+
font-size: ${y};
|
|
91
|
+
fill: ${b};
|
|
92
|
+
}
|
|
93
|
+
.treeView-node-line {
|
|
94
|
+
stroke: ${x};
|
|
95
|
+
}
|
|
96
|
+
`;
|
|
97
|
+
}, "styles")
|
|
98
|
+
};
|
|
99
|
+
export { diagram };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { clear, configureSvgSize, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-
|
|
2
|
+
import { clear, configureSvgSize, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getDiagramTitle, getThemeVariables3, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-ICPOFSXX.js";
|
|
3
3
|
import select_default from "../../../../d3-selection/src/select.js";
|
|
4
4
|
import { format } from "../../../../d3-format/src/defaultLocale.js";
|
|
5
5
|
import hierarchy from "../../../../d3-hierarchy/src/hierarchy/index.js";
|
|
6
6
|
import treemap_default from "../../../../d3-hierarchy/src/treemap/index.js";
|
|
7
7
|
import ordinal from "../../../../d3-scale/src/ordinal.js";
|
|
8
8
|
import "../../../../d3/src/index.js";
|
|
9
|
-
import { selectSvgElement } from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { selectSvgElement } from "./chunk-426QAEUC.js";
|
|
10
|
+
import { cleanAndMerge } from "./chunk-5PVQY5BW.js";
|
|
11
|
+
import { isLabelStyle, styles2String } from "./chunk-X2U36JSP.js";
|
|
12
12
|
import { populateCommonDb } from "./chunk-4BX2VUAB.js";
|
|
13
13
|
import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
|
|
14
|
-
import { setupViewPortForSVG } from "./chunk-
|
|
14
|
+
import { setupViewPortForSVG } from "./chunk-EDXVE4YY.js";
|
|
15
15
|
var TreeMapDB = class {
|
|
16
16
|
constructor() {
|
|
17
17
|
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = setAccTitle, this.getAccTitle = getAccTitle, this.setDiagramTitle = setDiagramTitle, this.getDiagramTitle = getDiagramTitle, this.getAccDescription = getAccDescription, this.setAccDescription = setAccDescription;
|
|
@@ -64,7 +64,7 @@ function buildHierarchy(e) {
|
|
|
64
64
|
name: e.name,
|
|
65
65
|
children: e.type === "Leaf" ? void 0 : []
|
|
66
66
|
};
|
|
67
|
-
for (m.classSelector = e?.classSelector, e?.cssCompiledStyles && (m.cssCompiledStyles =
|
|
67
|
+
for (m.classSelector = e?.classSelector, e?.cssCompiledStyles && (m.cssCompiledStyles = e.cssCompiledStyles), e.type === "Leaf" && e.value !== void 0 && (m.value = e.value); p.length > 0 && p[p.length - 1].level >= e.level;) p.pop();
|
|
68
68
|
if (p.length === 0) f.push(m);
|
|
69
69
|
else {
|
|
70
70
|
let e = p[p.length - 1].node;
|
|
@@ -84,7 +84,7 @@ var populate = /* @__PURE__ */ __name((f, p) => {
|
|
|
84
84
|
for (let e of f.TreemapRows ?? []) {
|
|
85
85
|
let f = e.item;
|
|
86
86
|
if (!f) continue;
|
|
87
|
-
let h = e.indent ? parseInt(e.indent) : 0, g = getItemName(f), _ = f.classSelector ? p.getStylesForClass(f.classSelector) : [], v = _.length > 0 ? _
|
|
87
|
+
let h = e.indent ? parseInt(e.indent) : 0, g = getItemName(f), _ = f.classSelector ? p.getStylesForClass(f.classSelector) : [], v = _.length > 0 ? _ : void 0, y = {
|
|
88
88
|
level: h,
|
|
89
89
|
name: g,
|
|
90
90
|
type: f.$type,
|
|
@@ -240,11 +240,8 @@ var populate = /* @__PURE__ */ __name((f, p) => {
|
|
|
240
240
|
leafStrokeColor: "black",
|
|
241
241
|
leafStrokeWidth: "1",
|
|
242
242
|
leafFillColor: "#efefef",
|
|
243
|
-
labelColor: "black",
|
|
244
243
|
labelFontSize: "12px",
|
|
245
244
|
valueFontSize: "10px",
|
|
246
|
-
valueColor: "black",
|
|
247
|
-
titleColor: "black",
|
|
248
245
|
titleFontSize: "14px"
|
|
249
246
|
}, diagram = {
|
|
250
247
|
parser,
|
|
@@ -253,29 +250,29 @@ var populate = /* @__PURE__ */ __name((f, p) => {
|
|
|
253
250
|
},
|
|
254
251
|
renderer,
|
|
255
252
|
styles: /* @__PURE__ */ __name(({ treemap: e } = {}) => {
|
|
256
|
-
let f = cleanAndMerge(defaultTreemapStyleOptions, e);
|
|
253
|
+
let f = cleanAndMerge(getThemeVariables3(), getConfig().themeVariables), p = cleanAndMerge(defaultTreemapStyleOptions, e), m = p.titleColor ?? f.titleColor, h = p.labelColor ?? f.textColor, g = p.valueColor ?? f.textColor;
|
|
257
254
|
return `
|
|
258
255
|
.treemapNode.section {
|
|
259
|
-
stroke: ${
|
|
260
|
-
stroke-width: ${
|
|
261
|
-
fill: ${
|
|
256
|
+
stroke: ${p.sectionStrokeColor};
|
|
257
|
+
stroke-width: ${p.sectionStrokeWidth};
|
|
258
|
+
fill: ${p.sectionFillColor};
|
|
262
259
|
}
|
|
263
260
|
.treemapNode.leaf {
|
|
264
|
-
stroke: ${
|
|
265
|
-
stroke-width: ${
|
|
266
|
-
fill: ${
|
|
261
|
+
stroke: ${p.leafStrokeColor};
|
|
262
|
+
stroke-width: ${p.leafStrokeWidth};
|
|
263
|
+
fill: ${p.leafFillColor};
|
|
267
264
|
}
|
|
268
265
|
.treemapLabel {
|
|
269
|
-
fill: ${
|
|
270
|
-
font-size: ${
|
|
266
|
+
fill: ${h};
|
|
267
|
+
font-size: ${p.labelFontSize};
|
|
271
268
|
}
|
|
272
269
|
.treemapValue {
|
|
273
|
-
fill: ${
|
|
274
|
-
font-size: ${
|
|
270
|
+
fill: ${g};
|
|
271
|
+
font-size: ${p.valueFontSize};
|
|
275
272
|
}
|
|
276
273
|
.treemapTitle {
|
|
277
|
-
fill: ${
|
|
278
|
-
font-size: ${
|
|
274
|
+
fill: ${m};
|
|
275
|
+
font-size: ${p.titleFontSize};
|
|
279
276
|
}
|
|
280
277
|
`;
|
|
281
278
|
}, "getStyles")
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
+
import { clear, configureSvgSize, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getDiagramTitle, getThemeVariables3, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-ICPOFSXX.js";
|
|
3
|
+
import { selectSvgElement } from "./chunk-426QAEUC.js";
|
|
4
|
+
import { cleanAndMerge } from "./chunk-5PVQY5BW.js";
|
|
5
|
+
import { populateCommonDb } from "./chunk-4BX2VUAB.js";
|
|
6
|
+
import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
|
|
7
|
+
var defaultOptions = {
|
|
8
|
+
showLegend: !0,
|
|
9
|
+
ticks: 5,
|
|
10
|
+
max: null,
|
|
11
|
+
min: 0,
|
|
12
|
+
graticule: "circle"
|
|
13
|
+
}, defaultRadarData = {
|
|
14
|
+
axes: [],
|
|
15
|
+
curves: [],
|
|
16
|
+
options: defaultOptions
|
|
17
|
+
}, data = structuredClone(defaultRadarData), DEFAULT_RADAR_CONFIG = defaultConfig_default.radar, getConfig2 = /* @__PURE__ */ __name(() => cleanAndMerge({
|
|
18
|
+
...DEFAULT_RADAR_CONFIG,
|
|
19
|
+
...getConfig().radar
|
|
20
|
+
}), "getConfig"), getAxes = /* @__PURE__ */ __name(() => data.axes, "getAxes"), getCurves = /* @__PURE__ */ __name(() => data.curves, "getCurves"), getOptions = /* @__PURE__ */ __name(() => data.options, "getOptions"), setAxes = /* @__PURE__ */ __name((c) => {
|
|
21
|
+
data.axes = c.map((c) => ({
|
|
22
|
+
name: c.name,
|
|
23
|
+
label: c.label ?? c.name
|
|
24
|
+
}));
|
|
25
|
+
}, "setAxes"), setCurves = /* @__PURE__ */ __name((c) => {
|
|
26
|
+
data.curves = c.map((c) => ({
|
|
27
|
+
name: c.name,
|
|
28
|
+
label: c.label ?? c.name,
|
|
29
|
+
entries: computeCurveEntries(c.entries)
|
|
30
|
+
}));
|
|
31
|
+
}, "setCurves"), computeCurveEntries = /* @__PURE__ */ __name((c) => {
|
|
32
|
+
if (c[0].axis == null) return c.map((c) => c.value);
|
|
33
|
+
let A = getAxes();
|
|
34
|
+
if (A.length === 0) throw Error("Axes must be populated before curves for reference entries");
|
|
35
|
+
return A.map((A) => {
|
|
36
|
+
let j = c.find((c) => c.axis?.$refText === A.name);
|
|
37
|
+
if (j === void 0) throw Error("Missing entry for axis " + A.label);
|
|
38
|
+
return j.value;
|
|
39
|
+
});
|
|
40
|
+
}, "computeCurveEntries"), db = {
|
|
41
|
+
getAxes,
|
|
42
|
+
getCurves,
|
|
43
|
+
getOptions,
|
|
44
|
+
setAxes,
|
|
45
|
+
setCurves,
|
|
46
|
+
setOptions: /* @__PURE__ */ __name((c) => {
|
|
47
|
+
let A = c.reduce((c, A) => (c[A.name] = A, c), {});
|
|
48
|
+
data.options = {
|
|
49
|
+
showLegend: A.showLegend?.value ?? defaultOptions.showLegend,
|
|
50
|
+
ticks: A.ticks?.value ?? defaultOptions.ticks,
|
|
51
|
+
max: A.max?.value ?? defaultOptions.max,
|
|
52
|
+
min: A.min?.value ?? defaultOptions.min,
|
|
53
|
+
graticule: A.graticule?.value ?? defaultOptions.graticule
|
|
54
|
+
};
|
|
55
|
+
}, "setOptions"),
|
|
56
|
+
getConfig: getConfig2,
|
|
57
|
+
clear: /* @__PURE__ */ __name(() => {
|
|
58
|
+
clear(), data = structuredClone(defaultRadarData);
|
|
59
|
+
}, "clear"),
|
|
60
|
+
setAccTitle,
|
|
61
|
+
getAccTitle,
|
|
62
|
+
setDiagramTitle,
|
|
63
|
+
getDiagramTitle,
|
|
64
|
+
getAccDescription,
|
|
65
|
+
setAccDescription
|
|
66
|
+
}, populate = /* @__PURE__ */ __name((c) => {
|
|
67
|
+
populateCommonDb(c, db);
|
|
68
|
+
let { axes: A, curves: j, options: M } = c;
|
|
69
|
+
db.setAxes(A), db.setCurves(j), db.setOptions(M);
|
|
70
|
+
}, "populate"), parser = { parse: /* @__PURE__ */ __name(async (c) => {
|
|
71
|
+
let j = await parse("radar", c);
|
|
72
|
+
log.debug(j), populate(j);
|
|
73
|
+
}, "parse") }, draw = /* @__PURE__ */ __name((c, A, j, M) => {
|
|
74
|
+
let N = M.db, P = N.getAxes(), F = N.getCurves(), I = N.getOptions(), L = N.getConfig(), R = N.getDiagramTitle(), z = drawFrame(selectSvgElement(A), L), B = I.max ?? Math.max(...F.map((c) => Math.max(...c.entries))), V = I.min, H = Math.min(L.width, L.height) / 2;
|
|
75
|
+
drawGraticule(z, P, H, I.ticks, I.graticule), drawAxes(z, P, H, L), drawCurves(z, P, F, V, B, I.graticule, L), drawLegend(z, F, I.showLegend, L), z.append("text").attr("class", "radarTitle").text(R).attr("x", 0).attr("y", -L.height / 2 - L.marginTop);
|
|
76
|
+
}, "draw"), drawFrame = /* @__PURE__ */ __name((c, A) => {
|
|
77
|
+
let j = A.width + A.marginLeft + A.marginRight, N = A.height + A.marginTop + A.marginBottom, P = {
|
|
78
|
+
x: A.marginLeft + A.width / 2,
|
|
79
|
+
y: A.marginTop + A.height / 2
|
|
80
|
+
};
|
|
81
|
+
return configureSvgSize(c, N, j, A.useMaxWidth ?? !0), c.attr("viewBox", `0 0 ${j} ${N}`), c.append("g").attr("transform", `translate(${P.x}, ${P.y})`);
|
|
82
|
+
}, "drawFrame"), drawGraticule = /* @__PURE__ */ __name((c, A, j, M, N) => {
|
|
83
|
+
if (N === "circle") for (let A = 0; A < M; A++) {
|
|
84
|
+
let N = j * (A + 1) / M;
|
|
85
|
+
c.append("circle").attr("r", N).attr("class", "radarGraticule");
|
|
86
|
+
}
|
|
87
|
+
else if (N === "polygon") {
|
|
88
|
+
let N = A.length;
|
|
89
|
+
for (let P = 0; P < M; P++) {
|
|
90
|
+
let F = j * (P + 1) / M, I = A.map((c, A) => {
|
|
91
|
+
let j = 2 * A * Math.PI / N - Math.PI / 2;
|
|
92
|
+
return `${F * Math.cos(j)},${F * Math.sin(j)}`;
|
|
93
|
+
}).join(" ");
|
|
94
|
+
c.append("polygon").attr("points", I).attr("class", "radarGraticule");
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, "drawGraticule"), drawAxes = /* @__PURE__ */ __name((c, A, j, M) => {
|
|
98
|
+
let N = A.length;
|
|
99
|
+
for (let P = 0; P < N; P++) {
|
|
100
|
+
let F = A[P].label, I = 2 * P * Math.PI / N - Math.PI / 2;
|
|
101
|
+
c.append("line").attr("x1", 0).attr("y1", 0).attr("x2", j * M.axisScaleFactor * Math.cos(I)).attr("y2", j * M.axisScaleFactor * Math.sin(I)).attr("class", "radarAxisLine"), c.append("text").text(F).attr("x", j * M.axisLabelFactor * Math.cos(I)).attr("y", j * M.axisLabelFactor * Math.sin(I)).attr("class", "radarAxisLabel");
|
|
102
|
+
}
|
|
103
|
+
}, "drawAxes");
|
|
104
|
+
function drawCurves(c, A, j, M, N, P, F) {
|
|
105
|
+
let I = A.length, L = Math.min(F.width, F.height) / 2;
|
|
106
|
+
j.forEach((A, j) => {
|
|
107
|
+
if (A.entries.length !== I) return;
|
|
108
|
+
let R = A.entries.map((c, A) => {
|
|
109
|
+
let j = 2 * Math.PI * A / I - Math.PI / 2, P = relativeRadius(c, M, N, L);
|
|
110
|
+
return {
|
|
111
|
+
x: P * Math.cos(j),
|
|
112
|
+
y: P * Math.sin(j)
|
|
113
|
+
};
|
|
114
|
+
});
|
|
115
|
+
P === "circle" ? c.append("path").attr("d", closedRoundCurve(R, F.curveTension)).attr("class", `radarCurve-${j}`) : P === "polygon" && c.append("polygon").attr("points", R.map((c) => `${c.x},${c.y}`).join(" ")).attr("class", `radarCurve-${j}`);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
__name(drawCurves, "drawCurves");
|
|
119
|
+
function relativeRadius(c, A, j, M) {
|
|
120
|
+
return M * (Math.min(Math.max(c, A), j) - A) / (j - A);
|
|
121
|
+
}
|
|
122
|
+
__name(relativeRadius, "relativeRadius");
|
|
123
|
+
function closedRoundCurve(c, A) {
|
|
124
|
+
let j = c.length, M = `M${c[0].x},${c[0].y}`;
|
|
125
|
+
for (let N = 0; N < j; N++) {
|
|
126
|
+
let P = c[(N - 1 + j) % j], F = c[N], I = c[(N + 1) % j], L = c[(N + 2) % j], R = {
|
|
127
|
+
x: F.x + (I.x - P.x) * A,
|
|
128
|
+
y: F.y + (I.y - P.y) * A
|
|
129
|
+
}, z = {
|
|
130
|
+
x: I.x - (L.x - F.x) * A,
|
|
131
|
+
y: I.y - (L.y - F.y) * A
|
|
132
|
+
};
|
|
133
|
+
M += ` C${R.x},${R.y} ${z.x},${z.y} ${I.x},${I.y}`;
|
|
134
|
+
}
|
|
135
|
+
return `${M} Z`;
|
|
136
|
+
}
|
|
137
|
+
__name(closedRoundCurve, "closedRoundCurve");
|
|
138
|
+
function drawLegend(c, A, j, M) {
|
|
139
|
+
if (!j) return;
|
|
140
|
+
let N = (M.width / 2 + M.marginRight) * 3 / 4, P = -(M.height / 2 + M.marginTop) * 3 / 4;
|
|
141
|
+
A.forEach((A, j) => {
|
|
142
|
+
let M = c.append("g").attr("transform", `translate(${N}, ${P + j * 20})`);
|
|
143
|
+
M.append("rect").attr("width", 12).attr("height", 12).attr("class", `radarLegendBox-${j}`), M.append("text").attr("x", 16).attr("y", 0).attr("class", "radarLegendText").text(A.label);
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
__name(drawLegend, "drawLegend");
|
|
147
|
+
var renderer = { draw }, genIndexStyles = /* @__PURE__ */ __name((c, A) => {
|
|
148
|
+
let j = "";
|
|
149
|
+
for (let M = 0; M < c.THEME_COLOR_LIMIT; M++) {
|
|
150
|
+
let N = c[`cScale${M}`];
|
|
151
|
+
j += `
|
|
152
|
+
.radarCurve-${M} {
|
|
153
|
+
color: ${N};
|
|
154
|
+
fill: ${N};
|
|
155
|
+
fill-opacity: ${A.curveOpacity};
|
|
156
|
+
stroke: ${N};
|
|
157
|
+
stroke-width: ${A.curveStrokeWidth};
|
|
158
|
+
}
|
|
159
|
+
.radarLegendBox-${M} {
|
|
160
|
+
fill: ${N};
|
|
161
|
+
fill-opacity: ${A.curveOpacity};
|
|
162
|
+
stroke: ${N};
|
|
163
|
+
}
|
|
164
|
+
`;
|
|
165
|
+
}
|
|
166
|
+
return j;
|
|
167
|
+
}, "genIndexStyles"), buildRadarStyleOptions = /* @__PURE__ */ __name((c) => {
|
|
168
|
+
let A = cleanAndMerge(getThemeVariables3(), getConfig().themeVariables);
|
|
169
|
+
return {
|
|
170
|
+
themeVariables: A,
|
|
171
|
+
radarOptions: cleanAndMerge(A.radar, c)
|
|
172
|
+
};
|
|
173
|
+
}, "buildRadarStyleOptions"), diagram = {
|
|
174
|
+
parser,
|
|
175
|
+
db,
|
|
176
|
+
renderer,
|
|
177
|
+
styles: /* @__PURE__ */ __name(({ radar: c } = {}) => {
|
|
178
|
+
let { themeVariables: A, radarOptions: j } = buildRadarStyleOptions(c);
|
|
179
|
+
return `
|
|
180
|
+
.radarTitle {
|
|
181
|
+
font-size: ${A.fontSize};
|
|
182
|
+
color: ${A.titleColor};
|
|
183
|
+
dominant-baseline: hanging;
|
|
184
|
+
text-anchor: middle;
|
|
185
|
+
}
|
|
186
|
+
.radarAxisLine {
|
|
187
|
+
stroke: ${j.axisColor};
|
|
188
|
+
stroke-width: ${j.axisStrokeWidth};
|
|
189
|
+
}
|
|
190
|
+
.radarAxisLabel {
|
|
191
|
+
dominant-baseline: middle;
|
|
192
|
+
text-anchor: middle;
|
|
193
|
+
font-size: ${j.axisLabelFontSize}px;
|
|
194
|
+
color: ${j.axisColor};
|
|
195
|
+
}
|
|
196
|
+
.radarGraticule {
|
|
197
|
+
fill: ${j.graticuleColor};
|
|
198
|
+
fill-opacity: ${j.graticuleOpacity};
|
|
199
|
+
stroke: ${j.graticuleColor};
|
|
200
|
+
stroke-width: ${j.graticuleStrokeWidth};
|
|
201
|
+
}
|
|
202
|
+
.radarLegendText {
|
|
203
|
+
text-anchor: start;
|
|
204
|
+
font-size: ${j.legendFontSize}px;
|
|
205
|
+
dominant-baseline: hanging;
|
|
206
|
+
}
|
|
207
|
+
${genIndexStyles(A, j)}
|
|
208
|
+
`;
|
|
209
|
+
}, "styles")
|
|
210
|
+
};
|
|
211
|
+
export { diagram };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { clear, configureSvgSize, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-
|
|
3
|
-
import { selectSvgElement } from "./chunk-
|
|
4
|
-
import { cleanAndMerge } from "./chunk-
|
|
2
|
+
import { clear, configureSvgSize, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-ICPOFSXX.js";
|
|
3
|
+
import { selectSvgElement } from "./chunk-426QAEUC.js";
|
|
4
|
+
import { cleanAndMerge } from "./chunk-5PVQY5BW.js";
|
|
5
5
|
import { populateCommonDb } from "./chunk-4BX2VUAB.js";
|
|
6
6
|
import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
|
|
7
7
|
var DEFAULT_PACKET_CONFIG = defaultConfig_default.packet, PacketDB = class {
|
|
@@ -70,7 +70,7 @@ var DEFAULT_PACKET_CONFIG = defaultConfig_default.packet, PacketDB = class {
|
|
|
70
70
|
}, "parse")
|
|
71
71
|
}, draw = /* @__PURE__ */ __name((e, d, f, m) => {
|
|
72
72
|
let h = m.db, g = h.getConfig(), { rowHeight: _, paddingY: v, bitWidth: y, bitsPerRow: b } = g, x = h.getPacket(), S = h.getDiagramTitle(), C = _ + v, w = C * (x.length + 1) - (S ? 0 : _), T = y * b + 2, E = selectSvgElement(d);
|
|
73
|
-
E.attr("
|
|
73
|
+
E.attr("viewBox", `0 0 ${T} ${w}`), configureSvgSize(E, w, T, g.useMaxWidth);
|
|
74
74
|
for (let [e, d] of x.entries()) drawWord(E, d, e, g);
|
|
75
75
|
E.append("text").text(S).attr("x", T / 2).attr("y", w - C / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
|
|
76
76
|
}, "draw"), drawWord = /* @__PURE__ */ __name((e, d, f, { rowHeight: p, paddingX: m, paddingY: h, bitWidth: g, bitsPerRow: _, showBits: v }) => {
|