@visactor/vchart-extension 1.13.7-alpha.0 → 1.13.7

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 (43) hide show
  1. package/build/index.js +695 -0
  2. package/build/index.min.js +2 -2
  3. package/cjs/charts/ranking-list/constant.d.ts +2 -0
  4. package/cjs/charts/ranking-list/constant.js +75 -0
  5. package/cjs/charts/ranking-list/constant.js.map +1 -0
  6. package/cjs/charts/ranking-list/interface.d.ts +74 -0
  7. package/cjs/charts/ranking-list/interface.js +6 -0
  8. package/cjs/charts/ranking-list/interface.js.map +1 -0
  9. package/cjs/charts/ranking-list/ranking-list-transformer.d.ts +459 -0
  10. package/cjs/charts/ranking-list/ranking-list-transformer.js +382 -0
  11. package/cjs/charts/ranking-list/ranking-list-transformer.js.map +1 -0
  12. package/cjs/charts/ranking-list/ranking-list.d.ts +16 -0
  13. package/cjs/charts/ranking-list/ranking-list.js +34 -0
  14. package/cjs/charts/ranking-list/ranking-list.js.map +1 -0
  15. package/cjs/charts/ranking-list/utils.d.ts +7 -0
  16. package/cjs/charts/ranking-list/utils.js +51 -0
  17. package/cjs/charts/ranking-list/utils.js.map +1 -0
  18. package/cjs/components/bar-link/index.js +2 -1
  19. package/cjs/components/series-label/type.js +1 -2
  20. package/cjs/index.d.ts +1 -0
  21. package/cjs/index.js +3 -3
  22. package/cjs/index.js.map +1 -1
  23. package/esm/charts/ranking-list/constant.d.ts +2 -0
  24. package/esm/charts/ranking-list/constant.js +69 -0
  25. package/esm/charts/ranking-list/constant.js.map +1 -0
  26. package/esm/charts/ranking-list/interface.d.ts +74 -0
  27. package/esm/charts/ranking-list/interface.js +2 -0
  28. package/esm/charts/ranking-list/interface.js.map +1 -0
  29. package/esm/charts/ranking-list/ranking-list-transformer.d.ts +459 -0
  30. package/esm/charts/ranking-list/ranking-list-transformer.js +382 -0
  31. package/esm/charts/ranking-list/ranking-list-transformer.js.map +1 -0
  32. package/esm/charts/ranking-list/ranking-list.d.ts +16 -0
  33. package/esm/charts/ranking-list/ranking-list.js +27 -0
  34. package/esm/charts/ranking-list/ranking-list.js.map +1 -0
  35. package/esm/charts/ranking-list/utils.d.ts +7 -0
  36. package/esm/charts/ranking-list/utils.js +41 -0
  37. package/esm/charts/ranking-list/utils.js.map +1 -0
  38. package/esm/components/bar-link/index.js +2 -1
  39. package/esm/components/series-label/type.js +1 -2
  40. package/esm/index.d.ts +1 -0
  41. package/esm/index.js +2 -0
  42. package/esm/index.js.map +1 -1
  43. package/package.json +8 -8
