@brunosouzas/design-system 0.14.0 → 0.15.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/README.md
CHANGED
|
@@ -226,7 +226,7 @@ const badge = lineBadge({ x: 250, y: 40, text: "SH", fill: "#7B3FE4", surface: "
|
|
|
226
226
|
|
|
227
227
|
### Body diagrams
|
|
228
228
|
|
|
229
|
-
Ten pieces draw what the blog's body diagrams need beyond the map pieces: `diagramBox` (a box or pill with a fill and centred lines), `decisionNode` (diamond), `storeNode` (cylinder), `queueNode` (box with two rails), `exchangeNode` (hexagon), `taggedContainer` (a frame with its name on a tab), `lifeline` (dashed, or sparse dots once nothing calls it), `phaseBand` (a pill across a sequence in its state's colour), `altFrame` (alt/else frame with a tag and condition per part) and `edgeLabel` (words next to an arrow, optionally on a backdrop). They take `surface` and, the stickers, `inkScale`, like the map pieces, and paint what the caller lays out.
|
|
229
|
+
Ten pieces draw what the blog's body diagrams need beyond the map pieces: `diagramBox` (a box or pill with a fill and centred lines), `decisionNode` (diamond), `storeNode` (cylinder), `queueNode` (box with two rails), `exchangeNode` (hexagon), `taggedContainer` (a frame with its name on a tab), `lifeline` (dashed, or sparse dots once nothing calls it), `phaseBand` (a pill across a sequence in its state's colour), `altFrame` (alt/else frame with a tag and condition per part) and `edgeLabel` (words next to an arrow, optionally on a backdrop). They take `surface` and, the stickers, `inkScale`, like the map pieces, and paint what the caller lays out. The words of `storeNode` and `queueNode` are optional, so a store or a queue can be drawn empty: the same body with no text, and `subtitle` or `textSize` without `text` is an error.
|
|
230
230
|
|
|
231
231
|
- The shapes take one to three centred lines (`text`), an optional `subtitle` and `textSize`. Without `fill` the face is the surface's panel; with a fill, every word is ink.
|
|
232
232
|
- Backticks mark code: `` "adopts a `correlationId`" `` draws `correlationId` in the monospace stack, as a `tspan`. An odd number of backticks is drawn as is. The cover `pill` follows the same rule (`` "`main`" ``).
|
|
@@ -418,7 +418,7 @@ const github = toSvg(el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "
|
|
|
418
418
|
|
|
419
419
|
### EIP icons
|
|
420
420
|
|
|
421
|
-
`src/pieces/eip-icons.ts` holds the 26 Enterprise Integration Patterns icons as data. They are redrawn from the icons by Gregor Hohpe and Bobby Woolf ([enterpriseintegrationpatterns.com](https://www.enterpriseintegrationpatterns.com/)), licensed [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/); each icon keeps that credit in its description.
|
|
421
|
+
`src/pieces/eip-icons.ts` holds the 26 Enterprise Integration Patterns icons as data. They are redrawn from the icons by Gregor Hohpe and Bobby Woolf ([enterpriseintegrationpatterns.com](https://www.enterpriseintegrationpatterns.com/)), licensed [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/); each icon keeps that credit in its description. Like every other piece, they draw no hard offset shadow (ADR 0009): the 46 ink copies the published notation drew under its faces were removed in change `flat-eip-icons-and-empty-queue`, so `eipIcon`, `nameTag` and any cover or scene that draws an icon look flat from the next release. The tests in `test/pieces/eip-icons.test.ts` and "Every cover piece is flat" in `test/pieces/node.test.ts` apply the rule in `test/pieces/eip-shadows.ts` and find any such copy again.
|
|
422
422
|
|
|
423
423
|
## Upgrading to 0.13.0
|
|
424
424
|
|
|
@@ -28,14 +28,18 @@ export declare const decisionNode: import("./piece.ts").Piece<Ink & {
|
|
|
28
28
|
} & {
|
|
29
29
|
height: number;
|
|
30
30
|
}>;
|
|
31
|
-
export type StoreNodeParams = ShapeParams & {
|
|
31
|
+
export type StoreNodeParams = Omit<ShapeParams, "text"> & {
|
|
32
|
+
text?: string[];
|
|
32
33
|
height: number;
|
|
33
34
|
ry?: number;
|
|
34
35
|
};
|
|
35
|
-
/** A store: a cylinder in its bounds, with the front of its lid
|
|
36
|
+
/** A store: a cylinder in its bounds, with the front of its lid; empty without `text`. */
|
|
36
37
|
export declare const storeNode: import("./piece.ts").Piece<StoreNodeParams>;
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
export type QueueNodeParams = Omit<ShapeParams, "text"> & {
|
|
39
|
+
text?: string[];
|
|
40
|
+
};
|
|
41
|
+
/** A queue: a box with a rail 10 in from each side; empty without `text`. */
|
|
42
|
+
export declare const queueNode: import("./piece.ts").Piece<QueueNodeParams>;
|
|
39
43
|
/** An exchange: a hexagon with its points 0.26 × height in, as the motion shape (src/brand/flow-shapes.ts). */
|
|
40
44
|
export declare const exchangeNode: import("./piece.ts").Piece<ShapeParams>;
|
|
41
45
|
export type TaggedContainerParams = Ink & {
|
|
@@ -126,7 +130,7 @@ export declare const DIAGRAM_PIECES: {
|
|
|
126
130
|
height: number;
|
|
127
131
|
}>;
|
|
128
132
|
readonly storeNode: import("./piece.ts").Piece<StoreNodeParams>;
|
|
129
|
-
readonly queueNode: import("./piece.ts").Piece<
|
|
133
|
+
readonly queueNode: import("./piece.ts").Piece<QueueNodeParams>;
|
|
130
134
|
readonly exchangeNode: import("./piece.ts").Piece<ShapeParams>;
|
|
131
135
|
readonly taggedContainer: import("./piece.ts").Piece<TaggedContainerParams>;
|
|
132
136
|
readonly lifeline: import("./piece.ts").Piece<LifelineParams>;
|
|
@@ -69,31 +69,35 @@ export const decisionNode = definePiece("decisionNode", shapeSchema(true), (para
|
|
|
69
69
|
const shape = polygon([[x + w / 2, y], [x + w, y + h / 2], [x + w / 2, y + h], [x, y + h / 2]]);
|
|
70
70
|
return drawn(sticker(shape, c.face, params), centred(x + w / 2, y + h / 2, text, subtitle, c, params.textSize));
|
|
71
71
|
}, (params) => limits(roomOn(params.width, params.height, params)));
|
|
72
|
-
/**
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
/** Without `text` a store or a queue draws no words, so the parameters that style them have nothing to style (changes store-node-without-words, flat-eip-icons-and-empty-queue). */
|
|
73
|
+
const NO_WORDS = "needs text: it styles words that are not drawn";
|
|
74
|
+
/** A store: a cylinder in its bounds, with the front of its lid; empty without `text`. */
|
|
75
|
+
export const storeNode = definePiece("storeNode", { ...shapeSchema(true), text: { ...lines(3), required: false }, ry: size() }, (params) => {
|
|
76
|
+
const { x, y, width: w, height: h, text = [], subtitle, fill, ry = 8 } = params;
|
|
75
77
|
const c = coloursOf(fill, params);
|
|
76
78
|
const { outline } = inkOf(params);
|
|
77
79
|
const rx = r2(w / 2);
|
|
78
80
|
const body = (dx, dy, attrs) => el("path", { d: `M${r2(x + dx)},${r2(y + ry + dy)} A${rx},${ry} 0 0 1 ${r2(x + w + dx)},${r2(y + ry + dy)} V${r2(y + h - ry + dy)} A${rx},${ry} 0 0 1 ${r2(x + dx)},${r2(y + h - ry + dy)} Z`, ...attrs });
|
|
79
81
|
const lid = el("path", { d: `M${r2(x)},${r2(y + ry)} A${rx},${ry} 0 0 0 ${r2(x + w)},${r2(y + ry)}`, fill: "none", stroke: inkOf(params).line, "stroke-width": r2(0.75 * outline) });
|
|
80
|
-
return drawn([...sticker(body, c.face, params), lid], centred(x + w / 2, y + (h + ry) / 2, text, subtitle, c, params.textSize));
|
|
82
|
+
return drawn([...sticker(body, c.face, params), lid], text.length === 0 ? [] : centred(x + w / 2, y + (h + ry) / 2, text, subtitle, c, params.textSize));
|
|
81
83
|
}, (params) => {
|
|
82
84
|
const ry = params.ry ?? 8;
|
|
83
|
-
|
|
85
|
+
const empty = params.text === undefined;
|
|
86
|
+
return limits(empty && params.subtitle !== undefined && { path: "subtitle", message: NO_WORDS }, empty && params.textSize !== undefined && { path: "textSize", message: NO_WORDS }, roomOn(params.width, params.height, params), ry > params.height / 4 && { path: "ry", message: `must be at most a quarter of the height (${r2(params.height / 4)}), found ${r2(ry)}` });
|
|
84
87
|
});
|
|
85
88
|
const RAIL = 10;
|
|
86
|
-
/** A queue: a box with a rail 10 in from each side
|
|
87
|
-
export const queueNode = definePiece("queueNode", shapeSchema(false), (params) => {
|
|
88
|
-
const { x, y, width: w, height: h = M.nodeHeight, text, subtitle, fill } = params;
|
|
89
|
+
/** A queue: a box with a rail 10 in from each side; empty without `text`. */
|
|
90
|
+
export const queueNode = definePiece("queueNode", { ...shapeSchema(false), text: { ...lines(3), required: false } }, (params) => {
|
|
91
|
+
const { x, y, width: w, height: h = M.nodeHeight, text = [], subtitle, fill } = params;
|
|
89
92
|
const c = coloursOf(fill, params);
|
|
90
93
|
const { outline } = inkOf(params);
|
|
91
94
|
const rails = el("path", { d: `M${r2(x + RAIL)},${r2(y)} V${r2(y + h)} M${r2(x + w - RAIL)},${r2(y)} V${r2(y + h)}`, fill: "none", stroke: inkOf(params).line, "stroke-width": r2(0.75 * outline) });
|
|
92
|
-
return drawn([...sticker(rect(x, y, w, h, tokens.radius.small), c.face, params), rails], centred(x + w / 2, y + h / 2, text, subtitle, c, params.textSize));
|
|
95
|
+
return drawn([...sticker(rect(x, y, w, h, tokens.radius.small), c.face, params), rails], text.length === 0 ? [] : centred(x + w / 2, y + h / 2, text, subtitle, c, params.textSize));
|
|
93
96
|
}, (params) => {
|
|
94
97
|
const height = params.height ?? M.nodeHeight;
|
|
95
98
|
const least = Math.max(height, 2 * RAIL + 4 * inkOf(params).outline);
|
|
96
|
-
|
|
99
|
+
const empty = params.text === undefined;
|
|
100
|
+
return limits(empty && params.subtitle !== undefined && { path: "subtitle", message: NO_WORDS }, empty && params.textSize !== undefined && { path: "textSize", message: NO_WORDS }, roomFor("height", height, params), params.width < least && { path: "width", message: `must be at least the height and leave room for the rails (${r2(least)}), found ${r2(params.width)}` });
|
|
97
101
|
});
|
|
98
102
|
/** An exchange: a hexagon with its points 0.26 × height in, as the motion shape (src/brand/flow-shapes.ts). */
|
|
99
103
|
export const exchangeNode = definePiece("exchangeNode", shapeSchema(false), (params) => {
|
|
@@ -20,7 +20,6 @@ export const EIP_ICONS = [
|
|
|
20
20
|
title: "Aggregator",
|
|
21
21
|
description: "Icon of the Aggregator pattern: a component turning three messages into one. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
22
22
|
nodes: [
|
|
23
|
-
n("rect", { x: "8.5", y: "6.5", width: "52", height: "30", rx: "3", fill: C.ink }),
|
|
24
23
|
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
25
24
|
n("rect", { x: "16", y: "8", width: "6", height: "6", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
26
25
|
n("rect", { x: "16", y: "16.5", width: "6", height: "6", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
@@ -35,11 +34,9 @@ export const EIP_ICONS = [
|
|
|
35
34
|
title: "Canonical Data Model",
|
|
36
35
|
description: "Icon of the Canonical Data Model pattern: two translators on both sides of one shared message format; the book has no icon for this pattern, so this is drawn from its sketch. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
37
36
|
nodes: [
|
|
38
|
-
n("rect", { x: "4.5", y: "12.5", width: "14", height: "19", rx: "3", fill: C.ink }),
|
|
39
37
|
n("rect", { x: "2", y: "10", width: "14", height: "19", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
40
38
|
n("polyline", { points: "5,13 13,26", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
41
39
|
n("polyline", { points: "5,26 13,13", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
42
|
-
n("rect", { x: "49.5", y: "12.5", width: "14", height: "19", rx: "3", fill: C.ink }),
|
|
43
40
|
n("rect", { x: "47", y: "10", width: "14", height: "19", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
44
41
|
n("polyline", { points: "50,13 58,26", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
45
42
|
n("polyline", { points: "50,26 58,13", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
@@ -47,7 +44,6 @@ export const EIP_ICONS = [
|
|
|
47
44
|
n("polygon", { points: "25.00,19.50 20.80,21.81 20.80,17.19", fill: C.ink }),
|
|
48
45
|
n("polyline", { points: "39.5,19.5 43.06,19.5", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
49
46
|
n("polygon", { points: "46.00,19.50 41.80,21.81 41.80,17.19", fill: C.ink }),
|
|
50
|
-
n("rect", { x: "28.5", y: "15.5", width: "11", height: "11", fill: C.ink }),
|
|
51
47
|
n("rect", { x: "27", y: "14", width: "11", height: "11", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
52
48
|
n("rect", { x: "29.2", y: "14.75", width: "1.9", height: "9.5", fill: C.state.caller }),
|
|
53
49
|
n("rect", { x: "32.1", y: "14.75", width: "1.9", height: "9.5", fill: C.state.caller }),
|
|
@@ -60,9 +56,7 @@ export const EIP_ICONS = [
|
|
|
60
56
|
title: "Channel Adapter",
|
|
61
57
|
description: "Icon of the Channel Adapter pattern: an application with a wavy edge, an adapter plate, a two-way arrow and the end of a channel pipe. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
62
58
|
nodes: [
|
|
63
|
-
n("path", { d: "M4,4 H14 V35 H4 Q7.5,30 4,25 Q0.5,20 4,15 Q7.5,9.5 4,4 Z", fill: C.ink, transform: "translate(2 2)" }),
|
|
64
59
|
n("path", { d: "M4,4 H14 V35 H4 Q7.5,30 4,25 Q0.5,20 4,15 Q7.5,9.5 4,4 Z", fill: C.state.transitional, stroke: C.ink, "stroke-width": "1.75", "stroke-linejoin": "round" }),
|
|
65
|
-
n("polygon", { points: "16.00,6.00 26.00,11.50 26.00,31.50 16.00,37.00", fill: C.ink }),
|
|
66
60
|
n("polygon", { points: "14.00,4.00 24.00,9.50 24.00,29.50 14.00,35.00", fill: C.state.caller, stroke: C.ink, "stroke-width": "1.75", "stroke-linejoin": "round" }),
|
|
67
61
|
n("g", {}, [
|
|
68
62
|
n("path", { d: "M32,19.5 H39", fill: "none", stroke: C.ink, "stroke-width": "5.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
@@ -74,7 +68,6 @@ export const EIP_ICONS = [
|
|
|
74
68
|
n("polygon", { points: "27.50,19.50 33.00,16.09 33.00,22.91", fill: I.iconLine }),
|
|
75
69
|
n("polygon", { points: "44.00,19.50 38.50,22.91 38.50,16.09", fill: I.iconLine }),
|
|
76
70
|
]),
|
|
77
|
-
n("path", { d: "M48,14.0 H58 A2.475,5.5 0 0 1 58,25.0 H48 A2.475,5.5 0 0 1 48,14.0 Z", fill: C.ink, transform: "translate(2 2)" }),
|
|
78
71
|
n("path", { d: "M48,14.0 H58 A2.475,5.5 0 0 1 58,25.0 H48 A2.475,5.5 0 0 1 48,14.0 Z", fill: I.iconLine, stroke: C.ink, "stroke-width": "1.75", "stroke-linejoin": "round" }),
|
|
79
72
|
n("ellipse", { cx: "58", cy: "19.5", rx: "2.475", ry: "5.5", fill: C.white, stroke: C.ink, "stroke-width": "1.75" }),
|
|
80
73
|
],
|
|
@@ -84,7 +77,6 @@ export const EIP_ICONS = [
|
|
|
84
77
|
title: "Claim Check",
|
|
85
78
|
description: "Icon of the Claim Check pattern: a component turning a large message into a small one, with a key. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
86
79
|
nodes: [
|
|
87
|
-
n("rect", { x: "8.5", y: "6.5", width: "52", height: "30", rx: "3", fill: C.ink }),
|
|
88
80
|
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
89
81
|
n("rect", { x: "12", y: "9.5", width: "13", height: "13", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
90
82
|
n("polyline", { points: "28,16 36.5,16.0", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
@@ -101,12 +93,7 @@ export const EIP_ICONS = [
|
|
|
101
93
|
title: "Competing Consumers",
|
|
102
94
|
description: "Icon of the Competing Consumers pattern: a channel arrow entering a component that fans out to three consumers. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
103
95
|
nodes: [
|
|
104
|
-
n("rect", { x: "8.5", y: "6.5", width: "52", height: "30", rx: "3", fill: C.ink }),
|
|
105
96
|
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
106
|
-
n("g", { transform: "translate(1.8 1.8)" }, [
|
|
107
|
-
n("path", { d: "M2,19 H22", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
108
|
-
n("polygon", { points: "31.00,19.00 22.00,24.58 22.00,13.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
109
|
-
]),
|
|
110
97
|
n("g", {}, [
|
|
111
98
|
n("path", { d: "M2,19 H22", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
112
99
|
n("polygon", { points: "31.00,19.00 22.00,24.58 22.00,13.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
@@ -131,7 +118,6 @@ export const EIP_ICONS = [
|
|
|
131
118
|
title: "Content-Based Router",
|
|
132
119
|
description: "Icon of the Content-Based Router pattern: a component whose input switch connects to one of three outputs. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
133
120
|
nodes: [
|
|
134
|
-
n("rect", { x: "8.5", y: "6.5", width: "52", height: "30", rx: "3", fill: C.ink }),
|
|
135
121
|
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
136
122
|
n("polyline", { points: "6,20 17,20", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
137
123
|
n("polygon", { points: "17.00,17.40 19.60,20.00 17.00,22.60 14.40,20.00", fill: C.ink }),
|
|
@@ -149,7 +135,6 @@ export const EIP_ICONS = [
|
|
|
149
135
|
title: "Content Enricher",
|
|
150
136
|
description: "Icon of the Content Enricher pattern: a component turning a small message into a large one. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
151
137
|
nodes: [
|
|
152
|
-
n("rect", { x: "8.5", y: "6.5", width: "52", height: "30", rx: "3", fill: C.ink }),
|
|
153
138
|
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
154
139
|
n("rect", { x: "14", y: "15.5", width: "7", height: "7", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
155
140
|
n("polyline", { points: "24,19 32.5,19.0", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
@@ -162,7 +147,6 @@ export const EIP_ICONS = [
|
|
|
162
147
|
title: "Content Filter",
|
|
163
148
|
description: "Icon of the Content Filter pattern: a component turning a large message into a small one. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
164
149
|
nodes: [
|
|
165
|
-
n("rect", { x: "8.5", y: "6.5", width: "52", height: "30", rx: "3", fill: C.ink }),
|
|
166
150
|
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
167
151
|
n("rect", { x: "13", y: "12", width: "14", height: "14", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
168
152
|
n("polyline", { points: "30,19 38.5,19.0", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
@@ -175,16 +159,12 @@ export const EIP_ICONS = [
|
|
|
175
159
|
title: "Correlation Identifier",
|
|
176
160
|
description: "Icon of the Correlation Identifier pattern: two ID tokens linked by an arrow, attached to messages A and B. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
177
161
|
nodes: [
|
|
178
|
-
n("circle", { cx: "13.6", cy: "10.6", r: "6", fill: C.ink }),
|
|
179
162
|
n("circle", { cx: "12", cy: "9", r: "6", fill: I.iconLine, stroke: C.ink, "stroke-width": "1.75" }),
|
|
180
|
-
n("circle", { cx: "41.6", cy: "10.6", r: "6", fill: C.ink }),
|
|
181
163
|
n("circle", { cx: "40", cy: "9", r: "6", fill: I.iconLine, stroke: C.ink, "stroke-width": "1.75" }),
|
|
182
164
|
n("polyline", { points: "33.5,9 22.1,9.0", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
183
165
|
n("polygon", { points: "18.60,9.00 23.60,6.25 23.60,11.75", fill: C.ink }),
|
|
184
166
|
n("polyline", { points: "12,15 12,29 18,29", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
185
167
|
n("polyline", { points: "40,15 40,29 46,29", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
186
|
-
n("rect", { x: "20", y: "24", width: "12", height: "13", fill: C.ink }),
|
|
187
|
-
n("rect", { x: "48", y: "24", width: "12", height: "13", fill: C.ink }),
|
|
188
168
|
n("rect", { x: "18", y: "22", width: "12", height: "13", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
189
169
|
n("rect", { x: "46", y: "22", width: "12", height: "13", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
190
170
|
n("polyline", { points: "21,34 24,25.2 27,34", fill: "none", stroke: C.ink, "stroke-width": "1.8", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
@@ -197,10 +177,8 @@ export const EIP_ICONS = [
|
|
|
197
177
|
title: "Dead Letter Channel",
|
|
198
178
|
description: "Icon of the Dead Letter Channel pattern: a channel pipe above a red stop sign. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
199
179
|
nodes: [
|
|
200
|
-
n("path", { d: "M9,4.5 H53 A2.9250000000000003,6.5 0 0 1 53,17.5 H9 A2.9250000000000003,6.5 0 0 1 9,4.5 Z", fill: C.ink, transform: "translate(2 2)" }),
|
|
201
180
|
n("path", { d: "M9,4.5 H53 A2.9250000000000003,6.5 0 0 1 53,17.5 H9 A2.9250000000000003,6.5 0 0 1 9,4.5 Z", fill: I.iconLine, stroke: C.ink, "stroke-width": "1.75", "stroke-linejoin": "round" }),
|
|
202
181
|
n("ellipse", { cx: "53", cy: "11", rx: "2.9250000000000003", ry: "6.5", fill: C.white, stroke: C.ink, "stroke-width": "1.75" }),
|
|
203
|
-
n("polygon", { points: "40.73,32.67 36.67,36.73 30.93,36.73 26.87,32.67 26.87,26.93 30.93,22.87 36.67,22.87 40.73,26.93", fill: C.ink }),
|
|
204
182
|
n("polygon", { points: "38.93,30.87 34.87,34.93 29.13,34.93 25.07,30.87 25.07,25.13 29.13,21.07 34.87,21.07 38.93,25.13", fill: C.state.backend, stroke: C.ink, "stroke-width": "1.75", "stroke-linejoin": "round" }),
|
|
205
183
|
],
|
|
206
184
|
},
|
|
@@ -209,12 +187,7 @@ export const EIP_ICONS = [
|
|
|
209
187
|
title: "Event-Driven Consumer",
|
|
210
188
|
description: "Icon of the Event-Driven Consumer pattern: a channel arrow entering a component that passes the message on at once. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
211
189
|
nodes: [
|
|
212
|
-
n("rect", { x: "20.5", y: "6.5", width: "40", height: "30", rx: "3", fill: C.ink }),
|
|
213
190
|
n("rect", { x: "18", y: "4", width: "40", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
214
|
-
n("g", { transform: "translate(1.8 1.8)" }, [
|
|
215
|
-
n("path", { d: "M2,19 H27", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
216
|
-
n("polygon", { points: "36.00,19.00 27.00,24.58 27.00,13.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
217
|
-
]),
|
|
218
191
|
n("g", {}, [
|
|
219
192
|
n("path", { d: "M2,19 H27", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
220
193
|
n("polygon", { points: "36.00,19.00 27.00,24.58 27.00,13.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
@@ -233,10 +206,6 @@ export const EIP_ICONS = [
|
|
|
233
206
|
title: "Guaranteed Delivery",
|
|
234
207
|
description: "Icon of the Guaranteed Delivery pattern: a channel arrow above a small database cylinder. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
235
208
|
nodes: [
|
|
236
|
-
n("g", { transform: "translate(1.8 1.8)" }, [
|
|
237
|
-
n("path", { d: "M4,10 H50", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
238
|
-
n("polygon", { points: "59.00,10.00 50.00,15.58 50.00,4.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
239
|
-
]),
|
|
240
209
|
n("g", {}, [
|
|
241
210
|
n("path", { d: "M4,10 H50", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
242
211
|
n("polygon", { points: "59.00,10.00 50.00,15.58 50.00,4.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
@@ -245,7 +214,6 @@ export const EIP_ICONS = [
|
|
|
245
214
|
n("path", { d: "M4,10 H50", fill: "none", stroke: I.iconLine, "stroke-width": "3.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
246
215
|
n("polygon", { points: "59.00,10.00 50.00,15.58 50.00,4.42", fill: I.iconLine }),
|
|
247
216
|
]),
|
|
248
|
-
n("path", { d: "M25,23 V33 A7,2.6 0 0 0 39,33 V23 Z", fill: C.ink, transform: "translate(2 2)" }),
|
|
249
217
|
n("path", { d: "M25,23 V33 A7,2.6 0 0 0 39,33 V23 Z", fill: I.iconLine, stroke: C.ink, "stroke-width": "1.75", "stroke-linejoin": "round" }),
|
|
250
218
|
n("ellipse", { cx: "32", cy: "23", rx: "7", ry: "2.6", fill: C.white, stroke: C.ink, "stroke-width": "1.75" }),
|
|
251
219
|
],
|
|
@@ -255,12 +223,7 @@ export const EIP_ICONS = [
|
|
|
255
223
|
title: "Idempotent Receiver",
|
|
256
224
|
description: "Icon of the Idempotent Receiver pattern: a channel arrow delivering a message into a component, with a badge showing the number 1. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
257
225
|
nodes: [
|
|
258
|
-
n("rect", { x: "18.5", y: "11.5", width: "42", height: "27", rx: "3", fill: C.ink }),
|
|
259
226
|
n("rect", { x: "16", y: "9", width: "42", height: "27", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
260
|
-
n("g", { transform: "translate(1.8 1.8)" }, [
|
|
261
|
-
n("path", { d: "M3,23 H27", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
262
|
-
n("polygon", { points: "36.00,23.00 27.00,28.58 27.00,17.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
263
|
-
]),
|
|
264
227
|
n("g", {}, [
|
|
265
228
|
n("path", { d: "M3,23 H27", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
266
229
|
n("polygon", { points: "36.00,23.00 27.00,28.58 27.00,17.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
@@ -270,7 +233,6 @@ export const EIP_ICONS = [
|
|
|
270
233
|
n("polygon", { points: "36.00,23.00 27.00,28.58 27.00,17.42", fill: I.iconLine }),
|
|
271
234
|
]),
|
|
272
235
|
n("rect", { x: "38.5", y: "17", width: "12", height: "12", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
273
|
-
n("circle", { cx: "17.8", cy: "11.3", r: "7.6", fill: C.ink }),
|
|
274
236
|
n("circle", { cx: "16", cy: "9.5", r: "7.6", fill: I.iconLine, stroke: C.ink, "stroke-width": "1.75" }),
|
|
275
237
|
n("polyline", { points: "13.6,7.6 16.4,5.4 16.4,13.8", fill: "none", stroke: C.ink, "stroke-width": "2.2", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
276
238
|
n("polyline", { points: "13.8,13.8 19,13.8", fill: "none", stroke: C.ink, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
@@ -281,10 +243,8 @@ export const EIP_ICONS = [
|
|
|
281
243
|
title: "Invalid Message Channel",
|
|
282
244
|
description: "Icon of the Invalid Message Channel pattern: a channel pipe above a yellow warning sign. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
283
245
|
nodes: [
|
|
284
|
-
n("path", { d: "M9,4.5 H53 A2.9250000000000003,6.5 0 0 1 53,17.5 H9 A2.9250000000000003,6.5 0 0 1 9,4.5 Z", fill: C.ink, transform: "translate(2 2)" }),
|
|
285
246
|
n("path", { d: "M9,4.5 H53 A2.9250000000000003,6.5 0 0 1 53,17.5 H9 A2.9250000000000003,6.5 0 0 1 9,4.5 Z", fill: I.iconLine, stroke: C.ink, "stroke-width": "1.75", "stroke-linejoin": "round" }),
|
|
286
247
|
n("ellipse", { cx: "53", cy: "11", rx: "2.9250000000000003", ry: "6.5", fill: C.white, stroke: C.ink, "stroke-width": "1.75" }),
|
|
287
|
-
n("polygon", { points: "33.80,22.30 43.30,37.80 24.30,37.80", fill: C.ink }),
|
|
288
248
|
n("polygon", { points: "32.00,20.50 41.50,36.00 22.50,36.00", fill: C.state.transitional, stroke: C.ink, "stroke-width": "1.75", "stroke-linejoin": "round" }),
|
|
289
249
|
n("polyline", { points: "32,25.5 32,30.5", fill: "none", stroke: C.ink, "stroke-width": "2.2", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
290
250
|
n("circle", { cx: "32", cy: "33.2", r: "1.15", fill: C.ink }),
|
|
@@ -295,7 +255,6 @@ export const EIP_ICONS = [
|
|
|
295
255
|
title: "Message Expiration",
|
|
296
256
|
description: "Icon of the Message Expiration pattern: a clock face. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
297
257
|
nodes: [
|
|
298
|
-
n("circle", { cx: "34", cy: "22", r: "16", fill: C.ink }),
|
|
299
258
|
n("circle", { cx: "32", cy: "20", r: "16", fill: C.white, stroke: C.ink, "stroke-width": "2.5" }),
|
|
300
259
|
n("polyline", { points: "32,20 32,8.5", fill: "none", stroke: C.ink, "stroke-width": "2.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
301
260
|
n("polyline", { points: "32,20 42,20", fill: "none", stroke: C.ink, "stroke-width": "2.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
@@ -306,9 +265,7 @@ export const EIP_ICONS = [
|
|
|
306
265
|
title: "Message Filter",
|
|
307
266
|
description: "Icon of the Message Filter pattern: a component with a funnel. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
308
267
|
nodes: [
|
|
309
|
-
n("rect", { x: "8.5", y: "6.5", width: "52", height: "30", rx: "3", fill: C.ink }),
|
|
310
268
|
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
311
|
-
n("polygon", { points: "22.60,10.10 44.60,10.10 36.60,19.60 36.60,31.60 30.60,31.60 30.60,19.60", fill: C.ink }),
|
|
312
269
|
n("polygon", { points: "21.00,8.50 43.00,8.50 35.00,18.00 35.00,30.00 29.00,30.00 29.00,18.00", fill: I.iconLine, stroke: C.ink, "stroke-width": "1.6", "stroke-linejoin": "round" }),
|
|
313
270
|
],
|
|
314
271
|
},
|
|
@@ -317,7 +274,6 @@ export const EIP_ICONS = [
|
|
|
317
274
|
title: "Message Translator",
|
|
318
275
|
description: "Icon of the Message Translator pattern: a component with two blocks crossed by an X. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
319
276
|
nodes: [
|
|
320
|
-
n("rect", { x: "8.5", y: "6.5", width: "52", height: "30", rx: "3", fill: C.ink }),
|
|
321
277
|
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
322
278
|
n("rect", { x: "11", y: "8", width: "17", height: "22", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
323
279
|
n("rect", { x: "36", y: "8", width: "17", height: "22", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
@@ -330,10 +286,6 @@ export const EIP_ICONS = [
|
|
|
330
286
|
title: "Point-to-Point Channel",
|
|
331
287
|
description: "Icon of the Point-to-Point Channel pattern: a single channel arrow. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
332
288
|
nodes: [
|
|
333
|
-
n("g", { transform: "translate(1.8 1.8)" }, [
|
|
334
|
-
n("path", { d: "M5,20 H50", fill: "none", stroke: C.ink, "stroke-width": "7.4", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
335
|
-
n("polygon", { points: "59.00,20.00 50.00,25.58 50.00,14.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
336
|
-
]),
|
|
337
289
|
n("g", {}, [
|
|
338
290
|
n("path", { d: "M5,20 H50", fill: "none", stroke: C.ink, "stroke-width": "7.4", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
339
291
|
n("polygon", { points: "59.00,20.00 50.00,25.58 50.00,14.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
@@ -349,12 +301,7 @@ export const EIP_ICONS = [
|
|
|
349
301
|
title: "Polling Consumer",
|
|
350
302
|
description: "Icon of the Polling Consumer pattern: a channel arrow entering a component with a polling loop. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
351
303
|
nodes: [
|
|
352
|
-
n("rect", { x: "20.5", y: "6.5", width: "40", height: "30", rx: "3", fill: C.ink }),
|
|
353
304
|
n("rect", { x: "18", y: "4", width: "40", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
354
|
-
n("g", { transform: "translate(1.8 1.8)" }, [
|
|
355
|
-
n("path", { d: "M2,19 H22", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
356
|
-
n("polygon", { points: "31.00,19.00 22.00,24.58 22.00,13.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
357
|
-
]),
|
|
358
305
|
n("g", {}, [
|
|
359
306
|
n("path", { d: "M2,19 H22", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
360
307
|
n("polygon", { points: "31.00,19.00 22.00,24.58 22.00,13.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
@@ -373,7 +320,6 @@ export const EIP_ICONS = [
|
|
|
373
320
|
title: "Process Manager",
|
|
374
321
|
description: "Icon of the Process Manager pattern: a component with a small decision tree: a start point, a decision diamond and three steps. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
375
322
|
nodes: [
|
|
376
|
-
n("rect", { x: "8.5", y: "6.5", width: "52", height: "30", rx: "3", fill: C.ink }),
|
|
377
323
|
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
378
324
|
n("polyline", { points: "32,11.5 32,13", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
379
325
|
n("polyline", { points: "32,21.4 32,23.5", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
@@ -393,12 +339,6 @@ export const EIP_ICONS = [
|
|
|
393
339
|
title: "Publish-Subscribe Channel",
|
|
394
340
|
description: "Icon of the Publish-Subscribe Channel pattern: one channel that forks into three arrows. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
395
341
|
nodes: [
|
|
396
|
-
n("g", { transform: "translate(1.8 1.8)" }, [
|
|
397
|
-
n("path", { d: "M4,20 H20 M20,7 V33 M20,7 H50 M20,20 H50 M20,33 H50", fill: "none", stroke: C.ink, "stroke-width": "6.2", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
398
|
-
n("polygon", { points: "59.00,7.00 51.00,11.96 51.00,2.04", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
399
|
-
n("polygon", { points: "59.00,20.00 51.00,24.96 51.00,15.04", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
400
|
-
n("polygon", { points: "59.00,33.00 51.00,37.96 51.00,28.04", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
401
|
-
]),
|
|
402
342
|
n("g", {}, [
|
|
403
343
|
n("path", { d: "M4,20 H20 M20,7 V33 M20,7 H50 M20,20 H50 M20,33 H50", fill: "none", stroke: C.ink, "stroke-width": "6.2", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
404
344
|
n("polygon", { points: "59.00,7.00 51.00,11.96 51.00,2.04", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
@@ -418,12 +358,7 @@ export const EIP_ICONS = [
|
|
|
418
358
|
title: "Request-Reply",
|
|
419
359
|
description: "Icon of the Request-Reply pattern: a message going right on one channel and another coming back left on a second channel. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
420
360
|
nodes: [
|
|
421
|
-
n("rect", { x: "6", y: "5.5", width: "11", height: "11", fill: C.ink }),
|
|
422
361
|
n("rect", { x: "4", y: "3.5", width: "11", height: "11", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
423
|
-
n("g", { transform: "translate(1.8 1.8)" }, [
|
|
424
|
-
n("path", { d: "M21,10 H50", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
425
|
-
n("polygon", { points: "59.00,10.00 50.00,15.58 50.00,4.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
426
|
-
]),
|
|
427
362
|
n("g", {}, [
|
|
428
363
|
n("path", { d: "M21,10 H50", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
429
364
|
n("polygon", { points: "59.00,10.00 50.00,15.58 50.00,4.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
@@ -432,10 +367,6 @@ export const EIP_ICONS = [
|
|
|
432
367
|
n("path", { d: "M21,10 H50", fill: "none", stroke: I.iconLine, "stroke-width": "3.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
433
368
|
n("polygon", { points: "59.00,10.00 50.00,15.58 50.00,4.42", fill: I.iconLine }),
|
|
434
369
|
]),
|
|
435
|
-
n("g", { transform: "translate(1.8 1.8)" }, [
|
|
436
|
-
n("path", { d: "M14,30 H43", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
437
|
-
n("polygon", { points: "5.00,30.00 14.00,24.42 14.00,35.58", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
438
|
-
]),
|
|
439
370
|
n("g", {}, [
|
|
440
371
|
n("path", { d: "M14,30 H43", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
441
372
|
n("polygon", { points: "5.00,30.00 14.00,24.42 14.00,35.58", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
@@ -444,7 +375,6 @@ export const EIP_ICONS = [
|
|
|
444
375
|
n("path", { d: "M14,30 H43", fill: "none", stroke: I.iconLine, "stroke-width": "3.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
445
376
|
n("polygon", { points: "5.00,30.00 14.00,24.42 14.00,35.58", fill: I.iconLine }),
|
|
446
377
|
]),
|
|
447
|
-
n("rect", { x: "50", y: "26", width: "11", height: "11", fill: C.ink }),
|
|
448
378
|
n("rect", { x: "48", y: "24", width: "11", height: "11", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
449
379
|
],
|
|
450
380
|
},
|
|
@@ -453,7 +383,6 @@ export const EIP_ICONS = [
|
|
|
453
383
|
title: "Return Address",
|
|
454
384
|
description: "Icon of the Return Address pattern: an envelope with an address block and a stamp. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
455
385
|
nodes: [
|
|
456
|
-
n("rect", { x: "7", y: "6.5", width: "54", height: "31", rx: "1.5", fill: C.ink }),
|
|
457
386
|
n("rect", { x: "4.5", y: "4", width: "54", height: "31", rx: "1.5", fill: C.state.transitional, stroke: C.ink, "stroke-width": "2" }),
|
|
458
387
|
n("polyline", { points: "10,10 29,10", fill: "none", stroke: C.ink, "stroke-width": "2.4", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
459
388
|
n("polyline", { points: "10,14.5 29,14.5", fill: "none", stroke: C.ink, "stroke-width": "2.4", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
@@ -469,7 +398,6 @@ export const EIP_ICONS = [
|
|
|
469
398
|
title: "Scatter-Gather",
|
|
470
399
|
description: "Icon of the Scatter-Gather pattern: a component that fans one input out to three branches and joins them into one output. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
471
400
|
nodes: [
|
|
472
|
-
n("rect", { x: "8.5", y: "6.5", width: "52", height: "30", rx: "3", fill: C.ink }),
|
|
473
401
|
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
474
402
|
n("polyline", { points: "6,19 14,19", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
475
403
|
n("polyline", { points: "50,19 58,19", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
@@ -488,7 +416,6 @@ export const EIP_ICONS = [
|
|
|
488
416
|
title: "Splitter",
|
|
489
417
|
description: "Icon of the Splitter pattern: a component turning one message into three. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
490
418
|
nodes: [
|
|
491
|
-
n("rect", { x: "8.5", y: "6.5", width: "52", height: "30", rx: "3", fill: C.ink }),
|
|
492
419
|
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
493
420
|
n("rect", { x: "16", y: "15.5", width: "8", height: "8", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
494
421
|
n("polyline", { points: "26.5,19.5 35.5,19.5", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
@@ -503,14 +430,9 @@ export const EIP_ICONS = [
|
|
|
503
430
|
title: "Transactional Client",
|
|
504
431
|
description: "Icon of the Transactional Client pattern: a channel arrow entering a component where the message sits inside a transaction boundary. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
505
432
|
nodes: [
|
|
506
|
-
n("rect", { x: "8.5", y: "6.5", width: "52", height: "30", rx: "3", fill: C.ink }),
|
|
507
433
|
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
508
434
|
n("ellipse", { cx: "37", cy: "19", rx: "17", ry: "11.5", fill: C.state.caller, stroke: C.ink, "stroke-width": "1.6" }),
|
|
509
435
|
n("rect", { x: "39", y: "13", width: "12", height: "12", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
510
|
-
n("g", { transform: "translate(1.8 1.8)" }, [
|
|
511
|
-
n("path", { d: "M2,19 H27", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
512
|
-
n("polygon", { points: "36.00,19.00 27.00,24.58 27.00,13.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
513
|
-
]),
|
|
514
436
|
n("g", {}, [
|
|
515
437
|
n("path", { d: "M2,19 H27", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
516
438
|
n("polygon", { points: "36.00,19.00 27.00,24.58 27.00,13.42", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
@@ -264,7 +264,7 @@ export declare const PIECES: {
|
|
|
264
264
|
height: number;
|
|
265
265
|
}>;
|
|
266
266
|
readonly storeNode: import("./piece.ts").Piece<import("./diagram.ts").StoreNodeParams>;
|
|
267
|
-
readonly queueNode: import("./piece.ts").Piece<import("./diagram.ts").
|
|
267
|
+
readonly queueNode: import("./piece.ts").Piece<import("./diagram.ts").QueueNodeParams>;
|
|
268
268
|
readonly exchangeNode: import("./piece.ts").Piece<import("./diagram.ts").ShapeParams>;
|
|
269
269
|
readonly taggedContainer: import("./piece.ts").Piece<import("./diagram.ts").TaggedContainerParams>;
|
|
270
270
|
readonly lifeline: import("./piece.ts").Piece<import("./diagram.ts").LifelineParams>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosouzas/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Design tokens and illustration pieces of brunosouzas.com: tokens as CSS, JSON and TypeScript, pieces that draw SVG (and React), and a cover command.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|