@rtemis/draw 0.1.1 → 0.3.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.
Files changed (51) hide show
  1. package/README.md +12 -0
  2. package/dist/charts/bar/config.d.ts +64 -0
  3. package/dist/charts/bar/config.d.ts.map +1 -0
  4. package/dist/charts/bar/config.js +172 -0
  5. package/dist/charts/bar/config.js.map +1 -0
  6. package/dist/charts/bar/index.d.ts +3 -0
  7. package/dist/charts/bar/index.d.ts.map +1 -0
  8. package/dist/charts/bar/index.js +2 -0
  9. package/dist/charts/bar/index.js.map +1 -0
  10. package/dist/charts/line/config.d.ts +104 -0
  11. package/dist/charts/line/config.d.ts.map +1 -0
  12. package/dist/charts/line/config.js +372 -0
  13. package/dist/charts/line/config.js.map +1 -0
  14. package/dist/charts/line/index.d.ts +3 -0
  15. package/dist/charts/line/index.d.ts.map +1 -0
  16. package/dist/charts/line/index.js +2 -0
  17. package/dist/charts/line/index.js.map +1 -0
  18. package/dist/index.d.ts +27 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +19 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/rtemis-draw-builders.cjs +832 -2
  23. package/dist/shared/format.d.ts +14 -0
  24. package/dist/shared/format.d.ts.map +1 -0
  25. package/dist/shared/format.js +27 -0
  26. package/dist/shared/format.js.map +1 -0
  27. package/dist/shared/labels.d.ts +21 -0
  28. package/dist/shared/labels.d.ts.map +1 -0
  29. package/dist/shared/labels.js +31 -0
  30. package/dist/shared/labels.js.map +1 -0
  31. package/dist/shared/layout.d.ts +29 -0
  32. package/dist/shared/layout.d.ts.map +1 -0
  33. package/dist/shared/layout.js +59 -0
  34. package/dist/shared/layout.js.map +1 -0
  35. package/dist/shared/legend.d.ts +14 -0
  36. package/dist/shared/legend.d.ts.map +1 -0
  37. package/dist/shared/legend.js +2 -0
  38. package/dist/shared/legend.js.map +1 -0
  39. package/dist/shared/limits.d.ts +32 -0
  40. package/dist/shared/limits.d.ts.map +1 -0
  41. package/dist/shared/limits.js +62 -0
  42. package/dist/shared/limits.js.map +1 -0
  43. package/dist/shared/source.d.ts +57 -0
  44. package/dist/shared/source.d.ts.map +1 -0
  45. package/dist/shared/source.js +71 -0
  46. package/dist/shared/source.js.map +1 -0
  47. package/dist/theme/tokens.d.ts +76 -0
  48. package/dist/theme/tokens.d.ts.map +1 -0
  49. package/dist/theme/tokens.js +207 -0
  50. package/dist/theme/tokens.js.map +1 -0
  51. package/package.json +1 -1
