@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,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
- }