@visactor/vchart-extension 1.15.5-alpha.8 → 2.0.0-alpha.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 (55) hide show
  1. package/build/index.js +143 -814
  2. package/build/index.min.js +2 -2
  3. package/cjs/charts/conversion-funnel/conversion-funnel.js +3 -2
  4. package/cjs/charts/conversion-funnel/conversion-funnel.js.map +1 -1
  5. package/cjs/components/bar-link/index.js +1 -2
  6. package/cjs/components/series-break/series-break.js +2 -2
  7. package/cjs/components/series-break/series-break.js.map +1 -1
  8. package/cjs/components/series-break/util.js +6 -6
  9. package/cjs/components/series-break/util.js.map +1 -1
  10. package/cjs/components/series-label/type.js +2 -1
  11. package/cjs/index.d.ts +0 -1
  12. package/cjs/index.js +3 -3
  13. package/cjs/index.js.map +1 -1
  14. package/esm/charts/conversion-funnel/conversion-funnel.js +4 -3
  15. package/esm/charts/conversion-funnel/conversion-funnel.js.map +1 -1
  16. package/esm/components/bar-link/index.js +1 -2
  17. package/esm/components/series-break/series-break.js +2 -2
  18. package/esm/components/series-break/series-break.js.map +1 -1
  19. package/esm/components/series-break/util.js +6 -6
  20. package/esm/components/series-break/util.js.map +1 -1
  21. package/esm/components/series-label/type.js +2 -1
  22. package/esm/index.d.ts +0 -1
  23. package/esm/index.js +0 -2
  24. package/esm/index.js.map +1 -1
  25. package/package.json +10 -11
  26. package/cjs/charts/ranking-list/constant.d.ts +0 -2
  27. package/cjs/charts/ranking-list/constant.js +0 -74
  28. package/cjs/charts/ranking-list/constant.js.map +0 -1
  29. package/cjs/charts/ranking-list/interface.d.ts +0 -73
  30. package/cjs/charts/ranking-list/interface.js +0 -6
  31. package/cjs/charts/ranking-list/interface.js.map +0 -1
  32. package/cjs/charts/ranking-list/ranking-list-transformer.d.ts +0 -458
  33. package/cjs/charts/ranking-list/ranking-list-transformer.js +0 -376
  34. package/cjs/charts/ranking-list/ranking-list-transformer.js.map +0 -1
  35. package/cjs/charts/ranking-list/ranking-list.d.ts +0 -16
  36. package/cjs/charts/ranking-list/ranking-list.js +0 -34
  37. package/cjs/charts/ranking-list/ranking-list.js.map +0 -1
  38. package/cjs/charts/ranking-list/utils.d.ts +0 -7
  39. package/cjs/charts/ranking-list/utils.js +0 -51
  40. package/cjs/charts/ranking-list/utils.js.map +0 -1
  41. package/esm/charts/ranking-list/constant.d.ts +0 -2
  42. package/esm/charts/ranking-list/constant.js +0 -70
  43. package/esm/charts/ranking-list/constant.js.map +0 -1
  44. package/esm/charts/ranking-list/interface.d.ts +0 -73
  45. package/esm/charts/ranking-list/interface.js +0 -2
  46. package/esm/charts/ranking-list/interface.js.map +0 -1
  47. package/esm/charts/ranking-list/ranking-list-transformer.d.ts +0 -458
  48. package/esm/charts/ranking-list/ranking-list-transformer.js +0 -376
  49. package/esm/charts/ranking-list/ranking-list-transformer.js.map +0 -1
  50. package/esm/charts/ranking-list/ranking-list.d.ts +0 -16
  51. package/esm/charts/ranking-list/ranking-list.js +0 -27
  52. package/esm/charts/ranking-list/ranking-list.js.map +0 -1
  53. package/esm/charts/ranking-list/utils.d.ts +0 -7
  54. package/esm/charts/ranking-list/utils.js +0 -41
  55. 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,458 +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
- 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
- }