@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.
- package/README.md +5 -0
- package/build/index.js +820 -0
- package/build/index.min.js +1 -0
- package/cjs/common/color-scheme.d.ts +2 -0
- package/cjs/common/color-scheme.js +45 -0
- package/cjs/common/color-scheme.js.map +1 -0
- package/cjs/common/component/axis.d.ts +2 -0
- package/cjs/common/component/axis.js +86 -0
- package/cjs/common/component/axis.js.map +1 -0
- package/cjs/common/component/crosshair.d.ts +2 -0
- package/cjs/common/component/crosshair.js +36 -0
- package/cjs/common/component/crosshair.js.map +1 -0
- package/cjs/common/component/data-zoom.d.ts +3 -0
- package/cjs/common/component/data-zoom.js +67 -0
- package/cjs/common/component/data-zoom.js.map +1 -0
- package/cjs/common/component/indicator.d.ts +2 -0
- package/cjs/common/component/indicator.js +23 -0
- package/cjs/common/component/indicator.js.map +1 -0
- package/cjs/common/component/legend.d.ts +2 -0
- package/cjs/common/component/legend.js +144 -0
- package/cjs/common/component/legend.js.map +1 -0
- package/cjs/common/component/mark-area.d.ts +2 -0
- package/cjs/common/component/mark-area.js +31 -0
- package/cjs/common/component/mark-area.js.map +1 -0
- package/cjs/common/component/mark-line.d.ts +2 -0
- package/cjs/common/component/mark-line.js +41 -0
- package/cjs/common/component/mark-line.js.map +1 -0
- package/cjs/common/component/mark-point.d.ts +2 -0
- package/cjs/common/component/mark-point.js +52 -0
- package/cjs/common/component/mark-point.js.map +1 -0
- package/cjs/common/component/polar-axis.d.ts +5 -0
- package/cjs/common/component/polar-axis.js +30 -0
- package/cjs/common/component/polar-axis.js.map +1 -0
- package/cjs/common/component/scroll-bar.d.ts +2 -0
- package/cjs/common/component/scroll-bar.js +23 -0
- package/cjs/common/component/scroll-bar.js.map +1 -0
- package/cjs/common/component/tooltip.d.ts +2 -0
- package/cjs/common/component/tooltip.js +74 -0
- package/cjs/common/component/tooltip.js.map +1 -0
- package/cjs/common/mark.d.ts +2 -0
- package/cjs/common/mark.js +17 -0
- package/cjs/common/mark.js.map +1 -0
- package/cjs/common/series/area.d.ts +2 -0
- package/cjs/common/series/area.js +39 -0
- package/cjs/common/series/area.js.map +1 -0
- package/cjs/common/series/bar.d.ts +2 -0
- package/cjs/common/series/bar.js +36 -0
- package/cjs/common/series/bar.js.map +1 -0
- package/cjs/common/series/funnel.d.ts +2 -0
- package/cjs/common/series/funnel.js +36 -0
- package/cjs/common/series/funnel.js.map +1 -0
- package/cjs/common/series/gauge.d.ts +2 -0
- package/cjs/common/series/gauge.js +33 -0
- package/cjs/common/series/gauge.js.map +1 -0
- package/cjs/common/series/heatmap.d.ts +2 -0
- package/cjs/common/series/heatmap.js +32 -0
- package/cjs/common/series/heatmap.js.map +1 -0
- package/cjs/common/series/line.d.ts +2 -0
- package/cjs/common/series/line.js +30 -0
- package/cjs/common/series/line.js.map +1 -0
- package/cjs/common/series/pie.d.ts +2 -0
- package/cjs/common/series/pie.js +31 -0
- package/cjs/common/series/pie.js.map +1 -0
- package/cjs/common/series/radar.d.ts +2 -0
- package/cjs/common/series/radar.js +32 -0
- package/cjs/common/series/radar.js.map +1 -0
- package/cjs/common/series/scatter.d.ts +2 -0
- package/cjs/common/series/scatter.js +19 -0
- package/cjs/common/series/scatter.js.map +1 -0
- package/cjs/common/series/treemap.d.ts +2 -0
- package/cjs/common/series/treemap.js +31 -0
- package/cjs/common/series/treemap.js.map +1 -0
- package/cjs/common/token.d.ts +2 -0
- package/cjs/common/token.js +9 -0
- package/cjs/common/token.js.map +1 -0
- package/cjs/index.d.ts +3 -0
- package/cjs/index.js +35 -0
- package/cjs/index.js.map +1 -0
- package/esm/common/color-scheme.d.ts +2 -0
- package/esm/common/color-scheme.js +39 -0
- package/esm/common/color-scheme.js.map +1 -0
- package/esm/common/component/axis.d.ts +2 -0
- package/esm/common/component/axis.js +82 -0
- package/esm/common/component/axis.js.map +1 -0
- package/esm/common/component/crosshair.d.ts +2 -0
- package/esm/common/component/crosshair.js +32 -0
- package/esm/common/component/crosshair.js.map +1 -0
- package/esm/common/component/data-zoom.d.ts +3 -0
- package/esm/common/component/data-zoom.js +65 -0
- package/esm/common/component/data-zoom.js.map +1 -0
- package/esm/common/component/indicator.d.ts +2 -0
- package/esm/common/component/indicator.js +19 -0
- package/esm/common/component/indicator.js.map +1 -0
- package/esm/common/component/legend.d.ts +2 -0
- package/esm/common/component/legend.js +138 -0
- package/esm/common/component/legend.js.map +1 -0
- package/esm/common/component/mark-area.d.ts +2 -0
- package/esm/common/component/mark-area.js +27 -0
- package/esm/common/component/mark-area.js.map +1 -0
- package/esm/common/component/mark-line.d.ts +2 -0
- package/esm/common/component/mark-line.js +37 -0
- package/esm/common/component/mark-line.js.map +1 -0
- package/esm/common/component/mark-point.d.ts +2 -0
- package/esm/common/component/mark-point.js +48 -0
- package/esm/common/component/mark-point.js.map +1 -0
- package/esm/common/component/polar-axis.d.ts +5 -0
- package/esm/common/component/polar-axis.js +24 -0
- package/esm/common/component/polar-axis.js.map +1 -0
- package/esm/common/component/scroll-bar.d.ts +2 -0
- package/esm/common/component/scroll-bar.js +19 -0
- package/esm/common/component/scroll-bar.js.map +1 -0
- package/esm/common/component/tooltip.d.ts +2 -0
- package/esm/common/component/tooltip.js +70 -0
- package/esm/common/component/tooltip.js.map +1 -0
- package/esm/common/mark.d.ts +2 -0
- package/esm/common/mark.js +13 -0
- package/esm/common/mark.js.map +1 -0
- package/esm/common/series/area.d.ts +2 -0
- package/esm/common/series/area.js +35 -0
- package/esm/common/series/area.js.map +1 -0
- package/esm/common/series/bar.d.ts +2 -0
- package/esm/common/series/bar.js +30 -0
- package/esm/common/series/bar.js.map +1 -0
- package/esm/common/series/funnel.d.ts +2 -0
- package/esm/common/series/funnel.js +32 -0
- package/esm/common/series/funnel.js.map +1 -0
- package/esm/common/series/gauge.d.ts +2 -0
- package/esm/common/series/gauge.js +29 -0
- package/esm/common/series/gauge.js.map +1 -0
- package/esm/common/series/heatmap.d.ts +2 -0
- package/esm/common/series/heatmap.js +28 -0
- package/esm/common/series/heatmap.js.map +1 -0
- package/esm/common/series/line.d.ts +2 -0
- package/esm/common/series/line.js +26 -0
- package/esm/common/series/line.js.map +1 -0
- package/esm/common/series/pie.d.ts +2 -0
- package/esm/common/series/pie.js +27 -0
- package/esm/common/series/pie.js.map +1 -0
- package/esm/common/series/radar.d.ts +2 -0
- package/esm/common/series/radar.js +28 -0
- package/esm/common/series/radar.js.map +1 -0
- package/esm/common/series/scatter.d.ts +2 -0
- package/esm/common/series/scatter.js +15 -0
- package/esm/common/series/scatter.js.map +1 -0
- package/esm/common/series/treemap.d.ts +2 -0
- package/esm/common/series/treemap.js +27 -0
- package/esm/common/series/treemap.js.map +1 -0
- package/esm/common/token.d.ts +2 -0
- package/esm/common/token.js +5 -0
- package/esm/common/token.js.map +1 -0
- package/esm/index.d.ts +3 -0
- package/esm/index.js +77 -0
- package/esm/index.js.map +1 -0
- package/package.json +87 -0
- package/public/aurora.json +1 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const axisRadius = {
|
|
2
|
+
domainLine: {},
|
|
3
|
+
grid: {
|
|
4
|
+
smooth: !1,
|
|
5
|
+
visible: !0
|
|
6
|
+
},
|
|
7
|
+
subGrid: {
|
|
8
|
+
smooth: !1
|
|
9
|
+
}
|
|
10
|
+
}, axisAngle = {
|
|
11
|
+
grid: {
|
|
12
|
+
visible: !0,
|
|
13
|
+
smooth: !1
|
|
14
|
+
},
|
|
15
|
+
label: {
|
|
16
|
+
space: 4
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const axisPolar = {
|
|
21
|
+
axisRadius: axisRadius,
|
|
22
|
+
axisAngle: axisAngle
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=polar-axis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/component/polar-axis.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAA0B;IACxC,UAAU,EAAE,EAAE;IACd,IAAI,EAAE;QACJ,MAAM,EAAE,KAAK;QACb,OAAO,EAAE,IAAI;KACd;IACD,OAAO,EAAE;QACP,MAAM,EAAE,KAAK;KACd;CACF,CAAC;AAEF,MAAM,SAAS,GAA0B;IACvC,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,KAAK;KACd;IACD,KAAK,EAAE;QACL,KAAK,EAAE,CAAC;KACT;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,UAAU;IACV,SAAS;CACV,CAAC","file":"polar-axis.js","sourcesContent":["import type { IPolarAxisCommonTheme } from '@visactor/vchart';\n\nconst axisRadius: IPolarAxisCommonTheme = {\n domainLine: {},\n grid: {\n smooth: false,\n visible: true\n },\n subGrid: {\n smooth: false\n }\n};\n\nconst axisAngle: IPolarAxisCommonTheme = {\n grid: {\n visible: true,\n smooth: false\n },\n label: {\n space: 4\n }\n};\n\nexport const axisPolar = {\n axisRadius,\n axisAngle\n};\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const scrollBar = {
|
|
2
|
+
horizontal: {
|
|
3
|
+
height: 12,
|
|
4
|
+
slider: {
|
|
5
|
+
style: {
|
|
6
|
+
fill: "rgba(0,0,0,0.15)"
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
vertical: {
|
|
11
|
+
width: 12,
|
|
12
|
+
slider: {
|
|
13
|
+
style: {
|
|
14
|
+
fill: "rgba(0,0,0,0.15)"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=scroll-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/component/scroll-bar.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAoB;IACxC,UAAU,EAAE;QACV,MAAM,EAAE,EAAE;QACV,MAAM,EAAE;YACN,KAAK,EAAE;gBACL,IAAI,EAAE,kBAAkB;aACzB;SACF;KACF;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE;YACN,KAAK,EAAE;gBACL,IAAI,EAAE,kBAAkB;aACzB;SACF;KACF;CACF,CAAC","file":"scroll-bar.js","sourcesContent":["import type { IScrollBarTheme } from '@visactor/vchart';\n\nexport const scrollBar: IScrollBarTheme = {\n horizontal: {\n height: 12,\n slider: {\n style: {\n fill: 'rgba(0,0,0,0.15)'\n }\n }\n },\n vertical: {\n width: 12,\n slider: {\n style: {\n fill: 'rgba(0,0,0,0.15)'\n }\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export const tooltip = {
|
|
2
|
+
offset: {
|
|
3
|
+
x: 16,
|
|
4
|
+
y: 16
|
|
5
|
+
},
|
|
6
|
+
panel: {
|
|
7
|
+
padding: {
|
|
8
|
+
top: 12,
|
|
9
|
+
left: 12,
|
|
10
|
+
right: 12,
|
|
11
|
+
bottom: 12
|
|
12
|
+
},
|
|
13
|
+
backgroundColor: {
|
|
14
|
+
type: "palette",
|
|
15
|
+
key: "popupBackgroundColor"
|
|
16
|
+
},
|
|
17
|
+
border: {
|
|
18
|
+
color: {
|
|
19
|
+
type: "palette",
|
|
20
|
+
key: "popupBackgroundColor"
|
|
21
|
+
},
|
|
22
|
+
width: 0,
|
|
23
|
+
radius: 3
|
|
24
|
+
},
|
|
25
|
+
shadow: {
|
|
26
|
+
x: 0,
|
|
27
|
+
y: 0,
|
|
28
|
+
blur: 10,
|
|
29
|
+
spread: 0,
|
|
30
|
+
color: "#aeaeae"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
spaceRow: 12,
|
|
34
|
+
titleLabel: {
|
|
35
|
+
fontSize: 12,
|
|
36
|
+
lineHeight: 12,
|
|
37
|
+
fontColor: "#1D1D2E",
|
|
38
|
+
fontWeight: "500",
|
|
39
|
+
textAlign: "left",
|
|
40
|
+
textBaseline: "middle",
|
|
41
|
+
spacing: 0
|
|
42
|
+
},
|
|
43
|
+
shape: {
|
|
44
|
+
size: 8,
|
|
45
|
+
spacing: 8
|
|
46
|
+
},
|
|
47
|
+
keyLabel: {
|
|
48
|
+
fontSize: 12,
|
|
49
|
+
lineHeight: 12,
|
|
50
|
+
fontColor: {
|
|
51
|
+
type: "palette",
|
|
52
|
+
key: "blackColors65"
|
|
53
|
+
},
|
|
54
|
+
textAlign: "left",
|
|
55
|
+
textBaseline: "middle",
|
|
56
|
+
spacing: 12
|
|
57
|
+
},
|
|
58
|
+
valueLabel: {
|
|
59
|
+
fontSize: 12,
|
|
60
|
+
lineHeight: 12,
|
|
61
|
+
fontColor: {
|
|
62
|
+
type: "palette",
|
|
63
|
+
key: "blackColors65"
|
|
64
|
+
},
|
|
65
|
+
fontWeight: "normal",
|
|
66
|
+
textBaseline: "middle",
|
|
67
|
+
spacing: 0
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/component/tooltip.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAkB;IACpC,MAAM,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE;IACxB,KAAK,EAAE;QACL,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;QACrD,eAAe,EAAE;YACf,IAAI,EAAE,SAAS;YACf,GAAG,EAAE,sBAAsB;SACrB;QACR,MAAM,EAAE;YACN,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,GAAG,EAAE,sBAAsB;aACrB;YACR,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;SACV;QACD,MAAM,EAAE;YACN,CAAC,EAAE,CAAC;YACJ,CAAC,EAAE,CAAC;YACJ,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,SAAS;SACjB;KACF;IACD,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,SAAS;QACpB,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,QAAQ;QACtB,OAAO,EAAE,CAAC;KACX;IACD,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;IAC9B,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,SAAS,EAAE;YACT,IAAI,EAAE,SAAS;YACf,GAAG,EAAE,eAAe;SACd;QACR,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,QAAQ;QACtB,OAAO,EAAE,EAAE;KACZ;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,SAAS,EAAE;YACT,IAAI,EAAE,SAAS;YACf,GAAG,EAAE,eAAe;SACd;QACR,UAAU,EAAE,QAAQ;QACpB,YAAY,EAAE,QAAQ;QACtB,OAAO,EAAE,CAAC;KACX;CACF,CAAC","file":"tooltip.js","sourcesContent":["import type { ITooltipTheme } from '@visactor/vchart';\n\nexport const tooltip: ITooltipTheme = {\n offset: { x: 16, y: 16 },\n panel: {\n padding: { top: 12, left: 12, right: 12, bottom: 12 },\n backgroundColor: {\n type: 'palette',\n key: 'popupBackgroundColor'\n } as any,\n border: {\n color: {\n type: 'palette',\n key: 'popupBackgroundColor'\n } as any,\n width: 0,\n radius: 3\n },\n shadow: {\n x: 0,\n y: 0,\n blur: 10,\n spread: 0,\n color: '#aeaeae'\n }\n },\n spaceRow: 12,\n titleLabel: {\n fontSize: 12,\n lineHeight: 12,\n fontColor: '#1D1D2E',\n fontWeight: '500',\n textAlign: 'left',\n textBaseline: 'middle',\n spacing: 0\n },\n shape: { size: 8, spacing: 8 },\n keyLabel: {\n fontSize: 12,\n lineHeight: 12,\n fontColor: {\n type: 'palette',\n key: 'blackColors65'\n } as any,\n textAlign: 'left',\n textBaseline: 'middle',\n spacing: 12\n },\n valueLabel: {\n fontSize: 12,\n lineHeight: 12,\n fontColor: {\n type: 'palette',\n key: 'blackColors65'\n } as any,\n fontWeight: 'normal',\n textBaseline: 'middle',\n spacing: 0\n }\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/mark.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAA2B;IAChD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;YAC/C,SAAS,EAAE,CAAC;SACb;KACF;CACF,CAAC","file":"mark.js","sourcesContent":["import type { IGlobalMarkThemeByName } from '@visactor/vchart';\n\nexport const markByName: IGlobalMarkThemeByName = {\n label: {\n style: {\n fontSize: 12,\n fill: { type: 'palette', key: 'blackColors65' },\n lineWidth: 0\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const area = {
|
|
2
|
+
area: {
|
|
3
|
+
point: {
|
|
4
|
+
style: {
|
|
5
|
+
visible: !1,
|
|
6
|
+
size: 12,
|
|
7
|
+
lineWidth: 2,
|
|
8
|
+
shadowColor: "rgba(0, 0, 0, 0.1)",
|
|
9
|
+
shadowBlur: 3,
|
|
10
|
+
stroke: {
|
|
11
|
+
type: "palette",
|
|
12
|
+
key: "whiteColors100"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
line: {
|
|
17
|
+
style: {
|
|
18
|
+
curveType: "monotone",
|
|
19
|
+
lineWidth: 2
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
area: {
|
|
23
|
+
style: {
|
|
24
|
+
fillOpacity: .25,
|
|
25
|
+
lineWidth: 2
|
|
26
|
+
},
|
|
27
|
+
state: {
|
|
28
|
+
selected: {
|
|
29
|
+
fillOpacity: .5
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=area.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/series/area.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAGb;IACF,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,OAAO,EAAE,KAAK;gBACd,IAAI,EAAE,EAAE;gBACR,SAAS,EAAE,CAAC;gBACZ,WAAW,EAAE,oBAAoB;gBACjC,UAAU,EAAE,CAAC;gBACb,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,gBAAgB,EAAE;aACnD;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,SAAS,EAAE,UAAU;gBACrB,SAAS,EAAE,CAAC;aACb;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,WAAW,EAAE,IAAI;gBACjB,SAAS,EAAE,CAAC;aACb;YACD,KAAK,EAAE;gBACL,QAAQ,EAAE;oBACR,WAAW,EAAE,GAAG;iBACjB;aACF;SACF;KACF;CACF,CAAC","file":"area.js","sourcesContent":["import type { ISeriesTheme, SeriesTypeEnum, SeriesTypeForThemeEnum } from '@visactor/vchart';\n\nexport const area: Pick<\n ISeriesTheme,\n SeriesTypeEnum.area | SeriesTypeForThemeEnum.area_vertical | SeriesTypeForThemeEnum.area_horizontal\n> = {\n area: {\n point: {\n style: {\n visible: false,\n size: 12,\n lineWidth: 2,\n shadowColor: 'rgba(0, 0, 0, 0.1)',\n shadowBlur: 3,\n stroke: { type: 'palette', key: 'whiteColors100' }\n }\n },\n line: {\n style: {\n curveType: 'monotone',\n lineWidth: 2\n }\n },\n area: {\n style: {\n fillOpacity: 0.25,\n lineWidth: 2\n },\n state: {\n selected: {\n fillOpacity: 0.5\n }\n }\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const bar = {
|
|
2
|
+
barMaxWidth: 8,
|
|
3
|
+
barGapInGroup: 4,
|
|
4
|
+
label: {
|
|
5
|
+
style: {
|
|
6
|
+
fill: {
|
|
7
|
+
type: "palette",
|
|
8
|
+
key: "secondaryFontColor"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}, bar_horizontal = {
|
|
13
|
+
stackCornerRadius: [ 0, 1, 1, 0 ],
|
|
14
|
+
label: {
|
|
15
|
+
position: "right",
|
|
16
|
+
offset: 4
|
|
17
|
+
}
|
|
18
|
+
}, bar_vertical = {
|
|
19
|
+
stackCornerRadius: [ 1, 1, 0, 0 ],
|
|
20
|
+
label: {
|
|
21
|
+
position: "top",
|
|
22
|
+
offset: 4
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const barTheme = {
|
|
27
|
+
bar: bar,
|
|
28
|
+
bar_horizontal: bar_horizontal,
|
|
29
|
+
bar_vertical: bar_vertical
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/series/bar.ts"],"names":[],"mappings":"AAEA,MAAM,GAAG,GAAwB;IAC/B,WAAW,EAAE,CAAC;IAEd,aAAa,EAAE,CAAC;IAChB,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE;SACrD;KACF;CACF,CAAC;AAEF,MAAM,cAAc,GAAwB;IAE1C,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/B,KAAK,EAAE;QACL,QAAQ,EAAE,OAAO;QACjB,MAAM,EAAE,CAAC;KACV;CACF,CAAC;AAEF,MAAM,YAAY,GAAwB;IAExC,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/B,KAAK,EAAE;QACL,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,CAAC;KACV;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAGjB;IACF,GAAG;IACH,cAAc;IACd,YAAY;CACb,CAAC","file":"bar.js","sourcesContent":["import type { ISeriesTheme, SeriesTypeEnum, SeriesTypeForThemeEnum } from '@visactor/vchart';\n\nconst bar: ISeriesTheme['bar'] = {\n barMaxWidth: 8,\n // @ts-ignore\n barGapInGroup: 4, // FIXME: typeError\n label: {\n style: {\n fill: { type: 'palette', key: 'secondaryFontColor' }\n }\n }\n};\n\nconst bar_horizontal: ISeriesTheme['bar'] = {\n // @ts-ignore\n stackCornerRadius: [0, 1, 1, 0], // FIXME: typeError\n label: {\n position: 'right',\n offset: 4\n }\n};\n\nconst bar_vertical: ISeriesTheme['bar'] = {\n // @ts-ignore\n stackCornerRadius: [1, 1, 0, 0], // FIXME: typeError\n label: {\n position: 'top',\n offset: 4\n }\n};\n\nexport const barTheme: Pick<\n ISeriesTheme,\n SeriesTypeEnum.bar | SeriesTypeForThemeEnum.bar_horizontal | SeriesTypeForThemeEnum.bar_vertical\n> = {\n bar,\n bar_horizontal,\n bar_vertical\n};\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export const funnel = {
|
|
2
|
+
funnel: {
|
|
3
|
+
state: {
|
|
4
|
+
selected: {
|
|
5
|
+
fill: "#1966FF",
|
|
6
|
+
stroke: "#3958E0",
|
|
7
|
+
strokeOpacity: .2,
|
|
8
|
+
lineWidth: 4
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
outerLabel: {
|
|
13
|
+
style: {
|
|
14
|
+
fontSize: 12
|
|
15
|
+
},
|
|
16
|
+
line: {
|
|
17
|
+
style: {
|
|
18
|
+
lineWidth: 2
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
label: {
|
|
23
|
+
style: {
|
|
24
|
+
fill: {
|
|
25
|
+
type: "palette",
|
|
26
|
+
key: "whiteColors100"
|
|
27
|
+
},
|
|
28
|
+
fontSize: 12
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=funnel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/series/funnel.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAA2B;IAC5C,MAAM,EAAE;QACN,KAAK,EAAE;YACL,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE,SAAS;gBACjB,aAAa,EAAE,GAAG;gBAClB,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE;YACL,QAAQ,EAAE,EAAE;SACb;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,gBAAgB,EAAE;YAChD,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC","file":"funnel.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const funnel: ISeriesTheme['funnel'] = {\n funnel: {\n state: {\n selected: {\n fill: '#1966FF',\n stroke: '#3958E0',\n strokeOpacity: 0.2,\n lineWidth: 4\n }\n }\n },\n outerLabel: {\n style: {\n fontSize: 12\n },\n line: {\n style: {\n lineWidth: 2\n }\n }\n },\n label: {\n style: {\n fill: { type: 'palette', key: 'whiteColors100' },\n fontSize: 12\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const gauge = {
|
|
2
|
+
circularProgress: {
|
|
3
|
+
progress: {
|
|
4
|
+
style: {
|
|
5
|
+
cornerRadius: 100
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
track: {
|
|
9
|
+
interactive: !1,
|
|
10
|
+
style: {
|
|
11
|
+
cornerRadius: 100,
|
|
12
|
+
fill: "#DCDEE1",
|
|
13
|
+
fillOpacity: 1
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
gaugePointer: {
|
|
18
|
+
pin: {
|
|
19
|
+
visible: !1
|
|
20
|
+
},
|
|
21
|
+
pinBackground: {
|
|
22
|
+
visible: !1
|
|
23
|
+
},
|
|
24
|
+
pointer: {
|
|
25
|
+
visible: !1
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=gauge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/series/gauge.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAiB;IACjC,gBAAgB,EAAE;QAIhB,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,YAAY,EAAE,GAAG;aAClB;SACF;QACD,KAAK,EAAE;YACL,WAAW,EAAE,KAAK;YAClB,KAAK,EAAE;gBACL,YAAY,EAAE,GAAG;gBACjB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,CAAC;aACf;SACF;KACF;IACD,YAAY,EAAE;QACZ,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QACvB,aAAa,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QACjC,OAAO,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;KAC5B;CACF,CAAC","file":"gauge.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const gauge: ISeriesTheme = {\n circularProgress: {\n // FIXME: not work\n // radius: 1,\n // innerRadius: 0.1,\n progress: {\n style: {\n cornerRadius: 100\n }\n },\n track: {\n interactive: false,\n style: {\n cornerRadius: 100,\n fill: '#DCDEE1',\n fillOpacity: 1\n }\n }\n },\n gaugePointer: {\n pin: { visible: false },\n pinBackground: { visible: false },\n pointer: { visible: false }\n }\n};\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export const heatmap = {
|
|
2
|
+
cell: {
|
|
3
|
+
style: {
|
|
4
|
+
stroke: {
|
|
5
|
+
type: "palette",
|
|
6
|
+
key: "whiteColors100"
|
|
7
|
+
},
|
|
8
|
+
lineWidth: 1
|
|
9
|
+
},
|
|
10
|
+
state: {
|
|
11
|
+
hover: {
|
|
12
|
+
zIndex: 100,
|
|
13
|
+
stroke: "#000"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
label: {
|
|
18
|
+
position: "inside",
|
|
19
|
+
style: {
|
|
20
|
+
fill: {
|
|
21
|
+
type: "palette",
|
|
22
|
+
key: "whiteColors100"
|
|
23
|
+
},
|
|
24
|
+
fontSize: 12
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=heatmap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/series/heatmap.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAA4B;IAC9C,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,gBAAgB,EAAE;YAClD,SAAS,EAAE,CAAC;SACb;QACD,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,MAAM,EAAE,GAAG;gBACX,MAAM,EAAE,MAAM;aACf;SACF;KACF;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,QAAQ;QAClB,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,gBAAgB,EAAE;YAChD,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC","file":"heatmap.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const heatmap: ISeriesTheme['heatmap'] = {\n cell: {\n style: {\n stroke: { type: 'palette', key: 'whiteColors100' },\n lineWidth: 1\n },\n state: {\n hover: {\n zIndex: 100,\n stroke: '#000'\n }\n }\n },\n label: {\n position: 'inside',\n style: {\n fill: { type: 'palette', key: 'whiteColors100' },\n fontSize: 12\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const line = {
|
|
2
|
+
line: {
|
|
3
|
+
style: {
|
|
4
|
+
lineWidth: 2,
|
|
5
|
+
curveType: "monotone"
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
point: {
|
|
9
|
+
style: {
|
|
10
|
+
visible: !1,
|
|
11
|
+
size: 12,
|
|
12
|
+
lineWidth: 2,
|
|
13
|
+
shadowColor: "rgba(0, 0, 0, 0.1)",
|
|
14
|
+
shadowBlur: 3,
|
|
15
|
+
stroke: {
|
|
16
|
+
type: "palette",
|
|
17
|
+
key: "whiteColors100"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
label: {
|
|
22
|
+
position: "top",
|
|
23
|
+
offset: 4
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=line.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/series/line.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAAyB;IACxC,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,UAAU;SACtB;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,oBAAoB;YACjC,UAAU,EAAE,CAAC;YACb,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,gBAAgB,EAAE;SACnD;KACF;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,CAAC;KACV;CACF,CAAC","file":"line.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const line: ISeriesTheme['line'] = {\n line: {\n style: {\n lineWidth: 2,\n curveType: 'monotone'\n }\n },\n point: {\n style: {\n visible: false,\n size: 12,\n lineWidth: 2,\n shadowColor: 'rgba(0, 0, 0, 0.1)',\n shadowBlur: 3,\n stroke: { type: 'palette', key: 'whiteColors100' }\n }\n },\n label: {\n position: 'top',\n offset: 4\n }\n};\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export const pie = {
|
|
2
|
+
outerRadius: .8,
|
|
3
|
+
innerRadius: .54,
|
|
4
|
+
pie: {
|
|
5
|
+
style: {
|
|
6
|
+
padAngle: 0,
|
|
7
|
+
stroke: "#fff",
|
|
8
|
+
lineWidth: 2
|
|
9
|
+
},
|
|
10
|
+
state: {
|
|
11
|
+
hover: {
|
|
12
|
+
lineWidth: 0
|
|
13
|
+
},
|
|
14
|
+
selected: {
|
|
15
|
+
lineWidth: 0
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
label: {
|
|
20
|
+
visible: !0,
|
|
21
|
+
position: "outside",
|
|
22
|
+
style: {
|
|
23
|
+
fill: null
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=pie.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/series/pie.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,GAAG,GAAwB;IACtC,WAAW,EAAE,GAAG;IAChB,WAAW,EAAE,IAAI;IACjB,GAAG,EAAE;QACH,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC;YACX,MAAM,EAAE,MAAM;YACd,SAAS,EAAE,CAAC;SACb;QACD,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;aACb;YACD,QAAQ,EAAE;gBACR,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,KAAK,EAAE;QACL,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE;YACL,IAAI,EAAE,IAAI;SACX;KACF;CACF,CAAC","file":"pie.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const pie: ISeriesTheme['pie'] = {\n outerRadius: 0.8,\n innerRadius: 0.54,\n pie: {\n style: {\n padAngle: 0,\n stroke: '#fff',\n lineWidth: 2\n },\n state: {\n hover: {\n lineWidth: 0\n },\n selected: {\n lineWidth: 0\n }\n }\n },\n label: {\n visible: true,\n position: 'outside',\n style: {\n fill: null\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export const radar = {
|
|
2
|
+
line: {
|
|
3
|
+
style: {
|
|
4
|
+
lineWidth: 1
|
|
5
|
+
}
|
|
6
|
+
},
|
|
7
|
+
point: {
|
|
8
|
+
style: {
|
|
9
|
+
visible: !1,
|
|
10
|
+
size: 12,
|
|
11
|
+
lineWidth: 2,
|
|
12
|
+
shadowColor: "rgba(0, 0, 0, 0.1)",
|
|
13
|
+
shadowBlur: 3,
|
|
14
|
+
stroke: {
|
|
15
|
+
type: "palette",
|
|
16
|
+
key: "whiteColors100"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
area: {
|
|
21
|
+
visible: !0
|
|
22
|
+
},
|
|
23
|
+
label: {
|
|
24
|
+
position: "top",
|
|
25
|
+
offset: 4
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=radar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/series/radar.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAA0B;IAC1C,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;SACb;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,oBAAoB;YACjC,UAAU,EAAE,CAAC;YACb,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,gBAAgB,EAAE;SACnD;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;KACd;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,CAAC;KACV;CACF,CAAC","file":"radar.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const radar: ISeriesTheme['radar'] = {\n line: {\n style: {\n lineWidth: 1\n }\n },\n point: {\n style: {\n visible: false,\n size: 12,\n lineWidth: 2,\n shadowColor: 'rgba(0, 0, 0, 0.1)',\n shadowBlur: 3,\n stroke: { type: 'palette', key: 'whiteColors100' }\n }\n },\n area: {\n visible: true\n },\n label: {\n position: 'top',\n offset: 4\n }\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/series/scatter.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAA4B;IAC9C,KAAK,EAAE;QACL,KAAK,EAAE;YACL,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,IAAI;YACjB,SAAS,EAAE,CAAC;YACZ,IAAI,EAAE,CAAC;YACP,MAAM,EAAE,IAAI;SACb;KACF;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,KAAK;KAChB;CACF,CAAC","file":"scatter.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const scatter: ISeriesTheme['scatter'] = {\n point: {\n style: {\n symbolType: 'circle',\n fillOpacity: 0.35,\n lineWidth: 1,\n size: 8,\n stroke: null\n }\n },\n label: {\n position: 'top'\n }\n};\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export const treemap = {
|
|
2
|
+
gapWidth: 0,
|
|
3
|
+
leaf: {
|
|
4
|
+
style: {
|
|
5
|
+
lineWidth: 2,
|
|
6
|
+
stroke: {
|
|
7
|
+
type: "palette",
|
|
8
|
+
key: "whiteColors100"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
state: {
|
|
12
|
+
hover: {
|
|
13
|
+
fillOpacity: .8,
|
|
14
|
+
lineWidth: 0
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
label: {
|
|
19
|
+
style: {
|
|
20
|
+
fill: {
|
|
21
|
+
type: "palette",
|
|
22
|
+
key: "whiteColors100"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=treemap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/series/treemap.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAA4B;IAC9C,QAAQ,EAAE,CAAC;IACX,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,gBAAgB,EAAE;SACnD;QACD,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,WAAW,EAAE,GAAG;gBAChB,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,gBAAgB,EAAE;SACjD;KACF;CACF,CAAC","file":"treemap.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const treemap: ISeriesTheme['treemap'] = {\n gapWidth: 0,\n leaf: {\n style: {\n lineWidth: 2,\n stroke: { type: 'palette', key: 'whiteColors100' }\n },\n state: {\n hover: {\n fillOpacity: 0.8,\n lineWidth: 0\n }\n }\n },\n label: {\n style: {\n fill: { type: 'palette', key: 'whiteColors100' }\n }\n }\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export const token = {
|
|
2
|
+
fontFamily: '"PingFang SC", "-apple-system", "Segoe UI", "Helvetica Neue", Arial,\n Roboto, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
|
|
3
|
+
fontSize: 12
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/token.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAA6B;IAC7C,UAAU,EAER;kHAC8G;IAChH,QAAQ,EAAE,EAAE;CACb,CAAC","file":"token.js","sourcesContent":["import type { BuiltinTokenMap } from '@visactor/vchart';\n\nexport const token: Partial<BuiltinTokenMap> = {\n fontFamily:\n // eslint-disable-next-line max-len\n `\"PingFang SC\", \"-apple-system\", \"Segoe UI\", \"Helvetica Neue\", Arial,\n Roboto, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"`,\n fontSize: 12\n};\n"]}
|
package/esm/index.d.ts
ADDED
package/esm/index.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { colorScheme } from "./common/color-scheme";
|
|
2
|
+
|
|
3
|
+
import { axis } from "./common/component/axis";
|
|
4
|
+
|
|
5
|
+
import { axisPolar } from "./common/component/polar-axis";
|
|
6
|
+
|
|
7
|
+
import { legend } from "./common/component/legend";
|
|
8
|
+
|
|
9
|
+
import { token } from "./common/token";
|
|
10
|
+
|
|
11
|
+
import { tooltip } from "./common/component/tooltip";
|
|
12
|
+
|
|
13
|
+
import { crosshair } from "./common/component/crosshair";
|
|
14
|
+
|
|
15
|
+
import { area } from "./common/series/area";
|
|
16
|
+
|
|
17
|
+
import { barTheme as bar } from "./common/series/bar";
|
|
18
|
+
|
|
19
|
+
import { line } from "./common/series/line";
|
|
20
|
+
|
|
21
|
+
import { markByName } from "./common/mark";
|
|
22
|
+
|
|
23
|
+
import { scatter } from "./common/series/scatter";
|
|
24
|
+
|
|
25
|
+
import { pie } from "./common/series/pie";
|
|
26
|
+
|
|
27
|
+
import { indicator } from "./common/component/indicator";
|
|
28
|
+
|
|
29
|
+
import { funnel } from "./common/series/funnel";
|
|
30
|
+
|
|
31
|
+
import { treemap } from "./common/series/treemap";
|
|
32
|
+
|
|
33
|
+
import { gauge } from "./common/series/gauge";
|
|
34
|
+
|
|
35
|
+
import { heatmap } from "./common/series/heatmap";
|
|
36
|
+
|
|
37
|
+
import { markLine } from "./common/component/mark-line";
|
|
38
|
+
|
|
39
|
+
import { markArea } from "./common/component/mark-area";
|
|
40
|
+
|
|
41
|
+
import { markPoint } from "./common/component/mark-point";
|
|
42
|
+
|
|
43
|
+
import { dataZoom } from "./common/component/data-zoom";
|
|
44
|
+
|
|
45
|
+
import { scrollBar } from "./common/component/scroll-bar";
|
|
46
|
+
|
|
47
|
+
import { radar } from "./common/series/radar";
|
|
48
|
+
|
|
49
|
+
export const chartAuroraTheme = {
|
|
50
|
+
name: "aurora",
|
|
51
|
+
type: "light",
|
|
52
|
+
description: "light theme for ChartHub.",
|
|
53
|
+
colorScheme: colorScheme,
|
|
54
|
+
token: token,
|
|
55
|
+
component: Object.assign(Object.assign(Object.assign(Object.assign({}, axis), legend), axisPolar), {
|
|
56
|
+
tooltip: tooltip,
|
|
57
|
+
crosshair: crosshair,
|
|
58
|
+
indicator: indicator,
|
|
59
|
+
markLine: markLine,
|
|
60
|
+
markArea: markArea,
|
|
61
|
+
markPoint: markPoint,
|
|
62
|
+
dataZoom: dataZoom,
|
|
63
|
+
scrollBar: scrollBar
|
|
64
|
+
}),
|
|
65
|
+
series: Object.assign(Object.assign(Object.assign(Object.assign({}, area), bar), gauge), {
|
|
66
|
+
line: line,
|
|
67
|
+
scatter: scatter,
|
|
68
|
+
pie: pie,
|
|
69
|
+
funnel: funnel,
|
|
70
|
+
treemap: treemap,
|
|
71
|
+
heatmap: heatmap,
|
|
72
|
+
radar: radar
|
|
73
|
+
}),
|
|
74
|
+
markByName: markByName
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export const allThemeMap = new Map([ [ chartAuroraTheme.name, chartAuroraTheme ] ]);
|