@visactor/vchart-aurora-theme 1.12.3-alpha.5 → 1.13.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 (115) hide show
  1. package/README.md +1 -1
  2. package/build/index.js +235 -594
  3. package/build/index.min.js +1 -1
  4. package/cjs/common/color-scheme.d.ts +3 -0
  5. package/cjs/common/color-scheme.js +15 -37
  6. package/cjs/common/color-scheme.js.map +1 -1
  7. package/cjs/common/component/axis.d.ts +1 -1
  8. package/cjs/common/component/axis.js +11 -66
  9. package/cjs/common/component/axis.js.map +1 -1
  10. package/cjs/common/component/crosshair.d.ts +3 -1
  11. package/cjs/common/component/crosshair.js +33 -19
  12. package/cjs/common/component/crosshair.js.map +1 -1
  13. package/cjs/common/component/legend.d.ts +1 -0
  14. package/cjs/common/component/legend.js +22 -115
  15. package/cjs/common/component/legend.js.map +1 -1
  16. package/cjs/common/component/tooltip.d.ts +2 -2
  17. package/cjs/common/component/tooltip.js +7 -59
  18. package/cjs/common/component/tooltip.js.map +1 -1
  19. package/cjs/common/series/area.js +19 -9
  20. package/cjs/common/series/area.js.map +1 -1
  21. package/cjs/common/series/bar.js +9 -10
  22. package/cjs/common/series/bar.js.map +1 -1
  23. package/cjs/common/series/funnel.js +0 -6
  24. package/cjs/common/series/funnel.js.map +1 -1
  25. package/cjs/common/series/line.js +5 -7
  26. package/cjs/common/series/line.js.map +1 -1
  27. package/cjs/common/series/pie.js +43 -2
  28. package/cjs/common/series/pie.js.map +1 -1
  29. package/cjs/common/series/radar.js +22 -13
  30. package/cjs/common/series/radar.js.map +1 -1
  31. package/cjs/common/series/treemap.js +1 -2
  32. package/cjs/index.d.ts +2 -0
  33. package/cjs/index.js +53 -23
  34. package/cjs/index.js.map +1 -1
  35. package/esm/common/color-scheme.d.ts +3 -0
  36. package/esm/common/color-scheme.js +13 -33
  37. package/esm/common/color-scheme.js.map +1 -1
  38. package/esm/common/component/axis.d.ts +1 -1
  39. package/esm/common/component/axis.js +11 -66
  40. package/esm/common/component/axis.js.map +1 -1
  41. package/esm/common/component/crosshair.d.ts +3 -1
  42. package/esm/common/component/crosshair.js +36 -19
  43. package/esm/common/component/crosshair.js.map +1 -1
  44. package/esm/common/component/legend.d.ts +1 -0
  45. package/esm/common/component/legend.js +23 -112
  46. package/esm/common/component/legend.js.map +1 -1
  47. package/esm/common/component/tooltip.d.ts +2 -2
  48. package/esm/common/component/tooltip.js +7 -59
  49. package/esm/common/component/tooltip.js.map +1 -1
  50. package/esm/common/series/area.js +19 -9
  51. package/esm/common/series/area.js.map +1 -1
  52. package/esm/common/series/bar.js +9 -10
  53. package/esm/common/series/bar.js.map +1 -1
  54. package/esm/common/series/funnel.js +0 -6
  55. package/esm/common/series/funnel.js.map +1 -1
  56. package/esm/common/series/line.js +5 -7
  57. package/esm/common/series/line.js.map +1 -1
  58. package/esm/common/series/pie.js +43 -2
  59. package/esm/common/series/pie.js.map +1 -1
  60. package/esm/common/series/radar.js +22 -13
  61. package/esm/common/series/radar.js.map +1 -1
  62. package/esm/common/series/treemap.js +1 -2
  63. package/esm/index.d.ts +2 -0
  64. package/esm/index.js +43 -51
  65. package/esm/index.js.map +1 -1
  66. package/package.json +8 -7
  67. package/cjs/common/component/data-zoom.d.ts +0 -3
  68. package/cjs/common/component/data-zoom.js +0 -67
  69. package/cjs/common/component/data-zoom.js.map +0 -1
  70. package/cjs/common/component/indicator.d.ts +0 -2
  71. package/cjs/common/component/indicator.js +0 -23
  72. package/cjs/common/component/indicator.js.map +0 -1
  73. package/cjs/common/component/mark-area.d.ts +0 -2
  74. package/cjs/common/component/mark-area.js +0 -31
  75. package/cjs/common/component/mark-area.js.map +0 -1
  76. package/cjs/common/component/mark-line.d.ts +0 -2
  77. package/cjs/common/component/mark-line.js +0 -41
  78. package/cjs/common/component/mark-line.js.map +0 -1
  79. package/cjs/common/component/mark-point.d.ts +0 -2
  80. package/cjs/common/component/mark-point.js +0 -52
  81. package/cjs/common/component/mark-point.js.map +0 -1
  82. package/cjs/common/component/polar-axis.d.ts +0 -5
  83. package/cjs/common/component/polar-axis.js +0 -30
  84. package/cjs/common/component/polar-axis.js.map +0 -1
  85. package/cjs/common/component/scroll-bar.d.ts +0 -2
  86. package/cjs/common/component/scroll-bar.js +0 -23
  87. package/cjs/common/component/scroll-bar.js.map +0 -1
  88. package/cjs/common/mark.d.ts +0 -2
  89. package/cjs/common/mark.js +0 -17
  90. package/cjs/common/mark.js.map +0 -1
  91. package/esm/common/component/data-zoom.d.ts +0 -3
  92. package/esm/common/component/data-zoom.js +0 -65
  93. package/esm/common/component/data-zoom.js.map +0 -1
  94. package/esm/common/component/indicator.d.ts +0 -2
  95. package/esm/common/component/indicator.js +0 -19
  96. package/esm/common/component/indicator.js.map +0 -1
  97. package/esm/common/component/mark-area.d.ts +0 -2
  98. package/esm/common/component/mark-area.js +0 -27
  99. package/esm/common/component/mark-area.js.map +0 -1
  100. package/esm/common/component/mark-line.d.ts +0 -2
  101. package/esm/common/component/mark-line.js +0 -37
  102. package/esm/common/component/mark-line.js.map +0 -1
  103. package/esm/common/component/mark-point.d.ts +0 -2
  104. package/esm/common/component/mark-point.js +0 -48
  105. package/esm/common/component/mark-point.js.map +0 -1
  106. package/esm/common/component/polar-axis.d.ts +0 -5
  107. package/esm/common/component/polar-axis.js +0 -24
  108. package/esm/common/component/polar-axis.js.map +0 -1
  109. package/esm/common/component/scroll-bar.d.ts +0 -2
  110. package/esm/common/component/scroll-bar.js +0 -19
  111. package/esm/common/component/scroll-bar.js.map +0 -1
  112. package/esm/common/mark.d.ts +0 -2
  113. package/esm/common/mark.js +0 -13
  114. package/esm/common/mark.js.map +0 -1
  115. package/public/aurora.json +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/component/tooltip.ts"],"names":[],"mappings":";;;AAEa,QAAA,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"]}
