@formicoidea/labre-framework-wardley 3.3.0 → 3.5.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.
@@ -43,121 +43,121 @@ export const WARDLEY_TOOLBAR_WORDINGS = [
43
43
  VALUE_CHAIN_AXIS_TOGGLE,
44
44
  VISIBILITY_LABELS_TOGGLE,
45
45
  ];
46
- const ResizeIcon = html `<svg
47
- width="24"
48
- height="24"
49
- viewBox="0 0 24 24"
50
- fill="none"
51
- stroke="currentColor"
52
- stroke-width="1.6"
53
- stroke-linecap="round"
54
- stroke-linejoin="round"
55
- >
56
- <path d="M9 5H5v4M15 19h4v-4" />
57
- <path d="M5 5l6 6M19 19l-6-6" />
46
+ const ResizeIcon = html `<svg
47
+ width="24"
48
+ height="24"
49
+ viewBox="0 0 24 24"
50
+ fill="none"
51
+ stroke="currentColor"
52
+ stroke-width="1.6"
53
+ stroke-linecap="round"
54
+ stroke-linejoin="round"
55
+ >
56
+ <path d="M9 5H5v4M15 19h4v-4" />
57
+ <path d="M5 5l6 6M19 19l-6-6" />
58
58
  </svg>`;
59
59
  /** Gradient swatch — show/hide the variant gradient. */
60
- const GradientIcon = html `<svg
61
- width="24"
62
- height="24"
63
- viewBox="0 0 24 24"
64
- fill="none"
65
- xmlns="http://www.w3.org/2000/svg"
66
- >
67
- <defs>
68
- <linearGradient id="wardleyToolbarGrad" x1="0" y1="0" x2="1" y2="0">
69
- <stop offset="0" stop-color="currentColor" stop-opacity="0.85" />
70
- <stop offset="1" stop-color="currentColor" stop-opacity="0.1" />
71
- </linearGradient>
72
- </defs>
73
- <rect
74
- x="4"
75
- y="5"
76
- width="16"
77
- height="14"
78
- rx="2"
79
- fill="url(#wardleyToolbarGrad)"
80
- stroke="currentColor"
81
- stroke-width="1.4"
82
- />
60
+ const GradientIcon = html `<svg
61
+ width="24"
62
+ height="24"
63
+ viewBox="0 0 24 24"
64
+ fill="none"
65
+ xmlns="http://www.w3.org/2000/svg"
66
+ >
67
+ <defs>
68
+ <linearGradient id="wardleyToolbarGrad" x1="0" y1="0" x2="1" y2="0">
69
+ <stop offset="0" stop-color="currentColor" stop-opacity="0.85" />
70
+ <stop offset="1" stop-color="currentColor" stop-opacity="0.1" />
71
+ </linearGradient>
72
+ </defs>
73
+ <rect
74
+ x="4"
75
+ y="5"
76
+ width="16"
77
+ height="14"
78
+ rx="2"
79
+ fill="url(#wardleyToolbarGrad)"
80
+ stroke="currentColor"
81
+ stroke-width="1.4"
82
+ />
83
83
  </svg>`;
84
84
  /** Horizontal axis with a right-pointing arrow (Evolution / X). */
85
- const XAxisIcon = html `<svg
86
- width="24"
87
- height="24"
88
- viewBox="0 0 24 24"
89
- fill="none"
90
- stroke="currentColor"
91
- stroke-width="1.6"
92
- stroke-linecap="round"
93
- stroke-linejoin="round"
94
- >
95
- <path d="M3 17h15" />
96
- <path d="M15 14l3 3-3 3" />
85
+ const XAxisIcon = html `<svg
86
+ width="24"
87
+ height="24"
88
+ viewBox="0 0 24 24"
89
+ fill="none"
90
+ stroke="currentColor"
91
+ stroke-width="1.6"
92
+ stroke-linecap="round"
93
+ stroke-linejoin="round"
94
+ >
95
+ <path d="M3 17h15" />
96
+ <path d="M15 14l3 3-3 3" />
97
97
  </svg>`;
98
98
  /** Vertical axis with an up-pointing arrow (Value Chain / Y). */
99
- const YAxisIcon = html `<svg
100
- width="24"
101
- height="24"
102
- viewBox="0 0 24 24"
103
- fill="none"
104
- stroke="currentColor"
105
- stroke-width="1.6"
106
- stroke-linecap="round"
107
- stroke-linejoin="round"
108
- >
109
- <path d="M7 21V6" />
110
- <path d="M4 9l3-3 3 3" />
99
+ const YAxisIcon = html `<svg
100
+ width="24"
101
+ height="24"
102
+ viewBox="0 0 24 24"
103
+ fill="none"
104
+ stroke="currentColor"
105
+ stroke-width="1.6"
106
+ stroke-linecap="round"
107
+ stroke-linejoin="round"
108
+ >
109
+ <path d="M7 21V6" />
110
+ <path d="M4 9l3-3 3 3" />
111
111
  </svg>`;
