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