@@ -0,0 +1,207 @@
1
+ /**
2
+ * Theme tokens: the constants chosen once for a set of charts, independent of
3
+ * the data and the surface, and their projection to the ECharts theme object.
4
+ * The token document is generated from rtemis.draw's `Theme` class.
5
+ * spec: draw/chart-appearance#the-theme
6
+ */
7
+ /** rtemis' categorical palette. */
8
+ export const RTEMIS_PALETTE = Object.freeze([
9
+ "#6CA3A0",
10
+ "#F08904",
11
+ "#BE2E5F",
12
+ "#B3CFE8",
13
+ "#0F6A66",
14
+ "#FDB808",
15
+ "#EA384A",
16
+ "#466D96",
17
+ "#526551",
18
+ "#F384FF",
19
+ "#7D0830",
20
+ "#375D86",
21
+ "#B1A7B3",
22
+ "#7364F2",
23
+ "#895140",
24
+ "#C5A267",
25
+ ]);
26
+ /** Sign colors of equal perceived lightness: blue, gray, orange. */
27
+ export const SIGN_COLORS = Object.freeze({
28
+ negative: "#2D83D3",
29
+ neutral: "#808080",
30
+ positive: "#C55E28",
31
+ });
32
+ /** The light theme's tokens, as rtemis.draw's `theme_light()` sets them. */
33
+ export function lightThemeTokens(overrides = {}) {
34
+ return Object.freeze({
35
+ scheme: "light",
36
+ base_font_size: 12,
37
+ palette: RTEMIS_PALETTE,
38
+ bg_color: "#ffffff",
39
+ fg_color: "rgba(0, 0, 0, 0.7)",
40
+ negative_color: SIGN_COLORS.negative,
41
+ neutral_color: SIGN_COLORS.neutral,
42
+ positive_color: SIGN_COLORS.positive,
43
+ ...overrides,
44
+ });
45
+ }
46
+ /** The dark theme's tokens, as rtemis.draw's `theme_dark()` sets them. */
47
+ export function darkThemeTokens(overrides = {}) {
48
+ return Object.freeze({
49
+ scheme: "dark",
50
+ base_font_size: 12,
51
+ palette: RTEMIS_PALETTE,
52
+ bg_color: "#181818",
53
+ fg_color: "rgba(255, 255, 255, 0.7)",
54
+ title_color: "rgba(255, 255, 255, 0.9)",
55
+ subtitle_color: "rgba(255, 255, 255, 0.5)",
56
+ axis_color: "rgba(255, 255, 255, 0.3)",
57
+ grid_color: "rgba(255, 255, 255, 0.1)",
58
+ tooltip_bg: "rgba(20, 20, 20, 0.9)",
59
+ tooltip_border_color: "rgba(255, 255, 255, 0.1)",
60
+ negative_color: SIGN_COLORS.negative,
61
+ neutral_color: SIGN_COLORS.neutral,
62
+ positive_color: SIGN_COLORS.positive,
63
+ ...overrides,
64
+ });
65
+ }
66
+ /** Font stack that follows a font family, and the whole stack when none is set. */
67
+ export const DEFAULT_FONT_FAMILY = "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif";
68
+ // CSS generic family names and the vendor keywords for the system UI font,
69
+ // which are keywords: quoting one turns it into a family name no font has.
70
+ const GENERIC_FONT_FAMILIES = new Set([
71
+ "serif",
72
+ "sans-serif",
73
+ "monospace",
74
+ "cursive",
75
+ "fantasy",
76
+ "math",
77
+ "emoji",
78
+ "fangsong",
79
+ "system-ui",
80
+ "ui-serif",
81
+ "ui-sans-serif",
82
+ "ui-monospace",
83
+ "ui-rounded",
84
+ "-apple-system",
85
+ "blinkmacsystemfont",
86
+ ]);
87
+ /**
88
+ * A complete CSS font stack: every family name that is not a sequence of CSS
89
+ * identifiers is quoted, and {@link DEFAULT_FONT_FAMILY} follows unless the
90
+ * stack ends in a generic family. Matches rtemis.draw's `font_stack()`.
91
+ */
92
+ export function fontStack(fontFamily) {
93
+ if (fontFamily === undefined || fontFamily === null)
94
+ return DEFAULT_FONT_FAMILY;
95
+ const entries = fontFamily
96
+ .split(",")
97
+ .map((e) => e.trim())
98
+ .filter((e) => e.length > 0);
99
+ if (entries.length === 0)
100
+ throw new Error("`font_family` must be a nonempty font family.");
101
+ const ident = /^-?[A-Za-z_][A-Za-z0-9_-]*( +-?[A-Za-z_][A-Za-z0-9_-]*)*$/;
102
+ const quoted = /^(['"]).*\1$/;
103
+ const out = entries.map((e) => {
104
+ const generic = GENERIC_FONT_FAMILIES.has(e.toLowerCase());
105
+ return quoted.test(e) || generic || ident.test(e) ? e : `'${e.replaceAll("'", "\\'")}'`;
106
+ });
107
+ const last = entries[entries.length - 1] ?? "";
108
+ if (!GENERIC_FONT_FAMILIES.has(last.toLowerCase()))
109
+ out.push(DEFAULT_FONT_FAMILY);
110
+ return out.join(", ");
111
+ }
112
+ /** Round half to even, as R's `round()` does. */
113
+ function roundHalfEven(x) {
114
+ const floor = Math.floor(x);
115
+ const diff = x - floor;
116
+ if (Math.abs(diff - 0.5) > 1e-9)
117
+ return Math.round(x);
118
+ return floor % 2 === 0 ? floor : floor + 1;
119
+ }
120
+ /** The text sizes of a theme, each resolved from `base_font_size` when unset. */
121
+ export function themeFontSizes(tokens) {
122
+ const base = tokens.base_font_size;
123
+ return {
124
+ base,
125
+ title: tokens.title_font_size ?? roundHalfEven(base * 1.2),
126
+ subtitle: tokens.subtitle_font_size ?? base,
127
+ axisLabel: tokens.axis_label_font_size ?? base,
128
+ legend: tokens.legend_font_size ?? base,
129
+ tooltip: tokens.tooltip_font_size ?? base,
130
+ };
131
+ }
132
+ function present(entries) {
133
+ return Object.fromEntries(Object.entries(entries).filter(([, v]) => v !== undefined && v !== null));
134
+ }
135
+ /**
136
+ * The ECharts theme object of a theme's tokens, for `echarts.registerTheme()`
137
+ * or `chart.setTheme()`. Every component with its own default text size takes
138
+ * the global text style, since a global `textStyle` does not reach them; log
139
+ * and time axes take the value axis's style.
140
+ */
141
+ export function themeOption(tokens) {
142
+ const sizes = themeFontSizes(tokens);
143
+ const dark = tokens.scheme === "dark";
144
+ const fg = tokens.fg_color;
145
+ const textStyle = { color: fg, fontFamily: fontStack(tokens.font_family), fontSize: sizes.base };
146
+ const withText = (style) => ({ ...textStyle, ...style });
147
+ const axisLabel = { fontSize: sizes.axisLabel, color: fg };
148
+ const axisLine = tokens.axis_color ? { lineStyle: { color: tokens.axis_color } } : undefined;
149
+ const axisTick = { show: false };
150
+ const valueAxis = present({
151
+ axisLabel,
152
+ axisLine,
153
+ axisTick,
154
+ splitLine: tokens.grid_color ? { lineStyle: { color: tokens.grid_color } } : undefined,
155
+ });
156
+ return {
157
+ color: [...tokens.palette],
158
+ backgroundColor: tokens.bg_color,
159
+ textStyle,
160
+ title: {
161
+ textStyle: withText(present({ color: tokens.title_color, fontSize: sizes.title })),
162
+ subtextStyle: withText(present({ color: tokens.subtitle_color, fontSize: sizes.subtitle })),
163
+ },
164
+ legend: {
165
+ textStyle: withText({ color: tokens.legend_color ?? fg, fontSize: sizes.legend }),
166
+ },
167
+ tooltip: present({
168
+ backgroundColor: tokens.tooltip_bg,
169
+ borderColor: tokens.tooltip_border_color,
170
+ textStyle: withText({ color: tokens.tooltip_color ?? fg, fontSize: sizes.tooltip }),
171
+ }),
172
+ visualMap: { textStyle },
173
+ // Neutral controls leave the palette to encode data; every accent-bearing
174
+ // slider state is set so ECharts' blue defaults cannot show.
175
+ // spec: draw/visual-qa-docs#neutral-data-zoom-sliders
176
+ dataZoom: {
177
+ backgroundColor: "rgba(128,128,128,0.06)",
178
+ borderColor: dark ? "#606060" : "#b0b0b0",
179
+ fillerColor: "rgba(128,128,128,0.18)",
180
+ dataBackground: {
181
+ lineStyle: { color: "#808080" },
182
+ areaStyle: { color: "#808080", opacity: 0.12 },
183
+ },
184
+ selectedDataBackground: {
185
+ lineStyle: { color: dark ? "#b0b0b0" : "#707070" },
186
+ areaStyle: { color: "#808080", opacity: 0.25 },
187
+ },
188
+ handleStyle: {
189
+ color: dark ? "#303030" : "#ffffff",
190
+ borderColor: dark ? "#909090" : "#808080",
191
+ },
192
+ moveHandleStyle: { color: "#909090", opacity: 0.6 },
193
+ brushStyle: { color: "#808080", opacity: 0.3 },
194
+ textStyle: axisLabel,
195
+ emphasis: {
196
+ handleStyle: { borderColor: dark ? "#cccccc" : "#505050" },
197
+ moveHandleStyle: { color: dark ? "#b0b0b0" : "#707070" },
198
+ },
199
+ },
200
+ line: { symbol: "circle" },
201
+ categoryAxis: present({ axisLabel, axisLine, axisTick, splitLine: { show: false } }),
202
+ valueAxis,
203
+ logAxis: valueAxis,
204
+ timeAxis: valueAxis,
205
+ };
206
+ }
207
+ //# sourceMappingURL=tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/theme/tokens.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAmCH,mCAAmC;AACnC,MAAM,CAAC,MAAM,cAAc,GAAsB,MAAM,CAAC,MAAM,CAAC;IAC7D,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;CACV,CAAC,CAAC;AAEH,oEAAoE;AACpE,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC;IACvC,QAAQ,EAAE,SAAS;IACnB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,SAAS;CACpB,CAAC,CAAC;AAEH,4EAA4E;AAC5E,MAAM,UAAU,gBAAgB,CAAC,YAAkC,EAAE;IACnE,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,MAAM,EAAE,OAAO;QACf,cAAc,EAAE,EAAE;QAClB,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,oBAAoB;QAC9B,cAAc,EAAE,WAAW,CAAC,QAAQ;QACpC,aAAa,EAAE,WAAW,CAAC,OAAO;QAClC,cAAc,EAAE,WAAW,CAAC,QAAQ;QACpC,GAAG,SAAS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QACD,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;QAC1B,YAAY,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACpF,SAAS;QACT,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,SAAS;KACpB,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtemis/draw",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "description": "ECharts option builders shared by rtemis.draw and rtemislive",
5
5
  "homepage": "https://rtemis.org",
6
6
  "keywords": ["rtemis", "echarts", "visualization"],