112
112
  /** Dashed vertical column dividers. */
113
- const ColumnsIcon = html `<svg
114
- width="24"
115
- height="24"
116
- viewBox="0 0 24 24"
117
- fill="none"
118
- stroke="currentColor"
119
- stroke-width="1.6"
120
- stroke-linecap="round"
121
- stroke-dasharray="3 3"
122
- >
123
- <path d="M9 4v16M15 4v16" />
113
+ const ColumnsIcon = html `<svg
114
+ width="24"
115
+ height="24"
116
+ viewBox="0 0 24 24"
117
+ fill="none"
118
+ stroke="currentColor"
119
+ stroke-width="1.6"
120
+ stroke-linecap="round"
121
+ stroke-dasharray="3 3"
122
+ >
123
+ <path d="M9 4v16M15 4v16" />
124
124
  </svg>`;
125
125
  /** Column labels (short bars under the columns). */
126
- const ColumnLabelsIcon = html `<svg
127
- width="24"
128
- height="24"
129
- viewBox="0 0 24 24"
130
- fill="currentColor"
131
- stroke="none"
132
- >
133
- <rect x="3" y="15" width="4.5" height="3" rx="1" />
134
- <rect x="9.75" y="15" width="4.5" height="3" rx="1" />
135
- <rect x="16.5" y="15" width="4.5" height="3" rx="1" />
126
+ const ColumnLabelsIcon = html `<svg
127
+ width="24"
128
+ height="24"
129
+ viewBox="0 0 24 24"
130
+ fill="currentColor"
131
+ stroke="none"
132
+ >
133
+ <rect x="3" y="15" width="4.5" height="3" rx="1" />
134
+ <rect x="9.75" y="15" width="4.5" height="3" rx="1" />
135
+ <rect x="16.5" y="15" width="4.5" height="3" rx="1" />
136
136
  </svg>`;
137
137
  /** Corner labels (Uncharted / Industrialized, top corners). */
138
- const CornerLabelsIcon = html `<svg
139
- width="24"
140
- height="24"
141
- viewBox="0 0 24 24"
142
- fill="currentColor"
143
- stroke="none"
144
- >
145
- <rect x="3" y="5" width="6" height="3" rx="1" />
146
- <rect x="15" y="5" width="6" height="3" rx="1" />
138
+ const CornerLabelsIcon = html `<svg
139
+ width="24"
140
+ height="24"
141
+ viewBox="0 0 24 24"
142
+ fill="currentColor"
143
+ stroke="none"
144
+ >
145
+ <rect x="3" y="5" width="6" height="3" rx="1" />
146
+ <rect x="15" y="5" width="6" height="3" rx="1" />
147
147
  </svg>`;
148
148
  /** Visibility labels (Visible / Invisible) — an eye. */
149
- const VisibilityIcon = html `<svg
150
- width="24"
151
- height="24"
152
- viewBox="0 0 24 24"
153
- fill="none"
154
- stroke="currentColor"
155
- stroke-width="1.6"
156
- stroke-linecap="round"
157
- stroke-linejoin="round"
158
- >
159
- <path d="M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z" />
160
- <circle cx="12" cy="12" r="2.4" />
149
+ const VisibilityIcon = html `<svg
150
+ width="24"
151
+ height="24"
152
+ viewBox="0 0 24 24"
153
+ fill="none"
154
+ stroke="currentColor"
155
+ stroke-width="1.6"
156
+ stroke-linecap="round"
157
+ stroke-linejoin="round"
158
+ >
159
+ <path d="M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z" />
160
+ <circle cx="12" cy="12" r="2.4" />
161
161
  </svg>`;
162
162
  /**
163
163
  * Build a toolbar toggle that flips a boolean flag on every selected Wardley
@@ -1,103 +1,103 @@
1
1
  import { svg } from 'lit';
2
2
  import { NODE_FILL, NODE_STROKE } from '../node/consts.js';
3
3
  /** Colored Wardley glyph (mockup proposal B) for the main toolbar button. */
