@brunosouzas/signwright 0.0.0-stage → 0.19.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/LICENSE +202 -0
- package/NOTICE +15 -0
- package/README.md +567 -2
- package/dist/scripts/cover.d.ts +29 -0
- package/dist/scripts/cover.js +186 -0
- package/dist/src/fonts/embed.d.ts +7 -0
- package/dist/src/fonts/embed.js +221 -0
- package/dist/src/pieces/bank-objects.d.ts +12 -0
- package/dist/src/pieces/bank-objects.js +52 -0
- package/dist/src/pieces/brand-cast.d.ts +105 -0
- package/dist/src/pieces/brand-cast.js +221 -0
- package/dist/src/pieces/brand-notation-icons.d.ts +12 -0
- package/dist/src/pieces/brand-notation-icons.js +79 -0
- package/dist/src/pieces/category-icon.d.ts +12 -0
- package/dist/src/pieces/category-icon.js +55 -0
- package/dist/src/pieces/cover.d.ts +138 -0
- package/dist/src/pieces/cover.js +635 -0
- package/dist/src/pieces/diagram.d.ts +141 -0
- package/dist/src/pieces/diagram.js +201 -0
- package/dist/src/pieces/eip-icons.d.ts +12 -0
- package/dist/src/pieces/eip-icons.js +468 -0
- package/dist/src/pieces/emote.d.ts +13 -0
- package/dist/src/pieces/emote.js +88 -0
- package/dist/src/pieces/headline.d.ts +11 -0
- package/dist/src/pieces/headline.js +37 -0
- package/dist/src/pieces/index.d.ts +17 -0
- package/dist/src/pieces/index.js +20 -0
- package/dist/src/pieces/ink.d.ts +71 -0
- package/dist/src/pieces/ink.js +57 -0
- package/dist/src/pieces/keyboard.d.ts +9 -0
- package/dist/src/pieces/keyboard.js +33 -0
- package/dist/src/pieces/library.d.ts +320 -0
- package/dist/src/pieces/library.js +355 -0
- package/dist/src/pieces/link-icons.d.ts +23 -0
- package/dist/src/pieces/link-icons.js +101 -0
- package/dist/src/pieces/metro.d.ts +137 -0
- package/dist/src/pieces/metro.js +288 -0
- package/dist/src/pieces/node.d.ts +29 -0
- package/dist/src/pieces/node.js +56 -0
- package/dist/src/pieces/paper.d.ts +31 -0
- package/dist/src/pieces/paper.js +72 -0
- package/dist/src/pieces/params.d.ts +84 -0
- package/dist/src/pieces/params.js +158 -0
- package/dist/src/pieces/piece.d.ts +9 -0
- package/dist/src/pieces/piece.js +28 -0
- package/dist/src/pieces/pose.d.ts +16 -0
- package/dist/src/pieces/pose.js +30 -0
- package/dist/src/pieces/question-token.d.ts +9 -0
- package/dist/src/pieces/question-token.js +49 -0
- package/dist/src/pieces/react.d.ts +4 -0
- package/dist/src/pieces/react.js +13 -0
- package/dist/src/pieces/render.d.ts +2 -0
- package/dist/src/pieces/render.js +22 -0
- package/dist/src/pieces/skin.d.ts +22 -0
- package/dist/src/pieces/skin.js +13 -0
- package/dist/src/pieces/stamp.d.ts +11 -0
- package/dist/src/pieces/stamp.js +29 -0
- package/dist/src/pieces/supporting-cast.d.ts +35 -0
- package/dist/src/pieces/supporting-cast.js +168 -0
- package/dist/src/pieces/symbol.d.ts +13 -0
- package/dist/src/pieces/symbol.js +27 -0
- package/dist/src/pieces/ui-icons.d.ts +21 -0
- package/dist/src/pieces/ui-icons.js +35 -0
- package/dist/tokens/generated/tokens.d.ts +299 -0
- package/dist/tokens/generated/tokens.js +299 -0
- package/fonts/OFL.txt +97 -0
- package/fonts/SourceCodePro-Bold.ttf +0 -0
- package/fonts/SourceCodePro-Regular.ttf +0 -0
- package/fonts/SourceSans3-Black.ttf +0 -0
- package/fonts/SourceSans3-Bold.ttf +0 -0
- package/fonts/SourceSans3-Regular.ttf +0 -0
- package/fonts/SourceSerif4-Bold.ttf +0 -0
- package/package.json +88 -4
- package/tokens/generated/tokens.css +215 -0
- package/tokens/generated/tokens.json +298 -0
- package/tokens/generated/tokens.ts +302 -0
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
// The 27 EIP icons of the blog, as data (spec illustration-pieces, "EIP icons
|
|
2
|
+
// as data"; design §5). The first 26 were imported once from the published icon files
|
|
3
|
+
// (integration-patterns-in-mulesoft/images/icons/eip-*.svg) with every colour
|
|
4
|
+
// replaced by its token; this module is now the source and is edited by hand.
|
|
5
|
+
//
|
|
6
|
+
// Credit: each icon is redrawn from the Enterprise Integration Patterns icons
|
|
7
|
+
// by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com,
|
|
8
|
+
// licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Each
|
|
9
|
+
// entry keeps that credit in its description.
|
|
10
|
+
import { tokens } from "../../tokens/generated/tokens.js";
|
|
11
|
+
const C = tokens.color;
|
|
12
|
+
const I = tokens.illustration;
|
|
13
|
+
const n = (tag, attrs, children = []) => ({ tag, attrs, children });
|
|
14
|
+
/** Every icon draws in a 64x40 box. */
|
|
15
|
+
export const EIP_ICON_WIDTH = 64;
|
|
16
|
+
export const EIP_ICON_HEIGHT = 40;
|
|
17
|
+
export const EIP_ICONS = [
|
|
18
|
+
{
|
|
19
|
+
name: "aggregator",
|
|
20
|
+
title: "Aggregator",
|
|
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
|
+
nodes: [
|
|
23
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
24
|
+
n("rect", { x: "16", y: "8", width: "6", height: "6", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
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" }),
|
|
26
|
+
n("rect", { x: "16", y: "25", width: "6", height: "6", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
27
|
+
n("polyline", { points: "25.5,19.5 34.5,19.5", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
28
|
+
n("polygon", { points: "38.00,19.50 33.00,22.25 33.00,16.75", fill: C.ink }),
|
|
29
|
+
n("rect", { x: "40", y: "15.5", width: "8", height: "8", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "canonical-data-model",
|
|
34
|
+
title: "Canonical Data Model",
|
|
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.",
|
|
36
|
+
nodes: [
|
|
37
|
+
n("rect", { x: "2", y: "10", width: "14", height: "19", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
38
|
+
n("polyline", { points: "5,13 13,26", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
39
|
+
n("polyline", { points: "5,26 13,13", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
40
|
+
n("rect", { x: "47", y: "10", width: "14", height: "19", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
41
|
+
n("polyline", { points: "50,13 58,26", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
42
|
+
n("polyline", { points: "50,26 58,13", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
43
|
+
n("polyline", { points: "18.5,19.5 22.06,19.5", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
44
|
+
n("polygon", { points: "25.00,19.50 20.80,21.81 20.80,17.19", fill: C.ink }),
|
|
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" }),
|
|
46
|
+
n("polygon", { points: "46.00,19.50 41.80,21.81 41.80,17.19", fill: C.ink }),
|
|
47
|
+
n("rect", { x: "27", y: "14", width: "11", height: "11", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
48
|
+
n("rect", { x: "29.2", y: "14.75", width: "1.9", height: "9.5", fill: C.state.caller }),
|
|
49
|
+
n("rect", { x: "32.1", y: "14.75", width: "1.9", height: "9.5", fill: C.state.caller }),
|
|
50
|
+
n("rect", { x: "35", y: "14.75", width: "1.9", height: "9.5", fill: C.state.caller }),
|
|
51
|
+
n("rect", { x: "27", y: "14", width: "11", height: "11", fill: "none", stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "channel-adapter",
|
|
56
|
+
title: "Channel Adapter",
|
|
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.",
|
|
58
|
+
nodes: [
|
|
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" }),
|
|
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" }),
|
|
61
|
+
n("g", {}, [
|
|
62
|
+
n("path", { d: "M32,19.5 H39", fill: "none", stroke: C.ink, "stroke-width": "5.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
63
|
+
n("polygon", { points: "27.50,19.50 33.00,16.09 33.00,22.91", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
64
|
+
n("polygon", { points: "44.00,19.50 38.50,22.91 38.50,16.09", fill: C.ink, stroke: C.ink, "stroke-width": "3", "stroke-linejoin": "round" }),
|
|
65
|
+
]),
|
|
66
|
+
n("g", {}, [
|
|
67
|
+
n("path", { d: "M32,19.5 H39", fill: "none", stroke: I.iconLine, "stroke-width": "2.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
68
|
+
n("polygon", { points: "27.50,19.50 33.00,16.09 33.00,22.91", fill: I.iconLine }),
|
|
69
|
+
n("polygon", { points: "44.00,19.50 38.50,22.91 38.50,16.09", fill: I.iconLine }),
|
|
70
|
+
]),
|
|
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" }),
|
|
72
|
+
n("ellipse", { cx: "58", cy: "19.5", rx: "2.475", ry: "5.5", fill: C.white, stroke: C.ink, "stroke-width": "1.75" }),
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "claim-check",
|
|
77
|
+
title: "Claim Check",
|
|
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.",
|
|
79
|
+
nodes: [
|
|
80
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
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" }),
|
|
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" }),
|
|
83
|
+
n("polygon", { points: "40.00,16.00 35.00,18.75 35.00,13.25", fill: C.ink }),
|
|
84
|
+
n("rect", { x: "42", y: "12.5", width: "7", height: "7", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
85
|
+
n("polyline", { points: "48.5,28 56,28", fill: "none", stroke: C.ink, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
86
|
+
n("polyline", { points: "53,28 53,31", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
87
|
+
n("polyline", { points: "55.6,28 55.6,30.5", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
88
|
+
n("circle", { cx: "45.5", cy: "28", r: "3.4", fill: C.state.transitional, stroke: C.ink, "stroke-width": "1.6" }),
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "competing-consumers",
|
|
93
|
+
title: "Competing Consumers",
|
|
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.",
|
|
95
|
+
nodes: [
|
|
96
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
97
|
+
n("g", {}, [
|
|
98
|
+
n("path", { d: "M2,19 H22", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
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" }),
|
|
100
|
+
]),
|
|
101
|
+
n("g", {}, [
|
|
102
|
+
n("path", { d: "M2,19 H22", fill: "none", stroke: I.iconLine, "stroke-width": "3.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
103
|
+
n("polygon", { points: "31.00,19.00 22.00,24.58 22.00,13.42", fill: I.iconLine }),
|
|
104
|
+
]),
|
|
105
|
+
n("polyline", { points: "31.5,19 43.383108288109796,11.62427761427668", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
106
|
+
n("polygon", { points: "46.00,10.00 43.54,14.38 40.99,10.26", fill: C.ink }),
|
|
107
|
+
n("polygon", { points: "50.50,7.00 53.50,10.00 50.50,13.00 47.50,10.00", fill: C.ink }),
|
|
108
|
+
n("polyline", { points: "31.5,19 42.92,19.0", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
109
|
+
n("polygon", { points: "46.00,19.00 41.60,21.42 41.60,16.58", fill: C.ink }),
|
|
110
|
+
n("polygon", { points: "50.50,16.00 53.50,19.00 50.50,22.00 47.50,19.00", fill: C.ink }),
|
|
111
|
+
n("polyline", { points: "31.5,19 43.383108288109796,26.37572238572332", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
112
|
+
n("polygon", { points: "46.00,28.00 40.99,27.74 43.54,23.62", fill: C.ink }),
|
|
113
|
+
n("polygon", { points: "50.50,25.00 53.50,28.00 50.50,31.00 47.50,28.00", fill: C.ink }),
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "content-based-router",
|
|
118
|
+
title: "Content-Based Router",
|
|
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.",
|
|
120
|
+
nodes: [
|
|
121
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
122
|
+
n("polyline", { points: "6,20 17,20", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
123
|
+
n("polygon", { points: "17.00,17.40 19.60,20.00 17.00,22.60 14.40,20.00", fill: C.ink }),
|
|
124
|
+
n("polyline", { points: "17,20 39,11", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
125
|
+
n("polygon", { points: "39.00,8.40 41.60,11.00 39.00,13.60 36.40,11.00", fill: C.ink }),
|
|
126
|
+
n("polyline", { points: "39,11 58,11", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
127
|
+
n("polygon", { points: "39.00,17.40 41.60,20.00 39.00,22.60 36.40,20.00", fill: C.ink }),
|
|
128
|
+
n("polyline", { points: "39,20 58,20", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
129
|
+
n("polygon", { points: "39.00,25.90 41.60,28.50 39.00,31.10 36.40,28.50", fill: C.ink }),
|
|
130
|
+
n("polyline", { points: "39,28.5 58,28.5", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: "content-enricher",
|
|
135
|
+
title: "Content Enricher",
|
|
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.",
|
|
137
|
+
nodes: [
|
|
138
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
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" }),
|
|
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" }),
|
|
141
|
+
n("polygon", { points: "36.00,19.00 31.00,21.75 31.00,16.25", fill: C.ink }),
|
|
142
|
+
n("rect", { x: "38", y: "12", width: "14", height: "14", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "content-filter",
|
|
147
|
+
title: "Content Filter",
|
|
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.",
|
|
149
|
+
nodes: [
|
|
150
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
151
|
+
n("rect", { x: "13", y: "12", width: "14", height: "14", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
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" }),
|
|
153
|
+
n("polygon", { points: "42.00,19.00 37.00,21.75 37.00,16.25", fill: C.ink }),
|
|
154
|
+
n("rect", { x: "44.5", y: "15.5", width: "7", height: "7", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: "correlation-identifier",
|
|
159
|
+
title: "Correlation Identifier",
|
|
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.",
|
|
161
|
+
nodes: [
|
|
162
|
+
n("circle", { cx: "12", cy: "9", r: "6", fill: I.iconLine, stroke: C.ink, "stroke-width": "1.75" }),
|
|
163
|
+
n("circle", { cx: "40", cy: "9", r: "6", fill: I.iconLine, stroke: C.ink, "stroke-width": "1.75" }),
|
|
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" }),
|
|
165
|
+
n("polygon", { points: "18.60,9.00 23.60,6.25 23.60,11.75", fill: C.ink }),
|
|
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" }),
|
|
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" }),
|
|
168
|
+
n("rect", { x: "18", y: "22", width: "12", height: "13", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
169
|
+
n("rect", { x: "46", y: "22", width: "12", height: "13", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
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" }),
|
|
171
|
+
n("polyline", { points: "22.1,31 25.9,31", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
172
|
+
n("path", { d: "M49.6,25.2 V34 H53 Q55.4,34 55.4,31.7 Q55.4,29.6 53,29.6 H49.6 M49.6,29.6 H52.6 Q54.8,29.6 54.8,27.4 Q54.8,25.2 52.6,25.2 H49.6", fill: "none", stroke: C.ink, "stroke-width": "1.8", "stroke-linejoin": "round" }),
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "dead-letter-channel",
|
|
177
|
+
title: "Dead Letter Channel",
|
|
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.",
|
|
179
|
+
nodes: [
|
|
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" }),
|
|
181
|
+
n("ellipse", { cx: "53", cy: "11", rx: "2.9250000000000003", ry: "6.5", fill: C.white, stroke: C.ink, "stroke-width": "1.75" }),
|
|
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" }),
|
|
183
|
+
],
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: "event-driven-consumer",
|
|
187
|
+
title: "Event-Driven Consumer",
|
|
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.",
|
|
189
|
+
nodes: [
|
|
190
|
+
n("rect", { x: "18", y: "4", width: "40", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
191
|
+
n("g", {}, [
|
|
192
|
+
n("path", { d: "M2,19 H27", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
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" }),
|
|
194
|
+
]),
|
|
195
|
+
n("g", {}, [
|
|
196
|
+
n("path", { d: "M2,19 H27", fill: "none", stroke: I.iconLine, "stroke-width": "3.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
197
|
+
n("polygon", { points: "36.00,19.00 27.00,24.58 27.00,13.42", fill: I.iconLine }),
|
|
198
|
+
]),
|
|
199
|
+
n("polyline", { points: "38.5,19 45.28,19.0", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
200
|
+
n("polygon", { points: "48.50,19.00 43.90,21.53 43.90,16.47", fill: C.ink }),
|
|
201
|
+
n("polygon", { points: "52.50,15.80 55.70,19.00 52.50,22.20 49.30,19.00", fill: C.ink }),
|
|
202
|
+
],
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "guaranteed-delivery",
|
|
206
|
+
title: "Guaranteed Delivery",
|
|
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.",
|
|
208
|
+
nodes: [
|
|
209
|
+
n("g", {}, [
|
|
210
|
+
n("path", { d: "M4,10 H50", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
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" }),
|
|
212
|
+
]),
|
|
213
|
+
n("g", {}, [
|
|
214
|
+
n("path", { d: "M4,10 H50", fill: "none", stroke: I.iconLine, "stroke-width": "3.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
215
|
+
n("polygon", { points: "59.00,10.00 50.00,15.58 50.00,4.42", fill: I.iconLine }),
|
|
216
|
+
]),
|
|
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" }),
|
|
218
|
+
n("ellipse", { cx: "32", cy: "23", rx: "7", ry: "2.6", fill: C.white, stroke: C.ink, "stroke-width": "1.75" }),
|
|
219
|
+
],
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: "idempotent-receiver",
|
|
223
|
+
title: "Idempotent Receiver",
|
|
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.",
|
|
225
|
+
nodes: [
|
|
226
|
+
n("rect", { x: "16", y: "9", width: "42", height: "27", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
227
|
+
n("g", {}, [
|
|
228
|
+
n("path", { d: "M3,23 H27", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
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" }),
|
|
230
|
+
]),
|
|
231
|
+
n("g", {}, [
|
|
232
|
+
n("path", { d: "M3,23 H27", fill: "none", stroke: I.iconLine, "stroke-width": "3.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
233
|
+
n("polygon", { points: "36.00,23.00 27.00,28.58 27.00,17.42", fill: I.iconLine }),
|
|
234
|
+
]),
|
|
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" }),
|
|
236
|
+
n("circle", { cx: "16", cy: "9.5", r: "7.6", fill: I.iconLine, stroke: C.ink, "stroke-width": "1.75" }),
|
|
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" }),
|
|
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" }),
|
|
239
|
+
],
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
name: "invalid-message-channel",
|
|
243
|
+
title: "Invalid Message Channel",
|
|
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.",
|
|
245
|
+
nodes: [
|
|
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" }),
|
|
247
|
+
n("ellipse", { cx: "53", cy: "11", rx: "2.9250000000000003", ry: "6.5", fill: C.white, stroke: C.ink, "stroke-width": "1.75" }),
|
|
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" }),
|
|
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" }),
|
|
250
|
+
n("circle", { cx: "32", cy: "33.2", r: "1.15", fill: C.ink }),
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: "message-expiration",
|
|
255
|
+
title: "Message Expiration",
|
|
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.",
|
|
257
|
+
nodes: [
|
|
258
|
+
n("circle", { cx: "32", cy: "20", r: "16", fill: C.white, stroke: C.ink, "stroke-width": "2.5" }),
|
|
259
|
+
n("polyline", { points: "32,20 32,8.5", fill: "none", stroke: C.ink, "stroke-width": "2.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
260
|
+
n("polyline", { points: "32,20 42,20", fill: "none", stroke: C.ink, "stroke-width": "2.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: "message-filter",
|
|
265
|
+
title: "Message Filter",
|
|
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.",
|
|
267
|
+
nodes: [
|
|
268
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
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" }),
|
|
270
|
+
],
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
name: "message-translator",
|
|
274
|
+
title: "Message Translator",
|
|
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.",
|
|
276
|
+
nodes: [
|
|
277
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
278
|
+
n("rect", { x: "11", y: "8", width: "17", height: "22", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
279
|
+
n("rect", { x: "36", y: "8", width: "17", height: "22", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
280
|
+
n("polyline", { points: "13.5,10.5 50.5,27.5", fill: "none", stroke: C.ink, "stroke-width": "2.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
281
|
+
n("polyline", { points: "13.5,27.5 50.5,10.5", fill: "none", stroke: C.ink, "stroke-width": "2.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
282
|
+
],
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: "point-to-point-channel",
|
|
286
|
+
title: "Point-to-Point Channel",
|
|
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.",
|
|
288
|
+
nodes: [
|
|
289
|
+
n("g", {}, [
|
|
290
|
+
n("path", { d: "M5,20 H50", fill: "none", stroke: C.ink, "stroke-width": "7.4", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
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" }),
|
|
292
|
+
]),
|
|
293
|
+
n("g", {}, [
|
|
294
|
+
n("path", { d: "M5,20 H50", fill: "none", stroke: I.iconLine, "stroke-width": "4.4", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
295
|
+
n("polygon", { points: "59.00,20.00 50.00,25.58 50.00,14.42", fill: I.iconLine }),
|
|
296
|
+
]),
|
|
297
|
+
],
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: "polling-consumer",
|
|
301
|
+
title: "Polling Consumer",
|
|
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.",
|
|
303
|
+
nodes: [
|
|
304
|
+
n("rect", { x: "18", y: "4", width: "40", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
305
|
+
n("g", {}, [
|
|
306
|
+
n("path", { d: "M2,19 H22", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
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" }),
|
|
308
|
+
]),
|
|
309
|
+
n("g", {}, [
|
|
310
|
+
n("path", { d: "M2,19 H22", fill: "none", stroke: I.iconLine, "stroke-width": "3.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
311
|
+
n("polygon", { points: "31.00,19.00 22.00,24.58 22.00,13.42", fill: I.iconLine }),
|
|
312
|
+
]),
|
|
313
|
+
n("path", { d: "M47.80,22.17 A7.5,7.5 0 1 1 47.14,14.70", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round" }),
|
|
314
|
+
n("polygon", { points: "48.98,17.32 44.47,15.10 48.44,12.33", fill: C.ink }),
|
|
315
|
+
n("polygon", { points: "51.50,15.80 54.70,19.00 51.50,22.20 48.30,19.00", fill: C.ink }),
|
|
316
|
+
],
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
name: "process-manager",
|
|
320
|
+
title: "Process Manager",
|
|
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.",
|
|
322
|
+
nodes: [
|
|
323
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
324
|
+
n("polyline", { points: "32,11.5 32,13", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
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" }),
|
|
326
|
+
n("polyline", { points: "17.5,23.5 46.5,23.5", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
327
|
+
n("polyline", { points: "17.5,23.5 17.5,26", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
328
|
+
n("polyline", { points: "32,23.5 32,26", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
329
|
+
n("polyline", { points: "46.5,23.5 46.5,26", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
330
|
+
n("circle", { cx: "32", cy: "9", r: "2.6", fill: C.white, stroke: C.ink, "stroke-width": "1.5" }),
|
|
331
|
+
n("polygon", { points: "32.00,13.00 36.20,17.20 32.00,21.40 27.80,17.20", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
332
|
+
n("rect", { x: "11.5", y: "26", width: "12", height: "5.5", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
333
|
+
n("rect", { x: "26", y: "26", width: "12", height: "5.5", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
334
|
+
n("rect", { x: "40.5", y: "26", width: "12", height: "5.5", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
335
|
+
],
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: "publish-subscribe-channel",
|
|
339
|
+
title: "Publish-Subscribe Channel",
|
|
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.",
|
|
341
|
+
nodes: [
|
|
342
|
+
n("g", {}, [
|
|
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" }),
|
|
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" }),
|
|
345
|
+
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" }),
|
|
346
|
+
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" }),
|
|
347
|
+
]),
|
|
348
|
+
n("g", {}, [
|
|
349
|
+
n("path", { d: "M4,20 H20 M20,7 V33 M20,7 H50 M20,20 H50 M20,33 H50", fill: "none", stroke: I.iconLine, "stroke-width": "3.2", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
350
|
+
n("polygon", { points: "59.00,7.00 51.00,11.96 51.00,2.04", fill: I.iconLine }),
|
|
351
|
+
n("polygon", { points: "59.00,20.00 51.00,24.96 51.00,15.04", fill: I.iconLine }),
|
|
352
|
+
n("polygon", { points: "59.00,33.00 51.00,37.96 51.00,28.04", fill: I.iconLine }),
|
|
353
|
+
]),
|
|
354
|
+
],
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
name: "recipient-list",
|
|
358
|
+
title: "Recipient List",
|
|
359
|
+
description: "Icon of the Recipient List pattern: a component whose list sends one message to several outputs. Redrawn from the Enterprise Integration Patterns icon by Gregor Hohpe and Bobby Woolf, enterpriseintegrationpatterns.com, CC BY 4.0.",
|
|
360
|
+
nodes: [
|
|
361
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
362
|
+
n("rect", { x: "11", y: "9", width: "15", height: "20", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
363
|
+
n("polyline", { points: "14,14 23,14", fill: "none", stroke: C.ink, "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
364
|
+
n("polyline", { points: "14,19 23,19", fill: "none", stroke: C.ink, "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
365
|
+
n("polyline", { points: "14,24 23,24", fill: "none", stroke: C.ink, "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
366
|
+
n("polyline", { points: "26,19.5 42,10", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
367
|
+
n("polyline", { points: "26,19.5 42,19.5", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
368
|
+
n("polyline", { points: "26,19.5 42,29", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
369
|
+
n("polygon", { points: "42.00,7.40 44.60,10.00 42.00,12.60 39.40,10.00", fill: C.ink }),
|
|
370
|
+
n("polyline", { points: "42,10 58,10", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
371
|
+
n("polygon", { points: "42.00,16.90 44.60,19.50 42.00,22.10 39.40,19.50", fill: C.ink }),
|
|
372
|
+
n("polyline", { points: "42,19.5 58,19.5", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
373
|
+
n("polygon", { points: "42.00,26.40 44.60,29.00 42.00,31.60 39.40,29.00", fill: C.ink }),
|
|
374
|
+
n("polyline", { points: "42,29 58,29", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
375
|
+
],
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: "request-reply",
|
|
379
|
+
title: "Request-Reply",
|
|
380
|
+
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.",
|
|
381
|
+
nodes: [
|
|
382
|
+
n("rect", { x: "4", y: "3.5", width: "11", height: "11", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
383
|
+
n("g", {}, [
|
|
384
|
+
n("path", { d: "M21,10 H50", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
385
|
+
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" }),
|
|
386
|
+
]),
|
|
387
|
+
n("g", {}, [
|
|
388
|
+
n("path", { d: "M21,10 H50", fill: "none", stroke: I.iconLine, "stroke-width": "3.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
389
|
+
n("polygon", { points: "59.00,10.00 50.00,15.58 50.00,4.42", fill: I.iconLine }),
|
|
390
|
+
]),
|
|
391
|
+
n("g", {}, [
|
|
392
|
+
n("path", { d: "M14,30 H43", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
393
|
+
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" }),
|
|
394
|
+
]),
|
|
395
|
+
n("g", {}, [
|
|
396
|
+
n("path", { d: "M14,30 H43", fill: "none", stroke: I.iconLine, "stroke-width": "3.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
397
|
+
n("polygon", { points: "5.00,30.00 14.00,24.42 14.00,35.58", fill: I.iconLine }),
|
|
398
|
+
]),
|
|
399
|
+
n("rect", { x: "48", y: "24", width: "11", height: "11", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
400
|
+
],
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
name: "return-address",
|
|
404
|
+
title: "Return Address",
|
|
405
|
+
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.",
|
|
406
|
+
nodes: [
|
|
407
|
+
n("rect", { x: "4.5", y: "4", width: "54", height: "31", rx: "1.5", fill: C.state.transitional, stroke: C.ink, "stroke-width": "2" }),
|
|
408
|
+
n("polyline", { points: "10,10 29,10", fill: "none", stroke: C.ink, "stroke-width": "2.4", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
409
|
+
n("polyline", { points: "10,14.5 29,14.5", fill: "none", stroke: C.ink, "stroke-width": "2.4", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
410
|
+
n("polyline", { points: "10,19 29,19", fill: "none", stroke: C.ink, "stroke-width": "2.4", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
411
|
+
n("rect", { x: "45", y: "8", width: "9", height: "7.5", fill: C.white, stroke: C.ink, "stroke-width": "1.4", "stroke-linejoin": "round" }),
|
|
412
|
+
n("polyline", { points: "45.5,8.5 49.5,12.3 53.5,8.5", fill: "none", stroke: C.ink, "stroke-width": "1.2", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
413
|
+
n("polyline", { points: "22,25.5 46,25.5", fill: "none", stroke: C.ink, "stroke-width": "1.3", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
414
|
+
n("polyline", { points: "22,29.5 46,29.5", fill: "none", stroke: C.ink, "stroke-width": "1.3", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
415
|
+
],
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
name: "scatter-gather",
|
|
419
|
+
title: "Scatter-Gather",
|
|
420
|
+
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.",
|
|
421
|
+
nodes: [
|
|
422
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
423
|
+
n("polyline", { points: "6,19 14,19", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
424
|
+
n("polyline", { points: "50,19 58,19", fill: "none", stroke: C.ink, "stroke-width": "1.75", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
425
|
+
n("polyline", { points: "14,19 32,9.5 50,19", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
426
|
+
n("polyline", { points: "14,19 32,19 50,19", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
427
|
+
n("polyline", { points: "14,19 32,28.5 50,19", fill: "none", stroke: C.ink, "stroke-width": "1.6", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
428
|
+
n("circle", { cx: "14", cy: "19", r: "2.4", fill: C.ink }),
|
|
429
|
+
n("circle", { cx: "50", cy: "19", r: "2.4", fill: C.ink }),
|
|
430
|
+
n("polygon", { points: "32.00,6.30 35.20,9.50 32.00,12.70 28.80,9.50", fill: C.ink }),
|
|
431
|
+
n("polygon", { points: "32.00,15.80 35.20,19.00 32.00,22.20 28.80,19.00", fill: C.ink }),
|
|
432
|
+
n("polygon", { points: "32.00,25.30 35.20,28.50 32.00,31.70 28.80,28.50", fill: C.ink }),
|
|
433
|
+
],
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
name: "splitter",
|
|
437
|
+
title: "Splitter",
|
|
438
|
+
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.",
|
|
439
|
+
nodes: [
|
|
440
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
441
|
+
n("rect", { x: "16", y: "15.5", width: "8", height: "8", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
442
|
+
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" }),
|
|
443
|
+
n("polygon", { points: "39.00,19.50 34.00,22.25 34.00,16.75", fill: C.ink }),
|
|
444
|
+
n("rect", { x: "42", y: "8", width: "6", height: "6", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
445
|
+
n("rect", { x: "42", y: "16.5", width: "6", height: "6", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
446
|
+
n("rect", { x: "42", y: "25", width: "6", height: "6", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
447
|
+
],
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
name: "transactional-client",
|
|
451
|
+
title: "Transactional Client",
|
|
452
|
+
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.",
|
|
453
|
+
nodes: [
|
|
454
|
+
n("rect", { x: "6", y: "4", width: "52", height: "30", rx: "3", fill: C.state.healthy, stroke: C.ink, "stroke-width": "2" }),
|
|
455
|
+
n("ellipse", { cx: "37", cy: "19", rx: "17", ry: "11.5", fill: C.state.caller, stroke: C.ink, "stroke-width": "1.6" }),
|
|
456
|
+
n("rect", { x: "39", y: "13", width: "12", height: "12", fill: C.white, stroke: C.ink, "stroke-width": "1.5", "stroke-linejoin": "round" }),
|
|
457
|
+
n("g", {}, [
|
|
458
|
+
n("path", { d: "M2,19 H27", fill: "none", stroke: C.ink, "stroke-width": "6.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
459
|
+
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" }),
|
|
460
|
+
]),
|
|
461
|
+
n("g", {}, [
|
|
462
|
+
n("path", { d: "M2,19 H27", fill: "none", stroke: I.iconLine, "stroke-width": "3.6", "stroke-linecap": "butt", "stroke-linejoin": "round" }),
|
|
463
|
+
n("polygon", { points: "36.00,19.00 27.00,24.58 27.00,13.42", fill: I.iconLine }),
|
|
464
|
+
]),
|
|
465
|
+
],
|
|
466
|
+
},
|
|
467
|
+
];
|
|
468
|
+
export const EIP_ICON_NAMES = EIP_ICONS.map((icon) => icon.name);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type SurfaceName } from "./ink.ts";
|
|
2
|
+
export declare const EMOTE_KINDS: readonly ["idea", "doubt", "problem", "worked", "refused", "pressure", "liked", "waiting"];
|
|
3
|
+
export type EmoteKind = (typeof EMOTE_KINDS)[number];
|
|
4
|
+
export type EmoteParams = {
|
|
5
|
+
kind: EmoteKind;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
scale?: number;
|
|
9
|
+
burst?: boolean;
|
|
10
|
+
surface?: SurfaceName;
|
|
11
|
+
};
|
|
12
|
+
/** One reaction symbol with a fixed meaning, centred on (x, y), beside a head. */
|
|
13
|
+
export declare const emote: import("./piece.ts").Piece<EmoteParams>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// `emote` (spec illustration-pieces, "Emote", "Emote colours", "Emotes carry
|
|
2
|
+
// their own stroke", "Ink on the dark surface"): eight reaction symbols with a
|
|
3
|
+
// fixed meaning (ADR 0005), drawn in the v2 grammar of ADR 0009. Moved from
|
|
4
|
+
// cast.ts in 0.7.0, when the seven-role cast was removed (ADR 0007 amendment).
|
|
5
|
+
//
|
|
6
|
+
// The v2 drawing is the one the owner approved in the card 301 preview: no hard
|
|
7
|
+
// shadow; the idea bulb glows in the cast's eye amber (`cast.eyes`) on a
|
|
8
|
+
// `brand.light.border` base, its burst is rays only (no disc); drops and Zs are
|
|
9
|
+
// white; the heart takes the one accent; `problem` and `refused` keep the
|
|
10
|
+
// failure colour and `worked` the healthy one, because they mean it.
|
|
11
|
+
//
|
|
12
|
+
// On the dark surface the outlines, the rays and the Z casings take
|
|
13
|
+
// `surface.dark.muted` (ink vanishes on black, the cast's rule); the marks drawn
|
|
14
|
+
// over a light or state fill (?, !, tick, X, the bulb filament) stay ink. The
|
|
15
|
+
// shapes are the same on both surfaces, only those strokes change.
|
|
16
|
+
//
|
|
17
|
+
// What can go wrong: the schema rejects an unknown kind, a scale outside
|
|
18
|
+
// (0, 10] or an unknown surface, naming the parameter.
|
|
19
|
+
import { drawn, el, g } from "./node.js";
|
|
20
|
+
import { surfaceParam } from "./ink.js";
|
|
21
|
+
import { colour, pos } from "./params.js";
|
|
22
|
+
import { definePiece } from "./piece.js";
|
|
23
|
+
export const EMOTE_KINDS = ["idea", "doubt", "problem", "worked", "refused", "pressure", "liked", "waiting"];
|
|
24
|
+
const c = (path) => colour(path);
|
|
25
|
+
const ink = () => c("color.ink");
|
|
26
|
+
const lineOf = (surface) => (surface === "dark" ? c("surface.dark.muted") : ink());
|
|
27
|
+
const rays = (line, cx, cy, r1, r2, n, from = -150, to = -30) => Array.from({ length: n }, (_, i) => {
|
|
28
|
+
const a = ((from + (i * (to - from)) / (n - 1)) * Math.PI) / 180;
|
|
29
|
+
const r = (v) => Math.round(v * 100) / 100;
|
|
30
|
+
return el("path", { d: `M${r(cx + r1 * Math.cos(a))},${r(cy + r1 * Math.sin(a))} L${r(cx + r2 * Math.cos(a))},${r(cy + r2 * Math.sin(a))}`, stroke: line, "stroke-width": 6, "stroke-linecap": "round" });
|
|
31
|
+
});
|
|
32
|
+
/** The outline of an emote's body shape. */
|
|
33
|
+
const outline = (line) => ({ stroke: line, "stroke-width": 5, "stroke-linejoin": "round", "stroke-linecap": "round" });
|
|
34
|
+
const disc = (line, cx, cy, r, fill) => el("circle", { cx, cy, r, fill, ...outline(line) });
|
|
35
|
+
const zed = (line, x, y, s) => {
|
|
36
|
+
// A Z of height s with its top-left at (x, y - s): a casing in the line colour, a white fill.
|
|
37
|
+
const w = s * 0.72, d = `M${x},${y - s} H${x + w} L${x},${y} H${x + w}`;
|
|
38
|
+
return [
|
|
39
|
+
el("path", { d, fill: "none", stroke: line, "stroke-width": s * 0.34, "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
40
|
+
el("path", { d, fill: "none", stroke: c("color.white"), "stroke-width": s * 0.16, "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
41
|
+
];
|
|
42
|
+
};
|
|
43
|
+
const drawEmote = (p) => {
|
|
44
|
+
const { kind, x: cx, y: cy } = p, burst = p.burst ?? true, s = p.scale ?? 1;
|
|
45
|
+
const line = lineOf(p.surface);
|
|
46
|
+
const parts = [];
|
|
47
|
+
switch (kind) {
|
|
48
|
+
case "idea": {
|
|
49
|
+
if (burst)
|
|
50
|
+
parts.push(...rays(line, cx, cy - 6, 50, 72, 7, -180, 0));
|
|
51
|
+
const bulb = `M${cx - 30},${cy - 10} A34,34 0 1 1 ${cx + 30},${cy - 10} Q${cx + 22},${cy + 6} ${cx + 18},${cy + 22} H${cx - 18} Q${cx - 22},${cy + 6} ${cx - 30},${cy - 10} Z`;
|
|
52
|
+
parts.push(el("path", { d: bulb, fill: c("cast.eyes"), ...outline(line) }), el("path", { d: `M${cx - 16},${cy - 22} Q${cx - 12},${cy - 32} ${cx - 2},${cy - 34}`, fill: "none", stroke: c("color.white"), "stroke-width": 6, "stroke-linecap": "round" }), el("path", { d: `M${cx - 8},${cy + 22} V${cy} L${cx},${cy + 8} L${cx + 8},${cy} V${cy + 22}`, fill: "none", stroke: ink(), "stroke-width": 4, "stroke-linejoin": "round" }), el("rect", { x: cx - 18, y: cy + 22, width: 36, height: 12, rx: 3, fill: c("brand.light.border"), ...outline(line), "stroke-width": 4 }), el("rect", { x: cx - 14, y: cy + 34, width: 28, height: 10, rx: 5, fill: c("brand.light.border"), ...outline(line), "stroke-width": 4 }));
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
case "doubt":
|
|
56
|
+
parts.push(disc(line, cx, cy, 40, c("color.white")), el("path", { d: `M${cx - 14},${cy - 12} Q${cx - 14},${cy - 28} ${cx},${cy - 28} Q${cx + 16},${cy - 28} ${cx + 16},${cy - 13} Q${cx + 16},${cy - 2} ${cx + 2},${cy + 4} V${cy + 10}`, fill: "none", stroke: ink(), "stroke-width": 9, "stroke-linecap": "round", "stroke-linejoin": "round" }), el("circle", { cx: cx + 2, cy: cy + 24, r: 6, fill: ink() }));
|
|
57
|
+
break;
|
|
58
|
+
case "problem":
|
|
59
|
+
if (burst)
|
|
60
|
+
parts.push(...rays(line, cx, cy, 48, 70, 5));
|
|
61
|
+
parts.push(el("path", { d: `M${cx},${cy - 44} L${cx + 46},${cy + 34} H${cx - 46} Z`, fill: c("color.state.failure"), ...outline(line) }), el("path", { d: `M${cx},${cy - 18} V${cy + 8}`, stroke: ink(), "stroke-width": 9, "stroke-linecap": "round" }), el("circle", { cx, cy: cy + 22, r: 5.5, fill: ink() }));
|
|
62
|
+
break;
|
|
63
|
+
case "pressure":
|
|
64
|
+
// Two white drops; no highlight (a white stroke on a white drop would not show).
|
|
65
|
+
for (const [dx, dy, k] of [[0, 0, 1], [30, 22, 0.6]])
|
|
66
|
+
parts.push(el("path", { d: `M${cx + dx},${cy + dy - 34 * k} Q${cx + dx + 24 * k},${cy + dy} ${cx + dx},${cy + dy + 12 * k} Q${cx + dx - 24 * k},${cy + dy} ${cx + dx},${cy + dy - 34 * k} Z`, fill: c("color.white"), ...outline(line), "stroke-width": 4 }));
|
|
67
|
+
break;
|
|
68
|
+
case "liked":
|
|
69
|
+
parts.push(el("path", { d: `M${cx},${cy + 30} C${cx - 50},${cy} ${cx - 34},${cy - 40} ${cx},${cy - 16} C${cx + 34},${cy - 40} ${cx + 50},${cy} ${cx},${cy + 30} Z`, fill: c("brand.light.accent"), ...outline(line) }));
|
|
70
|
+
break;
|
|
71
|
+
case "worked":
|
|
72
|
+
if (burst)
|
|
73
|
+
parts.push(...rays(line, cx, cy, 48, 68, 5));
|
|
74
|
+
parts.push(disc(line, cx, cy, 38, c("color.state.healthy")), el("path", { d: `M${cx - 16},${cy} L${cx - 4},${cy + 12} L${cx + 18},${cy - 12}`, fill: "none", stroke: ink(), "stroke-width": 8, "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
75
|
+
break;
|
|
76
|
+
case "refused":
|
|
77
|
+
parts.push(disc(line, cx, cy, 38, c("color.state.failure")), el("path", { d: `M${cx - 13},${cy - 13} L${cx + 13},${cy + 13} M${cx + 13},${cy - 13} L${cx - 13},${cy + 13}`, stroke: ink(), "stroke-width": 8, "stroke-linecap": "round" }));
|
|
78
|
+
break;
|
|
79
|
+
case "waiting":
|
|
80
|
+
parts.push(...zed(line, cx - 12, cy + 12, 26), ...zed(line, cx + 20, cy - 20, 20), ...zed(line, cx + 44, cy - 46, 14));
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
const attrs = s === 1 ? { "data-emote": kind, stroke: "none" } : { "data-emote": kind, stroke: "none", transform: `translate(${cx} ${cy}) scale(${s}) translate(${-cx} ${-cy})` };
|
|
84
|
+
return drawn([g(attrs, ...parts)]);
|
|
85
|
+
};
|
|
86
|
+
const unit = { kind: "number", min: 0, exclusiveMin: true, max: 10 };
|
|
87
|
+
/** One reaction symbol with a fixed meaning, centred on (x, y), beside a head. */
|
|
88
|
+
export const emote = definePiece("emote", { kind: { kind: "enum", required: true, values: EMOTE_KINDS }, x: pos(), y: pos(), scale: unit, burst: { kind: "boolean" }, surface: surfaceParam }, drawEmote);
|