@easyv/config 1.2.16 → 1.2.18
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.
- package/lib/animation.js +22 -26
- package/lib/axes.js +6 -9
- package/lib/axisLine.js +2 -3
- package/lib/baseLine.js +47 -48
- package/lib/brush.js +14 -15
- package/lib/control.js +16 -17
- package/lib/dimension.js +2 -3
- package/lib/extent.js +2 -3
- package/lib/font.js +2 -3
- package/lib/gridLine.js +2 -3
- package/lib/imageGroup.js +16 -17
- package/lib/index.js +2 -2
- package/lib/interaction.js +4 -5
- package/lib/label.js +122 -128
- package/lib/legend.js +249 -226
- package/lib/mapping.js +2 -3
- package/lib/margin.js +2 -3
- package/lib/multiColor.js +10 -11
- package/lib/pie.js +183 -191
- package/lib/pieTooltip.js +71 -72
- package/lib/sc.js +4 -5
- package/lib/series.js +132 -121
- package/lib/shadow.js +2 -3
- package/lib/show.js +3 -5
- package/lib/textOverflow.js +2 -3
- package/lib/tickLine.js +2 -3
- package/lib/tooltip.js +98 -99
- package/lib/translate.js +3 -5
- package/lib/unit.js +24 -25
- package/package.json +31 -31
- package/pnpm-lock.yaml +5974 -0
- package/src/control.js +117 -117
- package/src/extent.js +42 -42
- package/src/index.js +106 -106
- package/src/interaction.js +122 -122
- package/src/legend.js +33 -0
- package/src/pieTooltip.js +331 -331
- package/src/series.js +16 -1
package/lib/legend.js
CHANGED
|
@@ -8,13 +8,40 @@ exports.legendOfRose = exports.legendOfPie = exports.legendOfDoublePie = exports
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
10
|
var _index = require("./index");
|
|
11
|
-
function ownKeys(
|
|
12
|
-
function _objectSpread(
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
var _require = require('.'),
|
|
14
14
|
translateConfig = _require.translate,
|
|
15
15
|
font = _require.font,
|
|
16
16
|
showConfig = _require.show,
|
|
17
17
|
showRule = _require.showRule;
|
|
18
|
+
var loopConfig = {
|
|
19
|
+
rule: [['show', '$eq', true]],
|
|
20
|
+
name: 'loop',
|
|
21
|
+
displayName: '滚动',
|
|
22
|
+
value: [{
|
|
23
|
+
type: 'boolean',
|
|
24
|
+
name: 'show',
|
|
25
|
+
displayName: '',
|
|
26
|
+
value: false
|
|
27
|
+
}, {
|
|
28
|
+
type: "number",
|
|
29
|
+
name: "height",
|
|
30
|
+
displayName: "限制高度",
|
|
31
|
+
value: 120,
|
|
32
|
+
config: {
|
|
33
|
+
suffix: 'px'
|
|
34
|
+
}
|
|
35
|
+
}, {
|
|
36
|
+
type: "number",
|
|
37
|
+
name: "interval",
|
|
38
|
+
displayName: "轮播间隔",
|
|
39
|
+
value: 3,
|
|
40
|
+
config: {
|
|
41
|
+
suffix: 's'
|
|
42
|
+
}
|
|
43
|
+
}]
|
|
44
|
+
};
|
|
18
45
|
var defaultFont = font({
|
|
19
46
|
fontFamily: 'Mircosoft Yahei',
|
|
20
47
|
fontSize: 12,
|
|
@@ -49,7 +76,7 @@ var defaultLegend = {
|
|
|
49
76
|
opacity: 30
|
|
50
77
|
}
|
|
51
78
|
};
|
|
52
|
-
var _default = function _default() {
|
|
79
|
+
var _default = exports["default"] = function _default() {
|
|
53
80
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultLegend,
|
|
54
81
|
_ref$show = _ref.show,
|
|
55
82
|
show = _ref$show === void 0 ? defaultLegend.show : _ref$show,
|
|
@@ -58,38 +85,38 @@ var _default = function _default() {
|
|
|
58
85
|
overflow = _ref.overflow,
|
|
59
86
|
_ref$font = _ref.font,
|
|
60
87
|
font = _ref$font === void 0 ? defaultLegend.font : _ref$font,
|
|
61
|
-
_ref$iconSize = _ref.iconSize
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
width = _ref$
|
|
65
|
-
_ref$
|
|
66
|
-
height = _ref$
|
|
88
|
+
_ref$iconSize = _ref.iconSize,
|
|
89
|
+
_ref$iconSize2 = _ref$iconSize === void 0 ? defaultLegend.iconSize : _ref$iconSize,
|
|
90
|
+
_ref$iconSize2$width = _ref$iconSize2.width,
|
|
91
|
+
width = _ref$iconSize2$width === void 0 ? defaultLegend.iconSize.width : _ref$iconSize2$width,
|
|
92
|
+
_ref$iconSize2$height = _ref$iconSize2.height,
|
|
93
|
+
height = _ref$iconSize2$height === void 0 ? defaultLegend.iconSize.height : _ref$iconSize2$height,
|
|
67
94
|
_ref$iconGap = _ref.iconGap,
|
|
68
95
|
iconGap = _ref$iconGap === void 0 ? defaultLegend.iconGap : _ref$iconGap,
|
|
69
|
-
_ref$layout = _ref.layout
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
gridTemplateColumns = _ref$
|
|
73
|
-
_ref$
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
gridRowGap = _ref$
|
|
77
|
-
_ref$
|
|
78
|
-
gridColumnGap = _ref$
|
|
79
|
-
_ref$
|
|
80
|
-
alignment = _ref$
|
|
81
|
-
_ref$
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
x = _ref$
|
|
85
|
-
_ref$
|
|
86
|
-
y = _ref$
|
|
96
|
+
_ref$layout = _ref.layout,
|
|
97
|
+
_ref$layout2 = _ref$layout === void 0 ? defaultLegend.layout : _ref$layout,
|
|
98
|
+
_ref$layout2$gridTemp = _ref$layout2.gridTemplateColumns,
|
|
99
|
+
gridTemplateColumns = _ref$layout2$gridTemp === void 0 ? defaultLegend.layout.gridTemplateColumns : _ref$layout2$gridTemp,
|
|
100
|
+
_ref$layout2$gridGap = _ref$layout2.gridGap,
|
|
101
|
+
_ref$layout2$gridGap2 = _ref$layout2$gridGap === void 0 ? defaultLegend.layout.gridGap : _ref$layout2$gridGap,
|
|
102
|
+
_ref$layout2$gridGap3 = _ref$layout2$gridGap2.gridRowGap,
|
|
103
|
+
gridRowGap = _ref$layout2$gridGap3 === void 0 ? defaultLegend.layout.gridGap.gridRowGap : _ref$layout2$gridGap3,
|
|
104
|
+
_ref$layout2$gridGap4 = _ref$layout2$gridGap2.gridColumnGap,
|
|
105
|
+
gridColumnGap = _ref$layout2$gridGap4 === void 0 ? defaultLegend.layout.gridGap.gridColumnGap : _ref$layout2$gridGap4,
|
|
106
|
+
_ref$layout2$alignmen = _ref$layout2.alignment,
|
|
107
|
+
alignment = _ref$layout2$alignmen === void 0 ? defaultLegend.layout.alignment : _ref$layout2$alignmen,
|
|
108
|
+
_ref$layout2$translat = _ref$layout2.translate,
|
|
109
|
+
_ref$layout2$translat2 = _ref$layout2$translat === void 0 ? defaultLegend.layout.translate : _ref$layout2$translat,
|
|
110
|
+
_ref$layout2$translat3 = _ref$layout2$translat2.x,
|
|
111
|
+
x = _ref$layout2$translat3 === void 0 ? defaultLegend.layout.translate.x : _ref$layout2$translat3,
|
|
112
|
+
_ref$layout2$translat4 = _ref$layout2$translat2.y,
|
|
113
|
+
y = _ref$layout2$translat4 === void 0 ? defaultLegend.layout.translate.y : _ref$layout2$translat4,
|
|
87
114
|
_ref$interactive = _ref.interactive,
|
|
88
115
|
interactive = _ref$interactive === void 0 ? defaultLegend.interactive : _ref$interactive,
|
|
89
|
-
_ref$unselect = _ref.unselect
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
opacity = _ref$
|
|
116
|
+
_ref$unselect = _ref.unselect,
|
|
117
|
+
_ref$unselect2 = _ref$unselect === void 0 ? defaultLegend.unselect : _ref$unselect,
|
|
118
|
+
_ref$unselect2$opacit = _ref$unselect2.opacity,
|
|
119
|
+
opacity = _ref$unselect2$opacit === void 0 ? defaultLegend.unselect.opacity : _ref$unselect2$opacit;
|
|
93
120
|
return {
|
|
94
121
|
name: 'legend',
|
|
95
122
|
displayName: '图例',
|
|
@@ -201,7 +228,6 @@ var _default = function _default() {
|
|
|
201
228
|
}
|
|
202
229
|
};
|
|
203
230
|
};
|
|
204
|
-
exports["default"] = _default;
|
|
205
231
|
var defaultLegendOfRose = {
|
|
206
232
|
show: true,
|
|
207
233
|
maxWidth: 40,
|
|
@@ -224,7 +250,7 @@ var defaultLegendOfRose = {
|
|
|
224
250
|
}
|
|
225
251
|
}
|
|
226
252
|
};
|
|
227
|
-
var legendOfRose = function legendOfRose() {
|
|
253
|
+
var legendOfRose = exports.legendOfRose = function legendOfRose() {
|
|
228
254
|
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultLegendOfRose,
|
|
229
255
|
_ref2$show = _ref2.show,
|
|
230
256
|
show = _ref2$show === void 0 ? defaultLegendOfRose.show : _ref2$show,
|
|
@@ -233,32 +259,32 @@ var legendOfRose = function legendOfRose() {
|
|
|
233
259
|
overflow = _ref2.overflow,
|
|
234
260
|
_ref2$font = _ref2.font,
|
|
235
261
|
font = _ref2$font === void 0 ? defaultLegendOfRose.font : _ref2$font,
|
|
236
|
-
_ref2$iconSize = _ref2.iconSize
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
width = _ref2$
|
|
240
|
-
_ref2$
|
|
241
|
-
height = _ref2$
|
|
262
|
+
_ref2$iconSize = _ref2.iconSize,
|
|
263
|
+
_ref2$iconSize2 = _ref2$iconSize === void 0 ? defaultLegendOfRose.iconSize : _ref2$iconSize,
|
|
264
|
+
_ref2$iconSize2$width = _ref2$iconSize2.width,
|
|
265
|
+
width = _ref2$iconSize2$width === void 0 ? defaultLegendOfRose.iconSize.width : _ref2$iconSize2$width,
|
|
266
|
+
_ref2$iconSize2$heigh = _ref2$iconSize2.height,
|
|
267
|
+
height = _ref2$iconSize2$heigh === void 0 ? defaultLegendOfRose.iconSize.height : _ref2$iconSize2$heigh,
|
|
242
268
|
_ref2$iconGap = _ref2.iconGap,
|
|
243
269
|
iconGap = _ref2$iconGap === void 0 ? defaultLegendOfRose.iconGap : _ref2$iconGap,
|
|
244
|
-
_ref2$layout = _ref2.layout
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
gridTemplateColumns = _ref2$
|
|
248
|
-
_ref2$
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
gridRowGap = _ref2$
|
|
252
|
-
_ref2$
|
|
253
|
-
gridColumnGap = _ref2$
|
|
254
|
-
_ref2$
|
|
255
|
-
alignment = _ref2$
|
|
256
|
-
_ref2$
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
x = _ref2$
|
|
260
|
-
_ref2$
|
|
261
|
-
y = _ref2$
|
|
270
|
+
_ref2$layout = _ref2.layout,
|
|
271
|
+
_ref2$layout2 = _ref2$layout === void 0 ? defaultLegendOfRose.layout : _ref2$layout,
|
|
272
|
+
_ref2$layout2$gridTem = _ref2$layout2.gridTemplateColumns,
|
|
273
|
+
gridTemplateColumns = _ref2$layout2$gridTem === void 0 ? defaultLegendOfRose.layout.gridTemplateColumns : _ref2$layout2$gridTem,
|
|
274
|
+
_ref2$layout2$gridGap = _ref2$layout2.gridGap,
|
|
275
|
+
_ref2$layout2$gridGap2 = _ref2$layout2$gridGap === void 0 ? defaultLegendOfRose.layout.gridGap : _ref2$layout2$gridGap,
|
|
276
|
+
_ref2$layout2$gridGap3 = _ref2$layout2$gridGap2.gridRowGap,
|
|
277
|
+
gridRowGap = _ref2$layout2$gridGap3 === void 0 ? defaultLegendOfRose.layout.gridGap.gridRowGap : _ref2$layout2$gridGap3,
|
|
278
|
+
_ref2$layout2$gridGap4 = _ref2$layout2$gridGap2.gridColumnGap,
|
|
279
|
+
gridColumnGap = _ref2$layout2$gridGap4 === void 0 ? defaultLegendOfRose.layout.gridGap.gridColumnGap : _ref2$layout2$gridGap4,
|
|
280
|
+
_ref2$layout2$alignme = _ref2$layout2.alignment,
|
|
281
|
+
alignment = _ref2$layout2$alignme === void 0 ? defaultLegendOfRose.layout.alignment : _ref2$layout2$alignme,
|
|
282
|
+
_ref2$layout2$transla = _ref2$layout2.translate,
|
|
283
|
+
_ref2$layout2$transla2 = _ref2$layout2$transla === void 0 ? defaultLegendOfRose.layout.translate : _ref2$layout2$transla,
|
|
284
|
+
_ref2$layout2$transla3 = _ref2$layout2$transla2.x,
|
|
285
|
+
x = _ref2$layout2$transla3 === void 0 ? defaultLegendOfRose.layout.translate.x : _ref2$layout2$transla3,
|
|
286
|
+
_ref2$layout2$transla4 = _ref2$layout2$transla2.y,
|
|
287
|
+
y = _ref2$layout2$transla4 === void 0 ? defaultLegendOfRose.layout.translate.y : _ref2$layout2$transla4;
|
|
262
288
|
return {
|
|
263
289
|
name: 'legend',
|
|
264
290
|
displayName: '图例',
|
|
@@ -346,7 +372,6 @@ var legendOfRose = function legendOfRose() {
|
|
|
346
372
|
}
|
|
347
373
|
};
|
|
348
374
|
};
|
|
349
|
-
exports.legendOfRose = legendOfRose;
|
|
350
375
|
var defaultLegendOfPie = {
|
|
351
376
|
show: true,
|
|
352
377
|
order: '',
|
|
@@ -409,105 +434,105 @@ var defaultLegendOfPie = {
|
|
|
409
434
|
}
|
|
410
435
|
}
|
|
411
436
|
};
|
|
412
|
-
var legendOfPie = function legendOfPie() {
|
|
437
|
+
var legendOfPie = exports.legendOfPie = function legendOfPie() {
|
|
413
438
|
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultLegendOfPie,
|
|
414
439
|
_ref3$show = _ref3.show,
|
|
415
440
|
show = _ref3$show === void 0 ? defaultLegendOfPie.show : _ref3$show,
|
|
416
441
|
_ref3$order = _ref3.order,
|
|
417
442
|
order = _ref3$order === void 0 ? defaultLegendOfPie.order : _ref3$order,
|
|
418
|
-
_ref3$iconSize = _ref3.iconSize
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
width = _ref3$
|
|
422
|
-
_ref3$
|
|
423
|
-
height = _ref3$
|
|
443
|
+
_ref3$iconSize = _ref3.iconSize,
|
|
444
|
+
_ref3$iconSize2 = _ref3$iconSize === void 0 ? defaultLegendOfPie.iconSize : _ref3$iconSize,
|
|
445
|
+
_ref3$iconSize2$width = _ref3$iconSize2.width,
|
|
446
|
+
width = _ref3$iconSize2$width === void 0 ? defaultLegendOfPie.iconSize.width : _ref3$iconSize2$width,
|
|
447
|
+
_ref3$iconSize2$heigh = _ref3$iconSize2.height,
|
|
448
|
+
height = _ref3$iconSize2$heigh === void 0 ? defaultLegendOfPie.iconSize.height : _ref3$iconSize2$heigh,
|
|
424
449
|
_ref3$iconGap = _ref3.iconGap,
|
|
425
450
|
iconGap = _ref3$iconGap === void 0 ? defaultLegendOfPie.iconGap : _ref3$iconGap,
|
|
426
|
-
_ref3$name = _ref3.name
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
showName = _ref3$
|
|
430
|
-
_ref3$
|
|
431
|
-
nameFont = _ref3$
|
|
432
|
-
_ref3$
|
|
433
|
-
maxWidth = _ref3$
|
|
434
|
-
overflow = _ref3$
|
|
435
|
-
_ref3$
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
nameX = _ref3$
|
|
439
|
-
_ref3$
|
|
440
|
-
nameY = _ref3$
|
|
441
|
-
_ref3$percent = _ref3.percent
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
showPercent = _ref3$
|
|
445
|
-
_ref3$
|
|
446
|
-
precision = _ref3$
|
|
447
|
-
_ref3$
|
|
448
|
-
percentSameColor = _ref3$
|
|
449
|
-
_ref3$
|
|
450
|
-
percentAlign = _ref3$
|
|
451
|
-
_ref3$
|
|
452
|
-
percentGap = _ref3$
|
|
453
|
-
_ref3$
|
|
454
|
-
percentFont = _ref3$
|
|
455
|
-
_ref3$
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
percentX = _ref3$
|
|
459
|
-
_ref3$
|
|
460
|
-
percentY = _ref3$
|
|
461
|
-
_ref3$value = _ref3.value
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
showValue = _ref3$
|
|
465
|
-
_ref3$
|
|
466
|
-
valueSameColor = _ref3$
|
|
467
|
-
_ref3$
|
|
468
|
-
valueAlign = _ref3$
|
|
469
|
-
_ref3$
|
|
470
|
-
valueGap = _ref3$
|
|
471
|
-
_ref3$
|
|
472
|
-
valueFont = _ref3$
|
|
473
|
-
_ref3$
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
valueX = _ref3$
|
|
477
|
-
_ref3$
|
|
478
|
-
valueY = _ref3$
|
|
479
|
-
_ref3$
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
showSuffix = _ref3$
|
|
483
|
-
_ref3$
|
|
484
|
-
text = _ref3$
|
|
485
|
-
_ref3$
|
|
486
|
-
fontSize = _ref3$
|
|
487
|
-
_ref3$
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
suffixTranslateX = _ref3$
|
|
491
|
-
_ref3$
|
|
492
|
-
suffixTranslateY = _ref3$
|
|
493
|
-
_ref3$layout = _ref3.layout
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
gridTemplateColumns = _ref3$
|
|
497
|
-
_ref3$
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
gridRowGap = _ref3$
|
|
501
|
-
_ref3$
|
|
502
|
-
gridColumnGap = _ref3$
|
|
503
|
-
_ref3$
|
|
504
|
-
alignment = _ref3$
|
|
505
|
-
_ref3$
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
x = _ref3$
|
|
509
|
-
_ref3$
|
|
510
|
-
y = _ref3$
|
|
451
|
+
_ref3$name = _ref3.name,
|
|
452
|
+
_ref3$name2 = _ref3$name === void 0 ? defaultLegendOfPie.name : _ref3$name,
|
|
453
|
+
_ref3$name2$show = _ref3$name2.show,
|
|
454
|
+
showName = _ref3$name2$show === void 0 ? defaultLegendOfPie.name.show : _ref3$name2$show,
|
|
455
|
+
_ref3$name2$font = _ref3$name2.font,
|
|
456
|
+
nameFont = _ref3$name2$font === void 0 ? defaultLegendOfPie.name.font : _ref3$name2$font,
|
|
457
|
+
_ref3$name2$maxWidth = _ref3$name2.maxWidth,
|
|
458
|
+
maxWidth = _ref3$name2$maxWidth === void 0 ? defaultLegendOfPie.name.maxWidth : _ref3$name2$maxWidth,
|
|
459
|
+
overflow = _ref3$name2.overflow,
|
|
460
|
+
_ref3$name2$translate = _ref3$name2.translate,
|
|
461
|
+
_ref3$name2$translate2 = _ref3$name2$translate === void 0 ? defaultLegendOfPie.name.translate : _ref3$name2$translate,
|
|
462
|
+
_ref3$name2$translate3 = _ref3$name2$translate2.x,
|
|
463
|
+
nameX = _ref3$name2$translate3 === void 0 ? defaultLegendOfPie.name.translate.x : _ref3$name2$translate3,
|
|
464
|
+
_ref3$name2$translate4 = _ref3$name2$translate2.y,
|
|
465
|
+
nameY = _ref3$name2$translate4 === void 0 ? defaultLegendOfPie.name.translate.y : _ref3$name2$translate4,
|
|
466
|
+
_ref3$percent = _ref3.percent,
|
|
467
|
+
_ref3$percent2 = _ref3$percent === void 0 ? defaultLegendOfPie.percent : _ref3$percent,
|
|
468
|
+
_ref3$percent2$show = _ref3$percent2.show,
|
|
469
|
+
showPercent = _ref3$percent2$show === void 0 ? defaultLegendOfPie.percent.show : _ref3$percent2$show,
|
|
470
|
+
_ref3$percent2$precis = _ref3$percent2.precision,
|
|
471
|
+
precision = _ref3$percent2$precis === void 0 ? defaultLegendOfPie.percent.precision : _ref3$percent2$precis,
|
|
472
|
+
_ref3$percent2$sameCo = _ref3$percent2.sameColor,
|
|
473
|
+
percentSameColor = _ref3$percent2$sameCo === void 0 ? defaultLegendOfPie.percent.sameColor : _ref3$percent2$sameCo,
|
|
474
|
+
_ref3$percent2$align = _ref3$percent2.align,
|
|
475
|
+
percentAlign = _ref3$percent2$align === void 0 ? defaultLegendOfPie.percent.align : _ref3$percent2$align,
|
|
476
|
+
_ref3$percent2$gap = _ref3$percent2.gap,
|
|
477
|
+
percentGap = _ref3$percent2$gap === void 0 ? defaultLegendOfPie.percent.gap : _ref3$percent2$gap,
|
|
478
|
+
_ref3$percent2$font = _ref3$percent2.font,
|
|
479
|
+
percentFont = _ref3$percent2$font === void 0 ? defaultLegendOfPie.percent.font : _ref3$percent2$font,
|
|
480
|
+
_ref3$percent2$transl = _ref3$percent2.translate,
|
|
481
|
+
_ref3$percent2$transl2 = _ref3$percent2$transl === void 0 ? defaultLegendOfPie.percent.translate : _ref3$percent2$transl,
|
|
482
|
+
_ref3$percent2$transl3 = _ref3$percent2$transl2.x,
|
|
483
|
+
percentX = _ref3$percent2$transl3 === void 0 ? defaultLegendOfPie.percent.translate.x : _ref3$percent2$transl3,
|
|
484
|
+
_ref3$percent2$transl4 = _ref3$percent2$transl2.y,
|
|
485
|
+
percentY = _ref3$percent2$transl4 === void 0 ? defaultLegendOfPie.percent.translate.y : _ref3$percent2$transl4,
|
|
486
|
+
_ref3$value = _ref3.value,
|
|
487
|
+
_ref3$value2 = _ref3$value === void 0 ? defaultLegendOfPie.value : _ref3$value,
|
|
488
|
+
_ref3$value2$show = _ref3$value2.show,
|
|
489
|
+
showValue = _ref3$value2$show === void 0 ? defaultLegendOfPie.value.show : _ref3$value2$show,
|
|
490
|
+
_ref3$value2$sameColo = _ref3$value2.sameColor,
|
|
491
|
+
valueSameColor = _ref3$value2$sameColo === void 0 ? defaultLegendOfPie.value.sameColor : _ref3$value2$sameColo,
|
|
492
|
+
_ref3$value2$align = _ref3$value2.align,
|
|
493
|
+
valueAlign = _ref3$value2$align === void 0 ? defaultLegendOfPie.value.align : _ref3$value2$align,
|
|
494
|
+
_ref3$value2$gap = _ref3$value2.gap,
|
|
495
|
+
valueGap = _ref3$value2$gap === void 0 ? defaultLegendOfPie.value.gap : _ref3$value2$gap,
|
|
496
|
+
_ref3$value2$font = _ref3$value2.font,
|
|
497
|
+
valueFont = _ref3$value2$font === void 0 ? defaultLegendOfPie.value.font : _ref3$value2$font,
|
|
498
|
+
_ref3$value2$translat = _ref3$value2.translate,
|
|
499
|
+
_ref3$value2$translat2 = _ref3$value2$translat === void 0 ? defaultLegendOfPie.value.translate : _ref3$value2$translat,
|
|
500
|
+
_ref3$value2$translat3 = _ref3$value2$translat2.x,
|
|
501
|
+
valueX = _ref3$value2$translat3 === void 0 ? defaultLegendOfPie.value.translate.x : _ref3$value2$translat3,
|
|
502
|
+
_ref3$value2$translat4 = _ref3$value2$translat2.y,
|
|
503
|
+
valueY = _ref3$value2$translat4 === void 0 ? defaultLegendOfPie.value.translate.y : _ref3$value2$translat4,
|
|
504
|
+
_ref3$value2$suffix = _ref3$value2.suffix,
|
|
505
|
+
_ref3$value2$suffix2 = _ref3$value2$suffix === void 0 ? defaultLegendOfPie.value.suffix : _ref3$value2$suffix,
|
|
506
|
+
_ref3$value2$suffix2$ = _ref3$value2$suffix2.show,
|
|
507
|
+
showSuffix = _ref3$value2$suffix2$ === void 0 ? defaultLegendOfPie.value.suffix.show : _ref3$value2$suffix2$,
|
|
508
|
+
_ref3$value2$suffix2$2 = _ref3$value2$suffix2.text,
|
|
509
|
+
text = _ref3$value2$suffix2$2 === void 0 ? defaultLegendOfPie.value.suffix.text : _ref3$value2$suffix2$2,
|
|
510
|
+
_ref3$value2$suffix2$3 = _ref3$value2$suffix2.fontSize,
|
|
511
|
+
fontSize = _ref3$value2$suffix2$3 === void 0 ? defaultLegendOfPie.value.suffix.fontSize : _ref3$value2$suffix2$3,
|
|
512
|
+
_ref3$value2$suffix2$4 = _ref3$value2$suffix2.translate,
|
|
513
|
+
_ref3$value2$suffix2$5 = _ref3$value2$suffix2$4 === void 0 ? defaultLegendOfPie.value.suffix.translate : _ref3$value2$suffix2$4,
|
|
514
|
+
_ref3$value2$suffix2$6 = _ref3$value2$suffix2$5.x,
|
|
515
|
+
suffixTranslateX = _ref3$value2$suffix2$6 === void 0 ? defaultLegendOfPie.value.suffix.translate.x : _ref3$value2$suffix2$6,
|
|
516
|
+
_ref3$value2$suffix2$7 = _ref3$value2$suffix2$5.y,
|
|
517
|
+
suffixTranslateY = _ref3$value2$suffix2$7 === void 0 ? defaultLegendOfPie.value.suffix.translate.y : _ref3$value2$suffix2$7,
|
|
518
|
+
_ref3$layout = _ref3.layout,
|
|
519
|
+
_ref3$layout2 = _ref3$layout === void 0 ? defaultLegendOfPie.layout : _ref3$layout,
|
|
520
|
+
_ref3$layout2$gridTem = _ref3$layout2.gridTemplateColumns,
|
|
521
|
+
gridTemplateColumns = _ref3$layout2$gridTem === void 0 ? defaultLegendOfPie.layout.gridTemplateColumns : _ref3$layout2$gridTem,
|
|
522
|
+
_ref3$layout2$gridGap = _ref3$layout2.gridGap,
|
|
523
|
+
_ref3$layout2$gridGap2 = _ref3$layout2$gridGap === void 0 ? defaultLegendOfPie.layout.gridGap : _ref3$layout2$gridGap,
|
|
524
|
+
_ref3$layout2$gridGap3 = _ref3$layout2$gridGap2.gridRowGap,
|
|
525
|
+
gridRowGap = _ref3$layout2$gridGap3 === void 0 ? defaultLegendOfPie.layout.gridGap.gridRowGap : _ref3$layout2$gridGap3,
|
|
526
|
+
_ref3$layout2$gridGap4 = _ref3$layout2$gridGap2.gridColumnGap,
|
|
527
|
+
gridColumnGap = _ref3$layout2$gridGap4 === void 0 ? defaultLegendOfPie.layout.gridGap.gridColumnGap : _ref3$layout2$gridGap4,
|
|
528
|
+
_ref3$layout2$alignme = _ref3$layout2.alignment,
|
|
529
|
+
alignment = _ref3$layout2$alignme === void 0 ? defaultLegendOfPie.layout.alignment : _ref3$layout2$alignme,
|
|
530
|
+
_ref3$layout2$transla = _ref3$layout2.translate,
|
|
531
|
+
_ref3$layout2$transla2 = _ref3$layout2$transla === void 0 ? defaultLegendOfPie.layout.translate : _ref3$layout2$transla,
|
|
532
|
+
_ref3$layout2$transla3 = _ref3$layout2$transla2.x,
|
|
533
|
+
x = _ref3$layout2$transla3 === void 0 ? defaultLegendOfPie.layout.translate.x : _ref3$layout2$transla3,
|
|
534
|
+
_ref3$layout2$transla4 = _ref3$layout2$transla2.y,
|
|
535
|
+
y = _ref3$layout2$transla4 === void 0 ? defaultLegendOfPie.layout.translate.y : _ref3$layout2$transla4;
|
|
511
536
|
return {
|
|
512
537
|
name: 'legend',
|
|
513
538
|
displayName: '图例',
|
|
@@ -728,13 +753,12 @@ var legendOfPie = function legendOfPie() {
|
|
|
728
753
|
options: ['left top', 'center top', 'right top', 'center left', '', 'center right', 'left bottom', 'center bottom', 'right bottom']
|
|
729
754
|
}
|
|
730
755
|
}, translateConfig(x, y)]
|
|
731
|
-
})],
|
|
756
|
+
}), loopConfig],
|
|
732
757
|
config: {
|
|
733
758
|
defaultOpen: true
|
|
734
759
|
}
|
|
735
760
|
};
|
|
736
761
|
};
|
|
737
|
-
exports.legendOfPie = legendOfPie;
|
|
738
762
|
var defaultLegendOfDoublePie = {
|
|
739
763
|
show: true,
|
|
740
764
|
key: 'legend',
|
|
@@ -784,7 +808,7 @@ var defaultLegendOfDoublePie = {
|
|
|
784
808
|
}
|
|
785
809
|
}
|
|
786
810
|
};
|
|
787
|
-
var legendOfDoublePie = function legendOfDoublePie() {
|
|
811
|
+
var legendOfDoublePie = exports.legendOfDoublePie = function legendOfDoublePie() {
|
|
788
812
|
var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultLegendOfDoublePie,
|
|
789
813
|
_ref4$show = _ref4.show,
|
|
790
814
|
show = _ref4$show === void 0 ? defaultLegendOfDoublePie.show : _ref4$show,
|
|
@@ -792,79 +816,79 @@ var legendOfDoublePie = function legendOfDoublePie() {
|
|
|
792
816
|
key = _ref4$key === void 0 ? defaultLegendOfDoublePie.key : _ref4$key,
|
|
793
817
|
_ref4$displayName = _ref4.displayName,
|
|
794
818
|
displayName = _ref4$displayName === void 0 ? defaultLegendOfDoublePie.displayName : _ref4$displayName,
|
|
795
|
-
_ref4$iconSize = _ref4.iconSize
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
width = _ref4$
|
|
799
|
-
_ref4$
|
|
800
|
-
height = _ref4$
|
|
819
|
+
_ref4$iconSize = _ref4.iconSize,
|
|
820
|
+
_ref4$iconSize2 = _ref4$iconSize === void 0 ? defaultLegendOfDoublePie.iconSize : _ref4$iconSize,
|
|
821
|
+
_ref4$iconSize2$width = _ref4$iconSize2.width,
|
|
822
|
+
width = _ref4$iconSize2$width === void 0 ? defaultLegendOfDoublePie.iconSize.width : _ref4$iconSize2$width,
|
|
823
|
+
_ref4$iconSize2$heigh = _ref4$iconSize2.height,
|
|
824
|
+
height = _ref4$iconSize2$heigh === void 0 ? defaultLegendOfDoublePie.iconSize.height : _ref4$iconSize2$heigh,
|
|
801
825
|
_ref4$iconGap = _ref4.iconGap,
|
|
802
826
|
iconGap = _ref4$iconGap === void 0 ? defaultLegendOfDoublePie.iconGap : _ref4$iconGap,
|
|
803
|
-
_ref4$name = _ref4.name
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
showName = _ref4$
|
|
807
|
-
_ref4$
|
|
808
|
-
nameFont = _ref4$
|
|
809
|
-
_ref4$
|
|
810
|
-
maxWidth = _ref4$
|
|
811
|
-
overflow = _ref4$
|
|
812
|
-
_ref4$percent = _ref4.percent
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
showPercent = _ref4$
|
|
816
|
-
_ref4$
|
|
817
|
-
precision = _ref4$
|
|
818
|
-
_ref4$
|
|
819
|
-
percentSameColor = _ref4$
|
|
820
|
-
_ref4$
|
|
821
|
-
percentGap = _ref4$
|
|
822
|
-
_ref4$
|
|
823
|
-
percentFont = _ref4$
|
|
824
|
-
_ref4$value = _ref4.value
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
showValue = _ref4$
|
|
828
|
-
_ref4$
|
|
829
|
-
valueSameColor = _ref4$
|
|
830
|
-
_ref4$
|
|
831
|
-
valueGap = _ref4$
|
|
832
|
-
_ref4$
|
|
833
|
-
valueFont = _ref4$
|
|
834
|
-
_ref4$
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
showSuffix = _ref4$
|
|
838
|
-
_ref4$
|
|
839
|
-
text = _ref4$
|
|
840
|
-
_ref4$
|
|
841
|
-
fontSize = _ref4$
|
|
842
|
-
_ref4$
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
suffixTranslateX = _ref4$
|
|
846
|
-
_ref4$
|
|
847
|
-
suffixTranslateY = _ref4$
|
|
848
|
-
_ref4$layout = _ref4.layout
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
gridTemplateColumns = _ref4$
|
|
852
|
-
_ref4$
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
gridRowGap = _ref4$
|
|
856
|
-
_ref4$
|
|
857
|
-
gridColumnGap = _ref4$
|
|
858
|
-
_ref4$
|
|
859
|
-
alignment = _ref4$
|
|
860
|
-
_ref4$
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
x = _ref4$
|
|
864
|
-
_ref4$
|
|
865
|
-
y = _ref4$
|
|
866
|
-
_ref4$
|
|
867
|
-
extraInput = _ref4$
|
|
827
|
+
_ref4$name = _ref4.name,
|
|
828
|
+
_ref4$name2 = _ref4$name === void 0 ? defaultLegendOfDoublePie.name : _ref4$name,
|
|
829
|
+
_ref4$name2$show = _ref4$name2.show,
|
|
830
|
+
showName = _ref4$name2$show === void 0 ? defaultLegendOfDoublePie.name.show : _ref4$name2$show,
|
|
831
|
+
_ref4$name2$font = _ref4$name2.font,
|
|
832
|
+
nameFont = _ref4$name2$font === void 0 ? defaultLegendOfDoublePie.name.font : _ref4$name2$font,
|
|
833
|
+
_ref4$name2$maxWidth = _ref4$name2.maxWidth,
|
|
834
|
+
maxWidth = _ref4$name2$maxWidth === void 0 ? defaultLegendOfDoublePie.name.maxWidth : _ref4$name2$maxWidth,
|
|
835
|
+
overflow = _ref4$name2.overflow,
|
|
836
|
+
_ref4$percent = _ref4.percent,
|
|
837
|
+
_ref4$percent2 = _ref4$percent === void 0 ? defaultLegendOfDoublePie.percent : _ref4$percent,
|
|
838
|
+
_ref4$percent2$show = _ref4$percent2.show,
|
|
839
|
+
showPercent = _ref4$percent2$show === void 0 ? defaultLegendOfDoublePie.percent.show : _ref4$percent2$show,
|
|
840
|
+
_ref4$percent2$precis = _ref4$percent2.precision,
|
|
841
|
+
precision = _ref4$percent2$precis === void 0 ? defaultLegendOfDoublePie.percent.precision : _ref4$percent2$precis,
|
|
842
|
+
_ref4$percent2$sameCo = _ref4$percent2.sameColor,
|
|
843
|
+
percentSameColor = _ref4$percent2$sameCo === void 0 ? defaultLegendOfDoublePie.percent.sameColor : _ref4$percent2$sameCo,
|
|
844
|
+
_ref4$percent2$gap = _ref4$percent2.gap,
|
|
845
|
+
percentGap = _ref4$percent2$gap === void 0 ? defaultLegendOfDoublePie.percent.gap : _ref4$percent2$gap,
|
|
846
|
+
_ref4$percent2$font = _ref4$percent2.font,
|
|
847
|
+
percentFont = _ref4$percent2$font === void 0 ? defaultLegendOfDoublePie.percent.font : _ref4$percent2$font,
|
|
848
|
+
_ref4$value = _ref4.value,
|
|
849
|
+
_ref4$value2 = _ref4$value === void 0 ? defaultLegendOfDoublePie.value : _ref4$value,
|
|
850
|
+
_ref4$value2$show = _ref4$value2.show,
|
|
851
|
+
showValue = _ref4$value2$show === void 0 ? defaultLegendOfDoublePie.value.show : _ref4$value2$show,
|
|
852
|
+
_ref4$value2$sameColo = _ref4$value2.sameColor,
|
|
853
|
+
valueSameColor = _ref4$value2$sameColo === void 0 ? defaultLegendOfDoublePie.value.sameColor : _ref4$value2$sameColo,
|
|
854
|
+
_ref4$value2$gap = _ref4$value2.gap,
|
|
855
|
+
valueGap = _ref4$value2$gap === void 0 ? defaultLegendOfDoublePie.value.gap : _ref4$value2$gap,
|
|
856
|
+
_ref4$value2$font = _ref4$value2.font,
|
|
857
|
+
valueFont = _ref4$value2$font === void 0 ? defaultLegendOfDoublePie.value.font : _ref4$value2$font,
|
|
858
|
+
_ref4$value2$suffix = _ref4$value2.suffix,
|
|
859
|
+
_ref4$value2$suffix2 = _ref4$value2$suffix === void 0 ? defaultLegendOfDoublePie.value.suffix : _ref4$value2$suffix,
|
|
860
|
+
_ref4$value2$suffix2$ = _ref4$value2$suffix2.show,
|
|
861
|
+
showSuffix = _ref4$value2$suffix2$ === void 0 ? defaultLegendOfDoublePie.value.suffix.show : _ref4$value2$suffix2$,
|
|
862
|
+
_ref4$value2$suffix2$2 = _ref4$value2$suffix2.text,
|
|
863
|
+
text = _ref4$value2$suffix2$2 === void 0 ? defaultLegendOfDoublePie.value.suffix.text : _ref4$value2$suffix2$2,
|
|
864
|
+
_ref4$value2$suffix2$3 = _ref4$value2$suffix2.fontSize,
|
|
865
|
+
fontSize = _ref4$value2$suffix2$3 === void 0 ? defaultLegendOfDoublePie.value.suffix.fontSize : _ref4$value2$suffix2$3,
|
|
866
|
+
_ref4$value2$suffix2$4 = _ref4$value2$suffix2.translate,
|
|
867
|
+
_ref4$value2$suffix2$5 = _ref4$value2$suffix2$4 === void 0 ? defaultLegendOfDoublePie.value.suffix.translate : _ref4$value2$suffix2$4,
|
|
868
|
+
_ref4$value2$suffix2$6 = _ref4$value2$suffix2$5.x,
|
|
869
|
+
suffixTranslateX = _ref4$value2$suffix2$6 === void 0 ? defaultLegendOfDoublePie.value.suffix.translate.x : _ref4$value2$suffix2$6,
|
|
870
|
+
_ref4$value2$suffix2$7 = _ref4$value2$suffix2$5.y,
|
|
871
|
+
suffixTranslateY = _ref4$value2$suffix2$7 === void 0 ? defaultLegendOfDoublePie.value.suffix.translate.y : _ref4$value2$suffix2$7,
|
|
872
|
+
_ref4$layout = _ref4.layout,
|
|
873
|
+
_ref4$layout2 = _ref4$layout === void 0 ? defaultLegendOfDoublePie.layout : _ref4$layout,
|
|
874
|
+
_ref4$layout2$gridTem = _ref4$layout2.gridTemplateColumns,
|
|
875
|
+
gridTemplateColumns = _ref4$layout2$gridTem === void 0 ? defaultLegendOfDoublePie.layout.gridTemplateColumns : _ref4$layout2$gridTem,
|
|
876
|
+
_ref4$layout2$gridGap = _ref4$layout2.gridGap,
|
|
877
|
+
_ref4$layout2$gridGap2 = _ref4$layout2$gridGap === void 0 ? defaultLegendOfDoublePie.layout.gridGap : _ref4$layout2$gridGap,
|
|
878
|
+
_ref4$layout2$gridGap3 = _ref4$layout2$gridGap2.gridRowGap,
|
|
879
|
+
gridRowGap = _ref4$layout2$gridGap3 === void 0 ? defaultLegendOfDoublePie.layout.gridGap.gridRowGap : _ref4$layout2$gridGap3,
|
|
880
|
+
_ref4$layout2$gridGap4 = _ref4$layout2$gridGap2.gridColumnGap,
|
|
881
|
+
gridColumnGap = _ref4$layout2$gridGap4 === void 0 ? defaultLegendOfDoublePie.layout.gridGap.gridColumnGap : _ref4$layout2$gridGap4,
|
|
882
|
+
_ref4$layout2$alignme = _ref4$layout2.alignment,
|
|
883
|
+
alignment = _ref4$layout2$alignme === void 0 ? defaultLegendOfDoublePie.layout.alignment : _ref4$layout2$alignme,
|
|
884
|
+
_ref4$layout2$transla = _ref4$layout2.translate,
|
|
885
|
+
_ref4$layout2$transla2 = _ref4$layout2$transla === void 0 ? defaultLegendOfDoublePie.layout.translate : _ref4$layout2$transla,
|
|
886
|
+
_ref4$layout2$transla3 = _ref4$layout2$transla2.x,
|
|
887
|
+
x = _ref4$layout2$transla3 === void 0 ? defaultLegendOfDoublePie.layout.translate.x : _ref4$layout2$transla3,
|
|
888
|
+
_ref4$layout2$transla4 = _ref4$layout2$transla2.y,
|
|
889
|
+
y = _ref4$layout2$transla4 === void 0 ? defaultLegendOfDoublePie.layout.translate.y : _ref4$layout2$transla4,
|
|
890
|
+
_ref4$layout2$extraIn = _ref4$layout2.extraInput,
|
|
891
|
+
extraInput = _ref4$layout2$extraIn === void 0 ? [] : _ref4$layout2$extraIn;
|
|
868
892
|
return {
|
|
869
893
|
name: key,
|
|
870
894
|
displayName: displayName,
|
|
@@ -1041,5 +1065,4 @@ var legendOfDoublePie = function legendOfDoublePie() {
|
|
|
1041
1065
|
defaultOpen: true
|
|
1042
1066
|
}
|
|
1043
1067
|
};
|
|
1044
|
-
};
|
|
1045
|
-
exports.legendOfDoublePie = legendOfDoublePie;
|
|
1068
|
+
};
|