4
- export const wardleyToolbarIcon = svg `<svg width="100%" height="100%" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
5
- <defs>
6
- <linearGradient id="wardley-evo" x1="0" y1="0" x2="0" y2="1">
7
- <stop offset="0" stop-color="#ffffff" stop-opacity="0"/>
8
- <stop offset="1" stop-color="#fdf3e3"/>
9
- </linearGradient>
10
- </defs>
11
- <!-- footprint = 50x50 centered in the viewBox 56 (3px margin) -->
12
- <svg x="3" y="3" width="48" height="48" viewBox="6 6 28 28">
13
- <rect x="6" y="6" width="28" height="28" rx="1" fill="url(#wardley-evo)" />
14
- <line x1="17" y1="12" x2="17" y2="30" stroke="#c3cad4" stroke-width="0.8" stroke-dasharray="1.6 1.6"/>
15
- <line x1="25" y1="12" x2="25" y2="30" stroke="#c3cad4" stroke-width="0.8" stroke-dasharray="1.6 1.6"/>
16
- <path d="M10 12 V30 H28" fill="none" stroke="#95948f" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
17
- <path d="M10 6.5 L7 12 L13 12 Z" fill="#95948f"/>
18
- <path d="M33.5 30 L28 27 L28 33 Z" fill="#95948f"/>
19
- <path d="M14 14 L20.5 19 L27 16.5 M20.5 19 L24 26" stroke="#aab4c0" stroke-width="1.1" fill="none" stroke-linecap="round"/>
20
- <circle cx="14" cy="14" r="2.6" fill="#1f6feb"/>
21
- <circle cx="20.5" cy="19" r="2.6" fill="#16a394"/>
22
- <circle cx="27" cy="16.5" r="2.6" fill="#e2a32b"/>
23
- <circle cx="24" cy="26" r="2.6" fill="#d6455d"/>
24
- </svg>
4
+ export const wardleyToolbarIcon = svg `<svg width="100%" height="100%" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <defs>
6
+ <linearGradient id="wardley-evo" x1="0" y1="0" x2="0" y2="1">
7
+ <stop offset="0" stop-color="#ffffff" stop-opacity="0"/>
8
+ <stop offset="1" stop-color="#fdf3e3"/>
9
+ </linearGradient>
10
+ </defs>
11
+ <!-- footprint = 50x50 centered in the viewBox 56 (3px margin) -->
12
+ <svg x="3" y="3" width="48" height="48" viewBox="6 6 28 28">
13
+ <rect x="6" y="6" width="28" height="28" rx="1" fill="url(#wardley-evo)" />
14
+ <line x1="17" y1="12" x2="17" y2="30" stroke="#c3cad4" stroke-width="0.8" stroke-dasharray="1.6 1.6"/>
15
+ <line x1="25" y1="12" x2="25" y2="30" stroke="#c3cad4" stroke-width="0.8" stroke-dasharray="1.6 1.6"/>
16
+ <path d="M10 12 V30 H28" fill="none" stroke="#95948f" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
17
+ <path d="M10 6.5 L7 12 L13 12 Z" fill="#95948f"/>
18
+ <path d="M33.5 30 L28 27 L28 33 Z" fill="#95948f"/>
19
+ <path d="M14 14 L20.5 19 L27 16.5 M20.5 19 L24 26" stroke="#aab4c0" stroke-width="1.1" fill="none" stroke-linecap="round"/>
20
+ <circle cx="14" cy="14" r="2.6" fill="#1f6feb"/>
21
+ <circle cx="20.5" cy="19" r="2.6" fill="#16a394"/>
22
+ <circle cx="27" cy="16.5" r="2.6" fill="#e2a32b"/>
23
+ <circle cx="24" cy="26" r="2.6" fill="#d6455d"/>
24
+ </svg>
25
25
  </svg>`;
26
26
  /** Monochrome glyph for the "create background" menu item (uses currentColor). */
27
- export const wardleyBackgroundIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
28
- <path d="M6 4 V19 H21" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
29
- <path d="M6 2.6 L3.8 6 H8.2 Z" fill="currentColor"/>
30
- <path d="M22.4 19 L19 16.8 V21.2 Z" fill="currentColor"/>
31
- <line x1="11" y1="6" x2="11" y2="19" stroke="currentColor" stroke-width="0.9" stroke-dasharray="1.8 1.8" opacity="0.6"/>
32
- <line x1="16" y1="6" x2="16" y2="19" stroke="currentColor" stroke-width="0.9" stroke-dasharray="1.8 1.8" opacity="0.6"/>
27
+ export const wardleyBackgroundIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
28
+ <path d="M6 4 V19 H21" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
29
+ <path d="M6 2.6 L3.8 6 H8.2 Z" fill="currentColor"/>
30
+ <path d="M22.4 19 L19 16.8 V21.2 Z" fill="currentColor"/>
31
+ <line x1="11" y1="6" x2="11" y2="19" stroke="currentColor" stroke-width="0.9" stroke-dasharray="1.8 1.8" opacity="0.6"/>
32
+ <line x1="16" y1="6" x2="16" y2="19" stroke="currentColor" stroke-width="0.9" stroke-dasharray="1.8 1.8" opacity="0.6"/>
33
33
  </svg>`;
34
34
  /** Wardley red — matches the renderer presets (consts WARDLEY_RED). */
35
35
  const RED = '#d6455d';
36
36
  /** Gradient green — matches gradient.ts GRADIENT_GREEN. */
37
37
  const GREEN = '#1f9e4d';
