@sme.up/ketchup2 2.1.0 → 2.2.0
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/{architectureDiagram-Q4EWVU46-JSjagcXX.cjs → architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs} +1 -1
- package/dist/{architectureDiagram-Q4EWVU46-u2vgZv3N.js → architectureDiagram-Q4EWVU46-CnzjcVBn.js} +4 -4
- package/dist/assets/buttonListAssets.d.ts +8 -0
- package/dist/assets/buttonListAssets.d.ts.map +1 -1
- package/dist/basic-components/button/button-types.d.ts +4 -0
- package/dist/basic-components/button/button-types.d.ts.map +1 -1
- package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
- package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
- package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
- package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
- package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
- package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts +11 -4
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/image/image.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
- package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
- package/dist/basic-components/text/text.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/{blockDiagram-DXYQGD6D-BpB6_kTP.js → blockDiagram-DXYQGD6D-B0NvV2Ph.js} +8 -8
- package/dist/{blockDiagram-DXYQGD6D-DlcDXSwH.cjs → blockDiagram-DXYQGD6D-D6DypQdM.cjs} +1 -1
- package/dist/{c4Diagram-AHTNJAMY-B5Z8nO1s.js → c4Diagram-AHTNJAMY-DPijI3_r.js} +3 -3
- package/dist/{c4Diagram-AHTNJAMY-CX5IjREU.cjs → c4Diagram-AHTNJAMY-Dgwv-e5O.cjs} +1 -1
- package/dist/{channel-BqNr2cYO.js → channel-CRWct3-i.js} +1 -1
- package/dist/channel-DkTvdPpU.cjs +1 -0
- package/dist/{chunk-336JU56O-CuXRn1VH.cjs → chunk-336JU56O-DQhIGd25.cjs} +1 -1
- package/dist/{chunk-336JU56O-xKPgkG3O.js → chunk-336JU56O-DkZvWJVe.js} +5 -5
- package/dist/{chunk-426QAEUC-JjFVHKYG.js → chunk-426QAEUC-CDXJVpQr.js} +1 -1
- package/dist/{chunk-426QAEUC-Df31vuwu.cjs → chunk-426QAEUC-CqN26l3E.cjs} +1 -1
- package/dist/{chunk-4TB4RGXK-DdKJIFS5.cjs → chunk-4TB4RGXK-B0SIkKDf.cjs} +1 -1
- package/dist/{chunk-4TB4RGXK-CKyHmNcP.js → chunk-4TB4RGXK-D2LRzcEP.js} +5 -5
- package/dist/{chunk-5FUZZQ4R-D_vnCbAb.cjs → chunk-5FUZZQ4R-Cj5KbGC7.cjs} +1 -1
- package/dist/{chunk-5FUZZQ4R-2kdZJWq2.js → chunk-5FUZZQ4R-D3C0F0Tr.js} +5 -5
- package/dist/{chunk-5PVQY5BW-CfQDYQZt.cjs → chunk-5PVQY5BW-DEPZKGvb.cjs} +1 -1
- package/dist/{chunk-5PVQY5BW-C5U7sJAA.js → chunk-5PVQY5BW-Dn8n6moB.js} +1 -1
- package/dist/{chunk-EDXVE4YY-BZsJORf8.cjs → chunk-EDXVE4YY-1dwNWzc7.cjs} +1 -1
- package/dist/{chunk-EDXVE4YY-Bzf4FU3i.js → chunk-EDXVE4YY-CGNVB686.js} +1 -1
- package/dist/{chunk-ENJZ2VHE-CwgVASaU.cjs → chunk-ENJZ2VHE-BAWfx0nA.cjs} +1 -1
- package/dist/{chunk-ENJZ2VHE-BluGQPyl.js → chunk-ENJZ2VHE-CZ7BvL2h.js} +7 -7
- package/dist/{chunk-ICPOFSXX-Sn6LWD0k.js → chunk-ICPOFSXX-fQJ5ufMR.js} +435 -431
- package/dist/{chunk-ICPOFSXX-CoaJw-IT.cjs → chunk-ICPOFSXX-hY6BIZ4Y.cjs} +5 -5
- package/dist/{chunk-OYMX7WX6-BCT45RPu.cjs → chunk-OYMX7WX6-CrK-lehh.cjs} +1 -1
- package/dist/{chunk-OYMX7WX6-BQADsxYi.js → chunk-OYMX7WX6-DJkGVCqi.js} +4 -4
- package/dist/{chunk-U2HBQHQK-D0AoQWxK.cjs → chunk-U2HBQHQK-CJ77uizk.cjs} +1 -1
- package/dist/{chunk-U2HBQHQK-BZ3YFMXB.js → chunk-U2HBQHQK-Ceyeq0IV.js} +2 -2
- package/dist/{chunk-X2U36JSP-D1RYKjVc.cjs → chunk-X2U36JSP-CtXjVqek.cjs} +1 -1
- package/dist/{chunk-X2U36JSP-CY7mJR8m.js → chunk-X2U36JSP-VxRY65ea.js} +1 -1
- package/dist/{chunk-YZCP3GAM-9K9WNdyN.js → chunk-YZCP3GAM-D6P3SWmL.js} +1 -1
- package/dist/{chunk-YZCP3GAM-BmaAafMm.cjs → chunk-YZCP3GAM-qxaNo0r8.cjs} +1 -1
- package/dist/{chunk-ZZ45TVLE-AQQsnXy4.cjs → chunk-ZZ45TVLE-BfSqZnT4.cjs} +1 -1
- package/dist/{chunk-ZZ45TVLE-CIYrdg-O.js → chunk-ZZ45TVLE-X2jolXSO.js} +2 -2
- package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
- package/dist/{classDiagram-6PBFFD2Q-XGxl_AeB.js → classDiagram-6PBFFD2Q-Dgaxt4wI.js} +11 -11
- package/dist/{classDiagram-v2-HSJHXN6E-CwayYG4G.js → classDiagram-v2-HSJHXN6E-CWhiK6nm.js} +11 -11
- package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
- package/dist/clone-CQQwPjME.cjs +1 -0
- package/dist/{clone-Dn__H8fX.js → clone-Dwbh_blD.js} +1 -1
- package/dist/components/drawer/drawer-types.d.ts +4 -0
- package/dist/components/drawer/drawer-types.d.ts.map +1 -1
- package/dist/components/planner/planner-assets.d.ts +1 -1
- package/dist/components/planner/planner-assets.d.ts.map +1 -1
- package/dist/components/planner/planner-types.d.ts +1 -1
- package/dist/components/planner/planner-types.d.ts.map +1 -1
- package/dist/components/planner/planner-utils.d.ts +6 -5
- package/dist/components/planner/planner-utils.d.ts.map +1 -1
- package/dist/components/planner/planner.d.ts.map +1 -1
- package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
- package/dist/components/scaffold/scaffold-types.d.ts +1 -0
- package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
- package/dist/components/timeline/timeline-types.d.ts +6 -2
- package/dist/components/timeline/timeline-types.d.ts.map +1 -1
- package/dist/components/timeline/timeline.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/{dagre-BjnWDdkw.cjs → dagre-BcwvU6ZF.cjs} +1 -1
- package/dist/{dagre-DVLnxd7n.js → dagre-D17h-Z-U.js} +2 -2
- package/dist/{dagre-KV5264BT-BjqayRYC.js → dagre-KV5264BT-BnEKAAAn.js} +10 -10
- package/dist/{dagre-KV5264BT-BvInGAUC.cjs → dagre-KV5264BT-DRbiLA37.cjs} +1 -1
- package/dist/{diagram-5BDNPKRD-Bk7depC0.js → diagram-5BDNPKRD-B_Fa4dpl.js} +3 -3
- package/dist/{diagram-5BDNPKRD-D6EXksHo.cjs → diagram-5BDNPKRD-CPN8m2Hl.cjs} +1 -1
- package/dist/{diagram-G4DWMVQ6-CJASbR70.cjs → diagram-G4DWMVQ6-VpXkNb67.cjs} +1 -1
- package/dist/{diagram-G4DWMVQ6-BkQnbCLv.js → diagram-G4DWMVQ6-iYV58Drq.js} +5 -5
- package/dist/{diagram-MMDJMWI5-DEt7jQx9.cjs → diagram-MMDJMWI5-DGk_PUo9.cjs} +1 -1
- package/dist/{diagram-MMDJMWI5-DUUVPi55.js → diagram-MMDJMWI5-DUpEI5ug.js} +3 -3
- package/dist/{diagram-TYMM5635-5auoAFCi.cjs → diagram-TYMM5635-BH_-vSv9.cjs} +1 -1
- package/dist/{diagram-TYMM5635-Cpj8wfoJ.js → diagram-TYMM5635-DHHPZ5ZJ.js} +3 -3
- package/dist/{erDiagram-SMLLAGMA-D_ByPk0C.js → erDiagram-SMLLAGMA-C8FM7wbJ.js} +10 -10
- package/dist/{erDiagram-SMLLAGMA-DVUT6TBy.cjs → erDiagram-SMLLAGMA-vuYEmfFA.cjs} +1 -1
- package/dist/{flowDiagram-DWJPFMVM-BWrkDnqc.js → flowDiagram-DWJPFMVM-BGtX2gw0.js} +11 -11
- package/dist/{flowDiagram-DWJPFMVM-BbK42NaF.cjs → flowDiagram-DWJPFMVM-DWuKiJeo.cjs} +1 -1
- package/dist/functional-components/action/action-types.d.ts +26 -1
- package/dist/functional-components/action/action-types.d.ts.map +1 -1
- package/dist/functional-components/action/action-utils.d.ts +13 -1
- package/dist/functional-components/action/action-utils.d.ts.map +1 -1
- package/dist/functional-components/action/action.d.ts.map +1 -1
- package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
- package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
- package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
- package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
- package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
- package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
- package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
- package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
- package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
- package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
- package/dist/{ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs → ganttDiagram-T4ZO3ILL-C25CnBTv.cjs} +1 -1
- package/dist/{ganttDiagram-T4ZO3ILL-LuaYkUvj.js → ganttDiagram-T4ZO3ILL-PY1BUp5b.js} +2 -2
- package/dist/{gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs → gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs} +1 -1
- package/dist/{gitGraphDiagram-UUTBAWPF-DKkENwcV.js → gitGraphDiagram-UUTBAWPF-CDIW9-sX.js} +2 -2
- package/dist/{graphlib-HdfvGLpV.cjs → graphlib-CdgJ32J_.cjs} +1 -1
- package/dist/{graphlib-Cpifseqb.js → graphlib-DbQkSsC8.js} +1 -1
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useGanttMath.d.ts +1 -1
- package/dist/hooks/useGanttMath.d.ts.map +1 -1
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/{infoDiagram-42DDH7IO-CLkQPFe0.js → infoDiagram-42DDH7IO-CQLxpytS.js} +2 -2
- package/dist/{infoDiagram-42DDH7IO-CH5xHj8H.cjs → infoDiagram-42DDH7IO-Da__a_a_.cjs} +1 -1
- package/dist/{ishikawaDiagram-UXIWVN3A-DqbVPChK.js → ishikawaDiagram-UXIWVN3A-BblrAmns.js} +3 -3
- package/dist/{ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs → ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs} +1 -1
- package/dist/{journeyDiagram-VCZTEJTY-DudduR0c.js → journeyDiagram-VCZTEJTY-CCOZ1XFK.js} +2 -2
- package/dist/{journeyDiagram-VCZTEJTY-XRc0J8gM.cjs → journeyDiagram-VCZTEJTY-UwcVOFtb.cjs} +1 -1
- package/dist/{kanban-definition-6JOO6SKY-DzEqE64J.js → kanban-definition-6JOO6SKY-BWwfbdd6.js} +7 -7
- package/dist/{kanban-definition-6JOO6SKY-Br87atRc.cjs → kanban-definition-6JOO6SKY-Coxpi43B.cjs} +1 -1
- package/dist/ketchup2.cjs.js +106 -99
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +20387 -20008
- package/dist/{line-BbHmiwbs.cjs → line-C7oijaT4.cjs} +1 -1
- package/dist/{line-JyRBGWft.js → line-CrxZdHmO.js} +1 -1
- package/dist/{mindmap-definition-QFDTVHPH-BCq8zmLt.cjs → mindmap-definition-QFDTVHPH--xULjpFZ.cjs} +1 -1
- package/dist/{mindmap-definition-QFDTVHPH-NGjPQ5SM.js → mindmap-definition-QFDTVHPH-dYQoMeA6.js} +9 -9
- package/dist/{pieDiagram-DEJITSTG-CK4xy0PS.cjs → pieDiagram-DEJITSTG-7we8s9eC.cjs} +1 -1
- package/dist/{pieDiagram-DEJITSTG-DTeyzHmB.js → pieDiagram-DEJITSTG-Dj5pX4fC.js} +3 -3
- package/dist/{quadrantDiagram-34T5L4WZ-D-_iiK79.cjs → quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs} +1 -1
- package/dist/{quadrantDiagram-34T5L4WZ-CCcJIf91.js → quadrantDiagram-34T5L4WZ-BKNOJBiR.js} +1 -1
- package/dist/{requirementDiagram-MS252O5E-EfY029Xj.cjs → requirementDiagram-MS252O5E-BemsEy3Y.cjs} +1 -1
- package/dist/{requirementDiagram-MS252O5E-BdOanuYe.js → requirementDiagram-MS252O5E-r3eZu57d.js} +9 -9
- package/dist/{sankeyDiagram-XADWPNL6-3jlM2UcU.cjs → sankeyDiagram-XADWPNL6-B9YCkPHh.cjs} +1 -1
- package/dist/{sankeyDiagram-XADWPNL6-3wviN_U4.js → sankeyDiagram-XADWPNL6-ErTVVewH.js} +1 -1
- package/dist/{sequenceDiagram-FGHM5R23-DC8SjhFN.js → sequenceDiagram-FGHM5R23-BmqbzzHY.js} +3 -3
- package/dist/{sequenceDiagram-FGHM5R23-lK1G3QLN.cjs → sequenceDiagram-FGHM5R23-CBpQL6X2.cjs} +1 -1
- package/dist/{stateDiagram-FHFEXIEX-DnkzFphf.js → stateDiagram-FHFEXIEX-CL9LE-W1.js} +13 -13
- package/dist/{stateDiagram-FHFEXIEX-DsQigFuR.cjs → stateDiagram-FHFEXIEX-Cju5Z2VS.cjs} +1 -1
- package/dist/{stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js → stateDiagram-v2-QKLJ7IA2-BHoytfGp.js} +10 -10
- package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
- package/dist/{timeline-definition-GMOUNBTQ-DWpngnE4.cjs → timeline-definition-GMOUNBTQ-BeTHmikc.cjs} +1 -1
- package/dist/{timeline-definition-GMOUNBTQ-CBnYBWN0.js → timeline-definition-GMOUNBTQ-DgcI7XnE.js} +3 -3
- package/dist/types/data-structures.d.ts +9 -1
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -0
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/utils/style.d.ts +13 -2
- package/dist/utils/style.d.ts.map +1 -1
- package/dist/{vennDiagram-DHZGUBPP-M-kkEkXj.js → vennDiagram-DHZGUBPP-7tx3VVDU.js} +3 -3
- package/dist/{vennDiagram-DHZGUBPP-D-kj-sVU.cjs → vennDiagram-DHZGUBPP-C16dnMoe.cjs} +1 -1
- package/dist/{wardleyDiagram-NUSXRM2D-CUX1SYhw.js → wardleyDiagram-NUSXRM2D-DGKU7A2U.js} +2 -2
- package/dist/{wardleyDiagram-NUSXRM2D-thoOuA_D.cjs → wardleyDiagram-NUSXRM2D-DY51LHBa.cjs} +1 -1
- package/dist/{xychartDiagram-5P7HB3ND-1cXRZ1bi.js → xychartDiagram-5P7HB3ND--7RYyckP.js} +5 -5
- package/dist/{xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs → xychartDiagram-5P7HB3ND-Cj0HUNew.cjs} +1 -1
- package/package.json +1 -1
- package/dist/channel-BY9Lkyz7.cjs +0 -1
- package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +0 -1
- package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +0 -1
- package/dist/clone-lShkT11Q.cjs +0 -1
- package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
- package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
- package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
- package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
- package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
- package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
- package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
- package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
- package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
- package/dist/hooks/usePlannerSync.d.ts +0 -11
- package/dist/hooks/usePlannerSync.d.ts.map +0 -1
- package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +0 -1
- package/dist/utils/wbs-utils.d.ts +0 -143
- package/dist/utils/wbs-utils.d.ts.map +0 -1
- /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
- /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
- /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
|
@@ -126,7 +126,7 @@ var he = l(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
126
126
|
"annotation-xml",
|
|
127
127
|
"mprescripts",
|
|
128
128
|
"none"
|
|
129
|
-
]), xe = l(["#text"]), Se = l(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")), Ce = l(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), we = l(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.
|
|
129
|
+
]), xe = l(["#text"]), Se = l(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")), Ce = l(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), we = l(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Te = l([
|
|
130
130
|
"xlink:href",
|
|
131
131
|
"xml:id",
|
|
132
132
|
"xlink:title",
|
|
@@ -146,17 +146,10 @@ var he = l(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
146
146
|
TMPLIT_EXPR: Oe
|
|
147
147
|
}), Ie = {
|
|
148
148
|
element: 1,
|
|
149
|
-
attribute: 2,
|
|
150
149
|
text: 3,
|
|
151
|
-
cdataSection: 4,
|
|
152
|
-
entityReference: 5,
|
|
153
|
-
entityNode: 6,
|
|
154
150
|
progressingInstruction: 7,
|
|
155
151
|
comment: 8,
|
|
156
|
-
document: 9
|
|
157
|
-
documentType: 10,
|
|
158
|
-
documentFragment: 11,
|
|
159
|
-
notation: 12
|
|
152
|
+
document: 9
|
|
160
153
|
}, Le = function() {
|
|
161
154
|
return typeof window > "u" ? null : window;
|
|
162
155
|
}, Re = function(e, t) {
|
|
@@ -191,7 +184,7 @@ var he = l(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
191
184
|
};
|
|
192
185
|
function Be() {
|
|
193
186
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Le(), t = (e) => Be(e);
|
|
194
|
-
if (t.version = "3.
|
|
187
|
+
if (t.version = "3.4.0", t.removed = [], !e || !e.document || e.document.nodeType !== Ie.document || !e.Element) return t.isSupported = !1, t;
|
|
195
188
|
let { document: n } = e, r = n, a = r.currentScript, { DocumentFragment: o, HTMLTemplateElement: s, Node: c, Element: u, NodeFilter: f, NamedNodeMap: ee = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: g, DOMParser: fe, trustedTypes: pe } = e, Ee = u.prototype, De = me(Ee, "cloneNode"), Oe = me(Ee, "remove"), ke = me(Ee, "nextSibling"), Ae = me(Ee, "childNodes"), Me = me(Ee, "parentNode");
|
|
196
189
|
if (typeof s == "function") {
|
|
197
190
|
let e = n.createElement("template");
|
|
@@ -199,18 +192,18 @@ function Be() {
|
|
|
199
192
|
}
|
|
200
193
|
let y, Pe = "", { implementation: b, createNodeIterator: Ve, createDocumentFragment: x, getElementsByTagName: S } = n, { importNode: C } = r, w = ze();
|
|
201
194
|
t.isSupported = typeof i == "function" && typeof Me == "function" && b && b.createHTMLDocument !== void 0;
|
|
202
|
-
let { MUSTACHE_EXPR:
|
|
195
|
+
let { MUSTACHE_EXPR: T, ERB_EXPR: E, TMPLIT_EXPR: D, DATA_ATTR: He, ARIA_ATTR: Ue, IS_SCRIPT_OR_DATA: O, ATTR_WHITESPACE: We, CUSTOM_ELEMENT: k } = Fe, { IS_ALLOWED_URI: Ge } = Fe, A = null, j = _({}, [
|
|
203
196
|
...he,
|
|
204
197
|
...ge,
|
|
205
198
|
..._e,
|
|
206
199
|
...ye,
|
|
207
200
|
...xe
|
|
208
|
-
]),
|
|
201
|
+
]), M = null, N = _({}, [
|
|
209
202
|
...Se,
|
|
210
203
|
...Ce,
|
|
211
204
|
...we,
|
|
212
205
|
...Te
|
|
213
|
-
]),
|
|
206
|
+
]), P = Object.seal(d(null, {
|
|
214
207
|
tagNameCheck: {
|
|
215
208
|
writable: !0,
|
|
216
209
|
configurable: !1,
|
|
@@ -229,7 +222,7 @@ function Be() {
|
|
|
229
222
|
enumerable: !0,
|
|
230
223
|
value: !1
|
|
231
224
|
}
|
|
232
|
-
})),
|
|
225
|
+
})), F = null, Ke = null, I = Object.seal(d(null, {
|
|
233
226
|
tagCheck: {
|
|
234
227
|
writable: !0,
|
|
235
228
|
configurable: !1,
|
|
@@ -242,7 +235,7 @@ function Be() {
|
|
|
242
235
|
enumerable: !0,
|
|
243
236
|
value: null
|
|
244
237
|
}
|
|
245
|
-
})),
|
|
238
|
+
})), qe = !0, Je = !0, Ye = !1, Xe = !0, L = !1, Ze = !0, R = !1, Qe = !1, $e = !1, z = !1, B = !1, V = !1, H = !0, U = !1, et = !0, tt = !1, nt = {}, W = null, rt = _({}, [
|
|
246
239
|
"annotation-xml",
|
|
247
240
|
"audio",
|
|
248
241
|
"colgroup",
|
|
@@ -311,11 +304,11 @@ function Be() {
|
|
|
311
304
|
}, xt = function() {
|
|
312
305
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
313
306
|
if (!(q && q === e)) {
|
|
314
|
-
if ((!e || typeof e != "object") && (e = {}), e = v(e), _t = vt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, K = _t === "application/xhtml+xml" ? oe : ae,
|
|
307
|
+
if ((!e || typeof e != "object") && (e = {}), e = v(e), _t = vt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, K = _t === "application/xhtml+xml" ? oe : ae, A = m(e, "ALLOWED_TAGS") ? _({}, e.ALLOWED_TAGS, K) : j, M = m(e, "ALLOWED_ATTR") ? _({}, e.ALLOWED_ATTR, K) : N, ft = m(e, "ALLOWED_NAMESPACES") ? _({}, e.ALLOWED_NAMESPACES, oe) : pt, ot = m(e, "ADD_URI_SAFE_ATTR") ? _(v(st), e.ADD_URI_SAFE_ATTR, K) : st, it = m(e, "ADD_DATA_URI_TAGS") ? _(v(at), e.ADD_DATA_URI_TAGS, K) : at, W = m(e, "FORBID_CONTENTS") ? _({}, e.FORBID_CONTENTS, K) : rt, F = m(e, "FORBID_TAGS") ? _({}, e.FORBID_TAGS, K) : v({}), Ke = m(e, "FORBID_ATTR") ? _({}, e.FORBID_ATTR, K) : v({}), nt = m(e, "USE_PROFILES") ? e.USE_PROFILES : !1, qe = e.ALLOW_ARIA_ATTR !== !1, Je = e.ALLOW_DATA_ATTR !== !1, Ye = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, L = e.SAFE_FOR_TEMPLATES || !1, Ze = e.SAFE_FOR_XML !== !1, R = e.WHOLE_DOCUMENT || !1, z = e.RETURN_DOM || !1, B = e.RETURN_DOM_FRAGMENT || !1, V = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, H = e.SANITIZE_DOM !== !1, U = e.SANITIZE_NAMED_PROPS || !1, et = e.KEEP_CONTENT !== !1, tt = e.IN_PLACE || !1, Ge = e.ALLOWED_URI_REGEXP || je, ut = e.NAMESPACE || G, mt = e.MATHML_TEXT_INTEGRATION_POINTS || mt, ht = e.HTML_INTEGRATION_POINTS || ht, P = e.CUSTOM_ELEMENT_HANDLING || d(null), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (P.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (P.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (P.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), L && (Je = !1), B && (z = !0), nt && (A = _({}, xe), M = d(null), nt.html === !0 && (_(A, he), _(M, Se)), nt.svg === !0 && (_(A, ge), _(M, Ce), _(M, Te)), nt.svgFilters === !0 && (_(A, _e), _(M, Ce), _(M, Te)), nt.mathMl === !0 && (_(A, ye), _(M, we), _(M, Te))), I.tagCheck = null, I.attributeCheck = null, e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? I.tagCheck = e.ADD_TAGS : (A === j && (A = v(A)), _(A, e.ADD_TAGS, K))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? I.attributeCheck = e.ADD_ATTR : (M === N && (M = v(M)), _(M, e.ADD_ATTR, K))), e.ADD_URI_SAFE_ATTR && _(ot, e.ADD_URI_SAFE_ATTR, K), e.FORBID_CONTENTS && (W === rt && (W = v(W)), _(W, e.FORBID_CONTENTS, K)), e.ADD_FORBID_CONTENTS && (W === rt && (W = v(W)), _(W, e.ADD_FORBID_CONTENTS, K)), et && (A["#text"] = !0), R && _(A, [
|
|
315
308
|
"html",
|
|
316
309
|
"head",
|
|
317
310
|
"body"
|
|
318
|
-
]),
|
|
311
|
+
]), A.table && (_(A, ["tbody"]), delete F.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
319
312
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
320
313
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
321
314
|
y = e.TRUSTED_TYPES_POLICY, Pe = y.createHTML("");
|
|
@@ -353,7 +346,7 @@ function Be() {
|
|
|
353
346
|
from: n
|
|
354
347
|
});
|
|
355
348
|
}
|
|
356
|
-
if (n.removeAttribute(e), e === "is") if (
|
|
349
|
+
if (n.removeAttribute(e), e === "is") if (z || B) try {
|
|
357
350
|
J(n);
|
|
358
351
|
} catch {}
|
|
359
352
|
else try {
|
|
@@ -361,7 +354,7 @@ function Be() {
|
|
|
361
354
|
} catch {}
|
|
362
355
|
}, X = function(e) {
|
|
363
356
|
let t = null, r = null;
|
|
364
|
-
if (
|
|
357
|
+
if ($e) e = "<remove></remove>" + e;
|
|
365
358
|
else {
|
|
366
359
|
let t = se(e, /^[\r\n\t ]+/);
|
|
367
360
|
r = t && t[0];
|
|
@@ -378,30 +371,30 @@ function Be() {
|
|
|
378
371
|
} catch {}
|
|
379
372
|
}
|
|
380
373
|
let a = t.body || t.documentElement;
|
|
381
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), ut === G ? S.call(t,
|
|
374
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), ut === G ? S.call(t, R ? "html" : "body")[0] : R ? t.documentElement : a;
|
|
382
375
|
}, Tt = function(e) {
|
|
383
376
|
return Ve.call(e.ownerDocument || e, e, f.SHOW_ELEMENT | f.SHOW_COMMENT | f.SHOW_TEXT | f.SHOW_PROCESSING_INSTRUCTION | f.SHOW_CDATA_SECTION, null);
|
|
384
377
|
}, Z = function(e) {
|
|
385
378
|
return e instanceof g && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ee) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
386
|
-
},
|
|
379
|
+
}, Q = function(e) {
|
|
387
380
|
return typeof c == "function" && e instanceof c;
|
|
388
381
|
};
|
|
389
|
-
function
|
|
382
|
+
function $(e, n, r) {
|
|
390
383
|
p(e, (e) => {
|
|
391
384
|
e.call(t, n, r, q);
|
|
392
385
|
});
|
|
393
386
|
}
|
|
394
|
-
let
|
|
387
|
+
let Et = function(e) {
|
|
395
388
|
let n = null;
|
|
396
|
-
if (
|
|
389
|
+
if ($(w.beforeSanitizeElements, e, null), Z(e)) return J(e), !0;
|
|
397
390
|
let r = K(e.nodeName);
|
|
398
|
-
if (
|
|
391
|
+
if ($(w.uponSanitizeElement, e, {
|
|
399
392
|
tagName: r,
|
|
400
|
-
allowedTags:
|
|
401
|
-
}),
|
|
402
|
-
if (!(
|
|
403
|
-
if (!
|
|
404
|
-
if (
|
|
393
|
+
allowedTags: A
|
|
394
|
+
}), Ze && e.hasChildNodes() && !Q(e.firstElementChild) && h(/<[/\w!]/g, e.innerHTML) && h(/<[/\w!]/g, e.textContent) || Ze && e.namespaceURI === G && r === "style" && Q(e.firstElementChild) || e.nodeType === Ie.progressingInstruction || Ze && e.nodeType === Ie.comment && h(/<[/\w]/g, e.data)) return J(e), !0;
|
|
395
|
+
if (F[r] || !(I.tagCheck instanceof Function && I.tagCheck(r)) && !A[r]) {
|
|
396
|
+
if (!F[r] && Ot(r) && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, r) || P.tagNameCheck instanceof Function && P.tagNameCheck(r))) return !1;
|
|
397
|
+
if (et && !W[r]) {
|
|
405
398
|
let t = Me(e) || e.parentNode, n = Ae(e) || e.childNodes;
|
|
406
399
|
if (n && t) {
|
|
407
400
|
let r = n.length;
|
|
@@ -413,37 +406,37 @@ function Be() {
|
|
|
413
406
|
}
|
|
414
407
|
return J(e), !0;
|
|
415
408
|
}
|
|
416
|
-
return e instanceof u && !wt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (J(e), !0) : (
|
|
417
|
-
He,
|
|
409
|
+
return e instanceof u && !wt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (J(e), !0) : (L && e.nodeType === Ie.text && (n = e.textContent, p([
|
|
418
410
|
T,
|
|
419
|
-
E
|
|
411
|
+
E,
|
|
412
|
+
D
|
|
420
413
|
], (e) => {
|
|
421
414
|
n = ce(n, e, " ");
|
|
422
|
-
}), e.textContent !== n && (re(t.removed, { element: e.cloneNode() }), e.textContent = n)),
|
|
423
|
-
},
|
|
424
|
-
if (
|
|
425
|
-
if (!(
|
|
426
|
-
if (!
|
|
427
|
-
if (!(
|
|
428
|
-
} else if (!ot[t] && !h(
|
|
415
|
+
}), e.textContent !== n && (re(t.removed, { element: e.cloneNode() }), e.textContent = n)), $(w.afterSanitizeElements, e, null), !1);
|
|
416
|
+
}, Dt = function(e, t, r) {
|
|
417
|
+
if (Ke[t] || H && (t === "id" || t === "name") && (r in n || r in yt)) return !1;
|
|
418
|
+
if (!(Je && !Ke[t] && h(He, t)) && !(qe && h(Ue, t)) && !(I.attributeCheck instanceof Function && I.attributeCheck(t, e))) {
|
|
419
|
+
if (!M[t] || Ke[t]) {
|
|
420
|
+
if (!(Ot(e) && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, e) || P.tagNameCheck instanceof Function && P.tagNameCheck(e)) && (P.attributeNameCheck instanceof RegExp && h(P.attributeNameCheck, t) || P.attributeNameCheck instanceof Function && P.attributeNameCheck(t, e)) || t === "is" && P.allowCustomizedBuiltInElements && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, r) || P.tagNameCheck instanceof Function && P.tagNameCheck(r)))) return !1;
|
|
421
|
+
} else if (!ot[t] && !h(Ge, ce(r, We, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && le(r, "data:") === 0 && it[e]) && !(Ye && !h(O, ce(r, We, ""))) && r) return !1;
|
|
429
422
|
}
|
|
430
423
|
return !0;
|
|
424
|
+
}, Ot = function(e) {
|
|
425
|
+
return e !== "annotation-xml" && se(e, k);
|
|
431
426
|
}, kt = function(e) {
|
|
432
|
-
|
|
433
|
-
}, At = function(e) {
|
|
434
|
-
Q(w.beforeSanitizeAttributes, e, null);
|
|
427
|
+
$(w.beforeSanitizeAttributes, e, null);
|
|
435
428
|
let { attributes: n } = e;
|
|
436
429
|
if (!n || Z(e)) return;
|
|
437
430
|
let r = {
|
|
438
431
|
attrName: "",
|
|
439
432
|
attrValue: "",
|
|
440
433
|
keepAttr: !0,
|
|
441
|
-
allowedAttributes:
|
|
434
|
+
allowedAttributes: M,
|
|
442
435
|
forceKeepAttr: void 0
|
|
443
436
|
}, i = n.length;
|
|
444
437
|
for (; i--;) {
|
|
445
438
|
let { name: a, namespaceURI: o, value: s } = n[i], c = K(a), l = s, u = a === "value" ? l : ue(l);
|
|
446
|
-
if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0,
|
|
439
|
+
if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, $(w.uponSanitizeAttribute, e, r), u = r.attrValue, U && (c === "id" || c === "name") && (Y(a, e), u = "user-content-" + u), Ze && h(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, u)) {
|
|
447
440
|
Y(a, e);
|
|
448
441
|
continue;
|
|
449
442
|
}
|
|
@@ -456,19 +449,19 @@ function Be() {
|
|
|
456
449
|
Y(a, e);
|
|
457
450
|
continue;
|
|
458
451
|
}
|
|
459
|
-
if (!
|
|
452
|
+
if (!Xe && h(/\/>/i, u)) {
|
|
460
453
|
Y(a, e);
|
|
461
454
|
continue;
|
|
462
455
|
}
|
|
463
|
-
|
|
464
|
-
He,
|
|
456
|
+
L && p([
|
|
465
457
|
T,
|
|
466
|
-
E
|
|
458
|
+
E,
|
|
459
|
+
D
|
|
467
460
|
], (e) => {
|
|
468
461
|
u = ce(u, e, " ");
|
|
469
462
|
});
|
|
470
463
|
let d = K(e.nodeName);
|
|
471
|
-
if (!
|
|
464
|
+
if (!Dt(d, c, u)) {
|
|
472
465
|
Y(a, e);
|
|
473
466
|
continue;
|
|
474
467
|
}
|
|
@@ -486,51 +479,62 @@ function Be() {
|
|
|
486
479
|
Y(a, e);
|
|
487
480
|
}
|
|
488
481
|
}
|
|
489
|
-
|
|
490
|
-
},
|
|
491
|
-
let
|
|
492
|
-
for (
|
|
493
|
-
|
|
482
|
+
$(w.afterSanitizeAttributes, e, null);
|
|
483
|
+
}, At = function(e) {
|
|
484
|
+
let t = null, n = Tt(e);
|
|
485
|
+
for ($(w.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) $(w.uponSanitizeShadowNode, t, null), Et(t), kt(t), t.content instanceof o && At(t.content);
|
|
486
|
+
$(w.afterSanitizeShadowDOM, e, null);
|
|
494
487
|
};
|
|
495
488
|
return t.sanitize = function(e) {
|
|
496
489
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, s = null, l = null;
|
|
497
|
-
if (dt = !e, dt && (e = "<!-->"), typeof e != "string" && !
|
|
490
|
+
if (dt = !e, dt && (e = "<!-->"), typeof e != "string" && !Q(e)) if (typeof e.toString == "function") {
|
|
498
491
|
if (e = e.toString(), typeof e != "string") throw de("dirty is not a string, aborting");
|
|
499
492
|
} else throw de("toString is not a function");
|
|
500
493
|
if (!t.isSupported) return e;
|
|
501
|
-
if (
|
|
494
|
+
if (Qe || xt(n), t.removed = [], typeof e == "string" && (tt = !1), tt) {
|
|
502
495
|
if (e.nodeName) {
|
|
503
496
|
let t = K(e.nodeName);
|
|
504
|
-
if (!
|
|
497
|
+
if (!A[t] || F[t]) throw de("root node is forbidden and cannot be sanitized in-place");
|
|
505
498
|
}
|
|
506
499
|
} else if (e instanceof c) i = X("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === Ie.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a);
|
|
507
500
|
else {
|
|
508
|
-
if (!
|
|
509
|
-
if (i = X(e), !i) return
|
|
501
|
+
if (!z && !L && !R && e.indexOf("<") === -1) return y && V ? y.createHTML(e) : e;
|
|
502
|
+
if (i = X(e), !i) return z ? null : V ? Pe : "";
|
|
510
503
|
}
|
|
511
|
-
i &&
|
|
512
|
-
let u = Tt(
|
|
513
|
-
for (; s = u.nextNode();)
|
|
514
|
-
if (
|
|
515
|
-
if (
|
|
516
|
-
if (
|
|
504
|
+
i && $e && J(i.firstChild);
|
|
505
|
+
let u = Tt(tt ? e : i);
|
|
506
|
+
for (; s = u.nextNode();) Et(s), kt(s), s.content instanceof o && At(s.content);
|
|
507
|
+
if (tt) return e;
|
|
508
|
+
if (z) {
|
|
509
|
+
if (L) {
|
|
510
|
+
i.normalize();
|
|
511
|
+
let e = i.innerHTML;
|
|
512
|
+
p([
|
|
513
|
+
T,
|
|
514
|
+
E,
|
|
515
|
+
D
|
|
516
|
+
], (t) => {
|
|
517
|
+
e = ce(e, t, " ");
|
|
518
|
+
}), i.innerHTML = e;
|
|
519
|
+
}
|
|
520
|
+
if (B) for (l = x.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
|
|
517
521
|
else l = i;
|
|
518
|
-
return (
|
|
522
|
+
return (M.shadowroot || M.shadowrootmode) && (l = C.call(r, l, !0)), l;
|
|
519
523
|
}
|
|
520
|
-
let d =
|
|
521
|
-
return
|
|
522
|
-
He,
|
|
524
|
+
let d = R ? i.outerHTML : i.innerHTML;
|
|
525
|
+
return R && A["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && h(Ne, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), L && p([
|
|
523
526
|
T,
|
|
524
|
-
E
|
|
527
|
+
E,
|
|
528
|
+
D
|
|
525
529
|
], (e) => {
|
|
526
530
|
d = ce(d, e, " ");
|
|
527
|
-
}), y &&
|
|
531
|
+
}), y && V ? y.createHTML(d) : d;
|
|
528
532
|
}, t.setConfig = function() {
|
|
529
|
-
xt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}),
|
|
533
|
+
xt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Qe = !0;
|
|
530
534
|
}, t.clearConfig = function() {
|
|
531
|
-
q = null,
|
|
535
|
+
q = null, Qe = !1;
|
|
532
536
|
}, t.isValidAttribute = function(e, t, n) {
|
|
533
|
-
return q || xt({}),
|
|
537
|
+
return q || xt({}), Dt(K(e), K(t), n);
|
|
534
538
|
}, t.addHook = function(e, t) {
|
|
535
539
|
typeof t == "function" && re(w[e], t);
|
|
536
540
|
}, t.removeHook = function(e, t) {
|
|
@@ -634,7 +638,7 @@ var C = {
|
|
|
634
638
|
is(e) {
|
|
635
639
|
return this.type === e;
|
|
636
640
|
}
|
|
637
|
-
},
|
|
641
|
+
}, T = new class {
|
|
638
642
|
constructor(e, t) {
|
|
639
643
|
this.color = t, this.changed = !1, this.data = e, this.type = new w();
|
|
640
644
|
}
|
|
@@ -702,14 +706,14 @@ var C = {
|
|
|
702
706
|
g: 0,
|
|
703
707
|
b: 0,
|
|
704
708
|
a: 0
|
|
705
|
-
}, "transparent"),
|
|
709
|
+
}, "transparent"), E = {
|
|
706
710
|
re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
|
|
707
711
|
parse: (e) => {
|
|
708
712
|
if (e.charCodeAt(0) !== 35) return;
|
|
709
|
-
let t = e.match(
|
|
713
|
+
let t = e.match(E.re);
|
|
710
714
|
if (!t) return;
|
|
711
715
|
let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, l = a ? 0 : -1, u = o ? 255 : 15;
|
|
712
|
-
return
|
|
716
|
+
return T.set({
|
|
713
717
|
r: (r >> c * (l + 3) & u) * s,
|
|
714
718
|
g: (r >> c * (l + 2) & u) * s,
|
|
715
719
|
b: (r >> c * (l + 1) & u) * s,
|
|
@@ -720,11 +724,11 @@ var C = {
|
|
|
720
724
|
let { r: t, g: n, b: r, a: i } = e;
|
|
721
725
|
return i < 1 ? `#${S[Math.round(t)]}${S[Math.round(n)]}${S[Math.round(r)]}${S[Math.round(i * 255)]}` : `#${S[Math.round(t)]}${S[Math.round(n)]}${S[Math.round(r)]}`;
|
|
722
726
|
}
|
|
723
|
-
},
|
|
727
|
+
}, D = {
|
|
724
728
|
re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
|
|
725
729
|
hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
|
|
726
730
|
_hue2deg: (e) => {
|
|
727
|
-
let t = e.match(
|
|
731
|
+
let t = e.match(D.hueRe);
|
|
728
732
|
if (t) {
|
|
729
733
|
let [, e, n] = t;
|
|
730
734
|
switch (n) {
|
|
@@ -738,11 +742,11 @@ var C = {
|
|
|
738
742
|
parse: (e) => {
|
|
739
743
|
let t = e.charCodeAt(0);
|
|
740
744
|
if (t !== 104 && t !== 72) return;
|
|
741
|
-
let n = e.match(
|
|
745
|
+
let n = e.match(D.re);
|
|
742
746
|
if (!n) return;
|
|
743
747
|
let [, r, i, a, o, s] = n;
|
|
744
|
-
return
|
|
745
|
-
h:
|
|
748
|
+
return T.set({
|
|
749
|
+
h: D._hue2deg(r),
|
|
746
750
|
s: x.channel.clamp.s(parseFloat(i)),
|
|
747
751
|
l: x.channel.clamp.l(parseFloat(a)),
|
|
748
752
|
a: o ? x.channel.clamp.a(s ? parseFloat(o) / 100 : parseFloat(o)) : 1
|
|
@@ -752,7 +756,7 @@ var C = {
|
|
|
752
756
|
let { h: t, s: n, l: r, a: i } = e;
|
|
753
757
|
return i < 1 ? `hsla(${x.lang.round(t)}, ${x.lang.round(n)}%, ${x.lang.round(r)}%, ${i})` : `hsl(${x.lang.round(t)}, ${x.lang.round(n)}%, ${x.lang.round(r)}%)`;
|
|
754
758
|
}
|
|
755
|
-
},
|
|
759
|
+
}, He = {
|
|
756
760
|
colors: {
|
|
757
761
|
aliceblue: "#f0f8ff",
|
|
758
762
|
antiquewhite: "#faebd7",
|
|
@@ -904,22 +908,22 @@ var C = {
|
|
|
904
908
|
},
|
|
905
909
|
parse: (e) => {
|
|
906
910
|
e = e.toLowerCase();
|
|
907
|
-
let t =
|
|
908
|
-
if (t) return
|
|
911
|
+
let t = He.colors[e];
|
|
912
|
+
if (t) return E.parse(t);
|
|
909
913
|
},
|
|
910
914
|
stringify: (e) => {
|
|
911
|
-
let t =
|
|
912
|
-
for (let e in
|
|
915
|
+
let t = E.stringify(e);
|
|
916
|
+
for (let e in He.colors) if (He.colors[e] === t) return e;
|
|
913
917
|
}
|
|
914
|
-
},
|
|
918
|
+
}, Ue = {
|
|
915
919
|
re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
|
|
916
920
|
parse: (e) => {
|
|
917
921
|
let t = e.charCodeAt(0);
|
|
918
922
|
if (t !== 114 && t !== 82) return;
|
|
919
|
-
let n = e.match(
|
|
923
|
+
let n = e.match(Ue.re);
|
|
920
924
|
if (!n) return;
|
|
921
925
|
let [, r, i, a, o, s, c, l, u] = n;
|
|
922
|
-
return
|
|
926
|
+
return T.set({
|
|
923
927
|
r: x.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
|
|
924
928
|
g: x.channel.clamp.g(o ? parseFloat(a) * 2.55 : parseFloat(a)),
|
|
925
929
|
b: x.channel.clamp.b(c ? parseFloat(s) * 2.55 : parseFloat(s)),
|
|
@@ -930,89 +934,89 @@ var C = {
|
|
|
930
934
|
let { r: t, g: n, b: r, a: i } = e;
|
|
931
935
|
return i < 1 ? `rgba(${x.lang.round(t)}, ${x.lang.round(n)}, ${x.lang.round(r)}, ${x.lang.round(i)})` : `rgb(${x.lang.round(t)}, ${x.lang.round(n)}, ${x.lang.round(r)})`;
|
|
932
936
|
}
|
|
933
|
-
},
|
|
937
|
+
}, O = {
|
|
934
938
|
format: {
|
|
935
|
-
keyword:
|
|
936
|
-
hex:
|
|
937
|
-
rgb:
|
|
938
|
-
rgba:
|
|
939
|
-
hsl:
|
|
940
|
-
hsla:
|
|
939
|
+
keyword: He,
|
|
940
|
+
hex: E,
|
|
941
|
+
rgb: Ue,
|
|
942
|
+
rgba: Ue,
|
|
943
|
+
hsl: D,
|
|
944
|
+
hsla: D
|
|
941
945
|
},
|
|
942
946
|
parse: (e) => {
|
|
943
947
|
if (typeof e != "string") return e;
|
|
944
|
-
let t =
|
|
948
|
+
let t = E.parse(e) || Ue.parse(e) || D.parse(e) || He.parse(e);
|
|
945
949
|
if (t) return t;
|
|
946
950
|
throw Error(`Unsupported color format: "${e}"`);
|
|
947
951
|
},
|
|
948
|
-
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(C.HSL) || e.data.r === void 0 ?
|
|
949
|
-
},
|
|
950
|
-
let n =
|
|
952
|
+
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(C.HSL) || e.data.r === void 0 ? D.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? Ue.stringify(e) : E.stringify(e)
|
|
953
|
+
}, We = (e, t) => {
|
|
954
|
+
let n = O.parse(e);
|
|
951
955
|
for (let e in t) n[e] = x.channel.clamp[e](t[e]);
|
|
952
|
-
return
|
|
953
|
-
},
|
|
954
|
-
if (typeof e != "number") return
|
|
955
|
-
let i =
|
|
956
|
+
return O.stringify(n);
|
|
957
|
+
}, k = (e, t, n = 0, r = 1) => {
|
|
958
|
+
if (typeof e != "number") return We(e, { a: t });
|
|
959
|
+
let i = T.set({
|
|
956
960
|
r: x.channel.clamp.r(e),
|
|
957
961
|
g: x.channel.clamp.g(t),
|
|
958
962
|
b: x.channel.clamp.b(n),
|
|
959
963
|
a: x.channel.clamp.a(r)
|
|
960
964
|
});
|
|
961
|
-
return
|
|
962
|
-
},
|
|
963
|
-
let { r: t, g: n, b: r } =
|
|
965
|
+
return O.stringify(i);
|
|
966
|
+
}, Ge = (e) => {
|
|
967
|
+
let { r: t, g: n, b: r } = O.parse(e), i = .2126 * x.channel.toLinear(t) + .7152 * x.channel.toLinear(n) + .0722 * x.channel.toLinear(r);
|
|
964
968
|
return x.lang.round(i);
|
|
965
|
-
},
|
|
966
|
-
let r =
|
|
967
|
-
return i !== a && (r[t] = a),
|
|
968
|
-
},
|
|
969
|
-
let n =
|
|
969
|
+
}, A = (e) => Ge(e) >= .5, j = (e) => !A(e), M = (e, t, n) => {
|
|
970
|
+
let r = O.parse(e), i = r[t], a = x.channel.clamp[t](i + n);
|
|
971
|
+
return i !== a && (r[t] = a), O.stringify(r);
|
|
972
|
+
}, N = (e, t) => M(e, "l", t), P = (e, t) => M(e, "l", -t), F = (e, t) => {
|
|
973
|
+
let n = O.parse(e), r = {};
|
|
970
974
|
for (let e in t) t[e] && (r[e] = n[e] + t[e]);
|
|
971
|
-
return
|
|
972
|
-
},
|
|
973
|
-
let { r, g: i, b: a, a: o } =
|
|
974
|
-
return
|
|
975
|
-
},
|
|
976
|
-
let n =
|
|
977
|
-
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b,
|
|
978
|
-
},
|
|
975
|
+
return We(e, r);
|
|
976
|
+
}, Ke = (e, t, n = 50) => {
|
|
977
|
+
let { r, g: i, b: a, a: o } = O.parse(e), { r: s, g: c, b: l, a: u } = O.parse(t), d = n / 100, f = d * 2 - 1, ee = o - u, p = ((f * ee === -1 ? f : (f + ee) / (1 + f * ee)) + 1) / 2, te = 1 - p;
|
|
978
|
+
return k(r * p + s * te, i * p + c * te, a * p + l * te, o * d + u * (1 - d));
|
|
979
|
+
}, I = (e, t = 100) => {
|
|
980
|
+
let n = O.parse(e);
|
|
981
|
+
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, Ke(n, e, t);
|
|
982
|
+
}, qe = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Je = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Ye = /\s*%%.*\n/gm, Xe = class extends Error {
|
|
979
983
|
static {
|
|
980
984
|
n(this, "UnknownDiagramError");
|
|
981
985
|
}
|
|
982
986
|
constructor(e) {
|
|
983
987
|
super(e), this.name = "UnknownDiagramError";
|
|
984
988
|
}
|
|
985
|
-
},
|
|
986
|
-
e = e.replace(
|
|
987
|
-
for (let [n, { detector: r }] of Object.entries(
|
|
988
|
-
throw new
|
|
989
|
-
}, "detectType"),
|
|
990
|
-
for (let { id: t, detector: n, loader: r } of e)
|
|
991
|
-
}, "registerLazyLoadedDiagrams"),
|
|
992
|
-
|
|
989
|
+
}, L = {}, Ze = /* @__PURE__ */ n(function(e, t) {
|
|
990
|
+
e = e.replace(qe, "").replace(Je, "").replace(Ye, "\n");
|
|
991
|
+
for (let [n, { detector: r }] of Object.entries(L)) if (r(e, t)) return n;
|
|
992
|
+
throw new Xe(`No diagram type detected matching given configuration for text: ${e}`);
|
|
993
|
+
}, "detectType"), R = /* @__PURE__ */ n((...e) => {
|
|
994
|
+
for (let { id: t, detector: n, loader: r } of e) Qe(t, n, r);
|
|
995
|
+
}, "registerLazyLoadedDiagrams"), Qe = /* @__PURE__ */ n((e, n, r) => {
|
|
996
|
+
L[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), L[e] = {
|
|
993
997
|
detector: n,
|
|
994
998
|
loader: r
|
|
995
999
|
}, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
|
|
996
|
-
}, "addDetector"),
|
|
1000
|
+
}, "addDetector"), $e = /* @__PURE__ */ n((e) => L[e].loader, "getDiagramLoader"), z = /* @__PURE__ */ n((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
|
|
997
1001
|
let i = {
|
|
998
1002
|
depth: n,
|
|
999
1003
|
clobber: r
|
|
1000
1004
|
};
|
|
1001
|
-
return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) =>
|
|
1005
|
+
return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => z(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
|
|
1002
1006
|
e.includes(t) || e.push(t);
|
|
1003
1007
|
}), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
|
|
1004
|
-
typeof t[i] == "object" && t[i] !== null && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] =
|
|
1008
|
+
typeof t[i] == "object" && t[i] !== null && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = z(e[i], t[i], {
|
|
1005
1009
|
depth: n - 1,
|
|
1006
1010
|
clobber: r
|
|
1007
1011
|
})) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
|
|
1008
1012
|
}), e);
|
|
1009
|
-
}, "assignWithDepth"),
|
|
1013
|
+
}, "assignWithDepth"), B = z, V = "#ffffff", H = "#f2f2f2", U = /* @__PURE__ */ n((e, t) => t ? F(e, {
|
|
1010
1014
|
s: -40,
|
|
1011
1015
|
l: 10
|
|
1012
|
-
}) :
|
|
1016
|
+
}) : F(e, {
|
|
1013
1017
|
s: -40,
|
|
1014
1018
|
l: -10
|
|
1015
|
-
}), "mkBorder"),
|
|
1019
|
+
}), "mkBorder"), et = class {
|
|
1016
1020
|
static {
|
|
1017
1021
|
n(this, "Theme");
|
|
1018
1022
|
}
|
|
@@ -1020,59 +1024,59 @@ var C = {
|
|
|
1020
1024
|
this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.useGradient = !0, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
|
|
1021
1025
|
}
|
|
1022
1026
|
updateColors() {
|
|
1023
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
1027
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
|
|
1024
1028
|
h: 180,
|
|
1025
1029
|
l: 5
|
|
1026
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1030
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(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 ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(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 || N(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.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || P(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || P(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || N(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || N(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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, {
|
|
1027
1031
|
h: 210,
|
|
1028
1032
|
l: 150
|
|
1029
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1030
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1031
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1032
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1033
|
+
}), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
|
|
1034
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
|
|
1035
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
|
|
1036
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
|
|
1033
1037
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1034
1038
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1035
1039
|
let e = this.darkMode ? -4 : -1;
|
|
1036
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
1040
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || F(this.mainBkg, {
|
|
1037
1041
|
h: 180,
|
|
1038
1042
|
s: -15,
|
|
1039
1043
|
l: e * (5 + t * 3)
|
|
1040
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
1044
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || F(this.mainBkg, {
|
|
1041
1045
|
h: 180,
|
|
1042
1046
|
s: -15,
|
|
1043
1047
|
l: e * (8 + t * 3)
|
|
1044
1048
|
});
|
|
1045
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
1049
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || F(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || F(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || F(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || F(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || F(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || F(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 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || F(this.primaryColor, {
|
|
1046
1050
|
h: 60,
|
|
1047
1051
|
l: -10
|
|
1048
|
-
}), this.pie8 = this.pie8 ||
|
|
1052
|
+
}), this.pie8 = this.pie8 || F(this.primaryColor, {
|
|
1049
1053
|
h: -60,
|
|
1050
1054
|
l: -10
|
|
1051
|
-
}), this.pie9 = this.pie9 ||
|
|
1055
|
+
}), this.pie9 = this.pie9 || F(this.primaryColor, {
|
|
1052
1056
|
h: 120,
|
|
1053
1057
|
l: 0
|
|
1054
|
-
}), this.pie10 = this.pie10 ||
|
|
1058
|
+
}), this.pie10 = this.pie10 || F(this.primaryColor, {
|
|
1055
1059
|
h: 60,
|
|
1056
1060
|
l: -20
|
|
1057
|
-
}), this.pie11 = this.pie11 ||
|
|
1061
|
+
}), this.pie11 = this.pie11 || F(this.primaryColor, {
|
|
1058
1062
|
h: -60,
|
|
1059
1063
|
l: -20
|
|
1060
|
-
}), this.pie12 = this.pie12 ||
|
|
1064
|
+
}), this.pie12 = this.pie12 || F(this.primaryColor, {
|
|
1061
1065
|
h: 120,
|
|
1062
1066
|
l: -10
|
|
1063
|
-
}), 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.venn1 = this.venn1 ??
|
|
1067
|
+
}), 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.venn1 = this.venn1 ?? F(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? F(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? F(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? F(this.primaryColor, {
|
|
1064
1068
|
h: 60,
|
|
1065
1069
|
l: -30
|
|
1066
|
-
}), this.venn5 = this.venn5 ??
|
|
1070
|
+
}), this.venn5 = this.venn5 ?? F(this.primaryColor, {
|
|
1067
1071
|
h: -60,
|
|
1068
1072
|
l: -30
|
|
1069
|
-
}), this.venn6 = this.venn6 ??
|
|
1073
|
+
}), this.venn6 = this.venn6 ?? F(this.secondaryColor, {
|
|
1070
1074
|
h: 60,
|
|
1071
1075
|
l: -30
|
|
1072
|
-
}), this.venn7 = this.venn7 ??
|
|
1076
|
+
}), this.venn7 = this.venn7 ?? F(this.primaryColor, {
|
|
1073
1077
|
h: 120,
|
|
1074
1078
|
l: -30
|
|
1075
|
-
}), this.venn8 = this.venn8 ??
|
|
1079
|
+
}), this.venn8 = this.venn8 ?? F(this.secondaryColor, {
|
|
1076
1080
|
h: 120,
|
|
1077
1081
|
l: -30
|
|
1078
1082
|
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.radar = {
|
|
@@ -1086,31 +1090,31 @@ var C = {
|
|
|
1086
1090
|
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
1087
1091
|
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
1088
1092
|
legendFontSize: this.radar?.legendFontSize || 12
|
|
1089
|
-
}, 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 ||
|
|
1093
|
+
}, 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 || F(this.primaryColor, {
|
|
1090
1094
|
r: 5,
|
|
1091
1095
|
g: 5,
|
|
1092
1096
|
b: 5
|
|
1093
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1097
|
+
}), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
|
|
1094
1098
|
r: 10,
|
|
1095
1099
|
g: 10,
|
|
1096
1100
|
b: 10
|
|
1097
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1101
|
+
}), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
|
|
1098
1102
|
r: 15,
|
|
1099
1103
|
g: 15,
|
|
1100
1104
|
b: 15
|
|
1101
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1105
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
|
|
1102
1106
|
r: -5,
|
|
1103
1107
|
g: -5,
|
|
1104
1108
|
b: -5
|
|
1105
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1109
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
|
|
1106
1110
|
r: -10,
|
|
1107
1111
|
g: -10,
|
|
1108
1112
|
b: -10
|
|
1109
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1113
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
|
|
1110
1114
|
r: -15,
|
|
1111
1115
|
g: -15,
|
|
1112
1116
|
b: -15
|
|
1113
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1117
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
|
|
1114
1118
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1115
1119
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1116
1120
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1123,7 +1127,7 @@ var C = {
|
|
|
1123
1127
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1124
1128
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1125
1129
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1126
|
-
}, 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 ?
|
|
1130
|
+
}, 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 ? P(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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
|
|
1127
1131
|
}
|
|
1128
1132
|
calculate(e) {
|
|
1129
1133
|
if (typeof e != "object") {
|
|
@@ -1137,25 +1141,25 @@ var C = {
|
|
|
1137
1141
|
this[t] = e[t];
|
|
1138
1142
|
});
|
|
1139
1143
|
}
|
|
1140
|
-
},
|
|
1141
|
-
let t = new
|
|
1144
|
+
}, tt = /* @__PURE__ */ n((e) => {
|
|
1145
|
+
let t = new et();
|
|
1142
1146
|
return t.calculate(e), t;
|
|
1143
|
-
}, "getThemeVariables"),
|
|
1147
|
+
}, "getThemeVariables"), nt = class {
|
|
1144
1148
|
static {
|
|
1145
1149
|
n(this, "Theme");
|
|
1146
1150
|
}
|
|
1147
1151
|
constructor() {
|
|
1148
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
1152
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = N(this.primaryColor, 16), this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = N(I("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = k(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.radius = 5, this.strokeWidth = 1, 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.clusterBkg = "#302F3D", this.sectionBkgColor = P("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = P(this.sectionBkgColor, 10), this.taskBorderColor = k(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = k(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 || N(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || P(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal";
|
|
1149
1153
|
}
|
|
1150
1154
|
updateColors() {
|
|
1151
|
-
this.secondBkg =
|
|
1152
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1153
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1154
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1155
|
+
this.secondBkg = N(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 = N(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 = N(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 = I(this.doneTaskBkgColor), 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 = F(this.primaryColor, { h: 64 }), this.fillType3 = F(this.secondaryColor, { h: 64 }), this.fillType4 = F(this.primaryColor, { h: -64 }), this.fillType5 = F(this.secondaryColor, { h: -64 }), this.fillType6 = F(this.primaryColor, { h: 128 }), this.fillType7 = F(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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 });
|
|
1156
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
|
|
1157
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
1158
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
|
|
1155
1159
|
h: 30,
|
|
1156
1160
|
s: -30,
|
|
1157
1161
|
l: -(-10 + e * 4)
|
|
1158
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1162
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
|
|
1159
1163
|
h: 30,
|
|
1160
1164
|
s: -30,
|
|
1161
1165
|
l: -(-7 + e * 4)
|
|
@@ -1164,32 +1168,32 @@ var C = {
|
|
|
1164
1168
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1165
1169
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1166
1170
|
this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.mainContrastColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.mainContrastColor, 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";
|
|
1167
|
-
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ??
|
|
1168
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1171
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? N(this["cScale" + e], 30);
|
|
1172
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
|
|
1169
1173
|
r: 5,
|
|
1170
1174
|
g: 5,
|
|
1171
1175
|
b: 5
|
|
1172
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1176
|
+
}), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
|
|
1173
1177
|
r: 10,
|
|
1174
1178
|
g: 10,
|
|
1175
1179
|
b: 10
|
|
1176
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1180
|
+
}), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
|
|
1177
1181
|
r: 15,
|
|
1178
1182
|
g: 15,
|
|
1179
1183
|
b: 15
|
|
1180
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1184
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
|
|
1181
1185
|
r: -5,
|
|
1182
1186
|
g: -5,
|
|
1183
1187
|
b: -5
|
|
1184
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1188
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
|
|
1185
1189
|
r: -10,
|
|
1186
1190
|
g: -10,
|
|
1187
1191
|
b: -10
|
|
1188
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1192
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
|
|
1189
1193
|
r: -15,
|
|
1190
1194
|
g: -15,
|
|
1191
1195
|
b: -15
|
|
1192
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1196
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
|
|
1193
1197
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1194
1198
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1195
1199
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1220,7 +1224,7 @@ var C = {
|
|
|
1220
1224
|
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
1221
1225
|
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
1222
1226
|
legendFontSize: this.radar?.legendFontSize || 12
|
|
1223
|
-
}, 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 ?
|
|
1227
|
+
}, 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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = N(this.secondaryColor, 20), this.git1 = N(this.pie2 || this.secondaryColor, 20), this.git2 = N(this.pie3 || this.tertiaryColor, 20), this.git3 = N(this.pie4 || F(this.primaryColor, { h: -30 }), 20), this.git4 = N(this.pie5 || F(this.primaryColor, { h: -60 }), 20), this.git5 = N(this.pie6 || F(this.primaryColor, { h: -90 }), 10), this.git6 = N(this.pie7 || F(this.primaryColor, { h: 60 }), 10), this.git7 = N(this.pie8 || F(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || I(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || I(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 || N(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || N(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
1224
1228
|
}
|
|
1225
1229
|
calculate(e) {
|
|
1226
1230
|
if (typeof e != "object") {
|
|
@@ -1235,88 +1239,88 @@ var C = {
|
|
|
1235
1239
|
});
|
|
1236
1240
|
}
|
|
1237
1241
|
}, W = /* @__PURE__ */ n((e) => {
|
|
1238
|
-
let t = new
|
|
1242
|
+
let t = new nt();
|
|
1239
1243
|
return t.calculate(e), t;
|
|
1240
1244
|
}, "getThemeVariables"), rt = class {
|
|
1241
1245
|
static {
|
|
1242
1246
|
n(this, "Theme");
|
|
1243
1247
|
}
|
|
1244
1248
|
constructor() {
|
|
1245
|
-
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor =
|
|
1249
|
+
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = F(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = U(this.primaryColor, this.darkMode), 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.radius = 5, this.strokeWidth = 1, 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.clusterBkg = "#FBFBFF", 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 = k(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.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", 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.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
|
|
1246
1250
|
}
|
|
1247
1251
|
updateColors() {
|
|
1248
|
-
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 ||
|
|
1249
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1250
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1251
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1252
|
+
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || P(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || P(this.tertiaryColor, 40);
|
|
1253
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 25);
|
|
1254
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e], { h: 180 });
|
|
1255
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
|
|
1252
1256
|
h: 30,
|
|
1253
1257
|
l: -(5 + e * 5)
|
|
1254
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1258
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
|
|
1255
1259
|
h: 30,
|
|
1256
1260
|
l: -(7 + e * 5)
|
|
1257
1261
|
});
|
|
1258
1262
|
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
1259
|
-
this.cScaleLabel0 = this.cScaleLabel0 ||
|
|
1263
|
+
this.cScaleLabel0 = this.cScaleLabel0 || I(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || I(this.labelTextColor);
|
|
1260
1264
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
|
|
1261
1265
|
}
|
|
1262
|
-
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 = this.border1, 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 ||
|
|
1266
|
+
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 = this.border1, 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 || N(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || N(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 = F(this.primaryColor, { h: 64 }), this.fillType3 = F(this.secondaryColor, { h: 64 }), this.fillType4 = F(this.primaryColor, { h: -64 }), this.fillType5 = F(this.secondaryColor, { h: -64 }), this.fillType6 = F(this.primaryColor, { h: 128 }), this.fillType7 = F(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || F(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || F(this.primaryColor, {
|
|
1263
1267
|
h: 60,
|
|
1264
1268
|
l: -20
|
|
1265
|
-
}), this.pie8 = this.pie8 ||
|
|
1269
|
+
}), this.pie8 = this.pie8 || F(this.primaryColor, {
|
|
1266
1270
|
h: -60,
|
|
1267
1271
|
l: -40
|
|
1268
|
-
}), this.pie9 = this.pie9 ||
|
|
1272
|
+
}), this.pie9 = this.pie9 || F(this.primaryColor, {
|
|
1269
1273
|
h: 120,
|
|
1270
1274
|
l: -40
|
|
1271
|
-
}), this.pie10 = this.pie10 ||
|
|
1275
|
+
}), this.pie10 = this.pie10 || F(this.primaryColor, {
|
|
1272
1276
|
h: 60,
|
|
1273
1277
|
l: -40
|
|
1274
|
-
}), this.pie11 = this.pie11 ||
|
|
1278
|
+
}), this.pie11 = this.pie11 || F(this.primaryColor, {
|
|
1275
1279
|
h: -90,
|
|
1276
1280
|
l: -40
|
|
1277
|
-
}), this.pie12 = this.pie12 ||
|
|
1281
|
+
}), this.pie12 = this.pie12 || F(this.primaryColor, {
|
|
1278
1282
|
h: 120,
|
|
1279
1283
|
l: -30
|
|
1280
|
-
}), 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.venn1 = this.venn1 ??
|
|
1284
|
+
}), 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.venn1 = this.venn1 ?? F(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? F(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? F(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? F(this.primaryColor, {
|
|
1281
1285
|
h: 60,
|
|
1282
1286
|
l: -30
|
|
1283
|
-
}), this.venn5 = this.venn5 ??
|
|
1287
|
+
}), this.venn5 = this.venn5 ?? F(this.primaryColor, {
|
|
1284
1288
|
h: -60,
|
|
1285
1289
|
l: -30
|
|
1286
|
-
}), this.venn6 = this.venn6 ??
|
|
1290
|
+
}), this.venn6 = this.venn6 ?? F(this.secondaryColor, {
|
|
1287
1291
|
h: 60,
|
|
1288
1292
|
l: -30
|
|
1289
|
-
}), this.venn7 = this.venn7 ??
|
|
1293
|
+
}), this.venn7 = this.venn7 ?? F(this.primaryColor, {
|
|
1290
1294
|
h: 120,
|
|
1291
1295
|
l: -30
|
|
1292
|
-
}), this.venn8 = this.venn8 ??
|
|
1296
|
+
}), this.venn8 = this.venn8 ?? F(this.secondaryColor, {
|
|
1293
1297
|
h: 120,
|
|
1294
1298
|
l: -30
|
|
1295
|
-
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1299
|
+
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
|
|
1296
1300
|
r: 5,
|
|
1297
1301
|
g: 5,
|
|
1298
1302
|
b: 5
|
|
1299
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1303
|
+
}), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
|
|
1300
1304
|
r: 10,
|
|
1301
1305
|
g: 10,
|
|
1302
1306
|
b: 10
|
|
1303
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1307
|
+
}), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
|
|
1304
1308
|
r: 15,
|
|
1305
1309
|
g: 15,
|
|
1306
1310
|
b: 15
|
|
1307
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1311
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
|
|
1308
1312
|
r: -5,
|
|
1309
1313
|
g: -5,
|
|
1310
1314
|
b: -5
|
|
1311
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1315
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
|
|
1312
1316
|
r: -10,
|
|
1313
1317
|
g: -10,
|
|
1314
1318
|
b: -10
|
|
1315
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1319
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
|
|
1316
1320
|
r: -15,
|
|
1317
1321
|
g: -15,
|
|
1318
1322
|
b: -15
|
|
1319
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1323
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
|
|
1320
1324
|
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1321
1325
|
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1322
1326
|
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
@@ -1340,7 +1344,7 @@ var C = {
|
|
|
1340
1344
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1341
1345
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1342
1346
|
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
1343
|
-
}, 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 ||
|
|
1347
|
+
}, 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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || P(I(this.git0), 25), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || I(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || I(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
1344
1348
|
}
|
|
1345
1349
|
calculate(e) {
|
|
1346
1350
|
if (Object.keys(this).forEach((e) => {
|
|
@@ -1364,84 +1368,84 @@ var C = {
|
|
|
1364
1368
|
n(this, "Theme");
|
|
1365
1369
|
}
|
|
1366
1370
|
constructor() {
|
|
1367
|
-
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 =
|
|
1371
|
+
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 = N("#cde498", 10), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.primaryColor), this.lineColor = I(this.background), this.textColor = I(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, 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.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
|
|
1368
1372
|
}
|
|
1369
1373
|
updateColors() {
|
|
1370
|
-
this.actorBorder =
|
|
1371
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1372
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1374
|
+
this.actorBorder = P(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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || P(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || P(this.tertiaryColor, 40);
|
|
1375
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 25);
|
|
1376
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e], { h: 180 });
|
|
1373
1377
|
this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
|
|
1374
1378
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1375
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1379
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
|
|
1376
1380
|
h: 30,
|
|
1377
1381
|
s: -30,
|
|
1378
1382
|
l: -(5 + e * 5)
|
|
1379
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1383
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
|
|
1380
1384
|
h: 30,
|
|
1381
1385
|
s: -30,
|
|
1382
1386
|
l: -(8 + e * 5)
|
|
1383
1387
|
});
|
|
1384
|
-
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 ||
|
|
1388
|
+
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 || N(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || N(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 = F(this.primaryColor, { h: 64 }), this.fillType3 = F(this.secondaryColor, { h: 64 }), this.fillType4 = F(this.primaryColor, { h: -64 }), this.fillType5 = F(this.secondaryColor, { h: -64 }), this.fillType6 = F(this.primaryColor, { h: 128 }), this.fillType7 = F(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 || F(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || F(this.tertiaryColor, {
|
|
1385
1389
|
h: 40,
|
|
1386
1390
|
l: -40
|
|
1387
|
-
}), this.pie7 = this.pie7 ||
|
|
1391
|
+
}), this.pie7 = this.pie7 || F(this.primaryColor, {
|
|
1388
1392
|
h: 60,
|
|
1389
1393
|
l: -10
|
|
1390
|
-
}), this.pie8 = this.pie8 ||
|
|
1394
|
+
}), this.pie8 = this.pie8 || F(this.primaryColor, {
|
|
1391
1395
|
h: -60,
|
|
1392
1396
|
l: -10
|
|
1393
|
-
}), this.pie9 = this.pie9 ||
|
|
1397
|
+
}), this.pie9 = this.pie9 || F(this.primaryColor, {
|
|
1394
1398
|
h: 120,
|
|
1395
1399
|
l: 0
|
|
1396
|
-
}), this.pie10 = this.pie10 ||
|
|
1400
|
+
}), this.pie10 = this.pie10 || F(this.primaryColor, {
|
|
1397
1401
|
h: 60,
|
|
1398
1402
|
l: -50
|
|
1399
|
-
}), this.pie11 = this.pie11 ||
|
|
1403
|
+
}), this.pie11 = this.pie11 || F(this.primaryColor, {
|
|
1400
1404
|
h: -60,
|
|
1401
1405
|
l: -50
|
|
1402
|
-
}), this.pie12 = this.pie12 ||
|
|
1406
|
+
}), this.pie12 = this.pie12 || F(this.primaryColor, {
|
|
1403
1407
|
h: 120,
|
|
1404
1408
|
l: -50
|
|
1405
|
-
}), 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.venn1 = this.venn1 ??
|
|
1409
|
+
}), 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.venn1 = this.venn1 ?? F(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? F(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? F(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? F(this.primaryColor, {
|
|
1406
1410
|
h: 60,
|
|
1407
1411
|
l: -30
|
|
1408
|
-
}), this.venn5 = this.venn5 ??
|
|
1412
|
+
}), this.venn5 = this.venn5 ?? F(this.primaryColor, {
|
|
1409
1413
|
h: -60,
|
|
1410
1414
|
l: -30
|
|
1411
|
-
}), this.venn6 = this.venn6 ??
|
|
1415
|
+
}), this.venn6 = this.venn6 ?? F(this.secondaryColor, {
|
|
1412
1416
|
h: 60,
|
|
1413
1417
|
l: -30
|
|
1414
|
-
}), this.venn7 = this.venn7 ??
|
|
1418
|
+
}), this.venn7 = this.venn7 ?? F(this.primaryColor, {
|
|
1415
1419
|
h: 120,
|
|
1416
1420
|
l: -30
|
|
1417
|
-
}), this.venn8 = this.venn8 ??
|
|
1421
|
+
}), this.venn8 = this.venn8 ?? F(this.secondaryColor, {
|
|
1418
1422
|
h: 120,
|
|
1419
1423
|
l: -30
|
|
1420
|
-
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1424
|
+
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
|
|
1421
1425
|
r: 5,
|
|
1422
1426
|
g: 5,
|
|
1423
1427
|
b: 5
|
|
1424
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1428
|
+
}), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
|
|
1425
1429
|
r: 10,
|
|
1426
1430
|
g: 10,
|
|
1427
1431
|
b: 10
|
|
1428
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1432
|
+
}), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
|
|
1429
1433
|
r: 15,
|
|
1430
1434
|
g: 15,
|
|
1431
1435
|
b: 15
|
|
1432
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1436
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
|
|
1433
1437
|
r: -5,
|
|
1434
1438
|
g: -5,
|
|
1435
1439
|
b: -5
|
|
1436
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1440
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
|
|
1437
1441
|
r: -10,
|
|
1438
1442
|
g: -10,
|
|
1439
1443
|
b: -10
|
|
1440
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1444
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
|
|
1441
1445
|
r: -15,
|
|
1442
1446
|
g: -15,
|
|
1443
1447
|
b: -15
|
|
1444
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1448
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
|
|
1445
1449
|
startByteColor: this.primaryTextColor,
|
|
1446
1450
|
endByteColor: this.primaryTextColor,
|
|
1447
1451
|
labelColor: this.primaryTextColor,
|
|
@@ -1472,7 +1476,7 @@ var C = {
|
|
|
1472
1476
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1473
1477
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1474
1478
|
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
1475
|
-
}, 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 ||
|
|
1479
|
+
}, 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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || I(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || I(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
1476
1480
|
}
|
|
1477
1481
|
calculate(e) {
|
|
1478
1482
|
if (typeof e != "object") {
|
|
@@ -1494,44 +1498,44 @@ var C = {
|
|
|
1494
1498
|
n(this, "Theme");
|
|
1495
1499
|
}
|
|
1496
1500
|
constructor() {
|
|
1497
|
-
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor =
|
|
1501
|
+
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = N(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.lineColor = I(this.background), this.textColor = I(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.radius = 5, this.strokeWidth = 1, 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.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || N(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
|
|
1498
1502
|
}
|
|
1499
1503
|
updateColors() {
|
|
1500
|
-
this.secondBkg =
|
|
1501
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1502
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1504
|
+
this.secondBkg = N(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = N(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";
|
|
1505
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
|
|
1506
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
|
|
1503
1507
|
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
1504
1508
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1505
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1506
|
-
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 =
|
|
1509
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, { l: -(8 + e * 5) });
|
|
1510
|
+
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 = N(this.contrast, 30), this.sectionBkgColor2 = N(this.contrast, 30), this.taskBorderColor = P(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 = N(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = P(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 = F(this.primaryColor, { h: 64 }), this.fillType3 = F(this.secondaryColor, { h: 64 }), this.fillType4 = F(this.primaryColor, { h: -64 }), this.fillType5 = F(this.secondaryColor, { h: -64 }), this.fillType6 = F(this.primaryColor, { h: 128 }), this.fillType7 = F(this.secondaryColor, { h: 128 });
|
|
1507
1511
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1508
1512
|
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";
|
|
1509
1513
|
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
|
|
1510
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1514
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
|
|
1511
1515
|
r: 5,
|
|
1512
1516
|
g: 5,
|
|
1513
1517
|
b: 5
|
|
1514
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1518
|
+
}), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
|
|
1515
1519
|
r: 10,
|
|
1516
1520
|
g: 10,
|
|
1517
1521
|
b: 10
|
|
1518
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1522
|
+
}), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
|
|
1519
1523
|
r: 15,
|
|
1520
1524
|
g: 15,
|
|
1521
1525
|
b: 15
|
|
1522
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1526
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
|
|
1523
1527
|
r: -5,
|
|
1524
1528
|
g: -5,
|
|
1525
1529
|
b: -5
|
|
1526
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1530
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
|
|
1527
1531
|
r: -10,
|
|
1528
1532
|
g: -10,
|
|
1529
1533
|
b: -10
|
|
1530
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1534
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
|
|
1531
1535
|
r: -15,
|
|
1532
1536
|
g: -15,
|
|
1533
1537
|
b: -15
|
|
1534
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1538
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
|
|
1535
1539
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1536
1540
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1537
1541
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1555,7 +1559,7 @@ var C = {
|
|
|
1555
1559
|
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
1556
1560
|
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
1557
1561
|
legendFontSize: this.radar?.legendFontSize || 12
|
|
1558
|
-
}, 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 =
|
|
1562
|
+
}, 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 = P(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || F(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || F(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || F(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || F(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || F(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
1559
1563
|
}
|
|
1560
1564
|
calculate(e) {
|
|
1561
1565
|
if (typeof e != "object") {
|
|
@@ -1577,79 +1581,79 @@ var C = {
|
|
|
1577
1581
|
n(this, "Theme");
|
|
1578
1582
|
}
|
|
1579
1583
|
constructor() {
|
|
1580
|
-
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor =
|
|
1584
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
|
|
1581
1585
|
}
|
|
1582
1586
|
updateColors() {
|
|
1583
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
1587
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
|
|
1584
1588
|
h: 180,
|
|
1585
1589
|
l: 5
|
|
1586
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1587
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
1590
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(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 ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(this.lineColor);
|
|
1591
|
+
let e = "#ECECFE", t = "#E9E9F1", n = F(e, {
|
|
1588
1592
|
h: 180,
|
|
1589
1593
|
l: 5
|
|
1590
1594
|
});
|
|
1591
|
-
if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor ||
|
|
1595
|
+
if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || N(e, 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.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, 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.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 || e, this.cScale1 = this.cScale1 || t, this.cScale2 = this.cScale2 || n, this.cScale3 = this.cScale3 || F(e, { h: 30 }), this.cScale4 = this.cScale4 || F(e, { h: 60 }), this.cScale5 = this.cScale5 || F(e, { h: 90 }), this.cScale6 = this.cScale6 || F(e, { h: 120 }), this.cScale7 = this.cScale7 || F(e, { h: 150 }), this.cScale8 = this.cScale8 || F(e, {
|
|
1592
1596
|
h: 210,
|
|
1593
1597
|
l: 150
|
|
1594
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1595
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1596
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1597
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1598
|
+
}), this.cScale9 = this.cScale9 || F(e, { h: 270 }), this.cScale10 = this.cScale10 || F(e, { h: 300 }), this.cScale11 = this.cScale11 || F(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
|
|
1599
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
|
|
1600
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
|
|
1601
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
|
|
1598
1602
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1599
1603
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1600
1604
|
let r = this.darkMode ? -4 : -1;
|
|
1601
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1605
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
|
|
1602
1606
|
h: 180,
|
|
1603
1607
|
s: -15,
|
|
1604
1608
|
l: r * (5 + e * 3)
|
|
1605
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1609
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
|
|
1606
1610
|
h: 180,
|
|
1607
1611
|
s: -15,
|
|
1608
1612
|
l: r * (8 + e * 3)
|
|
1609
1613
|
});
|
|
1610
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
1614
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || F(e, { h: 64 }), this.fillType3 = this.fillType3 || F(t, { h: 64 }), this.fillType4 = this.fillType4 || F(e, { h: -64 }), this.fillType5 = this.fillType5 || F(t, { h: -64 }), this.fillType6 = this.fillType6 || F(e, { h: 128 }), this.fillType7 = this.fillType7 || F(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || F(e, { l: -10 }), this.pie5 = this.pie5 || F(t, { l: -10 }), this.pie6 = this.pie6 || F(n, { l: -10 }), this.pie7 = this.pie7 || F(e, {
|
|
1611
1615
|
h: 60,
|
|
1612
1616
|
l: -10
|
|
1613
|
-
}), this.pie8 = this.pie8 ||
|
|
1617
|
+
}), this.pie8 = this.pie8 || F(e, {
|
|
1614
1618
|
h: -60,
|
|
1615
1619
|
l: -10
|
|
1616
|
-
}), this.pie9 = this.pie9 ||
|
|
1620
|
+
}), this.pie9 = this.pie9 || F(e, {
|
|
1617
1621
|
h: 120,
|
|
1618
1622
|
l: 0
|
|
1619
|
-
}), this.pie10 = this.pie10 ||
|
|
1623
|
+
}), this.pie10 = this.pie10 || F(e, {
|
|
1620
1624
|
h: 60,
|
|
1621
1625
|
l: -20
|
|
1622
|
-
}), this.pie11 = this.pie11 ||
|
|
1626
|
+
}), this.pie11 = this.pie11 || F(e, {
|
|
1623
1627
|
h: -60,
|
|
1624
1628
|
l: -20
|
|
1625
|
-
}), this.pie12 = this.pie12 ||
|
|
1629
|
+
}), this.pie12 = this.pie12 || F(e, {
|
|
1626
1630
|
h: 120,
|
|
1627
1631
|
l: -10
|
|
1628
|
-
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1632
|
+
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || F(e, {
|
|
1629
1633
|
r: 5,
|
|
1630
1634
|
g: 5,
|
|
1631
1635
|
b: 5
|
|
1632
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1636
|
+
}), this.quadrant3Fill = this.quadrant3Fill || F(e, {
|
|
1633
1637
|
r: 10,
|
|
1634
1638
|
g: 10,
|
|
1635
1639
|
b: 10
|
|
1636
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1640
|
+
}), this.quadrant4Fill = this.quadrant4Fill || F(e, {
|
|
1637
1641
|
r: 15,
|
|
1638
1642
|
g: 15,
|
|
1639
1643
|
b: 15
|
|
1640
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1644
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
|
|
1641
1645
|
r: -5,
|
|
1642
1646
|
g: -5,
|
|
1643
1647
|
b: -5
|
|
1644
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1648
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
|
|
1645
1649
|
r: -10,
|
|
1646
1650
|
g: -10,
|
|
1647
1651
|
b: -10
|
|
1648
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1652
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
|
|
1649
1653
|
r: -15,
|
|
1650
1654
|
g: -15,
|
|
1651
1655
|
b: -15
|
|
1652
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1656
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
|
|
1653
1657
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1654
1658
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1655
1659
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -1661,7 +1665,7 @@ var C = {
|
|
|
1661
1665
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1662
1666
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1663
1667
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1664
|
-
}, this.requirementBackground = this.requirementBackground || e, 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 ?
|
|
1668
|
+
}, this.requirementBackground = this.requirementBackground || e, 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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || F(e, { h: -30 }), this.git4 = this.git4 || F(e, { h: -60 }), this.git5 = this.git5 || F(e, { h: -90 }), this.git6 = this.git6 || F(e, { h: 60 }), this.git7 = this.git7 || F(e, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
1665
1669
|
}
|
|
1666
1670
|
calculate(e) {
|
|
1667
1671
|
if (typeof e != "object") {
|
|
@@ -1683,74 +1687,74 @@ var C = {
|
|
|
1683
1687
|
n(this, "Theme");
|
|
1684
1688
|
}
|
|
1685
1689
|
constructor() {
|
|
1686
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
1690
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = N(this.primaryColor, 16), this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = N(I("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = I(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
|
|
1687
1691
|
}
|
|
1688
1692
|
updateColors() {
|
|
1689
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
1693
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
|
|
1690
1694
|
h: 180,
|
|
1691
1695
|
l: 5
|
|
1692
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1696
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(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.border1, 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 ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(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 || N(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 || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, 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.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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, {
|
|
1693
1697
|
h: 210,
|
|
1694
1698
|
l: 150
|
|
1695
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1696
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1697
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1698
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1699
|
+
}), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
|
|
1700
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
|
|
1701
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
|
|
1702
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
|
|
1699
1703
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1700
1704
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1701
1705
|
let e = this.darkMode ? -4 : -1;
|
|
1702
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
1706
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || F(this.mainBkg, {
|
|
1703
1707
|
h: 180,
|
|
1704
1708
|
s: -15,
|
|
1705
1709
|
l: e * (5 + t * 3)
|
|
1706
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
1710
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || F(this.mainBkg, {
|
|
1707
1711
|
h: 180,
|
|
1708
1712
|
s: -15,
|
|
1709
1713
|
l: e * (8 + t * 3)
|
|
1710
1714
|
});
|
|
1711
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
1715
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || F(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || F(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || F(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || F(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || F(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || F(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 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || F(this.primaryColor, {
|
|
1712
1716
|
h: 60,
|
|
1713
1717
|
l: -10
|
|
1714
|
-
}), this.pie8 = this.pie8 ||
|
|
1718
|
+
}), this.pie8 = this.pie8 || F(this.primaryColor, {
|
|
1715
1719
|
h: -60,
|
|
1716
1720
|
l: -10
|
|
1717
|
-
}), this.pie9 = this.pie9 ||
|
|
1721
|
+
}), this.pie9 = this.pie9 || F(this.primaryColor, {
|
|
1718
1722
|
h: 120,
|
|
1719
1723
|
l: 0
|
|
1720
|
-
}), this.pie10 = this.pie10 ||
|
|
1724
|
+
}), this.pie10 = this.pie10 || F(this.primaryColor, {
|
|
1721
1725
|
h: 60,
|
|
1722
1726
|
l: -20
|
|
1723
|
-
}), this.pie11 = this.pie11 ||
|
|
1727
|
+
}), this.pie11 = this.pie11 || F(this.primaryColor, {
|
|
1724
1728
|
h: -60,
|
|
1725
1729
|
l: -20
|
|
1726
|
-
}), this.pie12 = this.pie12 ||
|
|
1730
|
+
}), this.pie12 = this.pie12 || F(this.primaryColor, {
|
|
1727
1731
|
h: 120,
|
|
1728
1732
|
l: -10
|
|
1729
|
-
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1733
|
+
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
|
|
1730
1734
|
r: 5,
|
|
1731
1735
|
g: 5,
|
|
1732
1736
|
b: 5
|
|
1733
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1737
|
+
}), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
|
|
1734
1738
|
r: 10,
|
|
1735
1739
|
g: 10,
|
|
1736
1740
|
b: 10
|
|
1737
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1741
|
+
}), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
|
|
1738
1742
|
r: 15,
|
|
1739
1743
|
g: 15,
|
|
1740
1744
|
b: 15
|
|
1741
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1745
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
|
|
1742
1746
|
r: -5,
|
|
1743
1747
|
g: -5,
|
|
1744
1748
|
b: -5
|
|
1745
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1749
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
|
|
1746
1750
|
r: -10,
|
|
1747
1751
|
g: -10,
|
|
1748
1752
|
b: -10
|
|
1749
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1753
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
|
|
1750
1754
|
r: -15,
|
|
1751
1755
|
g: -15,
|
|
1752
1756
|
b: -15
|
|
1753
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1757
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
|
|
1754
1758
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1755
1759
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1756
1760
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -1762,7 +1766,7 @@ var C = {
|
|
|
1762
1766
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1763
1767
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1764
1768
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1765
|
-
}, 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 ?
|
|
1769
|
+
}, 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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
1766
1770
|
}
|
|
1767
1771
|
calculate(e) {
|
|
1768
1772
|
if (typeof e != "object") {
|
|
@@ -1784,78 +1788,78 @@ var C = {
|
|
|
1784
1788
|
n(this, "Theme");
|
|
1785
1789
|
}
|
|
1786
1790
|
constructor() {
|
|
1787
|
-
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor =
|
|
1791
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = U("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
|
|
1788
1792
|
}
|
|
1789
1793
|
updateColors() {
|
|
1790
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
1794
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
|
|
1791
1795
|
h: 180,
|
|
1792
1796
|
l: 5
|
|
1793
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1794
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
1797
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, 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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(this.lineColor);
|
|
1798
|
+
let e = "#ECECFE", t = "#E9E9F1", n = F(e, {
|
|
1795
1799
|
h: 180,
|
|
1796
1800
|
l: 5
|
|
1797
1801
|
});
|
|
1798
|
-
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor ||
|
|
1802
|
+
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || N(e, 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.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.compositeTitleBackground = "#F9F9FB", this.altBackground = "#F9F9FB", this.stateEdgeLabelBackground = "#FFFFFF", this.fontWeight = 600, 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.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor;
|
|
1799
1803
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
|
|
1800
|
-
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1801
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1802
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1803
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1804
|
+
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
|
|
1805
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
|
|
1806
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
|
|
1807
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
|
|
1804
1808
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1805
1809
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1806
1810
|
let r = this.darkMode ? -4 : -1;
|
|
1807
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1811
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
|
|
1808
1812
|
h: 180,
|
|
1809
1813
|
s: -15,
|
|
1810
1814
|
l: r * (5 + e * 3)
|
|
1811
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1815
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
|
|
1812
1816
|
h: 180,
|
|
1813
1817
|
s: -15,
|
|
1814
1818
|
l: r * (8 + e * 3)
|
|
1815
1819
|
});
|
|
1816
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
1820
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || F(e, { h: 64 }), this.fillType3 = this.fillType3 || F(t, { h: 64 }), this.fillType4 = this.fillType4 || F(e, { h: -64 }), this.fillType5 = this.fillType5 || F(t, { h: -64 }), this.fillType6 = this.fillType6 || F(e, { h: 128 }), this.fillType7 = this.fillType7 || F(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || F(e, { l: -10 }), this.pie5 = this.pie5 || F(t, { l: -10 }), this.pie6 = this.pie6 || F(n, { l: -10 }), this.pie7 = this.pie7 || F(e, {
|
|
1817
1821
|
h: 60,
|
|
1818
1822
|
l: -10
|
|
1819
|
-
}), this.pie8 = this.pie8 ||
|
|
1823
|
+
}), this.pie8 = this.pie8 || F(e, {
|
|
1820
1824
|
h: -60,
|
|
1821
1825
|
l: -10
|
|
1822
|
-
}), this.pie9 = this.pie9 ||
|
|
1826
|
+
}), this.pie9 = this.pie9 || F(e, {
|
|
1823
1827
|
h: 120,
|
|
1824
1828
|
l: 0
|
|
1825
|
-
}), this.pie10 = this.pie10 ||
|
|
1829
|
+
}), this.pie10 = this.pie10 || F(e, {
|
|
1826
1830
|
h: 60,
|
|
1827
1831
|
l: -20
|
|
1828
|
-
}), this.pie11 = this.pie11 ||
|
|
1832
|
+
}), this.pie11 = this.pie11 || F(e, {
|
|
1829
1833
|
h: -60,
|
|
1830
1834
|
l: -20
|
|
1831
|
-
}), this.pie12 = this.pie12 ||
|
|
1835
|
+
}), this.pie12 = this.pie12 || F(e, {
|
|
1832
1836
|
h: 120,
|
|
1833
1837
|
l: -10
|
|
1834
|
-
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1838
|
+
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || F(e, {
|
|
1835
1839
|
r: 5,
|
|
1836
1840
|
g: 5,
|
|
1837
1841
|
b: 5
|
|
1838
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1842
|
+
}), this.quadrant3Fill = this.quadrant3Fill || F(e, {
|
|
1839
1843
|
r: 10,
|
|
1840
1844
|
g: 10,
|
|
1841
1845
|
b: 10
|
|
1842
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1846
|
+
}), this.quadrant4Fill = this.quadrant4Fill || F(e, {
|
|
1843
1847
|
r: 15,
|
|
1844
1848
|
g: 15,
|
|
1845
1849
|
b: 15
|
|
1846
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1850
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
|
|
1847
1851
|
r: -5,
|
|
1848
1852
|
g: -5,
|
|
1849
1853
|
b: -5
|
|
1850
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1854
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
|
|
1851
1855
|
r: -10,
|
|
1852
1856
|
g: -10,
|
|
1853
1857
|
b: -10
|
|
1854
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1858
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
|
|
1855
1859
|
r: -15,
|
|
1856
1860
|
g: -15,
|
|
1857
1861
|
b: -15
|
|
1858
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1862
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
|
|
1859
1863
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1860
1864
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1861
1865
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -1867,7 +1871,7 @@ var C = {
|
|
|
1867
1871
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1868
1872
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1869
1873
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1870
|
-
}, this.requirementBackground = this.requirementBackground || e, 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 ?
|
|
1874
|
+
}, this.requirementBackground = this.requirementBackground || e, 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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || F(e, { h: -30 }), this.git4 = this.git4 || F(e, { h: -60 }), this.git5 = this.git5 || F(e, { h: -90 }), this.git6 = this.git6 || F(e, { h: 60 }), this.git7 = this.git7 || F(e, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
1871
1875
|
}
|
|
1872
1876
|
calculate(e) {
|
|
1873
1877
|
if (typeof e != "object") {
|
|
@@ -1889,74 +1893,74 @@ var C = {
|
|
|
1889
1893
|
n(this, "Theme");
|
|
1890
1894
|
}
|
|
1891
1895
|
constructor() {
|
|
1892
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
1896
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = N(this.primaryColor, 16), this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = N(I("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = I(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
|
|
1893
1897
|
}
|
|
1894
1898
|
updateColors() {
|
|
1895
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
1899
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
|
|
1896
1900
|
h: 180,
|
|
1897
1901
|
l: 5
|
|
1898
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1902
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(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.border1, 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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", 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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(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 || N(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.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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, 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.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 || F(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || F(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || F(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || F(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || F(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || F(this.primaryColor, {
|
|
1899
1903
|
h: 210,
|
|
1900
1904
|
l: 150
|
|
1901
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1902
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1903
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1904
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1905
|
+
}), this.cScale9 = this.cScale9 || F(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || F(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || F(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 75);
|
|
1906
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = P(this["cScale" + e], 25);
|
|
1907
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
|
|
1908
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
|
|
1905
1909
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1906
1910
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1907
1911
|
let e = this.darkMode ? -4 : -1;
|
|
1908
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
1912
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || F(this.mainBkg, {
|
|
1909
1913
|
h: 180,
|
|
1910
1914
|
s: -15,
|
|
1911
1915
|
l: e * (5 + t * 3)
|
|
1912
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
1916
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || F(this.mainBkg, {
|
|
1913
1917
|
h: 180,
|
|
1914
1918
|
s: -15,
|
|
1915
1919
|
l: e * (8 + t * 3)
|
|
1916
1920
|
});
|
|
1917
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
1921
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || F(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || F(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || F(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || F(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || F(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || F(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 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || F(this.primaryColor, {
|
|
1918
1922
|
h: 60,
|
|
1919
1923
|
l: -10
|
|
1920
|
-
}), this.pie8 = this.pie8 ||
|
|
1924
|
+
}), this.pie8 = this.pie8 || F(this.primaryColor, {
|
|
1921
1925
|
h: -60,
|
|
1922
1926
|
l: -10
|
|
1923
|
-
}), this.pie9 = this.pie9 ||
|
|
1927
|
+
}), this.pie9 = this.pie9 || F(this.primaryColor, {
|
|
1924
1928
|
h: 120,
|
|
1925
1929
|
l: 0
|
|
1926
|
-
}), this.pie10 = this.pie10 ||
|
|
1930
|
+
}), this.pie10 = this.pie10 || F(this.primaryColor, {
|
|
1927
1931
|
h: 60,
|
|
1928
1932
|
l: -20
|
|
1929
|
-
}), this.pie11 = this.pie11 ||
|
|
1933
|
+
}), this.pie11 = this.pie11 || F(this.primaryColor, {
|
|
1930
1934
|
h: -60,
|
|
1931
1935
|
l: -20
|
|
1932
|
-
}), this.pie12 = this.pie12 ||
|
|
1936
|
+
}), this.pie12 = this.pie12 || F(this.primaryColor, {
|
|
1933
1937
|
h: 120,
|
|
1934
1938
|
l: -10
|
|
1935
|
-
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1939
|
+
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
|
|
1936
1940
|
r: 5,
|
|
1937
1941
|
g: 5,
|
|
1938
1942
|
b: 5
|
|
1939
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1943
|
+
}), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
|
|
1940
1944
|
r: 10,
|
|
1941
1945
|
g: 10,
|
|
1942
1946
|
b: 10
|
|
1943
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1947
|
+
}), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
|
|
1944
1948
|
r: 15,
|
|
1945
1949
|
g: 15,
|
|
1946
1950
|
b: 15
|
|
1947
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1951
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
|
|
1948
1952
|
r: -5,
|
|
1949
1953
|
g: -5,
|
|
1950
1954
|
b: -5
|
|
1951
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1955
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
|
|
1952
1956
|
r: -10,
|
|
1953
1957
|
g: -10,
|
|
1954
1958
|
b: -10
|
|
1955
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1959
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
|
|
1956
1960
|
r: -15,
|
|
1957
1961
|
g: -15,
|
|
1958
1962
|
b: -15
|
|
1959
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1963
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
|
|
1960
1964
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1961
1965
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1962
1966
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -1968,7 +1972,7 @@ var C = {
|
|
|
1968
1972
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1969
1973
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1970
1974
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1971
|
-
}, 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 ?
|
|
1975
|
+
}, 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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
1972
1976
|
}
|
|
1973
1977
|
calculate(e) {
|
|
1974
1978
|
if (typeof e != "object") {
|
|
@@ -1990,7 +1994,7 @@ var C = {
|
|
|
1990
1994
|
n(this, "Theme");
|
|
1991
1995
|
}
|
|
1992
1996
|
constructor() {
|
|
1993
|
-
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor =
|
|
1997
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
|
|
1994
1998
|
"#E879F9",
|
|
1995
1999
|
"#2DD4BF",
|
|
1996
2000
|
"#FB923C",
|
|
@@ -2019,72 +2023,72 @@ var C = {
|
|
|
2019
2023
|
], this.filterColor = "#000000";
|
|
2020
2024
|
}
|
|
2021
2025
|
updateColors() {
|
|
2022
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
2026
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
|
|
2023
2027
|
h: 180,
|
|
2024
2028
|
l: 5
|
|
2025
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2026
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
2029
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(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 ? P(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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(this.lineColor);
|
|
2030
|
+
let e = "#ECECFE", t = "#E9E9F1", n = F(e, {
|
|
2027
2031
|
h: 180,
|
|
2028
2032
|
l: 5
|
|
2029
2033
|
});
|
|
2030
|
-
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor ||
|
|
2031
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2032
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2034
|
+
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || N(e, 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.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, 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.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 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
2035
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
|
|
2036
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
|
|
2033
2037
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2034
2038
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2035
2039
|
let r = this.darkMode ? -4 : -1;
|
|
2036
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2040
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || F(this.mainBkg, {
|
|
2037
2041
|
h: 180,
|
|
2038
2042
|
s: -15,
|
|
2039
2043
|
l: r * (5 + e * 3)
|
|
2040
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2044
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || F(this.mainBkg, {
|
|
2041
2045
|
h: 180,
|
|
2042
2046
|
s: -15,
|
|
2043
2047
|
l: r * (8 + e * 3)
|
|
2044
2048
|
});
|
|
2045
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
2049
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || F(e, { h: 64 }), this.fillType3 = this.fillType3 || F(t, { h: 64 }), this.fillType4 = this.fillType4 || F(e, { h: -64 }), this.fillType5 = this.fillType5 || F(t, { h: -64 }), this.fillType6 = this.fillType6 || F(e, { h: 128 }), this.fillType7 = this.fillType7 || F(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || F(e, { l: -10 }), this.pie5 = this.pie5 || F(t, { l: -10 }), this.pie6 = this.pie6 || F(n, { l: -10 }), this.pie7 = this.pie7 || F(e, {
|
|
2046
2050
|
h: 60,
|
|
2047
2051
|
l: -10
|
|
2048
|
-
}), this.pie8 = this.pie8 ||
|
|
2052
|
+
}), this.pie8 = this.pie8 || F(e, {
|
|
2049
2053
|
h: -60,
|
|
2050
2054
|
l: -10
|
|
2051
|
-
}), this.pie9 = this.pie9 ||
|
|
2055
|
+
}), this.pie9 = this.pie9 || F(e, {
|
|
2052
2056
|
h: 120,
|
|
2053
2057
|
l: 0
|
|
2054
|
-
}), this.pie10 = this.pie10 ||
|
|
2058
|
+
}), this.pie10 = this.pie10 || F(e, {
|
|
2055
2059
|
h: 60,
|
|
2056
2060
|
l: -20
|
|
2057
|
-
}), this.pie11 = this.pie11 ||
|
|
2061
|
+
}), this.pie11 = this.pie11 || F(e, {
|
|
2058
2062
|
h: -60,
|
|
2059
2063
|
l: -20
|
|
2060
|
-
}), this.pie12 = this.pie12 ||
|
|
2064
|
+
}), this.pie12 = this.pie12 || F(e, {
|
|
2061
2065
|
h: 120,
|
|
2062
2066
|
l: -10
|
|
2063
|
-
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2067
|
+
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || F(e, {
|
|
2064
2068
|
r: 5,
|
|
2065
2069
|
g: 5,
|
|
2066
2070
|
b: 5
|
|
2067
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2071
|
+
}), this.quadrant3Fill = this.quadrant3Fill || F(e, {
|
|
2068
2072
|
r: 10,
|
|
2069
2073
|
g: 10,
|
|
2070
2074
|
b: 10
|
|
2071
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2075
|
+
}), this.quadrant4Fill = this.quadrant4Fill || F(e, {
|
|
2072
2076
|
r: 15,
|
|
2073
2077
|
g: 15,
|
|
2074
2078
|
b: 15
|
|
2075
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2079
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
|
|
2076
2080
|
r: -5,
|
|
2077
2081
|
g: -5,
|
|
2078
2082
|
b: -5
|
|
2079
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2083
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
|
|
2080
2084
|
r: -10,
|
|
2081
2085
|
g: -10,
|
|
2082
2086
|
b: -10
|
|
2083
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2087
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
|
|
2084
2088
|
r: -15,
|
|
2085
2089
|
g: -15,
|
|
2086
2090
|
b: -15
|
|
2087
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2091
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
|
|
2088
2092
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2089
2093
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2090
2094
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -2096,7 +2100,7 @@ var C = {
|
|
|
2096
2100
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2097
2101
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2098
2102
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2099
|
-
}, this.requirementBackground = this.requirementBackground || e, 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 ?
|
|
2103
|
+
}, this.requirementBackground = this.requirementBackground || e, 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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || F(e, { h: -30 }), this.git4 = this.git4 || F(e, { h: -60 }), this.git5 = this.git5 || F(e, { h: -90 }), this.git6 = this.git6 || F(e, { h: 60 }), this.git7 = this.git7 || F(e, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2100
2104
|
}
|
|
2101
2105
|
calculate(e) {
|
|
2102
2106
|
if (typeof e != "object") {
|
|
@@ -2118,7 +2122,7 @@ var C = {
|
|
|
2118
2122
|
n(this, "Theme");
|
|
2119
2123
|
}
|
|
2120
2124
|
constructor() {
|
|
2121
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2125
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = N(this.primaryColor, 16), this.tertiaryColor = F(this.primaryColor, { h: -160 }), this.primaryBorderColor = I(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = I(this.primaryColor), this.secondaryTextColor = I(this.secondaryColor), this.tertiaryTextColor = I(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = N(I("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = I(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
|
|
2122
2126
|
"#E879F9",
|
|
2123
2127
|
"#2DD4BF",
|
|
2124
2128
|
"#FB923C",
|
|
@@ -2134,67 +2138,67 @@ var C = {
|
|
|
2134
2138
|
], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
|
|
2135
2139
|
}
|
|
2136
2140
|
updateColors() {
|
|
2137
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
2141
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || F(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || F(this.primaryColor, {
|
|
2138
2142
|
h: 180,
|
|
2139
2143
|
l: 5
|
|
2140
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2141
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2142
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2144
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || I(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || I(this.tertiaryColor), this.lineColor = this.lineColor || I(this.background), this.arrowheadColor = this.arrowheadColor || I(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.border1, 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 ? P(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", 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 || P(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || I(this.lineColor), this.rootLabelColor = "#FFFFFF", 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 || N(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.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, 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.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 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
2145
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e]);
|
|
2146
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
|
|
2143
2147
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2144
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] =
|
|
2148
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = P(this["cScale" + e], 75);
|
|
2145
2149
|
let e = this.darkMode ? -4 : -1;
|
|
2146
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2150
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || F(this.mainBkg, {
|
|
2147
2151
|
h: 180,
|
|
2148
2152
|
s: -15,
|
|
2149
2153
|
l: e * (5 + t * 3)
|
|
2150
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2154
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || F(this.mainBkg, {
|
|
2151
2155
|
h: 180,
|
|
2152
2156
|
s: -15,
|
|
2153
2157
|
l: e * (8 + t * 3)
|
|
2154
2158
|
});
|
|
2155
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
2159
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || F(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || F(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || F(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || F(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || F(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || F(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 || F(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || F(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || F(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || F(this.primaryColor, {
|
|
2156
2160
|
h: 60,
|
|
2157
2161
|
l: -10
|
|
2158
|
-
}), this.pie8 = this.pie8 ||
|
|
2162
|
+
}), this.pie8 = this.pie8 || F(this.primaryColor, {
|
|
2159
2163
|
h: -60,
|
|
2160
2164
|
l: -10
|
|
2161
|
-
}), this.pie9 = this.pie9 ||
|
|
2165
|
+
}), this.pie9 = this.pie9 || F(this.primaryColor, {
|
|
2162
2166
|
h: 120,
|
|
2163
2167
|
l: 0
|
|
2164
|
-
}), this.pie10 = this.pie10 ||
|
|
2168
|
+
}), this.pie10 = this.pie10 || F(this.primaryColor, {
|
|
2165
2169
|
h: 60,
|
|
2166
2170
|
l: -20
|
|
2167
|
-
}), this.pie11 = this.pie11 ||
|
|
2171
|
+
}), this.pie11 = this.pie11 || F(this.primaryColor, {
|
|
2168
2172
|
h: -60,
|
|
2169
2173
|
l: -20
|
|
2170
|
-
}), this.pie12 = this.pie12 ||
|
|
2174
|
+
}), this.pie12 = this.pie12 || F(this.primaryColor, {
|
|
2171
2175
|
h: 120,
|
|
2172
2176
|
l: -10
|
|
2173
|
-
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2177
|
+
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || F(this.primaryColor, {
|
|
2174
2178
|
r: 5,
|
|
2175
2179
|
g: 5,
|
|
2176
2180
|
b: 5
|
|
2177
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2181
|
+
}), this.quadrant3Fill = this.quadrant3Fill || F(this.primaryColor, {
|
|
2178
2182
|
r: 10,
|
|
2179
2183
|
g: 10,
|
|
2180
2184
|
b: 10
|
|
2181
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2185
|
+
}), this.quadrant4Fill = this.quadrant4Fill || F(this.primaryColor, {
|
|
2182
2186
|
r: 15,
|
|
2183
2187
|
g: 15,
|
|
2184
2188
|
b: 15
|
|
2185
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2189
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || F(this.primaryTextColor, {
|
|
2186
2190
|
r: -5,
|
|
2187
2191
|
g: -5,
|
|
2188
2192
|
b: -5
|
|
2189
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2193
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || F(this.primaryTextColor, {
|
|
2190
2194
|
r: -10,
|
|
2191
2195
|
g: -10,
|
|
2192
2196
|
b: -10
|
|
2193
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2197
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || F(this.primaryTextColor, {
|
|
2194
2198
|
r: -15,
|
|
2195
2199
|
g: -15,
|
|
2196
2200
|
b: -15
|
|
2197
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2201
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? N(this.quadrant1Fill) : P(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 = {
|
|
2198
2202
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2199
2203
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2200
2204
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -2206,7 +2210,7 @@ var C = {
|
|
|
2206
2210
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2207
2211
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2208
2212
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2209
|
-
}, 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 ?
|
|
2213
|
+
}, 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 ? P(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 || F(this.primaryColor, { h: -30 }), this.git4 = this.git4 || F(this.primaryColor, { h: -60 }), this.git5 = this.git5 || F(this.primaryColor, { h: -90 }), this.git6 = this.git6 || F(this.primaryColor, { h: 60 }), this.git7 = this.git7 || F(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)) : (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(this.git0), this.gitInv1 = this.gitInv1 || I(this.git1), this.gitInv2 = this.gitInv2 || I(this.git2), this.gitInv3 = this.gitInv3 || I(this.git3), this.gitInv4 = this.gitInv4 || I(this.git4), this.gitInv5 = this.gitInv5 || I(this.git5), this.gitInv6 = this.gitInv6 || I(this.git6), this.gitInv7 = this.gitInv7 || I(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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2210
2214
|
}
|
|
2211
2215
|
calculate(e) {
|
|
2212
2216
|
if (typeof e != "object") {
|
|
@@ -2221,7 +2225,7 @@ var C = {
|
|
|
2221
2225
|
});
|
|
2222
2226
|
}
|
|
2223
2227
|
}, K = {
|
|
2224
|
-
base: { getThemeVariables:
|
|
2228
|
+
base: { getThemeVariables: tt },
|
|
2225
2229
|
dark: { getThemeVariables: W },
|
|
2226
2230
|
default: { getThemeVariables: it },
|
|
2227
2231
|
forest: { getThemeVariables: ot },
|
|
@@ -3021,50 +3025,50 @@ var C = {
|
|
|
3021
3025
|
"false",
|
|
3022
3026
|
"null",
|
|
3023
3027
|
"0"
|
|
3024
|
-
].includes(String(e).trim().toLowerCase())), "evaluate"), X =
|
|
3025
|
-
let n =
|
|
3026
|
-
for (let e of t)
|
|
3027
|
-
if (n =
|
|
3028
|
-
let e =
|
|
3028
|
+
].includes(String(e).trim().toLowerCase())), "evaluate"), X = B({}, J), Tt, Z = [], Q = B({}, J), $ = /* @__PURE__ */ n((e, t) => {
|
|
3029
|
+
let n = B({}, e), r = {};
|
|
3030
|
+
for (let e of t) Mt(e), r = B(r, e);
|
|
3031
|
+
if (n = B(n, r), r.theme && r.theme in K) {
|
|
3032
|
+
let e = B(B({}, Tt).themeVariables || {}, r.themeVariables);
|
|
3029
3033
|
n.theme && n.theme in K && (n.themeVariables = K[n.theme].getThemeVariables(e));
|
|
3030
3034
|
}
|
|
3031
|
-
return
|
|
3032
|
-
}, "updateCurrentConfig"),
|
|
3033
|
-
Tt =
|
|
3034
|
-
}, "saveConfigFromInitialize"),
|
|
3035
|
+
return Q = n, Rt(Q), Q;
|
|
3036
|
+
}, "updateCurrentConfig"), Et = /* @__PURE__ */ n((e) => (X = B({}, J), X = B(X, e), e.theme && K[e.theme] && (X.themeVariables = K[e.theme].getThemeVariables(e.themeVariables)), $(X, Z), X), "setSiteConfig"), Dt = /* @__PURE__ */ n((e) => {
|
|
3037
|
+
Tt = B({}, e);
|
|
3038
|
+
}, "saveConfigFromInitialize"), Ot = /* @__PURE__ */ n((e) => (X = B(X, e), $(X, Z), X), "updateSiteConfig"), kt = /* @__PURE__ */ n(() => B({}, X), "getSiteConfig"), At = /* @__PURE__ */ n((e) => (Rt(e), B(Q, e), jt()), "setConfig"), jt = /* @__PURE__ */ n(() => B({}, Q), "getConfig"), Mt = /* @__PURE__ */ n((e) => {
|
|
3035
3039
|
e && (["secure", ...X.secure ?? []].forEach((n) => {
|
|
3036
3040
|
Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
|
|
3037
3041
|
}), Object.keys(e).forEach((t) => {
|
|
3038
3042
|
t.startsWith("__") && delete e[t];
|
|
3039
3043
|
}), Object.keys(e).forEach((t) => {
|
|
3040
|
-
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" &&
|
|
3044
|
+
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Mt(e[t]);
|
|
3041
3045
|
}));
|
|
3042
|
-
}, "sanitize"),
|
|
3046
|
+
}, "sanitize"), Nt = /* @__PURE__ */ n((e) => {
|
|
3043
3047
|
Ct(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
|
|
3044
3048
|
...e.themeVariables,
|
|
3045
3049
|
fontFamily: e.fontFamily
|
|
3046
|
-
}), Z.push(e),
|
|
3047
|
-
}, "addDirective"),
|
|
3048
|
-
Z = [],
|
|
3049
|
-
}, "reset"),
|
|
3050
|
+
}), Z.push(e), $(X, Z);
|
|
3051
|
+
}, "addDirective"), Pt = /* @__PURE__ */ n((e = X) => {
|
|
3052
|
+
Z = [], $(e, Z);
|
|
3053
|
+
}, "reset"), Ft = {
|
|
3050
3054
|
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
|
|
3051
3055
|
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
3052
|
-
},
|
|
3053
|
-
|
|
3054
|
-
}, "issueWarning"),
|
|
3055
|
-
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) &&
|
|
3056
|
-
}, "checkConfig"),
|
|
3056
|
+
}, It = {}, Lt = /* @__PURE__ */ n((e) => {
|
|
3057
|
+
It[e] || (t.warn(Ft[e]), It[e] = !0);
|
|
3058
|
+
}, "issueWarning"), Rt = /* @__PURE__ */ n((e) => {
|
|
3059
|
+
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && Lt("LAZY_LOAD_DEPRECATED");
|
|
3060
|
+
}, "checkConfig"), zt = /* @__PURE__ */ n(() => {
|
|
3057
3061
|
let e = {};
|
|
3058
|
-
Tt && (e =
|
|
3059
|
-
for (let t of Z) e =
|
|
3062
|
+
Tt && (e = B(e, Tt));
|
|
3063
|
+
for (let t of Z) e = B(e, t);
|
|
3060
3064
|
return e;
|
|
3061
|
-
}, "getUserDefinedConfig"),
|
|
3065
|
+
}, "getUserDefinedConfig"), Bt = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && Lt("FLOWCHART_HTML_LABELS_DEPRECATED"), Y(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), Vt = /<br\s*\/?>/gi, Ht = /* @__PURE__ */ n((e) => e ? Qt(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Ut = /* @__PURE__ */ (() => {
|
|
3062
3066
|
let e = !1;
|
|
3063
3067
|
return () => {
|
|
3064
|
-
e ||= (
|
|
3068
|
+
e ||= (Wt(), !0);
|
|
3065
3069
|
};
|
|
3066
3070
|
})();
|
|
3067
|
-
function
|
|
3071
|
+
function Wt() {
|
|
3068
3072
|
let e = "data-temp-href-target";
|
|
3069
3073
|
b.addHook("beforeSanitizeAttributes", (t) => {
|
|
3070
3074
|
t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
|
|
@@ -3072,14 +3076,14 @@ function Gt() {
|
|
|
3072
3076
|
t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
|
|
3073
3077
|
});
|
|
3074
3078
|
}
|
|
3075
|
-
n(
|
|
3076
|
-
var
|
|
3077
|
-
if (
|
|
3079
|
+
n(Wt, "setupDompurifyHooks");
|
|
3080
|
+
var Gt = /* @__PURE__ */ n((e) => (Ut(), b.sanitize(e)), "removeScript"), Kt = /* @__PURE__ */ n((e, t) => {
|
|
3081
|
+
if (Bt(t)) {
|
|
3078
3082
|
let n = t.securityLevel;
|
|
3079
|
-
n === "antiscript" || n === "strict" || n === "sandbox" ? e =
|
|
3083
|
+
n === "antiscript" || n === "strict" || n === "sandbox" ? e = Gt(e) : n !== "loose" && (e = Qt(e), e = e.replace(/</g, "<").replace(/>/g, ">"), e = e.replace(/=/g, "="), e = Zt(e));
|
|
3080
3084
|
}
|
|
3081
3085
|
return e;
|
|
3082
|
-
}, "sanitizeMore"),
|
|
3086
|
+
}, "sanitizeMore"), qt = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? b.sanitize(Kt(e, t), t.dompurifyConfig).toString() : b.sanitize(Kt(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Jt = /* @__PURE__ */ n((e, t) => typeof e == "string" ? qt(e, t) : e.flat().map((e) => qt(e, t)), "sanitizeTextOrArray"), Yt = /* @__PURE__ */ n((e) => Vt.test(e), "hasBreaks"), Xt = /* @__PURE__ */ n((e) => e.split(Vt), "splitBreaks"), Zt = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), Qt = /* @__PURE__ */ n((e) => e.replace(Vt, "#br#"), "breakToPlaceholder"), $t = /* @__PURE__ */ n((e) => {
|
|
3083
3087
|
let t = "";
|
|
3084
3088
|
return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
|
|
3085
3089
|
}, "getUrl"), en = /* @__PURE__ */ n(function(...e) {
|
|
@@ -3122,21 +3126,21 @@ var Kt = /* @__PURE__ */ n((e) => (Wt(), b.sanitize(e)), "removeScript"), qt = /
|
|
|
3122
3126
|
if (!(sn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(cn, "MathML is unsupported in this environment.");
|
|
3123
3127
|
{
|
|
3124
3128
|
let { default: n } = await import("./katex-Du5WiYIy.js"), r = t.forceLegacyMathML || !sn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
3125
|
-
return e.split(
|
|
3129
|
+
return e.split(Vt).map((e) => ln(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(cn, (e, t) => n.renderToString(t, {
|
|
3126
3130
|
throwOnError: !0,
|
|
3127
3131
|
displayMode: !0,
|
|
3128
3132
|
output: r
|
|
3129
3133
|
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
3130
3134
|
}
|
|
3131
3135
|
return e.replace(cn, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
|
|
3132
|
-
}, "renderKatexUnsanitized"), fn = /* @__PURE__ */ n(async (e, t) =>
|
|
3133
|
-
getRows:
|
|
3134
|
-
sanitizeText:
|
|
3136
|
+
}, "renderKatexUnsanitized"), fn = /* @__PURE__ */ n(async (e, t) => qt(await dn(e, t), t), "renderKatexSanitized"), pn = {
|
|
3137
|
+
getRows: Ht,
|
|
3138
|
+
sanitizeText: qt,
|
|
3135
3139
|
sanitizeTextOrArray: Jt,
|
|
3136
3140
|
hasBreaks: Yt,
|
|
3137
3141
|
splitBreaks: Xt,
|
|
3138
|
-
lineBreakRegex:
|
|
3139
|
-
removeScript:
|
|
3142
|
+
lineBreakRegex: Vt,
|
|
3143
|
+
removeScript: Gt,
|
|
3140
3144
|
getUrl: $t,
|
|
3141
3145
|
evaluate: Y,
|
|
3142
3146
|
getMax: en,
|
|
@@ -3291,7 +3295,7 @@ r(Sn, {
|
|
|
3291
3295
|
setAccTitle: () => On,
|
|
3292
3296
|
setDiagramTitle: () => Mn
|
|
3293
3297
|
});
|
|
3294
|
-
var Cn = "", wn = "", Tn = "", En = /* @__PURE__ */ n((e) =>
|
|
3298
|
+
var Cn = "", wn = "", Tn = "", En = /* @__PURE__ */ n((e) => qt(e, jt()), "sanitizeText"), Dn = /* @__PURE__ */ n(() => {
|
|
3295
3299
|
Cn = "", Tn = "", wn = "";
|
|
3296
3300
|
}, "clear"), On = /* @__PURE__ */ n((e) => {
|
|
3297
3301
|
Cn = En(e).replace(/^\s+/g, "");
|
|
@@ -3299,8 +3303,8 @@ var Cn = "", wn = "", Tn = "", En = /* @__PURE__ */ n((e) => $(e, Mt()), "saniti
|
|
|
3299
3303
|
Tn = En(e).replace(/\n\s+/g, "\n");
|
|
3300
3304
|
}, "setAccDescription"), jn = /* @__PURE__ */ n(() => Tn, "getAccDescription"), Mn = /* @__PURE__ */ n((e) => {
|
|
3301
3305
|
wn = En(e);
|
|
3302
|
-
}, "setDiagramTitle"), Nn = /* @__PURE__ */ n(() => wn, "getDiagramTitle"), Pn = t, Fn = e, In =
|
|
3303
|
-
Hn[e] && Pn.warn(`Diagram with id ${e} already registered. Overwriting.`), Hn[e] = t, n &&
|
|
3306
|
+
}, "setDiagramTitle"), Nn = /* @__PURE__ */ n(() => wn, "getDiagramTitle"), Pn = t, Fn = e, In = jt, Ln = At, Rn = J, zn = /* @__PURE__ */ n((e) => qt(e, In()), "sanitizeText"), Bn = _n, Vn = /* @__PURE__ */ n(() => Sn, "getCommonDb"), Hn = {}, Un = /* @__PURE__ */ n((e, t, n) => {
|
|
3307
|
+
Hn[e] && Pn.warn(`Diagram with id ${e} already registered. Overwriting.`), Hn[e] = t, n && Qe(e, n), bn(e, t.styles), t.injectUtils?.(Pn, Fn, In, zn, Bn, Vn(), () => {});
|
|
3304
3308
|
}, "registerDiagram"), Wn = /* @__PURE__ */ n((e) => {
|
|
3305
3309
|
if (e in Hn) return Hn[e];
|
|
3306
3310
|
throw new Gn(e);
|
|
@@ -3313,4 +3317,4 @@ var Cn = "", wn = "", Tn = "", En = /* @__PURE__ */ n((e) => $(e, Mt()), "saniti
|
|
|
3313
3317
|
}
|
|
3314
3318
|
};
|
|
3315
3319
|
//#endregion
|
|
3316
|
-
export {
|
|
3320
|
+
export { M as $, Vt as A, An as B, Nn as C, $t as D, it as E, Pt as F, Et as G, At as H, Ct as I, xn as J, _n as K, qt as L, Un as M, R as N, zt as O, fn as P, N as Q, zn as R, $e as S, kt as T, Ln as U, On as V, Mn as W, Ot as X, K as Y, P as Z, jn as _, Dn as a, In as b, gn as c, St as d, j as et, Ze as f, qe as g, Y as h, un as i, b as it, nn as j, ln as k, J as l, Je as m, Nt as n, O as nt, Sn as o, L as p, Bn as q, B as r, x as rt, pn as s, Xe as t, k as tt, Rn as u, kn as v, Bt as w, Wn as x, jt as y, Dt as z };
|