@devtable/dashboard 9.3.0 → 9.5.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.
@@ -0,0 +1,51 @@
1
+ import { IPieChartConf } from '../type';
2
+ export declare function getOption(conf: IPieChartConf, data: TVizData, width: number): {
3
+ tooltip: {
4
+ show: boolean;
5
+ };
6
+ series: {
7
+ type: string;
8
+ radius: string[];
9
+ itemStyle: {
10
+ color: ({ data }: {
11
+ data: {
12
+ name: string;
13
+ value: number;
14
+ color?: string | undefined;
15
+ };
16
+ }) => string;
17
+ };
18
+ label: {
19
+ position: string;
20
+ alignTo: string;
21
+ formatter: string;
22
+ minMargin: number;
23
+ edgeDistance: number;
24
+ lineHeight: number;
25
+ rich: {
26
+ percentage: {
27
+ color: string;
28
+ };
29
+ };
30
+ margin: number;
31
+ };
32
+ labelLine: {
33
+ length: number;
34
+ length2: number;
35
+ maxSurfaceAngle: number;
36
+ showAbove: boolean;
37
+ };
38
+ labelLayout: (params: any) => {
39
+ labelLinePoints: any;
40
+ };
41
+ data: {
42
+ name: string;
43
+ value: number;
44
+ color?: string | undefined;
45
+ }[];
46
+ top: number;
47
+ bottom: number;
48
+ left: number;
49
+ right: number;
50
+ };
51
+ };
@@ -0,0 +1,44 @@
1
+ import { IPieChartConf } from '../type';
2
+ declare type TDataItem = {
3
+ name: string;
4
+ value: number;
5
+ color?: string;
6
+ };
7
+ export declare function getSeries(conf: IPieChartConf, data: TVizData, width: number): {
8
+ type: string;
9
+ radius: string[];
10
+ itemStyle: {
11
+ color: ({ data }: {
12
+ data: TDataItem;
13
+ }) => string;
14
+ };
15
+ label: {
16
+ position: string;
17
+ alignTo: string;
18
+ formatter: string;
19
+ minMargin: number;
20
+ edgeDistance: number;
21
+ lineHeight: number;
22
+ rich: {
23
+ percentage: {
24
+ color: string;
25
+ };
26
+ };
27
+ margin: number;
28
+ };
29
+ labelLine: {
30
+ length: number;
31
+ length2: number;
32
+ maxSurfaceAngle: number;
33
+ showAbove: boolean;
34
+ };
35
+ labelLayout: (params: $TSFixMe) => {
36
+ labelLinePoints: any;
37
+ };
38
+ data: TDataItem[];
39
+ top: number;
40
+ bottom: number;
41
+ left: number;
42
+ right: number;
43
+ };
44
+ export {};
@@ -1,5 +1,6 @@
1
1
  export interface IPieChartConf {
2
2
  label_field: string;
3
3
  value_field: string;
4
+ color_field: string;
4
5
  }
5
6
  export declare const DEFAULT_CONFIG: IPieChartConf;
@@ -2,5 +2,6 @@ import { TopLevelFormatterParams } from 'echarts/types/dist/shared';
2
2
  import { IScatterChartConf } from '../type';
3
3
  export declare function getTooltip(conf: IScatterChartConf, labelFormatters: Record<string, (p: $TSFixMe) => string>): {
4
4
  confine: boolean;
5
+ trigger: "none" | "item" | "axis";
5
6
  formatter: (params: TopLevelFormatterParams) => string;
6
7
  };
@@ -35,6 +35,7 @@ export interface IScatterChartConf {
35
35
  };
36
36
  };
37
37
  tooltip: {
38
+ trigger: 'item' | 'axis' | 'none';
38
39
  metrics: IEchartsTooltipMetric[];
39
40
  };
40
41
  reference_lines: ICartesianReferenceLine[];
@@ -1 +1,64 @@
1
+ export declare const ChartTheme: {
2
+ grid: {
3
+ axis: string;
4
+ scope: string;
5
+ boundary: string;
6
+ reference: string;
7
+ };
8
+ graphics: {
9
+ compared: {
10
+ blueDark: string;
11
+ blue: string;
12
+ blueLight: string;
13
+ blue10: string;
14
+ redDark: string;
15
+ red: string;
16
+ redLight: string;
17
+ red10: string;
18
+ };
19
+ gradient: {
20
+ distributed: string;
21
+ protrude: string;
22
+ };
23
+ level: {
24
+ lv0: string;
25
+ lv1: string;
26
+ lv2: string;
27
+ lv3: string;
28
+ lv4: string;
29
+ lv5: string;
30
+ lv6: string;
31
+ };
32
+ depth: {
33
+ dp0: string;
34
+ dp1: string;
35
+ dp2: string;
36
+ dp3: string;
37
+ dp4: string;
38
+ dp5: string;
39
+ };
40
+ multiple: {
41
+ c1: string;
42
+ c2: string;
43
+ c3: string;
44
+ c4: string;
45
+ c5: string;
46
+ c6: string;
47
+ c7: string;
48
+ c8: string;
49
+ c9: string;
50
+ c10: string;
51
+ c11: string;
52
+ c12: string;
53
+ c13: string;
54
+ c14: string;
55
+ c15: string;
56
+ c16: string;
57
+ c17: string;
58
+ c18: string;
59
+ c19: string;
60
+ c20: string;
61
+ };
62
+ };
63
+ };
1
64
  export declare function registerThemes(): void;
@@ -0,0 +1,2 @@
1
+ import { ChartTheme } from '~/styles/register-themes';
2
+ export declare function getColorFeed(paletteKey: keyof typeof ChartTheme.graphics): Generator<string, string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "9.3.0",
3
+ "version": "9.5.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",