38
38
  /** Component node (validated COMP-C2): single circle. */
39
- export const wardleyComponentIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
40
- <circle cx="12" cy="12" r="6.3" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.5"/>
39
+ export const wardleyComponentIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
40
+ <circle cx="12" cy="12" r="6.3" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.5"/>
41
41
  </svg>`;
42
42
  /** Anchor (validated ANCH-B): person glyph inscribed in a circle. */
43
- export const wardleyAnchorIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
44
- <circle cx="12" cy="12" r="6" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.6"/>
45
- <circle cx="12" cy="9.4" r="1.8" fill="none" stroke="currentColor" stroke-width="1.3"/>
46
- <path d="M7.4 15.9 C 8.2 12.1, 15.8 12.1, 16.6 15.9" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
43
+ export const wardleyAnchorIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
44
+ <circle cx="12" cy="12" r="6" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.6"/>
45
+ <circle cx="12" cy="9.4" r="1.8" fill="none" stroke="currentColor" stroke-width="1.3"/>
46
+ <path d="M7.4 15.9 C 8.2 12.1, 15.8 12.1, 16.6 15.9" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
47
47
  </svg>`;
48
48
  /** Dependency link (validated LINK-A3): two outline nodes joined by a line. */
49
- export const wardleyLinkIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
50
- <line x1="5.5" y1="16" x2="18.5" y2="8" stroke="currentColor" stroke-width="1.8"/>
51
- <circle cx="5.5" cy="16" r="2.2" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.5"/>
52
- <circle cx="18.5" cy="8" r="2.2" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.5"/>
49
+ export const wardleyLinkIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
50
+ <line x1="5.5" y1="16" x2="18.5" y2="8" stroke="currentColor" stroke-width="1.8"/>
51
+ <circle cx="5.5" cy="16" r="2.2" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.5"/>
52
+ <circle cx="18.5" cy="8" r="2.2" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.5"/>
53
53
  </svg>`;
54
54
  /** Evolution arrow (validated ARR-B): red dashed arrow. */
55
- export const wardleyArrowIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
56
- <line x1="4.5" y1="12" x2="16" y2="12" stroke="${RED}" stroke-width="1.7" stroke-dasharray="2.4 2.2" stroke-linecap="round"/>
57
- <path d="M14.5 7.8 L20 12 L14.5 16.2 Z" fill="${RED}"/>
55
+ export const wardleyArrowIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
56
+ <line x1="4.5" y1="12" x2="16" y2="12" stroke="${RED}" stroke-width="1.7" stroke-dasharray="2.4 2.2" stroke-linecap="round"/>
57
+ <path d="M14.5 7.8 L20 12 L14.5 16.2 Z" fill="${RED}"/>
58
58
  </svg>`;
59
59
  /** Inertia (validated INER): black bar barring the red dashed arrow. */
60
- export const wardleyInertiaIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
61
- <line x1="3.5" y1="12" x2="16.5" y2="12" stroke="${RED}" stroke-width="1.7" stroke-dasharray="2.4 2.2" stroke-linecap="round"/>
62
- <path d="M15 7.8 L20.5 12 L15 16.2 Z" fill="${RED}"/>
63
- <rect x="9.6" y="5.4" width="2.9" height="13.2" rx="0.6" fill="currentColor"/>
60
+ export const wardleyInertiaIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
61
+ <line x1="3.5" y1="12" x2="16.5" y2="12" stroke="${RED}" stroke-width="1.7" stroke-dasharray="2.4 2.2" stroke-linecap="round"/>
62
+ <path d="M15 7.8 L20.5 12 L15 16.2 Z" fill="${RED}"/>
63
+ <rect x="9.6" y="5.4" width="2.9" height="13.2" rx="0.6" fill="currentColor"/>
64
64
  </svg>`;
65
65
  /** Pipeline (validated PIPE-D): wide thin rect + square handle astride the top edge, thin borders. */
66
- export const wardleyPipelineIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
67
- <rect x="3.5" y="11" width="17" height="7" rx="1" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.2"/>
68
- <rect x="10" y="9" width="4" height="4" rx="0.6" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.2"/>
66
+ export const wardleyPipelineIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
67
+ <rect x="3.5" y="11" width="17" height="7" rx="1" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.2"/>
68
+ <rect x="10" y="9" width="4" height="4" rx="0.6" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.2"/>
69
69
  </svg>`;
70
70
  /** Market (validated MKT-B): thin outer circle + 3 thick-bordered nodes wired in a triangle. */
