@visactor/vchart-aurora-theme 0.0.1

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 (155) hide show
  1. package/README.md +5 -0
  2. package/build/index.js +820 -0
  3. package/build/index.min.js +1 -0
  4. package/cjs/common/color-scheme.d.ts +2 -0
  5. package/cjs/common/color-scheme.js +45 -0
  6. package/cjs/common/color-scheme.js.map +1 -0
  7. package/cjs/common/component/axis.d.ts +2 -0
  8. package/cjs/common/component/axis.js +86 -0
  9. package/cjs/common/component/axis.js.map +1 -0
  10. package/cjs/common/component/crosshair.d.ts +2 -0
  11. package/cjs/common/component/crosshair.js +36 -0
  12. package/cjs/common/component/crosshair.js.map +1 -0
  13. package/cjs/common/component/data-zoom.d.ts +3 -0
  14. package/cjs/common/component/data-zoom.js +67 -0
  15. package/cjs/common/component/data-zoom.js.map +1 -0
  16. package/cjs/common/component/indicator.d.ts +2 -0
  17. package/cjs/common/component/indicator.js +23 -0
  18. package/cjs/common/component/indicator.js.map +1 -0
  19. package/cjs/common/component/legend.d.ts +2 -0
  20. package/cjs/common/component/legend.js +144 -0
  21. package/cjs/common/component/legend.js.map +1 -0
  22. package/cjs/common/component/mark-area.d.ts +2 -0
  23. package/cjs/common/component/mark-area.js +31 -0
  24. package/cjs/common/component/mark-area.js.map +1 -0
  25. package/cjs/common/component/mark-line.d.ts +2 -0
  26. package/cjs/common/component/mark-line.js +41 -0
  27. package/cjs/common/component/mark-line.js.map +1 -0
  28. package/cjs/common/component/mark-point.d.ts +2 -0
  29. package/cjs/common/component/mark-point.js +52 -0
  30. package/cjs/common/component/mark-point.js.map +1 -0
  31. package/cjs/common/component/polar-axis.d.ts +5 -0
  32. package/cjs/common/component/polar-axis.js +30 -0
  33. package/cjs/common/component/polar-axis.js.map +1 -0
  34. package/cjs/common/component/scroll-bar.d.ts +2 -0
  35. package/cjs/common/component/scroll-bar.js +23 -0
  36. package/cjs/common/component/scroll-bar.js.map +1 -0
  37. package/cjs/common/component/tooltip.d.ts +2 -0
  38. package/cjs/common/component/tooltip.js +74 -0
  39. package/cjs/common/component/tooltip.js.map +1 -0
  40. package/cjs/common/mark.d.ts +2 -0
  41. package/cjs/common/mark.js +17 -0
  42. package/cjs/common/mark.js.map +1 -0
  43. package/cjs/common/series/area.d.ts +2 -0
  44. package/cjs/common/series/area.js +39 -0
  45. package/cjs/common/series/area.js.map +1 -0
  46. package/cjs/common/series/bar.d.ts +2 -0
  47. package/cjs/common/series/bar.js +36 -0
  48. package/cjs/common/series/bar.js.map +1 -0
  49. package/cjs/common/series/funnel.d.ts +2 -0
  50. package/cjs/common/series/funnel.js +36 -0
  51. package/cjs/common/series/funnel.js.map +1 -0
  52. package/cjs/common/series/gauge.d.ts +2 -0
  53. package/cjs/common/series/gauge.js +33 -0
  54. package/cjs/common/series/gauge.js.map +1 -0
  55. package/cjs/common/series/heatmap.d.ts +2 -0
  56. package/cjs/common/series/heatmap.js +32 -0
  57. package/cjs/common/series/heatmap.js.map +1 -0
  58. package/cjs/common/series/line.d.ts +2 -0
  59. package/cjs/common/series/line.js +30 -0
  60. package/cjs/common/series/line.js.map +1 -0
  61. package/cjs/common/series/pie.d.ts +2 -0
  62. package/cjs/common/series/pie.js +31 -0
  63. package/cjs/common/series/pie.js.map +1 -0
  64. package/cjs/common/series/radar.d.ts +2 -0
  65. package/cjs/common/series/radar.js +32 -0
  66. package/cjs/common/series/radar.js.map +1 -0
  67. package/cjs/common/series/scatter.d.ts +2 -0
  68. package/cjs/common/series/scatter.js +19 -0
  69. package/cjs/common/series/scatter.js.map +1 -0
  70. package/cjs/common/series/treemap.d.ts +2 -0
  71. package/cjs/common/series/treemap.js +31 -0
  72. package/cjs/common/series/treemap.js.map +1 -0
  73. package/cjs/common/token.d.ts +2 -0
  74. package/cjs/common/token.js +9 -0
  75. package/cjs/common/token.js.map +1 -0
  76. package/cjs/index.d.ts +3 -0
  77. package/cjs/index.js +35 -0
  78. package/cjs/index.js.map +1 -0
  79. package/esm/common/color-scheme.d.ts +2 -0
  80. package/esm/common/color-scheme.js +39 -0
  81. package/esm/common/color-scheme.js.map +1 -0
  82. package/esm/common/component/axis.d.ts +2 -0
  83. package/esm/common/component/axis.js +82 -0
  84. package/esm/common/component/axis.js.map +1 -0
  85. package/esm/common/component/crosshair.d.ts +2 -0
  86. package/esm/common/component/crosshair.js +32 -0
  87. package/esm/common/component/crosshair.js.map +1 -0
  88. package/esm/common/component/data-zoom.d.ts +3 -0
  89. package/esm/common/component/data-zoom.js +65 -0
  90. package/esm/common/component/data-zoom.js.map +1 -0
  91. package/esm/common/component/indicator.d.ts +2 -0
  92. package/esm/common/component/indicator.js +19 -0
  93. package/esm/common/component/indicator.js.map +1 -0
  94. package/esm/common/component/legend.d.ts +2 -0
  95. package/esm/common/component/legend.js +138 -0
  96. package/esm/common/component/legend.js.map +1 -0
  97. package/esm/common/component/mark-area.d.ts +2 -0
  98. package/esm/common/component/mark-area.js +27 -0
  99. package/esm/common/component/mark-area.js.map +1 -0
  100. package/esm/common/component/mark-line.d.ts +2 -0
  101. package/esm/common/component/mark-line.js +37 -0
  102. package/esm/common/component/mark-line.js.map +1 -0
  103. package/esm/common/component/mark-point.d.ts +2 -0
  104. package/esm/common/component/mark-point.js +48 -0
  105. package/esm/common/component/mark-point.js.map +1 -0
  106. package/esm/common/component/polar-axis.d.ts +5 -0
  107. package/esm/common/component/polar-axis.js +24 -0
  108. package/esm/common/component/polar-axis.js.map +1 -0
  109. package/esm/common/component/scroll-bar.d.ts +2 -0
  110. package/esm/common/component/scroll-bar.js +19 -0
  111. package/esm/common/component/scroll-bar.js.map +1 -0
  112. package/esm/common/component/tooltip.d.ts +2 -0
  113. package/esm/common/component/tooltip.js +70 -0
  114. package/esm/common/component/tooltip.js.map +1 -0
  115. package/esm/common/mark.d.ts +2 -0
  116. package/esm/common/mark.js +13 -0
  117. package/esm/common/mark.js.map +1 -0
  118. package/esm/common/series/area.d.ts +2 -0
  119. package/esm/common/series/area.js +35 -0
  120. package/esm/common/series/area.js.map +1 -0
  121. package/esm/common/series/bar.d.ts +2 -0
  122. package/esm/common/series/bar.js +30 -0
  123. package/esm/common/series/bar.js.map +1 -0
  124. package/esm/common/series/funnel.d.ts +2 -0
  125. package/esm/common/series/funnel.js +32 -0
  126. package/esm/common/series/funnel.js.map +1 -0
  127. package/esm/common/series/gauge.d.ts +2 -0
  128. package/esm/common/series/gauge.js +29 -0
  129. package/esm/common/series/gauge.js.map +1 -0
  130. package/esm/common/series/heatmap.d.ts +2 -0
  131. package/esm/common/series/heatmap.js +28 -0
  132. package/esm/common/series/heatmap.js.map +1 -0
  133. package/esm/common/series/line.d.ts +2 -0
  134. package/esm/common/series/line.js +26 -0
  135. package/esm/common/series/line.js.map +1 -0
  136. package/esm/common/series/pie.d.ts +2 -0
  137. package/esm/common/series/pie.js +27 -0
  138. package/esm/common/series/pie.js.map +1 -0
  139. package/esm/common/series/radar.d.ts +2 -0
  140. package/esm/common/series/radar.js +28 -0
  141. package/esm/common/series/radar.js.map +1 -0
  142. package/esm/common/series/scatter.d.ts +2 -0
  143. package/esm/common/series/scatter.js +15 -0
  144. package/esm/common/series/scatter.js.map +1 -0
  145. package/esm/common/series/treemap.d.ts +2 -0
  146. package/esm/common/series/treemap.js +27 -0
  147. package/esm/common/series/treemap.js.map +1 -0
  148. package/esm/common/token.d.ts +2 -0
  149. package/esm/common/token.js +5 -0
  150. package/esm/common/token.js.map +1 -0
  151. package/esm/index.d.ts +3 -0
  152. package/esm/index.js +77 -0
  153. package/esm/index.js.map +1 -0
  154. package/package.json +87 -0
  155. package/public/aurora.json +1 -0