1
+ {"version":3,"sources":["../src/common/component/tooltip.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAA+B;IACjD,KAAK,EAAE;QACL,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;SACV;KACF;IACD,KAAK,EAAE;QACL,SAAS,EAAE,QAAQ;QACnB,IAAI,EAAE,CAAC;KACR;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,KAAK;KACf;IACD,SAAS,EAAE;QACT,OAAO,EAAE,IAAI;KACd;CACF,CAAC","file":"tooltip.js","sourcesContent":["import type { IComponentTheme } from '@visactor/vchart';\n\nexport const tooltip: IComponentTheme['tooltip'] = {\n panel: {\n border: {\n radius: 8\n }\n },\n shape: {\n shapeType: 'circle',\n size: 8\n },\n mark: {\n visible: false // 关闭图元 (mark) 提示\n },\n dimension: {\n visible: true // 保留维度 (dimension) 提示\n }\n};\n"]}
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.area = void 0, exports.area = {
6
6
  area: {
7
+ seriesMark: "line",
7
8
  point: {
8
9
  style: {
9
10
  visible: !1,
@@ -11,9 +12,11 @@ Object.defineProperty(exports, "__esModule", {
11
12
  lineWidth: 2,
12
13
  shadowColor: "rgba(0, 0, 0, 0.1)",
13
14
  shadowBlur: 3,
14
- stroke: {
15
- type: "palette",
16
- key: "whiteColors100"
15
+ stroke: "#fff"
16
+ },
17
+ state: {
18
+ dimension_hover: {
19
+ visible: !0
17
20
  }
18
21
  }
19
22
  },
@@ -25,12 +28,19 @@ Object.defineProperty(exports, "__esModule", {
25
28
  },
26
29
  area: {
27
30
  style: {
28
- fillOpacity: .25,
29
- lineWidth: 2
30
- },
31
- state: {
32
- selected: {
33
- fillOpacity: .5
31
+ fill: {
32
+ gradient: "linear",
33
+ x0: 0,
34
+ y0: 0,
35
+ x1: 0,
36
+ y1: 1,
37
+ stops: [ {
38
+ offset: 0,
39
+ opacity: .7
40
+ }, {
41
+ offset: 1,
42
+ opacity: 0
43
+ } ]
34
44
  }
35
45
  }
36
46
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/series/area.ts"],"names":[],"mappings":";;;AAEa,QAAA,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"]}
1
+ {"version":3,"sources":["../src/common/series/area.ts"],"names":[],"mappings":";;;AAEa,QAAA,IAAI,GAGb;IACF,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM;QAClB,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,MAAM;aACf;YACD,KAAK,EAAE;gBACL,eAAe,EAAE;oBACf,OAAO,EAAE,IAAI;iBACd;aACF;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,SAAS,EAAE,UAAU;gBACrB,SAAS,EAAE,CAAC;aACb;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,QAAQ,EAAE,QAAQ;oBAClB,EAAE,EAAE,CAAC;oBACL,EAAE,EAAE,CAAC;oBACL,EAAE,EAAE,CAAC;oBACL,EAAE,EAAE,CAAC;oBACL,KAAK,EAAE;wBACL;4BACE,MAAM,EAAE,CAAC;4BACT,OAAO,EAAE,GAAG;yBACb;wBACD;4BACE,MAAM,EAAE,CAAC;4BACT,OAAO,EAAE,CAAC;yBACX;qBACF;iBACF;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 seriesMark: 'line',\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: '#fff'\n },\n state: {\n dimension_hover: {\n visible: true\n }\n }\n },\n line: {\n style: {\n curveType: 'monotone',\n lineWidth: 2\n }\n },\n area: {\n style: {\n fill: {\n gradient: 'linear',\n x0: 0,\n y0: 0,\n x1: 0,\n y1: 1,\n stops: [\n {\n offset: 0,\n opacity: 0.7\n },\n {\n offset: 1,\n opacity: 0\n }\n ]\n }\n }\n }\n }\n};\n"]}
@@ -5,24 +5,22 @@ Object.defineProperty(exports, "__esModule", {
5
5
  }), exports.barTheme = void 0;
6
6
 
7
7
  const bar = {
8
- barMaxWidth: 8,
9
- barGapInGroup: 4,
10
- label: {
8
+ barMaxWidth: 16,
9
+ barGapInGroup: 2,
10
+ barMinHeight: 2,
11
+ bar: {
11
12
  style: {
12
- fill: {
13
- type: "palette",
14
- key: "secondaryFontColor"
15
- }
13
+ visible: datum => datum.value > 0
16
14
  }
17
15
  }
18
16
  }, bar_horizontal = {
19
- stackCornerRadius: [ 0, 1, 1, 0 ],
17
+ stackCornerRadius: [ 0, 2, 2, 0 ],
20
18
  label: {
21
19
  position: "right",
22
20
  offset: 4
23
21
  }
24
22
  }, bar_vertical = {
25
- stackCornerRadius: [ 1, 1, 0, 0 ],
23
+ stackCornerRadius: [ 2, 2, 0, 0 ],
26
24
  label: {
27
25
  position: "top",
28
26
  offset: 4
@@ -33,4 +31,5 @@ exports.barTheme = {
33
31
  bar: bar,
34
32
  bar_horizontal: bar_horizontal,
35
33
  bar_vertical: bar_vertical
36
- };
34
+ };
35
+ //# sourceMappingURL=bar.js.map
@@ -1 +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;AAEW,QAAA,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"]}
1
+ {"version":3,"sources":["../src/common/series/bar.ts"],"names":[],"mappings":";;;AAEA,MAAM,GAAG,GAAwB;IAC/B,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,CAAC;IAChB,YAAY,EAAE,CAAC;IACf,GAAG,EAAE;QACH,KAAK,EAAE;YAEL,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC;SAClC;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;AAEW,QAAA,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: 16,\n barGapInGroup: 2,\n barMinHeight: 2,\n bar: {\n style: {\n // @ts-ignore\n visible: datum => datum.value > 0 // 数据为0时隐藏柱子\n }\n }\n};\n\nconst bar_horizontal: ISeriesTheme['bar'] = {\n // @ts-ignore\n stackCornerRadius: [0, 2, 2, 0], // FIXME: typeError\n label: {\n position: 'right',\n offset: 4\n }\n};\n\nconst bar_vertical: ISeriesTheme['bar'] = {\n // @ts-ignore\n stackCornerRadius: [2, 2, 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"]}
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  funnel: {
7
7
  state: {
8
8
  selected: {
9
- fill: "#1966FF",
10
- stroke: "#3958E0",
11
9
  strokeOpacity: .2,
12
10
  lineWidth: 4
13
11
  }
@@ -25,10 +23,6 @@ Object.defineProperty(exports, "__esModule", {
25
23
  },
26
24
  label: {
27
25
  style: {
28
- fill: {
29
- type: "palette",
30
- key: "whiteColors100"
31
- },
32
26
  fontSize: 12
33
27
  }
34
28
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/series/funnel.ts"],"names":[],"mappings":";;;AAEa,QAAA,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"]}
1
+ {"version":3,"sources":["../src/common/series/funnel.ts"],"names":[],"mappings":";;;AAEa,QAAA,MAAM,GAA2B;IAC5C,MAAM,EAAE;QACN,KAAK,EAAE;YACL,QAAQ,EAAE;gBACR,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,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 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 fontSize: 12\n }\n }\n};\n"]}
@@ -16,15 +16,13 @@ Object.defineProperty(exports, "__esModule", {
16
16
  lineWidth: 2,
17
17
  shadowColor: "rgba(0, 0, 0, 0.1)",
18
18
  shadowBlur: 3,
19
- stroke: {
20
- type: "palette",
21
- key: "whiteColors100"
19
+ stroke: "#fff"
20
+ },
21
+ state: {
22
+ dimension_hover: {
23
+ visible: !0
22
24
  }
23
25
  }
24
- },
25
- label: {
26
- position: "top",
27
- offset: 4
28
26
  }
29
27
  };
30
28
  //# sourceMappingURL=line.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/series/line.ts"],"names":[],"mappings":";;;AAEa,QAAA,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"]}
1
+ {"version":3,"sources":["../src/common/series/line.ts"],"names":[],"mappings":";;;AAEa,QAAA,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,MAAM;SACf;QACD,KAAK,EAAE;YACL,eAAe,EAAE;gBACf,OAAO,EAAE,IAAI;aACd;SACF;KACF;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: '#fff'\n },\n state: {\n dimension_hover: {\n visible: true\n }\n }\n }\n};\n"]}
@@ -10,7 +10,9 @@ Object.defineProperty(exports, "__esModule", {
10
10
  padAngle: 0,
11
11
  stroke: "#fff",
12
12
  lineWidth: 2,
13
- lineJoin: "round"
13
+ lineJoin: "round",
14
+ cornerRadius: 2,
15
+ visible: datum => datum.value > 0
14
16
  },
15
17
  state: {
16
18
  hover: {
@@ -23,9 +25,48 @@ Object.defineProperty(exports, "__esModule", {
23
25
  }
24
26
  }
25
27
  },
28
+ minAngle: 3,
26
29
  label: {
27
30
  visible: !0,
28
- position: "outside"
31
+ position: "outside",
32
+ formatMethod: (label, data) => {
33
+ const midAngle = data.__VCHART_ARC_MIDDLE_ANGLE, cos = Math.cos(midAngle);
34
+ return {
35
+ type: "rich",
36
+ text: [ {
37
+ text: `${null == data ? void 0 : data.value}\n`,
38
+ fill: "#111",
39
+ fontSize: 16,
40
+ fontWeight: 500,
41
+ fontFamily: "Douyin Number ABC",
42
+ stroke: !1,
43
+ textAlign: cos < 0 ? "right" : "left"
44
+ }, {
45
+ text: null == data ? void 0 : data.type,
46
+ fill: "#606165",
47
+ fontSize: 12,
48
+ fontWeight: 400,
49
+ stroke: !1,
50
+ textAlign: cos < 0 ? "right" : "left"
51
+ } ]
52
+ };
53
+ },
54
+ line: {
55
+ style: {
56
+ lineWidth: 2
57
+ }
58
+ },
59
+ layout: {
60
+ align: "labelLine"
61
+ },
62
+ style: {
63
+ type: "rich",
64
+ boundsPadding: [ 6, 0, 6, 0 ]
65
+ },
66
+ legend: {
67
+ visible: !0,
68
+ orient: "bottom"
69
+ }
29
70
  }
30
71
  };
31
72
  //# sourceMappingURL=pie.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/series/pie.ts"],"names":[],"mappings":";;;AAEa,QAAA,GAAG,GAAwB;IACtC,WAAW,EAAE,GAAG;IAChB,WAAW,EAAE,CAAC;IACd,GAAG,EAAE;QACH,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC;YACX,MAAM,EAAE,MAAM;YACd,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,OAAO;SAClB;QACD,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,WAAW,EAAE,IAAI;gBACjB,SAAS,EAAE,CAAC;aACb;YACD,QAAQ,EAAE;gBACR,WAAW,EAAE,IAAI;gBACjB,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,KAAK,EAAE;QACL,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;KACpB;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,\n pie: {\n style: {\n padAngle: 0,\n stroke: '#fff',\n lineWidth: 2,\n lineJoin: 'round'\n },\n state: {\n hover: {\n outerRadius: 0.85,\n lineWidth: 2\n },\n selected: {\n outerRadius: 0.85,\n lineWidth: 2\n }\n }\n },\n label: {\n visible: true,\n position: 'outside'\n }\n};\n"]}
1
+ {"version":3,"sources":["../src/common/series/pie.ts"],"names":[],"mappings":";;;AAEa,QAAA,GAAG,GAAwB;IACtC,WAAW,EAAE,GAAG;IAChB,WAAW,EAAE,CAAC;IACd,GAAG,EAAE;QACH,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC;YACX,MAAM,EAAE,MAAM;YACd,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,OAAO;YACjB,YAAY,EAAE,CAAC;YAEf,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC;SAClC;QACD,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,WAAW,EAAE,IAAI;gBACjB,SAAS,EAAE,CAAC;aACb;YACD,QAAQ,EAAE;gBACR,WAAW,EAAE,IAAI;gBACjB,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE;QACL,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,SAAS;QAEnB,YAAY,EAAE,CAAC,KAAU,EAAE,IAAS,EAAE,EAAE;YACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,yBAAyB,CAAC;YAChD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAC/B,OAAO;gBACL,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE;oBACJ;wBACE,IAAI,EAAE,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,IAAI;wBACxB,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE,GAAG;wBACf,UAAU,EAAE,mBAAmB;wBAC/B,MAAM,EAAE,KAAK;wBACb,SAAS,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;qBACtC;oBACD;wBACE,IAAI,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI;wBAChB,IAAI,EAAE,SAAS;wBACf,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE,GAAG;wBACf,MAAM,EAAE,KAAK;wBACb,SAAS,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;qBACtC;iBACF;aACF,CAAC;QACJ,CAAC;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC;aACb;SACF;QACD,MAAM,EAAE;YACN,KAAK,EAAE,WAAW;SACnB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;SAC5B;QACD,MAAM,EAAE;YACN,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,QAAQ;SACjB;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,\n pie: {\n style: {\n padAngle: 0,\n stroke: '#fff',\n lineWidth: 2,\n lineJoin: 'round',\n cornerRadius: 2,\n // @ts-ignore\n visible: datum => datum.value > 0 // 数据为0时隐藏柱子\n },\n state: {\n hover: {\n outerRadius: 0.85,\n lineWidth: 2\n },\n selected: {\n outerRadius: 0.85,\n lineWidth: 2\n }\n }\n },\n minAngle: 3,\n label: {\n visible: true,\n position: 'outside',\n // @ts-ignore\n formatMethod: (label: any, data: any) => {\n const midAngle = data.__VCHART_ARC_MIDDLE_ANGLE;\n const cos = Math.cos(midAngle);\n return {\n type: 'rich',\n text: [\n {\n text: `${data?.value}\\n`,\n fill: '#111',\n fontSize: 16,\n fontWeight: 500,\n fontFamily: 'Douyin Number ABC',\n stroke: false,\n textAlign: cos < 0 ? 'right' : 'left'\n },\n {\n text: data?.type,\n fill: '#606165',\n fontSize: 12,\n fontWeight: 400,\n stroke: false,\n textAlign: cos < 0 ? 'right' : 'left'\n }\n ]\n };\n },\n line: {\n style: {\n lineWidth: 2\n }\n },\n layout: {\n align: 'labelLine'\n },\n style: {\n type: 'rich',\n boundsPadding: [6, 0, 6, 0]\n },\n legend: {\n visible: true,\n orient: 'bottom'\n }\n }\n};\n"]}
@@ -3,11 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.radar = void 0, exports.radar = {
6
- line: {
7
- style: {
8
- lineWidth: 1
9
- }
10
- },
11
6
  point: {
12
7
  style: {
13
8
  visible: !1,
@@ -15,18 +10,32 @@ Object.defineProperty(exports, "__esModule", {
15
10
  lineWidth: 2,
16
11
  shadowColor: "rgba(0, 0, 0, 0.1)",
17
12
  shadowBlur: 3,
18
- stroke: {
19
- type: "palette",
20
- key: "whiteColors100"
13
+ stroke: "#fff"
14
+ },
15
+ state: {
16
+ dimension_hover: {
17
+ visible: !0
21
18
  }
22
19
  }
23
20
  },
24
21
  area: {
25
- visible: !0
22
+ visible: !0,
23
+ style: {
24
+ fillOpacity: .1,
25
+ lineDash: [ 2, 2 ]
26
+ }
27
+ },
28
+ line: {
29
+ style: {
30
+ lineWidth: 2
31
+ },
32
+ state: {
33
+ dimension_hover: {
34
+ lineDash: [ 0 ],
35
+ lineWidth: 2
36
+ }
37
+ }
26
38
  },
27
- label: {
28
- position: "top",
29
- offset: 4
30
- }
39
+ outerRadius: .8
31
40
  };
32
41
  //# sourceMappingURL=radar.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/series/radar.ts"],"names":[],"mappings":";;;AAEa,QAAA,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"]}
1
+ {"version":3,"sources":["../src/common/series/radar.ts"],"names":[],"mappings":";;;AAEa,QAAA,KAAK,GAA0B;IAC1C,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,MAAM;SACf;QACD,KAAK,EAAE;YACL,eAAe,EAAE;gBACf,OAAO,EAAE,IAAI;aACd;SACF;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,WAAW,EAAE,GAAG;YAChB,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACjB;KACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;SACb;QACD,KAAK,EAAE;YACL,eAAe,EAAE;gBAEf,QAAQ,EAAE,CAAC,CAAC,CAAC;gBACb,SAAS,EAAE,CAAC;aACb;SACF;KACF;IACD,WAAW,EAAE,GAAG;CACjB,CAAC","file":"radar.js","sourcesContent":["import type { ISeriesTheme } from '@visactor/vchart';\n\nexport const radar: ISeriesTheme['radar'] = {\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: '#fff'\n },\n state: {\n dimension_hover: {\n visible: true\n }\n }\n },\n area: {\n visible: true, // display area\n style: {\n fillOpacity: 0.1,\n lineDash: [2, 2]\n }\n },\n line: {\n style: {\n lineWidth: 2\n },\n state: {\n dimension_hover: {\n // 维度hover时线条变为实线\n lineDash: [0], // 取消虚线\n lineWidth: 2\n }\n }\n },\n outerRadius: 0.8\n};\n"]}
@@ -27,5 +27,4 @@ Object.defineProperty(exports, "__esModule", {
27
27
  }
28
28
  }
29
29
  }
30
- };
31
- //# sourceMappingURL=treemap.js.map
30
+ };
package/cjs/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  import type { ITheme } from '@visactor/vchart';
2
+ import { colorList, nestColorList } from './common/color-scheme';
2
3
  export declare const chartAuroraTheme: ITheme;
4
+ export { colorList, nestColorList };
3
5
  export declare const allThemeMap: Map<string, ITheme>;
package/cjs/index.js CHANGED
@@ -2,34 +2,64 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
- }), exports.allThemeMap = exports.chartAuroraTheme = void 0;
5
+ }), exports.allThemeMap = exports.nestColorList = exports.colorList = exports.chartAuroraTheme = void 0;
6
6
 
7
- const color_scheme_1 = require("./common/color-scheme"), axis_1 = require("./common/component/axis"), polar_axis_1 = require("./common/component/polar-axis"), legend_1 = require("./common/component/legend"), token_1 = require("./common/token"), tooltip_1 = require("./common/component/tooltip"), crosshair_1 = require("./common/component/crosshair"), area_1 = require("./common/series/area"), bar_1 = require("./common/series/bar"), line_1 = require("./common/series/line"), mark_1 = require("./common/mark"), scatter_1 = require("./common/series/scatter"), pie_1 = require("./common/series/pie"), indicator_1 = require("./common/component/indicator"), funnel_1 = require("./common/series/funnel"), treemap_1 = require("./common/series/treemap"), gauge_1 = require("./common/series/gauge"), heatmap_1 = require("./common/series/heatmap"), mark_line_1 = require("./common/component/mark-line"), mark_area_1 = require("./common/component/mark-area"), mark_point_1 = require("./common/component/mark-point"), data_zoom_1 = require("./common/component/data-zoom"), scroll_bar_1 = require("./common/component/scroll-bar"), radar_1 = require("./common/series/radar");
7
+ const color_scheme_1 = require("./common/color-scheme");
8
+
9
+ Object.defineProperty(exports, "colorList", {
10
+ enumerable: !0,
11
+ get: function() {
12
+ return color_scheme_1.colorList;
13
+ }
14
+ }), Object.defineProperty(exports, "nestColorList", {
15
+ enumerable: !0,
16
+ get: function() {
17
+ return color_scheme_1.nestColorList;
18
+ }
19
+ });
20
+
21
+ const legend_1 = require("./common/component/legend"), tooltip_1 = require("./common/component/tooltip"), crosshair_1 = require("./common/component/crosshair"), area_1 = require("./common/series/area"), bar_1 = require("./common/series/bar"), line_1 = require("./common/series/line"), scatter_1 = require("./common/series/scatter"), pie_1 = require("./common/series/pie"), axis_1 = require("./common/component/axis"), radar_1 = require("./common/series/radar");
8
22
 
9
23
  exports.chartAuroraTheme = {
10
24
  name: "aurora",
11
25
  type: "light",
12
- description: "light theme for ChartHub.",
26
+ description: "light theme for Aurora.",
13
27
  colorScheme: color_scheme_1.colorScheme,
14
- token: token_1.token,
15
- component: Object.assign(Object.assign(Object.assign(Object.assign({}, axis_1.axis), legend_1.legend), polar_axis_1.axisPolar), {
16
- tooltip: tooltip_1.tooltip,
17
- crosshair: crosshair_1.crosshair,
18
- indicator: indicator_1.indicator,
19
- markLine: mark_line_1.markLine,
20
- markArea: mark_area_1.markArea,
21
- markPoint: mark_point_1.markPoint,
22
- dataZoom: data_zoom_1.dataZoom,
23
- scrollBar: scroll_bar_1.scrollBar
24
- }),
25
- series: Object.assign(Object.assign(Object.assign(Object.assign({}, area_1.area), bar_1.barTheme), gauge_1.gauge), {
28
+ component: Object.assign(Object.assign(Object.assign({}, legend_1.legend), {
29
+ tooltip: tooltip_1.tooltip
30
+ }), axis_1.axis),
31
+ chart: {
32
+ line: {
33
+ component: Object.assign({
34
+ crosshair: crosshair_1.lineCrosshair
35
+ }, legend_1.lineLegend)
36
+ },
37
+ area: {
38
+ component: Object.assign({
39
+ crosshair: crosshair_1.lineCrosshair
40
+ }, legend_1.lineLegend)
41
+ },
42
+ bar: {
43
+ component: {
44
+ crosshair: crosshair_1.barCrosshair
45
+ },
46
+ colorScheme: {
47
+ default: {
48
+ dataScheme: color_scheme_1.barColorList
49
+ }
50
+ }
51
+ },
52
+ radar: {
53
+ component: {
54
+ crosshair: crosshair_1.radarCrosshair
55
+ }
56
+ }
57
+ },
58
+ series: Object.assign(Object.assign(Object.assign({
59
+ pie: pie_1.pie
60
+ }, bar_1.barTheme), area_1.area), {
26
61
  line: line_1.line,
27
- scatter: scatter_1.scatter,
28
- pie: pie_1.pie,
29
- funnel: funnel_1.funnel,
30
- treemap: treemap_1.treemap,
31
- heatmap: heatmap_1.heatmap,
32
- radar: radar_1.radar
33
- }),
34
- markByName: mark_1.markByName
62
+ radar: radar_1.radar,
63
+ scatter: scatter_1.scatter
64
+ })
35
65
  }, exports.allThemeMap = new Map([ [ exports.chartAuroraTheme.name, exports.chartAuroraTheme ] ]);
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AACpD,kDAA+C;AAC/C,8DAA0D;AAE1D,sDAAmD;AACnD,0CAAuC;AACvC,wDAAqD;AACrD,4DAAyD;AACzD,+CAA4C;AAC5C,6CAAsD;AACtD,+CAA4C;AAC5C,wCAA2C;AAC3C,qDAAkD;AAClD,6CAA0C;AAC1C,4DAAyD;AACzD,mDAAgD;AAChD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,4DAAwD;AACxD,4DAAwD;AACxD,8DAA0D;AAC1D,4DAAwD;AACxD,8DAA0D;AAC1D,iDAA8C;AAEjC,QAAA,gBAAgB,GAAW;IACtC,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAX,0BAAW;IACX,KAAK,EAAL,aAAK;IACL,SAAS,8DACJ,WAAI,GACJ,eAAM,GACN,sBAAS,KACZ,OAAO,EAAP,iBAAO;QACP,SAAS,EAAT,qBAAS;QACT,SAAS,EAAT,qBAAS;QACT,QAAQ,EAAR,oBAAQ;QACR,QAAQ,EAAR,oBAAQ;QACR,SAAS,EAAT,sBAAS;QACT,QAAQ,EAAR,oBAAQ;QACR,SAAS,EAAT,sBAAS,GACV;IACD,MAAM,8DACD,WAAI,GACJ,cAAG,GACH,aAAK,KACR,IAAI,EAAJ,WAAI;QACJ,OAAO,EAAP,iBAAO;QACP,GAAG,EAAH,SAAG;QACH,MAAM,EAAN,eAAM;QACN,OAAO,EAAP,iBAAO;QACP,OAAO,EAAP,iBAAO;QACP,KAAK,EAAL,aAAK,GACN;IACD,UAAU,EAAV,iBAAU;CACX,CAAC;AAEW,QAAA,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,wBAAgB,CAAC,IAAI,EAAE,wBAAgB,CAAC,CAAC,CAAwB,CAAC","file":"index.js","sourcesContent":["import type { ITheme } from '@visactor/vchart';\nimport { colorScheme } from './common/color-scheme';\nimport { axis } from './common/component/axis';\nimport { axisPolar } from './common/component/polar-axis';\n\nimport { legend } from './common/component/legend';\nimport { token } from './common/token';\nimport { tooltip } from './common/component/tooltip';\nimport { crosshair } from './common/component/crosshair';\nimport { area } from './common/series/area';\nimport { barTheme as bar } from './common/series/bar';\nimport { line } from './common/series/line';\nimport { markByName } from './common/mark';\nimport { scatter } from './common/series/scatter';\nimport { pie } from './common/series/pie';\nimport { indicator } from './common/component/indicator';\nimport { funnel } from './common/series/funnel';\nimport { treemap } from './common/series/treemap';\nimport { gauge } from './common/series/gauge';\nimport { heatmap } from './common/series/heatmap';\nimport { markLine } from './common/component/mark-line';\nimport { markArea } from './common/component/mark-area';\nimport { markPoint } from './common/component/mark-point';\nimport { dataZoom } from './common/component/data-zoom';\nimport { scrollBar } from './common/component/scroll-bar';\nimport { radar } from './common/series/radar';\n\nexport const chartAuroraTheme: ITheme = {\n name: 'aurora',\n type: 'light',\n description: 'light theme for ChartHub.',\n colorScheme,\n token,\n component: {\n ...axis,\n ...legend,\n ...axisPolar,\n tooltip,\n crosshair,\n indicator,\n markLine,\n markArea,\n markPoint,\n dataZoom,\n scrollBar\n },\n series: {\n ...area,\n ...bar,\n ...gauge,\n line,\n scatter,\n pie,\n funnel,\n treemap,\n heatmap,\n radar\n },\n markByName\n};\n\nexport const allThemeMap = new Map([[chartAuroraTheme.name, chartAuroraTheme]]) as Map<string, ITheme>;\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,wDAA4F;AAmEnF,0FAnEa,wBAAS,OAmEb;AAAE,8FAnE2B,4BAAa,OAmE3B;AAjEjC,sDAA+D;AAE/D,wDAAqD;AACrD,4DAA2F;AAC3F,+CAA4C;AAC5C,6CAAsD;AACtD,+CAA4C;AAC5C,qDAAkD;AAClD,6CAA0C;AAE1C,kDAA+C;AAI/C,iDAA8C;AAEjC,QAAA,gBAAgB,GAAW;IACtC,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAX,0BAAW;IACX,SAAS,gDACJ,eAAM,KACT,OAAO,EAAP,iBAAO,KACJ,WAAI,CACR;IACD,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,SAAS,kBACP,SAAS,EAAE,yBAAa,IACrB,mBAAU,CACd;SACF;QACD,IAAI,EAAE;YACJ,SAAS,kBACP,SAAS,EAAE,yBAAa,IACrB,mBAAU,CACd;SACF;QACD,GAAG,EAAE;YACH,SAAS,EAAE;gBACT,SAAS,EAAE,wBAAY;aACxB;YACD,WAAW,EAAE;gBACX,OAAO,EAAE;oBACP,UAAU,EAAE,2BAAY;iBACzB;aACF;SACF;QACD,KAAK,EAAE;YACL,SAAS,EAAE;gBACT,SAAS,EAAE,0BAAc;aAC1B;SACF;KACF;IACD,MAAM,8CACJ,GAAG,EAAH,SAAG,IACA,cAAG,GACH,WAAI,KACP,IAAI,EAAJ,WAAI;QACJ,KAAK,EAAL,aAAK;QACL,OAAO,EAAP,iBAAO,GACR;CACF,CAAC;AAIW,QAAA,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,wBAAgB,CAAC,IAAI,EAAE,wBAAgB,CAAC,CAAC,CAAwB,CAAC","file":"index.js","sourcesContent":["import type { ITheme } from '@visactor/vchart';\nimport { colorScheme, colorList, barColorList, nestColorList } from './common/color-scheme';\n\nimport { legend, lineLegend } from './common/component/legend';\nimport { token } from './common/token';\nimport { tooltip } from './common/component/tooltip';\nimport { barCrosshair, lineCrosshair, radarCrosshair } from './common/component/crosshair';\nimport { area } from './common/series/area';\nimport { barTheme as bar } from './common/series/bar';\nimport { line } from './common/series/line';\nimport { scatter } from './common/series/scatter';\nimport { pie } from './common/series/pie';\nimport { funnel } from './common/series/funnel';\nimport { axis } from './common/component/axis';\nimport { treemap } from './common/series/treemap';\nimport { gauge } from './common/series/gauge';\nimport { heatmap } from './common/series/heatmap';\nimport { radar } from './common/series/radar';\n\nexport const chartAuroraTheme: ITheme = {\n name: 'aurora',\n type: 'light',\n description: 'light theme for Aurora.',\n colorScheme,\n component: {\n ...legend,\n tooltip,\n ...axis\n },\n chart: {\n line: {\n component: {\n crosshair: lineCrosshair,\n ...lineLegend\n }\n },\n area: {\n component: {\n crosshair: lineCrosshair,\n ...lineLegend\n }\n },\n bar: {\n component: {\n crosshair: barCrosshair\n },\n colorScheme: {\n default: {\n dataScheme: barColorList\n }\n }\n },\n radar: {\n component: {\n crosshair: radarCrosshair\n }\n }\n },\n series: {\n pie,\n ...bar,\n ...area,\n line,\n radar,\n scatter\n }\n};\n\nexport { colorList, nestColorList };\n\nexport const allThemeMap = new Map([[chartAuroraTheme.name, chartAuroraTheme]]) as Map<string, ITheme>;\n"]}
@@ -1,2 +1,5 @@
1
1
  import type { IThemeColorScheme } from '@visactor/vchart';
2
+ export declare const colorList: string[];
3
+ export declare const barColorList: string[];
4
+ export declare const nestColorList: string[][];
2
5
  export declare const colorScheme: IThemeColorScheme;
@@ -1,43 +1,23 @@
1
- const defaultColor = [ "#3377FF", "#1FE7F9", "#53F3B3", "#FFCD50", "#ADB8D6", "#B46FF4", "#867AFF", "#FAA64D", "#F25E68" ], BLACK_COLORS = {
2
- 100: "#000",
3
- 95: "#0D0D0D",
4
- 85: "#262626",
5
- 65: "#595959",
6
- 45: "#8C8C8C",
7
- 25: "#BFBFBF",
8
- 15: "#D9D9D9",
9
- 6: "#F0F0F0"
10
- }, WHITE_COLORS = {
11
- 100: "#FFFFFF",
12
- 95: "#F2F2F2",
13
- 85: "#D9D9D9",
14
- 65: "#A6A6A6",
15
- 45: "#737373",
16
- 25: "#404040",
17
- 15: "#262626",
18
- 6: "#0F0F0F"
19
- }, blackColorPalettes = {};
1
+ export const colorList = [ "#3377FF", "#1FE7F9", "#53F3B3", "#FFCD50", "#ADB8D6", "#867AFF", "#FAA64D", "#FF8082", "#B46FF4" ];
20
2
 
21
- Object.entries(BLACK_COLORS).forEach((([key, value]) => {
22
- blackColorPalettes[`blackColors${key}`] = value;
23
- }));
3
+ export const barColorList = [ "#3377FF", "#1FE7F9", "#FFCD50", "#53F3B3", "#ADB8D6", "#867AFF", "#FAA64D", "#FF8082", "#B46FF4" ];
24
4
 
25
- const whiteColorPalettes = {};
26
-
27
- Object.entries(WHITE_COLORS).forEach((([key, value]) => {
28
- whiteColorPalettes[`whiteColors${key}`] = value;
29
- }));
5
+ export const nestColorList = [ [ "#3377FF", "#5587FD", "#76A4FF", "#A0C0FF", "#BFD4FF", "#E5EEFF" ], [ "#1FE7F9", "#71F1FF", "#A2F5FF", "#BCF8FF", "#D2FAFF", "#E5FDFF" ], [ "#53F3B3", "#6BFFC4", "#9FFFD9", "#C1FFE6", "#DCFFF1", "#EBFFF7" ], [ "#FFCD50", "#FFD971", "#FFE395", "#FFEBB2", "#FEF2D1", "#FFF8E8" ], [ "#ADB8D6", "#BEC8E4", "#CBD3ED", "#D9E0F5", "#E7ECFB", "#F2F5FF" ], [ "#867AFF", "#9A8DFF", "#ACA1FF", "#C4BCFF", "#DBD6FF", "#EDEBFF" ], [ "#FAA64D", "#FFB96F", "#FECB94", "#FFD8AD", "#FFE5C9", "#FFF4E9" ], [ "#FF8082", "#FF99A0", "#FFBBBF", "#FFD4D7", "#FFE8EA", "#FFF7F8" ], [ "#B46FF4", "#BF80FF", "#D1A4FD", "#E0C1FF", "#EDDAFF", "#F5ECFF" ] ];
30
6
 
31
7
  export const colorScheme = {
32
8
  default: {
33
- dataScheme: defaultColor,
34
- palette: Object.assign(Object.assign({
35
- bandColor: defaultColor[0],
9
+ dataScheme: colorList,
10
+ palette: {
11
+ bandColor: colorList[0],
36
12
  backgroundColor: "transparent",
13
+ primaryFontColor: "#17171A",
14
+ secondaryFontColor: "#5E5F66",
15
+ tertiaryFontColor: "#888888",
37
16
  axisDomainColor: "#DCDEE1",
38
- axisLabelFontColor: "#909199",
39
- axisGridColor: "#E1E2E5"
40
- }, blackColorPalettes), whiteColorPalettes)
17
+ axisLabelFontColor: "#888888",
18
+ axisGridColor: "#EFF0F2",
19
+ popupBackgroundColor: "#ffffff"
20
+ }
41
21
  }
42
22
  };
43
23
  //# sourceMappingURL=color-scheme.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/common/color-scheme.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAG;IAEnB,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;CACV,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,GAAG,EAAE,MAAM;IACX,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,CAAC,EAAE,SAAS;CACb,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,GAAG,EAAE,SAAS;IACd,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,CAAC,EAAE,SAAS;CACb,CAAC;AAEF,MAAM,kBAAkB,GAA2B,EAAE,CAAC;AACtD,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;IACpD,kBAAkB,CAAC,cAAc,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC;AAClD,CAAC,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAA2B,EAAE,CAAC;AACtD,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;IACpD,kBAAkB,CAAC,cAAc,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC;AAClD,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC5C,OAAO,EAAE;QACP,UAAU,EAAE,YAAY;QACxB,OAAO,EAAE,8BACP,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,EAG1B,eAAe,EAAE,aAAa,EAG9B,eAAe,EAAE,SAAS,EAE1B,kBAAkB,EAAE,SAAS,EAE7B,aAAa,EAAE,SAAS,IAErB,kBAAkB,GAClB,kBAAkB,CACY;KACpC;CACF,CAAC","file":"color-scheme.js","sourcesContent":["import type { BuiltinColorPalette, IThemeColorScheme } from '@visactor/vchart';\n\nconst defaultColor = [\n // 定义分类主题色\n '#3377FF',\n '#1FE7F9',\n '#53F3B3',\n '#FFCD50',\n '#ADB8D6',\n '#B46FF4',\n '#867AFF',\n '#FAA64D',\n '#F25E68'\n];\n\nconst BLACK_COLORS = {\n 100: '#000',\n 95: '#0D0D0D',\n 85: '#262626',\n 65: '#595959',\n 45: '#8C8C8C',\n 25: '#BFBFBF',\n 15: '#D9D9D9',\n 6: '#F0F0F0'\n};\n\nconst WHITE_COLORS = {\n 100: '#FFFFFF',\n 95: '#F2F2F2',\n 85: '#D9D9D9',\n 65: '#A6A6A6',\n 45: '#737373',\n 25: '#404040',\n 15: '#262626',\n 6: '#0F0F0F'\n};\n\nconst blackColorPalettes: Record<string, string> = {};\nObject.entries(BLACK_COLORS).forEach(([key, value]) => {\n blackColorPalettes[`blackColors${key}`] = value;\n});\n\nconst whiteColorPalettes: Record<string, string> = {};\nObject.entries(WHITE_COLORS).forEach(([key, value]) => {\n whiteColorPalettes[`whiteColors${key}`] = value;\n});\n\nexport const colorScheme: IThemeColorScheme = {\n default: {\n dataScheme: defaultColor,\n palette: {\n bandColor: defaultColor[0],\n\n /** 背景色 */\n backgroundColor: 'transparent',\n\n /** 轴线颜色 */\n axisDomainColor: '#DCDEE1',\n /** 轴标签字色 */\n axisLabelFontColor: '#909199',\n /** 轴网格线颜色 */\n axisGridColor: '#E1E2E5',\n\n ...blackColorPalettes,\n ...whiteColorPalettes\n } as unknown as BuiltinColorPalette\n }\n};\n"]}
1
+ {"version":3,"sources":["../src/common/color-scheme.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG;IAEvB,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAE1B,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IAClE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IAClE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IAClE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IAClE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IAClE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IAClE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IAClE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IAClE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;CACnE,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC5C,OAAO,EAAE;QACP,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE;YACP,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;YAEvB,eAAe,EAAE,aAAa;YAG9B,gBAAgB,EAAE,SAAS;YAE3B,kBAAkB,EAAE,SAAS;YAE7B,iBAAiB,EAAE,SAAS;YAG5B,eAAe,EAAE,SAAS;YAE1B,kBAAkB,EAAE,SAAS;YAE7B,aAAa,EAAE,SAAS;YAExB,oBAAoB,EAAE,SAAS;SACE;KACpC;CACF,CAAC","file":"color-scheme.js","sourcesContent":["import type { BuiltinColorPalette, IThemeColorScheme } from '@visactor/vchart';\n\nexport const colorList = [\n // 定义分类主题色\n '#3377FF',\n '#1FE7F9',\n '#53F3B3',\n '#FFCD50',\n '#ADB8D6',\n '#867AFF',\n '#FAA64D',\n '#FF8082',\n '#B46FF4'\n];\n\nexport const barColorList = [\n // 定义分类主题色\n '#3377FF',\n '#1FE7F9',\n '#FFCD50',\n '#53F3B3',\n '#ADB8D6',\n '#867AFF',\n '#FAA64D',\n '#FF8082',\n '#B46FF4'\n];\n\nexport const nestColorList = [\n ['#3377FF', '#5587FD', '#76A4FF', '#A0C0FF', '#BFD4FF', '#E5EEFF'],\n ['#1FE7F9', '#71F1FF', '#A2F5FF', '#BCF8FF', '#D2FAFF', '#E5FDFF'],\n ['#53F3B3', '#6BFFC4', '#9FFFD9', '#C1FFE6', '#DCFFF1', '#EBFFF7'],\n ['#FFCD50', '#FFD971', '#FFE395', '#FFEBB2', '#FEF2D1', '#FFF8E8'],\n ['#ADB8D6', '#BEC8E4', '#CBD3ED', '#D9E0F5', '#E7ECFB', '#F2F5FF'],\n ['#867AFF', '#9A8DFF', '#ACA1FF', '#C4BCFF', '#DBD6FF', '#EDEBFF'],\n ['#FAA64D', '#FFB96F', '#FECB94', '#FFD8AD', '#FFE5C9', '#FFF4E9'],\n ['#FF8082', '#FF99A0', '#FFBBBF', '#FFD4D7', '#FFE8EA', '#FFF7F8'],\n ['#B46FF4', '#BF80FF', '#D1A4FD', '#E0C1FF', '#EDDAFF', '#F5ECFF']\n];\n\nexport const colorScheme: IThemeColorScheme = {\n default: {\n dataScheme: colorList,\n palette: {\n bandColor: colorList[0],\n /** 背景色 */\n backgroundColor: 'transparent',\n\n /** 主要字色 */\n primaryFontColor: '#17171A',\n /** 次要字色 */\n secondaryFontColor: '#5E5F66',\n /** 第三字色 */\n tertiaryFontColor: '#888888',\n\n /** 轴线颜色 */\n axisDomainColor: '#DCDEE1',\n /** 轴标签字色 */\n axisLabelFontColor: '#888888',\n /** 轴网格线颜色 */\n axisGridColor: '#EFF0F2',\n /** 浮层背景区域颜色 */\n popupBackgroundColor: '#ffffff'\n } as unknown as BuiltinColorPalette\n }\n};\n"]}
@@ -1,2 +1,2 @@
1
1
  import type { IComponentTheme } from '@visactor/vchart';
2
- export declare const axis: Pick<IComponentTheme, 'axis' | 'axisAngle' | 'axisBand' | 'axisLinear' | 'axisRadius' | 'axisX' | 'axisY'>;
2
+ export declare const axis: IComponentTheme;