71
- export const wardleyMarketIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
72
- <circle cx="12" cy="12" r="9.6" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.2"/>
73
- <path d="M12 6.6 L7.3 14.7 H16.7 Z" fill="none" stroke="currentColor" stroke-width="1.1"/>
74
- <circle cx="12" cy="6.6" r="2.3" fill="${NODE_FILL}" stroke="currentColor" stroke-width="2.1"/>
75
- <circle cx="7.3" cy="14.7" r="2.3" fill="${NODE_FILL}" stroke="currentColor" stroke-width="2.1"/>
76
- <circle cx="16.7" cy="14.7" r="2.3" fill="${NODE_FILL}" stroke="currentColor" stroke-width="2.1"/>
71
+ export const wardleyMarketIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
72
+ <circle cx="12" cy="12" r="9.6" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.2"/>
73
+ <path d="M12 6.6 L7.3 14.7 H16.7 Z" fill="none" stroke="currentColor" stroke-width="1.1"/>
74
+ <circle cx="12" cy="6.6" r="2.3" fill="${NODE_FILL}" stroke="currentColor" stroke-width="2.1"/>
75
+ <circle cx="7.3" cy="14.7" r="2.3" fill="${NODE_FILL}" stroke="currentColor" stroke-width="2.1"/>
76
+ <circle cx="16.7" cy="14.7" r="2.3" fill="${NODE_FILL}" stroke="currentColor" stroke-width="2.1"/>
77
77
  </svg>`;
78
78
  /** Ecosystem (validated ECO-A): double border at the rim + hatching confined to the inner donut + hollow center. */
79
- export const wardleyEcosystemIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
80
- <defs><clipPath id="ecoHatch"><path d="M12 3.8 a8.2 8.2 0 1 0 0.001 0 Z M12 7.8 a4.2 4.2 0 1 1 -0.001 0 Z" clip-rule="evenodd"/></clipPath></defs>
81
- <circle cx="12" cy="12" r="9.8" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.2"/>
82
- <g clip-path="url(#ecoHatch)" stroke="currentColor" stroke-width="0.6">
83
- <line x1="2" y1="-8" x2="22" y2="12"/>
84
- <line x1="2" y1="-6" x2="22" y2="14"/>
85
- <line x1="2" y1="-4" x2="22" y2="16"/>
86
- <line x1="2" y1="-2" x2="22" y2="18"/>
87
- <line x1="2" y1="0" x2="22" y2="20"/>
88
- <line x1="2" y1="2" x2="22" y2="22"/>
89
- <line x1="2" y1="4" x2="22" y2="24"/>
90
- <line x1="2" y1="6" x2="22" y2="26"/>
91
- <line x1="2" y1="8" x2="22" y2="28"/>
92
- <line x1="2" y1="10" x2="22" y2="30"/>
93
- </g>
94
- <circle cx="12" cy="12" r="8.5" fill="none" stroke="currentColor" stroke-width="0.8"/>
95
- <circle cx="12" cy="12" r="4.2" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1"/>
79
+ export const wardleyEcosystemIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
80
+ <defs><clipPath id="ecoHatch"><path d="M12 3.8 a8.2 8.2 0 1 0 0.001 0 Z M12 7.8 a4.2 4.2 0 1 1 -0.001 0 Z" clip-rule="evenodd"/></clipPath></defs>
81
+ <circle cx="12" cy="12" r="9.8" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.2"/>
82
+ <g clip-path="url(#ecoHatch)" stroke="currentColor" stroke-width="0.6">
83
+ <line x1="2" y1="-8" x2="22" y2="12"/>
84
+ <line x1="2" y1="-6" x2="22" y2="14"/>
85
+ <line x1="2" y1="-4" x2="22" y2="16"/>
86
+ <line x1="2" y1="-2" x2="22" y2="18"/>
87
+ <line x1="2" y1="0" x2="22" y2="20"/>
88
+ <line x1="2" y1="2" x2="22" y2="22"/>
89
+ <line x1="2" y1="4" x2="22" y2="24"/>
90
+ <line x1="2" y1="6" x2="22" y2="26"/>
91
+ <line x1="2" y1="8" x2="22" y2="28"/>
92
+ <line x1="2" y1="10" x2="22" y2="30"/>
93
+ </g>
94
+ <circle cx="12" cy="12" r="8.5" fill="none" stroke="currentColor" stroke-width="0.8"/>
95
+ <circle cx="12" cy="12" r="4.2" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1"/>
96
96
  </svg>`;
97
97
  /** Component + method (validated METH-A): component inscribed in a colored outer circle (default grey). */
98
- export const wardleyMethodIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
99
- <circle cx="12" cy="12" r="9.6" fill="#d9d9d9" stroke="${NODE_STROKE}" stroke-width="1.2"/>
100
- <circle cx="12" cy="12" r="4.6" fill="${NODE_FILL}" stroke="${NODE_STROKE}" stroke-width="1.2"/>
98
+ export const wardleyMethodIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
99
+ <circle cx="12" cy="12" r="9.6" fill="#d9d9d9" stroke="${NODE_STROKE}" stroke-width="1.2"/>
100
+ <circle cx="12" cy="12" r="4.6" fill="${NODE_FILL}" stroke="${NODE_STROKE}" stroke-width="1.2"/>
101
101
  </svg>`;
102
102
  /**
103
103
  * Porter's forces: a lettered circle pressed on from the four cardinal
@@ -108,20 +108,20 @@ export const wardleyMethodIcon = svg `<svg width="24" height="24" viewBox="0 0 2
108
108
  * evolution arrow is dashed, which is the one thing that tells the two apart at
