@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,1547 +0,0 @@
|
|
|
1
|
-
import { __export, __name, log, setLogLevel } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import rgba_default from "../../../../khroma/dist/methods/rgba.js";
|
|
3
|
-
import is_dark_default from "../../../../khroma/dist/methods/is_dark.js";
|
|
4
|
-
import lighten_default from "../../../../khroma/dist/methods/lighten.js";
|
|
5
|
-
import darken_default from "../../../../khroma/dist/methods/darken.js";
|
|
6
|
-
import adjust_default from "../../../../khroma/dist/methods/adjust.js";
|
|
7
|
-
import invert_default from "../../../../khroma/dist/methods/invert.js";
|
|
8
|
-
import { purify } from "../../../../dompurify/dist/purify.es.js";
|
|
9
|
-
var frontMatterRegex = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, directiveRegex = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, anyCommentRegex = /\s*%%.*\n/gm, UnknownDiagramError = class extends Error {
|
|
10
|
-
static #e = __name(this, "UnknownDiagramError");
|
|
11
|
-
constructor(h) {
|
|
12
|
-
super(h), this.name = "UnknownDiagramError";
|
|
13
|
-
}
|
|
14
|
-
}, detectors = {}, detectType = /* @__PURE__ */ __name(function(h, W) {
|
|
15
|
-
h = h.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
|
|
16
|
-
for (let [G, { detector: K }] of Object.entries(detectors)) if (K(h, W)) return G;
|
|
17
|
-
throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${h}`);
|
|
18
|
-
}, "detectType"), registerLazyLoadedDiagrams = /* @__PURE__ */ __name((...h) => {
|
|
19
|
-
for (let { id: W, detector: G, loader: K } of h) addDetector(W, G, K);
|
|
20
|
-
}, "registerLazyLoadedDiagrams"), addDetector = /* @__PURE__ */ __name((h, W, K) => {
|
|
21
|
-
detectors[h] && log.warn(`Detector with key ${h} already exists. Overwriting.`), detectors[h] = {
|
|
22
|
-
detector: W,
|
|
23
|
-
loader: K
|
|
24
|
-
}, log.debug(`Detector with key ${h} added${K ? " with loader" : ""}`);
|
|
25
|
-
}, "addDetector"), getDiagramLoader = /* @__PURE__ */ __name((h) => detectors[h].loader, "getDiagramLoader"), assignWithDepth = /* @__PURE__ */ __name((h, W, { depth: G = 2, clobber: K = !1 } = {}) => {
|
|
26
|
-
let q = {
|
|
27
|
-
depth: G,
|
|
28
|
-
clobber: K
|
|
29
|
-
};
|
|
30
|
-
return Array.isArray(W) && !Array.isArray(h) ? (W.forEach((W) => assignWithDepth(h, W, q)), h) : Array.isArray(W) && Array.isArray(h) ? (W.forEach((W) => {
|
|
31
|
-
h.includes(W) || h.push(W);
|
|
32
|
-
}), h) : h === void 0 || G <= 0 ? typeof h == "object" && h && typeof W == "object" ? Object.assign(h, W) : W : (W !== void 0 && typeof h == "object" && typeof W == "object" && Object.keys(W).forEach((q) => {
|
|
33
|
-
typeof W[q] == "object" && (h[q] === void 0 || typeof h[q] == "object") ? (h[q] === void 0 && (h[q] = Array.isArray(W[q]) ? [] : {}), h[q] = assignWithDepth(h[q], W[q], {
|
|
34
|
-
depth: G - 1,
|
|
35
|
-
clobber: K
|
|
36
|
-
})) : (K || typeof h[q] != "object" && typeof W[q] != "object") && (h[q] = W[q]);
|
|
37
|
-
}), h);
|
|
38
|
-
}, "assignWithDepth"), assignWithDepth_default = assignWithDepth, oldAttributeBackgroundColorOdd = "#ffffff", oldAttributeBackgroundColorEven = "#f2f2f2", mkBorder = /* @__PURE__ */ __name((h, W) => W ? adjust_default(h, {
|
|
39
|
-
s: -40,
|
|
40
|
-
l: 10
|
|
41
|
-
}) : adjust_default(h, {
|
|
42
|
-
s: -40,
|
|
43
|
-
l: -10
|
|
44
|
-
}), "mkBorder"), Theme = class {
|
|
45
|
-
static #e = __name(this, "Theme");
|
|
46
|
-
constructor() {
|
|
47
|
-
this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px";
|
|
48
|
-
}
|
|
49
|
-
updateColors() {
|
|
50
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
|
|
51
|
-
h: 180,
|
|
52
|
-
l: 5
|
|
53
|
-
}), this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || invert_default(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || invert_default(this.tertiaryColor), this.lineColor = this.lineColor || invert_default(this.background), this.arrowheadColor = this.arrowheadColor || invert_default(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || darken_default(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || invert_default(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || lighten_default(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || darken_default(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || darken_default(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.mainBkg, 5)), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || this.tertiaryColor, this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, {
|
|
54
|
-
h: 210,
|
|
55
|
-
l: 150
|
|
56
|
-
}), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.darkMode) for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 75);
|
|
57
|
-
else for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 25);
|
|
58
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || invert_default(this["cScale" + h]);
|
|
59
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this.darkMode ? this["cScalePeer" + h] = this["cScalePeer" + h] || lighten_default(this["cScale" + h], 10) : this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 10);
|
|
60
|
-
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
61
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
62
|
-
let h = this.darkMode ? -4 : -1;
|
|
63
|
-
for (let W = 0; W < 5; W++) this["surface" + W] = this["surface" + W] || adjust_default(this.mainBkg, {
|
|
64
|
-
h: 180,
|
|
65
|
-
s: -15,
|
|
66
|
-
l: h * (5 + W * 3)
|
|
67
|
-
}), this["surfacePeer" + W] = this["surfacePeer" + W] || adjust_default(this.mainBkg, {
|
|
68
|
-
h: 180,
|
|
69
|
-
s: -15,
|
|
70
|
-
l: h * (8 + W * 3)
|
|
71
|
-
});
|
|
72
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
|
|
73
|
-
h: 60,
|
|
74
|
-
l: -10
|
|
75
|
-
}), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
|
|
76
|
-
h: -60,
|
|
77
|
-
l: -10
|
|
78
|
-
}), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
|
|
79
|
-
h: 120,
|
|
80
|
-
l: 0
|
|
81
|
-
}), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
|
|
82
|
-
h: 60,
|
|
83
|
-
l: -20
|
|
84
|
-
}), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
|
|
85
|
-
h: -60,
|
|
86
|
-
l: -20
|
|
87
|
-
}), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
|
|
88
|
-
h: 120,
|
|
89
|
-
l: -10
|
|
90
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.radar = {
|
|
91
|
-
axisColor: this.radar?.axisColor || this.lineColor,
|
|
92
|
-
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
93
|
-
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
94
|
-
curveOpacity: this.radar?.curveOpacity || .5,
|
|
95
|
-
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
96
|
-
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
97
|
-
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
98
|
-
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
99
|
-
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
100
|
-
legendFontSize: this.radar?.legendFontSize || 12
|
|
101
|
-
}, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
|
|
102
|
-
r: 5,
|
|
103
|
-
g: 5,
|
|
104
|
-
b: 5
|
|
105
|
-
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
106
|
-
r: 10,
|
|
107
|
-
g: 10,
|
|
108
|
-
b: 10
|
|
109
|
-
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
110
|
-
r: 15,
|
|
111
|
-
g: 15,
|
|
112
|
-
b: 15
|
|
113
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
114
|
-
r: -5,
|
|
115
|
-
g: -5,
|
|
116
|
-
b: -5
|
|
117
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
118
|
-
r: -10,
|
|
119
|
-
g: -10,
|
|
120
|
-
b: -10
|
|
121
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
122
|
-
r: -15,
|
|
123
|
-
g: -15,
|
|
124
|
-
b: -15
|
|
125
|
-
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
126
|
-
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
127
|
-
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
128
|
-
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
129
|
-
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
130
|
-
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
131
|
-
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
132
|
-
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
133
|
-
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
134
|
-
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
135
|
-
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
136
|
-
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
137
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
138
|
-
}
|
|
139
|
-
calculate(h) {
|
|
140
|
-
if (typeof h != "object") {
|
|
141
|
-
this.updateColors();
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
let W = Object.keys(h);
|
|
145
|
-
W.forEach((W) => {
|
|
146
|
-
this[W] = h[W];
|
|
147
|
-
}), this.updateColors(), W.forEach((W) => {
|
|
148
|
-
this[W] = h[W];
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
}, getThemeVariables = /* @__PURE__ */ __name((h) => {
|
|
152
|
-
let W = new Theme();
|
|
153
|
-
return W.calculate(h), W;
|
|
154
|
-
}, "getThemeVariables"), Theme2 = class {
|
|
155
|
-
static #e = __name(this, "Theme");
|
|
156
|
-
constructor() {
|
|
157
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = lighten_default(this.primaryColor, 16), this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = invert_default(this.background), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = lighten_default(invert_default("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = rgba_default(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.sectionBkgColor = darken_default("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = darken_default(this.sectionBkgColor, 10), this.taskBorderColor = rgba_default(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = rgba_default(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || darken_default(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd";
|
|
158
|
-
}
|
|
159
|
-
updateColors() {
|
|
160
|
-
this.secondBkg = lighten_default(this.mainBkg, 16), this.lineColor = this.mainContrastColor, this.arrowheadColor = this.mainContrastColor, this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.edgeLabelBackground = lighten_default(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.altSectionBkgColor = this.background, this.taskBkgColor = lighten_default(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = this.darkTextColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.cScale1 = this.cScale1 || "#0b0000", this.cScale2 = this.cScale2 || "#4d1037", this.cScale3 = this.cScale3 || "#3f5258", this.cScale4 = this.cScale4 || "#4f2f1b", this.cScale5 = this.cScale5 || "#6e0a0a", this.cScale6 = this.cScale6 || "#3b0048", this.cScale7 = this.cScale7 || "#995a01", this.cScale8 = this.cScale8 || "#154706", this.cScale9 = this.cScale9 || "#161722", this.cScale10 = this.cScale10 || "#00296f", this.cScale11 = this.cScale11 || "#01629c", this.cScale12 = this.cScale12 || "#010029", this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 });
|
|
161
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || invert_default(this["cScale" + h]);
|
|
162
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScalePeer" + h] = this["cScalePeer" + h] || lighten_default(this["cScale" + h], 10);
|
|
163
|
-
for (let h = 0; h < 5; h++) this["surface" + h] = this["surface" + h] || adjust_default(this.mainBkg, {
|
|
164
|
-
h: 30,
|
|
165
|
-
s: -30,
|
|
166
|
-
l: -(-10 + h * 4)
|
|
167
|
-
}), this["surfacePeer" + h] = this["surfacePeer" + h] || adjust_default(this.mainBkg, {
|
|
168
|
-
h: 30,
|
|
169
|
-
s: -30,
|
|
170
|
-
l: -(-7 + h * 4)
|
|
171
|
-
});
|
|
172
|
-
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
|
|
173
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
174
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["pie" + h] = this["cScale" + h];
|
|
175
|
-
this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
|
|
176
|
-
r: 5,
|
|
177
|
-
g: 5,
|
|
178
|
-
b: 5
|
|
179
|
-
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
180
|
-
r: 10,
|
|
181
|
-
g: 10,
|
|
182
|
-
b: 10
|
|
183
|
-
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
184
|
-
r: 15,
|
|
185
|
-
g: 15,
|
|
186
|
-
b: 15
|
|
187
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
188
|
-
r: -5,
|
|
189
|
-
g: -5,
|
|
190
|
-
b: -5
|
|
191
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
192
|
-
r: -10,
|
|
193
|
-
g: -10,
|
|
194
|
-
b: -10
|
|
195
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
196
|
-
r: -15,
|
|
197
|
-
g: -15,
|
|
198
|
-
b: -15
|
|
199
|
-
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
200
|
-
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
201
|
-
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
202
|
-
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
203
|
-
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
204
|
-
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
205
|
-
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
206
|
-
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
207
|
-
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
208
|
-
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
209
|
-
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
210
|
-
plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
|
|
211
|
-
}, this.packet = {
|
|
212
|
-
startByteColor: this.primaryTextColor,
|
|
213
|
-
endByteColor: this.primaryTextColor,
|
|
214
|
-
labelColor: this.primaryTextColor,
|
|
215
|
-
titleColor: this.primaryTextColor,
|
|
216
|
-
blockStrokeColor: this.primaryTextColor,
|
|
217
|
-
blockFillColor: this.background
|
|
218
|
-
}, this.radar = {
|
|
219
|
-
axisColor: this.radar?.axisColor || this.lineColor,
|
|
220
|
-
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
221
|
-
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
222
|
-
curveOpacity: this.radar?.curveOpacity || .5,
|
|
223
|
-
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
224
|
-
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
225
|
-
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
226
|
-
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
227
|
-
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
228
|
-
legendFontSize: this.radar?.legendFontSize || 12
|
|
229
|
-
}, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = lighten_default(this.secondaryColor, 20), this.git1 = lighten_default(this.pie2 || this.secondaryColor, 20), this.git2 = lighten_default(this.pie3 || this.tertiaryColor, 20), this.git3 = lighten_default(this.pie4 || adjust_default(this.primaryColor, { h: -30 }), 20), this.git4 = lighten_default(this.pie5 || adjust_default(this.primaryColor, { h: -60 }), 20), this.git5 = lighten_default(this.pie6 || adjust_default(this.primaryColor, { h: -90 }), 10), this.git6 = lighten_default(this.pie7 || adjust_default(this.primaryColor, { h: 60 }), 10), this.git7 = lighten_default(this.pie8 || adjust_default(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || lighten_default(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || lighten_default(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
230
|
-
}
|
|
231
|
-
calculate(h) {
|
|
232
|
-
if (typeof h != "object") {
|
|
233
|
-
this.updateColors();
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
let W = Object.keys(h);
|
|
237
|
-
W.forEach((W) => {
|
|
238
|
-
this[W] = h[W];
|
|
239
|
-
}), this.updateColors(), W.forEach((W) => {
|
|
240
|
-
this[W] = h[W];
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
}, getThemeVariables2 = /* @__PURE__ */ __name((h) => {
|
|
244
|
-
let W = new Theme2();
|
|
245
|
-
return W.calculate(h), W;
|
|
246
|
-
}, "getThemeVariables"), Theme3 = class {
|
|
247
|
-
static #e = __name(this, "Theme");
|
|
248
|
-
constructor() {
|
|
249
|
-
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = adjust_default(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = rgba_default(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.updateColors();
|
|
250
|
-
}
|
|
251
|
-
updateColors() {
|
|
252
|
-
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
|
|
253
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 10), this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 25);
|
|
254
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || adjust_default(this["cScale" + h], { h: 180 });
|
|
255
|
-
for (let h = 0; h < 5; h++) this["surface" + h] = this["surface" + h] || adjust_default(this.mainBkg, {
|
|
256
|
-
h: 30,
|
|
257
|
-
l: -(5 + h * 5)
|
|
258
|
-
}), this["surfacePeer" + h] = this["surfacePeer" + h] || adjust_default(this.mainBkg, {
|
|
259
|
-
h: 30,
|
|
260
|
-
l: -(7 + h * 5)
|
|
261
|
-
});
|
|
262
|
-
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
263
|
-
this.cScaleLabel0 = this.cScaleLabel0 || invert_default(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || invert_default(this.labelTextColor);
|
|
264
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.labelTextColor;
|
|
265
|
-
}
|
|
266
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.primaryColor, 1), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || adjust_default(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
|
|
267
|
-
h: 60,
|
|
268
|
-
l: -20
|
|
269
|
-
}), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
|
|
270
|
-
h: -60,
|
|
271
|
-
l: -40
|
|
272
|
-
}), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
|
|
273
|
-
h: 120,
|
|
274
|
-
l: -40
|
|
275
|
-
}), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
|
|
276
|
-
h: 60,
|
|
277
|
-
l: -40
|
|
278
|
-
}), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
|
|
279
|
-
h: -90,
|
|
280
|
-
l: -40
|
|
281
|
-
}), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
|
|
282
|
-
h: 120,
|
|
283
|
-
l: -30
|
|
284
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
|
|
285
|
-
r: 5,
|
|
286
|
-
g: 5,
|
|
287
|
-
b: 5
|
|
288
|
-
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
289
|
-
r: 10,
|
|
290
|
-
g: 10,
|
|
291
|
-
b: 10
|
|
292
|
-
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
293
|
-
r: 15,
|
|
294
|
-
g: 15,
|
|
295
|
-
b: 15
|
|
296
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
297
|
-
r: -5,
|
|
298
|
-
g: -5,
|
|
299
|
-
b: -5
|
|
300
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
301
|
-
r: -10,
|
|
302
|
-
g: -10,
|
|
303
|
-
b: -10
|
|
304
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
305
|
-
r: -15,
|
|
306
|
-
g: -15,
|
|
307
|
-
b: -15
|
|
308
|
-
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.radar = {
|
|
309
|
-
axisColor: this.radar?.axisColor || this.lineColor,
|
|
310
|
-
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
311
|
-
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
312
|
-
curveOpacity: this.radar?.curveOpacity || .5,
|
|
313
|
-
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
314
|
-
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
315
|
-
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
316
|
-
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
317
|
-
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
318
|
-
legendFontSize: this.radar?.legendFontSize || 12
|
|
319
|
-
}, this.xyChart = {
|
|
320
|
-
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
321
|
-
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
322
|
-
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
323
|
-
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
324
|
-
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
325
|
-
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
326
|
-
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
327
|
-
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
328
|
-
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
329
|
-
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
330
|
-
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
331
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || darken_default(invert_default(this.git0), 25), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
332
|
-
}
|
|
333
|
-
calculate(h) {
|
|
334
|
-
if (Object.keys(this).forEach((h) => {
|
|
335
|
-
this[h] === "calculated" && (this[h] = void 0);
|
|
336
|
-
}), typeof h != "object") {
|
|
337
|
-
this.updateColors();
|
|
338
|
-
return;
|
|
339
|
-
}
|
|
340
|
-
let W = Object.keys(h);
|
|
341
|
-
W.forEach((W) => {
|
|
342
|
-
this[W] = h[W];
|
|
343
|
-
}), this.updateColors(), W.forEach((W) => {
|
|
344
|
-
this[W] = h[W];
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
}, getThemeVariables3 = /* @__PURE__ */ __name((h) => {
|
|
348
|
-
let W = new Theme3();
|
|
349
|
-
return W.calculate(h), W;
|
|
350
|
-
}, "getThemeVariables"), Theme4 = class {
|
|
351
|
-
static #e = __name(this, "Theme");
|
|
352
|
-
constructor() {
|
|
353
|
-
this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor = lighten_default("#cde498", 10), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.primaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
|
|
354
|
-
}
|
|
355
|
-
updateColors() {
|
|
356
|
-
this.actorBorder = darken_default(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
|
|
357
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 10), this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 25);
|
|
358
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || adjust_default(this["cScale" + h], { h: 180 });
|
|
359
|
-
this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
|
|
360
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
361
|
-
for (let h = 0; h < 5; h++) this["surface" + h] = this["surface" + h] || adjust_default(this.mainBkg, {
|
|
362
|
-
h: 30,
|
|
363
|
-
s: -30,
|
|
364
|
-
l: -(5 + h * 5)
|
|
365
|
-
}), this["surfacePeer" + h] = this["surfacePeer" + h] || adjust_default(this.mainBkg, {
|
|
366
|
-
h: 30,
|
|
367
|
-
s: -30,
|
|
368
|
-
l: -(8 + h * 5)
|
|
369
|
-
});
|
|
370
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.mainBkg, 20), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, {
|
|
371
|
-
h: 40,
|
|
372
|
-
l: -40
|
|
373
|
-
}), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
|
|
374
|
-
h: 60,
|
|
375
|
-
l: -10
|
|
376
|
-
}), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
|
|
377
|
-
h: -60,
|
|
378
|
-
l: -10
|
|
379
|
-
}), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
|
|
380
|
-
h: 120,
|
|
381
|
-
l: 0
|
|
382
|
-
}), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
|
|
383
|
-
h: 60,
|
|
384
|
-
l: -50
|
|
385
|
-
}), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
|
|
386
|
-
h: -60,
|
|
387
|
-
l: -50
|
|
388
|
-
}), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
|
|
389
|
-
h: 120,
|
|
390
|
-
l: -50
|
|
391
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
|
|
392
|
-
r: 5,
|
|
393
|
-
g: 5,
|
|
394
|
-
b: 5
|
|
395
|
-
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
396
|
-
r: 10,
|
|
397
|
-
g: 10,
|
|
398
|
-
b: 10
|
|
399
|
-
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
400
|
-
r: 15,
|
|
401
|
-
g: 15,
|
|
402
|
-
b: 15
|
|
403
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
404
|
-
r: -5,
|
|
405
|
-
g: -5,
|
|
406
|
-
b: -5
|
|
407
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
408
|
-
r: -10,
|
|
409
|
-
g: -10,
|
|
410
|
-
b: -10
|
|
411
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
412
|
-
r: -15,
|
|
413
|
-
g: -15,
|
|
414
|
-
b: -15
|
|
415
|
-
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.packet = {
|
|
416
|
-
startByteColor: this.primaryTextColor,
|
|
417
|
-
endByteColor: this.primaryTextColor,
|
|
418
|
-
labelColor: this.primaryTextColor,
|
|
419
|
-
titleColor: this.primaryTextColor,
|
|
420
|
-
blockStrokeColor: this.primaryTextColor,
|
|
421
|
-
blockFillColor: this.mainBkg
|
|
422
|
-
}, this.radar = {
|
|
423
|
-
axisColor: this.radar?.axisColor || this.lineColor,
|
|
424
|
-
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
425
|
-
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
426
|
-
curveOpacity: this.radar?.curveOpacity || .5,
|
|
427
|
-
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
428
|
-
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
429
|
-
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
430
|
-
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
431
|
-
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
432
|
-
legendFontSize: this.radar?.legendFontSize || 12
|
|
433
|
-
}, this.xyChart = {
|
|
434
|
-
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
435
|
-
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
436
|
-
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
437
|
-
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
438
|
-
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
439
|
-
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
440
|
-
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
441
|
-
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
442
|
-
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
443
|
-
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
444
|
-
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
445
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
446
|
-
}
|
|
447
|
-
calculate(h) {
|
|
448
|
-
if (typeof h != "object") {
|
|
449
|
-
this.updateColors();
|
|
450
|
-
return;
|
|
451
|
-
}
|
|
452
|
-
let W = Object.keys(h);
|
|
453
|
-
W.forEach((W) => {
|
|
454
|
-
this[W] = h[W];
|
|
455
|
-
}), this.updateColors(), W.forEach((W) => {
|
|
456
|
-
this[W] = h[W];
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
}, getThemeVariables4 = /* @__PURE__ */ __name((h) => {
|
|
460
|
-
let W = new Theme4();
|
|
461
|
-
return W.calculate(h), W;
|
|
462
|
-
}, "getThemeVariables"), Theme5 = class {
|
|
463
|
-
static #e = __name(this, "Theme");
|
|
464
|
-
constructor() {
|
|
465
|
-
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = lighten_default(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
|
|
466
|
-
}
|
|
467
|
-
updateColors() {
|
|
468
|
-
this.secondBkg = lighten_default(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
|
|
469
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || invert_default(this["cScale" + h]);
|
|
470
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this.darkMode ? this["cScalePeer" + h] = this["cScalePeer" + h] || lighten_default(this["cScale" + h], 10) : this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 10);
|
|
471
|
-
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
472
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
473
|
-
for (let h = 0; h < 5; h++) this["surface" + h] = this["surface" + h] || adjust_default(this.mainBkg, { l: -(5 + h * 5) }), this["surfacePeer" + h] = this["surfacePeer" + h] || adjust_default(this.mainBkg, { l: -(8 + h * 5) });
|
|
474
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = lighten_default(this.contrast, 30), this.sectionBkgColor2 = lighten_default(this.contrast, 30), this.taskBorderColor = darken_default(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = lighten_default(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = darken_default(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 });
|
|
475
|
-
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["pie" + h] = this["cScale" + h];
|
|
476
|
-
this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
|
|
477
|
-
r: 5,
|
|
478
|
-
g: 5,
|
|
479
|
-
b: 5
|
|
480
|
-
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
481
|
-
r: 10,
|
|
482
|
-
g: 10,
|
|
483
|
-
b: 10
|
|
484
|
-
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
485
|
-
r: 15,
|
|
486
|
-
g: 15,
|
|
487
|
-
b: 15
|
|
488
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
489
|
-
r: -5,
|
|
490
|
-
g: -5,
|
|
491
|
-
b: -5
|
|
492
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
493
|
-
r: -10,
|
|
494
|
-
g: -10,
|
|
495
|
-
b: -10
|
|
496
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
497
|
-
r: -15,
|
|
498
|
-
g: -15,
|
|
499
|
-
b: -15
|
|
500
|
-
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
501
|
-
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
502
|
-
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
503
|
-
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
504
|
-
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
505
|
-
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
506
|
-
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
507
|
-
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
508
|
-
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
509
|
-
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
510
|
-
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
511
|
-
plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
|
|
512
|
-
}, this.radar = {
|
|
513
|
-
axisColor: this.radar?.axisColor || this.lineColor,
|
|
514
|
-
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
515
|
-
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
516
|
-
curveOpacity: this.radar?.curveOpacity || .5,
|
|
517
|
-
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
518
|
-
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
519
|
-
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
520
|
-
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
521
|
-
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
522
|
-
legendFontSize: this.radar?.legendFontSize || 12
|
|
523
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = darken_default(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || adjust_default(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
524
|
-
}
|
|
525
|
-
calculate(h) {
|
|
526
|
-
if (typeof h != "object") {
|
|
527
|
-
this.updateColors();
|
|
528
|
-
return;
|
|
529
|
-
}
|
|
530
|
-
let W = Object.keys(h);
|
|
531
|
-
W.forEach((W) => {
|
|
532
|
-
this[W] = h[W];
|
|
533
|
-
}), this.updateColors(), W.forEach((W) => {
|
|
534
|
-
this[W] = h[W];
|
|
535
|
-
});
|
|
536
|
-
}
|
|
537
|
-
}, themes_default = {
|
|
538
|
-
base: { getThemeVariables },
|
|
539
|
-
dark: { getThemeVariables: getThemeVariables2 },
|
|
540
|
-
default: { getThemeVariables: getThemeVariables3 },
|
|
541
|
-
forest: { getThemeVariables: getThemeVariables4 },
|
|
542
|
-
neutral: { getThemeVariables: /* @__PURE__ */ __name((h) => {
|
|
543
|
-
let W = new Theme5();
|
|
544
|
-
return W.calculate(h), W;
|
|
545
|
-
}, "getThemeVariables") }
|
|
546
|
-
}, config_schema_default = {
|
|
547
|
-
flowchart: {
|
|
548
|
-
useMaxWidth: !0,
|
|
549
|
-
titleTopMargin: 25,
|
|
550
|
-
subGraphTitleMargin: {
|
|
551
|
-
top: 0,
|
|
552
|
-
bottom: 0
|
|
553
|
-
},
|
|
554
|
-
diagramPadding: 8,
|
|
555
|
-
htmlLabels: !0,
|
|
556
|
-
nodeSpacing: 50,
|
|
557
|
-
rankSpacing: 50,
|
|
558
|
-
curve: "basis",
|
|
559
|
-
padding: 15,
|
|
560
|
-
defaultRenderer: "dagre-wrapper",
|
|
561
|
-
wrappingWidth: 200,
|
|
562
|
-
inheritDir: !1
|
|
563
|
-
},
|
|
564
|
-
sequence: {
|
|
565
|
-
useMaxWidth: !0,
|
|
566
|
-
hideUnusedParticipants: !1,
|
|
567
|
-
activationWidth: 10,
|
|
568
|
-
diagramMarginX: 50,
|
|
569
|
-
diagramMarginY: 10,
|
|
570
|
-
actorMargin: 50,
|
|
571
|
-
width: 150,
|
|
572
|
-
height: 65,
|
|
573
|
-
boxMargin: 10,
|
|
574
|
-
boxTextMargin: 5,
|
|
575
|
-
noteMargin: 10,
|
|
576
|
-
messageMargin: 35,
|
|
577
|
-
messageAlign: "center",
|
|
578
|
-
mirrorActors: !0,
|
|
579
|
-
forceMenus: !1,
|
|
580
|
-
bottomMarginAdj: 1,
|
|
581
|
-
rightAngles: !1,
|
|
582
|
-
showSequenceNumbers: !1,
|
|
583
|
-
actorFontSize: 14,
|
|
584
|
-
actorFontFamily: "\"Open Sans\", sans-serif",
|
|
585
|
-
actorFontWeight: 400,
|
|
586
|
-
noteFontSize: 14,
|
|
587
|
-
noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
588
|
-
noteFontWeight: 400,
|
|
589
|
-
noteAlign: "center",
|
|
590
|
-
messageFontSize: 16,
|
|
591
|
-
messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
592
|
-
messageFontWeight: 400,
|
|
593
|
-
wrap: !1,
|
|
594
|
-
wrapPadding: 10,
|
|
595
|
-
labelBoxWidth: 50,
|
|
596
|
-
labelBoxHeight: 20
|
|
597
|
-
},
|
|
598
|
-
gantt: {
|
|
599
|
-
useMaxWidth: !0,
|
|
600
|
-
titleTopMargin: 25,
|
|
601
|
-
barHeight: 20,
|
|
602
|
-
barGap: 4,
|
|
603
|
-
topPadding: 50,
|
|
604
|
-
rightPadding: 75,
|
|
605
|
-
leftPadding: 75,
|
|
606
|
-
gridLineStartPadding: 35,
|
|
607
|
-
fontSize: 11,
|
|
608
|
-
sectionFontSize: 11,
|
|
609
|
-
numberSectionStyles: 4,
|
|
610
|
-
axisFormat: "%Y-%m-%d",
|
|
611
|
-
topAxis: !1,
|
|
612
|
-
displayMode: "",
|
|
613
|
-
weekday: "sunday"
|
|
614
|
-
},
|
|
615
|
-
journey: {
|
|
616
|
-
useMaxWidth: !0,
|
|
617
|
-
diagramMarginX: 50,
|
|
618
|
-
diagramMarginY: 10,
|
|
619
|
-
leftMargin: 150,
|
|
620
|
-
maxLabelWidth: 360,
|
|
621
|
-
width: 150,
|
|
622
|
-
height: 50,
|
|
623
|
-
boxMargin: 10,
|
|
624
|
-
boxTextMargin: 5,
|
|
625
|
-
noteMargin: 10,
|
|
626
|
-
messageMargin: 35,
|
|
627
|
-
messageAlign: "center",
|
|
628
|
-
bottomMarginAdj: 1,
|
|
629
|
-
rightAngles: !1,
|
|
630
|
-
taskFontSize: 14,
|
|
631
|
-
taskFontFamily: "\"Open Sans\", sans-serif",
|
|
632
|
-
taskMargin: 50,
|
|
633
|
-
activationWidth: 10,
|
|
634
|
-
textPlacement: "fo",
|
|
635
|
-
actorColours: [
|
|
636
|
-
"#8FBC8F",
|
|
637
|
-
"#7CFC00",
|
|
638
|
-
"#00FFFF",
|
|
639
|
-
"#20B2AA",
|
|
640
|
-
"#B0E0E6",
|
|
641
|
-
"#FFFFE0"
|
|
642
|
-
],
|
|
643
|
-
sectionFills: [
|
|
644
|
-
"#191970",
|
|
645
|
-
"#8B008B",
|
|
646
|
-
"#4B0082",
|
|
647
|
-
"#2F4F4F",
|
|
648
|
-
"#800000",
|
|
649
|
-
"#8B4513",
|
|
650
|
-
"#00008B"
|
|
651
|
-
],
|
|
652
|
-
sectionColours: ["#fff"],
|
|
653
|
-
titleColor: "",
|
|
654
|
-
titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
655
|
-
titleFontSize: "4ex"
|
|
656
|
-
},
|
|
657
|
-
class: {
|
|
658
|
-
useMaxWidth: !0,
|
|
659
|
-
titleTopMargin: 25,
|
|
660
|
-
arrowMarkerAbsolute: !1,
|
|
661
|
-
dividerMargin: 10,
|
|
662
|
-
padding: 5,
|
|
663
|
-
textHeight: 10,
|
|
664
|
-
defaultRenderer: "dagre-wrapper",
|
|
665
|
-
htmlLabels: !1,
|
|
666
|
-
hideEmptyMembersBox: !1
|
|
667
|
-
},
|
|
668
|
-
state: {
|
|
669
|
-
useMaxWidth: !0,
|
|
670
|
-
titleTopMargin: 25,
|
|
671
|
-
dividerMargin: 10,
|
|
672
|
-
sizeUnit: 5,
|
|
673
|
-
padding: 8,
|
|
674
|
-
textHeight: 10,
|
|
675
|
-
titleShift: -15,
|
|
676
|
-
noteMargin: 10,
|
|
677
|
-
forkWidth: 70,
|
|
678
|
-
forkHeight: 7,
|
|
679
|
-
miniPadding: 2,
|
|
680
|
-
fontSizeFactor: 5.02,
|
|
681
|
-
fontSize: 24,
|
|
682
|
-
labelHeight: 16,
|
|
683
|
-
edgeLengthFactor: "20",
|
|
684
|
-
compositTitleSize: 35,
|
|
685
|
-
radius: 5,
|
|
686
|
-
defaultRenderer: "dagre-wrapper"
|
|
687
|
-
},
|
|
688
|
-
er: {
|
|
689
|
-
useMaxWidth: !0,
|
|
690
|
-
titleTopMargin: 25,
|
|
691
|
-
diagramPadding: 20,
|
|
692
|
-
layoutDirection: "TB",
|
|
693
|
-
minEntityWidth: 100,
|
|
694
|
-
minEntityHeight: 75,
|
|
695
|
-
entityPadding: 15,
|
|
696
|
-
nodeSpacing: 140,
|
|
697
|
-
rankSpacing: 80,
|
|
698
|
-
stroke: "gray",
|
|
699
|
-
fill: "honeydew",
|
|
700
|
-
fontSize: 12
|
|
701
|
-
},
|
|
702
|
-
pie: {
|
|
703
|
-
useMaxWidth: !0,
|
|
704
|
-
textPosition: .75
|
|
705
|
-
},
|
|
706
|
-
quadrantChart: {
|
|
707
|
-
useMaxWidth: !0,
|
|
708
|
-
chartWidth: 500,
|
|
709
|
-
chartHeight: 500,
|
|
710
|
-
titleFontSize: 20,
|
|
711
|
-
titlePadding: 10,
|
|
712
|
-
quadrantPadding: 5,
|
|
713
|
-
xAxisLabelPadding: 5,
|
|
714
|
-
yAxisLabelPadding: 5,
|
|
715
|
-
xAxisLabelFontSize: 16,
|
|
716
|
-
yAxisLabelFontSize: 16,
|
|
717
|
-
quadrantLabelFontSize: 16,
|
|
718
|
-
quadrantTextTopPadding: 5,
|
|
719
|
-
pointTextPadding: 5,
|
|
720
|
-
pointLabelFontSize: 12,
|
|
721
|
-
pointRadius: 5,
|
|
722
|
-
xAxisPosition: "top",
|
|
723
|
-
yAxisPosition: "left",
|
|
724
|
-
quadrantInternalBorderStrokeWidth: 1,
|
|
725
|
-
quadrantExternalBorderStrokeWidth: 2
|
|
726
|
-
},
|
|
727
|
-
xyChart: {
|
|
728
|
-
useMaxWidth: !0,
|
|
729
|
-
width: 700,
|
|
730
|
-
height: 500,
|
|
731
|
-
titleFontSize: 20,
|
|
732
|
-
titlePadding: 10,
|
|
733
|
-
showDataLabel: !1,
|
|
734
|
-
showTitle: !0,
|
|
735
|
-
xAxis: {
|
|
736
|
-
$ref: "#/$defs/XYChartAxisConfig",
|
|
737
|
-
showLabel: !0,
|
|
738
|
-
labelFontSize: 14,
|
|
739
|
-
labelPadding: 5,
|
|
740
|
-
showTitle: !0,
|
|
741
|
-
titleFontSize: 16,
|
|
742
|
-
titlePadding: 5,
|
|
743
|
-
showTick: !0,
|
|
744
|
-
tickLength: 5,
|
|
745
|
-
tickWidth: 2,
|
|
746
|
-
showAxisLine: !0,
|
|
747
|
-
axisLineWidth: 2
|
|
748
|
-
},
|
|
749
|
-
yAxis: {
|
|
750
|
-
$ref: "#/$defs/XYChartAxisConfig",
|
|
751
|
-
showLabel: !0,
|
|
752
|
-
labelFontSize: 14,
|
|
753
|
-
labelPadding: 5,
|
|
754
|
-
showTitle: !0,
|
|
755
|
-
titleFontSize: 16,
|
|
756
|
-
titlePadding: 5,
|
|
757
|
-
showTick: !0,
|
|
758
|
-
tickLength: 5,
|
|
759
|
-
tickWidth: 2,
|
|
760
|
-
showAxisLine: !0,
|
|
761
|
-
axisLineWidth: 2
|
|
762
|
-
},
|
|
763
|
-
chartOrientation: "vertical",
|
|
764
|
-
plotReservedSpacePercent: 50
|
|
765
|
-
},
|
|
766
|
-
requirement: {
|
|
767
|
-
useMaxWidth: !0,
|
|
768
|
-
rect_fill: "#f9f9f9",
|
|
769
|
-
text_color: "#333",
|
|
770
|
-
rect_border_size: "0.5px",
|
|
771
|
-
rect_border_color: "#bbb",
|
|
772
|
-
rect_min_width: 200,
|
|
773
|
-
rect_min_height: 200,
|
|
774
|
-
fontSize: 14,
|
|
775
|
-
rect_padding: 10,
|
|
776
|
-
line_height: 20
|
|
777
|
-
},
|
|
778
|
-
mindmap: {
|
|
779
|
-
useMaxWidth: !0,
|
|
780
|
-
padding: 10,
|
|
781
|
-
maxNodeWidth: 200,
|
|
782
|
-
layoutAlgorithm: "cose-bilkent"
|
|
783
|
-
},
|
|
784
|
-
kanban: {
|
|
785
|
-
useMaxWidth: !0,
|
|
786
|
-
padding: 8,
|
|
787
|
-
sectionWidth: 200,
|
|
788
|
-
ticketBaseUrl: ""
|
|
789
|
-
},
|
|
790
|
-
timeline: {
|
|
791
|
-
useMaxWidth: !0,
|
|
792
|
-
diagramMarginX: 50,
|
|
793
|
-
diagramMarginY: 10,
|
|
794
|
-
leftMargin: 150,
|
|
795
|
-
width: 150,
|
|
796
|
-
height: 50,
|
|
797
|
-
boxMargin: 10,
|
|
798
|
-
boxTextMargin: 5,
|
|
799
|
-
noteMargin: 10,
|
|
800
|
-
messageMargin: 35,
|
|
801
|
-
messageAlign: "center",
|
|
802
|
-
bottomMarginAdj: 1,
|
|
803
|
-
rightAngles: !1,
|
|
804
|
-
taskFontSize: 14,
|
|
805
|
-
taskFontFamily: "\"Open Sans\", sans-serif",
|
|
806
|
-
taskMargin: 50,
|
|
807
|
-
activationWidth: 10,
|
|
808
|
-
textPlacement: "fo",
|
|
809
|
-
actorColours: [
|
|
810
|
-
"#8FBC8F",
|
|
811
|
-
"#7CFC00",
|
|
812
|
-
"#00FFFF",
|
|
813
|
-
"#20B2AA",
|
|
814
|
-
"#B0E0E6",
|
|
815
|
-
"#FFFFE0"
|
|
816
|
-
],
|
|
817
|
-
sectionFills: [
|
|
818
|
-
"#191970",
|
|
819
|
-
"#8B008B",
|
|
820
|
-
"#4B0082",
|
|
821
|
-
"#2F4F4F",
|
|
822
|
-
"#800000",
|
|
823
|
-
"#8B4513",
|
|
824
|
-
"#00008B"
|
|
825
|
-
],
|
|
826
|
-
sectionColours: ["#fff"],
|
|
827
|
-
disableMulticolor: !1
|
|
828
|
-
},
|
|
829
|
-
gitGraph: {
|
|
830
|
-
useMaxWidth: !0,
|
|
831
|
-
titleTopMargin: 25,
|
|
832
|
-
diagramPadding: 8,
|
|
833
|
-
nodeLabel: {
|
|
834
|
-
width: 75,
|
|
835
|
-
height: 100,
|
|
836
|
-
x: -25,
|
|
837
|
-
y: 0
|
|
838
|
-
},
|
|
839
|
-
mainBranchName: "main",
|
|
840
|
-
mainBranchOrder: 0,
|
|
841
|
-
showCommitLabel: !0,
|
|
842
|
-
showBranches: !0,
|
|
843
|
-
rotateCommitLabel: !0,
|
|
844
|
-
parallelCommits: !1,
|
|
845
|
-
arrowMarkerAbsolute: !1
|
|
846
|
-
},
|
|
847
|
-
c4: {
|
|
848
|
-
useMaxWidth: !0,
|
|
849
|
-
diagramMarginX: 50,
|
|
850
|
-
diagramMarginY: 10,
|
|
851
|
-
c4ShapeMargin: 50,
|
|
852
|
-
c4ShapePadding: 20,
|
|
853
|
-
width: 216,
|
|
854
|
-
height: 60,
|
|
855
|
-
boxMargin: 10,
|
|
856
|
-
c4ShapeInRow: 4,
|
|
857
|
-
nextLinePaddingX: 0,
|
|
858
|
-
c4BoundaryInRow: 2,
|
|
859
|
-
personFontSize: 14,
|
|
860
|
-
personFontFamily: "\"Open Sans\", sans-serif",
|
|
861
|
-
personFontWeight: "normal",
|
|
862
|
-
external_personFontSize: 14,
|
|
863
|
-
external_personFontFamily: "\"Open Sans\", sans-serif",
|
|
864
|
-
external_personFontWeight: "normal",
|
|
865
|
-
systemFontSize: 14,
|
|
866
|
-
systemFontFamily: "\"Open Sans\", sans-serif",
|
|
867
|
-
systemFontWeight: "normal",
|
|
868
|
-
external_systemFontSize: 14,
|
|
869
|
-
external_systemFontFamily: "\"Open Sans\", sans-serif",
|
|
870
|
-
external_systemFontWeight: "normal",
|
|
871
|
-
system_dbFontSize: 14,
|
|
872
|
-
system_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
873
|
-
system_dbFontWeight: "normal",
|
|
874
|
-
external_system_dbFontSize: 14,
|
|
875
|
-
external_system_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
876
|
-
external_system_dbFontWeight: "normal",
|
|
877
|
-
system_queueFontSize: 14,
|
|
878
|
-
system_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
879
|
-
system_queueFontWeight: "normal",
|
|
880
|
-
external_system_queueFontSize: 14,
|
|
881
|
-
external_system_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
882
|
-
external_system_queueFontWeight: "normal",
|
|
883
|
-
boundaryFontSize: 14,
|
|
884
|
-
boundaryFontFamily: "\"Open Sans\", sans-serif",
|
|
885
|
-
boundaryFontWeight: "normal",
|
|
886
|
-
messageFontSize: 12,
|
|
887
|
-
messageFontFamily: "\"Open Sans\", sans-serif",
|
|
888
|
-
messageFontWeight: "normal",
|
|
889
|
-
containerFontSize: 14,
|
|
890
|
-
containerFontFamily: "\"Open Sans\", sans-serif",
|
|
891
|
-
containerFontWeight: "normal",
|
|
892
|
-
external_containerFontSize: 14,
|
|
893
|
-
external_containerFontFamily: "\"Open Sans\", sans-serif",
|
|
894
|
-
external_containerFontWeight: "normal",
|
|
895
|
-
container_dbFontSize: 14,
|
|
896
|
-
container_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
897
|
-
container_dbFontWeight: "normal",
|
|
898
|
-
external_container_dbFontSize: 14,
|
|
899
|
-
external_container_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
900
|
-
external_container_dbFontWeight: "normal",
|
|
901
|
-
container_queueFontSize: 14,
|
|
902
|
-
container_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
903
|
-
container_queueFontWeight: "normal",
|
|
904
|
-
external_container_queueFontSize: 14,
|
|
905
|
-
external_container_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
906
|
-
external_container_queueFontWeight: "normal",
|
|
907
|
-
componentFontSize: 14,
|
|
908
|
-
componentFontFamily: "\"Open Sans\", sans-serif",
|
|
909
|
-
componentFontWeight: "normal",
|
|
910
|
-
external_componentFontSize: 14,
|
|
911
|
-
external_componentFontFamily: "\"Open Sans\", sans-serif",
|
|
912
|
-
external_componentFontWeight: "normal",
|
|
913
|
-
component_dbFontSize: 14,
|
|
914
|
-
component_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
915
|
-
component_dbFontWeight: "normal",
|
|
916
|
-
external_component_dbFontSize: 14,
|
|
917
|
-
external_component_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
918
|
-
external_component_dbFontWeight: "normal",
|
|
919
|
-
component_queueFontSize: 14,
|
|
920
|
-
component_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
921
|
-
component_queueFontWeight: "normal",
|
|
922
|
-
external_component_queueFontSize: 14,
|
|
923
|
-
external_component_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
924
|
-
external_component_queueFontWeight: "normal",
|
|
925
|
-
wrap: !0,
|
|
926
|
-
wrapPadding: 10,
|
|
927
|
-
person_bg_color: "#08427B",
|
|
928
|
-
person_border_color: "#073B6F",
|
|
929
|
-
external_person_bg_color: "#686868",
|
|
930
|
-
external_person_border_color: "#8A8A8A",
|
|
931
|
-
system_bg_color: "#1168BD",
|
|
932
|
-
system_border_color: "#3C7FC0",
|
|
933
|
-
system_db_bg_color: "#1168BD",
|
|
934
|
-
system_db_border_color: "#3C7FC0",
|
|
935
|
-
system_queue_bg_color: "#1168BD",
|
|
936
|
-
system_queue_border_color: "#3C7FC0",
|
|
937
|
-
external_system_bg_color: "#999999",
|
|
938
|
-
external_system_border_color: "#8A8A8A",
|
|
939
|
-
external_system_db_bg_color: "#999999",
|
|
940
|
-
external_system_db_border_color: "#8A8A8A",
|
|
941
|
-
external_system_queue_bg_color: "#999999",
|
|
942
|
-
external_system_queue_border_color: "#8A8A8A",
|
|
943
|
-
container_bg_color: "#438DD5",
|
|
944
|
-
container_border_color: "#3C7FC0",
|
|
945
|
-
container_db_bg_color: "#438DD5",
|
|
946
|
-
container_db_border_color: "#3C7FC0",
|
|
947
|
-
container_queue_bg_color: "#438DD5",
|
|
948
|
-
container_queue_border_color: "#3C7FC0",
|
|
949
|
-
external_container_bg_color: "#B3B3B3",
|
|
950
|
-
external_container_border_color: "#A6A6A6",
|
|
951
|
-
external_container_db_bg_color: "#B3B3B3",
|
|
952
|
-
external_container_db_border_color: "#A6A6A6",
|
|
953
|
-
external_container_queue_bg_color: "#B3B3B3",
|
|
954
|
-
external_container_queue_border_color: "#A6A6A6",
|
|
955
|
-
component_bg_color: "#85BBF0",
|
|
956
|
-
component_border_color: "#78A8D8",
|
|
957
|
-
component_db_bg_color: "#85BBF0",
|
|
958
|
-
component_db_border_color: "#78A8D8",
|
|
959
|
-
component_queue_bg_color: "#85BBF0",
|
|
960
|
-
component_queue_border_color: "#78A8D8",
|
|
961
|
-
external_component_bg_color: "#CCCCCC",
|
|
962
|
-
external_component_border_color: "#BFBFBF",
|
|
963
|
-
external_component_db_bg_color: "#CCCCCC",
|
|
964
|
-
external_component_db_border_color: "#BFBFBF",
|
|
965
|
-
external_component_queue_bg_color: "#CCCCCC",
|
|
966
|
-
external_component_queue_border_color: "#BFBFBF"
|
|
967
|
-
},
|
|
968
|
-
sankey: {
|
|
969
|
-
useMaxWidth: !0,
|
|
970
|
-
width: 600,
|
|
971
|
-
height: 400,
|
|
972
|
-
linkColor: "gradient",
|
|
973
|
-
nodeAlignment: "justify",
|
|
974
|
-
showValues: !0,
|
|
975
|
-
prefix: "",
|
|
976
|
-
suffix: ""
|
|
977
|
-
},
|
|
978
|
-
block: {
|
|
979
|
-
useMaxWidth: !0,
|
|
980
|
-
padding: 8
|
|
981
|
-
},
|
|
982
|
-
packet: {
|
|
983
|
-
useMaxWidth: !0,
|
|
984
|
-
rowHeight: 32,
|
|
985
|
-
bitWidth: 32,
|
|
986
|
-
bitsPerRow: 32,
|
|
987
|
-
showBits: !0,
|
|
988
|
-
paddingX: 5,
|
|
989
|
-
paddingY: 5
|
|
990
|
-
},
|
|
991
|
-
architecture: {
|
|
992
|
-
useMaxWidth: !0,
|
|
993
|
-
padding: 40,
|
|
994
|
-
iconSize: 80,
|
|
995
|
-
fontSize: 16
|
|
996
|
-
},
|
|
997
|
-
radar: {
|
|
998
|
-
useMaxWidth: !0,
|
|
999
|
-
width: 600,
|
|
1000
|
-
height: 600,
|
|
1001
|
-
marginTop: 50,
|
|
1002
|
-
marginRight: 50,
|
|
1003
|
-
marginBottom: 50,
|
|
1004
|
-
marginLeft: 50,
|
|
1005
|
-
axisScaleFactor: 1,
|
|
1006
|
-
axisLabelFactor: 1.05,
|
|
1007
|
-
curveTension: .17
|
|
1008
|
-
},
|
|
1009
|
-
theme: "default",
|
|
1010
|
-
look: "classic",
|
|
1011
|
-
handDrawnSeed: 0,
|
|
1012
|
-
layout: "dagre",
|
|
1013
|
-
maxTextSize: 5e4,
|
|
1014
|
-
maxEdges: 500,
|
|
1015
|
-
darkMode: !1,
|
|
1016
|
-
fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
|
|
1017
|
-
logLevel: 5,
|
|
1018
|
-
securityLevel: "strict",
|
|
1019
|
-
startOnLoad: !0,
|
|
1020
|
-
arrowMarkerAbsolute: !1,
|
|
1021
|
-
secure: [
|
|
1022
|
-
"secure",
|
|
1023
|
-
"securityLevel",
|
|
1024
|
-
"startOnLoad",
|
|
1025
|
-
"maxTextSize",
|
|
1026
|
-
"suppressErrorRendering",
|
|
1027
|
-
"maxEdges"
|
|
1028
|
-
],
|
|
1029
|
-
legacyMathML: !1,
|
|
1030
|
-
forceLegacyMathML: !1,
|
|
1031
|
-
deterministicIds: !1,
|
|
1032
|
-
fontSize: 16,
|
|
1033
|
-
markdownAutoWrap: !0,
|
|
1034
|
-
suppressErrorRendering: !1
|
|
1035
|
-
}, config = {
|
|
1036
|
-
...config_schema_default,
|
|
1037
|
-
deterministicIDSeed: void 0,
|
|
1038
|
-
elk: {
|
|
1039
|
-
mergeEdges: !1,
|
|
1040
|
-
nodePlacementStrategy: "BRANDES_KOEPF",
|
|
1041
|
-
forceNodeModelOrder: !1,
|
|
1042
|
-
considerModelOrder: "NODES_AND_EDGES"
|
|
1043
|
-
},
|
|
1044
|
-
themeCSS: void 0,
|
|
1045
|
-
themeVariables: themes_default.default.getThemeVariables(),
|
|
1046
|
-
sequence: {
|
|
1047
|
-
...config_schema_default.sequence,
|
|
1048
|
-
messageFont: /* @__PURE__ */ __name(function() {
|
|
1049
|
-
return {
|
|
1050
|
-
fontFamily: this.messageFontFamily,
|
|
1051
|
-
fontSize: this.messageFontSize,
|
|
1052
|
-
fontWeight: this.messageFontWeight
|
|
1053
|
-
};
|
|
1054
|
-
}, "messageFont"),
|
|
1055
|
-
noteFont: /* @__PURE__ */ __name(function() {
|
|
1056
|
-
return {
|
|
1057
|
-
fontFamily: this.noteFontFamily,
|
|
1058
|
-
fontSize: this.noteFontSize,
|
|
1059
|
-
fontWeight: this.noteFontWeight
|
|
1060
|
-
};
|
|
1061
|
-
}, "noteFont"),
|
|
1062
|
-
actorFont: /* @__PURE__ */ __name(function() {
|
|
1063
|
-
return {
|
|
1064
|
-
fontFamily: this.actorFontFamily,
|
|
1065
|
-
fontSize: this.actorFontSize,
|
|
1066
|
-
fontWeight: this.actorFontWeight
|
|
1067
|
-
};
|
|
1068
|
-
}, "actorFont")
|
|
1069
|
-
},
|
|
1070
|
-
class: { hideEmptyMembersBox: !1 },
|
|
1071
|
-
gantt: {
|
|
1072
|
-
...config_schema_default.gantt,
|
|
1073
|
-
tickInterval: void 0,
|
|
1074
|
-
useWidth: void 0
|
|
1075
|
-
},
|
|
1076
|
-
c4: {
|
|
1077
|
-
...config_schema_default.c4,
|
|
1078
|
-
useWidth: void 0,
|
|
1079
|
-
personFont: /* @__PURE__ */ __name(function() {
|
|
1080
|
-
return {
|
|
1081
|
-
fontFamily: this.personFontFamily,
|
|
1082
|
-
fontSize: this.personFontSize,
|
|
1083
|
-
fontWeight: this.personFontWeight
|
|
1084
|
-
};
|
|
1085
|
-
}, "personFont"),
|
|
1086
|
-
flowchart: {
|
|
1087
|
-
...config_schema_default.flowchart,
|
|
1088
|
-
inheritDir: !1
|
|
1089
|
-
},
|
|
1090
|
-
external_personFont: /* @__PURE__ */ __name(function() {
|
|
1091
|
-
return {
|
|
1092
|
-
fontFamily: this.external_personFontFamily,
|
|
1093
|
-
fontSize: this.external_personFontSize,
|
|
1094
|
-
fontWeight: this.external_personFontWeight
|
|
1095
|
-
};
|
|
1096
|
-
}, "external_personFont"),
|
|
1097
|
-
systemFont: /* @__PURE__ */ __name(function() {
|
|
1098
|
-
return {
|
|
1099
|
-
fontFamily: this.systemFontFamily,
|
|
1100
|
-
fontSize: this.systemFontSize,
|
|
1101
|
-
fontWeight: this.systemFontWeight
|
|
1102
|
-
};
|
|
1103
|
-
}, "systemFont"),
|
|
1104
|
-
external_systemFont: /* @__PURE__ */ __name(function() {
|
|
1105
|
-
return {
|
|
1106
|
-
fontFamily: this.external_systemFontFamily,
|
|
1107
|
-
fontSize: this.external_systemFontSize,
|
|
1108
|
-
fontWeight: this.external_systemFontWeight
|
|
1109
|
-
};
|
|
1110
|
-
}, "external_systemFont"),
|
|
1111
|
-
system_dbFont: /* @__PURE__ */ __name(function() {
|
|
1112
|
-
return {
|
|
1113
|
-
fontFamily: this.system_dbFontFamily,
|
|
1114
|
-
fontSize: this.system_dbFontSize,
|
|
1115
|
-
fontWeight: this.system_dbFontWeight
|
|
1116
|
-
};
|
|
1117
|
-
}, "system_dbFont"),
|
|
1118
|
-
external_system_dbFont: /* @__PURE__ */ __name(function() {
|
|
1119
|
-
return {
|
|
1120
|
-
fontFamily: this.external_system_dbFontFamily,
|
|
1121
|
-
fontSize: this.external_system_dbFontSize,
|
|
1122
|
-
fontWeight: this.external_system_dbFontWeight
|
|
1123
|
-
};
|
|
1124
|
-
}, "external_system_dbFont"),
|
|
1125
|
-
system_queueFont: /* @__PURE__ */ __name(function() {
|
|
1126
|
-
return {
|
|
1127
|
-
fontFamily: this.system_queueFontFamily,
|
|
1128
|
-
fontSize: this.system_queueFontSize,
|
|
1129
|
-
fontWeight: this.system_queueFontWeight
|
|
1130
|
-
};
|
|
1131
|
-
}, "system_queueFont"),
|
|
1132
|
-
external_system_queueFont: /* @__PURE__ */ __name(function() {
|
|
1133
|
-
return {
|
|
1134
|
-
fontFamily: this.external_system_queueFontFamily,
|
|
1135
|
-
fontSize: this.external_system_queueFontSize,
|
|
1136
|
-
fontWeight: this.external_system_queueFontWeight
|
|
1137
|
-
};
|
|
1138
|
-
}, "external_system_queueFont"),
|
|
1139
|
-
containerFont: /* @__PURE__ */ __name(function() {
|
|
1140
|
-
return {
|
|
1141
|
-
fontFamily: this.containerFontFamily,
|
|
1142
|
-
fontSize: this.containerFontSize,
|
|
1143
|
-
fontWeight: this.containerFontWeight
|
|
1144
|
-
};
|
|
1145
|
-
}, "containerFont"),
|
|
1146
|
-
external_containerFont: /* @__PURE__ */ __name(function() {
|
|
1147
|
-
return {
|
|
1148
|
-
fontFamily: this.external_containerFontFamily,
|
|
1149
|
-
fontSize: this.external_containerFontSize,
|
|
1150
|
-
fontWeight: this.external_containerFontWeight
|
|
1151
|
-
};
|
|
1152
|
-
}, "external_containerFont"),
|
|
1153
|
-
container_dbFont: /* @__PURE__ */ __name(function() {
|
|
1154
|
-
return {
|
|
1155
|
-
fontFamily: this.container_dbFontFamily,
|
|
1156
|
-
fontSize: this.container_dbFontSize,
|
|
1157
|
-
fontWeight: this.container_dbFontWeight
|
|
1158
|
-
};
|
|
1159
|
-
}, "container_dbFont"),
|
|
1160
|
-
external_container_dbFont: /* @__PURE__ */ __name(function() {
|
|
1161
|
-
return {
|
|
1162
|
-
fontFamily: this.external_container_dbFontFamily,
|
|
1163
|
-
fontSize: this.external_container_dbFontSize,
|
|
1164
|
-
fontWeight: this.external_container_dbFontWeight
|
|
1165
|
-
};
|
|
1166
|
-
}, "external_container_dbFont"),
|
|
1167
|
-
container_queueFont: /* @__PURE__ */ __name(function() {
|
|
1168
|
-
return {
|
|
1169
|
-
fontFamily: this.container_queueFontFamily,
|
|
1170
|
-
fontSize: this.container_queueFontSize,
|
|
1171
|
-
fontWeight: this.container_queueFontWeight
|
|
1172
|
-
};
|
|
1173
|
-
}, "container_queueFont"),
|
|
1174
|
-
external_container_queueFont: /* @__PURE__ */ __name(function() {
|
|
1175
|
-
return {
|
|
1176
|
-
fontFamily: this.external_container_queueFontFamily,
|
|
1177
|
-
fontSize: this.external_container_queueFontSize,
|
|
1178
|
-
fontWeight: this.external_container_queueFontWeight
|
|
1179
|
-
};
|
|
1180
|
-
}, "external_container_queueFont"),
|
|
1181
|
-
componentFont: /* @__PURE__ */ __name(function() {
|
|
1182
|
-
return {
|
|
1183
|
-
fontFamily: this.componentFontFamily,
|
|
1184
|
-
fontSize: this.componentFontSize,
|
|
1185
|
-
fontWeight: this.componentFontWeight
|
|
1186
|
-
};
|
|
1187
|
-
}, "componentFont"),
|
|
1188
|
-
external_componentFont: /* @__PURE__ */ __name(function() {
|
|
1189
|
-
return {
|
|
1190
|
-
fontFamily: this.external_componentFontFamily,
|
|
1191
|
-
fontSize: this.external_componentFontSize,
|
|
1192
|
-
fontWeight: this.external_componentFontWeight
|
|
1193
|
-
};
|
|
1194
|
-
}, "external_componentFont"),
|
|
1195
|
-
component_dbFont: /* @__PURE__ */ __name(function() {
|
|
1196
|
-
return {
|
|
1197
|
-
fontFamily: this.component_dbFontFamily,
|
|
1198
|
-
fontSize: this.component_dbFontSize,
|
|
1199
|
-
fontWeight: this.component_dbFontWeight
|
|
1200
|
-
};
|
|
1201
|
-
}, "component_dbFont"),
|
|
1202
|
-
external_component_dbFont: /* @__PURE__ */ __name(function() {
|
|
1203
|
-
return {
|
|
1204
|
-
fontFamily: this.external_component_dbFontFamily,
|
|
1205
|
-
fontSize: this.external_component_dbFontSize,
|
|
1206
|
-
fontWeight: this.external_component_dbFontWeight
|
|
1207
|
-
};
|
|
1208
|
-
}, "external_component_dbFont"),
|
|
1209
|
-
component_queueFont: /* @__PURE__ */ __name(function() {
|
|
1210
|
-
return {
|
|
1211
|
-
fontFamily: this.component_queueFontFamily,
|
|
1212
|
-
fontSize: this.component_queueFontSize,
|
|
1213
|
-
fontWeight: this.component_queueFontWeight
|
|
1214
|
-
};
|
|
1215
|
-
}, "component_queueFont"),
|
|
1216
|
-
external_component_queueFont: /* @__PURE__ */ __name(function() {
|
|
1217
|
-
return {
|
|
1218
|
-
fontFamily: this.external_component_queueFontFamily,
|
|
1219
|
-
fontSize: this.external_component_queueFontSize,
|
|
1220
|
-
fontWeight: this.external_component_queueFontWeight
|
|
1221
|
-
};
|
|
1222
|
-
}, "external_component_queueFont"),
|
|
1223
|
-
boundaryFont: /* @__PURE__ */ __name(function() {
|
|
1224
|
-
return {
|
|
1225
|
-
fontFamily: this.boundaryFontFamily,
|
|
1226
|
-
fontSize: this.boundaryFontSize,
|
|
1227
|
-
fontWeight: this.boundaryFontWeight
|
|
1228
|
-
};
|
|
1229
|
-
}, "boundaryFont"),
|
|
1230
|
-
messageFont: /* @__PURE__ */ __name(function() {
|
|
1231
|
-
return {
|
|
1232
|
-
fontFamily: this.messageFontFamily,
|
|
1233
|
-
fontSize: this.messageFontSize,
|
|
1234
|
-
fontWeight: this.messageFontWeight
|
|
1235
|
-
};
|
|
1236
|
-
}, "messageFont")
|
|
1237
|
-
},
|
|
1238
|
-
pie: {
|
|
1239
|
-
...config_schema_default.pie,
|
|
1240
|
-
useWidth: 984
|
|
1241
|
-
},
|
|
1242
|
-
xyChart: {
|
|
1243
|
-
...config_schema_default.xyChart,
|
|
1244
|
-
useWidth: void 0
|
|
1245
|
-
},
|
|
1246
|
-
requirement: {
|
|
1247
|
-
...config_schema_default.requirement,
|
|
1248
|
-
useWidth: void 0
|
|
1249
|
-
},
|
|
1250
|
-
packet: { ...config_schema_default.packet },
|
|
1251
|
-
radar: { ...config_schema_default.radar },
|
|
1252
|
-
treemap: {
|
|
1253
|
-
useMaxWidth: !0,
|
|
1254
|
-
padding: 10,
|
|
1255
|
-
diagramPadding: 8,
|
|
1256
|
-
showValues: !0,
|
|
1257
|
-
nodeWidth: 100,
|
|
1258
|
-
nodeHeight: 40,
|
|
1259
|
-
borderWidth: 1,
|
|
1260
|
-
valueFontSize: 12,
|
|
1261
|
-
labelFontSize: 14,
|
|
1262
|
-
valueFormat: ","
|
|
1263
|
-
}
|
|
1264
|
-
}, keyify = /* @__PURE__ */ __name((h, W = "") => Object.keys(h).reduce((G, K) => Array.isArray(h[K]) ? G : typeof h[K] == "object" && h[K] !== null ? [
|
|
1265
|
-
...G,
|
|
1266
|
-
W + K,
|
|
1267
|
-
...keyify(h[K], "")
|
|
1268
|
-
] : [...G, W + K], []), "keyify"), configKeys = new Set(keyify(config, "")), defaultConfig_default = config, sanitizeDirective = /* @__PURE__ */ __name((h) => {
|
|
1269
|
-
if (log.debug("sanitizeDirective called with", h), !(typeof h != "object" || !h)) {
|
|
1270
|
-
if (Array.isArray(h)) {
|
|
1271
|
-
h.forEach((h) => sanitizeDirective(h));
|
|
1272
|
-
return;
|
|
1273
|
-
}
|
|
1274
|
-
for (let W of Object.keys(h)) {
|
|
1275
|
-
if (log.debug("Checking key", W), W.startsWith("__") || W.includes("proto") || W.includes("constr") || !configKeys.has(W) || h[W] == null) {
|
|
1276
|
-
log.debug("sanitize deleting key: ", W), delete h[W];
|
|
1277
|
-
continue;
|
|
1278
|
-
}
|
|
1279
|
-
if (typeof h[W] == "object") {
|
|
1280
|
-
log.debug("sanitizing object", W), sanitizeDirective(h[W]);
|
|
1281
|
-
continue;
|
|
1282
|
-
}
|
|
1283
|
-
for (let K of [
|
|
1284
|
-
"themeCSS",
|
|
1285
|
-
"fontFamily",
|
|
1286
|
-
"altFontFamily"
|
|
1287
|
-
]) W.includes(K) && (log.debug("sanitizing css option", W), h[W] = sanitizeCss(h[W]));
|
|
1288
|
-
}
|
|
1289
|
-
if (h.themeVariables) for (let W of Object.keys(h.themeVariables)) {
|
|
1290
|
-
let G = h.themeVariables[W];
|
|
1291
|
-
G?.match && !G.match(/^[\d "#%(),.;A-Za-z]+$/) && (h.themeVariables[W] = "");
|
|
1292
|
-
}
|
|
1293
|
-
log.debug("After sanitization", h);
|
|
1294
|
-
}
|
|
1295
|
-
}, "sanitizeDirective"), sanitizeCss = /* @__PURE__ */ __name((h) => {
|
|
1296
|
-
let W = 0, G = 0;
|
|
1297
|
-
for (let K of h) {
|
|
1298
|
-
if (W < G) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
1299
|
-
K === "{" ? W++ : K === "}" && G++;
|
|
1300
|
-
}
|
|
1301
|
-
return W === G ? h : "{ /* ERROR: Unbalanced CSS */ }";
|
|
1302
|
-
}, "sanitizeCss"), defaultConfig = Object.freeze(defaultConfig_default), siteConfig = assignWithDepth_default({}, defaultConfig), configFromInitialize, directives = [], currentConfig = assignWithDepth_default({}, defaultConfig), updateCurrentConfig = /* @__PURE__ */ __name((h, W) => {
|
|
1303
|
-
let G = assignWithDepth_default({}, h), K = {};
|
|
1304
|
-
for (let h of W) sanitize(h), K = assignWithDepth_default(K, h);
|
|
1305
|
-
if (G = assignWithDepth_default(G, K), K.theme && K.theme in themes_default) {
|
|
1306
|
-
let h = assignWithDepth_default(assignWithDepth_default({}, configFromInitialize).themeVariables || {}, K.themeVariables);
|
|
1307
|
-
G.theme && G.theme in themes_default && (G.themeVariables = themes_default[G.theme].getThemeVariables(h));
|
|
1308
|
-
}
|
|
1309
|
-
return currentConfig = G, checkConfig(currentConfig), currentConfig;
|
|
1310
|
-
}, "updateCurrentConfig"), setSiteConfig = /* @__PURE__ */ __name((h) => (siteConfig = assignWithDepth_default({}, defaultConfig), siteConfig = assignWithDepth_default(siteConfig, h), h.theme && themes_default[h.theme] && (siteConfig.themeVariables = themes_default[h.theme].getThemeVariables(h.themeVariables)), updateCurrentConfig(siteConfig, directives), siteConfig), "setSiteConfig"), saveConfigFromInitialize = /* @__PURE__ */ __name((h) => {
|
|
1311
|
-
configFromInitialize = assignWithDepth_default({}, h);
|
|
1312
|
-
}, "saveConfigFromInitialize"), updateSiteConfig = /* @__PURE__ */ __name((h) => (siteConfig = assignWithDepth_default(siteConfig, h), updateCurrentConfig(siteConfig, directives), siteConfig), "updateSiteConfig"), getSiteConfig = /* @__PURE__ */ __name(() => assignWithDepth_default({}, siteConfig), "getSiteConfig"), setConfig = /* @__PURE__ */ __name((h) => (checkConfig(h), assignWithDepth_default(currentConfig, h), getConfig()), "setConfig"), getConfig = /* @__PURE__ */ __name(() => assignWithDepth_default({}, currentConfig), "getConfig"), sanitize = /* @__PURE__ */ __name((h) => {
|
|
1313
|
-
h && (["secure", ...siteConfig.secure ?? []].forEach((W) => {
|
|
1314
|
-
Object.hasOwn(h, W) && (log.debug(`Denied attempt to modify a secure key ${W}`, h[W]), delete h[W]);
|
|
1315
|
-
}), Object.keys(h).forEach((W) => {
|
|
1316
|
-
W.startsWith("__") && delete h[W];
|
|
1317
|
-
}), Object.keys(h).forEach((W) => {
|
|
1318
|
-
typeof h[W] == "string" && (h[W].includes("<") || h[W].includes(">") || h[W].includes("url(data:")) && delete h[W], typeof h[W] == "object" && sanitize(h[W]);
|
|
1319
|
-
}));
|
|
1320
|
-
}, "sanitize"), addDirective = /* @__PURE__ */ __name((h) => {
|
|
1321
|
-
sanitizeDirective(h), h.fontFamily && !h.themeVariables?.fontFamily && (h.themeVariables = {
|
|
1322
|
-
...h.themeVariables,
|
|
1323
|
-
fontFamily: h.fontFamily
|
|
1324
|
-
}), directives.push(h), updateCurrentConfig(siteConfig, directives);
|
|
1325
|
-
}, "addDirective"), reset = /* @__PURE__ */ __name((h = siteConfig) => {
|
|
1326
|
-
directives = [], updateCurrentConfig(h, directives);
|
|
1327
|
-
}, "reset"), ConfigWarning = { LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead." }, issuedWarnings = {}, issueWarning = /* @__PURE__ */ __name((h) => {
|
|
1328
|
-
issuedWarnings[h] || (log.warn(ConfigWarning[h]), issuedWarnings[h] = !0);
|
|
1329
|
-
}, "issueWarning"), checkConfig = /* @__PURE__ */ __name((h) => {
|
|
1330
|
-
h && (h.lazyLoadedDiagrams || h.loadExternalDiagramsAtStartup) && issueWarning("LAZY_LOAD_DEPRECATED");
|
|
1331
|
-
}, "checkConfig"), getUserDefinedConfig = /* @__PURE__ */ __name(() => {
|
|
1332
|
-
let h = {};
|
|
1333
|
-
configFromInitialize && (h = assignWithDepth_default(h, configFromInitialize));
|
|
1334
|
-
for (let W of directives) h = assignWithDepth_default(h, W);
|
|
1335
|
-
return h;
|
|
1336
|
-
}, "getUserDefinedConfig"), lineBreakRegex = /<br\s*\/?>/gi, getRows = /* @__PURE__ */ __name((h) => h ? breakToPlaceholder(h).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), setupDompurifyHooksIfNotSetup = /* @__PURE__ */ (() => {
|
|
1337
|
-
let h = !1;
|
|
1338
|
-
return () => {
|
|
1339
|
-
h ||= (setupDompurifyHooks(), !0);
|
|
1340
|
-
};
|
|
1341
|
-
})();
|
|
1342
|
-
function setupDompurifyHooks() {
|
|
1343
|
-
let h = "data-temp-href-target";
|
|
1344
|
-
purify.addHook("beforeSanitizeAttributes", (W) => {
|
|
1345
|
-
W.tagName === "A" && W.hasAttribute("target") && W.setAttribute(h, W.getAttribute("target") ?? "");
|
|
1346
|
-
}), purify.addHook("afterSanitizeAttributes", (W) => {
|
|
1347
|
-
W.tagName === "A" && W.hasAttribute(h) && (W.setAttribute("target", W.getAttribute(h) ?? ""), W.removeAttribute(h), W.getAttribute("target") === "_blank" && W.setAttribute("rel", "noopener"));
|
|
1348
|
-
});
|
|
1349
|
-
}
|
|
1350
|
-
__name(setupDompurifyHooks, "setupDompurifyHooks");
|
|
1351
|
-
var removeScript = /* @__PURE__ */ __name((h) => (setupDompurifyHooksIfNotSetup(), purify.sanitize(h)), "removeScript"), sanitizeMore = /* @__PURE__ */ __name((h, W) => {
|
|
1352
|
-
if (W.flowchart?.htmlLabels !== !1) {
|
|
1353
|
-
let G = W.securityLevel;
|
|
1354
|
-
G === "antiscript" || G === "strict" ? h = removeScript(h) : G !== "loose" && (h = breakToPlaceholder(h), h = h.replace(/</g, "<").replace(/>/g, ">"), h = h.replace(/=/g, "="), h = placeholderToBreak(h));
|
|
1355
|
-
}
|
|
1356
|
-
return h;
|
|
1357
|
-
}, "sanitizeMore"), sanitizeText = /* @__PURE__ */ __name((h, W) => h && (h = W.dompurifyConfig ? purify.sanitize(sanitizeMore(h, W), W.dompurifyConfig).toString() : purify.sanitize(sanitizeMore(h, W), { FORBID_TAGS: ["style"] }).toString(), h), "sanitizeText"), sanitizeTextOrArray = /* @__PURE__ */ __name((h, W) => typeof h == "string" ? sanitizeText(h, W) : h.flat().map((h) => sanitizeText(h, W)), "sanitizeTextOrArray"), hasBreaks = /* @__PURE__ */ __name((h) => lineBreakRegex.test(h), "hasBreaks"), splitBreaks = /* @__PURE__ */ __name((h) => h.split(lineBreakRegex), "splitBreaks"), placeholderToBreak = /* @__PURE__ */ __name((h) => h.replace(/#br#/g, "<br/>"), "placeholderToBreak"), breakToPlaceholder = /* @__PURE__ */ __name((h) => h.replace(lineBreakRegex, "#br#"), "breakToPlaceholder"), getUrl = /* @__PURE__ */ __name((h) => {
|
|
1358
|
-
let W = "";
|
|
1359
|
-
return h && (W = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, W = CSS.escape(W)), W;
|
|
1360
|
-
}, "getUrl"), evaluate = /* @__PURE__ */ __name((h) => !(h === !1 || [
|
|
1361
|
-
"false",
|
|
1362
|
-
"null",
|
|
1363
|
-
"0"
|
|
1364
|
-
].includes(String(h).trim().toLowerCase())), "evaluate"), getMax = /* @__PURE__ */ __name(function(...h) {
|
|
1365
|
-
let W = h.filter((h) => !isNaN(h));
|
|
1366
|
-
return Math.max(...W);
|
|
1367
|
-
}, "getMax"), getMin = /* @__PURE__ */ __name(function(...h) {
|
|
1368
|
-
let W = h.filter((h) => !isNaN(h));
|
|
1369
|
-
return Math.min(...W);
|
|
1370
|
-
}, "getMin"), parseGenericTypes = /* @__PURE__ */ __name(function(h) {
|
|
1371
|
-
let W = h.split(/(,)/), G = [];
|
|
1372
|
-
for (let h = 0; h < W.length; h++) {
|
|
1373
|
-
let K = W[h];
|
|
1374
|
-
if (K === "," && h > 0 && h + 1 < W.length) {
|
|
1375
|
-
let q = W[h - 1], J = W[h + 1];
|
|
1376
|
-
shouldCombineSets(q, J) && (K = q + "," + J, h++, G.pop());
|
|
1377
|
-
}
|
|
1378
|
-
G.push(processSet(K));
|
|
1379
|
-
}
|
|
1380
|
-
return G.join("");
|
|
1381
|
-
}, "parseGenericTypes"), countOccurrence = /* @__PURE__ */ __name((h, W) => Math.max(0, h.split(W).length - 1), "countOccurrence"), shouldCombineSets = /* @__PURE__ */ __name((h, W) => {
|
|
1382
|
-
let G = countOccurrence(h, "~"), K = countOccurrence(W, "~");
|
|
1383
|
-
return G === 1 && K === 1;
|
|
1384
|
-
}, "shouldCombineSets"), processSet = /* @__PURE__ */ __name((h) => {
|
|
1385
|
-
let W = countOccurrence(h, "~"), G = !1;
|
|
1386
|
-
if (W <= 1) return h;
|
|
1387
|
-
W % 2 != 0 && h.startsWith("~") && (h = h.substring(1), G = !0);
|
|
1388
|
-
let K = [...h], q = K.indexOf("~"), J = K.lastIndexOf("~");
|
|
1389
|
-
for (; q !== -1 && J !== -1 && q !== J;) K[q] = "<", K[J] = ">", q = K.indexOf("~"), J = K.lastIndexOf("~");
|
|
1390
|
-
return G && K.unshift("~"), K.join("");
|
|
1391
|
-
}, "processSet"), isMathMLSupported = /* @__PURE__ */ __name(() => window.MathMLElement !== void 0, "isMathMLSupported"), katexRegex = /\$\$(.*)\$\$/g, hasKatex = /* @__PURE__ */ __name((h) => (h.match(katexRegex)?.length ?? 0) > 0, "hasKatex"), calculateMathMLDimensions = /* @__PURE__ */ __name(async (h, W) => {
|
|
1392
|
-
let G = document.createElement("div");
|
|
1393
|
-
G.innerHTML = await renderKatexSanitized(h, W), G.id = "katex-temp", G.style.visibility = "hidden", G.style.position = "absolute", G.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", G);
|
|
1394
|
-
let K = {
|
|
1395
|
-
width: G.clientWidth,
|
|
1396
|
-
height: G.clientHeight
|
|
1397
|
-
};
|
|
1398
|
-
return G.remove(), K;
|
|
1399
|
-
}, "calculateMathMLDimensions"), renderKatexUnsanitized = /* @__PURE__ */ __name(async (h, W) => {
|
|
1400
|
-
if (!hasKatex(h)) return h;
|
|
1401
|
-
if (!(isMathMLSupported() || W.legacyMathML || W.forceLegacyMathML)) return h.replace(katexRegex, "MathML is unsupported in this environment.");
|
|
1402
|
-
{
|
|
1403
|
-
let { default: G } = await import("../../../../katex/dist/katex.js"), K = W.forceLegacyMathML || !isMathMLSupported() && W.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
1404
|
-
return h.split(lineBreakRegex).map((h) => hasKatex(h) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${h}</div>` : `<div>${h}</div>`).join("").replace(katexRegex, (h, W) => G.renderToString(W, {
|
|
1405
|
-
throwOnError: !0,
|
|
1406
|
-
displayMode: !0,
|
|
1407
|
-
output: K
|
|
1408
|
-
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
1409
|
-
}
|
|
1410
|
-
return h.replace(katexRegex, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
|
|
1411
|
-
}, "renderKatexUnsanitized"), renderKatexSanitized = /* @__PURE__ */ __name(async (h, W) => sanitizeText(await renderKatexUnsanitized(h, W), W), "renderKatexSanitized"), common_default = {
|
|
1412
|
-
getRows,
|
|
1413
|
-
sanitizeText,
|
|
1414
|
-
sanitizeTextOrArray,
|
|
1415
|
-
hasBreaks,
|
|
1416
|
-
splitBreaks,
|
|
1417
|
-
lineBreakRegex,
|
|
1418
|
-
removeScript,
|
|
1419
|
-
getUrl,
|
|
1420
|
-
evaluate,
|
|
1421
|
-
getMax,
|
|
1422
|
-
getMin
|
|
1423
|
-
}, d3Attrs = /* @__PURE__ */ __name(function(h, W) {
|
|
1424
|
-
for (let G of W) h.attr(G[0], G[1]);
|
|
1425
|
-
}, "d3Attrs"), calculateSvgSizeAttrs = /* @__PURE__ */ __name(function(h, W, G) {
|
|
1426
|
-
let K = /* @__PURE__ */ new Map();
|
|
1427
|
-
return G ? (K.set("width", "100%"), K.set("style", `max-width: ${W}px;`)) : (K.set("height", h), K.set("width", W)), K;
|
|
1428
|
-
}, "calculateSvgSizeAttrs"), configureSvgSize = /* @__PURE__ */ __name(function(h, W, G, K) {
|
|
1429
|
-
d3Attrs(h, calculateSvgSizeAttrs(W, G, K));
|
|
1430
|
-
}, "configureSvgSize"), setupGraphViewbox = /* @__PURE__ */ __name(function(h, W, K, q) {
|
|
1431
|
-
let J = W.node().getBBox(), Y = J.width, X = J.height;
|
|
1432
|
-
log.info(`SVG bounds: ${Y}x${X}`, J);
|
|
1433
|
-
let Z = 0, Q = 0;
|
|
1434
|
-
log.info(`Graph bounds: ${Z}x${Q}`, h), Z = Y + K * 2, Q = X + K * 2, log.info(`Calculated bounds: ${Z}x${Q}`), configureSvgSize(W, Q, Z, q);
|
|
1435
|
-
let $ = `${J.x - K} ${J.y - K} ${J.width + 2 * K} ${J.height + 2 * K}`;
|
|
1436
|
-
W.attr("viewBox", $);
|
|
1437
|
-
}, "setupGraphViewbox"), themes = {}, getStyles = /* @__PURE__ */ __name((h, W, K) => {
|
|
1438
|
-
let q = "";
|
|
1439
|
-
return h in themes && themes[h] ? q = themes[h](K) : log.warn(`No theme found for ${h}`), ` & {
|
|
1440
|
-
font-family: ${K.fontFamily};
|
|
1441
|
-
font-size: ${K.fontSize};
|
|
1442
|
-
fill: ${K.textColor}
|
|
1443
|
-
}
|
|
1444
|
-
@keyframes edge-animation-frame {
|
|
1445
|
-
from {
|
|
1446
|
-
stroke-dashoffset: 0;
|
|
1447
|
-
}
|
|
1448
|
-
}
|
|
1449
|
-
@keyframes dash {
|
|
1450
|
-
to {
|
|
1451
|
-
stroke-dashoffset: 0;
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
& .edge-animation-slow {
|
|
1455
|
-
stroke-dasharray: 9,5 !important;
|
|
1456
|
-
stroke-dashoffset: 900;
|
|
1457
|
-
animation: dash 50s linear infinite;
|
|
1458
|
-
stroke-linecap: round;
|
|
1459
|
-
}
|
|
1460
|
-
& .edge-animation-fast {
|
|
1461
|
-
stroke-dasharray: 9,5 !important;
|
|
1462
|
-
stroke-dashoffset: 900;
|
|
1463
|
-
animation: dash 20s linear infinite;
|
|
1464
|
-
stroke-linecap: round;
|
|
1465
|
-
}
|
|
1466
|
-
/* Classes common for multiple diagrams */
|
|
1467
|
-
|
|
1468
|
-
& .error-icon {
|
|
1469
|
-
fill: ${K.errorBkgColor};
|
|
1470
|
-
}
|
|
1471
|
-
& .error-text {
|
|
1472
|
-
fill: ${K.errorTextColor};
|
|
1473
|
-
stroke: ${K.errorTextColor};
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
& .edge-thickness-normal {
|
|
1477
|
-
stroke-width: 1px;
|
|
1478
|
-
}
|
|
1479
|
-
& .edge-thickness-thick {
|
|
1480
|
-
stroke-width: 3.5px
|
|
1481
|
-
}
|
|
1482
|
-
& .edge-pattern-solid {
|
|
1483
|
-
stroke-dasharray: 0;
|
|
1484
|
-
}
|
|
1485
|
-
& .edge-thickness-invisible {
|
|
1486
|
-
stroke-width: 0;
|
|
1487
|
-
fill: none;
|
|
1488
|
-
}
|
|
1489
|
-
& .edge-pattern-dashed{
|
|
1490
|
-
stroke-dasharray: 3;
|
|
1491
|
-
}
|
|
1492
|
-
.edge-pattern-dotted {
|
|
1493
|
-
stroke-dasharray: 2;
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
& .marker {
|
|
1497
|
-
fill: ${K.lineColor};
|
|
1498
|
-
stroke: ${K.lineColor};
|
|
1499
|
-
}
|
|
1500
|
-
& .marker.cross {
|
|
1501
|
-
stroke: ${K.lineColor};
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
& svg {
|
|
1505
|
-
font-family: ${K.fontFamily};
|
|
1506
|
-
font-size: ${K.fontSize};
|
|
1507
|
-
}
|
|
1508
|
-
& p {
|
|
1509
|
-
margin: 0
|
|
1510
|
-
}
|
|
1511
|
-
|
|
1512
|
-
${q}
|
|
1513
|
-
|
|
1514
|
-
${W}
|
|
1515
|
-
`;
|
|
1516
|
-
}, "getStyles"), addStylesForDiagram = /* @__PURE__ */ __name((h, W) => {
|
|
1517
|
-
W !== void 0 && (themes[h] = W);
|
|
1518
|
-
}, "addStylesForDiagram"), styles_default = getStyles, commonDb_exports = {};
|
|
1519
|
-
__export(commonDb_exports, {
|
|
1520
|
-
clear: () => clear,
|
|
1521
|
-
getAccDescription: () => getAccDescription,
|
|
1522
|
-
getAccTitle: () => getAccTitle,
|
|
1523
|
-
getDiagramTitle: () => getDiagramTitle,
|
|
1524
|
-
setAccDescription: () => setAccDescription,
|
|
1525
|
-
setAccTitle: () => setAccTitle,
|
|
1526
|
-
setDiagramTitle: () => setDiagramTitle
|
|
1527
|
-
});
|
|
1528
|
-
var accTitle = "", diagramTitle = "", accDescription = "", sanitizeText2 = /* @__PURE__ */ __name((h) => sanitizeText(h, getConfig()), "sanitizeText"), clear = /* @__PURE__ */ __name(() => {
|
|
1529
|
-
accTitle = "", accDescription = "", diagramTitle = "";
|
|
1530
|
-
}, "clear"), setAccTitle = /* @__PURE__ */ __name((h) => {
|
|
1531
|
-
accTitle = sanitizeText2(h).replace(/^\s+/g, "");
|
|
1532
|
-
}, "setAccTitle"), getAccTitle = /* @__PURE__ */ __name(() => accTitle, "getAccTitle"), setAccDescription = /* @__PURE__ */ __name((h) => {
|
|
1533
|
-
accDescription = sanitizeText2(h).replace(/\n\s+/g, "\n");
|
|
1534
|
-
}, "setAccDescription"), getAccDescription = /* @__PURE__ */ __name(() => accDescription, "getAccDescription"), setDiagramTitle = /* @__PURE__ */ __name((h) => {
|
|
1535
|
-
diagramTitle = sanitizeText2(h);
|
|
1536
|
-
}, "setDiagramTitle"), getDiagramTitle = /* @__PURE__ */ __name(() => diagramTitle, "getDiagramTitle"), log2 = log, setLogLevel2 = setLogLevel, getConfig2 = getConfig, setConfig2 = setConfig, defaultConfig2 = defaultConfig, sanitizeText3 = /* @__PURE__ */ __name((h) => sanitizeText(h, getConfig2()), "sanitizeText"), setupGraphViewbox2 = setupGraphViewbox, getCommonDb = /* @__PURE__ */ __name(() => commonDb_exports, "getCommonDb"), diagrams = {}, registerDiagram = /* @__PURE__ */ __name((h, W, G) => {
|
|
1537
|
-
diagrams[h] && log2.warn(`Diagram with id ${h} already registered. Overwriting.`), diagrams[h] = W, G && addDetector(h, G), addStylesForDiagram(h, W.styles), W.injectUtils?.(log2, setLogLevel2, getConfig2, sanitizeText3, setupGraphViewbox2, getCommonDb(), () => {});
|
|
1538
|
-
}, "registerDiagram"), getDiagram = /* @__PURE__ */ __name((h) => {
|
|
1539
|
-
if (h in diagrams) return diagrams[h];
|
|
1540
|
-
throw new DiagramNotFoundError(h);
|
|
1541
|
-
}, "getDiagram"), DiagramNotFoundError = class extends Error {
|
|
1542
|
-
static #e = __name(this, "DiagramNotFoundError");
|
|
1543
|
-
constructor(h) {
|
|
1544
|
-
super(`Diagram ${h} not found.`);
|
|
1545
|
-
}
|
|
1546
|
-
};
|
|
1547
|
-
export { UnknownDiagramError, addDirective, assignWithDepth_default, calculateMathMLDimensions, clear, commonDb_exports, common_default, configureSvgSize, defaultConfig, defaultConfig2, defaultConfig_default, detectType, detectors, directiveRegex, evaluate, frontMatterRegex, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagram, getDiagramLoader, getDiagramTitle, getSiteConfig, getThemeVariables3, getUrl, getUserDefinedConfig, hasKatex, lineBreakRegex, parseGenericTypes, registerDiagram, registerLazyLoadedDiagrams, renderKatexSanitized, reset, sanitizeDirective, sanitizeText, sanitizeText3, saveConfigFromInitialize, setAccDescription, setAccTitle, setConfig, setConfig2, setDiagramTitle, setSiteConfig, setupGraphViewbox, setupGraphViewbox2, styles_default, themes_default, updateSiteConfig };
|