@visactor/vchart-extension 1.13.5-alpha.7 → 1.13.5-alpha.8

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 +674 -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 +74 -0
  5. package/cjs/charts/ranking-list/constant.js.map +1 -0
  6. package/cjs/charts/ranking-list/interface.d.ts +73 -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 +458 -0
  10. package/cjs/charts/ranking-list/ranking-list-transformer.js +376 -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 +70 -0
  25. package/esm/charts/ranking-list/constant.js.map +1 -0
  26. package/esm/charts/ranking-list/interface.d.ts +73 -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 +458 -0
  30. package/esm/charts/ranking-list/ranking-list-transformer.js +376 -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 +5 -4
package/cjs/index.js CHANGED
@@ -17,6 +17,6 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), __exportStar(require("./charts/ranking-bar/ranking-bar"), exports), __exportStar(require("./charts/conversion-funnel"), exports),
21
- __exportStar(require("./components/series-break"), exports), __exportStar(require("./components/bar-link"), exports),
22
- __exportStar(require("./components/series-label"), exports);
20
+ }), __exportStar(require("./charts/ranking-bar/ranking-bar"), exports), __exportStar(require("./charts/ranking-list/ranking-list"), exports),
21
+ __exportStar(require("./charts/conversion-funnel"), exports), __exportStar(require("./components/series-break"), exports),
22
+ __exportStar(require("./components/bar-link"), exports), __exportStar(require("./components/series-label"), exports);
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,6DAA2C;AAE3C,4DAA0C;AAC1C,wDAAsC;AACtC,4DAA0C","file":"index.js","sourcesContent":["export * from './charts/ranking-bar/ranking-bar';\nexport * from './charts/conversion-funnel';\n\nexport * from './components/series-break';\nexport * from './components/bar-link';\nexport * from './components/series-label';\n"]}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,qEAAmD;AACnD,6DAA2C;AAE3C,4DAA0C;AAC1C,wDAAsC;AACtC,4DAA0C","file":"index.js","sourcesContent":["export * from './charts/ranking-bar/ranking-bar';\nexport * from './charts/ranking-list/ranking-list';\nexport * from './charts/conversion-funnel';\n\nexport * from './components/series-break';\nexport * from './components/bar-link';\nexport * from './components/series-label';\n"]}
@@ -0,0 +1,2 @@
1
+ import { IRankingListSpec } from './interface';
2
+ export declare const defaultSpec: Omit<IRankingListSpec, 'type' | 'data' | 'xField' | 'yField'>;
@@ -0,0 +1,70 @@
1
+ export const defaultSpec = {
2
+ width: 400,
3
+ height: 225,
4
+ labelLayout: "top",
5
+ bar: {
6
+ height: 100,
7
+ style: {
8
+ cornerRadius: 5
9
+ }
10
+ },
11
+ barBackground: {
12
+ type: "rect",
13
+ style: {
14
+ fill: "rgba(255,255,255,0.1)",
15
+ cornerRadius: 5
16
+ }
17
+ },
18
+ rankingIcon: {
19
+ visible: !0,
20
+ style: {
21
+ fill: "rgba(253,253,253,0.5)",
22
+ size: 12
23
+ }
24
+ },
25
+ nameLabel: {
26
+ visible: !0,
27
+ style: {
28
+ fontSize: 20,
29
+ fontWeight: "normal",
30
+ fill: "rgba(255,255,255,0.7)",
31
+ textBaseline: "middle"
32
+ }
33
+ },
34
+ orderLabel: {
35
+ visible: !0,
36
+ style: {
37
+ fontSize: 20,
38
+ fontWeight: "normal",
39
+ fill: "rgba(255,255,255,0.7)",
40
+ textBaseline: "middle"
41
+ }
42
+ },
43
+ valueLabel: {
44
+ visible: !0,
45
+ style: {
46
+ fontSize: 14,
47
+ fontWeight: "normal",
48
+ fill: "rgba(255,255,255,1)",
49
+ textBaseline: "middle"
50
+ }
51
+ },
52
+ pageSize: 5,
53
+ scrollSize: 1,
54
+ animationAppear: {
55
+ enable: !0,
56
+ type: "grow",
57
+ duration: 1e3,
58
+ easing: "linear"
59
+ },
60
+ animationUpdate: {
61
+ enable: !0,
62
+ type: "grow",
63
+ duration: 1e3,
64
+ easing: "linear"
65
+ },
66
+ animationNormal: {
67
+ interval: 1e3
68
+ }
69
+ };
70
+ //# sourceMappingURL=constant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["charts/ranking-list/constant.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAkE;IACxF,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,WAAW,EAAE,KAAK;IAClB,GAAG,EAAE;QACH,MAAM,EAAE,GAAG;QACX,KAAK,EAAE;YACL,YAAY,EAAE,CAAC;SAChB;KACF;IACD,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE;YACL,IAAI,EAAE,uBAAuB;YAC7B,YAAY,EAAE,CAAC;SAChB;KACF;IACD,WAAW,EAAE;QACX,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,IAAI,EAAE,uBAAuB;YAC7B,IAAI,EAAE,EAAE;SACT;KACF;IACD,SAAS,EAAE;QACT,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YAEL,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uBAAuB;YAC7B,YAAY,EAAE,QAAQ;SACvB;KACF;IACD,UAAU,EAAE;QACV,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YAEL,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uBAAuB;YAC7B,YAAY,EAAE,QAAQ;SACvB;KACF;IACD,UAAU,EAAE;QACV,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YAEL,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qBAAqB;YAC3B,YAAY,EAAE,QAAQ;SACvB;KACF;IACD,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE,CAAC;IACb,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,QAAQ;KACjB;IACD,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,QAAQ;KACjB;IACD,eAAe,EAAE;QAGf,QAAQ,EAAE,IAAI;KAEf;CACF,CAAC","file":"constant.js","sourcesContent":["import { IRankingListSpec } from './interface';\n\nexport const defaultSpec: Omit<IRankingListSpec, 'type' | 'data' | 'xField' | 'yField'> = {\n width: 400,\n height: 225,\n labelLayout: 'top',\n bar: {\n height: 100,\n style: {\n cornerRadius: 5\n }\n },\n barBackground: {\n type: 'rect',\n style: {\n fill: 'rgba(255,255,255,0.1)',\n cornerRadius: 5\n }\n },\n rankingIcon: {\n visible: true,\n style: {\n fill: 'rgba(253,253,253,0.5)',\n size: 12\n }\n },\n nameLabel: {\n visible: true,\n style: {\n // fontFamily: ''\n fontSize: 20,\n fontWeight: 'normal',\n fill: 'rgba(255,255,255,0.7)',\n textBaseline: 'middle'\n }\n },\n orderLabel: {\n visible: true,\n style: {\n // fontFamily: ''\n fontSize: 20,\n fontWeight: 'normal',\n fill: 'rgba(255,255,255,0.7)',\n textBaseline: 'middle'\n }\n },\n valueLabel: {\n visible: true,\n style: {\n // fontFamily: ''\n fontSize: 14,\n fontWeight: 'normal',\n fill: 'rgba(255,255,255,1)',\n textBaseline: 'middle'\n }\n },\n pageSize: 5,\n scrollSize: 1,\n animationAppear: {\n enable: true,\n type: 'grow',\n duration: 1000,\n easing: 'linear'\n },\n animationUpdate: {\n enable: true,\n type: 'grow',\n duration: 1000,\n easing: 'linear'\n },\n animationNormal: {\n // enable: true,\n // type: 'scroll',\n interval: 1000\n // easing: 'linear'\n }\n};\n"]}
@@ -0,0 +1,73 @@
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
+ };
63
+ animationUpdate?: {
64
+ enable?: boolean;
65
+ type?: 'grow';
66
+ duration?: number;
67
+ easing?: EasingType;
68
+ };
69
+ animationNormal?: {
70
+ interval?: number;
71
+ };
72
+ }
73
+ export {};
@@ -0,0 +1,2 @@
1
+ export { };
2
+ //# 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\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,458 @@
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
+ transformSpec(spec: any): void;
17
+ normalizeSpec(spec: any): void;
18
+ upgradeTextMeasure(spec: any): void;
19
+ upgradeFormatMap(spec: any): void;
20
+ processData(spec: any): void;
21
+ transformBaseSpec(spec: any): void;
22
+ transformAnimationSpec(spec: any): void;
23
+ transformAxesSpec(spec: any): void;
24
+ generateBarBackground(spec: any): {
25
+ type: any;
26
+ dataId: string;
27
+ visible: boolean;
28
+ dataKey: string;
29
+ zIndex: number;
30
+ state: any;
31
+ style: any;
32
+ animation: boolean;
33
+ animationEnter: boolean | {
34
+ type: string;
35
+ options: {
36
+ direction: string;
37
+ orient: string;
38
+ excludeChannels: string[];
39
+ point: (datum: Datum, element: IElement) => {
40
+ y: any;
41
+ };
42
+ };
43
+ duration: number;
44
+ easing: import("@visactor/vrender-core").EasingType;
45
+ };
46
+ animationExit: boolean | {
47
+ type: string;
48
+ options: {
49
+ direction: string;
50
+ orient: string;
51
+ point: (datum: Datum, element: IElement) => {
52
+ y: number;
53
+ };
54
+ };
55
+ duration: number;
56
+ easing: import("@visactor/vrender-core").EasingType;
57
+ };
58
+ animationAppear: boolean | {
59
+ type: string;
60
+ oneByOne: boolean;
61
+ duration: number;
62
+ easing: import("@visactor/vrender-core").EasingType;
63
+ options: {};
64
+ channel?: undefined;
65
+ } | {
66
+ channel: {
67
+ x: {
68
+ from: number;
69
+ to: (datum: Datum, element: IElement) => any;
70
+ };
71
+ opacity?: undefined;
72
+ };
73
+ duration: number;
74
+ easing: import("@visactor/vrender-core").EasingType;
75
+ type?: undefined;
76
+ oneByOne?: undefined;
77
+ options?: undefined;
78
+ } | {
79
+ channel: {
80
+ opacity: {
81
+ from: number;
82
+ to: number;
83
+ };
84
+ x?: undefined;
85
+ };
86
+ duration: number;
87
+ easing: import("@visactor/vrender-core").EasingType;
88
+ type?: undefined;
89
+ oneByOne?: undefined;
90
+ options?: undefined;
91
+ };
92
+ animationUpdate: boolean | {
93
+ duration: number;
94
+ easing: import("@visactor/vrender-core").EasingType;
95
+ };
96
+ };
97
+ generateDecorateHaloIcons(spec: any): any;
98
+ generateRankingIcon(spec: any): {
99
+ type: string;
100
+ dataId: string;
101
+ visible: boolean;
102
+ dataKey: string;
103
+ state: any;
104
+ style: any;
105
+ animation: boolean;
106
+ animationEnter: boolean | {
107
+ type: string;
108
+ options: {
109
+ direction: string;
110
+ orient: string;
111
+ excludeChannels: string[];
112
+ point: (datum: Datum, element: IElement) => {
113
+ y: any;
114
+ };
115
+ };
116
+ duration: number;
117
+ easing: import("@visactor/vrender-core").EasingType;
118
+ };
119
+ animationExit: boolean | {
120
+ type: string;
121
+ options: {
122
+ direction: string;
123
+ orient: string;
124
+ point: (datum: Datum, element: IElement) => {
125
+ y: number;
126
+ };
127
+ };
128
+ duration: number;
129
+ easing: import("@visactor/vrender-core").EasingType;
130
+ };
131
+ animationAppear: boolean | {
132
+ type: string;
133
+ oneByOne: boolean;
134
+ duration: number;
135
+ easing: import("@visactor/vrender-core").EasingType;
136
+ options: {};
137
+ channel?: undefined;
138
+ } | {
139
+ channel: {
140
+ x: {
141
+ from: number;
142
+ to: (datum: Datum, element: IElement) => any;
143
+ };
144
+ opacity?: undefined;
145
+ };
146
+ duration: number;
147
+ easing: import("@visactor/vrender-core").EasingType;
148
+ type?: undefined;
149
+ oneByOne?: undefined;
150
+ options?: undefined;
151
+ } | {
152
+ channel: {
153
+ opacity: {
154
+ from: number;
155
+ to: number;
156
+ };
157
+ x?: undefined;
158
+ };
159
+ duration: number;
160
+ easing: import("@visactor/vrender-core").EasingType;
161
+ type?: undefined;
162
+ oneByOne?: undefined;
163
+ options?: undefined;
164
+ };
165
+ animationUpdate: boolean | {
166
+ duration: number;
167
+ easing: import("@visactor/vrender-core").EasingType;
168
+ };
169
+ };
170
+ generateNameLabel(spec: any): {
171
+ type: string;
172
+ dataId: string;
173
+ dataKey: string;
174
+ state: any;
175
+ style: any;
176
+ animation: boolean;
177
+ animationEnter: boolean | {
178
+ type: string;
179
+ options: {
180
+ direction: string;
181
+ orient: string;
182
+ excludeChannels: string[];
183
+ point: (datum: Datum, element: IElement) => {
184
+ y: any;
185
+ };
186
+ };
187
+ duration: number;
188
+ easing: import("@visactor/vrender-core").EasingType;
189
+ };
190
+ animationExit: boolean | {
191
+ type: string;
192
+ options: {
193
+ direction: string;
194
+ orient: string;
195
+ point: (datum: Datum, element: IElement) => {
196
+ y: number;
197
+ };
198
+ };
199
+ duration: number;
200
+ easing: import("@visactor/vrender-core").EasingType;
201
+ };
202
+ animationAppear: boolean | {
203
+ type: string;
204
+ oneByOne: boolean;
205
+ duration: number;
206
+ easing: import("@visactor/vrender-core").EasingType;
207
+ options: {};
208
+ channel?: undefined;
209
+ } | {
210
+ channel: {
211
+ x: {
212
+ from: number;
213
+ to: (datum: Datum, element: IElement) => any;
214
+ };
215
+ opacity?: undefined;
216
+ };
217
+ duration: number;
218
+ easing: import("@visactor/vrender-core").EasingType;
219
+ type?: undefined;
220
+ oneByOne?: undefined;
221
+ options?: undefined;
222
+ } | {
223
+ channel: {
224
+ opacity: {
225
+ from: number;
226
+ to: number;
227
+ };
228
+ x?: undefined;
229
+ };
230
+ duration: number;
231
+ easing: import("@visactor/vrender-core").EasingType;
232
+ type?: undefined;
233
+ oneByOne?: undefined;
234
+ options?: undefined;
235
+ };
236
+ animationUpdate: boolean | {
237
+ duration: number;
238
+ easing: import("@visactor/vrender-core").EasingType;
239
+ };
240
+ };
241
+ generateOrderLabel(spec: any): {
242
+ type: string;
243
+ dataId: string;
244
+ dataKey: string;
245
+ state: any;
246
+ style: any;
247
+ animation: boolean;
248
+ animationEnter: boolean | {
249
+ type: string;
250
+ options: {
251
+ direction: string;
252
+ orient: string;
253
+ excludeChannels: string[];
254
+ point: (datum: Datum, element: IElement) => {
255
+ y: any;
256
+ };
257
+ };
258
+ duration: number;
259
+ easing: import("@visactor/vrender-core").EasingType;
260
+ };
261
+ animationExit: boolean | {
262
+ type: string;
263
+ options: {
264
+ direction: string;
265
+ orient: string;
266
+ point: (datum: Datum, element: IElement) => {
267
+ y: number;
268
+ };
269
+ };
270
+ duration: number;
271
+ easing: import("@visactor/vrender-core").EasingType;
272
+ };
273
+ animationAppear: boolean | {
274
+ type: string;
275
+ oneByOne: boolean;
276
+ duration: number;
277
+ easing: import("@visactor/vrender-core").EasingType;
278
+ options: {};
279
+ channel?: undefined;
280
+ } | {
281
+ channel: {
282
+ x: {
283
+ from: number;
284
+ to: (datum: Datum, element: IElement) => any;
285
+ };
286
+ opacity?: undefined;
287
+ };
288
+ duration: number;
289
+ easing: import("@visactor/vrender-core").EasingType;
290
+ type?: undefined;
291
+ oneByOne?: undefined;
292
+ options?: undefined;
293
+ } | {
294
+ channel: {
295
+ opacity: {
296
+ from: number;
297
+ to: number;
298
+ };
299
+ x?: undefined;
300
+ };
301
+ duration: number;
302
+ easing: import("@visactor/vrender-core").EasingType;
303
+ type?: undefined;
304
+ oneByOne?: undefined;
305
+ options?: undefined;
306
+ };
307
+ animationUpdate: boolean | {
308
+ duration: number;
309
+ easing: import("@visactor/vrender-core").EasingType;
310
+ };
311
+ };
312
+ generateValueLabel(spec: any): {
313
+ type: string;
314
+ dataId: string;
315
+ visible: boolean;
316
+ dataKey: string;
317
+ state: any;
318
+ style: any;
319
+ animation: boolean;
320
+ animationEnter: boolean | {
321
+ type: string;
322
+ options: {
323
+ direction: string;
324
+ orient: string;
325
+ excludeChannels: string[];
326
+ point: (datum: Datum, element: IElement) => {
327
+ y: any;
328
+ };
329
+ };
330
+ duration: number;
331
+ easing: import("@visactor/vrender-core").EasingType;
332
+ };
333
+ animationExit: boolean | {
334
+ type: string;
335
+ options: {
336
+ direction: string;
337
+ orient: string;
338
+ point: (datum: Datum, element: IElement) => {
339
+ y: number;
340
+ };
341
+ };
342
+ duration: number;
343
+ easing: import("@visactor/vrender-core").EasingType;
344
+ };
345
+ animationAppear: boolean | {
346
+ type: string;
347
+ oneByOne: boolean;
348
+ duration: number;
349
+ easing: import("@visactor/vrender-core").EasingType;
350
+ options: {};
351
+ channel?: undefined;
352
+ } | {
353
+ channel: {
354
+ x: {
355
+ from: number;
356
+ to: (datum: Datum, element: IElement) => any;
357
+ };
358
+ opacity?: undefined;
359
+ };
360
+ duration: number;
361
+ easing: import("@visactor/vrender-core").EasingType;
362
+ type?: undefined;
363
+ oneByOne?: undefined;
364
+ options?: undefined;
365
+ } | {
366
+ channel: {
367
+ opacity: {
368
+ from: number;
369
+ to: number;
370
+ };
371
+ x?: undefined;
372
+ };
373
+ duration: number;
374
+ easing: import("@visactor/vrender-core").EasingType;
375
+ type?: undefined;
376
+ oneByOne?: undefined;
377
+ options?: undefined;
378
+ };
379
+ animationUpdate: boolean | {
380
+ duration: number;
381
+ easing: import("@visactor/vrender-core").EasingType;
382
+ };
383
+ };
384
+ transformPaddingSpec(spec: any): void;
385
+ paginateDataArr: (spec: IRankingListSpec) => {
386
+ orderCount: number;
387
+ result: {
388
+ [key: string]: Datum[];
389
+ };
390
+ };
391
+ processRankingData: (spec: IRankingListSpec) => any[];
392
+ getMaxDataLabelLens(spec: IRankingListSpec, field: string, textMeasure: TextMeasure<any>): number;
393
+ formatDatum(field: string, datum: Datum): any;
394
+ getLabelWidth(padding: number, width: number): number;
395
+ getAnimationExit(spec: IRankingListSpec): false | {
396
+ type: string;
397
+ options: {
398
+ direction: string;
399
+ orient: string;
400
+ point: (datum: Datum, element: IElement) => {
401
+ y: number;
402
+ };
403
+ };
404
+ duration: number;
405
+ easing: import("@visactor/vrender-core").EasingType;
406
+ };
407
+ getAnimationEnter(spec: IRankingListSpec): false | {
408
+ type: string;
409
+ options: {
410
+ direction: string;
411
+ orient: string;
412
+ excludeChannels: string[];
413
+ point: (datum: Datum, element: IElement) => {
414
+ y: any;
415
+ };
416
+ };
417
+ duration: number;
418
+ easing: import("@visactor/vrender-core").EasingType;
419
+ };
420
+ getAnimationAppear(spec: IRankingListSpec, markType: 'rect' | 'text' | 'symbol' | 'barBack'): false | {
421
+ type: string;
422
+ oneByOne: boolean;
423
+ duration: number;
424
+ easing: import("@visactor/vrender-core").EasingType;
425
+ options: {};
426
+ channel?: undefined;
427
+ } | {
428
+ channel: {
429
+ x: {
430
+ from: number;
431
+ to: (datum: Datum, element: IElement) => any;
432
+ };
433
+ opacity?: undefined;
434
+ };
435
+ duration: number;
436
+ easing: import("@visactor/vrender-core").EasingType;
437
+ type?: undefined;
438
+ oneByOne?: undefined;
439
+ options?: undefined;
440
+ } | {
441
+ channel: {
442
+ opacity: {
443
+ from: number;
444
+ to: number;
445
+ };
446
+ x?: undefined;
447
+ };
448
+ duration: number;
449
+ easing: import("@visactor/vrender-core").EasingType;
450
+ type?: undefined;
451
+ oneByOne?: undefined;
452
+ options?: undefined;
453
+ };
454
+ getAnimationUpdate(spec: IRankingListSpec): false | {
455
+ duration: number;
456
+ easing: import("@visactor/vrender-core").EasingType;
457
+ };
458
+ }