@orangelogic/design-system 2.162.0 → 2.164.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/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
- package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
- package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
- package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
- package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
- package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
- package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
- package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
- package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
- package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
- package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
- package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
- package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
- package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
- package/library/chunks/Slice.BVI8rfHI.js +34 -0
- package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
- package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
- package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
- package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
- package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
- package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
- package/library/chunks/_baseEach.DQk0As2f.js +32 -0
- package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
- package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
- package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
- package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
- package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
- package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
- package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
- package/library/chunks/arc.xqNd6x9S.js +84 -0
- package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
- package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
- package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
- package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
- package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
- package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
- package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
- package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
- package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
- package/library/chunks/channel.s_XjcUYI.js +5 -0
- package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
- package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
- package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
- package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
- package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
- package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
- package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
- package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
- package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
- package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
- package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
- package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
- package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
- package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
- package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
- package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
- package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
- package/library/chunks/constant.BQ4UJ-kW.js +12 -0
- package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
- package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
- package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
- package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
- package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
- package/library/chunks/debounce.Bv1rtE8D.js +55 -0
- package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
- package/library/chunks/descending.AD5n-tFs.js +10 -0
- package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
- package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
- package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
- package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
- package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
- package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
- package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
- package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
- package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
- package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
- package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
- package/library/chunks/flow.aZRVH3p1.js +1304 -0
- package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
- package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
- package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
- package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
- package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
- package/library/chunks/graph.XHMI5hta.js +653 -0
- package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
- package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
- package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
- package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
- package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
- package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
- package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
- package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
- package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
- package/library/chunks/index.BDn1QW8J.js +167 -0
- package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
- package/library/chunks/index.thKLME8E.js +77 -0
- package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
- package/library/chunks/init.DjUOC4st.js +16 -0
- package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
- package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
- package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
- package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
- package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
- package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
- package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
- package/library/chunks/katex.DoRnZ_sp.js +11682 -0
- package/library/chunks/layout.DZcMFKol.js +1446 -0
- package/library/chunks/line.DP-iSN_J.js +157 -0
- package/library/chunks/linear.TNHhsH1m.js +215 -0
- package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
- package/library/chunks/map.DJnohTgl.js +18 -0
- package/library/chunks/markdown.I1AJG75v.js +4180 -0
- package/library/chunks/math.D2lKC7md.js +22 -0
- package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
- package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
- package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
- package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
- package/library/chunks/ordinal.bqVaUip-.js +61 -0
- package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
- package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
- package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
- package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
- package/library/chunks/position-picker.DjnhxIKF.js +4 -0
- package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
- package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
- package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
- package/library/chunks/range.DdOGybNB.js +9 -0
- package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
- package/library/chunks/sankey.BR94A-8L.js +294 -0
- package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
- package/library/chunks/select.C6_sM3Pr.js +7 -0
- package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
- package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
- package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
- package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
- package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
- package/library/chunks/step.almIqwJ6.js +51 -0
- package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
- package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
- package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
- package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
- package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
- package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
- package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
- package/library/chunks/toNumber.MuDz8DgU.js +31 -0
- package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
- package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
- package/library/chunks/transformation.8uLv6uwG.js +264 -0
- package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
- package/library/chunks/value.BXEGBVFV.js +44 -0
- package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
- package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
- package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
- package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
- package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
- package/library/chunks/xy.BO6U5QrZ.js +294 -0
- package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
- package/library/components/alert.js +2 -2
- package/library/components/am-chart.js +3 -3
- package/library/components/animated-image.js +2 -2
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +8 -7
- package/library/components/atoms.js +29 -29
- package/library/components/audio.js +3 -3
- package/library/components/avatar.js +2 -2
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb-item.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +3 -3
- package/library/components/checkbox.js +195 -18
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +3 -3
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +4 -4
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +2 -2
- package/library/components/dialog.js +3 -3
- package/library/components/diff.js +1 -1
- package/library/components/divider.js +1 -1
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +3 -3
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +6 -6
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +350 -374
- package/library/components/folder-select.js +5 -5
- package/library/components/format-time.js +2 -2
- package/library/components/grid-item.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +2 -2
- package/library/components/image.js +3 -3
- package/library/components/include.js +1 -1
- package/library/components/input.js +3 -3
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +11 -2704
- package/library/components/masonry.js +76 -73
- package/library/components/menu-item.js +2 -2
- package/library/components/molecules.js +3 -3
- package/library/components/mutation-observer.js +1 -1
- package/library/components/option.js +3 -3
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/position-picker.js +25 -25
- package/library/components/qr-code.js +1 -1
- package/library/components/radio-button.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/radio.js +2 -2
- package/library/components/range.js +1 -1
- package/library/components/rating.js +2 -2
- package/library/components/resize-observer.js +1 -1
- package/library/components/select.js +3 -3
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +3 -3
- package/library/components/size-input-group.js +3 -3
- package/library/components/split-panel.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab-panel.js +1 -1
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +1 -1
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +4 -4
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +122327 -120686
- package/library/components/video.js +2 -2
- package/library/package.json +2 -1
- package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
- package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
- package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
- package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
- package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
- package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
- package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
- package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
- package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
- package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
- package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
- package/library/packages/types/src/asset-link-format.d.ts +19 -0
- package/library/packages/types/src/markdown-viewer.d.ts +12 -0
- package/library/packages/types/src/tree-item.d.ts +12 -0
- package/library/react-web-component.d.ts +86 -8
- package/library/utils.js +64 -65
- package/package.json +2 -1
- package/library/chunks/Slice.C5lVu2g_.js +0 -120
- package/library/chunks/_baseXor.VohG8cOH.js +0 -116
- package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
- package/library/chunks/checkbox.3i2j3PHc.js +0 -198
- package/library/chunks/content-builder.BU8X7I6V.js +0 -60
- package/library/chunks/debounce.C_J-9zJi.js +0 -82
- package/library/chunks/flow.hz0UDjCb.js +0 -1594
- package/library/chunks/index.DU0XUO4k.js +0 -176
- package/library/chunks/transformation.D1alV_s4.js +0 -189
- package/library/chunks/xy.BNgyrwGD.js +0 -333
|
@@ -0,0 +1,675 @@
|
|
|
1
|
+
import { p as Mt } from "./chunk-JWPE2WC7.BV0i4LDu.js";
|
|
2
|
+
import { _ as u, s as Nt, g as zt, o as Lt, n as Tt, a as At, b as Xt, F as Et, y as Yt, A as J, l as Q, E as It, d as Ft, p as Bt, c as V } from "./mermaid.core.Dspbw7Ig.js";
|
|
3
|
+
import { p as Rt } from "./cynefin-VYW2F7L2.c7H5z9nQ.js";
|
|
4
|
+
var G = /* @__PURE__ */ u((o, r) => {
|
|
5
|
+
const e = o <= 1 ? o * 100 : o;
|
|
6
|
+
if (e < 0 || e > 100)
|
|
7
|
+
throw new Error(
|
|
8
|
+
`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`
|
|
9
|
+
);
|
|
10
|
+
return e;
|
|
11
|
+
}, "toPercent"), A = /* @__PURE__ */ u((o, r, e) => ({
|
|
12
|
+
x: G(r, `${e} evolution`),
|
|
13
|
+
y: G(o, `${e} visibility`)
|
|
14
|
+
}), "toCoordinates"), K = /* @__PURE__ */ u((o) => {
|
|
15
|
+
if (o) {
|
|
16
|
+
if (o === "+<>")
|
|
17
|
+
return "bidirectional";
|
|
18
|
+
if (o === "+<")
|
|
19
|
+
return "backward";
|
|
20
|
+
if (o === "+>")
|
|
21
|
+
return "forward";
|
|
22
|
+
}
|
|
23
|
+
}, "getFlowFromPort"), Ot = /* @__PURE__ */ u((o) => {
|
|
24
|
+
if (!o?.startsWith("+"))
|
|
25
|
+
return {};
|
|
26
|
+
const e = /^\+'([^']*)'/.exec(o)?.[1];
|
|
27
|
+
return o.includes("<>") ? { flow: "bidirectional", label: e } : o.includes("<") ? { flow: "backward", label: e } : o.includes(">") ? { flow: "forward", label: e } : { label: e };
|
|
28
|
+
}, "extractFlowFromArrow"), Wt = /* @__PURE__ */ u((o, r) => {
|
|
29
|
+
if (Mt(o, r), o.size && r.setSize(o.size.width, o.size.height), o.evolution) {
|
|
30
|
+
const e = o.evolution.stages.map((a) => a.secondName ? `${a.name.trim()} / ${a.secondName.trim()}` : a.name.trim()), h = o.evolution.stages.filter((a) => a.boundary !== void 0).map((a) => a.boundary);
|
|
31
|
+
r.updateAxes({ stages: e, stageBoundaries: h });
|
|
32
|
+
}
|
|
33
|
+
if (o.anchors.forEach((e) => {
|
|
34
|
+
const h = A(e.visibility, e.evolution, `Anchor "${e.name}"`);
|
|
35
|
+
r.addNode(e.name, e.name, h.x, h.y, "anchor");
|
|
36
|
+
}), o.components.forEach((e) => {
|
|
37
|
+
const h = A(
|
|
38
|
+
e.visibility,
|
|
39
|
+
e.evolution,
|
|
40
|
+
`Component "${e.name}"`
|
|
41
|
+
), a = e.label ? (e.label.negX ? -1 : 1) * e.label.offsetX : void 0, d = e.label ? (e.label.negY ? -1 : 1) * e.label.offsetY : void 0, w = e.decorator?.strategy;
|
|
42
|
+
r.addNode(
|
|
43
|
+
e.name,
|
|
44
|
+
e.name,
|
|
45
|
+
h.x,
|
|
46
|
+
h.y,
|
|
47
|
+
"component",
|
|
48
|
+
a,
|
|
49
|
+
d,
|
|
50
|
+
e.inertia,
|
|
51
|
+
w
|
|
52
|
+
);
|
|
53
|
+
}), o.notes.forEach((e) => {
|
|
54
|
+
const h = A(e.visibility, e.evolution, `Note "${e.text}"`);
|
|
55
|
+
r.addNote(e.text, h.x, h.y);
|
|
56
|
+
}), o.pipelines.forEach((e) => {
|
|
57
|
+
const h = r.getNode(e.parent);
|
|
58
|
+
if (!h || typeof h.y != "number")
|
|
59
|
+
throw new Error(
|
|
60
|
+
`Pipeline "${e.parent}" must reference an existing component with coordinates.`
|
|
61
|
+
);
|
|
62
|
+
const a = h.y;
|
|
63
|
+
r.startPipeline(e.parent), e.components.forEach((d) => {
|
|
64
|
+
const w = `${e.parent}_${d.name}`, C = d.label ? (d.label.negX ? -1 : 1) * d.label.offsetX : void 0, g = d.label ? (d.label.negY ? -1 : 1) * d.label.offsetY : void 0, R = G(d.evolution, `Pipeline component "${d.name}" evolution`);
|
|
65
|
+
r.addNode(
|
|
66
|
+
w,
|
|
67
|
+
d.name,
|
|
68
|
+
R,
|
|
69
|
+
a,
|
|
70
|
+
"pipeline-component",
|
|
71
|
+
C,
|
|
72
|
+
g
|
|
73
|
+
), r.addPipelineComponent(e.parent, w);
|
|
74
|
+
});
|
|
75
|
+
}), o.links.forEach((e) => {
|
|
76
|
+
const h = !!e.arrow && (e.arrow.includes("-.->") || e.arrow.includes(".-."));
|
|
77
|
+
let a = K(e.fromPort) ?? K(e.toPort);
|
|
78
|
+
const { flow: d, label: w } = Ot(e.arrow);
|
|
79
|
+
!a && d && (a = d);
|
|
80
|
+
const C = e.linkLabel, g = w ?? C;
|
|
81
|
+
r.addLink(r.resolveNodeId(e.from), r.resolveNodeId(e.to), h, g, a);
|
|
82
|
+
}), o.evolves.forEach((e) => {
|
|
83
|
+
const h = r.getNode(e.component);
|
|
84
|
+
if (h?.y !== void 0) {
|
|
85
|
+
const a = G(e.target, `Evolve target for "${e.component}"`);
|
|
86
|
+
r.addTrend(e.component, a, h.y);
|
|
87
|
+
}
|
|
88
|
+
}), o.annotations.length > 0) {
|
|
89
|
+
const e = o.annotations[0], h = A(e.x, e.y, "Annotations box");
|
|
90
|
+
r.setAnnotationsBox(h.x, h.y);
|
|
91
|
+
}
|
|
92
|
+
o.annotation.forEach((e) => {
|
|
93
|
+
const h = A(e.x, e.y, `Annotation ${e.number}`);
|
|
94
|
+
r.addAnnotation(e.number, [{ x: h.x, y: h.y }], e.text);
|
|
95
|
+
}), o.accelerators.forEach((e) => {
|
|
96
|
+
const h = A(e.x, e.y, `Accelerator "${e.name}"`);
|
|
97
|
+
r.addAccelerator(e.name, h.x, h.y);
|
|
98
|
+
}), o.deaccelerators.forEach((e) => {
|
|
99
|
+
const h = A(
|
|
100
|
+
e.x,
|
|
101
|
+
e.y,
|
|
102
|
+
`Deaccelerator "${e.name}"`
|
|
103
|
+
);
|
|
104
|
+
r.addDeaccelerator(e.name, h.x, h.y);
|
|
105
|
+
});
|
|
106
|
+
}, "populateDb"), tt = {
|
|
107
|
+
parser: {
|
|
108
|
+
// @ts-expect-error - WardleyDB is not assignable to DiagramDB
|
|
109
|
+
yy: void 0
|
|
110
|
+
},
|
|
111
|
+
parse: /* @__PURE__ */ u(async (o) => {
|
|
112
|
+
const r = await Rt("wardley", o);
|
|
113
|
+
Q.debug(r);
|
|
114
|
+
const e = tt.parser?.yy;
|
|
115
|
+
if (!e || typeof e.addNode != "function")
|
|
116
|
+
throw new Error(
|
|
117
|
+
"parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
|
|
118
|
+
);
|
|
119
|
+
Wt(r, e);
|
|
120
|
+
}, "parse")
|
|
121
|
+
}, E, Dt = (E = class {
|
|
122
|
+
constructor() {
|
|
123
|
+
this.nodes = /* @__PURE__ */ new Map(), this.links = [], this.trends = /* @__PURE__ */ new Map(), this.pipelines = /* @__PURE__ */ new Map(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.axes = {};
|
|
124
|
+
}
|
|
125
|
+
addNode(r) {
|
|
126
|
+
const e = this.nodes.get(r.id) ?? { id: r.id, label: r.label }, h = {
|
|
127
|
+
...e,
|
|
128
|
+
...r,
|
|
129
|
+
className: r.className ?? e.className,
|
|
130
|
+
labelOffsetX: r.labelOffsetX ?? e.labelOffsetX,
|
|
131
|
+
labelOffsetY: r.labelOffsetY ?? e.labelOffsetY
|
|
132
|
+
};
|
|
133
|
+
this.nodes.set(r.id, h);
|
|
134
|
+
}
|
|
135
|
+
addLink(r) {
|
|
136
|
+
this.links.push(r);
|
|
137
|
+
}
|
|
138
|
+
addTrend(r) {
|
|
139
|
+
this.trends.set(r.nodeId, r);
|
|
140
|
+
}
|
|
141
|
+
startPipeline(r) {
|
|
142
|
+
this.pipelines.set(r, { nodeId: r, componentIds: [] });
|
|
143
|
+
const e = this.nodes.get(r);
|
|
144
|
+
e && (e.isPipelineParent = !0);
|
|
145
|
+
}
|
|
146
|
+
addPipelineComponent(r, e) {
|
|
147
|
+
const h = this.pipelines.get(r);
|
|
148
|
+
h && h.componentIds.push(e);
|
|
149
|
+
const a = this.nodes.get(e);
|
|
150
|
+
a && (a.inPipeline = !0);
|
|
151
|
+
}
|
|
152
|
+
addAnnotation(r) {
|
|
153
|
+
this.annotations.push(r);
|
|
154
|
+
}
|
|
155
|
+
addNote(r) {
|
|
156
|
+
this.notes.push(r);
|
|
157
|
+
}
|
|
158
|
+
addAccelerator(r) {
|
|
159
|
+
this.accelerators.push(r);
|
|
160
|
+
}
|
|
161
|
+
addDeaccelerator(r) {
|
|
162
|
+
this.deaccelerators.push(r);
|
|
163
|
+
}
|
|
164
|
+
setAnnotationsBox(r, e) {
|
|
165
|
+
this.annotationsBox = { x: r, y: e };
|
|
166
|
+
}
|
|
167
|
+
setAxes(r) {
|
|
168
|
+
this.axes = {
|
|
169
|
+
...this.axes,
|
|
170
|
+
...r
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
setSize(r, e) {
|
|
174
|
+
this.size = { width: r, height: e };
|
|
175
|
+
}
|
|
176
|
+
getNode(r) {
|
|
177
|
+
return this.nodes.get(r);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Resolve a name to a node ID. Tries exact ID match first,
|
|
181
|
+
* then falls back to finding a node whose label matches the name
|
|
182
|
+
* (handles pipeline components which have synthetic IDs like "Parent_Child").
|
|
183
|
+
*/
|
|
184
|
+
resolveNodeId(r) {
|
|
185
|
+
if (this.nodes.has(r))
|
|
186
|
+
return r;
|
|
187
|
+
for (const [e, h] of this.nodes)
|
|
188
|
+
if (h.label === r)
|
|
189
|
+
return e;
|
|
190
|
+
return r;
|
|
191
|
+
}
|
|
192
|
+
build() {
|
|
193
|
+
const r = [];
|
|
194
|
+
for (const e of this.nodes.values()) {
|
|
195
|
+
if (typeof e.x != "number" || typeof e.y != "number")
|
|
196
|
+
throw new Error(`Node "${e.label}" is missing coordinates`);
|
|
197
|
+
r.push(e);
|
|
198
|
+
}
|
|
199
|
+
return {
|
|
200
|
+
nodes: r,
|
|
201
|
+
links: [...this.links],
|
|
202
|
+
trends: [...this.trends.values()],
|
|
203
|
+
pipelines: [...this.pipelines.values()],
|
|
204
|
+
annotations: [...this.annotations],
|
|
205
|
+
notes: [...this.notes],
|
|
206
|
+
accelerators: [...this.accelerators],
|
|
207
|
+
deaccelerators: [...this.deaccelerators],
|
|
208
|
+
annotationsBox: this.annotationsBox,
|
|
209
|
+
axes: { ...this.axes },
|
|
210
|
+
size: this.size
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
clear() {
|
|
214
|
+
this.nodes.clear(), this.links = [], this.trends.clear(), this.pipelines.clear(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.annotationsBox = void 0, this.axes = {}, this.size = void 0;
|
|
215
|
+
}
|
|
216
|
+
}, u(E, "WardleyBuilder"), E), k = new Dt();
|
|
217
|
+
function et() {
|
|
218
|
+
return V()["wardley-beta"];
|
|
219
|
+
}
|
|
220
|
+
u(et, "getConfig");
|
|
221
|
+
function at(o, r, e, h, a, d, w, C, g) {
|
|
222
|
+
k.addNode({
|
|
223
|
+
id: o,
|
|
224
|
+
label: r,
|
|
225
|
+
x: e,
|
|
226
|
+
y: h,
|
|
227
|
+
className: a,
|
|
228
|
+
labelOffsetX: d,
|
|
229
|
+
labelOffsetY: w,
|
|
230
|
+
inertia: C,
|
|
231
|
+
sourceStrategy: g
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
u(at, "addNode");
|
|
235
|
+
function rt(o, r, e = !1, h, a) {
|
|
236
|
+
k.addLink({
|
|
237
|
+
source: o,
|
|
238
|
+
target: r,
|
|
239
|
+
dashed: e,
|
|
240
|
+
label: h,
|
|
241
|
+
flow: a
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
u(rt, "addLink");
|
|
245
|
+
function ot(o, r, e) {
|
|
246
|
+
k.addTrend({ nodeId: o, targetX: r, targetY: e });
|
|
247
|
+
}
|
|
248
|
+
u(ot, "addTrend");
|
|
249
|
+
function nt(o, r, e) {
|
|
250
|
+
k.addAnnotation({
|
|
251
|
+
number: o,
|
|
252
|
+
coordinates: r,
|
|
253
|
+
text: e
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
u(nt, "addAnnotation");
|
|
257
|
+
function st(o, r, e) {
|
|
258
|
+
k.addNote({
|
|
259
|
+
text: o,
|
|
260
|
+
x: r,
|
|
261
|
+
y: e
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
u(st, "addNote");
|
|
265
|
+
function it(o, r, e) {
|
|
266
|
+
k.addAccelerator({
|
|
267
|
+
name: o,
|
|
268
|
+
x: r,
|
|
269
|
+
y: e
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
u(it, "addAccelerator");
|
|
273
|
+
function dt(o, r, e) {
|
|
274
|
+
k.addDeaccelerator({
|
|
275
|
+
name: o,
|
|
276
|
+
x: r,
|
|
277
|
+
y: e
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
u(dt, "addDeaccelerator");
|
|
281
|
+
function lt(o, r) {
|
|
282
|
+
k.setAnnotationsBox(o, r);
|
|
283
|
+
}
|
|
284
|
+
u(lt, "setAnnotationsBox");
|
|
285
|
+
function ct(o, r) {
|
|
286
|
+
k.setSize(o, r);
|
|
287
|
+
}
|
|
288
|
+
u(ct, "setSize");
|
|
289
|
+
function pt(o) {
|
|
290
|
+
k.startPipeline(o);
|
|
291
|
+
}
|
|
292
|
+
u(pt, "startPipeline");
|
|
293
|
+
function ft(o, r) {
|
|
294
|
+
k.addPipelineComponent(o, r);
|
|
295
|
+
}
|
|
296
|
+
u(ft, "addPipelineComponent");
|
|
297
|
+
function ht(o) {
|
|
298
|
+
k.setAxes(o);
|
|
299
|
+
}
|
|
300
|
+
u(ht, "updateAxes");
|
|
301
|
+
function xt(o) {
|
|
302
|
+
return k.getNode(o);
|
|
303
|
+
}
|
|
304
|
+
u(xt, "getNode");
|
|
305
|
+
function gt(o) {
|
|
306
|
+
return k.resolveNodeId(o);
|
|
307
|
+
}
|
|
308
|
+
u(gt, "resolveNodeId");
|
|
309
|
+
function yt() {
|
|
310
|
+
return k.build();
|
|
311
|
+
}
|
|
312
|
+
u(yt, "getWardleyData");
|
|
313
|
+
function ut() {
|
|
314
|
+
k.clear(), Bt();
|
|
315
|
+
}
|
|
316
|
+
u(ut, "clear");
|
|
317
|
+
var Gt = {
|
|
318
|
+
getConfig: et,
|
|
319
|
+
addNode: at,
|
|
320
|
+
addLink: rt,
|
|
321
|
+
addTrend: ot,
|
|
322
|
+
addAnnotation: nt,
|
|
323
|
+
addNote: st,
|
|
324
|
+
addAccelerator: it,
|
|
325
|
+
addDeaccelerator: dt,
|
|
326
|
+
setAnnotationsBox: lt,
|
|
327
|
+
setSize: ct,
|
|
328
|
+
startPipeline: pt,
|
|
329
|
+
addPipelineComponent: ft,
|
|
330
|
+
updateAxes: ht,
|
|
331
|
+
getNode: xt,
|
|
332
|
+
resolveNodeId: gt,
|
|
333
|
+
getWardleyData: yt,
|
|
334
|
+
clear: ut,
|
|
335
|
+
setAccTitle: Xt,
|
|
336
|
+
getAccTitle: At,
|
|
337
|
+
setDiagramTitle: Tt,
|
|
338
|
+
getDiagramTitle: Lt,
|
|
339
|
+
getAccDescription: zt,
|
|
340
|
+
setAccDescription: Nt
|
|
341
|
+
}, qt = ["Genesis", "Custom Built", "Product", "Commodity"], Ht = /* @__PURE__ */ u(() => {
|
|
342
|
+
const { themeVariables: o } = V();
|
|
343
|
+
return {
|
|
344
|
+
backgroundColor: o.wardley?.backgroundColor ?? o.background ?? "#fff",
|
|
345
|
+
axisColor: o.wardley?.axisColor ?? "#000",
|
|
346
|
+
axisTextColor: o.wardley?.axisTextColor ?? o.primaryTextColor ?? "#222",
|
|
347
|
+
gridColor: o.wardley?.gridColor ?? "rgba(100, 100, 100, 0.2)",
|
|
348
|
+
componentFill: o.wardley?.componentFill ?? "#fff",
|
|
349
|
+
componentStroke: o.wardley?.componentStroke ?? "#000",
|
|
350
|
+
componentLabelColor: o.wardley?.componentLabelColor ?? o.primaryTextColor ?? "#222",
|
|
351
|
+
linkStroke: o.wardley?.linkStroke ?? "#000",
|
|
352
|
+
evolutionStroke: o.wardley?.evolutionStroke ?? "#dc3545",
|
|
353
|
+
annotationStroke: o.wardley?.annotationStroke ?? "#000",
|
|
354
|
+
annotationTextColor: o.wardley?.annotationTextColor ?? o.primaryTextColor ?? "#222",
|
|
355
|
+
annotationFill: o.wardley?.annotationFill ?? o.background ?? "#fff"
|
|
356
|
+
};
|
|
357
|
+
}, "getTheme"), jt = /* @__PURE__ */ u(() => {
|
|
358
|
+
const o = V()["wardley-beta"];
|
|
359
|
+
return {
|
|
360
|
+
width: o?.width ?? 900,
|
|
361
|
+
height: o?.height ?? 600,
|
|
362
|
+
padding: o?.padding ?? 48,
|
|
363
|
+
nodeRadius: o?.nodeRadius ?? 6,
|
|
364
|
+
nodeLabelOffset: o?.nodeLabelOffset ?? 8,
|
|
365
|
+
axisFontSize: o?.axisFontSize ?? 12,
|
|
366
|
+
labelFontSize: o?.labelFontSize ?? 10,
|
|
367
|
+
showGrid: o?.showGrid ?? !1,
|
|
368
|
+
useMaxWidth: o?.useMaxWidth ?? !0
|
|
369
|
+
};
|
|
370
|
+
}, "getConfigValues"), Vt = /* @__PURE__ */ u((o, r, e, h) => {
|
|
371
|
+
Q.debug(`Rendering Wardley map
|
|
372
|
+
` + o);
|
|
373
|
+
const a = jt(), d = Ht(), w = a.nodeRadius * 1.6, C = h.db, g = C.getWardleyData(), R = C.getDiagramTitle(), S = g.size?.width ?? a.width, b = g.size?.height ?? a.height, Y = It(r);
|
|
374
|
+
Y.selectAll("*").remove(), Ft(Y, b, S, a.useMaxWidth), Y.attr("viewBox", `0 0 ${S} ${b}`);
|
|
375
|
+
const v = Y.append("g").attr("class", "wardley-map"), q = Y.append("defs");
|
|
376
|
+
q.append("marker").attr("id", `arrow-${r}`).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("fill", d.evolutionStroke).attr("stroke", "none"), q.append("marker").attr("id", `link-arrow-end-${r}`).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("fill", d.linkStroke).attr("stroke", "none"), q.append("marker").attr("id", `link-arrow-start-${r}`).attr("viewBox", "0 0 10 10").attr("refX", 1).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z").attr("fill", d.linkStroke).attr("stroke", "none"), v.append("rect").attr("class", "wardley-background").attr("width", S).attr("height", b).attr("fill", d.backgroundColor);
|
|
377
|
+
const I = S - a.padding * 2, F = b - a.padding * 2;
|
|
378
|
+
R && v.append("text").attr("class", "wardley-title").attr("x", S / 2).attr("y", a.padding / 2).attr("fill", d.axisTextColor).attr("font-size", a.axisFontSize * 1.05).attr("font-weight", "bold").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(R);
|
|
379
|
+
const z = /* @__PURE__ */ u((t) => a.padding + t / 100 * I, "projectX"), L = /* @__PURE__ */ u((t) => b - a.padding - t / 100 * F, "projectY"), O = v.append("g").attr("class", "wardley-axes");
|
|
380
|
+
O.append("line").attr("x1", a.padding).attr("x2", S - a.padding).attr("y1", b - a.padding).attr("y2", b - a.padding).attr("stroke", d.axisColor).attr("stroke-width", 1), O.append("line").attr("x1", a.padding).attr("x2", a.padding).attr("y1", a.padding).attr("y2", b - a.padding).attr("stroke", d.axisColor).attr("stroke-width", 1);
|
|
381
|
+
const wt = g.axes.xLabel ?? "Evolution", mt = g.axes.yLabel ?? "Visibility";
|
|
382
|
+
O.append("text").attr("class", "wardley-axis-label wardley-axis-label-x").attr("x", a.padding + I / 2).attr("y", b - a.padding / 4).attr("fill", d.axisTextColor).attr("font-size", a.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").text(wt), O.append("text").attr("class", "wardley-axis-label wardley-axis-label-y").attr("x", a.padding / 3).attr("y", a.padding + F / 2).attr("fill", d.axisTextColor).attr("font-size", a.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").attr(
|
|
383
|
+
"transform",
|
|
384
|
+
`rotate(-90 ${a.padding / 3} ${a.padding + F / 2})`
|
|
385
|
+
).text(mt);
|
|
386
|
+
const B = g.axes.stages && g.axes.stages.length > 0 ? g.axes.stages : qt;
|
|
387
|
+
if (B.length > 0) {
|
|
388
|
+
const t = v.append("g").attr("class", "wardley-stages"), s = g.axes.stageBoundaries, n = [];
|
|
389
|
+
if (s && s.length === B.length) {
|
|
390
|
+
let i = 0;
|
|
391
|
+
s.forEach((p) => {
|
|
392
|
+
n.push({ start: i, end: p }), i = p;
|
|
393
|
+
});
|
|
394
|
+
} else {
|
|
395
|
+
const i = 1 / B.length;
|
|
396
|
+
B.forEach((p, l) => {
|
|
397
|
+
n.push({
|
|
398
|
+
start: l * i,
|
|
399
|
+
end: (l + 1) * i
|
|
400
|
+
});
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
B.forEach((i, p) => {
|
|
404
|
+
const l = n[p], f = a.padding + l.start * I, x = a.padding + l.end * I, y = (f + x) / 2;
|
|
405
|
+
p > 0 && t.append("line").attr("x1", f).attr("x2", f).attr("y1", a.padding).attr("y2", b - a.padding).attr("stroke", "#000").attr("stroke-width", 1).attr("stroke-dasharray", "5 5").attr("opacity", 0.8), t.append("text").attr("class", "wardley-stage-label").attr("x", y).attr("y", b - a.padding / 1.5).attr("fill", d.axisTextColor).attr("font-size", a.axisFontSize - 2).attr("text-anchor", "middle").text(i);
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
if (a.showGrid) {
|
|
409
|
+
const t = v.append("g").attr("class", "wardley-grid");
|
|
410
|
+
for (let s = 1; s < 4; s++) {
|
|
411
|
+
const n = s / 4, i = a.padding + I * n;
|
|
412
|
+
t.append("line").attr("x1", i).attr("x2", i).attr("y1", a.padding).attr("y2", b - a.padding).attr("stroke", d.gridColor).attr("stroke-dasharray", "2 6"), t.append("line").attr("x1", a.padding).attr("x2", S - a.padding).attr("y1", b - a.padding - F * n).attr("y2", b - a.padding - F * n).attr("stroke", d.gridColor).attr("stroke-dasharray", "2 6");
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
const c = /* @__PURE__ */ new Map();
|
|
416
|
+
if (g.nodes.forEach((t) => {
|
|
417
|
+
c.set(t.id, {
|
|
418
|
+
x: z(t.x),
|
|
419
|
+
y: L(t.y),
|
|
420
|
+
node: t
|
|
421
|
+
});
|
|
422
|
+
}), g.pipelines.length > 0) {
|
|
423
|
+
const t = v.append("g").attr("class", "wardley-pipelines"), s = v.append("g").attr("class", "wardley-pipeline-links");
|
|
424
|
+
g.pipelines.forEach((n) => {
|
|
425
|
+
if (n.componentIds.length === 0)
|
|
426
|
+
return;
|
|
427
|
+
const i = n.componentIds.map((x) => ({ id: x, pos: c.get(x), node: g.nodes.find((y) => y.id === x) })).filter((x) => x.pos && x.node).sort((x, y) => x.node.x - y.node.x);
|
|
428
|
+
for (let x = 0; x < i.length - 1; x++) {
|
|
429
|
+
const y = i[x], m = i[x + 1];
|
|
430
|
+
s.append("line").attr("class", "wardley-pipeline-evolution-link").attr("x1", y.pos.x).attr("y1", y.pos.y).attr("x2", m.pos.x).attr("y2", m.pos.y).attr("stroke", d.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4");
|
|
431
|
+
}
|
|
432
|
+
let p = 1 / 0, l = -1 / 0, f = 0;
|
|
433
|
+
if (n.componentIds.forEach((x) => {
|
|
434
|
+
const y = c.get(x);
|
|
435
|
+
y && (p = Math.min(p, y.x), l = Math.max(l, y.x), f = y.y);
|
|
436
|
+
}), p !== 1 / 0 && l !== -1 / 0) {
|
|
437
|
+
const y = a.nodeRadius * 4, m = f - y / 2, P = c.get(n.nodeId);
|
|
438
|
+
if (P) {
|
|
439
|
+
const N = (p + l) / 2;
|
|
440
|
+
P.x = N, P.y = m - w / 6;
|
|
441
|
+
}
|
|
442
|
+
t.append("rect").attr("class", "wardley-pipeline-box").attr("x", p - 15).attr("y", m).attr("width", l - p + 30).attr("height", y).attr("fill", "none").attr("stroke", d.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
const _ = v.append("g").attr("class", "wardley-links"), Z = /* @__PURE__ */ new Map();
|
|
447
|
+
g.pipelines.forEach((t) => {
|
|
448
|
+
Z.set(t.nodeId, new Set(t.componentIds));
|
|
449
|
+
});
|
|
450
|
+
const U = g.links.filter((t) => !(!c.has(t.source) || !c.has(t.target) || Z.get(t.target)?.has(t.source)));
|
|
451
|
+
_.selectAll("line").data(U).enter().append("line").attr("class", (t) => `wardley-link${t.dashed ? " wardley-link--dashed" : ""}`).attr("x1", (t) => {
|
|
452
|
+
const s = c.get(t.source), n = c.get(t.target), p = g.nodes.find((y) => y.id === t.source).isPipelineParent ? w / Math.sqrt(2) : a.nodeRadius, l = n.x - s.x, f = n.y - s.y, x = Math.sqrt(l * l + f * f);
|
|
453
|
+
return s.x + l / x * p;
|
|
454
|
+
}).attr("y1", (t) => {
|
|
455
|
+
const s = c.get(t.source), n = c.get(t.target), p = g.nodes.find((y) => y.id === t.source).isPipelineParent ? w / Math.sqrt(2) : a.nodeRadius, l = n.x - s.x, f = n.y - s.y, x = Math.sqrt(l * l + f * f);
|
|
456
|
+
return s.y + f / x * p;
|
|
457
|
+
}).attr("x2", (t) => {
|
|
458
|
+
const s = c.get(t.source), n = c.get(t.target), p = g.nodes.find((y) => y.id === t.target).isPipelineParent ? w / Math.sqrt(2) : a.nodeRadius, l = s.x - n.x, f = s.y - n.y, x = Math.sqrt(l * l + f * f);
|
|
459
|
+
return n.x + l / x * p;
|
|
460
|
+
}).attr("y2", (t) => {
|
|
461
|
+
const s = c.get(t.source), n = c.get(t.target), p = g.nodes.find((y) => y.id === t.target).isPipelineParent ? w / Math.sqrt(2) : a.nodeRadius, l = s.x - n.x, f = s.y - n.y, x = Math.sqrt(l * l + f * f);
|
|
462
|
+
return n.y + f / x * p;
|
|
463
|
+
}).attr("stroke", d.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", (t) => t.dashed ? "6 6" : null).attr("marker-end", (t) => t.flow === "forward" || t.flow === "bidirectional" ? `url(#link-arrow-end-${r})` : null).attr("marker-start", (t) => t.flow === "backward" || t.flow === "bidirectional" ? `url(#link-arrow-start-${r})` : null), _.selectAll("text").data(U.filter((t) => t.label)).enter().append("text").attr("class", "wardley-link-label").attr("x", (t) => {
|
|
464
|
+
const s = c.get(t.source), n = c.get(t.target), i = (s.x + n.x) / 2, p = n.y - s.y, l = n.x - s.x, f = Math.sqrt(l * l + p * p), x = 8, y = p / f;
|
|
465
|
+
return i + y * x;
|
|
466
|
+
}).attr("y", (t) => {
|
|
467
|
+
const s = c.get(t.source), n = c.get(t.target), i = (s.y + n.y) / 2, p = n.x - s.x, l = n.y - s.y, f = Math.sqrt(p * p + l * l), x = 8, y = -p / f;
|
|
468
|
+
return i + y * x;
|
|
469
|
+
}).attr("fill", d.axisTextColor).attr("font-size", a.labelFontSize).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", (t) => {
|
|
470
|
+
const s = c.get(t.source), n = c.get(t.target), i = (s.x + n.x) / 2, p = (s.y + n.y) / 2, l = n.x - s.x, f = n.y - s.y, x = Math.sqrt(l * l + f * f), y = 8, m = f / x, P = -l / x, N = i + m * y, W = p + P * y;
|
|
471
|
+
let X = Math.atan2(f, l) * 180 / Math.PI;
|
|
472
|
+
return (X > 90 || X < -90) && (X += 180), `rotate(${X} ${N} ${W})`;
|
|
473
|
+
}).text((t) => t.label);
|
|
474
|
+
const kt = v.append("g").attr("class", "wardley-trends"), bt = g.trends.map((t) => {
|
|
475
|
+
const s = c.get(t.nodeId);
|
|
476
|
+
if (!s)
|
|
477
|
+
return null;
|
|
478
|
+
const n = z(t.targetX), i = L(t.targetY), p = n - s.x, l = i - s.y, f = Math.sqrt(p * p + l * l), x = a.nodeRadius + 2, y = f > x ? n - p / f * x : n, m = f > x ? i - l / f * x : i;
|
|
479
|
+
return {
|
|
480
|
+
origin: s,
|
|
481
|
+
targetX: n,
|
|
482
|
+
targetY: i,
|
|
483
|
+
adjustedX2: y,
|
|
484
|
+
adjustedY2: m
|
|
485
|
+
};
|
|
486
|
+
}).filter((t) => t !== null);
|
|
487
|
+
kt.selectAll("line").data(bt).enter().append("line").attr("class", "wardley-trend").attr("x1", (t) => t.origin.x).attr("y1", (t) => t.origin.y).attr("x2", (t) => t.adjustedX2).attr("y2", (t) => t.adjustedY2).attr("stroke", d.evolutionStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4").attr("marker-end", `url(#arrow-${r})`);
|
|
488
|
+
const M = v.append("g").attr("class", "wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr(
|
|
489
|
+
"class",
|
|
490
|
+
(t) => ["wardley-node", t.className ? `wardley-node--${t.className}` : ""].filter(Boolean).join(" ")
|
|
491
|
+
);
|
|
492
|
+
M.filter((t) => t.sourceStrategy === "outsource").append("circle").attr("class", "wardley-outsource-overlay").attr("cx", (t) => c.get(t.id).x).attr("cy", (t) => c.get(t.id).y).attr("r", a.nodeRadius * 2).attr("fill", "#666").attr("stroke", d.componentStroke).attr("stroke-width", 1), M.filter((t) => t.sourceStrategy === "buy").append("circle").attr("class", "wardley-buy-overlay").attr("cx", (t) => c.get(t.id).x).attr("cy", (t) => c.get(t.id).y).attr("r", a.nodeRadius * 2).attr("fill", "#ccc").attr("stroke", d.componentStroke).attr("stroke-width", 1), M.filter((t) => t.sourceStrategy === "build").append("circle").attr("class", "wardley-build-overlay").attr("cx", (t) => c.get(t.id).x).attr("cy", (t) => c.get(t.id).y).attr("r", a.nodeRadius * 2).attr("fill", "#eee").attr("stroke", "#000").attr("stroke-width", 1);
|
|
493
|
+
const T = M.filter((t) => t.sourceStrategy === "market");
|
|
494
|
+
T.append("circle").attr("class", "wardley-market-overlay").attr("cx", (t) => c.get(t.id).x).attr("cy", (t) => c.get(t.id).y).attr("r", a.nodeRadius * 2).attr("fill", "white").attr("stroke", d.componentStroke).attr("stroke-width", 1), M.filter(
|
|
495
|
+
(t) => !t.isPipelineParent && t.sourceStrategy !== "market" && t.className !== "anchor"
|
|
496
|
+
).append("circle").attr("cx", (t) => c.get(t.id).x).attr("cy", (t) => c.get(t.id).y).attr("r", a.nodeRadius).attr("fill", d.componentFill).attr("stroke", d.componentStroke).attr("stroke-width", 1);
|
|
497
|
+
const H = a.nodeRadius * 0.7, $ = a.nodeRadius * 1.2;
|
|
498
|
+
if (T.append("line").attr("class", "wardley-market-line").attr("x1", (t) => c.get(t.id).x).attr("y1", (t) => c.get(t.id).y - $).attr("x2", (t) => c.get(t.id).x - $ * Math.cos(Math.PI / 6)).attr("y2", (t) => c.get(t.id).y + $ * Math.sin(Math.PI / 6)).attr("stroke", d.componentStroke).attr("stroke-width", 1), T.append("line").attr("class", "wardley-market-line").attr("x1", (t) => c.get(t.id).x - $ * Math.cos(Math.PI / 6)).attr("y1", (t) => c.get(t.id).y + $ * Math.sin(Math.PI / 6)).attr("x2", (t) => c.get(t.id).x + $ * Math.cos(Math.PI / 6)).attr("y2", (t) => c.get(t.id).y + $ * Math.sin(Math.PI / 6)).attr("stroke", d.componentStroke).attr("stroke-width", 1), T.append("line").attr("class", "wardley-market-line").attr("x1", (t) => c.get(t.id).x + $ * Math.cos(Math.PI / 6)).attr("y1", (t) => c.get(t.id).y + $ * Math.sin(Math.PI / 6)).attr("x2", (t) => c.get(t.id).x).attr("y2", (t) => c.get(t.id).y - $).attr("stroke", d.componentStroke).attr("stroke-width", 1), T.append("circle").attr("class", "wardley-market-dot").attr("cx", (t) => c.get(t.id).x).attr("cy", (t) => c.get(t.id).y - $).attr("r", H).attr("fill", "white").attr("stroke", d.componentStroke).attr("stroke-width", 2), T.append("circle").attr("class", "wardley-market-dot").attr("cx", (t) => c.get(t.id).x - $ * Math.cos(Math.PI / 6)).attr("cy", (t) => c.get(t.id).y + $ * Math.sin(Math.PI / 6)).attr("r", H).attr("fill", "white").attr("stroke", d.componentStroke).attr("stroke-width", 2), T.append("circle").attr("class", "wardley-market-dot").attr("cx", (t) => c.get(t.id).x + $ * Math.cos(Math.PI / 6)).attr("cy", (t) => c.get(t.id).y + $ * Math.sin(Math.PI / 6)).attr("r", H).attr("fill", "white").attr("stroke", d.componentStroke).attr("stroke-width", 2), M.filter((t) => t.isPipelineParent === !0).append("rect").attr("x", (t) => c.get(t.id).x - w / 2).attr("y", (t) => c.get(t.id).y - w / 2).attr("width", w).attr("height", w).attr("fill", d.componentFill).attr("stroke", d.componentStroke).attr("stroke-width", 1), M.filter((t) => t.inertia === !0).append("line").attr("class", "wardley-inertia").attr("x1", (t) => {
|
|
499
|
+
const s = c.get(t.id);
|
|
500
|
+
let n = t.isPipelineParent ? w / 2 + 15 : a.nodeRadius + 15;
|
|
501
|
+
return t.sourceStrategy && (n += a.nodeRadius + 10), s.x + n;
|
|
502
|
+
}).attr("y1", (t) => {
|
|
503
|
+
const s = c.get(t.id), n = t.isPipelineParent ? w : a.nodeRadius * 2;
|
|
504
|
+
return s.y - n / 2;
|
|
505
|
+
}).attr("x2", (t) => {
|
|
506
|
+
const s = c.get(t.id);
|
|
507
|
+
let n = t.isPipelineParent ? w / 2 + 15 : a.nodeRadius + 15;
|
|
508
|
+
return t.sourceStrategy && (n += a.nodeRadius + 10), s.x + n;
|
|
509
|
+
}).attr("y2", (t) => {
|
|
510
|
+
const s = c.get(t.id), n = t.isPipelineParent ? w : a.nodeRadius * 2;
|
|
511
|
+
return s.y + n / 2;
|
|
512
|
+
}).attr("stroke", d.componentStroke).attr("stroke-width", 6), M.append("text").attr("x", (t) => {
|
|
513
|
+
const s = c.get(t.id);
|
|
514
|
+
if (t.className === "anchor")
|
|
515
|
+
return t.labelOffsetX !== void 0 ? s.x + t.labelOffsetX : s.x;
|
|
516
|
+
let n = a.nodeLabelOffset;
|
|
517
|
+
t.sourceStrategy && t.labelOffsetX === void 0 && (n += 10);
|
|
518
|
+
const i = t.labelOffsetX ?? n;
|
|
519
|
+
return s.x + i;
|
|
520
|
+
}).attr("y", (t) => {
|
|
521
|
+
const s = c.get(t.id);
|
|
522
|
+
if (t.className === "anchor")
|
|
523
|
+
return t.labelOffsetY !== void 0 ? s.y + t.labelOffsetY : s.y - 3;
|
|
524
|
+
let n = -a.nodeLabelOffset;
|
|
525
|
+
t.sourceStrategy && t.labelOffsetY === void 0 && (n -= 10);
|
|
526
|
+
const i = t.labelOffsetY ?? n;
|
|
527
|
+
return s.y + i;
|
|
528
|
+
}).attr("class", "wardley-node-label").attr("fill", (t) => t.className === "evolved" ? d.evolutionStroke : t.className === "anchor" ? "#000" : d.componentLabelColor).attr("font-size", a.labelFontSize).attr("font-weight", (t) => t.className === "anchor" ? "bold" : "normal").attr("text-anchor", (t) => t.className === "anchor" ? "middle" : "start").attr("dominant-baseline", (t) => t.className === "anchor" ? "middle" : "auto").text((t) => t.label), g.annotations.length > 0) {
|
|
529
|
+
const t = v.append("g").attr("class", "wardley-annotations");
|
|
530
|
+
if (g.annotations.forEach((s) => {
|
|
531
|
+
const n = s.coordinates.map((i) => ({
|
|
532
|
+
x: z(i.x),
|
|
533
|
+
y: L(i.y)
|
|
534
|
+
}));
|
|
535
|
+
if (n.length > 1)
|
|
536
|
+
for (let i = 0; i < n.length - 1; i++)
|
|
537
|
+
t.append("line").attr("class", "wardley-annotation-line").attr("x1", n[i].x).attr("y1", n[i].y).attr("x2", n[i + 1].x).attr("y2", n[i + 1].y).attr("stroke", d.axisColor).attr("stroke-width", 1.5).attr("stroke-dasharray", "4 4");
|
|
538
|
+
n.forEach((i) => {
|
|
539
|
+
const p = t.append("g").attr("class", "wardley-annotation");
|
|
540
|
+
p.append("circle").attr("cx", i.x).attr("cy", i.y).attr("r", 10).attr("fill", "white").attr("stroke", d.axisColor).attr("stroke-width", 1.5), p.append("text").attr("x", i.x).attr("y", i.y).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", 10).attr("fill", d.axisTextColor).attr("font-weight", "bold").text(s.number);
|
|
541
|
+
});
|
|
542
|
+
}), g.annotationsBox) {
|
|
543
|
+
let s = z(g.annotationsBox.x), n = L(g.annotationsBox.y);
|
|
544
|
+
const i = 10, p = 16, l = 11, f = t.append("g").attr("class", "wardley-annotations-box"), x = [...g.annotations].filter((m) => m.text).sort((m, P) => m.number - P.number), y = [];
|
|
545
|
+
if (x.forEach((m, P) => {
|
|
546
|
+
const N = f.append("text").attr("x", s + i).attr("y", n + i + (P + 1) * p).attr("font-size", l).attr("fill", d.axisTextColor).attr("text-anchor", "start").attr("dominant-baseline", "middle").text(`${m.number}. ${m.text}`);
|
|
547
|
+
y.push(N);
|
|
548
|
+
}), y.length > 0) {
|
|
549
|
+
let m = 0, P = 0;
|
|
550
|
+
y.forEach((j) => {
|
|
551
|
+
const D = j.node(), Ct = D.getComputedTextLength();
|
|
552
|
+
m = Math.max(m, Ct);
|
|
553
|
+
const St = D.getBBox();
|
|
554
|
+
P = Math.max(P, St.height);
|
|
555
|
+
});
|
|
556
|
+
const N = m + i * 2 + 105, W = x.length * p + i * 2 + P / 2, X = a.padding, $t = S - a.padding - N, vt = a.padding, Pt = b - a.padding - W;
|
|
557
|
+
s = Math.max(X, Math.min(s, $t)), n = Math.max(vt, Math.min(n, Pt)), y.forEach((j, D) => {
|
|
558
|
+
j.attr("x", s + i).attr("y", n + i + (D + 1) * p);
|
|
559
|
+
}), f.insert("rect", "text").attr("x", s).attr("y", n).attr("width", N).attr("height", W).attr("fill", "white").attr("stroke", d.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
if (g.notes.length > 0) {
|
|
564
|
+
const t = v.append("g").attr("class", "wardley-notes");
|
|
565
|
+
g.notes.forEach((s) => {
|
|
566
|
+
const n = z(s.x), i = L(s.y);
|
|
567
|
+
t.append("text").attr("x", n).attr("y", i).attr("text-anchor", "start").attr("font-size", 11).attr("fill", d.axisTextColor).attr("font-weight", "bold").text(s.text);
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
if (g.accelerators.length > 0) {
|
|
571
|
+
const t = v.append("g").attr("class", "wardley-accelerators");
|
|
572
|
+
g.accelerators.forEach((s) => {
|
|
573
|
+
const n = z(s.x), i = L(s.y), p = 60, l = 30, f = 20, x = `
|
|
574
|
+
M ${n} ${i - l / 2}
|
|
575
|
+
L ${n + p - f} ${i - l / 2}
|
|
576
|
+
L ${n + p - f} ${i - l / 2 - 8}
|
|
577
|
+
L ${n + p} ${i}
|
|
578
|
+
L ${n + p - f} ${i + l / 2 + 8}
|
|
579
|
+
L ${n + p - f} ${i + l / 2}
|
|
580
|
+
L ${n} ${i + l / 2}
|
|
581
|
+
Z
|
|
582
|
+
`;
|
|
583
|
+
t.append("path").attr("d", x).attr("fill", "white").attr("stroke", d.componentStroke).attr("stroke-width", 1), t.append("text").attr("x", n + p / 2).attr("y", i + l / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", d.axisTextColor).attr("font-weight", "bold").text(s.name);
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
if (g.deaccelerators.length > 0) {
|
|
587
|
+
const t = v.append("g").attr("class", "wardley-deaccelerators");
|
|
588
|
+
g.deaccelerators.forEach((s) => {
|
|
589
|
+
const n = z(s.x), i = L(s.y), p = 60, l = 30, f = 20, x = `
|
|
590
|
+
M ${n + p} ${i - l / 2}
|
|
591
|
+
L ${n + f} ${i - l / 2}
|
|
592
|
+
L ${n + f} ${i - l / 2 - 8}
|
|
593
|
+
L ${n} ${i}
|
|
594
|
+
L ${n + f} ${i + l / 2 + 8}
|
|
595
|
+
L ${n + f} ${i + l / 2}
|
|
596
|
+
L ${n + p} ${i + l / 2}
|
|
597
|
+
Z
|
|
598
|
+
`;
|
|
599
|
+
t.append("path").attr("d", x).attr("fill", "white").attr("stroke", d.componentStroke).attr("stroke-width", 1), t.append("text").attr("x", n + p / 2).attr("y", i + l / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", d.axisTextColor).attr("font-weight", "bold").text(s.name);
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
}, "draw"), _t = {
|
|
603
|
+
draw: Vt
|
|
604
|
+
}, Zt = /* @__PURE__ */ u(({
|
|
605
|
+
wardley: o
|
|
606
|
+
} = {}) => {
|
|
607
|
+
const r = Et(), e = Yt(), h = J(r, e.themeVariables), a = J(h.wardley, o);
|
|
608
|
+
return `
|
|
609
|
+
.wardley-background {
|
|
610
|
+
fill: ${a.backgroundColor};
|
|
611
|
+
}
|
|
612
|
+
.wardley-axes line, .wardley-axes path {
|
|
613
|
+
stroke: ${a.axisColor};
|
|
614
|
+
}
|
|
615
|
+
.wardley-axis-label {
|
|
616
|
+
fill: ${a.axisTextColor};
|
|
617
|
+
}
|
|
618
|
+
.wardley-stage-label {
|
|
619
|
+
fill: ${a.axisTextColor};
|
|
620
|
+
}
|
|
621
|
+
.wardley-grid line {
|
|
622
|
+
stroke: ${a.gridColor};
|
|
623
|
+
}
|
|
624
|
+
.wardley-node circle {
|
|
625
|
+
fill: ${a.componentFill};
|
|
626
|
+
stroke: ${a.componentStroke};
|
|
627
|
+
}
|
|
628
|
+
.wardley-node-label {
|
|
629
|
+
fill: ${a.componentLabelColor};
|
|
630
|
+
}
|
|
631
|
+
.wardley-link {
|
|
632
|
+
stroke: ${a.linkStroke};
|
|
633
|
+
}
|
|
634
|
+
.wardley-link--dashed {
|
|
635
|
+
stroke-dasharray: 4 4;
|
|
636
|
+
}
|
|
637
|
+
.wardley-link-label {
|
|
638
|
+
fill: ${a.axisTextColor};
|
|
639
|
+
}
|
|
640
|
+
.wardley-trend line {
|
|
641
|
+
stroke: ${a.evolutionStroke};
|
|
642
|
+
}
|
|
643
|
+
.wardley-annotation-line {
|
|
644
|
+
stroke: ${a.annotationStroke};
|
|
645
|
+
}
|
|
646
|
+
.wardley-annotation circle {
|
|
647
|
+
fill: ${a.annotationFill};
|
|
648
|
+
stroke: ${a.annotationStroke};
|
|
649
|
+
}
|
|
650
|
+
.wardley-annotation text {
|
|
651
|
+
fill: ${a.annotationTextColor};
|
|
652
|
+
}
|
|
653
|
+
.wardley-annotations-box rect {
|
|
654
|
+
fill: ${a.annotationFill};
|
|
655
|
+
stroke: ${a.annotationStroke};
|
|
656
|
+
}
|
|
657
|
+
.wardley-annotations-box text {
|
|
658
|
+
fill: ${a.annotationTextColor};
|
|
659
|
+
}
|
|
660
|
+
.wardley-pipeline-box {
|
|
661
|
+
stroke: ${a.componentStroke};
|
|
662
|
+
}
|
|
663
|
+
.wardley-notes text {
|
|
664
|
+
fill: ${a.axisTextColor};
|
|
665
|
+
}
|
|
666
|
+
`;
|
|
667
|
+
}, "styles"), te = {
|
|
668
|
+
parser: tt,
|
|
669
|
+
db: Gt,
|
|
670
|
+
renderer: _t,
|
|
671
|
+
styles: Zt
|
|
672
|
+
};
|
|
673
|
+
export {
|
|
674
|
+
te as diagram
|
|
675
|
+
};
|