109
109
  * 24 pixels. The circle keeps `currentColor` like every other artefact glyph.
110
110
  */
111
- export const wardleyPorterIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
112
- <circle cx="12" cy="12" r="5.4" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.3"/>
113
- <g stroke="${RED}" stroke-width="1.4" stroke-linecap="round">
114
- <line x1="12" y1="6" x2="12" y2="3.4"/>
115
- <line x1="18" y1="12" x2="20.6" y2="12"/>
116
- <line x1="12" y1="18" x2="12" y2="20.6"/>
117
- <line x1="6" y1="12" x2="3.4" y2="12"/>
118
- </g>
119
- <g fill="${RED}">
120
- <path d="M12 1.4 L14 4.4 H10 Z"/>
121
- <path d="M22.6 12 L19.6 14 V10 Z"/>
122
- <path d="M12 22.6 L10 19.6 H14 Z"/>
123
- <path d="M1.4 12 L4.4 10 V14 Z"/>
124
- </g>
111
+ export const wardleyPorterIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
112
+ <circle cx="12" cy="12" r="5.4" fill="${NODE_FILL}" stroke="currentColor" stroke-width="1.3"/>
113
+ <g stroke="${RED}" stroke-width="1.4" stroke-linecap="round">
114
+ <line x1="12" y1="6" x2="12" y2="3.4"/>
115
+ <line x1="18" y1="12" x2="20.6" y2="12"/>
116
+ <line x1="12" y1="18" x2="12" y2="20.6"/>
117
+ <line x1="6" y1="12" x2="3.4" y2="12"/>
118
+ </g>
119
+ <g fill="${RED}">
120
+ <path d="M12 1.4 L14 4.4 H10 Z"/>
121
+ <path d="M22.6 12 L19.6 14 V10 Z"/>
122
+ <path d="M12 22.6 L10 19.6 H14 Z"/>
123
+ <path d="M1.4 12 L4.4 10 V14 Z"/>
124
+ </g>
125
125
  </svg>`;
126
126
  /**
127
127
  * Accelerator / decelerator: the same fat arrow the canvas draws, at 24 px.
@@ -133,12 +133,12 @@ export const wardleyPorterIcon = svg `<svg width="24" height="24" viewBox="0 0 2
133
133
  * `ACCELERATOR_VERTICES` scaled onto the 24-unit box (a 22 × 18 arrow centred
134
134
  * on it), so the button and the shape it draws are the same drawing.
135
135
  */
136
- export const wardleyAcceleratorIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
137
- <path d="M1 8.0 H13.1 V3 L23 12 L13.1 21 V16 H1 Z" fill="#f0f0f0" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
136
+ export const wardleyAcceleratorIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
137
+ <path d="M1 8.0 H13.1 V3 L23 12 L13.1 21 V16 H1 Z" fill="#f0f0f0" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
138
138
  </svg>`;
139
139
  /** The mirror of {@link wardleyAcceleratorIcon}: the same arrow, pointing left. */
140
- export const wardleyDeceleratorIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
141
- <path d="M23 8.0 H10.9 V3 L1 12 L10.9 21 V16 H23 Z" fill="#f0f0f0" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
140
+ export const wardleyDeceleratorIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
141
+ <path d="M23 8.0 H10.9 V3 L1 12 L10.9 21 V16 H23 Z" fill="#f0f0f0" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
142
142
  </svg>`;
143
143
  /**
144
144
  * Area (rectangle) and area (polygon): the zone, translucent, at 24 px.
@@ -150,28 +150,28 @@ export const wardleyDeceleratorIcon = svg `<svg width="24" height="24" viewBox="
150
150
  * the author changes from the toolbar. The pentagon is the editor's own default
151
151
  * polygon, so the button is the shape the click produces.
152
152
  */
153
- export const wardleyAreaRectIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
154
- <rect x="2.6" y="5" width="18.8" height="14" rx="1" fill="#f0f0f0" fill-opacity="0.8" stroke="currentColor" stroke-width="1.4"/>
153
+ export const wardleyAreaRectIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
154
+ <rect x="2.6" y="5" width="18.8" height="14" rx="1" fill="#f0f0f0" fill-opacity="0.8" stroke="currentColor" stroke-width="1.4"/>
155
155
  </svg>`;
156
156
  /** The same zone with corners you move: the editor's own default pentagon. */
157
- export const wardleyAreaPolygonIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
158
- <path d="M12 2.8 L21.4 9.6 L17.8 20.8 H6.2 L2.6 9.6 Z" fill="#f0f0f0" fill-opacity="0.8" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/>
157
+ export const wardleyAreaPolygonIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
158
+ <path d="M12 2.8 L21.4 9.6 L17.8 20.8 H6.2 L2.6 9.6 Z" fill="#f0f0f0" fill-opacity="0.8" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/>
159
159
  </svg>`;