package/build/index.js ADDED
@@ -0,0 +1,820 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["vchart-semi-theme"] = {}));
5
+ })(this, (function (exports) { 'use strict';
6
+
7
+ const defaultColor = [
8
+ '#1443FF',
9
+ '#33CCB2',
10
+ '#FFD500',
11
+ '#FFAA33',
12
+ '#FF7733',
13
+ '#F65656',
14
+ '#E93DBD',
15
+ '#9933FF',
16
+ '#5533FF',
17
+ '#A3ABC2'
18
+ ];
19
+ const BLACK_COLORS = {
20
+ 100: '#000',
21
+ 95: '#0D0D0D',
22
+ 85: '#262626',
23
+ 65: '#595959',
24
+ 45: '#8C8C8C',
25
+ 25: '#BFBFBF',
26
+ 15: '#D9D9D9',
27
+ 6: '#F0F0F0'
28
+ };
29
+ const WHITE_COLORS = {
30
+ 100: '#FFFFFF',
31
+ 95: '#F2F2F2',
32
+ 85: '#D9D9D9',
33
+ 65: '#A6A6A6',
34
+ 45: '#737373',
35
+ 25: '#404040',
36
+ 15: '#262626',
37
+ 6: '#0F0F0F'
38
+ };
39
+ const blackColorPalettes = {};
40
+ for (const key in BLACK_COLORS) {
41
+ blackColorPalettes[`blackColors${key}`] = BLACK_COLORS[key];
42
+ }
43
+ const whiteColorPalettes = {};
44
+ for (const key in WHITE_COLORS) {
45
+ whiteColorPalettes[`whiteColors${key}`] = WHITE_COLORS[key];
46
+ }
47
+ const colorScheme = {
48
+ default: {
49
+ dataScheme: defaultColor,
50
+ palette: Object.assign(Object.assign({ bandColor: defaultColor[0], backgroundColor: 'transparent', axisDomainColor: '#DCDEE1', axisLabelFontColor: '#909199', axisGridColor: '#E1E2E5' }, blackColorPalettes), whiteColorPalettes)
51
+ }
52
+ };
53
+
54
+ const axis = {
55
+ axis: {
56
+ domainLine: {
57
+ visible: true,
58
+ style: {
59
+ lineWidth: 1,
60
+ stroke: { type: 'palette', key: 'axisDomainColor' }
61
+ }
62
+ },
63
+ grid: {
64
+ visible: true,
65
+ style: {
66
+ lineWidth: 1,
67
+ stroke: { type: 'palette', key: 'axisGridColor' },
68
+ lineDash: [4, 4]
69
+ }
70
+ },
71
+ subGrid: {
72
+ visible: false,
73
+ style: {
74
+ lineWidth: 1,
75
+ stroke: { type: 'palette', key: 'axisGridColor' },
76
+ lineDash: [4, 4]
77
+ }
78
+ },
79
+ tick: {
80
+ visible: true,
81
+ style: {
82
+ lineWidth: 1,
83
+ stroke: { type: 'palette', key: 'blackColors25' }
84
+ }
85
+ },
86
+ subTick: {
87
+ visible: false,
88
+ tickSize: 2,
89
+ style: {
90
+ lineWidth: 1,
91
+ stroke: { type: 'palette', key: 'blackColors15' }
92
+ }
93
+ },
94
+ label: {
95
+ visible: true,
96
+ space: 8,
97
+ style: {
98
+ fontSize: 12,
99
+ fill: { type: 'palette', key: 'blackColors45' },
100
+ fontWeight: 400,
101
+ fillOpacity: 1
102
+ }
103
+ },
104
+ title: {
105
+ visible: false,
106
+ style: {
107
+ fill: { type: 'palette', key: 'blackColors65' },
108
+ fontSize: 12,
109
+ lineHeight: 12
110
+ }
111
+ }
112
+ }
113
+ };
114
+
115
+ const axisRadius = {
116
+ domainLine: {},
117
+ grid: {
118
+ smooth: false,
119
+ visible: true
120
+ },
121
+ subGrid: {
122
+ smooth: false
123
+ }
124
+ };
125
+ const axisAngle = {
126
+ grid: {
127
+ visible: true,
128
+ smooth: false
129
+ },
130
+ label: {
131
+ space: 4
132
+ }
133
+ };
134
+ const axisPolar = {
135
+ axisRadius,
136
+ axisAngle
137
+ };
138
+
139
+ const commonColorLegendTheme = {
140
+ handlerText: {
141
+ space: 10,
142
+ style: {
143
+ fontSize: 12,
144
+ fill: '#2C3542'
145
+ }
146
+ },
147
+ title: {
148
+ space: 5,
149
+ style: {
150
+ fontSize: 12,
151
+ fill: '#2C3542'
152
+ }
153
+ }
154
+ };
155
+ const legend = {
156
+ discreteLegend: {
157
+ visible: true,
158
+ orient: 'top',
159
+ padding: [8, 8, 8, 8],
160
+ maxRow: 1,
161
+ title: {
162
+ visible: false,
163
+ textStyle: {
164
+ fill: { type: 'palette', key: 'blackColors45' },
165
+ fontSize: 12,
166
+ lineHeight: 21
167
+ }
168
+ },
169
+ item: {
170
+ visible: true,
171
+ spaceCol: 24,
172
+ spaceRow: 12,
173
+ padding: 0,
174
+ background: {
175
+ visible: false
176
+ },
177
+ shape: {
178
+ space: 4,
179
+ style: {
180
+ size: 8,
181
+ symbolType: 'circle'
182
+ },
183
+ state: { unSelected: { fill: '#D8D8D8' } }
184
+ },
185
+ label: {
186
+ space: 100,
187
+ style: {
188
+ fill: '#85878A',
189
+ fontSize: 12,
190
+ lineHeight: 12,
191
+ opacity: 1,
192
+ fontWeight: 400
193
+ },
194
+ state: {
195
+ unSelected: {
196
+ fill: '#D8D8D8',
197
+ opacity: 1
198
+ }
199
+ }
200
+ }
201
+ },
202
+ pager: {
203
+ handler: {
204
+ space: 8,
205
+ style: {
206
+ size: 10,
207
+ fill: {
208
+ type: 'palette',
209
+ key: 'blackColors100'
210
+ }
211
+ }
212
+ },
213
+ textStyle: {
214
+ fill: { type: 'palette', key: 'blackColors45' },
215
+ fontSize: 10
216
+ }
217
+ },
218
+ allowAllCanceled: false
219
+ },
220
+ colorLegend: {
221
+ horizontal: Object.assign(Object.assign({}, commonColorLegendTheme), { handler: {
222
+ style: {
223
+ symbolType: 'rectRound',
224
+ size: 16,
225
+ scaleX: 0.5,
226
+ fill: '#fff',
227
+ lineWidth: 1,
228
+ stroke: '#99B0F3',
229
+ radius: 2,
230
+ outerBorder: null
231
+ }
232
+ }, rail: {
233
+ height: 4,
234
+ width: 100,
235
+ style: {
236
+ fill: '#DCDEE2'
237
+ }
238
+ } }),
239
+ vertical: Object.assign(Object.assign({}, commonColorLegendTheme), { handler: {
240
+ style: {
241
+ symbolType: 'rectRound',
242
+ size: 16,
243
+ scaleY: 0.5,
244
+ fill: '#fff',
245
+ lineWidth: 1,
246
+ stroke: '#99B0F3',
247
+ radius: 2,
248
+ outerBorder: null
249
+ }
250
+ }, rail: {
251
+ width: 4,
252
+ height: 100,
253
+ style: {
254
+ fill: '#DCDEE2'
255
+ }
256
+ } })
257
+ }
258
+ };
259
+
260
+ const token = {
261
+ fontFamily: `"PingFang SC", "-apple-system", "Segoe UI", "Helvetica Neue", Arial,
262
+ Roboto, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`,
263
+ fontSize: 12
264
+ };
265
+
266
+ const tooltip = {
267
+ offset: { x: 16, y: 16 },
268
+ panel: {
269
+ padding: { top: 12, left: 12, right: 12, bottom: 12 },
270
+ backgroundColor: {
271
+ type: 'palette',
272
+ key: 'popupBackgroundColor'
273
+ },
274
+ border: {
275
+ color: {
276
+ type: 'palette',
277
+ key: 'popupBackgroundColor'
278
+ },
279
+ width: 0,
280
+ radius: 3
281
+ },
282
+ shadow: {
283
+ x: 0,
284
+ y: 0,
285
+ blur: 10,
286
+ spread: 0,
287
+ color: '#aeaeae'
288
+ }
289
+ },
290
+ spaceRow: 12,
291
+ titleLabel: {
292
+ fontSize: 12,
293
+ lineHeight: 12,
294
+ fontColor: '#1D1D2E',
295
+ fontWeight: '500',
296
+ textAlign: 'left',
297
+ textBaseline: 'middle',
298
+ spacing: 0
299
+ },
300
+ shape: { size: 8, spacing: 8 },
301
+ keyLabel: {
302
+ fontSize: 12,
303
+ lineHeight: 12,
304
+ fontColor: {
305
+ type: 'palette',
306
+ key: 'blackColors65'
307
+ },
308
+ textAlign: 'left',
309
+ textBaseline: 'middle',
310
+ spacing: 12
311
+ },
312
+ valueLabel: {
313
+ fontSize: 12,
314
+ lineHeight: 12,
315
+ fontColor: {
316
+ type: 'palette',
317
+ key: 'blackColors65'
318
+ },
319
+ fontWeight: 'normal',
320
+ textBaseline: 'middle',
321
+ spacing: 0
322
+ }
323
+ };
324
+
325
+ const crosshair = {
326
+ trigger: 'hover',
327
+ bandField: {
328
+ line: {
329
+ type: 'rect',
330
+ visible: true,
331
+ style: {
332
+ fill: '#CCD7EB',
333
+ fillOpacity: 0.4,
334
+ lineDash: []
335
+ }
336
+ },
337
+ label: {
338
+ visible: false
339
+ }
340
+ },
341
+ linearField: {
342
+ visible: false,
343
+ line: {
344
+ type: 'line',
345
+ style: {
346
+ stroke: '#CCD7EB',
347
+ lineWidth: 0.4,
348
+ lineDash: []
349
+ }
350
+ },
351
+ label: {
352
+ visible: false
353
+ }
354
+ }
355
+ };
356
+
357
+ const area = {
358
+ area: {
359
+ point: {
360
+ style: {
361
+ visible: false,
362
+ size: 12,
363
+ lineWidth: 2,
364
+ shadowColor: 'rgba(0, 0, 0, 0.1)',
365
+ shadowBlur: 3,
366
+ stroke: { type: 'palette', key: 'whiteColors100' }
367
+ }
368
+ },
369
+ line: {
370
+ style: {
371
+ curveType: 'monotone',
372
+ lineWidth: 2
373
+ }
374
+ },
375
+ area: {
376
+ style: {
377
+ fillOpacity: 0.25,
378
+ lineWidth: 2
379
+ },
380
+ state: {
381
+ selected: {
382
+ fillOpacity: 0.5
383
+ }
384
+ }
385
+ }
386
+ }
387
+ };
388
+
389
+ const bar = {
390
+ barMaxWidth: 8,
391
+ barGapInGroup: 4,
392
+ label: {
393
+ style: {
394
+ fill: { type: 'palette', key: 'secondaryFontColor' }
395
+ }
396
+ }
397
+ };
398
+ const bar_horizontal = {
399
+ stackCornerRadius: [0, 1, 1, 0],
400
+ label: {
401
+ position: 'right',
402
+ offset: 4
403
+ }
404
+ };
405
+ const bar_vertical = {
406
+ stackCornerRadius: [1, 1, 0, 0],
407
+ label: {
408
+ position: 'top',
409
+ offset: 4
410
+ }
411
+ };
412
+ const barTheme = {
413
+ bar,
414
+ bar_horizontal,
415
+ bar_vertical
416
+ };
417
+
418
+ const line = {
419
+ line: {
420
+ style: {
421
+ lineWidth: 2,
422
+ curveType: 'monotone'
423
+ }
424
+ },
425
+ point: {
426
+ style: {
427
+ visible: false,
428
+ size: 12,
429
+ lineWidth: 2,
430
+ shadowColor: 'rgba(0, 0, 0, 0.1)',
431
+ shadowBlur: 3,
432
+ stroke: { type: 'palette', key: 'whiteColors100' }
433
+ }
434
+ },
435
+ label: {
436
+ position: 'top',
437
+ offset: 4
438
+ }
439
+ };
440
+
441
+ const markByName = {
442
+ label: {
443
+ style: {
444
+ fontSize: 12,
445
+ fill: { type: 'palette', key: 'blackColors65' },
446
+ lineWidth: 0
447
+ }
448
+ }
449
+ };
450
+
451
+ const scatter = {
452
+ point: {
453
+ style: {
454
+ symbolType: 'circle',
455
+ fillOpacity: 0.35,
456
+ lineWidth: 1,
457
+ size: 8,
458
+ stroke: null
459
+ }
460
+ },
461
+ label: {
462
+ position: 'top'
463
+ }
464
+ };
465
+
466
+ const pie = {
467
+ outerRadius: 0.8,
468
+ innerRadius: 0.54,
469
+ pie: {
470
+ style: {
471
+ padAngle: 0,
472
+ stroke: '#fff',
473
+ lineWidth: 2
474
+ },
475
+ state: {
476
+ hover: {
477
+ lineWidth: 0
478
+ },
479
+ selected: {
480
+ lineWidth: 0
481
+ }
482
+ }
483
+ },
484
+ label: {
485
+ visible: true,
486
+ position: 'outside',
487
+ style: {
488
+ fill: null
489
+ }
490
+ }
491
+ };
492
+
493
+ const indicator = {
494
+ title: {
495
+ visible: true,
496
+ style: {
497
+ fill: '#12141A',
498
+ fontWeight: 500,
499
+ fontSize: 16
500
+ }
501
+ },
502
+ content: {
503
+ visible: true,
504
+ style: {
505
+ fill: '#85878A',
506
+ fontWeight: 400,
507
+ fontSize: 12
508
+ }
509
+ }
510
+ };
511
+
512
+ const funnel = {
513
+ funnel: {
514
+ state: {
515
+ selected: {
516
+ fill: '#1966FF',
517
+ stroke: '#3958E0',
518
+ strokeOpacity: 0.2,
519
+ lineWidth: 4
520
+ }
521
+ }
522
+ },
523
+ outerLabel: {
524
+ style: {
525
+ fontSize: 12
526
+ },
527
+ line: {
528
+ style: {
529
+ lineWidth: 2
530
+ }
531
+ }
532
+ },
533
+ label: {
534
+ style: {
535
+ fill: { type: 'palette', key: 'whiteColors100' },
536
+ fontSize: 12
537
+ }
538
+ }
539
+ };
540
+
541
+ const treemap = {
542
+ gapWidth: 0,
543
+ leaf: {
544
+ style: {
545
+ lineWidth: 2,
546
+ stroke: { type: 'palette', key: 'whiteColors100' }
547
+ },
548
+ state: {
549
+ hover: {
550
+ fillOpacity: 0.8,
551
+ lineWidth: 0
552
+ }
553
+ }
554
+ },
555
+ label: {
556
+ style: {
557
+ fill: { type: 'palette', key: 'whiteColors100' }
558
+ }
559
+ }
560
+ };
561
+
562
+ const gauge = {
563
+ circularProgress: {
564
+ progress: {
565
+ style: {
566
+ cornerRadius: 100
567
+ }
568
+ },
569
+ track: {
570
+ interactive: false,
571
+ style: {
572
+ cornerRadius: 100,
573
+ fill: '#DCDEE1',
574
+ fillOpacity: 1
575
+ }
576
+ }
577
+ },
578
+ gaugePointer: {
579
+ pin: { visible: false },
580
+ pinBackground: { visible: false },
581
+ pointer: { visible: false }
582
+ }
583
+ };
584
+
585
+ const heatmap = {
586
+ cell: {
587
+ style: {
588
+ stroke: { type: 'palette', key: 'whiteColors100' },
589
+ lineWidth: 1
590
+ },
591
+ state: {
592
+ hover: {
593
+ zIndex: 100,
594
+ stroke: '#000'
595
+ }
596
+ }
597
+ },
598
+ label: {
599
+ position: 'inside',
600
+ style: {
601
+ fill: { type: 'palette', key: 'whiteColors100' },
602
+ fontSize: 12
603
+ }
604
+ }
605
+ };
606
+
607
+ const markLine = {
608
+ line: {
609
+ style: {
610
+ lineDash: [],
611
+ lineWidth: 1,
612
+ stroke: { type: 'palette', key: 'blackColors25' }
613
+ }
614
+ },
615
+ startSymbol: {
616
+ visible: false
617
+ },
618
+ endSymbol: {
619
+ visible: false
620
+ },
621
+ label: {
622
+ position: 'insideStartTop',
623
+ refY: 0,
624
+ autoRotate: true,
625
+ style: {
626
+ fontSize: { type: 'token', key: 'l5FontSize' },
627
+ fill: { type: 'palette', key: 'blackColors65' }
628
+ },
629
+ labelBackground: {
630
+ visible: false
631
+ }
632
+ }
633
+ };
634
+
635
+ const markArea = {
636
+ area: {
637
+ style: {
638
+ fill: { type: 'palette', key: 'blackColors100', a: 0.06 }
639
+ }
640
+ },
641
+ label: {
642
+ style: {
643
+ fontSize: { type: 'token', key: 'l5FontSize' },
644
+ fill: { type: 'palette', key: 'blackColors65' }
645
+ },
646
+ labelBackground: {
647
+ visible: false
648
+ }
649
+ }
650
+ };
651
+
652
+ const markPoint = {
653
+ itemContent: {
654
+ autoRotate: false,
655
+ offsetY: -16,
656
+ text: {
657
+ style: {
658
+ fontSize: { type: 'token', key: 'l5FontSize' },
659
+ fill: { type: 'palette', key: 'blackColors65' }
660
+ }
661
+ }
662
+ },
663
+ itemLine: {
664
+ decorativeLine: {
665
+ visible: false
666
+ },
667
+ startSymbol: {
668
+ visible: true,
669
+ size: 6,
670
+ style: {
671
+ fill: '#fff',
672
+ stroke: { type: 'palette', key: 'bandColor' },
673
+ lineWidth: 2
674
+ }
675
+ },
676
+ endSymbol: {
677
+ visible: false
678
+ },
679
+ line: {
680
+ style: {
681
+ lineWidth: 1,
682
+ stroke: { type: 'palette', key: 'blackColors25' }
683
+ }
684
+ }
685
+ }
686
+ };
687
+
688
+ const dataZoomCommon = {
689
+ middleHandler: {
690
+ visible: false
691
+ },
692
+ startHandler: {
693
+ style: {
694
+ size: 22
695
+ }
696
+ },
697
+ selectedBackground: {
698
+ style: {
699
+ fill: '#6699FF',
700
+ fillOpacity: 0.2,
701
+ opacity: 1,
702
+ stroke: '#6699FF',
703
+ lineWidth: 2,
704
+ cornerRadius: 4
705
+ }
706
+ },
707
+ background: {
708
+ style: {
709
+ fill: '#F3F4F6',
710
+ fillOpacity: 0.2,
711
+ cornerRadius: 4,
712
+ stroke: '#EDEEF0',
713
+ opacity: 1,
714
+ lineWidth: 2
715
+ }
716
+ },
717
+ endHandler: {
718
+ style: {
719
+ size: 22
720
+ }
721
+ },
722
+ backgroundChart: {
723
+ area: {
724
+ style: {
725
+ fill: false,
726
+ stroke: '#6699FF'
727
+ }
728
+ },
729
+ line: {
730
+ style: {
731
+ fill: false,
732
+ stroke: '#6699FF'
733
+ }
734
+ }
735
+ },
736
+ startText: {
737
+ visible: false
738
+ },
739
+ endText: {
740
+ visible: false
741
+ }
742
+ };
743
+ const dataZoom = {
744
+ horizontal: Object.assign(Object.assign({}, dataZoomCommon), { height: 44 }),
745
+ vertical: Object.assign(Object.assign({}, dataZoomCommon), { width: 44 })
746
+ };
747
+
748
+ const scrollBar = {
749
+ horizontal: {
750
+ height: 12,
751
+ slider: {
752
+ style: {
753
+ fill: 'rgba(0,0,0,0.15)'
754
+ }
755
+ }
756
+ },
757
+ vertical: {
758
+ width: 12,
759
+ slider: {
760
+ style: {
761
+ fill: 'rgba(0,0,0,0.15)'
762
+ }
763
+ }
764
+ }
765
+ };
766
+
767
+ const radar = {
768
+ line: {
769
+ style: {
770
+ lineWidth: 1
771
+ }
772
+ },
773
+ point: {
774
+ style: {
775
+ visible: false,
776
+ size: 12,
777
+ lineWidth: 2,
778
+ shadowColor: 'rgba(0, 0, 0, 0.1)',
779
+ shadowBlur: 3,
780
+ stroke: { type: 'palette', key: 'whiteColors100' }
781
+ }
782
+ },
783
+ area: {
784
+ visible: true
785
+ },
786
+ label: {
787
+ position: 'top',
788
+ offset: 4
789
+ }
790
+ };
791
+
792
+ const chartAuroraTheme = {
793
+ name: 'aurora',
794
+ type: 'light',
795
+ description: 'light theme for ChartHub.',
796
+ colorScheme,
797
+ token,
798
+ component: Object.assign(Object.assign(Object.assign(Object.assign({}, axis), legend), axisPolar), { tooltip,
799
+ crosshair,
800
+ indicator,
801
+ markLine,
802
+ markArea,
803
+ markPoint,
804
+ dataZoom,
805
+ scrollBar }),
806
+ series: Object.assign(Object.assign(Object.assign(Object.assign({}, area), barTheme), gauge), { line,
807
+ scatter,
808
+ pie,
809
+ funnel,
810
+ treemap,
811
+ heatmap,
812
+ radar }),
813
+ markByName
814
+ };
815
+ const allThemeMap = new Map([[chartAuroraTheme.name, chartAuroraTheme]]);
816
+
817
+ exports.allThemeMap = allThemeMap;
818
+ exports.chartAuroraTheme = chartAuroraTheme;
819
+
820
+ }));