@@ -0,0 +1,2 @@
1
+ import { IRankingListSpec } from './interface';
2
+ export declare const defaultSpec: Omit<IRankingListSpec, 'type' | 'data' | 'xField' | 'yField'>;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ }), exports.defaultSpec = void 0;
6
+
7
+ const cornerRadius = 5, animationDuration = 1e3, fontSize = 20, pageSize = 5, scrollSize = 1, primaryFontColor = "#21252c", shadowColor = "rgba(33,37,44,0.1)";
8
+
9
+ exports.defaultSpec = {
10
+ labelLayout: "top",
11
+ bar: {
12
+ style: {
13
+ cornerRadius: 5
14
+ }
15
+ },
16
+ barBackground: {
17
+ type: "rect",
18
+ style: {
19
+ fill: shadowColor,
20
+ cornerRadius: 5
21
+ }
22
+ },
23
+ rankingIcon: {
24
+ visible: !0,
25
+ style: {
26
+ fill: "#21252c",
27
+ size: 20
28
+ }
29
+ },
30
+ nameLabel: {
31
+ visible: !0,
32
+ style: {
33
+ fontSize: 20,
34
+ fontWeight: "normal",
35
+ fill: "#21252c",
36
+ textBaseline: "middle"
37
+ }
38
+ },
39
+ orderLabel: {
40
+ visible: !0,
41
+ style: {
42
+ fontSize: 20,
43
+ fontWeight: "normal",
44
+ fill: "#21252c",
45
+ textBaseline: "middle"
46
+ }
47
+ },
48
+ valueLabel: {
49
+ visible: !0,
50
+ style: {
51
+ fontSize: 20,
52
+ fontWeight: "normal",
53
+ fill: "#21252c",
54
+ textBaseline: "middle"
55
+ }
56
+ },
57
+ pageSize: 5,
58
+ scrollSize: 1,
59
+ animationAppear: {
60
+ enable: !0,
61
+ type: "grow",
62
+ duration: 1e3,
63
+ easing: "linear"
64
+ },
65
+ animationUpdate: {
66
+ enable: !0,
67
+ type: "grow",
68
+ duration: 1e3,
69
+ easing: "linear"
70
+ },
71
+ animationNormal: {
72
+ interval: 1e3
73
+ }
74
+ };
75
+ //# sourceMappingURL=constant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["charts/ranking-list/constant.ts"],"names":[],"mappings":";;;AAEA,MAAM,YAAY,GAAG,CAAC,CAAC;AACvB,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAC/B,MAAM,QAAQ,GAAG,EAAE,CAAC;AACpB,MAAM,QAAQ,GAAG,CAAC,CAAC;AACnB,MAAM,UAAU,GAAG,CAAC,CAAC;AAGrB,MAAM,gBAAgB,GAAG,SAAS,CAAC;AACnC,MAAM,WAAW,GAAG,oBAAoB,CAAC;AAE5B,QAAA,WAAW,GAAkE;IACxF,WAAW,EAAE,KAAK;IAClB,GAAG,EAAE;QACH,KAAK,EAAE;YACL,YAAY;SACb;KACF;IACD,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE;YACL,IAAI,EAAE,WAAW;YACjB,YAAY;SACb;KACF;IACD,WAAW,EAAE;QACX,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;SACf;KACF;IACD,SAAS,EAAE;QACT,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YAEL,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,gBAAgB;YACtB,YAAY,EAAE,QAAQ;SACvB;KACF;IACD,UAAU,EAAE;QACV,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YAEL,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,gBAAgB;YACtB,YAAY,EAAE,QAAQ;SACvB;KACF;IACD,UAAU,EAAE;QACV,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YAEL,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,gBAAgB;YACtB,YAAY,EAAE,QAAQ;SACvB;KACF;IACD,QAAQ;IACR,UAAU;IACV,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,iBAAiB;QAC3B,MAAM,EAAE,QAAQ;KACjB;IACD,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,iBAAiB;QAC3B,MAAM,EAAE,QAAQ;KACjB;IACD,eAAe,EAAE;QAGf,QAAQ,EAAE,iBAAiB;KAE5B;CACF,CAAC","file":"constant.js","sourcesContent":["import { IRankingListSpec } from './interface';\n\nconst cornerRadius = 5;\nconst animationDuration = 1000;\nconst fontSize = 20;\nconst pageSize = 5;\nconst scrollSize = 1;\n\n// from: packages/vchart/src/theme/builtin/light/color-scheme.ts\nconst primaryFontColor = '#21252c';\nconst shadowColor = 'rgba(33,37,44,0.1)';\n\nexport const defaultSpec: Omit<IRankingListSpec, 'type' | 'data' | 'xField' | 'yField'> = {\n labelLayout: 'top',\n bar: {\n style: {\n cornerRadius\n }\n },\n barBackground: {\n type: 'rect',\n style: {\n fill: shadowColor,\n cornerRadius\n }\n },\n rankingIcon: {\n visible: true,\n style: {\n fill: primaryFontColor,\n size: fontSize\n }\n },\n nameLabel: {\n visible: true,\n style: {\n // fontFamily: ''\n fontSize: fontSize,\n fontWeight: 'normal',\n fill: primaryFontColor,\n textBaseline: 'middle'\n }\n },\n orderLabel: {\n visible: true,\n style: {\n // fontFamily: ''\n fontSize: fontSize,\n fontWeight: 'normal',\n fill: primaryFontColor,\n textBaseline: 'middle'\n }\n },\n valueLabel: {\n visible: true,\n style: {\n // fontFamily: ''\n fontSize: fontSize,\n fontWeight: 'normal',\n fill: primaryFontColor,\n textBaseline: 'middle'\n }\n },\n pageSize,\n scrollSize,\n animationAppear: {\n enable: true,\n type: 'grow',\n duration: animationDuration,\n easing: 'linear'\n },\n animationUpdate: {\n enable: true,\n type: 'grow',\n duration: animationDuration,\n easing: 'linear'\n },\n animationNormal: {\n // enable: true,\n // type: 'scroll',\n interval: animationDuration\n // easing: 'linear'\n }\n};\n"]}
@@ -0,0 +1,74 @@
1
+ import { IMarkStateSpec, IMarkStateStyleSpec } from '@visactor/vchart';
2
+ import { StateValue } from '@visactor/vchart/src/compile/mark';
3
+ import { Datum } from '@visactor/vchart/src/typings/common';
4
+ import { ITextGraphicAttribute, ISymbolGraphicAttribute, IRectGraphicAttribute, EasingType } from '@visactor/vrender-core';
5
+ type IRankingListData = Datum[];
6
+ export interface IRankingListSpec {
7
+ type: 'rankingList';
8
+ data: IRankingListData;
9
+ xField: string;
10
+ yField: string;
11
+ width?: number;
12
+ height?: number;
13
+ labelLayout?: 'top' | 'bothEnd';
14
+ bar?: {
15
+ height?: number;
16
+ style?: IRectGraphicAttribute;
17
+ state?: Record<StateValue, IMarkStateSpec<IRectGraphicAttribute> | IMarkStateStyleSpec<IRectGraphicAttribute>>;
18
+ };
19
+ barBackground?: {
20
+ visible?: boolean;
21
+ type?: string;
22
+ style?: ISymbolGraphicAttribute | IRectGraphicAttribute;
23
+ state?: Record<StateValue, IMarkStateSpec<ISymbolGraphicAttribute | IRectGraphicAttribute> | IMarkStateStyleSpec<ISymbolGraphicAttribute | IRectGraphicAttribute>>;
24
+ };
25
+ rankingIcon?: {
26
+ visible?: boolean;
27
+ style?: ISymbolGraphicAttribute;
28
+ state?: Record<StateValue, IMarkStateSpec<ISymbolGraphicAttribute> | IMarkStateStyleSpec<ISymbolGraphicAttribute>>;
29
+ };
30
+ decorateHaloIcons?: [
31
+ {
32
+ visible?: boolean;
33
+ style?: ISymbolGraphicAttribute;
34
+ state?: Record<StateValue, IMarkStateSpec<ISymbolGraphicAttribute> | IMarkStateStyleSpec<ISymbolGraphicAttribute>>;
35
+ }
36
+ ];
37
+ orderLabel?: {
38
+ visible?: boolean;
39
+ style?: ITextGraphicAttribute;
40
+ formatMethod?: (text: string, datum: Datum) => string;
41
+ state?: Record<StateValue, IMarkStateSpec<ITextGraphicAttribute> | IMarkStateStyleSpec<ITextGraphicAttribute>>;
42
+ };
43
+ nameLabel?: {
44
+ visible?: boolean;
45
+ style?: ITextGraphicAttribute;
46
+ formatMethod?: (text: string, datum: Datum) => string;
47
+ state?: Record<StateValue, IMarkStateSpec<ITextGraphicAttribute> | IMarkStateStyleSpec<ITextGraphicAttribute>>;
48
+ };
49
+ valueLabel?: {
50
+ visible?: boolean;
51
+ style?: ITextGraphicAttribute;
52
+ formatMethod?: (text: string, datum: Datum) => string;
53
+ state?: Record<StateValue, IMarkStateSpec<ITextGraphicAttribute> | IMarkStateStyleSpec<ITextGraphicAttribute>>;
54
+ };
55
+ pageSize?: number;
56
+ scrollSize?: number;
57
+ animationAppear?: {
58
+ enable?: boolean;
59
+ type?: 'grow';
60
+ duration?: number;
61
+ easing?: EasingType;
62
+ customTransformSpec?: (spec: any) => void;
63
+ };
64
+ animationUpdate?: {
65
+ enable?: boolean;
66
+ type?: 'grow';
67
+ duration?: number;
68
+ easing?: EasingType;
69
+ };
70
+ animationNormal?: {
71
+ interval?: number;
72
+ };
73
+ }
74
+ export {};
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: !0
5
+ });
6
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["charts/ranking-list/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import { IMarkStateSpec, IMarkStateStyleSpec } from '@visactor/vchart';\nimport { StateValue } from '@visactor/vchart/src/compile/mark';\nimport { Datum } from '@visactor/vchart/src/typings/common';\nimport {\n ITextGraphicAttribute,\n ISymbolGraphicAttribute,\n IRectGraphicAttribute,\n EasingType\n} from '@visactor/vrender-core';\n\ntype IRankingListData = Datum[];\n\nexport interface IRankingListSpec {\n /**\n * 图表类型\n */\n type: 'rankingList';\n /**\n * 数据\n */\n data: IRankingListData;\n /**\n * x轴字段\n */\n xField: string;\n /**\n * y轴字段\n */\n yField: string;\n width?: number;\n height?: number;\n /**\n * 标签布局\n * @default 'top'\n */\n labelLayout?: 'top' | 'bothEnd';\n /**\n * 柱样式\n */\n bar?: {\n height?: number;\n style?: IRectGraphicAttribute;\n state?: Record<StateValue, IMarkStateSpec<IRectGraphicAttribute> | IMarkStateStyleSpec<IRectGraphicAttribute>>;\n };\n /**\n * 柱图背景\n */\n barBackground?: {\n visible?: boolean;\n type?: string;\n style?: ISymbolGraphicAttribute | IRectGraphicAttribute;\n state?: Record<\n StateValue,\n | IMarkStateSpec<ISymbolGraphicAttribute | IRectGraphicAttribute>\n | IMarkStateStyleSpec<ISymbolGraphicAttribute | IRectGraphicAttribute>\n >;\n };\n /**\n * 排名图标\n */\n rankingIcon?: {\n visible?: boolean;\n style?: ISymbolGraphicAttribute;\n state?: Record<StateValue, IMarkStateSpec<ISymbolGraphicAttribute> | IMarkStateStyleSpec<ISymbolGraphicAttribute>>;\n };\n /**\n * 装饰图元\n */\n decorateHaloIcons?: [\n {\n visible?: boolean;\n // type?: 'circle' | 'square' | 'emptyCircle' | 'diamond' | 'halo' | 'concentric' | 'custom';\n style?: ISymbolGraphicAttribute;\n state?: Record<\n StateValue,\n IMarkStateSpec<ISymbolGraphicAttribute> | IMarkStateStyleSpec<ISymbolGraphicAttribute>\n >;\n }\n ];\n /**\n * 排名序号\n */\n orderLabel?: {\n visible?: boolean;\n style?: ITextGraphicAttribute;\n formatMethod?: (text: string, datum: Datum) => string;\n state?: Record<StateValue, IMarkStateSpec<ITextGraphicAttribute> | IMarkStateStyleSpec<ITextGraphicAttribute>>;\n };\n /**\n * 名称标签(yField对应的标签)\n */\n nameLabel?: {\n visible?: boolean;\n style?: ITextGraphicAttribute;\n formatMethod?: (text: string, datum: Datum) => string;\n state?: Record<StateValue, IMarkStateSpec<ITextGraphicAttribute> | IMarkStateStyleSpec<ITextGraphicAttribute>>;\n };\n /**\n * 值标签(xField对应的标签)\n */\n valueLabel?: {\n visible?: boolean;\n style?: ITextGraphicAttribute;\n formatMethod?: (text: string, datum: Datum) => string;\n state?: Record<StateValue, IMarkStateSpec<ITextGraphicAttribute> | IMarkStateStyleSpec<ITextGraphicAttribute>>;\n };\n /**\n * 每页行数\n */\n pageSize?: number;\n /**\n * 滚动行数\n */\n scrollSize?: number;\n /**\n * 排行榜动画效果的定义和普通图表不甚相同\n * animationNormal动画代表由player控制其更新数据时执行的滚动效果的动画, 本质上是由普通图表的 update + enter + exit 共同构成的\n */\n /**\n * 出现动画\n */\n animationAppear?: {\n /**\n * 是否开启\n * @default true\n */\n enable?: boolean;\n /**\n * 动画类型\n * @default 'grow'\n * 'grow' 伸展\n */\n type?: 'grow';\n /**\n * 动画时长\n */\n duration?: number;\n /**\n * 动画缓动效果\n */\n easing?: EasingType;\n /**\n * @param spec 经过rankingList转化后的vchart原始spec\n * @description 获取vchart原始spec, 并根据业务自行添加转换逻辑\n */\n customTransformSpec?: (spec: any) => void;\n };\n\n /**\n * 更新动画\n */\n animationUpdate?: {\n /**\n * 是否开启\n * @default true\n */\n enable?: boolean;\n /**\n * 动画类型\n * @default 'grow'\n * 'grow' 伸展\n */\n type?: 'grow';\n /**\n * 动画时长\n */\n duration?: number;\n /**\n * 动画缓动效果\n */\n easing?: EasingType;\n };\n\n /**\n * 循环滚动动画\n */\n animationNormal?: {\n // /**\n // * 是否开启\n // * @default true\n // */\n // enable?: boolean;\n // /**\n // * 动画类型\n // * @default 'scroll'\n // * 'scroll' 伸展\n // */\n // type?: 'scroll';\n /**\n * 动画间隔\n */\n interval?: number;\n };\n}\n"]}
@@ -0,0 +1,459 @@
1
+ import { Datum } from '@visactor/vchart/src/typings';
2
+ import type { IRankingListSpec } from './interface';
3
+ import { CommonChartSpecTransformer } from '@visactor/vchart';
4
+ import { TextMeasure } from '@visactor/vutils';
5
+ export declare class RankingListChartSpecTransformer extends CommonChartSpecTransformer {
6
+ protected nameLabelTextMeasure: TextMeasure<any>;
7
+ protected valueLabelTextMeasure: TextMeasure<any>;
8
+ protected orderLabelTextMeasure: TextMeasure<any>;
9
+ protected originalData: Datum[];
10
+ protected originalSpec: IRankingListSpec;
11
+ protected dataSpecs: any[];
12
+ protected formatMap: {
13
+ [key: string]: (text: string, ctx: any) => string;
14
+ };
15
+ protected orderCount: number;
16
+ protected isSpecValid(spec: any): boolean;
17
+ transformSpec(spec: any): void;
18
+ normalizeSpec(spec: any): void;
19
+ upgradeTextMeasure(spec: any): void;
20
+ upgradeFormatMap(spec: any): void;
21
+ processData(spec: any): void;
22
+ transformBaseSpec(spec: any): void;
23
+ transformAnimationSpec(spec: any): void;
24
+ transformAxesSpec(spec: any): void;
25
+ generateBarBackground(spec: any): {
26
+ type: any;
27
+ dataId: string;
28
+ visible: boolean;
29
+ dataKey: string;
30
+ zIndex: number;
31
+ state: any;
32
+ style: any;
33
+ animation: boolean;
34
+ animationEnter: boolean | {
35
+ type: string;
36
+ options: {
37
+ direction: string;
38
+ orient: string;
39
+ excludeChannels: string[];
40
+ point: (datum: Datum, element: IElement) => {
41
+ y: any;
42
+ };
43
+ };
44
+ duration: number;
45
+ easing: import("@visactor/vrender-core").EasingType;
46
+ };
47
+ animationExit: boolean | {
48
+ type: string;
49
+ options: {
50
+ direction: string;
51
+ orient: string;
52
+ point: (datum: Datum, element: IElement) => {
53
+ y: number;
54
+ };
55
+ };
56
+ duration: number;
57
+ easing: import("@visactor/vrender-core").EasingType;
58
+ };
59
+ animationAppear: boolean | {
60
+ type: string;
61
+ oneByOne: boolean;
62
+ duration: number;
63
+ easing: import("@visactor/vrender-core").EasingType;
64
+ options: {};
65
+ channel?: undefined;
66
+ } | {
67
+ channel: {
68
+ x: {
69
+ from: number;
70
+ to: (datum: Datum, element: IElement) => any;
71
+ };
72
+ opacity?: undefined;
73
+ };
74
+ duration: number;
75
+ easing: import("@visactor/vrender-core").EasingType;
76
+ type?: undefined;
77
+ oneByOne?: undefined;
78
+ options?: undefined;
79
+ } | {
80
+ channel: {
81
+ opacity: {
82
+ from: number;
83
+ to: number;
84
+ };
85
+ x?: undefined;
86
+ };
87
+ duration: number;
88
+ easing: import("@visactor/vrender-core").EasingType;
89
+ type?: undefined;
90
+ oneByOne?: undefined;
91
+ options?: undefined;
92
+ };
93
+ animationUpdate: boolean | {
94
+ duration: number;
95
+ easing: import("@visactor/vrender-core").EasingType;
96
+ };
97
+ };
98
+ generateDecorateHaloIcons(spec: any): any;
99
+ generateRankingIcon(spec: any): {
100
+ type: string;
101
+ dataId: string;
102
+ visible: boolean;
103
+ dataKey: string;
104
+ state: any;
105
+ style: any;
106
+ animation: boolean;
107
+ animationEnter: boolean | {
108
+ type: string;
109
+ options: {
110
+ direction: string;
111
+ orient: string;
112
+ excludeChannels: string[];
113
+ point: (datum: Datum, element: IElement) => {
114
+ y: any;
115
+ };
116
+ };
117
+ duration: number;
118
+ easing: import("@visactor/vrender-core").EasingType;
119
+ };
120
+ animationExit: boolean | {
121
+ type: string;
122
+ options: {
123
+ direction: string;
124
+ orient: string;
125
+ point: (datum: Datum, element: IElement) => {
126
+ y: number;
127
+ };
128
+ };
129
+ duration: number;
130
+ easing: import("@visactor/vrender-core").EasingType;
131
+ };
132
+ animationAppear: boolean | {
133
+ type: string;
134
+ oneByOne: boolean;
135
+ duration: number;
136
+ easing: import("@visactor/vrender-core").EasingType;
137
+ options: {};
138
+ channel?: undefined;
139
+ } | {
140
+ channel: {
141
+ x: {
142
+ from: number;
143
+ to: (datum: Datum, element: IElement) => any;
144
+ };
145
+ opacity?: undefined;
146
+ };
147
+ duration: number;
148
+ easing: import("@visactor/vrender-core").EasingType;
149
+ type?: undefined;
150
+ oneByOne?: undefined;
151
+ options?: undefined;
152
+ } | {
153
+ channel: {
154
+ opacity: {
155
+ from: number;
156
+ to: number;
157
+ };
158
+ x?: undefined;
159
+ };
160
+ duration: number;
161
+ easing: import("@visactor/vrender-core").EasingType;
162
+ type?: undefined;
163
+ oneByOne?: undefined;
164
+ options?: undefined;
165
+ };
166
+ animationUpdate: boolean | {
167
+ duration: number;
168
+ easing: import("@visactor/vrender-core").EasingType;
169
+ };
170
+ };
171
+ generateNameLabel(spec: any): {
172
+ type: string;
173
+ dataId: string;
174
+ dataKey: string;
175
+ state: any;
176
+ style: any;
177
+ animation: boolean;
178
+ animationEnter: boolean | {
179
+ type: string;
180
+ options: {
181
+ direction: string;
182
+ orient: string;
183
+ excludeChannels: string[];
184
+ point: (datum: Datum, element: IElement) => {
185
+ y: any;
186
+ };
187
+ };
188
+ duration: number;
189
+ easing: import("@visactor/vrender-core").EasingType;
190
+ };
191
+ animationExit: boolean | {
192
+ type: string;
193
+ options: {
194
+ direction: string;
195
+ orient: string;
196
+ point: (datum: Datum, element: IElement) => {
197
+ y: number;
198
+ };
199
+ };
200
+ duration: number;
201
+ easing: import("@visactor/vrender-core").EasingType;
202
+ };
203
+ animationAppear: boolean | {
204
+ type: string;
205
+ oneByOne: boolean;
206
+ duration: number;
207
+ easing: import("@visactor/vrender-core").EasingType;
208
+ options: {};
209
+ channel?: undefined;
210
+ } | {
211
+ channel: {
212
+ x: {
213
+ from: number;
214
+ to: (datum: Datum, element: IElement) => any;
215
+ };
216
+ opacity?: undefined;
217
+ };
218
+ duration: number;
219
+ easing: import("@visactor/vrender-core").EasingType;
220
+ type?: undefined;
221
+ oneByOne?: undefined;
222
+ options?: undefined;
223
+ } | {
224
+ channel: {
225
+ opacity: {
226
+ from: number;
227
+ to: number;
228
+ };
229
+ x?: undefined;
230
+ };
231
+ duration: number;
232
+ easing: import("@visactor/vrender-core").EasingType;
233
+ type?: undefined;
234
+ oneByOne?: undefined;
235
+ options?: undefined;
236
+ };
237
+ animationUpdate: boolean | {
238
+ duration: number;
239
+ easing: import("@visactor/vrender-core").EasingType;
240
+ };
241
+ };
242
+ generateOrderLabel(spec: any): {
243
+ type: string;
244
+ dataId: string;
245
+ dataKey: string;
246
+ state: any;
247
+ style: any;
248
+ animation: boolean;
249
+ animationEnter: boolean | {
250
+ type: string;
251
+ options: {
252
+ direction: string;
253
+ orient: string;
254
+ excludeChannels: string[];
255
+ point: (datum: Datum, element: IElement) => {
256
+ y: any;
257
+ };
258
+ };
259
+ duration: number;
260
+ easing: import("@visactor/vrender-core").EasingType;
261
+ };
262
+ animationExit: boolean | {
263
+ type: string;
264
+ options: {
265
+ direction: string;
266
+ orient: string;
267
+ point: (datum: Datum, element: IElement) => {
268
+ y: number;
269
+ };
270
+ };
271
+ duration: number;
272
+ easing: import("@visactor/vrender-core").EasingType;
273
+ };
274
+ animationAppear: boolean | {
275
+ type: string;
276
+ oneByOne: boolean;
277
+ duration: number;
278
+ easing: import("@visactor/vrender-core").EasingType;
279
+ options: {};
280
+ channel?: undefined;
281
+ } | {
282
+ channel: {
283
+ x: {
284
+ from: number;
285
+ to: (datum: Datum, element: IElement) => any;
286
+ };
287
+ opacity?: undefined;
288
+ };
289
+ duration: number;
290
+ easing: import("@visactor/vrender-core").EasingType;
291
+ type?: undefined;
292
+ oneByOne?: undefined;
293
+ options?: undefined;
294
+ } | {
295
+ channel: {
296
+ opacity: {
297
+ from: number;
298
+ to: number;
299
+ };
300
+ x?: undefined;
301
+ };
302
+ duration: number;
303
+ easing: import("@visactor/vrender-core").EasingType;
304
+ type?: undefined;
305
+ oneByOne?: undefined;
306
+ options?: undefined;
307
+ };
308
+ animationUpdate: boolean | {
309
+ duration: number;
310
+ easing: import("@visactor/vrender-core").EasingType;
311
+ };
312
+ };
313
+ generateValueLabel(spec: any): {
314
+ type: string;
315
+ dataId: string;
316
+ visible: boolean;
317
+ dataKey: string;
318
+ state: any;
319
+ style: any;
320
+ animation: boolean;
321
+ animationEnter: boolean | {
322
+ type: string;
323
+ options: {
324
+ direction: string;
325
+ orient: string;
326
+ excludeChannels: string[];
327
+ point: (datum: Datum, element: IElement) => {
328
+ y: any;
329
+ };
330
+ };
331
+ duration: number;
332
+ easing: import("@visactor/vrender-core").EasingType;
333
+ };
334
+ animationExit: boolean | {
335
+ type: string;
336
+ options: {
337
+ direction: string;
338
+ orient: string;
339
+ point: (datum: Datum, element: IElement) => {
340
+ y: number;
341
+ };
342
+ };
343
+ duration: number;
344
+ easing: import("@visactor/vrender-core").EasingType;
345
+ };
346
+ animationAppear: boolean | {
347
+ type: string;
348
+ oneByOne: boolean;
349
+ duration: number;
350
+ easing: import("@visactor/vrender-core").EasingType;
351
+ options: {};
352
+ channel?: undefined;
353
+ } | {
354
+ channel: {
355
+ x: {
356
+ from: number;
357
+ to: (datum: Datum, element: IElement) => any;
358
+ };
359
+ opacity?: undefined;
360
+ };
361
+ duration: number;
362
+ easing: import("@visactor/vrender-core").EasingType;
363
+ type?: undefined;
364
+ oneByOne?: undefined;
365
+ options?: undefined;
366
+ } | {
367
+ channel: {
368
+ opacity: {
369
+ from: number;
370
+ to: number;
371
+ };
372
+ x?: undefined;
373
+ };
374
+ duration: number;
375
+ easing: import("@visactor/vrender-core").EasingType;
376
+ type?: undefined;
377
+ oneByOne?: undefined;
378
+ options?: undefined;
379
+ };
380
+ animationUpdate: boolean | {
381
+ duration: number;
382
+ easing: import("@visactor/vrender-core").EasingType;
383
+ };
384
+ };
385
+ transformPaddingSpec(spec: any): void;
386
+ paginateDataArr: (spec: IRankingListSpec) => {
387
+ orderCount: number;
388
+ result: {
389
+ [key: string]: Datum[];
390
+ };
391
+ };
392
+ processRankingData: (spec: IRankingListSpec) => any[];
393
+ getMaxDataLabelLens(spec: IRankingListSpec, field: string, textMeasure: TextMeasure<any>): number;
394
+ formatDatum(field: string, datum: Datum): any;
395
+ getLabelWidth(padding: number, width: number): number;
396
+ getAnimationExit(spec: IRankingListSpec): false | {
397
+ type: string;
398
+ options: {
399
+ direction: string;
400
+ orient: string;
401
+ point: (datum: Datum, element: IElement) => {
402
+ y: number;
403
+ };
404
+ };
405
+ duration: number;
406
+ easing: import("@visactor/vrender-core").EasingType;
407
+ };
408
+ getAnimationEnter(spec: IRankingListSpec): false | {
409
+ type: string;
410
+ options: {
411
+ direction: string;
412
+ orient: string;
413
+ excludeChannels: string[];
414
+ point: (datum: Datum, element: IElement) => {
415
+ y: any;
416
+ };
417
+ };
418
+ duration: number;
419
+ easing: import("@visactor/vrender-core").EasingType;
420
+ };
421
+ getAnimationAppear(spec: IRankingListSpec, markType: 'rect' | 'text' | 'symbol' | 'barBack'): false | {
422
+ type: string;
423
+ oneByOne: boolean;
424
+ duration: number;
425
+ easing: import("@visactor/vrender-core").EasingType;
426
+ options: {};
427
+ channel?: undefined;
428
+ } | {
429
+ channel: {
430
+ x: {
431
+ from: number;
432
+ to: (datum: Datum, element: IElement) => any;
433
+ };
434
+ opacity?: undefined;
435
+ };
436
+ duration: number;
437
+ easing: import("@visactor/vrender-core").EasingType;
438
+ type?: undefined;
439
+ oneByOne?: undefined;
440
+ options?: undefined;
441
+ } | {
442
+ channel: {
443
+ opacity: {
444
+ from: number;
445
+ to: number;
446
+ };
447
+ x?: undefined;
448
+ };
449
+ duration: number;
450
+ easing: import("@visactor/vrender-core").EasingType;
451
+ type?: undefined;
452
+ oneByOne?: undefined;
453
+ options?: undefined;
454
+ };
455
+ getAnimationUpdate(spec: IRankingListSpec): false | {
456
+ duration: number;
457
+ easing: import("@visactor/vrender-core").EasingType;
458
+ };
459
+ }