160
160
  /** Legend: a bordered box with glyph + line rows. */
161
- export const wardleyLegendIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
162
- <rect x="3" y="4" width="18" height="16" rx="2" fill="none" stroke="currentColor" stroke-width="1.3"/>
163
- <circle cx="6.6" cy="8" r="1.4" fill="currentColor"/>
164
- <line x1="9.6" y1="8" x2="18" y2="8" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
165
- <circle cx="6.6" cy="12" r="1.4" fill="currentColor"/>
166
- <line x1="9.6" y1="12" x2="18" y2="12" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
167
- <circle cx="6.6" cy="16" r="1.4" fill="currentColor"/>
168
- <line x1="9.6" y1="16" x2="15" y2="16" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
161
+ export const wardleyLegendIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
162
+ <rect x="3" y="4" width="18" height="16" rx="2" fill="none" stroke="currentColor" stroke-width="1.3"/>
163
+ <circle cx="6.6" cy="8" r="1.4" fill="currentColor"/>
164
+ <line x1="9.6" y1="8" x2="18" y2="8" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
165
+ <circle cx="6.6" cy="12" r="1.4" fill="currentColor"/>
166
+ <line x1="9.6" y1="12" x2="18" y2="12" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
167
+ <circle cx="6.6" cy="16" r="1.4" fill="currentColor"/>
168
+ <line x1="9.6" y1="16" x2="15" y2="16" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
169
169
  </svg>`;
170
170
  /** Opportunity gradient background: axes + green differential hump + red operational bump. */
171
- export const wardleyOpportunityIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
172
- <path d="M4 20V4M4 20h16" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
173
- <path d="M5 12 C6 7, 8.5 7, 9.5 11 C11 17, 14 19, 18 20" stroke="${GREEN}" stroke-width="1.7" fill="none" stroke-linecap="round"/>
174
- <path d="M14.5 19.5 C15.5 16.5, 17 16.5, 18 19" stroke="${RED}" stroke-width="1.7" fill="none" stroke-linecap="round"/>
171
+ export const wardleyOpportunityIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
172
+ <path d="M4 20V4M4 20h16" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
173
+ <path d="M5 12 C6 7, 8.5 7, 9.5 11 C11 17, 14 19, 18 20" stroke="${GREEN}" stroke-width="1.7" fill="none" stroke-linecap="round"/>
174
+ <path d="M14.5 19.5 C15.5 16.5, 17 16.5, 18 19" stroke="${RED}" stroke-width="1.7" fill="none" stroke-linecap="round"/>
175
175
  </svg>`;
176
176
  /**
177
177
  * Import an SVG sketch — a framed picture with an arrow coming IN.
@@ -180,28 +180,28 @@ export const wardleyOpportunityIcon = svg `<svg width="24" height="24" viewBox="
180
180
  * parser and make one promise, and a reader who has met one should recognise
181
181
  * the other without reading its label.
182
182
  */
183
- export const wardleyImportSvgIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
184
- <rect x="3" y="5" width="14" height="11" rx="1.5" stroke="currentColor" stroke-width="1.5"/>
185
- <path d="M3.5 13 7 9.5l3 3 2-2 3.5 3.5" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
186
- <path d="M19 14.5v6M16.5 17l2.5-2.5 2.5 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
183
+ export const wardleyImportSvgIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
184
+ <rect x="3" y="5" width="14" height="11" rx="1.5" stroke="currentColor" stroke-width="1.5"/>
185
+ <path d="M3.5 13 7 9.5l3 3 2-2 3.5 3.5" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
186
+ <path d="M19 14.5v6M16.5 17l2.5-2.5 2.5 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
187
187
  </svg>`;
188
188
  /** Benefit/Investment gradient background: axes + zero line + green J-curve. */
189
- export const wardleyBenefitIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
190
- <path d="M4 20V4M4 20h16" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
191
- <line x1="4" y1="14" x2="20" y2="14" stroke="currentColor" stroke-width="0.9" opacity="0.45"/>
192
- <path d="M5 17 C6 18.5, 7 18.5, 8 15 C9.5 9, 12 5.5, 13.5 8 C16 12, 18 14, 20 14.5" stroke="${GREEN}" stroke-width="1.7" fill="none" stroke-linecap="round"/>
189
+ export const wardleyBenefitIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
190
+ <path d="M4 20V4M4 20h16" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
191
+ <line x1="4" y1="14" x2="20" y2="14" stroke="currentColor" stroke-width="0.9" opacity="0.45"/>
192
+ <path d="M5 17 C6 18.5, 7 18.5, 8 15 C9.5 9, 12 5.5, 13.5 8 C16 12, 18 14, 20 14.5" stroke="${GREEN}" stroke-width="1.7" fill="none" stroke-linecap="round"/>
193
193
  </svg>`;
