@gm-pc/vision 1.25.0-beta.0 → 1.25.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.
@@ -1,40 +1,40 @@
1
- /**
2
- * 具体图表的样式
3
- * registerTheme只能修改通用的样式,不同图表之前的差异不能在主题中修改,所以有此文件,针对不同图表修改样式
4
- */
5
- export const chartStyleSheet = (PRIMARY_COLORS: Record<number, string>) => {
6
- return {
7
- line: {
8
- shape: 'smooth',
9
- style: {
10
- stroke: PRIMARY_COLORS[15],
11
- shadowBlur: 30,
12
- shadowColor: PRIMARY_COLORS[15],
13
- shadowOffsetY: 0,
14
- },
15
- area: {
16
- shape: 'smooth',
17
- fill: `l(90) 0:${PRIMARY_COLORS[45]} 0.9:rgba(0,0,0,0)`,
18
- fillOpacity: 1,
19
- },
20
- },
21
- pie: {
22
- ghost: true, // pie底部的阴影
23
- },
24
- bar: {
25
- style: {
26
- default: {
27
- fill: `l(90) 0:${PRIMARY_COLORS[15]} 0.9:${PRIMARY_COLORS[25]}`,
28
- },
29
- transpose: {
30
- fill: `l(180) 0:${PRIMARY_COLORS[15]} 0.8:${PRIMARY_COLORS[25]}`,
31
- },
32
- },
33
- axis: {
34
- label: {
35
- fill: '#e2e2ea',
36
- },
37
- },
38
- },
39
- }
40
- }
1
+ /**
2
+ * 具体图表的样式
3
+ * registerTheme只能修改通用的样式,不同图表之前的差异不能在主题中修改,所以有此文件,针对不同图表修改样式
4
+ */
5
+ export const chartStyleSheet = (PRIMARY_COLORS: Record<number, string>) => {
6
+ return {
7
+ line: {
8
+ shape: 'smooth',
9
+ style: {
10
+ stroke: PRIMARY_COLORS[15],
11
+ shadowBlur: 30,
12
+ shadowColor: PRIMARY_COLORS[15],
13
+ shadowOffsetY: 0,
14
+ },
15
+ area: {
16
+ shape: 'smooth',
17
+ fill: `l(90) 0:${PRIMARY_COLORS[45]} 0.9:rgba(0,0,0,0)`,
18
+ fillOpacity: 1,
19
+ },
20
+ },
21
+ pie: {
22
+ ghost: true, // pie底部的阴影
23
+ },
24
+ bar: {
25
+ style: {
26
+ default: {
27
+ fill: `l(90) 0:${PRIMARY_COLORS[15]} 0.9:${PRIMARY_COLORS[25]}`,
28
+ },
29
+ transpose: {
30
+ fill: `l(180) 0:${PRIMARY_COLORS[15]} 0.8:${PRIMARY_COLORS[25]}`,
31
+ },
32
+ },
33
+ axis: {
34
+ label: {
35
+ fill: '#e2e2ea',
36
+ },
37
+ },
38
+ },
39
+ }
40
+ }