@ts-graphviz/common 0.0.0-pr956-20240225073457
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/CHANGELOG.md +7 -0
- package/LICENSE +22 -0
- package/README.md +47 -0
- package/lib/common.cjs +94 -0
- package/lib/common.d.ts +3916 -0
- package/lib/common.js +94 -0
- package/package.json +45 -0
- package/src/attribute.ts +3207 -0
- package/src/common.ts +5 -0
- package/src/functional.test.ts +24 -0
- package/src/functional.ts +74 -0
- package/src/models-context.ts +41 -0
- package/src/models.ts +789 -0
- package/src/types.ts +1327 -0
- package/tsconfig.json +7 -0
- package/typedoc.json +4 -0
- package/vite.config.ts +21 -0
package/src/types.ts
ADDED
|
@@ -0,0 +1,1327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export type $keywords<T extends string> = {
|
|
5
|
+
[key in T]: key;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export interface $keywordsValidation
|
|
12
|
+
extends $keywords<
|
|
13
|
+
// Note
|
|
14
|
+
// Although the DOT language specification allows the use of white space characters in IDs, for example by quoting,
|
|
15
|
+
// this is eliminated as a use case for the library.
|
|
16
|
+
`${string} ${string}` | `${string}\n${string}` | `${string}\t${string}`
|
|
17
|
+
> {}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Directive indicating which direction the Edge should point.
|
|
21
|
+
* @group Attribute Types
|
|
22
|
+
*/
|
|
23
|
+
export type Compass = Compass.values;
|
|
24
|
+
/** @hidden */
|
|
25
|
+
export namespace Compass {
|
|
26
|
+
export type values = Exclude<keyof $values, keyof $exclude | symbol | number>;
|
|
27
|
+
export interface $values
|
|
28
|
+
extends $keywords<
|
|
29
|
+
'n' | 'ne' | 'e' | 'se' | 's' | 'sw' | 'w' | 'nw' | 'c' | '_'
|
|
30
|
+
> {}
|
|
31
|
+
export interface $exclude extends $keywordsValidation {}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A value specifying an empty string for resetting some values.
|
|
36
|
+
* @group Attribute Types
|
|
37
|
+
*/
|
|
38
|
+
export type Blank = '';
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* A double with an optional prefix `'+'`.
|
|
42
|
+
*
|
|
43
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/addDouble/ addDouble}
|
|
44
|
+
* @group Attribute Types
|
|
45
|
+
*/
|
|
46
|
+
export type AddDouble = `+${Double}`;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Double-precision floating point number.
|
|
50
|
+
*
|
|
51
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/double/ double}
|
|
52
|
+
* @group Attribute Types
|
|
53
|
+
*/
|
|
54
|
+
export type Double = number;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Port Position
|
|
58
|
+
*
|
|
59
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/portPos/ portPos}
|
|
60
|
+
* @group Attribute Types
|
|
61
|
+
*/
|
|
62
|
+
export type PortPos = `${string}:${Compass}` | Compass;
|
|
63
|
+
/**
|
|
64
|
+
* A colon-separated list of doubles: `"%f(:%f)*"` where each %f is a double.
|
|
65
|
+
*
|
|
66
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/doubleList/ doubleList}
|
|
67
|
+
* @group Attribute Types
|
|
68
|
+
*/
|
|
69
|
+
export type DoubleList =
|
|
70
|
+
| Double
|
|
71
|
+
| `${Double}:${Double}`
|
|
72
|
+
| `${Double}:${Double}:${Double}`
|
|
73
|
+
| `${Double}:${Double}:${Double}:${Double}`
|
|
74
|
+
| `${Double}:${Double}:${Double}:${Double}:${Double}`
|
|
75
|
+
| `${Double}:${Double}:${Double}:${Double}:${Double}:${Double}`
|
|
76
|
+
| `${Double}:${Double}:${Double}:${Double}:${Double}:${Double}:${Double}`
|
|
77
|
+
| `${Double}:${Double}:${Double}:${Double}:${Double}:${Double}:${Double}:${Double}`
|
|
78
|
+
| `${Double}:${Double}:${Double}:${Double}:${Double}:${Double}:${Double}:${Double}:${Double}`;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Integer number.
|
|
82
|
+
*
|
|
83
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/int/ int}
|
|
84
|
+
* @group Attribute Types
|
|
85
|
+
*/
|
|
86
|
+
export type Int = number;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/shape/ shape}
|
|
90
|
+
* @group Attribute Types
|
|
91
|
+
*/
|
|
92
|
+
export type Shape = string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/smoothType/ smoothType}
|
|
96
|
+
* @group Attribute Types
|
|
97
|
+
*/
|
|
98
|
+
export type SmoothType = SmoothType.values;
|
|
99
|
+
/** @hidden */
|
|
100
|
+
export namespace SmoothType {
|
|
101
|
+
export type values = Exclude<keyof $values, keyof $exclude | symbol | number>;
|
|
102
|
+
|
|
103
|
+
export interface $values
|
|
104
|
+
extends $keywords<
|
|
105
|
+
| 'none'
|
|
106
|
+
| 'avg_dist'
|
|
107
|
+
| 'graph_dist'
|
|
108
|
+
| 'power_dist'
|
|
109
|
+
| 'rng'
|
|
110
|
+
| 'spring'
|
|
111
|
+
| 'triangle'
|
|
112
|
+
> {}
|
|
113
|
+
export interface $exclude extends $keywordsValidation {}
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/splineType/ splineType}
|
|
117
|
+
* @group Attribute Types
|
|
118
|
+
*/
|
|
119
|
+
export type SplineType = SplineType.spline | string;
|
|
120
|
+
/** @hidden */
|
|
121
|
+
export namespace SplineType {
|
|
122
|
+
export type prefix = endp | startp | `${endp}${startp}` | '';
|
|
123
|
+
export type spline = `${prefix}point ${triple}`;
|
|
124
|
+
export type triple = `${Point} ${Point} ${Point}`;
|
|
125
|
+
export type endp = `e,${Double},${Double} `;
|
|
126
|
+
export type startp = `s,${Double},${Double} `;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/startType/ startType}
|
|
131
|
+
* @group Attribute Types
|
|
132
|
+
*/
|
|
133
|
+
export type StartType = `${StartType.style}${StartType.seed}`;
|
|
134
|
+
/** @hidden */
|
|
135
|
+
export namespace StartType {
|
|
136
|
+
export type style = Exclude<keyof $style, keyof $exclude>;
|
|
137
|
+
export interface $style extends $keywords<'regular' | 'self' | 'random'> {}
|
|
138
|
+
export type seed = number;
|
|
139
|
+
export interface $exclude extends $keywordsValidation {}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/style/ style}
|
|
144
|
+
* @group Attribute Types
|
|
145
|
+
*/
|
|
146
|
+
export type Style =
|
|
147
|
+
| Style.styleItem
|
|
148
|
+
| `${Style.styleItem},${Style.styleItem}`
|
|
149
|
+
| `${Style.styleItem},${Style.styleItem},${Style.styleItem}`
|
|
150
|
+
| `${Style.styleItem},${Style.styleItem},${Style.styleItem},${Style.styleItem}`;
|
|
151
|
+
/** @hidden */
|
|
152
|
+
export namespace Style {
|
|
153
|
+
export type styleItem = Exclude<keyof $styleItem, keyof $exclude>;
|
|
154
|
+
export interface $styleItem
|
|
155
|
+
extends $keywords<
|
|
156
|
+
| 'dashed'
|
|
157
|
+
| 'dotted'
|
|
158
|
+
| 'solid'
|
|
159
|
+
| 'invis'
|
|
160
|
+
| 'bold'
|
|
161
|
+
| 'tapered'
|
|
162
|
+
| 'filled'
|
|
163
|
+
| 'striped'
|
|
164
|
+
| 'wedged'
|
|
165
|
+
| 'diagonals'
|
|
166
|
+
| 'rounded'
|
|
167
|
+
| 'filled'
|
|
168
|
+
| 'striped'
|
|
169
|
+
| 'rounded'
|
|
170
|
+
| 'radial'
|
|
171
|
+
> {}
|
|
172
|
+
export interface $exclude extends $keywordsValidation {}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/viewPort/ viewPort}
|
|
177
|
+
* @group Attribute Types
|
|
178
|
+
*/
|
|
179
|
+
export type ViewPort =
|
|
180
|
+
| `${Double},${Double},${Double},${Double},${Double}`
|
|
181
|
+
| `${Double},${Double},${Double},${string}`;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* list of strings separated by characters from the layersep attribute (by default, colons, tabs or spaces),
|
|
185
|
+
* defining layer names and implicitly numbered 1,2,…
|
|
186
|
+
*
|
|
187
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/layerList/ layerList}
|
|
188
|
+
* @group Attribute Types
|
|
189
|
+
*/
|
|
190
|
+
export type LayerList = string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* specifies a list of layers defined by the layers attribute.
|
|
194
|
+
*
|
|
195
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/layerRange/ layerRange}
|
|
196
|
+
* @group Attribute Types
|
|
197
|
+
*/
|
|
198
|
+
export type LayerRange = string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* String with Escape Sequences
|
|
202
|
+
*
|
|
203
|
+
* A string allowing escape sequences which are replaced according to the context.
|
|
204
|
+
*
|
|
205
|
+
* For node attributes, the substring `"\N"` is replaced by the name of the node,
|
|
206
|
+
* and the substring `"\G"` by the name of the graph.
|
|
207
|
+
*
|
|
208
|
+
* For graph or cluster attributes, the substring `"\G"` is replaced by the name of the graph or cluster.
|
|
209
|
+
*
|
|
210
|
+
* For edge attributes, the substring `"\E"` is replaced by the name of the edge, the substring `"\G"` is replaced by the name of the graph or cluster,
|
|
211
|
+
* and the substrings `"\T"` and `"\H"` by the names of the tail and head nodes,
|
|
212
|
+
* respectively.
|
|
213
|
+
*
|
|
214
|
+
* The name of an edge is the string formed from the name of the tail node,
|
|
215
|
+
* the appropriate edge operator (`"--"` or `"->"`) and the name of the head node.
|
|
216
|
+
*
|
|
217
|
+
* In all cases, the substring `"\L"` is replaced by the object's label attribute.
|
|
218
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/escString/ escString}
|
|
219
|
+
* @group Attribute Types
|
|
220
|
+
*/
|
|
221
|
+
export type EscString = string;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @see {@link https://graphviz.org/doc/info/shapes.html#html HTML-Like Labels}
|
|
225
|
+
* @group Attribute Types
|
|
226
|
+
*/
|
|
227
|
+
export type HTMLLikeLabel = `<${string}>`;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* An escString or an HTML label.
|
|
231
|
+
*
|
|
232
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/lblString/ lblString}
|
|
233
|
+
* @group Attribute Types
|
|
234
|
+
*/
|
|
235
|
+
export type LblString = HTMLLikeLabel | EscString;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* `"%f,%f('!')?"` representing the point (x,y).
|
|
239
|
+
*
|
|
240
|
+
* The optional `'!'` indicates the node position should not change (input-only).
|
|
241
|
+
*
|
|
242
|
+
* If dim=3, point may also have the format `"%f,%f,%f('!')?"` to represent the point (x,y,z).
|
|
243
|
+
* @group Attribute Types
|
|
244
|
+
*/
|
|
245
|
+
export type Point = Point.position | `${Point.position}!`;
|
|
246
|
+
/** @hidden */
|
|
247
|
+
export namespace Point {
|
|
248
|
+
export type position =
|
|
249
|
+
| `${Double},${Double}`
|
|
250
|
+
| `${Double},${Double},${Double}`
|
|
251
|
+
| `${Double},${Double},${Double},${Double},${Double}`
|
|
252
|
+
| `${Double},${Double},${Double},${Double},${Double},${Double}`
|
|
253
|
+
| `${Double},${Double},${Double},${Double},${Double},${Double},${Double}`
|
|
254
|
+
| `${Double},${Double},${Double},${Double},${Double},${Double},${Double},${Double}`
|
|
255
|
+
| `${Double},${Double},${Double},${Double},${Double},${Double},${Double},${Double},${Double}`
|
|
256
|
+
| `${Double},${Double},${Double},${Double},${Double},${Double},${Double},${Double},${Double},${number}`;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* A point with an optional prefix `'+'`.
|
|
261
|
+
*
|
|
262
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/addPoint/ addPoint}
|
|
263
|
+
* @group Attribute Types
|
|
264
|
+
*/
|
|
265
|
+
export type AddPoint = `+${Point}`;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/pointList/ pointList}
|
|
269
|
+
* @group Attribute Types
|
|
270
|
+
*/
|
|
271
|
+
export type PointList =
|
|
272
|
+
| Point
|
|
273
|
+
| `${Point} ${Point}`
|
|
274
|
+
| `${Point} ${Point} ${Point}`
|
|
275
|
+
| `${Point} ${Point} ${Point} ${Point}`;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* These specify the order in which nodes and edges are drawn in concrete output.
|
|
279
|
+
*
|
|
280
|
+
* - The default `"breadthfirst"` is the simplest, but when the graph layout does not avoid edge-node overlap, this mode will sometimes have edges drawn over nodes and sometimes on top of nodes.
|
|
281
|
+
* - If the mode `"nodesfirst"` is chosen, all nodes are drawn first, followed by the edges. This guarantees an edge-node overlap will not be mistaken for an edge ending at a node.
|
|
282
|
+
* - On the other hand, usually for aesthetic reasons, it may be desirable that all edges appear beneath nodes, even if the resulting drawing is ambiguous. This can be achieved by choosing `"edgesfirst"`.
|
|
283
|
+
*
|
|
284
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/outputMode/ outputMode}
|
|
285
|
+
* @group Attribute Types
|
|
286
|
+
*/
|
|
287
|
+
export type OutputMode = OutputMode.values;
|
|
288
|
+
/** @hidden */
|
|
289
|
+
export namespace OutputMode {
|
|
290
|
+
export type values = Exclude<keyof $values, keyof $exclude | symbol | number>;
|
|
291
|
+
|
|
292
|
+
export interface $values
|
|
293
|
+
extends $keywords<'breadthfirst' | 'nodesfirst' | 'edgesfirst'> {}
|
|
294
|
+
export interface $exclude extends $keywordsValidation {}
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* @see {@link https://graphviz.org/docs/attr-types/packMode/ packMode}
|
|
298
|
+
* @group Attribute Types
|
|
299
|
+
*/
|
|
300
|
+
export type PackMode = keyof PickMode.$values | `array${string}`;
|
|
301
|
+
/** @hidden */
|
|
302
|
+
export namespace PickMode {
|
|
303
|
+
export type values = Exclude<keyof $values, keyof $exclude | symbol | number>;
|
|
304
|
+
|
|
305
|
+
export interface $values extends $keywords<'node' | 'clust' | 'graph'> {}
|
|
306
|
+
export interface $exclude extends $keywordsValidation {}
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Using `"fast"` gives about a 2-4 times overall speedup compared with `"normal"`,
|
|
310
|
+
* though layout quality can suffer a little.
|
|
311
|
+
*
|
|
312
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/quadType/ quadType}
|
|
313
|
+
* @group Attribute Types
|
|
314
|
+
*/
|
|
315
|
+
export type QuadType = QuadType.values;
|
|
316
|
+
/** @hidden */
|
|
317
|
+
export namespace QuadType {
|
|
318
|
+
export type values = Exclude<keyof $values, keyof $exclude | symbol | number>;
|
|
319
|
+
|
|
320
|
+
export interface $values extends $keywords<'normal' | 'fast' | 'none'> {}
|
|
321
|
+
export interface $exclude extends $keywordsValidation {}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Rank Direction
|
|
326
|
+
*
|
|
327
|
+
* Corresponding to directed graphs drawn from top to bottom,
|
|
328
|
+
* from left to right, from bottom to top, and from right to left, respectively.
|
|
329
|
+
*
|
|
330
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/rankdir/ rankdir}
|
|
331
|
+
* @group Attribute Types
|
|
332
|
+
*/
|
|
333
|
+
export type Rankdir = 'TB' | 'BT' | 'LR' | 'RL';
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/rankType/ rankType}
|
|
337
|
+
* @group Attribute Types
|
|
338
|
+
*/
|
|
339
|
+
export type RankType = RankType.values;
|
|
340
|
+
/** @hidden */
|
|
341
|
+
export namespace RankType {
|
|
342
|
+
export type values = Exclude<keyof $values, keyof $exclude | symbol | number>;
|
|
343
|
+
|
|
344
|
+
export interface $values
|
|
345
|
+
extends $keywords<'same' | 'min' | 'source' | 'max' | 'sink'> {}
|
|
346
|
+
export interface $exclude extends $keywordsValidation {}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Which rank to move floating (loose) nodes to
|
|
351
|
+
*
|
|
352
|
+
* Valid options:
|
|
353
|
+
* - "min": Move floating (loose) nodes to minimum rank.
|
|
354
|
+
* - "max": Move floating (loose) nodes to maximum rank.
|
|
355
|
+
* - Otherwise, floating nodes are placed anywhere.
|
|
356
|
+
*
|
|
357
|
+
* Despite the name TBbalance ("Top-Bottom Balance"), this also works with left-right ranks, e.g. rankdir=LR.
|
|
358
|
+
*
|
|
359
|
+
* @see {@link https://graphviz.org/docs/attrs/TBbalance/ TBbalance}
|
|
360
|
+
* @group Attribute Types
|
|
361
|
+
*/
|
|
362
|
+
export type TBbalanceType = TBbalanceType.values;
|
|
363
|
+
/** @hidden */
|
|
364
|
+
export namespace TBbalanceType {
|
|
365
|
+
export type values = Exclude<keyof $values, keyof $exclude | symbol | number>;
|
|
366
|
+
|
|
367
|
+
export interface $values extends $keywords<'min' | 'max'> {}
|
|
368
|
+
export interface $exclude extends $keywordsValidation {}
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* `"%f,%f,%f,%f"`
|
|
372
|
+
*
|
|
373
|
+
* The rectangle `llx,lly,urx,ury` gives the coordinates, in points,
|
|
374
|
+
* of the lower-left corner `(llx,lly)` and the upper-right corner `(urx,ury)`.
|
|
375
|
+
*
|
|
376
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/rect/ rect}
|
|
377
|
+
* @group Attribute Types
|
|
378
|
+
*/
|
|
379
|
+
export type Rect = `${Double},${Double},${Double},${Double}`;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* The examples above show a set of commonly used arrow shapes.
|
|
383
|
+
*
|
|
384
|
+
* There is a grammar of arrow shapes which can be used to describe a collection of 3,111,696 arrow
|
|
385
|
+
* combinations of the 42 variations of the primitive set of 11 arrows.
|
|
386
|
+
*
|
|
387
|
+
* @see {@link https://graphviz.org/docs/attr-types/arrowType/ arrowType}
|
|
388
|
+
* @group Attribute Types
|
|
389
|
+
*/
|
|
390
|
+
export type ArrowType =
|
|
391
|
+
| ArrowType.aname
|
|
392
|
+
| `${ArrowType.aname}${ArrowType.aname}`;
|
|
393
|
+
/** @hidden */
|
|
394
|
+
export namespace ArrowType {
|
|
395
|
+
export type shape = keyof $shape;
|
|
396
|
+
|
|
397
|
+
export interface $shape
|
|
398
|
+
extends $keywords<
|
|
399
|
+
| 'box'
|
|
400
|
+
| 'crow'
|
|
401
|
+
| 'curve'
|
|
402
|
+
| 'icurve'
|
|
403
|
+
| 'diamond'
|
|
404
|
+
| 'dot'
|
|
405
|
+
| 'inv'
|
|
406
|
+
| 'none'
|
|
407
|
+
| 'normal'
|
|
408
|
+
| 'tee'
|
|
409
|
+
| 'vee'
|
|
410
|
+
> {}
|
|
411
|
+
export type side = 'l' | 'r';
|
|
412
|
+
|
|
413
|
+
export type modifiers = side | 'o' | `o${side}`;
|
|
414
|
+
|
|
415
|
+
export type aname = shape | `${modifiers}${shape}`;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/clusterMode/ clusterMode}
|
|
420
|
+
* @group Attribute Types
|
|
421
|
+
*/
|
|
422
|
+
export type ClusterMode = ClusterMode.values;
|
|
423
|
+
export namespace ClusterMode {
|
|
424
|
+
export type values = Exclude<keyof $values, keyof $exclude | symbol | number>;
|
|
425
|
+
|
|
426
|
+
export interface $values extends $keywords<'local' | 'global' | 'none'> {}
|
|
427
|
+
export interface $exclude extends $keywordsValidation {}
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/color/ color}
|
|
431
|
+
* @group Attribute Types
|
|
432
|
+
*/
|
|
433
|
+
export type Color = Color.RGB_RGBA | Color.HSV | Color.ColorName | number;
|
|
434
|
+
/** @hidden */
|
|
435
|
+
export namespace Color {
|
|
436
|
+
/**
|
|
437
|
+
* `"#%2x%2x%2x"` Red-Green-Blue (RGB)
|
|
438
|
+
*
|
|
439
|
+
* `"#%2x%2x%2x%2x"` Red-Green-Blue-Alpha (RGBA)
|
|
440
|
+
* @note A type that is too complicated to express in TypeScript.
|
|
441
|
+
*/
|
|
442
|
+
export type RGB_RGBA = `#${string}`;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Hue-Saturation-Value (HSV) 0.0 <= H,S,V <= 1.0
|
|
446
|
+
*/
|
|
447
|
+
export type HSV = `${number}+${number}+${number}`;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Color names are resolved in the context of a color scheme.
|
|
451
|
+
*
|
|
452
|
+
* Graphviz currently supports the X11 scheme, the SVG scheme, and the Brewer schemes, with X11 being the default.
|
|
453
|
+
* @see {@link https://graphviz.org/doc/info/colors.html Color Names}
|
|
454
|
+
*/
|
|
455
|
+
export type ColorName = Exclude<keyof $colors, keyof $exclude>;
|
|
456
|
+
export interface $colors
|
|
457
|
+
extends $keywords<
|
|
458
|
+
| 'aliceblue'
|
|
459
|
+
| 'antiquewhite'
|
|
460
|
+
| 'antiquewhite1'
|
|
461
|
+
| 'antiquewhite2'
|
|
462
|
+
| 'antiquewhite3'
|
|
463
|
+
| 'antiquewhite4'
|
|
464
|
+
| 'aqua'
|
|
465
|
+
| 'aquamarine'
|
|
466
|
+
| 'aquamarine1'
|
|
467
|
+
| 'aquamarine2'
|
|
468
|
+
| 'aquamarine3'
|
|
469
|
+
| 'aquamarine4'
|
|
470
|
+
| 'azure'
|
|
471
|
+
| 'azure1'
|
|
472
|
+
| 'azure2'
|
|
473
|
+
| 'azure3'
|
|
474
|
+
| 'azure4'
|
|
475
|
+
| 'beige'
|
|
476
|
+
| 'bisque'
|
|
477
|
+
| 'bisque1'
|
|
478
|
+
| 'bisque2'
|
|
479
|
+
| 'bisque3'
|
|
480
|
+
| 'bisque4'
|
|
481
|
+
| 'black'
|
|
482
|
+
| 'blanchedalmond'
|
|
483
|
+
| 'blue'
|
|
484
|
+
| 'blue1'
|
|
485
|
+
| 'blue2'
|
|
486
|
+
| 'blue3'
|
|
487
|
+
| 'blue4'
|
|
488
|
+
| 'blueviolet'
|
|
489
|
+
| 'brown'
|
|
490
|
+
| 'brown1'
|
|
491
|
+
| 'brown2'
|
|
492
|
+
| 'brown3'
|
|
493
|
+
| 'brown4'
|
|
494
|
+
| 'burlywood'
|
|
495
|
+
| 'burlywood1'
|
|
496
|
+
| 'burlywood2'
|
|
497
|
+
| 'burlywood3'
|
|
498
|
+
| 'burlywood4'
|
|
499
|
+
| 'cadetblue'
|
|
500
|
+
| 'cadetblue1'
|
|
501
|
+
| 'cadetblue2'
|
|
502
|
+
| 'cadetblue3'
|
|
503
|
+
| 'cadetblue4'
|
|
504
|
+
| 'chartreuse'
|
|
505
|
+
| 'chartreuse1'
|
|
506
|
+
| 'chartreuse2'
|
|
507
|
+
| 'chartreuse3'
|
|
508
|
+
| 'chartreuse4'
|
|
509
|
+
| 'chocolate'
|
|
510
|
+
| 'chocolate1'
|
|
511
|
+
| 'chocolate2'
|
|
512
|
+
| 'chocolate3'
|
|
513
|
+
| 'chocolate4'
|
|
514
|
+
| 'coral'
|
|
515
|
+
| 'coral1'
|
|
516
|
+
| 'coral2'
|
|
517
|
+
| 'coral3'
|
|
518
|
+
| 'coral4'
|
|
519
|
+
| 'cornflowerblue'
|
|
520
|
+
| 'cornsilk'
|
|
521
|
+
| 'cornsilk1'
|
|
522
|
+
| 'cornsilk2'
|
|
523
|
+
| 'cornsilk3'
|
|
524
|
+
| 'cornsilk4'
|
|
525
|
+
| 'crimson'
|
|
526
|
+
| 'cyan'
|
|
527
|
+
| 'cyan1'
|
|
528
|
+
| 'cyan2'
|
|
529
|
+
| 'cyan3'
|
|
530
|
+
| 'cyan4'
|
|
531
|
+
| 'darkblue'
|
|
532
|
+
| 'darkcyan'
|
|
533
|
+
| 'darkgoldenrod'
|
|
534
|
+
| 'darkgoldenrod1'
|
|
535
|
+
| 'darkgoldenrod2'
|
|
536
|
+
| 'darkgoldenrod3'
|
|
537
|
+
| 'darkgoldenrod4'
|
|
538
|
+
| 'darkgray'
|
|
539
|
+
| 'darkgreen'
|
|
540
|
+
| 'darkgrey'
|
|
541
|
+
| 'darkkhaki'
|
|
542
|
+
| 'darkmagenta'
|
|
543
|
+
| 'darkolivegreen'
|
|
544
|
+
| 'darkolivegreen1'
|
|
545
|
+
| 'darkolivegreen2'
|
|
546
|
+
| 'darkolivegreen3'
|
|
547
|
+
| 'darkolivegreen4'
|
|
548
|
+
| 'darkorange'
|
|
549
|
+
| 'darkorange1'
|
|
550
|
+
| 'darkorange2'
|
|
551
|
+
| 'darkorange3'
|
|
552
|
+
| 'darkorange4'
|
|
553
|
+
| 'darkorchid'
|
|
554
|
+
| 'darkorchid1'
|
|
555
|
+
| 'darkorchid2'
|
|
556
|
+
| 'darkorchid3'
|
|
557
|
+
| 'darkorchid4'
|
|
558
|
+
| 'darkred'
|
|
559
|
+
| 'darksalmon'
|
|
560
|
+
| 'darkseagreen'
|
|
561
|
+
| 'darkseagreen1'
|
|
562
|
+
| 'darkseagreen2'
|
|
563
|
+
| 'darkseagreen3'
|
|
564
|
+
| 'darkseagreen4'
|
|
565
|
+
| 'darkslateblue'
|
|
566
|
+
| 'darkslategray'
|
|
567
|
+
| 'darkslategray1'
|
|
568
|
+
| 'darkslategray2'
|
|
569
|
+
| 'darkslategray3'
|
|
570
|
+
| 'darkslategray4'
|
|
571
|
+
| 'darkslategrey'
|
|
572
|
+
| 'darkturquoise'
|
|
573
|
+
| 'darkviolet'
|
|
574
|
+
| 'deeppink'
|
|
575
|
+
| 'deeppink1'
|
|
576
|
+
| 'deeppink2'
|
|
577
|
+
| 'deeppink3'
|
|
578
|
+
| 'deeppink4'
|
|
579
|
+
| 'deepskyblue'
|
|
580
|
+
| 'deepskyblue1'
|
|
581
|
+
| 'deepskyblue2'
|
|
582
|
+
| 'deepskyblue3'
|
|
583
|
+
| 'deepskyblue4'
|
|
584
|
+
| 'dimgray'
|
|
585
|
+
| 'dimgrey'
|
|
586
|
+
| 'dodgerblue'
|
|
587
|
+
| 'dodgerblue1'
|
|
588
|
+
| 'dodgerblue2'
|
|
589
|
+
| 'dodgerblue3'
|
|
590
|
+
| 'dodgerblue4'
|
|
591
|
+
| 'firebrick'
|
|
592
|
+
| 'firebrick1'
|
|
593
|
+
| 'firebrick2'
|
|
594
|
+
| 'firebrick3'
|
|
595
|
+
| 'firebrick4'
|
|
596
|
+
| 'floralwhite'
|
|
597
|
+
| 'forestgreen'
|
|
598
|
+
| 'fuchsia'
|
|
599
|
+
| 'gainsboro'
|
|
600
|
+
| 'ghostwhite'
|
|
601
|
+
| 'gold'
|
|
602
|
+
| 'gold1'
|
|
603
|
+
| 'gold2'
|
|
604
|
+
| 'gold3'
|
|
605
|
+
| 'gold4'
|
|
606
|
+
| 'goldenrod'
|
|
607
|
+
| 'goldenrod1'
|
|
608
|
+
| 'goldenrod2'
|
|
609
|
+
| 'goldenrod3'
|
|
610
|
+
| 'goldenrod4'
|
|
611
|
+
| 'gray'
|
|
612
|
+
| 'gray0'
|
|
613
|
+
| 'gray1'
|
|
614
|
+
| 'gray10'
|
|
615
|
+
| 'gray100'
|
|
616
|
+
| 'gray11'
|
|
617
|
+
| 'gray12'
|
|
618
|
+
| 'gray13'
|
|
619
|
+
| 'gray14'
|
|
620
|
+
| 'gray15'
|
|
621
|
+
| 'gray16'
|
|
622
|
+
| 'gray17'
|
|
623
|
+
| 'gray18'
|
|
624
|
+
| 'gray19'
|
|
625
|
+
| 'gray2'
|
|
626
|
+
| 'gray20'
|
|
627
|
+
| 'gray21'
|
|
628
|
+
| 'gray22'
|
|
629
|
+
| 'gray23'
|
|
630
|
+
| 'gray24'
|
|
631
|
+
| 'gray25'
|
|
632
|
+
| 'gray26'
|
|
633
|
+
| 'gray27'
|
|
634
|
+
| 'gray28'
|
|
635
|
+
| 'gray29'
|
|
636
|
+
| 'gray3'
|
|
637
|
+
| 'gray30'
|
|
638
|
+
| 'gray31'
|
|
639
|
+
| 'gray32'
|
|
640
|
+
| 'gray33'
|
|
641
|
+
| 'gray34'
|
|
642
|
+
| 'gray35'
|
|
643
|
+
| 'gray36'
|
|
644
|
+
| 'gray37'
|
|
645
|
+
| 'gray38'
|
|
646
|
+
| 'gray39'
|
|
647
|
+
| 'gray4'
|
|
648
|
+
| 'gray40'
|
|
649
|
+
| 'gray41'
|
|
650
|
+
| 'gray42'
|
|
651
|
+
| 'gray43'
|
|
652
|
+
| 'gray44'
|
|
653
|
+
| 'gray45'
|
|
654
|
+
| 'gray46'
|
|
655
|
+
| 'gray47'
|
|
656
|
+
| 'gray48'
|
|
657
|
+
| 'gray49'
|
|
658
|
+
| 'gray5'
|
|
659
|
+
| 'gray50'
|
|
660
|
+
| 'gray51'
|
|
661
|
+
| 'gray52'
|
|
662
|
+
| 'gray53'
|
|
663
|
+
| 'gray54'
|
|
664
|
+
| 'gray55'
|
|
665
|
+
| 'gray56'
|
|
666
|
+
| 'gray57'
|
|
667
|
+
| 'gray58'
|
|
668
|
+
| 'gray59'
|
|
669
|
+
| 'gray6'
|
|
670
|
+
| 'gray60'
|
|
671
|
+
| 'gray61'
|
|
672
|
+
| 'gray62'
|
|
673
|
+
| 'gray63'
|
|
674
|
+
| 'gray64'
|
|
675
|
+
| 'gray65'
|
|
676
|
+
| 'gray66'
|
|
677
|
+
| 'gray67'
|
|
678
|
+
| 'gray68'
|
|
679
|
+
| 'gray69'
|
|
680
|
+
| 'gray7'
|
|
681
|
+
| 'gray70'
|
|
682
|
+
| 'gray71'
|
|
683
|
+
| 'gray72'
|
|
684
|
+
| 'gray73'
|
|
685
|
+
| 'gray74'
|
|
686
|
+
| 'gray75'
|
|
687
|
+
| 'gray76'
|
|
688
|
+
| 'gray77'
|
|
689
|
+
| 'gray78'
|
|
690
|
+
| 'gray79'
|
|
691
|
+
| 'gray8'
|
|
692
|
+
| 'gray80'
|
|
693
|
+
| 'gray81'
|
|
694
|
+
| 'gray82'
|
|
695
|
+
| 'gray83'
|
|
696
|
+
| 'gray84'
|
|
697
|
+
| 'gray85'
|
|
698
|
+
| 'gray86'
|
|
699
|
+
| 'gray87'
|
|
700
|
+
| 'gray88'
|
|
701
|
+
| 'gray89'
|
|
702
|
+
| 'gray9'
|
|
703
|
+
| 'gray90'
|
|
704
|
+
| 'gray91'
|
|
705
|
+
| 'gray92'
|
|
706
|
+
| 'gray93'
|
|
707
|
+
| 'gray94'
|
|
708
|
+
| 'gray95'
|
|
709
|
+
| 'gray96'
|
|
710
|
+
| 'gray97'
|
|
711
|
+
| 'gray98'
|
|
712
|
+
| 'gray99'
|
|
713
|
+
| 'green'
|
|
714
|
+
| 'green1'
|
|
715
|
+
| 'green2'
|
|
716
|
+
| 'green3'
|
|
717
|
+
| 'green4'
|
|
718
|
+
| 'greenyellow'
|
|
719
|
+
| 'grey'
|
|
720
|
+
| 'grey0'
|
|
721
|
+
| 'grey1'
|
|
722
|
+
| 'grey10'
|
|
723
|
+
| 'grey100'
|
|
724
|
+
| 'grey11'
|
|
725
|
+
| 'grey12'
|
|
726
|
+
| 'grey13'
|
|
727
|
+
| 'grey14'
|
|
728
|
+
| 'grey15'
|
|
729
|
+
| 'grey16'
|
|
730
|
+
| 'grey17'
|
|
731
|
+
| 'grey18'
|
|
732
|
+
| 'grey19'
|
|
733
|
+
| 'grey2'
|
|
734
|
+
| 'grey20'
|
|
735
|
+
| 'grey21'
|
|
736
|
+
| 'grey22'
|
|
737
|
+
| 'grey23'
|
|
738
|
+
| 'grey24'
|
|
739
|
+
| 'grey25'
|
|
740
|
+
| 'grey26'
|
|
741
|
+
| 'grey27'
|
|
742
|
+
| 'grey28'
|
|
743
|
+
| 'grey29'
|
|
744
|
+
| 'grey3'
|
|
745
|
+
| 'grey30'
|
|
746
|
+
| 'grey31'
|
|
747
|
+
| 'grey32'
|
|
748
|
+
| 'grey33'
|
|
749
|
+
| 'grey34'
|
|
750
|
+
| 'grey35'
|
|
751
|
+
| 'grey36'
|
|
752
|
+
| 'grey37'
|
|
753
|
+
| 'grey38'
|
|
754
|
+
| 'grey39'
|
|
755
|
+
| 'grey4'
|
|
756
|
+
| 'grey40'
|
|
757
|
+
| 'grey41'
|
|
758
|
+
| 'grey42'
|
|
759
|
+
| 'grey43'
|
|
760
|
+
| 'grey44'
|
|
761
|
+
| 'grey45'
|
|
762
|
+
| 'grey46'
|
|
763
|
+
| 'grey47'
|
|
764
|
+
| 'grey48'
|
|
765
|
+
| 'grey49'
|
|
766
|
+
| 'grey5'
|
|
767
|
+
| 'grey50'
|
|
768
|
+
| 'grey51'
|
|
769
|
+
| 'grey52'
|
|
770
|
+
| 'grey53'
|
|
771
|
+
| 'grey54'
|
|
772
|
+
| 'grey55'
|
|
773
|
+
| 'grey56'
|
|
774
|
+
| 'grey57'
|
|
775
|
+
| 'grey58'
|
|
776
|
+
| 'grey59'
|
|
777
|
+
| 'grey6'
|
|
778
|
+
| 'grey60'
|
|
779
|
+
| 'grey61'
|
|
780
|
+
| 'grey62'
|
|
781
|
+
| 'grey63'
|
|
782
|
+
| 'grey64'
|
|
783
|
+
| 'grey65'
|
|
784
|
+
| 'grey66'
|
|
785
|
+
| 'grey67'
|
|
786
|
+
| 'grey68'
|
|
787
|
+
| 'grey69'
|
|
788
|
+
| 'grey7'
|
|
789
|
+
| 'grey70'
|
|
790
|
+
| 'grey71'
|
|
791
|
+
| 'grey72'
|
|
792
|
+
| 'grey73'
|
|
793
|
+
| 'grey74'
|
|
794
|
+
| 'grey75'
|
|
795
|
+
| 'grey76'
|
|
796
|
+
| 'grey77'
|
|
797
|
+
| 'grey78'
|
|
798
|
+
| 'grey79'
|
|
799
|
+
| 'grey8'
|
|
800
|
+
| 'grey80'
|
|
801
|
+
| 'grey81'
|
|
802
|
+
| 'grey82'
|
|
803
|
+
| 'grey83'
|
|
804
|
+
| 'grey84'
|
|
805
|
+
| 'grey85'
|
|
806
|
+
| 'grey86'
|
|
807
|
+
| 'grey87'
|
|
808
|
+
| 'grey88'
|
|
809
|
+
| 'grey89'
|
|
810
|
+
| 'grey9'
|
|
811
|
+
| 'grey90'
|
|
812
|
+
| 'grey91'
|
|
813
|
+
| 'grey92'
|
|
814
|
+
| 'grey93'
|
|
815
|
+
| 'grey94'
|
|
816
|
+
| 'grey95'
|
|
817
|
+
| 'grey96'
|
|
818
|
+
| 'grey97'
|
|
819
|
+
| 'grey98'
|
|
820
|
+
| 'grey99'
|
|
821
|
+
| 'honeydew'
|
|
822
|
+
| 'honeydew1'
|
|
823
|
+
| 'honeydew2'
|
|
824
|
+
| 'honeydew3'
|
|
825
|
+
| 'honeydew4'
|
|
826
|
+
| 'hotpink'
|
|
827
|
+
| 'hotpink1'
|
|
828
|
+
| 'hotpink2'
|
|
829
|
+
| 'hotpink3'
|
|
830
|
+
| 'hotpink4'
|
|
831
|
+
| 'indianred'
|
|
832
|
+
| 'indianred1'
|
|
833
|
+
| 'indianred2'
|
|
834
|
+
| 'indianred3'
|
|
835
|
+
| 'indianred4'
|
|
836
|
+
| 'indigo'
|
|
837
|
+
| 'invis'
|
|
838
|
+
| 'ivory'
|
|
839
|
+
| 'ivory1'
|
|
840
|
+
| 'ivory2'
|
|
841
|
+
| 'ivory3'
|
|
842
|
+
| 'ivory4'
|
|
843
|
+
| 'khaki'
|
|
844
|
+
| 'khaki1'
|
|
845
|
+
| 'khaki2'
|
|
846
|
+
| 'khaki3'
|
|
847
|
+
| 'khaki4'
|
|
848
|
+
| 'lavender'
|
|
849
|
+
| 'lavenderblush'
|
|
850
|
+
| 'lavenderblush1'
|
|
851
|
+
| 'lavenderblush2'
|
|
852
|
+
| 'lavenderblush3'
|
|
853
|
+
| 'lavenderblush4'
|
|
854
|
+
| 'lawngreen'
|
|
855
|
+
| 'lemonchiffon'
|
|
856
|
+
| 'lemonchiffon1'
|
|
857
|
+
| 'lemonchiffon2'
|
|
858
|
+
| 'lemonchiffon3'
|
|
859
|
+
| 'lemonchiffon4'
|
|
860
|
+
| 'lightblue'
|
|
861
|
+
| 'lightblue1'
|
|
862
|
+
| 'lightblue2'
|
|
863
|
+
| 'lightblue3'
|
|
864
|
+
| 'lightblue4'
|
|
865
|
+
| 'lightcoral'
|
|
866
|
+
| 'lightcyan'
|
|
867
|
+
| 'lightcyan1'
|
|
868
|
+
| 'lightcyan2'
|
|
869
|
+
| 'lightcyan3'
|
|
870
|
+
| 'lightcyan4'
|
|
871
|
+
| 'lightgoldenrod'
|
|
872
|
+
| 'lightgoldenrod1'
|
|
873
|
+
| 'lightgoldenrod2'
|
|
874
|
+
| 'lightgoldenrod3'
|
|
875
|
+
| 'lightgoldenrod4'
|
|
876
|
+
| 'lightgoldenrodyellow'
|
|
877
|
+
| 'lightgray'
|
|
878
|
+
| 'lightgreen'
|
|
879
|
+
| 'lightgrey'
|
|
880
|
+
| 'lightpink'
|
|
881
|
+
| 'lightpink1'
|
|
882
|
+
| 'lightpink2'
|
|
883
|
+
| 'lightpink3'
|
|
884
|
+
| 'lightpink4'
|
|
885
|
+
| 'lightsalmon'
|
|
886
|
+
| 'lightsalmon1'
|
|
887
|
+
| 'lightsalmon2'
|
|
888
|
+
| 'lightsalmon3'
|
|
889
|
+
| 'lightsalmon4'
|
|
890
|
+
| 'lightseagreen'
|
|
891
|
+
| 'lightskyblue'
|
|
892
|
+
| 'lightskyblue1'
|
|
893
|
+
| 'lightskyblue2'
|
|
894
|
+
| 'lightskyblue3'
|
|
895
|
+
| 'lightskyblue4'
|
|
896
|
+
| 'lightslateblue'
|
|
897
|
+
| 'lightslategray'
|
|
898
|
+
| 'lightslategrey'
|
|
899
|
+
| 'lightsteelblue'
|
|
900
|
+
| 'lightsteelblue1'
|
|
901
|
+
| 'lightsteelblue2'
|
|
902
|
+
| 'lightsteelblue3'
|
|
903
|
+
| 'lightsteelblue4'
|
|
904
|
+
| 'lightyellow'
|
|
905
|
+
| 'lightyellow1'
|
|
906
|
+
| 'lightyellow2'
|
|
907
|
+
| 'lightyellow3'
|
|
908
|
+
| 'lightyellow4'
|
|
909
|
+
| 'lime'
|
|
910
|
+
| 'limegreen'
|
|
911
|
+
| 'linen'
|
|
912
|
+
| 'magenta'
|
|
913
|
+
| 'magenta1'
|
|
914
|
+
| 'magenta2'
|
|
915
|
+
| 'magenta3'
|
|
916
|
+
| 'magenta4'
|
|
917
|
+
| 'maroon'
|
|
918
|
+
| 'maroon1'
|
|
919
|
+
| 'maroon2'
|
|
920
|
+
| 'maroon3'
|
|
921
|
+
| 'maroon4'
|
|
922
|
+
| 'mediumaquamarine'
|
|
923
|
+
| 'mediumblue'
|
|
924
|
+
| 'mediumorchid'
|
|
925
|
+
| 'mediumorchid1'
|
|
926
|
+
| 'mediumorchid2'
|
|
927
|
+
| 'mediumorchid3'
|
|
928
|
+
| 'mediumorchid4'
|
|
929
|
+
| 'mediumpurple'
|
|
930
|
+
| 'mediumpurple1'
|
|
931
|
+
| 'mediumpurple2'
|
|
932
|
+
| 'mediumpurple3'
|
|
933
|
+
| 'mediumpurple4'
|
|
934
|
+
| 'mediumseagreen'
|
|
935
|
+
| 'mediumslateblue'
|
|
936
|
+
| 'mediumspringgreen'
|
|
937
|
+
| 'mediumturquoise'
|
|
938
|
+
| 'mediumvioletred'
|
|
939
|
+
| 'midnightblue'
|
|
940
|
+
| 'mintcream'
|
|
941
|
+
| 'mistyrose'
|
|
942
|
+
| 'mistyrose1'
|
|
943
|
+
| 'mistyrose2'
|
|
944
|
+
| 'mistyrose3'
|
|
945
|
+
| 'mistyrose4'
|
|
946
|
+
| 'moccasin'
|
|
947
|
+
| 'navajowhite'
|
|
948
|
+
| 'navajowhite1'
|
|
949
|
+
| 'navajowhite2'
|
|
950
|
+
| 'navajowhite3'
|
|
951
|
+
| 'navajowhite4'
|
|
952
|
+
| 'navy'
|
|
953
|
+
| 'navyblue'
|
|
954
|
+
| 'none'
|
|
955
|
+
| 'oldlace'
|
|
956
|
+
| 'olive'
|
|
957
|
+
| 'olivedrab'
|
|
958
|
+
| 'olivedrab1'
|
|
959
|
+
| 'olivedrab2'
|
|
960
|
+
| 'olivedrab3'
|
|
961
|
+
| 'olivedrab4'
|
|
962
|
+
| 'orange'
|
|
963
|
+
| 'orange1'
|
|
964
|
+
| 'orange2'
|
|
965
|
+
| 'orange3'
|
|
966
|
+
| 'orange4'
|
|
967
|
+
| 'orangered'
|
|
968
|
+
| 'orangered1'
|
|
969
|
+
| 'orangered2'
|
|
970
|
+
| 'orangered3'
|
|
971
|
+
| 'orangered4'
|
|
972
|
+
| 'orchid'
|
|
973
|
+
| 'orchid1'
|
|
974
|
+
| 'orchid2'
|
|
975
|
+
| 'orchid3'
|
|
976
|
+
| 'orchid4'
|
|
977
|
+
| 'palegoldenrod'
|
|
978
|
+
| 'palegreen'
|
|
979
|
+
| 'palegreen1'
|
|
980
|
+
| 'palegreen2'
|
|
981
|
+
| 'palegreen3'
|
|
982
|
+
| 'palegreen4'
|
|
983
|
+
| 'paleturquoise'
|
|
984
|
+
| 'paleturquoise1'
|
|
985
|
+
| 'paleturquoise2'
|
|
986
|
+
| 'paleturquoise3'
|
|
987
|
+
| 'paleturquoise4'
|
|
988
|
+
| 'palevioletred'
|
|
989
|
+
| 'palevioletred1'
|
|
990
|
+
| 'palevioletred2'
|
|
991
|
+
| 'palevioletred3'
|
|
992
|
+
| 'palevioletred4'
|
|
993
|
+
| 'papayawhip'
|
|
994
|
+
| 'peachpuff'
|
|
995
|
+
| 'peachpuff1'
|
|
996
|
+
| 'peachpuff2'
|
|
997
|
+
| 'peachpuff3'
|
|
998
|
+
| 'peachpuff4'
|
|
999
|
+
| 'peru'
|
|
1000
|
+
| 'pink'
|
|
1001
|
+
| 'pink1'
|
|
1002
|
+
| 'pink2'
|
|
1003
|
+
| 'pink3'
|
|
1004
|
+
| 'pink4'
|
|
1005
|
+
| 'plum'
|
|
1006
|
+
| 'plum1'
|
|
1007
|
+
| 'plum2'
|
|
1008
|
+
| 'plum3'
|
|
1009
|
+
| 'plum4'
|
|
1010
|
+
| 'powderblue'
|
|
1011
|
+
| 'purple'
|
|
1012
|
+
| 'purple1'
|
|
1013
|
+
| 'purple2'
|
|
1014
|
+
| 'purple3'
|
|
1015
|
+
| 'purple4'
|
|
1016
|
+
| 'rebeccapurple'
|
|
1017
|
+
| 'red'
|
|
1018
|
+
| 'red1'
|
|
1019
|
+
| 'red2'
|
|
1020
|
+
| 'red3'
|
|
1021
|
+
| 'red4'
|
|
1022
|
+
| 'rosybrown'
|
|
1023
|
+
| 'rosybrown1'
|
|
1024
|
+
| 'rosybrown2'
|
|
1025
|
+
| 'rosybrown3'
|
|
1026
|
+
| 'rosybrown4'
|
|
1027
|
+
| 'royalblue'
|
|
1028
|
+
| 'royalblue1'
|
|
1029
|
+
| 'royalblue2'
|
|
1030
|
+
| 'royalblue3'
|
|
1031
|
+
| 'royalblue4'
|
|
1032
|
+
| 'saddlebrown'
|
|
1033
|
+
| 'salmon'
|
|
1034
|
+
| 'salmon1'
|
|
1035
|
+
| 'salmon2'
|
|
1036
|
+
| 'salmon3'
|
|
1037
|
+
| 'salmon4'
|
|
1038
|
+
| 'sandybrown'
|
|
1039
|
+
| 'seagreen'
|
|
1040
|
+
| 'seagreen1'
|
|
1041
|
+
| 'seagreen2'
|
|
1042
|
+
| 'seagreen3'
|
|
1043
|
+
| 'seagreen4'
|
|
1044
|
+
| 'seashell'
|
|
1045
|
+
| 'seashell1'
|
|
1046
|
+
| 'seashell2'
|
|
1047
|
+
| 'seashell3'
|
|
1048
|
+
| 'seashell4'
|
|
1049
|
+
| 'sienna'
|
|
1050
|
+
| 'sienna1'
|
|
1051
|
+
| 'sienna2'
|
|
1052
|
+
| 'sienna3'
|
|
1053
|
+
| 'sienna4'
|
|
1054
|
+
| 'silver'
|
|
1055
|
+
| 'skyblue'
|
|
1056
|
+
| 'skyblue1'
|
|
1057
|
+
| 'skyblue2'
|
|
1058
|
+
| 'skyblue3'
|
|
1059
|
+
| 'skyblue4'
|
|
1060
|
+
| 'slateblue'
|
|
1061
|
+
| 'slateblue1'
|
|
1062
|
+
| 'slateblue2'
|
|
1063
|
+
| 'slateblue3'
|
|
1064
|
+
| 'slateblue4'
|
|
1065
|
+
| 'slategray'
|
|
1066
|
+
| 'slategray1'
|
|
1067
|
+
| 'slategray2'
|
|
1068
|
+
| 'slategray3'
|
|
1069
|
+
| 'slategray4'
|
|
1070
|
+
| 'slategrey'
|
|
1071
|
+
| 'snow'
|
|
1072
|
+
| 'snow1'
|
|
1073
|
+
| 'snow2'
|
|
1074
|
+
| 'snow3'
|
|
1075
|
+
| 'snow4'
|
|
1076
|
+
| 'springgreen'
|
|
1077
|
+
| 'springgreen1'
|
|
1078
|
+
| 'springgreen2'
|
|
1079
|
+
| 'springgreen3'
|
|
1080
|
+
| 'springgreen4'
|
|
1081
|
+
| 'steelblue'
|
|
1082
|
+
| 'steelblue1'
|
|
1083
|
+
| 'steelblue2'
|
|
1084
|
+
| 'steelblue3'
|
|
1085
|
+
| 'steelblue4'
|
|
1086
|
+
| 'tan'
|
|
1087
|
+
| 'tan1'
|
|
1088
|
+
| 'tan2'
|
|
1089
|
+
| 'tan3'
|
|
1090
|
+
| 'tan4'
|
|
1091
|
+
| 'teal'
|
|
1092
|
+
| 'thistle'
|
|
1093
|
+
| 'thistle1'
|
|
1094
|
+
| 'thistle2'
|
|
1095
|
+
| 'thistle3'
|
|
1096
|
+
| 'thistle4'
|
|
1097
|
+
| 'tomato'
|
|
1098
|
+
| 'tomato1'
|
|
1099
|
+
| 'tomato2'
|
|
1100
|
+
| 'tomato3'
|
|
1101
|
+
| 'tomato4'
|
|
1102
|
+
| 'transparent'
|
|
1103
|
+
| 'turquoise'
|
|
1104
|
+
| 'turquoise1'
|
|
1105
|
+
| 'turquoise2'
|
|
1106
|
+
| 'turquoise3'
|
|
1107
|
+
| 'turquoise4'
|
|
1108
|
+
| 'violet'
|
|
1109
|
+
| 'violetred'
|
|
1110
|
+
| 'violetred1'
|
|
1111
|
+
| 'violetred2'
|
|
1112
|
+
| 'violetred3'
|
|
1113
|
+
| 'violetred4'
|
|
1114
|
+
| 'webgray'
|
|
1115
|
+
| 'webgreen'
|
|
1116
|
+
| 'webgrey'
|
|
1117
|
+
| 'webmaroon'
|
|
1118
|
+
| 'webpurple'
|
|
1119
|
+
| 'wheat'
|
|
1120
|
+
| 'wheat1'
|
|
1121
|
+
| 'wheat2'
|
|
1122
|
+
| 'wheat3'
|
|
1123
|
+
| 'wheat4'
|
|
1124
|
+
| 'white'
|
|
1125
|
+
| 'whitesmoke'
|
|
1126
|
+
| 'x11gray'
|
|
1127
|
+
| 'x11green'
|
|
1128
|
+
| 'x11grey'
|
|
1129
|
+
| 'x11maroon'
|
|
1130
|
+
| 'x11purple'
|
|
1131
|
+
| 'yellow'
|
|
1132
|
+
| 'yellow1'
|
|
1133
|
+
| 'yellow2'
|
|
1134
|
+
| 'yellow3'
|
|
1135
|
+
| 'yellow4'
|
|
1136
|
+
| 'yellowgreen'
|
|
1137
|
+
| 'aliceblue'
|
|
1138
|
+
| 'antiquewhite'
|
|
1139
|
+
| 'aqua'
|
|
1140
|
+
| 'aquamarine'
|
|
1141
|
+
| 'azure'
|
|
1142
|
+
| 'beige'
|
|
1143
|
+
| 'bisque'
|
|
1144
|
+
| 'black'
|
|
1145
|
+
| 'blanchedalmond'
|
|
1146
|
+
| 'blue'
|
|
1147
|
+
| 'blueviolet'
|
|
1148
|
+
| 'brown'
|
|
1149
|
+
| 'burlywood'
|
|
1150
|
+
| 'cadetblue'
|
|
1151
|
+
| 'chartreuse'
|
|
1152
|
+
| 'chocolate'
|
|
1153
|
+
| 'coral'
|
|
1154
|
+
| 'cornflowerblue'
|
|
1155
|
+
| 'cornsilk'
|
|
1156
|
+
| 'crimson'
|
|
1157
|
+
| 'cyan'
|
|
1158
|
+
| 'darkblue'
|
|
1159
|
+
| 'darkcyan'
|
|
1160
|
+
| 'darkgoldenrod'
|
|
1161
|
+
| 'darkgray'
|
|
1162
|
+
| 'darkgreen'
|
|
1163
|
+
| 'darkgrey'
|
|
1164
|
+
| 'darkkhaki'
|
|
1165
|
+
| 'darkmagenta'
|
|
1166
|
+
| 'darkolivegreen'
|
|
1167
|
+
| 'darkorange'
|
|
1168
|
+
| 'darkorchid'
|
|
1169
|
+
| 'darkred'
|
|
1170
|
+
| 'darksalmon'
|
|
1171
|
+
| 'darkseagreen'
|
|
1172
|
+
| 'darkslateblue'
|
|
1173
|
+
| 'darkslategray'
|
|
1174
|
+
| 'darkslategrey'
|
|
1175
|
+
| 'darkturquoise'
|
|
1176
|
+
| 'darkviolet'
|
|
1177
|
+
| 'deeppink'
|
|
1178
|
+
| 'deepskyblue'
|
|
1179
|
+
| 'dimgray'
|
|
1180
|
+
| 'dimgrey'
|
|
1181
|
+
| 'dodgerblue'
|
|
1182
|
+
| 'firebrick'
|
|
1183
|
+
| 'floralwhite'
|
|
1184
|
+
| 'forestgreen'
|
|
1185
|
+
| 'fuchsia'
|
|
1186
|
+
| 'gainsboro'
|
|
1187
|
+
| 'ghostwhite'
|
|
1188
|
+
| 'gold'
|
|
1189
|
+
| 'goldenrod'
|
|
1190
|
+
| 'gray'
|
|
1191
|
+
| 'grey'
|
|
1192
|
+
| 'green'
|
|
1193
|
+
| 'greenyellow'
|
|
1194
|
+
| 'honeydew'
|
|
1195
|
+
| 'hotpink'
|
|
1196
|
+
| 'indianred'
|
|
1197
|
+
| 'indigo'
|
|
1198
|
+
| 'ivory'
|
|
1199
|
+
| 'khaki'
|
|
1200
|
+
| 'lavender'
|
|
1201
|
+
| 'lavenderblush'
|
|
1202
|
+
| 'lawngreen'
|
|
1203
|
+
| 'lemonchiffon'
|
|
1204
|
+
| 'lightblue'
|
|
1205
|
+
| 'lightcoral'
|
|
1206
|
+
| 'lightcyan'
|
|
1207
|
+
| 'lightgoldenrodyellow'
|
|
1208
|
+
| 'lightgray'
|
|
1209
|
+
| 'lightgreen'
|
|
1210
|
+
| 'lightgrey'
|
|
1211
|
+
| 'lightpink'
|
|
1212
|
+
| 'lightsalmon'
|
|
1213
|
+
| 'lightseagreen'
|
|
1214
|
+
| 'lightskyblue'
|
|
1215
|
+
| 'lightslategray'
|
|
1216
|
+
| 'lightslategrey'
|
|
1217
|
+
| 'lightsteelblue'
|
|
1218
|
+
| 'lightyellow'
|
|
1219
|
+
| 'lime'
|
|
1220
|
+
| 'limegreen'
|
|
1221
|
+
| 'linen'
|
|
1222
|
+
| 'magenta'
|
|
1223
|
+
| 'maroon'
|
|
1224
|
+
| 'mediumaquamarine'
|
|
1225
|
+
| 'mediumblue'
|
|
1226
|
+
| 'mediumorchid'
|
|
1227
|
+
| 'mediumpurple'
|
|
1228
|
+
| 'mediumseagreen'
|
|
1229
|
+
| 'mediumslateblue'
|
|
1230
|
+
| 'mediumspringgreen'
|
|
1231
|
+
| 'mediumturquoise'
|
|
1232
|
+
| 'mediumvioletred'
|
|
1233
|
+
| 'midnightblue'
|
|
1234
|
+
| 'mintcream'
|
|
1235
|
+
| 'mistyrose'
|
|
1236
|
+
| 'moccasin'
|
|
1237
|
+
| 'navajowhite'
|
|
1238
|
+
| 'navy'
|
|
1239
|
+
| 'oldlace'
|
|
1240
|
+
| 'olive'
|
|
1241
|
+
| 'olivedrab'
|
|
1242
|
+
| 'orange'
|
|
1243
|
+
| 'orangered'
|
|
1244
|
+
| 'orchid'
|
|
1245
|
+
| 'palegoldenrod'
|
|
1246
|
+
| 'palegreen'
|
|
1247
|
+
| 'paleturquoise'
|
|
1248
|
+
| 'palevioletred'
|
|
1249
|
+
| 'papayawhip'
|
|
1250
|
+
| 'peachpuff'
|
|
1251
|
+
| 'peru'
|
|
1252
|
+
| 'pink'
|
|
1253
|
+
| 'plum'
|
|
1254
|
+
| 'powderblue'
|
|
1255
|
+
| 'purple'
|
|
1256
|
+
| 'red'
|
|
1257
|
+
| 'rosybrown'
|
|
1258
|
+
| 'royalblue'
|
|
1259
|
+
| 'saddlebrown'
|
|
1260
|
+
| 'salmon'
|
|
1261
|
+
| 'sandybrown'
|
|
1262
|
+
| 'seagreen'
|
|
1263
|
+
| 'seashell'
|
|
1264
|
+
| 'sienna'
|
|
1265
|
+
| 'silver'
|
|
1266
|
+
| 'skyblue'
|
|
1267
|
+
| 'slateblue'
|
|
1268
|
+
| 'slategray'
|
|
1269
|
+
| 'slategrey'
|
|
1270
|
+
| 'snow'
|
|
1271
|
+
| 'springgreen'
|
|
1272
|
+
| 'steelblue'
|
|
1273
|
+
| 'tan'
|
|
1274
|
+
| 'teal'
|
|
1275
|
+
| 'thistle'
|
|
1276
|
+
| 'tomato'
|
|
1277
|
+
| 'turquoise'
|
|
1278
|
+
| 'violet'
|
|
1279
|
+
| 'wheat'
|
|
1280
|
+
| 'white'
|
|
1281
|
+
| 'whitesmoke'
|
|
1282
|
+
| 'yellow'
|
|
1283
|
+
| 'yellowgreen'
|
|
1284
|
+
> {}
|
|
1285
|
+
export interface $exclude extends $keywordsValidation {}
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* A colon-separated list of weighted color values: WC(:WC)* where each WC has the form C(;F)? with C a color value and the optional F a floating-point number, 0 ≤ F ≤ 1.
|
|
1290
|
+
*
|
|
1291
|
+
* The sum of the floating-point numbers in a colorList must sum to at most 1.
|
|
1292
|
+
*
|
|
1293
|
+
* @note A type that is too complicated to express in TypeScript.
|
|
1294
|
+
*
|
|
1295
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/colorList/}
|
|
1296
|
+
* @group Attribute Types
|
|
1297
|
+
*/
|
|
1298
|
+
export type ColorList = string;
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* Direction Type
|
|
1302
|
+
*
|
|
1303
|
+
* @see {@link https://graphviz.gitlab.io/docs/attr-types/dirType/ dirType}
|
|
1304
|
+
* @group Attribute Types
|
|
1305
|
+
*/
|
|
1306
|
+
export type DirType = DirType.values;
|
|
1307
|
+
/** @hidden */
|
|
1308
|
+
export namespace DirType {
|
|
1309
|
+
export type values = Exclude<keyof $values, keyof $exclude | symbol | number>;
|
|
1310
|
+
|
|
1311
|
+
export interface $values
|
|
1312
|
+
extends $keywords<'forward' | 'back' | 'both' | 'none'> {}
|
|
1313
|
+
export interface $exclude extends $keywordsValidation {}
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* Page Direction
|
|
1318
|
+
*
|
|
1319
|
+
* @see {@link https://graphviz.org/docs/attr-types/pagedir/ pagedir}
|
|
1320
|
+
* @group Attribute Types
|
|
1321
|
+
*/
|
|
1322
|
+
export type Pagedir = `${Pagedir.TB}${Pagedir.RL}`;
|
|
1323
|
+
/** @hidden */
|
|
1324
|
+
export namespace Pagedir {
|
|
1325
|
+
export type TB = 'T' | 'B';
|
|
1326
|
+
export type RL = 'R' | 'L';
|
|
1327
|
+
}
|