194
194
  /** Evolution-gradient background (Wardley's S-curve presentation): grey at both edges fading to white center. */
195
- export const wardleyEvolutionGradientIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
196
- <defs>
197
- <linearGradient id="wardleyGreyU" x1="0" y1="0" x2="1" y2="0">
198
- <stop offset="0" stop-color="#9aa0a6"/>
199
- <stop offset="0.35" stop-color="#ffffff"/>
200
- <stop offset="0.65" stop-color="#ffffff"/>
201
- <stop offset="1" stop-color="#9aa0a6"/>
202
- </linearGradient>
203
- </defs>
204
- <rect x="4" y="4.5" width="16" height="15" rx="2" fill="url(#wardleyGreyU)" stroke="currentColor" stroke-width="1.2"/>
195
+ export const wardleyEvolutionGradientIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
196
+ <defs>
197
+ <linearGradient id="wardleyGreyU" x1="0" y1="0" x2="1" y2="0">
198
+ <stop offset="0" stop-color="#9aa0a6"/>
199
+ <stop offset="0.35" stop-color="#ffffff"/>
200
+ <stop offset="0.65" stop-color="#ffffff"/>
201
+ <stop offset="1" stop-color="#9aa0a6"/>
202
+ </linearGradient>
203
+ </defs>
204
+ <rect x="4" y="4.5" width="16" height="15" rx="2" fill="url(#wardleyGreyU)" stroke="currentColor" stroke-width="1.2"/>
205
205
  </svg>`;
206
206
  /**
207
207
  * Export the map as an OWM document — a page with the map's own axes drawn on
@@ -212,16 +212,16 @@ export const wardleyEvolutionGradientIcon = svg `<svg width="24" height="24" vie
212
212
  * the next without reading its label. What differs is what is drawn ON the page
213
213
  * — the value-chain corner, which is what makes it a map rather than a process.
214
214
  */
215
- export const wardleyExportOwmIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
216
- <path d="M13.5 3.5H7a1.5 1.5 0 0 0-1.5 1.5v14A1.5 1.5 0 0 0 7 20.5h3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
217
- <path d="M13.5 3.5 18.5 8.5V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
218
- <path d="M8.5 7v6.5H13" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" opacity="0.6"/>
219
- <path d="M16 20.5v-6M13.5 18l2.5 2.5 2.5-2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
215
+ export const wardleyExportOwmIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
216
+ <path d="M13.5 3.5H7a1.5 1.5 0 0 0-1.5 1.5v14A1.5 1.5 0 0 0 7 20.5h3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
217
+ <path d="M13.5 3.5 18.5 8.5V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
218
+ <path d="M8.5 7v6.5H13" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" opacity="0.6"/>
219
+ <path d="M16 20.5v-6M13.5 18l2.5 2.5 2.5-2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
220
220
  </svg>`;
221
221
  /** Import an OWM document — the same page and the same arrow, mirrored back IN. */
222
- export const wardleyImportOwmIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
223
- <path d="M13.5 3.5H7a1.5 1.5 0 0 0-1.5 1.5v14A1.5 1.5 0 0 0 7 20.5h3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
224
- <path d="M13.5 3.5 18.5 8.5V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
225
- <path d="M8.5 7v6.5H13" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" opacity="0.6"/>
226
- <path d="M16 14.5v6M13.5 17l2.5-2.5 2.5 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
222
+ export const wardleyImportOwmIcon = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
223
+ <path d="M13.5 3.5H7a1.5 1.5 0 0 0-1.5 1.5v14A1.5 1.5 0 0 0 7 20.5h3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
224
+ <path d="M13.5 3.5 18.5 8.5V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
225
+ <path d="M8.5 7v6.5H13" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" opacity="0.6"/>
226
+ <path d="M16 14.5v6M13.5 17l2.5-2.5 2.5 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
227
227
  </svg>`;
@@ -4,8 +4,8 @@ export const wardleySeniorTool = SeniorToolExtension('wardley', ({ block }) => {
4
4
  return {
5
5
  name: 'Wardley map',
6
6
  labelKey: 'com.labre.framework.wardley',
7
- content: html `<edgeless-wardley-senior-button
8
- .edgeless=${block}
7
+ content: html `<edgeless-wardley-senior-button
8
+ .edgeless=${block}
9
9
  ></edgeless-wardley-senior-button>`,
10
10
  };
11
11
  });