@sccharts-lab/diagram 0.0.0-stage → 0.1.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 +277 -0
- package/README.md +169 -2
- package/dist/dataflow.d.ts +18 -0
- package/dist/dataflow.js +216 -0
- package/dist/dataflow.js.map +1 -0
- package/dist/diagram.css +521 -0
- package/dist/elk-types.d.ts +50 -0
- package/dist/elk-types.js +5 -0
- package/dist/elk-types.js.map +1 -0
- package/dist/elk-worker.d.ts +10 -0
- package/dist/elk-worker.js +18 -0
- package/dist/elk-worker.js.map +1 -0
- package/dist/font-metrics.d.ts +13 -0
- package/dist/font-metrics.js +23 -0
- package/dist/font-metrics.js.map +1 -0
- package/dist/fonts/atkinson-hyperlegible-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/atkinson-hyperlegible-mono.LICENSE.txt +93 -0
- package/dist/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/atkinson-hyperlegible-next.LICENSE.txt +93 -0
- package/dist/fonts.css +42 -0
- package/dist/geometry.d.ts +24 -0
- package/dist/geometry.js +115 -0
- package/dist/geometry.js.map +1 -0
- package/dist/highlight.d.ts +35 -0
- package/dist/highlight.js +83 -0
- package/dist/highlight.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/layout.d.ts +6 -0
- package/dist/layout.js +838 -0
- package/dist/layout.js.map +1 -0
- package/dist/measure.d.ts +23 -0
- package/dist/measure.js +73 -0
- package/dist/measure.js.map +1 -0
- package/dist/render.d.ts +3 -0
- package/dist/render.js +327 -0
- package/dist/render.js.map +1 -0
- package/dist/types.d.ts +221 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/package.json +70 -3
package/dist/diagram.css
ADDED
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* SCCharts diagrams in KIELER's notation (markup from packages/diagram/src/render.ts).
|
|
3
|
+
*
|
|
4
|
+
* Colours come only from the --sc-* custom properties of the site theme (src/styles/tokens.css); the
|
|
5
|
+
* fallbacks are KIELER's own light colours, so a diagram also looks right without the theme.
|
|
6
|
+
*
|
|
7
|
+
* Highlight classes a simulation toggles on elements with a data-id:
|
|
8
|
+
* is-active state active after the tick is-taken transition fired this tick
|
|
9
|
+
* is-entered state entered this tick is-exited state left this tick
|
|
10
|
+
* is-focus linked with the cursor in the source is-error named by a diagnostic
|
|
11
|
+
* is-dimmed de-emphasised
|
|
12
|
+
* Every highlight changes more than the colour (stroke width, glow, a tint, a marker). No highlight of the
|
|
13
|
+
* simulation dashes anything: in KIELER's notation a dashed transition is an immediate one, so each edge keeps
|
|
14
|
+
* its own dash pattern (an immediate transition that fired stays dashed, a delayed one solid). Only is-focus (the
|
|
15
|
+
* pointer or keyboard, not the simulation) outlines a state with dashes; it draws transitions solid.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/* ----- Canvas and text ----------------------------------------------------------------------------- */
|
|
19
|
+
|
|
20
|
+
.sc-diagram {
|
|
21
|
+
overflow: visible;
|
|
22
|
+
font-family: var(--sc-font, 'Atkinson Hyperlegible Next Variable', 'Atkinson Hyperlegible Next', system-ui, sans-serif);
|
|
23
|
+
-webkit-user-select: text;
|
|
24
|
+
user-select: text;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sc-diagram text {
|
|
28
|
+
/* The layout measures text without kerning or ligatures; render it the same way. */
|
|
29
|
+
font-kerning: none;
|
|
30
|
+
font-variant-ligatures: none;
|
|
31
|
+
font-feature-settings: 'kern' 0, 'liga' 0, 'calt' 0;
|
|
32
|
+
font-optical-sizing: none;
|
|
33
|
+
letter-spacing: 0;
|
|
34
|
+
word-spacing: 0;
|
|
35
|
+
text-rendering: geometricPrecision;
|
|
36
|
+
white-space: pre;
|
|
37
|
+
fill: var(--sc-decl-text, #000);
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sc-diagram .sc-bold,
|
|
42
|
+
.sc-diagram .sc-kw {
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
}
|
|
45
|
+
.sc-diagram .sc-kw,
|
|
46
|
+
.sc-diagram .sc-hl {
|
|
47
|
+
fill: var(--sc-keyword, #730041);
|
|
48
|
+
}
|
|
49
|
+
.sc-diagram .sc-sd {
|
|
50
|
+
fill: #28997e;
|
|
51
|
+
}
|
|
52
|
+
.sc-diagram .sc-mono {
|
|
53
|
+
font-family: var(--sc-font-mono, 'Atkinson Hyperlegible Mono Variable', 'Atkinson Hyperlegible Mono', ui-monospace, monospace);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.sc-diagram .sc-title,
|
|
57
|
+
.sc-diagram .sc-state-label {
|
|
58
|
+
fill: var(--sc-state-text, #000);
|
|
59
|
+
}
|
|
60
|
+
.sc-diagram .sc-action {
|
|
61
|
+
fill: var(--sc-action-text, #000);
|
|
62
|
+
}
|
|
63
|
+
.sc-diagram .sc-region-label {
|
|
64
|
+
fill: var(--sc-region-label, #696969);
|
|
65
|
+
}
|
|
66
|
+
.sc-diagram .sc-edge-label {
|
|
67
|
+
fill: var(--sc-edge-label, #000);
|
|
68
|
+
}
|
|
69
|
+
.sc-diagram .sc-comment {
|
|
70
|
+
fill: var(--sc-comment-text, #000);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* ----- States -------------------------------------------------------------------------------------- */
|
|
74
|
+
|
|
75
|
+
/* Simple states and superstates: KIELER's grey outline, in the token that keeps it visible on both grounds. */
|
|
76
|
+
.sc-diagram .sc-shape {
|
|
77
|
+
stroke: var(--sc-state-outline, var(--sc-region-stroke, #bebebe));
|
|
78
|
+
stroke-width: 1;
|
|
79
|
+
transition: stroke 120ms ease-out, fill 120ms ease-out, stroke-width 120ms ease-out;
|
|
80
|
+
}
|
|
81
|
+
.sc-diagram .sc-initial > .sc-shape,
|
|
82
|
+
.sc-diagram .sc-final > .sc-shape {
|
|
83
|
+
stroke: var(--sc-state-stroke, #000);
|
|
84
|
+
}
|
|
85
|
+
/* KIELER: initial states have a 3 px border (the outer one, for final initial states). */
|
|
86
|
+
.sc-diagram .sc-initial > .sc-shape:not(.sc-final-inner) {
|
|
87
|
+
stroke-width: 3;
|
|
88
|
+
}
|
|
89
|
+
.sc-diagram .sc-halt > .sc-shape {
|
|
90
|
+
stroke: var(--sc-state-stroke, #000);
|
|
91
|
+
}
|
|
92
|
+
.sc-diagram .sc-halt > .sc-final-outer {
|
|
93
|
+
stroke-width: 2;
|
|
94
|
+
}
|
|
95
|
+
/* The outer ring of a final state is drawn on the background colour. */
|
|
96
|
+
.sc-diagram .sc-final > .sc-final-outer {
|
|
97
|
+
fill: var(--sc-region-fill, #fff);
|
|
98
|
+
}
|
|
99
|
+
.sc-diagram .sc-final > .sc-final-inner {
|
|
100
|
+
stroke-width: 1;
|
|
101
|
+
}
|
|
102
|
+
.sc-diagram .sc-connector > .sc-shape {
|
|
103
|
+
fill: var(--sc-state-stroke, #000);
|
|
104
|
+
stroke: var(--sc-state-stroke, #000);
|
|
105
|
+
}
|
|
106
|
+
.sc-diagram .sc-shadow {
|
|
107
|
+
fill: var(--sc-edge, #000);
|
|
108
|
+
opacity: 0.12;
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Fills: KIELER's vertical gradient as the end colour under the top colour faded out by a mask. */
|
|
113
|
+
.sc-diagram .sc-shape {
|
|
114
|
+
fill: none;
|
|
115
|
+
}
|
|
116
|
+
.sc-diagram .sc-root > .sc-shape {
|
|
117
|
+
fill: var(--sc-root-fill, #f8f9fd);
|
|
118
|
+
stroke: var(--sc-root-stroke, #bebebe);
|
|
119
|
+
}
|
|
120
|
+
.sc-diagram .sc-fill-top,
|
|
121
|
+
.sc-diagram .sc-fill {
|
|
122
|
+
stroke: none;
|
|
123
|
+
pointer-events: none;
|
|
124
|
+
transition: fill 120ms ease-out;
|
|
125
|
+
}
|
|
126
|
+
.sc-diagram .sc-fill { fill: var(--sc-state-fill-end, #cddcf3); }
|
|
127
|
+
.sc-diagram .sc-fill-top { fill: var(--sc-state-fill, #f8f9fd); }
|
|
128
|
+
.sc-diagram .sc-superstate > .sc-fill { fill: var(--sc-superstate-fill-end, #cddcf3); }
|
|
129
|
+
.sc-diagram .sc-superstate > .sc-fill-top { fill: var(--sc-superstate-fill, #f8f9fd); }
|
|
130
|
+
/* KIELER draws reference states with a violet gradient and violation states with a red one. */
|
|
131
|
+
.sc-diagram .sc-reference > .sc-fill { fill: color-mix(in srgb, var(--sc-superstate-fill-end, #e6cbf2) 70%, #b05cd6); }
|
|
132
|
+
.sc-diagram .sc-reference > .sc-fill-top { fill: color-mix(in srgb, var(--sc-superstate-fill, #fcf7fc) 88%, #b05cd6); }
|
|
133
|
+
.sc-diagram .sc-violation > .sc-fill { fill: color-mix(in srgb, var(--sc-state-fill-end, #f5a0a3) 45%, #f5a0a3); }
|
|
134
|
+
.sc-diagram .sc-violation > .sc-fill-top { fill: color-mix(in srgb, var(--sc-state-fill, #fdf4f0) 85%, #f5a0a3); }
|
|
135
|
+
|
|
136
|
+
/* ----- Regions ------------------------------------------------------------------------------------- */
|
|
137
|
+
|
|
138
|
+
.sc-diagram .sc-region-frame {
|
|
139
|
+
fill: var(--sc-region-fill, #fff);
|
|
140
|
+
stroke: var(--sc-region-stroke, #bebebe);
|
|
141
|
+
stroke-width: 1;
|
|
142
|
+
}
|
|
143
|
+
.sc-diagram .sc-region-frame-inner {
|
|
144
|
+
fill: none;
|
|
145
|
+
}
|
|
146
|
+
.sc-diagram .sc-abort-region > .sc-region-frame {
|
|
147
|
+
stroke: var(--sc-strong-abort, #f00);
|
|
148
|
+
stroke-width: 1.3;
|
|
149
|
+
}
|
|
150
|
+
.sc-diagram .sc-override-region > .sc-region-frame {
|
|
151
|
+
stroke: #aad400;
|
|
152
|
+
stroke-width: 1.3;
|
|
153
|
+
}
|
|
154
|
+
.sc-diagram .sc-reference > .sc-region > .sc-region-frame,
|
|
155
|
+
.sc-diagram .sc-reference-region > .sc-region-frame {
|
|
156
|
+
stroke: #efa2ff;
|
|
157
|
+
stroke-width: 1.3;
|
|
158
|
+
}
|
|
159
|
+
/* MethodSynthesis: methods are grey regions (METHOD_BACKGROUND / METHOD_FOREGROUND), dashed when abstract. */
|
|
160
|
+
.sc-diagram .sc-method > .sc-region-frame {
|
|
161
|
+
fill: color-mix(in srgb, var(--sc-region-fill, #fff) 85%, var(--sc-region-stroke, #bebebe));
|
|
162
|
+
stroke: color-mix(in srgb, var(--sc-region-stroke, #bebebe) 40%, var(--sc-state-stroke, #000));
|
|
163
|
+
}
|
|
164
|
+
.sc-diagram .sc-method-abstract > .sc-region-frame {
|
|
165
|
+
stroke-dasharray: 4 2;
|
|
166
|
+
}
|
|
167
|
+
.sc-diagram .sc-region-corner {
|
|
168
|
+
fill: var(--sc-region-stroke, #bebebe);
|
|
169
|
+
}
|
|
170
|
+
.sc-diagram .sc-region-corner-mark {
|
|
171
|
+
stroke: var(--sc-region-fill, #fff);
|
|
172
|
+
stroke-width: 1.4;
|
|
173
|
+
fill: none;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* ----- Transitions --------------------------------------------------------------------------------- */
|
|
177
|
+
|
|
178
|
+
.sc-diagram .sc-edge,
|
|
179
|
+
.sc-diagram .sc-edge-hit {
|
|
180
|
+
fill: none;
|
|
181
|
+
stroke-linecap: butt;
|
|
182
|
+
}
|
|
183
|
+
.sc-diagram .sc-edge {
|
|
184
|
+
stroke: var(--sc-edge, #000);
|
|
185
|
+
stroke-width: 2;
|
|
186
|
+
transition: stroke 120ms ease-out, stroke-width 120ms ease-out;
|
|
187
|
+
}
|
|
188
|
+
.sc-diagram .sc-immediate > .sc-edge {
|
|
189
|
+
stroke-dasharray: 7 3;
|
|
190
|
+
}
|
|
191
|
+
.sc-diagram .sc-edge-hit {
|
|
192
|
+
stroke: transparent;
|
|
193
|
+
stroke-width: 12;
|
|
194
|
+
pointer-events: stroke;
|
|
195
|
+
}
|
|
196
|
+
.sc-diagram .sc-arrow {
|
|
197
|
+
fill: var(--sc-edge, #000);
|
|
198
|
+
stroke: var(--sc-edge, #000);
|
|
199
|
+
stroke-width: 2;
|
|
200
|
+
stroke-linejoin: round;
|
|
201
|
+
}
|
|
202
|
+
.sc-diagram .sc-nondeterministic > .sc-edge { stroke: #ea9a56; }
|
|
203
|
+
.sc-diagram .sc-nondeterministic > .sc-arrow { fill: #ea9a56; stroke: #ea9a56; }
|
|
204
|
+
.sc-diagram .sc-probabilistic > .sc-edge { stroke: #5c9ad3; }
|
|
205
|
+
.sc-diagram .sc-probabilistic > .sc-arrow { fill: #5c9ad3; stroke: #5c9ad3; }
|
|
206
|
+
|
|
207
|
+
.sc-diagram .sc-strong-marker {
|
|
208
|
+
fill: var(--sc-strong-abort, #f00);
|
|
209
|
+
stroke: var(--sc-region-stroke, #bebebe);
|
|
210
|
+
stroke-width: 1;
|
|
211
|
+
}
|
|
212
|
+
.sc-diagram .sc-termination-marker {
|
|
213
|
+
fill: var(--sc-termination, #0f0);
|
|
214
|
+
stroke: var(--sc-region-stroke, #bebebe);
|
|
215
|
+
stroke-width: 1;
|
|
216
|
+
stroke-linejoin: round;
|
|
217
|
+
}
|
|
218
|
+
.sc-diagram .sc-history-marker circle {
|
|
219
|
+
fill: var(--sc-history, #3c3c3c);
|
|
220
|
+
}
|
|
221
|
+
.sc-diagram .sc-history-letter,
|
|
222
|
+
.sc-diagram .sc-history-star {
|
|
223
|
+
fill: none;
|
|
224
|
+
stroke: var(--sc-region-fill, #fff);
|
|
225
|
+
stroke-width: 2;
|
|
226
|
+
}
|
|
227
|
+
.sc-diagram .sc-history-star {
|
|
228
|
+
stroke-width: 1.2;
|
|
229
|
+
}
|
|
230
|
+
.sc-diagram .sc-deferred-marker circle {
|
|
231
|
+
fill: var(--sc-strong-abort, #f00);
|
|
232
|
+
stroke: var(--sc-region-stroke, #bebebe);
|
|
233
|
+
stroke-width: 1;
|
|
234
|
+
}
|
|
235
|
+
.sc-diagram .sc-deferred-star {
|
|
236
|
+
stroke: var(--sc-region-fill, #fff);
|
|
237
|
+
stroke-width: 1;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* On-edge labels (KIELER's default "Label Side: On edge"). */
|
|
241
|
+
.sc-diagram .sc-label-bg {
|
|
242
|
+
fill: var(--sc-edge-label-bg, rgb(255 255 255 / 0.86));
|
|
243
|
+
}
|
|
244
|
+
.sc-diagram .sc-label-bars {
|
|
245
|
+
stroke: var(--sc-region-stroke, #bebebe);
|
|
246
|
+
stroke-width: 1;
|
|
247
|
+
fill: none;
|
|
248
|
+
}
|
|
249
|
+
.sc-diagram .sc-label-arrow {
|
|
250
|
+
fill: var(--sc-region-stroke, #bebebe);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* ----- Comments and dataflow ------------------------------------------------------------------------- */
|
|
254
|
+
|
|
255
|
+
.sc-diagram .sc-comment-box {
|
|
256
|
+
fill: var(--sc-comment-fill, #ffffcc);
|
|
257
|
+
stroke: var(--sc-comment-stroke, #f0f024);
|
|
258
|
+
stroke-width: 1;
|
|
259
|
+
}
|
|
260
|
+
.sc-diagram .sc-comment-edge {
|
|
261
|
+
fill: none;
|
|
262
|
+
stroke: var(--sc-comment-stroke, #f0f024);
|
|
263
|
+
stroke-width: 1;
|
|
264
|
+
}
|
|
265
|
+
.sc-diagram .sc-df-shape {
|
|
266
|
+
fill: var(--sc-state-fill-end, #cddcf3);
|
|
267
|
+
stroke: var(--sc-region-stroke, #bebebe);
|
|
268
|
+
stroke-width: 1;
|
|
269
|
+
}
|
|
270
|
+
.sc-diagram .sc-df-operator > .sc-df-shape {
|
|
271
|
+
fill: var(--sc-state-fill, #f8f9fd);
|
|
272
|
+
}
|
|
273
|
+
.sc-diagram .sc-df-actor > .sc-df-shape {
|
|
274
|
+
fill: color-mix(in srgb, var(--sc-superstate-fill-end, #e6cbf2) 70%, #b05cd6);
|
|
275
|
+
}
|
|
276
|
+
.sc-diagram .sc-df-divider {
|
|
277
|
+
stroke: var(--sc-region-stroke, #bebebe);
|
|
278
|
+
stroke-width: 1;
|
|
279
|
+
}
|
|
280
|
+
.sc-diagram .sc-df-port {
|
|
281
|
+
fill: var(--sc-region-label, #696969);
|
|
282
|
+
}
|
|
283
|
+
.sc-diagram .sc-wire {
|
|
284
|
+
fill: none;
|
|
285
|
+
stroke: var(--sc-edge, #000);
|
|
286
|
+
stroke-width: 1;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/* ----- Highlights ---------------------------------------------------------------------------------- */
|
|
290
|
+
|
|
291
|
+
/* Active state: a thick border in the signal colour with a glow. The root is always active, so it stays calm. */
|
|
292
|
+
.sc-diagram .sc-state.is-active:not(.sc-root) > .sc-shape {
|
|
293
|
+
stroke: var(--sc-active-stroke, #d3202f);
|
|
294
|
+
stroke-width: 3;
|
|
295
|
+
filter: drop-shadow(0 0 4px var(--sc-active-glow, rgb(211 32 47 / 0.45)));
|
|
296
|
+
}
|
|
297
|
+
.sc-diagram .sc-state.is-active.sc-initial > .sc-shape {
|
|
298
|
+
stroke-width: 4.5;
|
|
299
|
+
}
|
|
300
|
+
.sc-diagram .sc-simple.is-active > .sc-fill,
|
|
301
|
+
.sc-diagram .sc-simple.is-active > .sc-fill-top {
|
|
302
|
+
fill: var(--sc-active-fill, #ffe9ec);
|
|
303
|
+
}
|
|
304
|
+
.sc-diagram .sc-final.is-active > .sc-final-inner {
|
|
305
|
+
stroke: var(--sc-active-stroke, #d3202f);
|
|
306
|
+
stroke-width: 1.5;
|
|
307
|
+
filter: none;
|
|
308
|
+
}
|
|
309
|
+
.sc-diagram .sc-connector.is-active > .sc-shape {
|
|
310
|
+
fill: var(--sc-active-stroke, #d3202f);
|
|
311
|
+
}
|
|
312
|
+
.sc-diagram .sc-state.is-active > .sc-state-label {
|
|
313
|
+
font-weight: 800;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* Entered this tick: a short pulse of the entry colour around an active state. */
|
|
317
|
+
.sc-diagram .sc-state.is-entered:not(.sc-root) > .sc-shadow {
|
|
318
|
+
fill: var(--sc-entered, #2b6cc4);
|
|
319
|
+
opacity: 0.35;
|
|
320
|
+
animation: sc-entered 900ms ease-out 1;
|
|
321
|
+
}
|
|
322
|
+
/* Left this tick (or entered and left again within it: a transient state of an immediate chain): a solid outline
|
|
323
|
+
* in the entry colour and a tint of it that fades, never dashes (dashes are the notation of immediate transitions). */
|
|
324
|
+
.sc-diagram .sc-state.is-exited:not(.is-active):not(.sc-root) > .sc-shape {
|
|
325
|
+
stroke: var(--sc-entered, #2b6cc4);
|
|
326
|
+
stroke-width: 2;
|
|
327
|
+
}
|
|
328
|
+
.sc-diagram .sc-state.is-exited:not(.is-active):not(.sc-root) > :is(.sc-fill, .sc-fill-top) {
|
|
329
|
+
fill: color-mix(in srgb, var(--sc-entered, #2b6cc4) 16%, var(--sc-state-fill, #f8f9fd));
|
|
330
|
+
animation: sc-exited 1200ms ease-out 1;
|
|
331
|
+
}
|
|
332
|
+
.sc-diagram .sc-superstate.is-exited:not(.is-active):not(.sc-root) > :is(.sc-fill, .sc-fill-top) {
|
|
333
|
+
fill: color-mix(in srgb, var(--sc-entered, #2b6cc4) 8%, var(--sc-superstate-fill, #f8f9fd));
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* Taken transition: the 'taken' colour, a heavier stroke and a glow (and the one-off pulse along it when it fires,
|
|
337
|
+
* .sc-edge-pulse below). Its dash pattern stays its own: solid when delayed, dashed when immediate. */
|
|
338
|
+
.sc-diagram .sc-transition.is-taken > .sc-edge {
|
|
339
|
+
stroke: var(--sc-taken, #2b6cc4);
|
|
340
|
+
stroke-width: 4;
|
|
341
|
+
filter: drop-shadow(0 0 3px color-mix(in srgb, var(--sc-taken, #2b6cc4) 55%, transparent));
|
|
342
|
+
}
|
|
343
|
+
.sc-diagram .sc-transition.is-taken > .sc-arrow {
|
|
344
|
+
fill: var(--sc-taken, #2b6cc4);
|
|
345
|
+
stroke: var(--sc-taken, #2b6cc4);
|
|
346
|
+
stroke-width: 2.5;
|
|
347
|
+
}
|
|
348
|
+
.sc-diagram .sc-transition.is-taken .sc-label-bg {
|
|
349
|
+
stroke: var(--sc-taken, #2b6cc4);
|
|
350
|
+
stroke-width: 1.5;
|
|
351
|
+
}
|
|
352
|
+
.sc-diagram .sc-transition.is-taken .sc-label-bars {
|
|
353
|
+
stroke: var(--sc-taken, #2b6cc4);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* Focus (linked with the source code): an outline in the keyword colour. */
|
|
357
|
+
.sc-diagram .sc-state.is-focus > .sc-shape,
|
|
358
|
+
.sc-diagram .sc-region.is-focus > .sc-region-frame {
|
|
359
|
+
stroke: var(--sc-keyword, #730041);
|
|
360
|
+
stroke-width: 2.5;
|
|
361
|
+
stroke-dasharray: 6 3;
|
|
362
|
+
}
|
|
363
|
+
.sc-diagram .sc-transition.is-focus > .sc-edge {
|
|
364
|
+
stroke: var(--sc-keyword, #730041);
|
|
365
|
+
stroke-width: 3.5;
|
|
366
|
+
}
|
|
367
|
+
.sc-diagram .sc-transition.is-focus > .sc-arrow {
|
|
368
|
+
fill: var(--sc-keyword, #730041);
|
|
369
|
+
stroke: var(--sc-keyword, #730041);
|
|
370
|
+
}
|
|
371
|
+
.sc-diagram .sc-transition.is-focus .sc-label-bg {
|
|
372
|
+
stroke: var(--sc-keyword, #730041);
|
|
373
|
+
stroke-width: 1.5;
|
|
374
|
+
}
|
|
375
|
+
.sc-diagram text.is-focus {
|
|
376
|
+
text-decoration: underline;
|
|
377
|
+
text-decoration-thickness: 1.5px;
|
|
378
|
+
font-weight: 700;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/* Error: a solid stroke in the diagnostic colour with a glow, and a marker (a disc with "!", .sc-error-marker, added
|
|
382
|
+
* by src/components/sim/link.ts markErrors next to the state or the transition's label or arrowhead). */
|
|
383
|
+
.sc-diagram .sc-state.is-error > .sc-shape,
|
|
384
|
+
.sc-diagram .sc-region.is-error > .sc-region-frame {
|
|
385
|
+
stroke: var(--sc-error, #e8590c);
|
|
386
|
+
stroke-width: 3;
|
|
387
|
+
stroke-dasharray: none;
|
|
388
|
+
filter: drop-shadow(0 0 3px color-mix(in srgb, var(--sc-error, #e8590c) 60%, transparent));
|
|
389
|
+
}
|
|
390
|
+
.sc-diagram .sc-transition.is-error > .sc-edge {
|
|
391
|
+
stroke: var(--sc-error, #e8590c);
|
|
392
|
+
stroke-width: 3.5;
|
|
393
|
+
filter: drop-shadow(0 0 3px color-mix(in srgb, var(--sc-error, #e8590c) 55%, transparent));
|
|
394
|
+
}
|
|
395
|
+
.sc-diagram .sc-transition.is-error > .sc-arrow {
|
|
396
|
+
fill: var(--sc-error, #e8590c);
|
|
397
|
+
stroke: var(--sc-error, #e8590c);
|
|
398
|
+
}
|
|
399
|
+
.sc-diagram .sc-transition.is-error .sc-label-bg {
|
|
400
|
+
stroke: var(--sc-error, #e8590c);
|
|
401
|
+
stroke-width: 1.5;
|
|
402
|
+
}
|
|
403
|
+
.sc-diagram text.is-error {
|
|
404
|
+
fill: var(--sc-error, #e8590c);
|
|
405
|
+
text-decoration: underline;
|
|
406
|
+
text-decoration-style: wavy;
|
|
407
|
+
}
|
|
408
|
+
.sc-diagram .sc-error-marker {
|
|
409
|
+
pointer-events: none;
|
|
410
|
+
}
|
|
411
|
+
.sc-diagram .sc-error-marker circle {
|
|
412
|
+
fill: var(--sc-error, #e8590c);
|
|
413
|
+
stroke: var(--sc-region-fill, #fff);
|
|
414
|
+
stroke-width: 1.5;
|
|
415
|
+
}
|
|
416
|
+
.sc-diagram .sc-error-marker path {
|
|
417
|
+
fill: none;
|
|
418
|
+
stroke: var(--sc-region-fill, #fff);
|
|
419
|
+
stroke-width: 1.8;
|
|
420
|
+
stroke-linecap: round;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* A for-region's state active in several of its copies: a badge with the number of copies (×3), added by
|
|
424
|
+
* src/components/sim/link.ts markCopies (the diagram draws the region once). */
|
|
425
|
+
.sc-diagram .sc-copy-badge {
|
|
426
|
+
pointer-events: none;
|
|
427
|
+
}
|
|
428
|
+
.sc-diagram .sc-copy-badge rect {
|
|
429
|
+
fill: var(--sc-active-stroke, #d3202f);
|
|
430
|
+
stroke: var(--sc-region-fill, #fff);
|
|
431
|
+
stroke-width: 1.5;
|
|
432
|
+
}
|
|
433
|
+
.sc-diagram .sc-copy-badge text {
|
|
434
|
+
fill: var(--sc-region-fill, #fff);
|
|
435
|
+
font-size: 9.5px;
|
|
436
|
+
font-weight: 800;
|
|
437
|
+
text-anchor: middle;
|
|
438
|
+
dominant-baseline: central;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.sc-diagram .is-dimmed {
|
|
442
|
+
opacity: 0.35;
|
|
443
|
+
transition: opacity 150ms ease-out;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
@keyframes sc-entered {
|
|
447
|
+
0% { opacity: 0.8; }
|
|
448
|
+
100% { opacity: 0.35; }
|
|
449
|
+
}
|
|
450
|
+
/* The tint of a state just left starts strong and settles. */
|
|
451
|
+
@keyframes sc-exited {
|
|
452
|
+
0% { fill: color-mix(in srgb, var(--sc-entered, #2b6cc4) 36%, var(--sc-state-fill, #f8f9fd)); }
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
@media (prefers-reduced-motion: reduce) {
|
|
456
|
+
.sc-diagram .sc-state.is-entered > .sc-shadow,
|
|
457
|
+
.sc-diagram .sc-state.is-exited > :is(.sc-fill, .sc-fill-top) {
|
|
458
|
+
animation: none;
|
|
459
|
+
}
|
|
460
|
+
.sc-diagram .sc-shape,
|
|
461
|
+
.sc-diagram .sc-edge {
|
|
462
|
+
transition: none;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/* A pulse runs once along a transition when it fires (src/components/sim/link.ts adds the path and removes
|
|
467
|
+
* it when the animation ends; transitions of an immediate chain pulse one after the other). */
|
|
468
|
+
.sc-diagram .sc-edge-pulse {
|
|
469
|
+
fill: none;
|
|
470
|
+
stroke: var(--sc-taken, #2b6cc4);
|
|
471
|
+
stroke-width: 6;
|
|
472
|
+
stroke-linecap: round;
|
|
473
|
+
stroke-dasharray: 14 120;
|
|
474
|
+
stroke-dashoffset: 14;
|
|
475
|
+
opacity: 0.9;
|
|
476
|
+
pointer-events: none;
|
|
477
|
+
animation: sc-edge-pulse 520ms ease-in-out 1 both;
|
|
478
|
+
}
|
|
479
|
+
@keyframes sc-edge-pulse {
|
|
480
|
+
from {
|
|
481
|
+
stroke-dashoffset: 14;
|
|
482
|
+
}
|
|
483
|
+
to {
|
|
484
|
+
stroke-dashoffset: -100;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
@media (prefers-reduced-motion: reduce) {
|
|
488
|
+
.sc-diagram .sc-edge-pulse {
|
|
489
|
+
display: none;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/* An initial state that was just left keeps its heavy outline (the colour and the tint say "left"). */
|
|
494
|
+
.sc-diagram .sc-state.sc-initial.is-exited:not(.is-active):not(.sc-root) > .sc-shape:not(.sc-final-inner) {
|
|
495
|
+
stroke-width: 3;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/* ----- Light theme: legibility on white paper ------------------------------------------------------------ */
|
|
499
|
+
/* KIELER's hues, darkened just enough to hold up on the white sheet: coloured notation (nondeterministic and
|
|
500
|
+
* probabilistic transitions, override and reference regions) reaches 3:1 as graphics, schedule text 4.5:1, and
|
|
501
|
+
* region frames read as drawn boundaries rather than a faint wash. Shapes, weights and dashes are unchanged. */
|
|
502
|
+
:where(:root[data-theme='light']) .sc-diagram .sc-sd {
|
|
503
|
+
fill: #1f7a64;
|
|
504
|
+
}
|
|
505
|
+
:where(:root[data-theme='light']) .sc-diagram .sc-nondeterministic > .sc-edge { stroke: #b8661c; }
|
|
506
|
+
:where(:root[data-theme='light']) .sc-diagram .sc-nondeterministic > .sc-arrow { fill: #b8661c; stroke: #b8661c; }
|
|
507
|
+
:where(:root[data-theme='light']) .sc-diagram .sc-probabilistic > .sc-edge { stroke: #3f7fbf; }
|
|
508
|
+
:where(:root[data-theme='light']) .sc-diagram .sc-probabilistic > .sc-arrow { fill: #3f7fbf; stroke: #3f7fbf; }
|
|
509
|
+
:where(:root[data-theme='light']) .sc-diagram .sc-override-region > .sc-region-frame {
|
|
510
|
+
stroke: #6f8a00;
|
|
511
|
+
}
|
|
512
|
+
:where(:root[data-theme='light']) .sc-diagram .sc-reference > .sc-region > .sc-region-frame,
|
|
513
|
+
:where(:root[data-theme='light']) .sc-diagram .sc-reference-region > .sc-region-frame {
|
|
514
|
+
stroke: #b45bd0;
|
|
515
|
+
}
|
|
516
|
+
:where(:root[data-theme='light']) .sc-diagram .sc-region-frame {
|
|
517
|
+
stroke: #98a4b6;
|
|
518
|
+
}
|
|
519
|
+
:where(:root[data-theme='light']) .sc-diagram .sc-region-corner {
|
|
520
|
+
fill: #98a4b6;
|
|
521
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface LayoutOptions {
|
|
2
|
+
[key: string]: string;
|
|
3
|
+
}
|
|
4
|
+
export interface ElkPoint {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ElkGraphElement {
|
|
9
|
+
id?: string;
|
|
10
|
+
labels?: ElkLabel[];
|
|
11
|
+
layoutOptions?: LayoutOptions;
|
|
12
|
+
}
|
|
13
|
+
export interface ElkShape extends ElkGraphElement {
|
|
14
|
+
x?: number;
|
|
15
|
+
y?: number;
|
|
16
|
+
width?: number;
|
|
17
|
+
height?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface ElkNode extends ElkShape {
|
|
20
|
+
id: string;
|
|
21
|
+
children?: ElkNode[];
|
|
22
|
+
ports?: ElkPort[];
|
|
23
|
+
edges?: ElkExtendedEdge[];
|
|
24
|
+
}
|
|
25
|
+
export interface ElkPort extends ElkShape {
|
|
26
|
+
id: string;
|
|
27
|
+
}
|
|
28
|
+
export interface ElkLabel extends ElkShape {
|
|
29
|
+
text?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ElkEdge extends ElkGraphElement {
|
|
32
|
+
id: string;
|
|
33
|
+
container?: string;
|
|
34
|
+
junctionPoints?: ElkPoint[];
|
|
35
|
+
}
|
|
36
|
+
export interface ElkExtendedEdge extends ElkEdge {
|
|
37
|
+
sources: string[];
|
|
38
|
+
targets: string[];
|
|
39
|
+
sections?: ElkEdgeSection[];
|
|
40
|
+
}
|
|
41
|
+
export interface ElkEdgeSection extends ElkGraphElement {
|
|
42
|
+
id: string;
|
|
43
|
+
startPoint: ElkPoint;
|
|
44
|
+
endPoint: ElkPoint;
|
|
45
|
+
bendPoints?: ElkPoint[];
|
|
46
|
+
incomingShape?: string;
|
|
47
|
+
outgoingShape?: string;
|
|
48
|
+
incomingSections?: string[];
|
|
49
|
+
outgoingSections?: string[];
|
|
50
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// The ELK graph as JSON, as elkjs declares it (elkjs/lib/elk-api.d.ts, 0.12.0): the shapes the layout sends ELK and
|
|
2
|
+
// reads back. Kept here so that this package's declarations never load elkjs's, whose ELK interface does not type-check
|
|
3
|
+
// with skipLibCheck off (TS2536 on `T['children'][number]`). Structurally the same, so elkjs's own values fit.
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=elk-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elk-types.js","sourceRoot":"","sources":["../src/elk-types.ts"],"names":[],"mappings":"AAAA,oHAAoH;AACpH,wHAAwH;AACxH,+GAA+G","sourcesContent":["// The ELK graph as JSON, as elkjs declares it (elkjs/lib/elk-api.d.ts, 0.12.0): the shapes the layout sends ELK and\n// reads back. Kept here so that this package's declarations never load elkjs's, whose ELK interface does not type-check\n// with skipLibCheck off (TS2536 on `T['children'][number]`). Structurally the same, so elkjs's own values fit.\n\nexport interface LayoutOptions {\n [key: string]: string\n}\n\nexport interface ElkPoint {\n x: number\n y: number\n}\n\nexport interface ElkGraphElement {\n id?: string\n labels?: ElkLabel[]\n layoutOptions?: LayoutOptions\n}\n\nexport interface ElkShape extends ElkGraphElement {\n x?: number\n y?: number\n width?: number\n height?: number\n}\n\nexport interface ElkNode extends ElkShape {\n id: string\n children?: ElkNode[]\n ports?: ElkPort[]\n edges?: ElkExtendedEdge[]\n}\n\nexport interface ElkPort extends ElkShape {\n id: string\n}\n\nexport interface ElkLabel extends ElkShape {\n text?: string\n}\n\nexport interface ElkEdge extends ElkGraphElement {\n id: string\n container?: string\n junctionPoints?: ElkPoint[]\n}\n\nexport interface ElkExtendedEdge extends ElkEdge {\n sources: string[]\n targets: string[]\n sections?: ElkEdgeSection[]\n}\n\nexport interface ElkEdgeSection extends ElkGraphElement {\n id: string\n startPoint: ElkPoint\n endPoint: ElkPoint\n bendPoints?: ElkPoint[]\n incomingShape?: string\n outgoingShape?: string\n incomingSections?: string[]\n outgoingSections?: string[]\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ElkLike } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* An ELK instance that lays out in a Web Worker: elkjs's `elk-api`, talking to elkjs's `elk-worker.min.js` at
|
|
4
|
+
* `workerUrl` (a string or a URL; serve that file with the app: with Vite,
|
|
5
|
+
* `import workerUrl from 'elkjs/lib/elk-worker.min.js?url'`). Pass it to `layoutChart` as `elk`. Needs Web Workers (a
|
|
6
|
+
* browser); elsewhere leave `elk` out and `layoutChart` runs elkjs on the calling thread.
|
|
7
|
+
*/
|
|
8
|
+
export declare function workerElk(workerUrl: string | {
|
|
9
|
+
readonly href: string;
|
|
10
|
+
}): ElkLike;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// ELK in a Web Worker, without an import of elkjs in the app: elkjs's declarations do not type-check with
|
|
2
|
+
// skipLibCheck off (see elk-types.ts), and this module's declaration names only this package's types. The package
|
|
3
|
+
// is built without the DOM's types (it runs in Node too), so the browser's Worker is taken from globalThis.
|
|
4
|
+
import ELK from "elkjs/lib/elk-api.js";
|
|
5
|
+
/**
|
|
6
|
+
* An ELK instance that lays out in a Web Worker: elkjs's `elk-api`, talking to elkjs's `elk-worker.min.js` at
|
|
7
|
+
* `workerUrl` (a string or a URL; serve that file with the app: with Vite,
|
|
8
|
+
* `import workerUrl from 'elkjs/lib/elk-worker.min.js?url'`). Pass it to `layoutChart` as `elk`. Needs Web Workers (a
|
|
9
|
+
* browser); elsewhere leave `elk` out and `layoutChart` runs elkjs on the calling thread.
|
|
10
|
+
*/
|
|
11
|
+
export function workerElk(workerUrl) {
|
|
12
|
+
const Worker = globalThis.Worker;
|
|
13
|
+
if (!Worker)
|
|
14
|
+
throw new Error('workerElk needs Web Workers (a browser); elsewhere leave out `elk`, and layoutChart runs elkjs on this thread');
|
|
15
|
+
const url = typeof workerUrl === 'string' ? workerUrl : workerUrl.href;
|
|
16
|
+
return new ELK({ workerFactory: () => new Worker(url) });
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=elk-worker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elk-worker.js","sourceRoot":"","sources":["../src/elk-worker.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,kHAAkH;AAClH,4GAA4G;AAE5G,OAAO,GAAG,6BAA4B;AAKtC;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,SAA6C;IACnE,MAAM,MAAM,GAAI,UAAwD,CAAC,MAAM,CAAA;IAC/E,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,+GAA+G,CAAC,CAAA;IAC7I,MAAM,GAAG,GAAG,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAA;IACtE,OAAO,IAAI,GAAG,CAAC,EAAE,aAAa,EAAE,GAAG,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,EAAqD,CAAuB,CAAA;AACrI,CAAC","sourcesContent":["// ELK in a Web Worker, without an import of elkjs in the app: elkjs's declarations do not type-check with\n// skipLibCheck off (see elk-types.ts), and this module's declaration names only this package's types. The package\n// is built without the DOM's types (it runs in Node too), so the browser's Worker is taken from globalThis.\n\nimport ELK from 'elkjs/lib/elk-api.js'\nimport type { ElkLike } from './types'\n\ntype WorkerConstructor = new (url: string) => unknown\n\n/**\n * An ELK instance that lays out in a Web Worker: elkjs's `elk-api`, talking to elkjs's `elk-worker.min.js` at\n * `workerUrl` (a string or a URL; serve that file with the app: with Vite,\n * `import workerUrl from 'elkjs/lib/elk-worker.min.js?url'`). Pass it to `layoutChart` as `elk`. Needs Web Workers (a\n * browser); elsewhere leave `elk` out and `layoutChart` runs elkjs on the calling thread.\n */\nexport function workerElk(workerUrl: string | { readonly href: string }): ElkLike {\n const Worker = (globalThis as unknown as { Worker?: WorkerConstructor }).Worker\n if (!Worker) throw new Error('workerElk needs Web Workers (a browser); elsewhere leave out `elk`, and layoutChart runs elkjs on this thread')\n const url = typeof workerUrl === 'string' ? workerUrl : workerUrl.href\n return new ELK({ workerFactory: () => new Worker(url) } as unknown as ConstructorParameters<typeof ELK>[0]) as unknown as ElkLike\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface EncodedFontMetrics {
|
|
2
|
+
family: string;
|
|
3
|
+
ascent: number;
|
|
4
|
+
descent: number;
|
|
5
|
+
capHeight: number;
|
|
6
|
+
xHeight: number;
|
|
7
|
+
regular: string;
|
|
8
|
+
bold: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const FONT_METRICS: {
|
|
11
|
+
sans: EncodedFontMetrics;
|
|
12
|
+
mono: EncodedFontMetrics;
|
|
13
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Generated by tools/diagram-metrics.mjs from the fonts in node_modules. Do not edit by hand.
|
|
2
|
+
// Advance widths in 1/1000 em, as runs "startCodePointHex:w,w,...;...". Vertical metrics in em.
|
|
3
|
+
export const FONT_METRICS = {
|
|
4
|
+
sans: {
|
|
5
|
+
family: "Atkinson Hyperlegible Next Variable",
|
|
6
|
+
ascent: 0.984,
|
|
7
|
+
descent: 0.316,
|
|
8
|
+
capHeight: 0.672,
|
|
9
|
+
xHeight: 0.5,
|
|
10
|
+
regular: "20:280,286,301,651,592,919,731,160,299,299,485,606,210,362,210,387,648,407,548,576,614,588,598,510,615,595,210,210,553,628,553,480,778,626,613,645,669,569,552,694,694,392,512,631,541,824,693,714,592,724,614,592,558,690,593,856,623,575,607,317,387,344,552,372,243,525,566,485,564,538,314,558,550,252,245,492,262,845,550,548,566,574,349,471,326,540,461,684,481,449,460,344,237,344,555;a0:280,286,485,610,580,575,237,528,368,798,371,562,602,0,798,356,352,579,382,383,243;b6:509,240,265,256,380,562,816,820,867,450,626,626,626,626,626,626,891,645,569,569,569,569,392,392,392,392,689,693,714,714,714,714,714,532,714,690,690,690,690,575,592,582,525,525,525,525,525,525,866,485,538,538,538,538,252,252,252,266,565,550,548,548,548,548,548,606,548,540,540,540,540,449,566,449,626,525,626,525,626,525,645,485;10a:645,485,645,485,669,634,689,564,569,538;116:569,538,569,538,569,538;11e:694,558,694,558,694,558;126:694,550,392,252,392,252;12e:392,252,392,252,904,497;136:631,492;139:541,262,541,262,541,317;141:571,296,693,550,693,550,693,550;14c:714,548;150:714,548,1006,924,614,349;158:614,349,592,471;15e:592,471,592,471,558,326,558,326;168:690,540,690,540;16e:690,540,690,540,690,540,856,684,575,449,575,607,460,607,460,607,460;3a2:527;2013:504,824;2018:236,236,236;201c:399,399,399;2020:541;2022:438;2026:670;220f:823;2211:713,606,838,838,598,637,838;221b:637,637,714;221f:979;2221:896,838;2225:500,500;222b:274,789,1057,521,789,1057,521,521,521;2239:838,838,838;223e:838,838,375;2242:838;2246:838;224d:838,838,838,838,838,839,839;2256:838;2258:838,838,838,838,838,838,838;2263:838;2266:838,838,838,838,1047,1047;226d:838;2276:838,838,838,838;227c:838,838,838,838;228a:838,838,732,732;228f:838,838;229d:838,838,838,838,838;22a6:521,521,871,871,871,871;22ad:871,871,871,838,838,838,838;22b6:1000,1000;22b9:838,521,732,732,732,838,838,820,820;22c5:318;22c7:838;22cb:1000,1000;22cf:732;22d2:838,838,838,838,838,838,1422,1422,838,838,838,838,838,838,838,838;22e4:838,838,838,838,838,838,838,838;22ee:1000,1000,1000,1000,1000,871,718,871,871,718,871,871,1000,871,718,871,718,871;2713:838;2717:838",
|
|
11
|
+
bold: "20:313,303,390,765,610,969,725,210,335,335,485,595,271,373,272,440,659,440,579,600,624,608,626,537,624,571,272,272,569,612,569,547,781,678,643,658,689,597,566,718,701,425,561,664,552,858,717,747,629,757,650,610,607,686,644,886,685,650,618,340,440,344,582,400,288,552,596,510,596,563,365,593,571,300,259,555,318,882,571,576,596,599,376,508,376,567,530,740,540,521,506,381,254,381,537;a0:313,303,510,634,593,650,254,555,432,798,391,649,615,0,798,383,394,611,402,407,288;b6:521,294,298,284,403,649,846,853,921,526,678,678,678,678,678,678,966,658,597,597,597,597,425,425,425,425,709,717,747,747,747,747,747,536,747,686,686,686,686,650,629,621,552,552,552,552,552,552,878,510,563,563,563,563,300,300,300,314,588,571,576,576,576,576,576,595,576,567,567,567,567,521,596,521,678,552,678,552,678,552,658,510;10a:658,510,658,510,689,694,709,596,597,563;116:597,563,597,563,597,563;11e:718,593,718,593,718,593;126:701,571,425,300,425,300;12e:425,300,425,300,985,559;136:664,555;139:552,318,552,318,552,365;141:582,348,717,571,717,571,717,571;14c:747,576;150:747,576,1024,936,650,376;158:650,376,610,508;15e:610,508,610,508,607,376,607,376;168:686,567,686,567;16e:686,567,686,567,686,567,886,740,650,521,650,618,506,618,506,618,506;3a2:527;2013:501,832;2018:269,269,269;201c:479,479,479;2020:582;2022:438;2026:781;220f:823;2211:713,595,838,838,641,637,838;221b:637,637,714;221f:979;2221:896,838;2225:500,500;222b:274,789,1057,521,789,1057,521,521,521;2239:838,838,838;223e:838,838,375;2242:838;2246:838;224d:838,838,838,838,838,839,839;2256:838;2258:838,838,838,838,838,838,838;2263:838;2266:838,838,838,838,1047,1047;226d:838;2276:838,838,838,838;227c:838,838,838,838;228a:838,838,732,732;228f:838,838;229d:838,838,838,838,838;22a6:521,521,871,871,871,871;22ad:871,871,871,838,838,838,838;22b6:1000,1000;22b9:838,521,732,732,732,838,838,820,820;22c5:318;22c7:838;22cb:1000,1000;22cf:732;22d2:838,838,838,838,838,838,1422,1422,838,838,838,838,838,838,838,838;22e4:838,838,838,838,838,838,838,838;22ee:1000,1000,1000,1000,1000,871,718,871,871,718,871,871,1000,871,718,871,718,871;2713:838;2717:838",
|
|
12
|
+
},
|
|
13
|
+
mono: {
|
|
14
|
+
family: "Atkinson Hyperlegible Mono Variable",
|
|
15
|
+
ascent: 0.984,
|
|
16
|
+
descent: 0.316,
|
|
17
|
+
capHeight: 0.672,
|
|
18
|
+
xHeight: 0.5,
|
|
19
|
+
regular: "20:632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632;a0:632,632,632,632,632,632,632,632,632,632,632,632,632,0,632,632,632,632,632,632,632;b6:632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632;10a:632,632,632,632,632,632,632,632,632,632;116:632,632,632,632,632,632;11e:632,632,632,632,632,632;126:632,632,632,632,632,632;12e:632,632,632,632,632,632;136:632,632;139:632,632,632,632,632,632;141:632,632,632,632,632,632,632,632;14c:632,632;150:632,632,632,632,632,632;158:632,632,632,632;15e:632,632,632,632,632,632,632,632;168:632,632,632,632;16e:632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632;3a2:632;2013:632,632;2018:632,632,632;201c:632,632,632;2020:632;2022:632;2026:632;220f:823;2211:713,632,838,838,632,637,838;221b:637,637,714;221f:979;2221:896,838;2225:500,500;222b:274,789,1057,521,789,1057,521,521,521;2239:838,838,838;223e:838,838,375;2242:838;2246:838;224d:838,838,838,838,838,839,839;2256:838;2258:838,838,838,838,838,838,838;2263:838;2266:838,838,838,838,1047,1047;226d:838;2276:838,838,838,838;227c:838,838,838,838;228a:838,838,732,732;228f:838,838;229d:838,838,838,838,838;22a6:521,521,871,871,871,871;22ad:871,871,871,838,838,838,838;22b6:1000,1000;22b9:838,521,732,732,732,838,838,820,820;22c5:318;22c7:838;22cb:1000,1000;22cf:732;22d2:838,838,838,838,838,838,1422,1422,838,838,838,838,838,838,838,838;22e4:838,838,838,838,838,838,838,838;22ee:1000,1000,1000,1000,1000,871,718,871,871,718,871,871,1000,871,718,871,718,871;2713:838;2717:838",
|
|
20
|
+
bold: "20:632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632;a0:632,632,632,632,632,632,632,632,632,632,632,632,632,0,632,632,632,632,632,632,632;b6:632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632;10a:632,632,632,632,632,632,632,632,632,632;116:632,632,632,632,632,632;11e:632,632,632,632,632,632;126:632,632,632,632,632,632;12e:632,632,632,632,632,632;136:632,632;139:632,632,632,632,632,632;141:632,632,632,632,632,632,632,632;14c:632,632;150:632,632,632,632,632,632;158:632,632,632,632;15e:632,632,632,632,632,632,632,632;168:632,632,632,632;16e:632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632,632;3a2:632;2013:632,632;2018:632,632,632;201c:632,632,632;2020:632;2022:632;2026:632;220f:823;2211:713,632,838,838,632,637,838;221b:637,637,714;221f:979;2221:896,838;2225:500,500;222b:274,789,1057,521,789,1057,521,521,521;2239:838,838,838;223e:838,838,375;2242:838;2246:838;224d:838,838,838,838,838,839,839;2256:838;2258:838,838,838,838,838,838,838;2263:838;2266:838,838,838,838,1047,1047;226d:838;2276:838,838,838,838;227c:838,838,838,838;228a:838,838,732,732;228f:838,838;229d:838,838,838,838,838;22a6:521,521,871,871,871,871;22ad:871,871,871,838,838,838,838;22b6:1000,1000;22b9:838,521,732,732,732,838,838,820,820;22c5:318;22c7:838;22cb:1000,1000;22cf:732;22d2:838,838,838,838,838,838,1422,1422,838,838,838,838,838,838,838,838;22e4:838,838,838,838,838,838,838,838;22ee:1000,1000,1000,1000,1000,871,718,871,871,718,871,871,1000,871,718,871,718,871;2713:838;2717:838",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=font-metrics.js.map
|