blob: af84a53151051dbcf0dece2909559fa835827dec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
/**
* Returns a configuration by extending the defaults with the user overrides.
*
* @param {tConfiguration} [overrides={}] - User overrides.
* @returns {tConfiguration} The extended configuration.
*/
export function extendConfiguration(overrides?: tConfiguration): tConfiguration;
/**
* The configuration options to control the render.
*/
export type tConfiguration = {
/**
* - Options that control how the map is rendered.
*/
options: tConfigurationOptions;
/**
* - Options that control the look of the map.
*/
theme: tConfigurationTheme;
};
/**
* Options that control how the map is rendered
*/
export type tConfigurationOptions = {
/**
* - Whether to render the background patterns.
*/
showBackground: boolean;
/**
* - Whether to activate smart label positioning.
*/
smartLabelPositioning: boolean;
};
/**
* Options that control how the map is rendered
*/
export type tConfigurationTheme = {
/**
* - The colors of map elements.
*/
colors: tConfigurationThemeColors;
/**
* - The sizes of map elements.
*/
sizes: tConfigurationThemeSizes;
/**
* - The font family and sizes.
*/
fonts: tConfigurationThemeFonts;
/**
* - The line heights of map text.
*/
lineHeights: tConfigurationThemeLineHeights;
/**
* - Opacity of map elements.
*/
opacity: tConfigurationThemeOpacity;
};
/**
* The colors of map elements
*/
export type tConfigurationThemeColors = {
/**
* - The color of the background.
*/
background: string;
/**
* : - The color of the axis lines at the edge of the map.
*/
axis: string;
/**
* - The color of component shapes.
*/
vertex: string;
/**
* - The color of component labels.
*/
label: string;
/**
* - The first color of the stage bitmap when the background is drawn.
*/
stageForeground: string;
/**
* - The second color of the stage bitmap when the background is drawn.
*/
stageBackground: string;
/**
* - The color of the inertia element.
*/
inertia: string;
/**
* - The color of the evolution arrow.
*/
evolution: string;
/**
* - A list of colors to use for groups.
*/
groups: Array<string>;
};
/**
* The sizes of map elements
*/
export type tConfigurationThemeSizes = {
/**
* - The width of the map.
*/
mapWidth: number;
/**
* - The height of the map.
*/
mapHeight: number;
/**
* - The padding around the map for axis labels.
*/
padding: number;
/**
* - The default line width.
*/
lineWidth: number;
/**
* - Width of component shapes.
*/
vertexWidth: number;
/**
* - Height of component shapes.
*/
vertexHeight: number;
/**
* - Size of arrowheads.
*/
arrowheadSize: number;
/**
* - Height of stage lines.
*/
stageHeight: number;
};
/**
* The sizes of map elements
*/
export type tConfigurationThemeFonts = {
/**
* - The font family to use, in CSS form.
*/
family: string;
/**
* - Font size of the axis labels.
*/
axisLabel: number;
/**
* - Font size of vertex labels.
*/
vertexLabel: number;
/**
* - Font size of note text.
*/
note: number;
};
/**
* The line heights of map text
*/
export type tConfigurationThemeLineHeights = {
/**
* - Line height of vertex labels.
*/
vertexLabel: number;
/**
* - Line height of note text.
*/
note: number;
};
/**
* The opacity of map elements.
*/
export type tConfigurationThemeOpacity = {
/**
* - Opacity of the color in groups
*/
groups: number;
};
|