@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
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { __name } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
var getSubGraphTitleMargins = /* @__PURE__ */ __name(({ flowchart: e }) => {
|
|
3
|
-
let t = e?.subGraphTitleMargin?.top ?? 0, n = e?.subGraphTitleMargin?.bottom ?? 0;
|
|
4
|
-
return {
|
|
5
|
-
subGraphTitleTopMargin: t,
|
|
6
|
-
subGraphTitleBottomMargin: n,
|
|
7
|
-
subGraphTitleTotalMargin: t + n
|
|
8
|
-
};
|
|
9
|
-
}, "getSubGraphTitleMargins");
|
|
10
|
-
export { getSubGraphTitleMargins };
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
var package_default = {
|
|
2
|
-
name: "mermaid",
|
|
3
|
-
version: "11.12.3",
|
|
4
|
-
description: "Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",
|
|
5
|
-
type: "module",
|
|
6
|
-
module: "./dist/mermaid.core.mjs",
|
|
7
|
-
types: "./dist/mermaid.d.ts",
|
|
8
|
-
exports: {
|
|
9
|
-
".": {
|
|
10
|
-
types: "./dist/mermaid.d.ts",
|
|
11
|
-
import: "./dist/mermaid.core.mjs",
|
|
12
|
-
default: "./dist/mermaid.core.mjs"
|
|
13
|
-
},
|
|
14
|
-
"./*": "./*"
|
|
15
|
-
},
|
|
16
|
-
keywords: [
|
|
17
|
-
"diagram",
|
|
18
|
-
"markdown",
|
|
19
|
-
"flowchart",
|
|
20
|
-
"sequence diagram",
|
|
21
|
-
"gantt",
|
|
22
|
-
"class diagram",
|
|
23
|
-
"git graph",
|
|
24
|
-
"mindmap",
|
|
25
|
-
"packet diagram",
|
|
26
|
-
"c4 diagram",
|
|
27
|
-
"er diagram",
|
|
28
|
-
"pie chart",
|
|
29
|
-
"pie diagram",
|
|
30
|
-
"quadrant chart",
|
|
31
|
-
"requirement diagram",
|
|
32
|
-
"graph"
|
|
33
|
-
],
|
|
34
|
-
scripts: {
|
|
35
|
-
clean: "rimraf dist",
|
|
36
|
-
dev: "pnpm -w dev",
|
|
37
|
-
"docs:code": "typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup",
|
|
38
|
-
"docs:build": "rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts",
|
|
39
|
-
"docs:verify": "pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify",
|
|
40
|
-
"docs:pre:vitepress": "pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts",
|
|
41
|
-
"docs:build:vitepress": "pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing",
|
|
42
|
-
"docs:dev": "pnpm docs:pre:vitepress && concurrently \"pnpm --filter ./src/vitepress dev\" \"tsx scripts/docs.cli.mts --watch --vitepress\"",
|
|
43
|
-
"docs:dev:docker": "pnpm docs:pre:vitepress && concurrently \"pnpm --filter ./src/vitepress dev:docker\" \"tsx scripts/docs.cli.mts --watch --vitepress\"",
|
|
44
|
-
"docs:serve": "pnpm docs:build:vitepress && vitepress serve src/vitepress",
|
|
45
|
-
"docs:spellcheck": "cspell \"src/docs/**/*.md\"",
|
|
46
|
-
"docs:release-version": "tsx scripts/update-release-version.mts",
|
|
47
|
-
"docs:verify-version": "tsx scripts/update-release-version.mts --verify",
|
|
48
|
-
"types:build-config": "tsx scripts/create-types-from-json-schema.mts",
|
|
49
|
-
"types:verify-config": "tsx scripts/create-types-from-json-schema.mts --verify",
|
|
50
|
-
checkCircle: "npx madge --circular ./src",
|
|
51
|
-
prepublishOnly: "pnpm docs:verify-version"
|
|
52
|
-
},
|
|
53
|
-
repository: {
|
|
54
|
-
type: "git",
|
|
55
|
-
url: "https://github.com/mermaid-js/mermaid"
|
|
56
|
-
},
|
|
57
|
-
author: "Knut Sveidqvist",
|
|
58
|
-
license: "MIT",
|
|
59
|
-
standard: {
|
|
60
|
-
ignore: [
|
|
61
|
-
"**/parser/*.js",
|
|
62
|
-
"dist/**/*.js",
|
|
63
|
-
"cypress/**/*.js"
|
|
64
|
-
],
|
|
65
|
-
globals: ["page"]
|
|
66
|
-
},
|
|
67
|
-
dependencies: {
|
|
68
|
-
"@braintree/sanitize-url": "^7.1.1",
|
|
69
|
-
"@iconify/utils": "^3.0.1",
|
|
70
|
-
"@mermaid-js/parser": "workspace:^",
|
|
71
|
-
"@types/d3": "^7.4.3",
|
|
72
|
-
cytoscape: "^3.29.3",
|
|
73
|
-
"cytoscape-cose-bilkent": "^4.1.0",
|
|
74
|
-
"cytoscape-fcose": "^2.2.0",
|
|
75
|
-
d3: "^7.9.0",
|
|
76
|
-
"d3-sankey": "^0.12.3",
|
|
77
|
-
"dagre-d3-es": "7.0.13",
|
|
78
|
-
dayjs: "^1.11.18",
|
|
79
|
-
dompurify: "^3.2.5",
|
|
80
|
-
katex: "^0.16.22",
|
|
81
|
-
khroma: "^2.1.0",
|
|
82
|
-
"lodash-es": "^4.17.23",
|
|
83
|
-
marked: "^16.2.1",
|
|
84
|
-
roughjs: "^4.6.6",
|
|
85
|
-
stylis: "^4.3.6",
|
|
86
|
-
"ts-dedent": "^2.2.0",
|
|
87
|
-
uuid: "^11.1.0"
|
|
88
|
-
},
|
|
89
|
-
devDependencies: {
|
|
90
|
-
"@adobe/jsonschema2md": "^8.0.5",
|
|
91
|
-
"@iconify/types": "^2.0.0",
|
|
92
|
-
"@types/cytoscape": "^3.21.9",
|
|
93
|
-
"@types/cytoscape-fcose": "^2.2.4",
|
|
94
|
-
"@types/d3-sankey": "^0.12.4",
|
|
95
|
-
"@types/d3-scale": "^4.0.9",
|
|
96
|
-
"@types/d3-scale-chromatic": "^3.1.0",
|
|
97
|
-
"@types/d3-selection": "^3.0.11",
|
|
98
|
-
"@types/d3-shape": "^3.1.7",
|
|
99
|
-
"@types/jsdom": "^21.1.7",
|
|
100
|
-
"@types/katex": "^0.16.7",
|
|
101
|
-
"@types/lodash-es": "^4.17.12",
|
|
102
|
-
"@types/micromatch": "^4.0.9",
|
|
103
|
-
"@types/stylis": "^4.2.7",
|
|
104
|
-
"@types/uuid": "^10.0.0",
|
|
105
|
-
ajv: "^8.17.1",
|
|
106
|
-
canvas: "^3.1.2",
|
|
107
|
-
chokidar: "3.6.0",
|
|
108
|
-
concurrently: "^9.1.2",
|
|
109
|
-
"csstree-validator": "^4.0.1",
|
|
110
|
-
globby: "^14.1.0",
|
|
111
|
-
jison: "^0.4.18",
|
|
112
|
-
"js-base64": "^3.7.8",
|
|
113
|
-
jsdom: "^26.1.0",
|
|
114
|
-
"json-schema-to-typescript": "^15.0.4",
|
|
115
|
-
micromatch: "^4.0.8",
|
|
116
|
-
"path-browserify": "^1.0.1",
|
|
117
|
-
prettier: "^3.5.3",
|
|
118
|
-
remark: "^15.0.1",
|
|
119
|
-
"remark-frontmatter": "^5.0.0",
|
|
120
|
-
"remark-gfm": "^4.0.1",
|
|
121
|
-
rimraf: "^6.0.1",
|
|
122
|
-
"start-server-and-test": "^2.0.13",
|
|
123
|
-
"type-fest": "^4.35.0",
|
|
124
|
-
typedoc: "^0.28.12",
|
|
125
|
-
"typedoc-plugin-markdown": "^4.8.1",
|
|
126
|
-
typescript: "~5.7.3",
|
|
127
|
-
"unist-util-flatmap": "^1.0.0",
|
|
128
|
-
"unist-util-visit": "^5.0.0",
|
|
129
|
-
vitepress: "^1.6.4",
|
|
130
|
-
"vitepress-plugin-search": "1.0.4-alpha.22"
|
|
131
|
-
},
|
|
132
|
-
files: ["dist/", "README.md"],
|
|
133
|
-
publishConfig: { access: "public" }
|
|
134
|
-
};
|
|
135
|
-
export { package_default };
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { common_default, getConfig, hasKatex, renderKatexSanitized, sanitizeText } from "./chunk-ABZYJK2D.js";
|
|
3
|
-
import select_default from "../../../../d3-selection/src/select.js";
|
|
4
|
-
import "../../../../d3/src/index.js";
|
|
5
|
-
import { decodeEntities } from "./chunk-S3R3BYOJ.js";
|
|
6
|
-
import { stringToIcon } from "../../../../@iconify/utils/lib/icon/name.js";
|
|
7
|
-
import { getIconData } from "../../../../@iconify/utils/lib/icon-set/get-icon.js";
|
|
8
|
-
import { iconToSVG } from "../../../../@iconify/utils/lib/svg/build.js";
|
|
9
|
-
import { replaceIDs } from "../../../../@iconify/utils/lib/svg/id.js";
|
|
10
|
-
import { iconToHTML } from "../../../../@iconify/utils/lib/svg/html.js";
|
|
11
|
-
import { k } from "../../../../marked/lib/marked.esm.js";
|
|
12
|
-
import { dedent } from "../../../../ts-dedent/esm/index.js";
|
|
13
|
-
var unknownIcon = {
|
|
14
|
-
body: "<g><rect width=\"80\" height=\"80\" style=\"fill: #087ebf; stroke-width: 0px;\"/><text transform=\"translate(21.16 64.67)\" style=\"fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;\"><tspan x=\"0\" y=\"0\">?</tspan></text></g>",
|
|
15
|
-
height: 80,
|
|
16
|
-
width: 80
|
|
17
|
-
}, iconsStore = /* @__PURE__ */ new Map(), loaderStore = /* @__PURE__ */ new Map(), registerIconPacks = /* @__PURE__ */ __name((i) => {
|
|
18
|
-
for (let T of i) {
|
|
19
|
-
if (!T.name) throw Error("Invalid icon loader. Must have a \"name\" property with non-empty string value.");
|
|
20
|
-
if (log.debug("Registering icon pack:", T.name), "loader" in T) loaderStore.set(T.name, T.loader);
|
|
21
|
-
else if ("icons" in T) iconsStore.set(T.name, T.icons);
|
|
22
|
-
else throw log.error("Invalid icon loader:", T), Error("Invalid icon loader. Must have either \"icons\" or \"loader\" property.");
|
|
23
|
-
}
|
|
24
|
-
}, "registerIconPacks"), getRegisteredIconData = /* @__PURE__ */ __name(async (i, T) => {
|
|
25
|
-
let E = stringToIcon(i, !0, T !== void 0);
|
|
26
|
-
if (!E) throw Error(`Invalid icon name: ${i}`);
|
|
27
|
-
let D = E.prefix || T;
|
|
28
|
-
if (!D) throw Error(`Icon name must contain a prefix: ${i}`);
|
|
29
|
-
let O = iconsStore.get(D);
|
|
30
|
-
if (!O) {
|
|
31
|
-
let i = loaderStore.get(D);
|
|
32
|
-
if (!i) throw Error(`Icon set not found: ${E.prefix}`);
|
|
33
|
-
try {
|
|
34
|
-
O = {
|
|
35
|
-
...await i(),
|
|
36
|
-
prefix: D
|
|
37
|
-
}, iconsStore.set(D, O);
|
|
38
|
-
} catch (i) {
|
|
39
|
-
throw log.error(i), Error(`Failed to load icon set: ${E.prefix}`);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
let A = getIconData(O, E.name);
|
|
43
|
-
if (!A) throw Error(`Icon not found: ${i}`);
|
|
44
|
-
return A;
|
|
45
|
-
}, "getRegisteredIconData"), isIconAvailable = /* @__PURE__ */ __name(async (i) => {
|
|
46
|
-
try {
|
|
47
|
-
return await getRegisteredIconData(i), !0;
|
|
48
|
-
} catch {
|
|
49
|
-
return !1;
|
|
50
|
-
}
|
|
51
|
-
}, "isIconAvailable"), getIconSVG = /* @__PURE__ */ __name(async (i, T, D) => {
|
|
52
|
-
let O;
|
|
53
|
-
try {
|
|
54
|
-
O = await getRegisteredIconData(i, T?.fallbackPrefix);
|
|
55
|
-
} catch (i) {
|
|
56
|
-
log.error(i), O = unknownIcon;
|
|
57
|
-
}
|
|
58
|
-
let j = iconToSVG(O, T);
|
|
59
|
-
return sanitizeText(iconToHTML(replaceIDs(j.body), {
|
|
60
|
-
...j.attributes,
|
|
61
|
-
...D
|
|
62
|
-
}), getConfig());
|
|
63
|
-
}, "getIconSVG");
|
|
64
|
-
function preprocessMarkdown(i, { markdownAutoWrap: w }) {
|
|
65
|
-
let T = dedent(i.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
|
|
66
|
-
return w === !1 ? T.replace(/ /g, " ") : T;
|
|
67
|
-
}
|
|
68
|
-
__name(preprocessMarkdown, "preprocessMarkdown");
|
|
69
|
-
function markdownToLines(w, T = {}) {
|
|
70
|
-
let E = preprocessMarkdown(w, T), D = k.lexer(E), O = [[]], A = 0;
|
|
71
|
-
function j(i, w = "normal") {
|
|
72
|
-
i.type === "text" ? i.text.split("\n").forEach((i, T) => {
|
|
73
|
-
T !== 0 && (A++, O.push([])), i.split(" ").forEach((i) => {
|
|
74
|
-
i = i.replace(/'/g, "'"), i && O[A].push({
|
|
75
|
-
content: i,
|
|
76
|
-
type: w
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
}) : i.type === "strong" || i.type === "em" ? i.tokens.forEach((w) => {
|
|
80
|
-
j(w, i.type);
|
|
81
|
-
}) : i.type === "html" && O[A].push({
|
|
82
|
-
content: i.text,
|
|
83
|
-
type: "normal"
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
return __name(j, "processNode"), D.forEach((i) => {
|
|
87
|
-
i.type === "paragraph" ? i.tokens?.forEach((i) => {
|
|
88
|
-
j(i);
|
|
89
|
-
}) : i.type === "html" ? O[A].push({
|
|
90
|
-
content: i.text,
|
|
91
|
-
type: "normal"
|
|
92
|
-
}) : O[A].push({
|
|
93
|
-
content: i.raw,
|
|
94
|
-
type: "normal"
|
|
95
|
-
});
|
|
96
|
-
}), O;
|
|
97
|
-
}
|
|
98
|
-
__name(markdownToLines, "markdownToLines");
|
|
99
|
-
function markdownToHTML(T, { markdownAutoWrap: E } = {}) {
|
|
100
|
-
let D = k.lexer(T);
|
|
101
|
-
function O(i) {
|
|
102
|
-
return i.type === "text" ? E === !1 ? i.text.replace(/\n */g, "<br/>").replace(/ /g, " ") : i.text.replace(/\n */g, "<br/>") : i.type === "strong" ? `<strong>${i.tokens?.map(O).join("")}</strong>` : i.type === "em" ? `<em>${i.tokens?.map(O).join("")}</em>` : i.type === "paragraph" ? `<p>${i.tokens?.map(O).join("")}</p>` : i.type === "space" ? "" : i.type === "html" ? `${i.text}` : i.type === "escape" ? i.text : (log.warn(`Unsupported markdown: ${i.type}`), i.raw);
|
|
103
|
-
}
|
|
104
|
-
return __name(O, "output"), D.map(O).join("");
|
|
105
|
-
}
|
|
106
|
-
__name(markdownToHTML, "markdownToHTML");
|
|
107
|
-
function splitTextToChars(i) {
|
|
108
|
-
return Intl.Segmenter ? [...new Intl.Segmenter().segment(i)].map((i) => i.segment) : [...i];
|
|
109
|
-
}
|
|
110
|
-
__name(splitTextToChars, "splitTextToChars");
|
|
111
|
-
function splitWordToFitWidth(i, w) {
|
|
112
|
-
return splitWordToFitWidthRecursion(i, [], splitTextToChars(w.content), w.type);
|
|
113
|
-
}
|
|
114
|
-
__name(splitWordToFitWidth, "splitWordToFitWidth");
|
|
115
|
-
function splitWordToFitWidthRecursion(i, w, T, E) {
|
|
116
|
-
if (T.length === 0) return [{
|
|
117
|
-
content: w.join(""),
|
|
118
|
-
type: E
|
|
119
|
-
}, {
|
|
120
|
-
content: "",
|
|
121
|
-
type: E
|
|
122
|
-
}];
|
|
123
|
-
let [D, ...O] = T, A = [...w, D];
|
|
124
|
-
return i([{
|
|
125
|
-
content: A.join(""),
|
|
126
|
-
type: E
|
|
127
|
-
}]) ? splitWordToFitWidthRecursion(i, A, O, E) : (w.length === 0 && D && (w.push(D), T.shift()), [{
|
|
128
|
-
content: w.join(""),
|
|
129
|
-
type: E
|
|
130
|
-
}, {
|
|
131
|
-
content: T.join(""),
|
|
132
|
-
type: E
|
|
133
|
-
}]);
|
|
134
|
-
}
|
|
135
|
-
__name(splitWordToFitWidthRecursion, "splitWordToFitWidthRecursion");
|
|
136
|
-
function splitLineToFitWidth(i, w) {
|
|
137
|
-
if (i.some(({ content: i }) => i.includes("\n"))) throw Error("splitLineToFitWidth does not support newlines in the line");
|
|
138
|
-
return splitLineToFitWidthRecursion(i, w);
|
|
139
|
-
}
|
|
140
|
-
__name(splitLineToFitWidth, "splitLineToFitWidth");
|
|
141
|
-
function splitLineToFitWidthRecursion(i, w, T = [], E = []) {
|
|
142
|
-
if (i.length === 0) return E.length > 0 && T.push(E), T.length > 0 ? T : [];
|
|
143
|
-
let D = "";
|
|
144
|
-
i[0].content === " " && (D = " ", i.shift());
|
|
145
|
-
let O = i.shift() ?? {
|
|
146
|
-
content: " ",
|
|
147
|
-
type: "normal"
|
|
148
|
-
}, A = [...E];
|
|
149
|
-
if (D !== "" && A.push({
|
|
150
|
-
content: D,
|
|
151
|
-
type: "normal"
|
|
152
|
-
}), A.push(O), w(A)) return splitLineToFitWidthRecursion(i, w, T, A);
|
|
153
|
-
if (E.length > 0) T.push(E), i.unshift(O);
|
|
154
|
-
else if (O.content) {
|
|
155
|
-
let [E, D] = splitWordToFitWidth(w, O);
|
|
156
|
-
T.push([E]), D.content && i.unshift(D);
|
|
157
|
-
}
|
|
158
|
-
return splitLineToFitWidthRecursion(i, w, T);
|
|
159
|
-
}
|
|
160
|
-
__name(splitLineToFitWidthRecursion, "splitLineToFitWidthRecursion");
|
|
161
|
-
function applyStyle(i, w) {
|
|
162
|
-
w && i.attr("style", w);
|
|
163
|
-
}
|
|
164
|
-
__name(applyStyle, "applyStyle");
|
|
165
|
-
async function addHtmlSpan(i, w, j, M, N = !1, P = getConfig()) {
|
|
166
|
-
let F = i.append("foreignObject");
|
|
167
|
-
F.attr("width", `${10 * j}px`), F.attr("height", `${10 * j}px`);
|
|
168
|
-
let I = F.append("xhtml:div"), L = hasKatex(w.label) ? await renderKatexSanitized(w.label.replace(common_default.lineBreakRegex, "\n"), P) : sanitizeText(w.label, P), R = w.isNode ? "nodeLabel" : "edgeLabel", z = I.append("span");
|
|
169
|
-
z.html(L), applyStyle(z, w.labelStyle), z.attr("class", `${R} ${M}`), applyStyle(I, w.labelStyle), I.style("display", "table-cell"), I.style("white-space", "nowrap"), I.style("line-height", "1.5"), I.style("max-width", j + "px"), I.style("text-align", "center"), I.attr("xmlns", "http://www.w3.org/1999/xhtml"), N && I.attr("class", "labelBkg");
|
|
170
|
-
let B = I.node().getBoundingClientRect();
|
|
171
|
-
return B.width === j && (I.style("display", "table"), I.style("white-space", "break-spaces"), I.style("width", j + "px"), B = I.node().getBoundingClientRect()), F.node();
|
|
172
|
-
}
|
|
173
|
-
__name(addHtmlSpan, "addHtmlSpan");
|
|
174
|
-
function createTspan(i, w, T) {
|
|
175
|
-
return i.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", w * T - .1 + "em").attr("dy", T + "em");
|
|
176
|
-
}
|
|
177
|
-
__name(createTspan, "createTspan");
|
|
178
|
-
function computeWidthOfText(i, w, T) {
|
|
179
|
-
let E = i.append("text"), D = createTspan(E, 1, w);
|
|
180
|
-
updateTextContentAndStyles(D, T);
|
|
181
|
-
let O = D.node().getComputedTextLength();
|
|
182
|
-
return E.remove(), O;
|
|
183
|
-
}
|
|
184
|
-
__name(computeWidthOfText, "computeWidthOfText");
|
|
185
|
-
function computeDimensionOfText(i, w, T) {
|
|
186
|
-
let E = i.append("text"), D = createTspan(E, 1, w);
|
|
187
|
-
updateTextContentAndStyles(D, [{
|
|
188
|
-
content: T,
|
|
189
|
-
type: "normal"
|
|
190
|
-
}]);
|
|
191
|
-
let O = D.node()?.getBoundingClientRect();
|
|
192
|
-
return O && E.remove(), O;
|
|
193
|
-
}
|
|
194
|
-
__name(computeDimensionOfText, "computeDimensionOfText");
|
|
195
|
-
function createFormattedText(w, T, E, D = !1) {
|
|
196
|
-
let O = 1.1, A = T.append("g"), j = A.insert("rect").attr("class", "background").attr("style", "stroke: none"), M = A.append("text").attr("y", "-10.1"), N = 0;
|
|
197
|
-
for (let T of E) {
|
|
198
|
-
let E = /* @__PURE__ */ __name((i) => computeWidthOfText(A, O, i) <= w, "checkWidth"), D = E(T) ? [T] : splitLineToFitWidth(T, E);
|
|
199
|
-
for (let i of D) updateTextContentAndStyles(createTspan(M, N, O), i), N++;
|
|
200
|
-
}
|
|
201
|
-
if (D) {
|
|
202
|
-
let i = M.node().getBBox();
|
|
203
|
-
return j.attr("x", i.x - 2).attr("y", i.y - 2).attr("width", i.width + 4).attr("height", i.height + 4), A.node();
|
|
204
|
-
} else return M.node();
|
|
205
|
-
}
|
|
206
|
-
__name(createFormattedText, "createFormattedText");
|
|
207
|
-
function updateTextContentAndStyles(i, w) {
|
|
208
|
-
i.text(""), w.forEach((w, T) => {
|
|
209
|
-
let E = i.append("tspan").attr("font-style", w.type === "em" ? "italic" : "normal").attr("class", "text-inner-tspan").attr("font-weight", w.type === "strong" ? "bold" : "normal");
|
|
210
|
-
T === 0 ? E.text(w.content) : E.text(" " + w.content);
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
__name(updateTextContentAndStyles, "updateTextContentAndStyles");
|
|
214
|
-
async function replaceIconSubstring(i, w = {}) {
|
|
215
|
-
let T = [];
|
|
216
|
-
i.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (i, E, D) => (T.push((async () => {
|
|
217
|
-
let T = `${E}:${D}`;
|
|
218
|
-
return await isIconAvailable(T) ? await getIconSVG(T, void 0, { class: "label-icon" }) : `<i class='${sanitizeText(i, w).replace(":", " ")}'></i>`;
|
|
219
|
-
})()), i));
|
|
220
|
-
let E = await Promise.all(T);
|
|
221
|
-
return i.replace(/(fa[bklrs]?):fa-([\w-]+)/g, () => E.shift() ?? "");
|
|
222
|
-
}
|
|
223
|
-
__name(replaceIconSubstring, "replaceIconSubstring");
|
|
224
|
-
var createText = /* @__PURE__ */ __name(async (i, T = "", { style: E = "", isTitle: O = !1, classes: A = "", useHtmlLabels: N = !0, isNode: P = !0, width: F = 200, addSvgBackground: I = !1 } = {}, L) => {
|
|
225
|
-
if (log.debug("XYZ createText", T, E, O, A, N, P, "addSvgBackground: ", I), N) {
|
|
226
|
-
let w = await replaceIconSubstring(decodeEntities(markdownToHTML(T, L)), L), O = T.replace(/\\\\/g, "\\");
|
|
227
|
-
return await addHtmlSpan(i, {
|
|
228
|
-
isNode: P,
|
|
229
|
-
label: hasKatex(T) ? O : w,
|
|
230
|
-
labelStyle: E.replace("fill:", "color:")
|
|
231
|
-
}, F, A, I, L);
|
|
232
|
-
} else {
|
|
233
|
-
let w = createFormattedText(F, i, markdownToLines(T.replace(/<br\s*\/?>/g, "<br/>").replace("<br>", "<br/>"), L), T ? I : !1);
|
|
234
|
-
if (P) {
|
|
235
|
-
/stroke:/.exec(E) && (E = E.replace("stroke:", "lineColor:"));
|
|
236
|
-
let i = E.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
237
|
-
select_default(w).attr("style", i);
|
|
238
|
-
} else {
|
|
239
|
-
let i = E.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
|
|
240
|
-
select_default(w).select("rect").attr("style", i.replace(/background:/g, "fill:"));
|
|
241
|
-
let T = E.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
242
|
-
select_default(w).select("text").attr("style", T);
|
|
243
|
-
}
|
|
244
|
-
return w;
|
|
245
|
-
}
|
|
246
|
-
}, "createText");
|
|
247
|
-
export { computeDimensionOfText, createText, getIconSVG, registerIconPacks, replaceIconSubstring, unknownIcon };
|