@easyv/config 1.2.21 → 1.2.23
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 +26 -22
- package/lib/axes.js +9 -6
- package/lib/axisLine.js +3 -2
- package/lib/baseLine.js +48 -47
- package/lib/brush.js +15 -14
- package/lib/control.js +17 -16
- package/lib/dimension.js +3 -2
- package/lib/extent.js +3 -2
- package/lib/font.js +3 -2
- package/lib/gridLine.js +3 -2
- package/lib/highlight.js +107 -106
- package/lib/imageGroup.js +17 -16
- package/lib/index.js +2 -2
- package/lib/interaction.js +3 -2
- package/lib/label.js +128 -122
- package/lib/legend.js +292 -221
- package/lib/mapping.js +3 -2
- package/lib/margin.js +3 -2
- package/lib/multiColor.js +11 -10
- package/lib/pie.js +191 -183
- package/lib/pieTooltip.js +72 -71
- package/lib/sc.js +5 -4
- package/lib/series.js +120 -115
- package/lib/shadow.js +3 -2
- package/lib/show.js +5 -3
- package/lib/textOverflow.js +3 -2
- package/lib/tickLine.js +3 -2
- package/lib/tooltip.js +101 -100
- package/lib/translate.js +5 -3
- package/lib/unit.js +25 -24
- package/package.json +1 -1
- package/src/legend.js +73 -0
package/lib/mapping.js
CHANGED
|
@@ -8,7 +8,7 @@ var defaultMapping = {
|
|
|
8
8
|
fieldName: '',
|
|
9
9
|
displayName: ''
|
|
10
10
|
};
|
|
11
|
-
var _default =
|
|
11
|
+
var _default = function _default() {
|
|
12
12
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultMapping,
|
|
13
13
|
_ref$fieldName = _ref.fieldName,
|
|
14
14
|
fieldName = _ref$fieldName === void 0 ? '' : _ref$fieldName,
|
|
@@ -36,4 +36,5 @@ var _default = exports["default"] = function _default() {
|
|
|
36
36
|
}],
|
|
37
37
|
type: 'group'
|
|
38
38
|
};
|
|
39
|
-
};
|
|
39
|
+
};
|
|
40
|
+
exports["default"] = _default;
|
package/lib/margin.js
CHANGED
|
@@ -10,7 +10,7 @@ var defaultMargin = {
|
|
|
10
10
|
marginBottom: 0,
|
|
11
11
|
marginLeft: 0
|
|
12
12
|
};
|
|
13
|
-
var _default =
|
|
13
|
+
var _default = function _default() {
|
|
14
14
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultMargin,
|
|
15
15
|
_ref$marginTop = _ref.marginTop,
|
|
16
16
|
marginTop = _ref$marginTop === void 0 ? defaultMargin.marginTop : _ref$marginTop,
|
|
@@ -62,4 +62,5 @@ var _default = exports["default"] = function _default() {
|
|
|
62
62
|
}
|
|
63
63
|
}]
|
|
64
64
|
};
|
|
65
|
-
};
|
|
65
|
+
};
|
|
66
|
+
exports["default"] = _default;
|
package/lib/multiColor.js
CHANGED
|
@@ -22,20 +22,20 @@ var defaultMultiColor = {
|
|
|
22
22
|
opacity: 1
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
var _default =
|
|
25
|
+
var _default = function _default() {
|
|
26
26
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultMultiColor,
|
|
27
27
|
_ref$type = _ref.type,
|
|
28
28
|
type = _ref$type === void 0 ? defaultMultiColor.type : _ref$type,
|
|
29
29
|
_ref$pure = _ref.pure,
|
|
30
30
|
pure = _ref$pure === void 0 ? defaultMultiColor.pure : _ref$pure,
|
|
31
|
-
_ref$linear = _ref.linear
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
stops = _ref$
|
|
35
|
-
_ref$
|
|
36
|
-
angle = _ref$
|
|
37
|
-
_ref$
|
|
38
|
-
opacity = _ref$
|
|
31
|
+
_ref$linear = _ref.linear;
|
|
32
|
+
_ref$linear = _ref$linear === void 0 ? defaultMultiColor.linear : _ref$linear;
|
|
33
|
+
var _ref$linear$stops = _ref$linear.stops,
|
|
34
|
+
stops = _ref$linear$stops === void 0 ? defaultMultiColor.linear.stops : _ref$linear$stops,
|
|
35
|
+
_ref$linear$angle = _ref$linear.angle,
|
|
36
|
+
angle = _ref$linear$angle === void 0 ? defaultMultiColor.linear.angle : _ref$linear$angle,
|
|
37
|
+
_ref$linear$opacity = _ref$linear.opacity,
|
|
38
|
+
opacity = _ref$linear$opacity === void 0 ? defaultMultiColor.linear.opacity : _ref$linear$opacity;
|
|
39
39
|
return {
|
|
40
40
|
type: type,
|
|
41
41
|
pure: pure,
|
|
@@ -45,4 +45,5 @@ var _default = exports["default"] = function _default() {
|
|
|
45
45
|
opacity: opacity
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
};
|
|
48
|
+
};
|
|
49
|
+
exports["default"] = _default;
|
package/lib/pie.js
CHANGED
|
@@ -8,8 +8,8 @@ exports.rosePieDecorate = exports.rosePie = exports.nestRosePie = exports.donut
|
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _ = require("./");
|
|
11
|
-
function ownKeys(
|
|
12
|
-
function _objectSpread(
|
|
11
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
13
|
var defaultBasePie = {
|
|
14
14
|
chart: {
|
|
15
15
|
innerRadius: 0,
|
|
@@ -20,16 +20,16 @@ var defaultBasePie = {
|
|
|
20
20
|
};
|
|
21
21
|
var basePie = function basePie() {
|
|
22
22
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBasePie,
|
|
23
|
-
_ref$chart = _ref.chart
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
innerRadius = _ref$
|
|
27
|
-
_ref$
|
|
28
|
-
outerRadius = _ref$
|
|
29
|
-
_ref$
|
|
30
|
-
cornerRadius = _ref$
|
|
31
|
-
_ref$
|
|
32
|
-
padAngle = _ref$
|
|
23
|
+
_ref$chart = _ref.chart;
|
|
24
|
+
_ref$chart = _ref$chart === void 0 ? defaultBasePie.chart : _ref$chart;
|
|
25
|
+
var _ref$chart$innerRadiu = _ref$chart.innerRadius,
|
|
26
|
+
innerRadius = _ref$chart$innerRadiu === void 0 ? defaultBasePie.chart.innerRadius : _ref$chart$innerRadiu,
|
|
27
|
+
_ref$chart$outerRadiu = _ref$chart.outerRadius,
|
|
28
|
+
outerRadius = _ref$chart$outerRadiu === void 0 ? defaultBasePie.chart.outerRadius : _ref$chart$outerRadiu,
|
|
29
|
+
_ref$chart$cornerRadi = _ref$chart.cornerRadius,
|
|
30
|
+
cornerRadius = _ref$chart$cornerRadi === void 0 ? defaultBasePie.chart.cornerRadius : _ref$chart$cornerRadi,
|
|
31
|
+
_ref$chart$padAngle = _ref$chart.padAngle,
|
|
32
|
+
padAngle = _ref$chart$padAngle === void 0 ? defaultBasePie.chart.padAngle : _ref$chart$padAngle;
|
|
33
33
|
return {
|
|
34
34
|
name: 'chart',
|
|
35
35
|
displayName: '图形',
|
|
@@ -87,14 +87,14 @@ var defaultBaseRose = {
|
|
|
87
87
|
};
|
|
88
88
|
var baseRose = function baseRose() {
|
|
89
89
|
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBaseRose,
|
|
90
|
-
_ref2$chart = _ref2.chart
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
innerRadius = _ref2$
|
|
94
|
-
_ref2$
|
|
95
|
-
outerRadius = _ref2$
|
|
96
|
-
_ref2$
|
|
97
|
-
padAngle = _ref2$
|
|
90
|
+
_ref2$chart = _ref2.chart;
|
|
91
|
+
_ref2$chart = _ref2$chart === void 0 ? defaultBaseRose.chart : _ref2$chart;
|
|
92
|
+
var _ref2$chart$innerRadi = _ref2$chart.innerRadius,
|
|
93
|
+
innerRadius = _ref2$chart$innerRadi === void 0 ? defaultBaseRose.chart.innerRadius : _ref2$chart$innerRadi,
|
|
94
|
+
_ref2$chart$outerRadi = _ref2$chart.outerRadius,
|
|
95
|
+
outerRadius = _ref2$chart$outerRadi === void 0 ? defaultBaseRose.chart.outerRadius : _ref2$chart$outerRadi,
|
|
96
|
+
_ref2$chart$padAngle = _ref2$chart.padAngle,
|
|
97
|
+
padAngle = _ref2$chart$padAngle === void 0 ? defaultBaseRose.chart.padAngle : _ref2$chart$padAngle;
|
|
98
98
|
return {
|
|
99
99
|
name: 'chart',
|
|
100
100
|
displayName: '饼图',
|
|
@@ -194,18 +194,18 @@ var defaultRoseAxis = {
|
|
|
194
194
|
};
|
|
195
195
|
var roseCategoryAxis = function roseCategoryAxis() {
|
|
196
196
|
var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultRoseAxis,
|
|
197
|
-
_ref4$axis = _ref4.axis
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
layout = _ref4$
|
|
201
|
-
_ref4$
|
|
202
|
-
textStyle = _ref4$
|
|
203
|
-
_ref4$
|
|
204
|
-
gap = _ref4$
|
|
205
|
-
_ref4$
|
|
206
|
-
axisLine_ = _ref4$
|
|
207
|
-
_ref4$
|
|
208
|
-
gridLine_ = _ref4$
|
|
197
|
+
_ref4$axis = _ref4.axis;
|
|
198
|
+
_ref4$axis = _ref4$axis === void 0 ? defaultRoseAxis.axis : _ref4$axis;
|
|
199
|
+
var _ref4$axis$layout = _ref4$axis.layout,
|
|
200
|
+
layout = _ref4$axis$layout === void 0 ? defaultRoseAxis.axis.layout : _ref4$axis$layout,
|
|
201
|
+
_ref4$axis$textStyle = _ref4$axis.textStyle,
|
|
202
|
+
textStyle = _ref4$axis$textStyle === void 0 ? defaultRoseAxis.axis.textStyle : _ref4$axis$textStyle,
|
|
203
|
+
_ref4$axis$gap = _ref4$axis.gap,
|
|
204
|
+
gap = _ref4$axis$gap === void 0 ? defaultRoseAxis.axis.gap : _ref4$axis$gap,
|
|
205
|
+
_ref4$axis$axisLine = _ref4$axis.axisLine,
|
|
206
|
+
axisLine_ = _ref4$axis$axisLine === void 0 ? defaultRoseAxis.axis.axisline : _ref4$axis$axisLine,
|
|
207
|
+
_ref4$axis$gridLine = _ref4$axis.gridLine,
|
|
208
|
+
gridLine_ = _ref4$axis$gridLine === void 0 ? defaultRoseAxis.axis.gridLine : _ref4$axis$gridLine;
|
|
209
209
|
return {
|
|
210
210
|
name: 'categoryAxis',
|
|
211
211
|
displayName: '类目轴',
|
|
@@ -239,18 +239,18 @@ var roseCategoryAxis = function roseCategoryAxis() {
|
|
|
239
239
|
};
|
|
240
240
|
var roseValueAxis = function roseValueAxis() {
|
|
241
241
|
var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultRoseAxis,
|
|
242
|
-
_ref5$axis = _ref5.axis
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
count = _ref5$
|
|
246
|
-
_ref5$
|
|
247
|
-
textStyle = _ref5$
|
|
248
|
-
_ref5$
|
|
249
|
-
gap = _ref5$
|
|
250
|
-
_ref5$
|
|
251
|
-
axisLine_ = _ref5$
|
|
252
|
-
_ref5$
|
|
253
|
-
gridLine_ = _ref5$
|
|
242
|
+
_ref5$axis = _ref5.axis;
|
|
243
|
+
_ref5$axis = _ref5$axis === void 0 ? defaultRoseAxis.axis : _ref5$axis;
|
|
244
|
+
var _ref5$axis$count = _ref5$axis.count,
|
|
245
|
+
count = _ref5$axis$count === void 0 ? defaultRoseAxis.axis.count : _ref5$axis$count,
|
|
246
|
+
_ref5$axis$textStyle = _ref5$axis.textStyle,
|
|
247
|
+
textStyle = _ref5$axis$textStyle === void 0 ? defaultRoseAxis.axis.textStyle : _ref5$axis$textStyle,
|
|
248
|
+
_ref5$axis$gap = _ref5$axis.gap,
|
|
249
|
+
gap = _ref5$axis$gap === void 0 ? defaultRoseAxis.axis.gap : _ref5$axis$gap,
|
|
250
|
+
_ref5$axis$axisLine = _ref5$axis.axisLine,
|
|
251
|
+
axisLine_ = _ref5$axis$axisLine === void 0 ? defaultRoseAxis.axis.axisline : _ref5$axis$axisLine,
|
|
252
|
+
_ref5$axis$gridLine = _ref5$axis.gridLine,
|
|
253
|
+
gridLine_ = _ref5$axis$gridLine === void 0 ? defaultRoseAxis.axis.gridLine : _ref5$axis$gridLine;
|
|
254
254
|
return {
|
|
255
255
|
name: 'valueAxis',
|
|
256
256
|
displayName: '数值轴',
|
|
@@ -287,14 +287,14 @@ var defaultCategoryText = {
|
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
var categoryText = function categoryText(_ref6) {
|
|
290
|
-
var _ref6$categoryText = _ref6.categoryText
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
show = _ref6$
|
|
294
|
-
_ref6$
|
|
295
|
-
font = _ref6$
|
|
296
|
-
_ref6$
|
|
297
|
-
gap = _ref6$
|
|
290
|
+
var _ref6$categoryText = _ref6.categoryText;
|
|
291
|
+
_ref6$categoryText = _ref6$categoryText === void 0 ? defaultCategoryText : _ref6$categoryText;
|
|
292
|
+
var _ref6$categoryText$sh = _ref6$categoryText.show,
|
|
293
|
+
show = _ref6$categoryText$sh === void 0 ? defaultCategoryText.categoryText.show : _ref6$categoryText$sh,
|
|
294
|
+
_ref6$categoryText$fo = _ref6$categoryText.font,
|
|
295
|
+
font = _ref6$categoryText$fo === void 0 ? defaultCategoryText.categoryText.font : _ref6$categoryText$fo,
|
|
296
|
+
_ref6$categoryText$ga = _ref6$categoryText.gap,
|
|
297
|
+
gap = _ref6$categoryText$ga === void 0 ? defaultCategoryText.categoryText.gap : _ref6$categoryText$ga;
|
|
298
298
|
return {
|
|
299
299
|
name: 'categoryText',
|
|
300
300
|
displayName: '类目文本',
|
|
@@ -331,20 +331,20 @@ var defaultDecorate = {
|
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
333
|
var decorate = function decorate(_ref7) {
|
|
334
|
-
var _ref7$decorate = _ref7.decorate
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
show = _ref7$
|
|
338
|
-
_ref7$
|
|
339
|
-
innerRadius = _ref7$
|
|
340
|
-
_ref7$
|
|
341
|
-
outerRadius = _ref7$
|
|
342
|
-
_ref7$
|
|
343
|
-
opacity = _ref7$
|
|
344
|
-
_ref7$
|
|
345
|
-
speed = _ref7$
|
|
346
|
-
_ref7$
|
|
347
|
-
direction = _ref7$
|
|
334
|
+
var _ref7$decorate = _ref7.decorate;
|
|
335
|
+
_ref7$decorate = _ref7$decorate === void 0 ? defaultDecorate : _ref7$decorate;
|
|
336
|
+
var _ref7$decorate$show = _ref7$decorate.show,
|
|
337
|
+
show = _ref7$decorate$show === void 0 ? defaultDecorate.decorate.show : _ref7$decorate$show,
|
|
338
|
+
_ref7$decorate$innerR = _ref7$decorate.innerRadius,
|
|
339
|
+
innerRadius = _ref7$decorate$innerR === void 0 ? defaultDecorate.decorate.innerRadius : _ref7$decorate$innerR,
|
|
340
|
+
_ref7$decorate$outerR = _ref7$decorate.outerRadius,
|
|
341
|
+
outerRadius = _ref7$decorate$outerR === void 0 ? defaultDecorate.decorate.outerRadius : _ref7$decorate$outerR,
|
|
342
|
+
_ref7$decorate$opacit = _ref7$decorate.opacity,
|
|
343
|
+
opacity = _ref7$decorate$opacit === void 0 ? defaultDecorate.decorate.opacity : _ref7$decorate$opacit,
|
|
344
|
+
_ref7$decorate$speed = _ref7$decorate.speed,
|
|
345
|
+
speed = _ref7$decorate$speed === void 0 ? defaultDecorate.decorate.speed : _ref7$decorate$speed,
|
|
346
|
+
_ref7$decorate$direct = _ref7$decorate.direction,
|
|
347
|
+
direction = _ref7$decorate$direct === void 0 ? defaultDecorate.decorate.direction : _ref7$decorate$direct;
|
|
348
348
|
return {
|
|
349
349
|
name: 'decorate',
|
|
350
350
|
displayName: '装饰物',
|
|
@@ -501,64 +501,64 @@ var defaultCurrent = {
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
};
|
|
504
|
-
var current =
|
|
504
|
+
var current = function current() {
|
|
505
505
|
var _ref9 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultCurrent,
|
|
506
|
-
_ref9$current = _ref9.current
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
show = _ref9$
|
|
510
|
-
_ref9$
|
|
511
|
-
gap = _ref9$
|
|
512
|
-
_ref9$
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
showName = _ref9$
|
|
516
|
-
_ref9$
|
|
517
|
-
nameColor = _ref9$
|
|
518
|
-
_ref9$
|
|
519
|
-
nameFont = _ref9$
|
|
520
|
-
nameTranslate = _ref9$
|
|
521
|
-
_ref9$
|
|
522
|
-
maxWidth = _ref9$
|
|
523
|
-
overflow = _ref9$
|
|
524
|
-
_ref9$
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
showPercent = _ref9$
|
|
528
|
-
_ref9$
|
|
529
|
-
percentColor = _ref9$
|
|
530
|
-
_ref9$
|
|
531
|
-
precision = _ref9$
|
|
532
|
-
_ref9$
|
|
533
|
-
percentFont = _ref9$
|
|
534
|
-
_ref9$
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
percentTranslateY = _ref9$
|
|
538
|
-
_ref9$
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
showValue = _ref9$
|
|
542
|
-
_ref9$
|
|
543
|
-
valueColor = _ref9$
|
|
544
|
-
_ref9$
|
|
545
|
-
valueFont = _ref9$
|
|
546
|
-
_ref9$
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
valueTranslateY = _ref9$
|
|
550
|
-
_ref9$
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
showSuffix = _ref9$
|
|
554
|
-
_ref9$
|
|
555
|
-
text = _ref9$
|
|
556
|
-
_ref9$
|
|
557
|
-
fontSize = _ref9$
|
|
558
|
-
_ref9$
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
suffixTranslateY = _ref9$
|
|
506
|
+
_ref9$current = _ref9.current;
|
|
507
|
+
_ref9$current = _ref9$current === void 0 ? defaultCurrent.current : _ref9$current;
|
|
508
|
+
var _ref9$current$show = _ref9$current.show,
|
|
509
|
+
show = _ref9$current$show === void 0 ? defaultCurrent.current.show : _ref9$current$show,
|
|
510
|
+
_ref9$current$gap = _ref9$current.gap,
|
|
511
|
+
gap = _ref9$current$gap === void 0 ? defaultCurrent.current.gap : _ref9$current$gap,
|
|
512
|
+
_ref9$current$name = _ref9$current.name;
|
|
513
|
+
_ref9$current$name = _ref9$current$name === void 0 ? defaultCurrent.current.name : _ref9$current$name;
|
|
514
|
+
var _ref9$current$name$sh = _ref9$current$name.show,
|
|
515
|
+
showName = _ref9$current$name$sh === void 0 ? defaultCurrent.current.name.show : _ref9$current$name$sh,
|
|
516
|
+
_ref9$current$name$sa = _ref9$current$name.sameColor,
|
|
517
|
+
nameColor = _ref9$current$name$sa === void 0 ? defaultCurrent.current.name.sameColor : _ref9$current$name$sa,
|
|
518
|
+
_ref9$current$name$fo = _ref9$current$name.font,
|
|
519
|
+
nameFont = _ref9$current$name$fo === void 0 ? defaultCurrent.current.name.font : _ref9$current$name$fo,
|
|
520
|
+
nameTranslate = _ref9$current$name.translate,
|
|
521
|
+
_ref9$current$name$ma = _ref9$current$name.maxWidth,
|
|
522
|
+
maxWidth = _ref9$current$name$ma === void 0 ? defaultCurrent.current.name.maxWidth : _ref9$current$name$ma,
|
|
523
|
+
overflow = _ref9$current$name.overflow,
|
|
524
|
+
_ref9$current$percent = _ref9$current.percent;
|
|
525
|
+
_ref9$current$percent = _ref9$current$percent === void 0 ? defaultCurrent.current.percent : _ref9$current$percent;
|
|
526
|
+
var _ref9$current$percent2 = _ref9$current$percent.show,
|
|
527
|
+
showPercent = _ref9$current$percent2 === void 0 ? defaultCurrent.current.percent.show : _ref9$current$percent2,
|
|
528
|
+
_ref9$current$percent3 = _ref9$current$percent.sameColor,
|
|
529
|
+
percentColor = _ref9$current$percent3 === void 0 ? defaultCurrent.current.percent.sameColor : _ref9$current$percent3,
|
|
530
|
+
_ref9$current$percent4 = _ref9$current$percent.precision,
|
|
531
|
+
precision = _ref9$current$percent4 === void 0 ? defaultCurrent.current.percent.precision : _ref9$current$percent4,
|
|
532
|
+
_ref9$current$percent5 = _ref9$current$percent.font,
|
|
533
|
+
percentFont = _ref9$current$percent5 === void 0 ? defaultCurrent.current.percent.font : _ref9$current$percent5,
|
|
534
|
+
_ref9$current$percent6 = _ref9$current$percent.translate;
|
|
535
|
+
_ref9$current$percent6 = _ref9$current$percent6 === void 0 ? defaultCurrent.current.percent.translate : _ref9$current$percent6;
|
|
536
|
+
var percentTranslateX = _ref9$current$percent6.x,
|
|
537
|
+
percentTranslateY = _ref9$current$percent6.y,
|
|
538
|
+
_ref9$current$value = _ref9$current.value;
|
|
539
|
+
_ref9$current$value = _ref9$current$value === void 0 ? defaultCurrent.current.value : _ref9$current$value;
|
|
540
|
+
var _ref9$current$value$s = _ref9$current$value.show,
|
|
541
|
+
showValue = _ref9$current$value$s === void 0 ? defaultCurrent.current.value.show : _ref9$current$value$s,
|
|
542
|
+
_ref9$current$value$s2 = _ref9$current$value.sameColor,
|
|
543
|
+
valueColor = _ref9$current$value$s2 === void 0 ? defaultCurrent.current.value.sameColor : _ref9$current$value$s2,
|
|
544
|
+
_ref9$current$value$f = _ref9$current$value.font,
|
|
545
|
+
valueFont = _ref9$current$value$f === void 0 ? defaultCurrent.current.value.font : _ref9$current$value$f,
|
|
546
|
+
_ref9$current$value$t = _ref9$current$value.translate;
|
|
547
|
+
_ref9$current$value$t = _ref9$current$value$t === void 0 ? defaultCurrent.current.value.translate : _ref9$current$value$t;
|
|
548
|
+
var valueTranslateX = _ref9$current$value$t.x,
|
|
549
|
+
valueTranslateY = _ref9$current$value$t.y,
|
|
550
|
+
_ref9$current$value$s3 = _ref9$current$value.suffix;
|
|
551
|
+
_ref9$current$value$s3 = _ref9$current$value$s3 === void 0 ? defaultCurrent.current.value.suffix : _ref9$current$value$s3;
|
|
552
|
+
var _ref9$current$value$s4 = _ref9$current$value$s3.show,
|
|
553
|
+
showSuffix = _ref9$current$value$s4 === void 0 ? defaultCurrent.current.value.suffix.show : _ref9$current$value$s4,
|
|
554
|
+
_ref9$current$value$s5 = _ref9$current$value$s3.text,
|
|
555
|
+
text = _ref9$current$value$s5 === void 0 ? defaultCurrent.current.value.suffix.text : _ref9$current$value$s5,
|
|
556
|
+
_ref9$current$value$s6 = _ref9$current$value$s3.fontSize,
|
|
557
|
+
fontSize = _ref9$current$value$s6 === void 0 ? defaultCurrent.current.value.suffix.fontSize : _ref9$current$value$s6,
|
|
558
|
+
_ref9$current$value$s7 = _ref9$current$value$s3.translate;
|
|
559
|
+
_ref9$current$value$s7 = _ref9$current$value$s7 === void 0 ? defaultCurrent.current.value.suffix.translate : _ref9$current$value$s7;
|
|
560
|
+
var suffixTranslateX = _ref9$current$value$s7.x,
|
|
561
|
+
suffixTranslateY = _ref9$current$value$s7.y;
|
|
562
562
|
return {
|
|
563
563
|
name: 'current',
|
|
564
564
|
displayName: '当前值',
|
|
@@ -675,6 +675,7 @@ var current = exports.current = function current() {
|
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
677
|
};
|
|
678
|
+
exports.current = current;
|
|
678
679
|
var defaultBaseOuter = {
|
|
679
680
|
chart: {
|
|
680
681
|
innerRadius: 0,
|
|
@@ -684,14 +685,14 @@ var defaultBaseOuter = {
|
|
|
684
685
|
};
|
|
685
686
|
var baseOuter = function baseOuter() {
|
|
686
687
|
var _ref10 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBaseOuter,
|
|
687
|
-
_ref10$chart = _ref10.chart
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
innerRadius = _ref10$
|
|
691
|
-
_ref10$
|
|
692
|
-
outerRadius = _ref10$
|
|
693
|
-
_ref10$
|
|
694
|
-
padAngle = _ref10$
|
|
688
|
+
_ref10$chart = _ref10.chart;
|
|
689
|
+
_ref10$chart = _ref10$chart === void 0 ? defaultBasePie.chart : _ref10$chart;
|
|
690
|
+
var _ref10$chart$innerRad = _ref10$chart.innerRadius,
|
|
691
|
+
innerRadius = _ref10$chart$innerRad === void 0 ? defaultBasePie.chart.innerRadius : _ref10$chart$innerRad,
|
|
692
|
+
_ref10$chart$outerRad = _ref10$chart.outerRadius,
|
|
693
|
+
outerRadius = _ref10$chart$outerRad === void 0 ? defaultBasePie.chart.outerRadius : _ref10$chart$outerRad,
|
|
694
|
+
_ref10$chart$padAngle = _ref10$chart.padAngle,
|
|
695
|
+
padAngle = _ref10$chart$padAngle === void 0 ? defaultBasePie.chart.padAngle : _ref10$chart$padAngle;
|
|
695
696
|
return {
|
|
696
697
|
name: 'chart',
|
|
697
698
|
displayName: '图形',
|
|
@@ -747,24 +748,24 @@ var defaultOuterDecorate = {
|
|
|
747
748
|
};
|
|
748
749
|
var outerDecorate = function outerDecorate() {
|
|
749
750
|
var _ref11 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultOuterDecorate,
|
|
750
|
-
_ref11$outerDecorate = _ref11.outerDecorate
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
color = _ref11$
|
|
754
|
-
_ref11$
|
|
755
|
-
width = _ref11$
|
|
756
|
-
_ref11$
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
show = _ref11$
|
|
760
|
-
_ref11$
|
|
761
|
-
count = _ref11$
|
|
762
|
-
_ref11$
|
|
763
|
-
tickColor = _ref11$
|
|
764
|
-
_ref11$
|
|
765
|
-
tickWidth = _ref11$
|
|
766
|
-
_ref11$
|
|
767
|
-
length = _ref11$
|
|
751
|
+
_ref11$outerDecorate = _ref11.outerDecorate;
|
|
752
|
+
_ref11$outerDecorate = _ref11$outerDecorate === void 0 ? defaultOuterDecorate.outerDecorate : _ref11$outerDecorate;
|
|
753
|
+
var _ref11$outerDecorate$ = _ref11$outerDecorate.color,
|
|
754
|
+
color = _ref11$outerDecorate$ === void 0 ? defaultOuterDecorate.outerDecorate.color : _ref11$outerDecorate$,
|
|
755
|
+
_ref11$outerDecorate$2 = _ref11$outerDecorate.width,
|
|
756
|
+
width = _ref11$outerDecorate$2 === void 0 ? defaultOuterDecorate.outerDecorate.width : _ref11$outerDecorate$2,
|
|
757
|
+
_ref11$outerDecorate$3 = _ref11$outerDecorate.tick;
|
|
758
|
+
_ref11$outerDecorate$3 = _ref11$outerDecorate$3 === void 0 ? defaultOuterDecorate.outerDecorate.tick : _ref11$outerDecorate$3;
|
|
759
|
+
var _ref11$outerDecorate$4 = _ref11$outerDecorate$3.show,
|
|
760
|
+
show = _ref11$outerDecorate$4 === void 0 ? defaultOuterDecorate.outerDecorate.tick.show : _ref11$outerDecorate$4,
|
|
761
|
+
_ref11$outerDecorate$5 = _ref11$outerDecorate$3.count,
|
|
762
|
+
count = _ref11$outerDecorate$5 === void 0 ? defaultOuterDecorate.outerDecorate.tick.count : _ref11$outerDecorate$5,
|
|
763
|
+
_ref11$outerDecorate$6 = _ref11$outerDecorate$3.color,
|
|
764
|
+
tickColor = _ref11$outerDecorate$6 === void 0 ? defaultOuterDecorate.outerDecorate.tick.color : _ref11$outerDecorate$6,
|
|
765
|
+
_ref11$outerDecorate$7 = _ref11$outerDecorate$3.width,
|
|
766
|
+
tickWidth = _ref11$outerDecorate$7 === void 0 ? defaultOuterDecorate.outerDecorate.tick.width : _ref11$outerDecorate$7,
|
|
767
|
+
_ref11$outerDecorate$8 = _ref11$outerDecorate$3.length,
|
|
768
|
+
length = _ref11$outerDecorate$8 === void 0 ? defaultOuterDecorate.outerDecorate.tick.length : _ref11$outerDecorate$8;
|
|
768
769
|
return {
|
|
769
770
|
name: 'outerDecorate',
|
|
770
771
|
displayName: '外环装饰',
|
|
@@ -819,7 +820,7 @@ var outerDecorate = function outerDecorate() {
|
|
|
819
820
|
}]
|
|
820
821
|
};
|
|
821
822
|
};
|
|
822
|
-
var rosePie =
|
|
823
|
+
var rosePie = function rosePie() {
|
|
823
824
|
var _basePie = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBasePie;
|
|
824
825
|
return {
|
|
825
826
|
name: 'fan',
|
|
@@ -827,7 +828,8 @@ var rosePie = exports.rosePie = function rosePie() {
|
|
|
827
828
|
value: [basePie(_basePie)]
|
|
828
829
|
};
|
|
829
830
|
};
|
|
830
|
-
|
|
831
|
+
exports.rosePie = rosePie;
|
|
832
|
+
var rosePieDecorate = function rosePieDecorate() {
|
|
831
833
|
var _baseOuter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBaseOuter;
|
|
832
834
|
var _outerDecorate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOuterDecorate;
|
|
833
835
|
return {
|
|
@@ -836,7 +838,8 @@ var rosePieDecorate = exports.rosePieDecorate = function rosePieDecorate() {
|
|
|
836
838
|
value: [baseOuter(_baseOuter), outerDecorate(_outerDecorate)]
|
|
837
839
|
};
|
|
838
840
|
};
|
|
839
|
-
|
|
841
|
+
exports.rosePieDecorate = rosePieDecorate;
|
|
842
|
+
var donut = function donut() {
|
|
840
843
|
var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
841
844
|
basePie: defaultBasePie,
|
|
842
845
|
decorate: defaultDecorate
|
|
@@ -851,7 +854,8 @@ var donut = exports.donut = function donut() {
|
|
|
851
854
|
value: [basePie(_basePie), decorate(_decorate)]
|
|
852
855
|
};
|
|
853
856
|
};
|
|
854
|
-
|
|
857
|
+
exports.donut = donut;
|
|
858
|
+
var carouselDonut = function carouselDonut() {
|
|
855
859
|
var _ref13 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
856
860
|
basePie: defaultBasePie,
|
|
857
861
|
current: defaultCurrent
|
|
@@ -866,7 +870,8 @@ var carouselDonut = exports.carouselDonut = function carouselDonut() {
|
|
|
866
870
|
value: [basePie(_basePie), current(_current)]
|
|
867
871
|
};
|
|
868
872
|
};
|
|
869
|
-
|
|
873
|
+
exports.carouselDonut = carouselDonut;
|
|
874
|
+
var nestRosePie = function nestRosePie() {
|
|
870
875
|
var _baseRose = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBaseRose;
|
|
871
876
|
var _categoryAxis = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultRoseAxis;
|
|
872
877
|
var _valueAxis = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultRoseAxis;
|
|
@@ -876,7 +881,8 @@ var nestRosePie = exports.nestRosePie = function nestRosePie() {
|
|
|
876
881
|
value: [baseRose(_baseRose), roseCategoryAxis(_categoryAxis), roseValueAxis(_valueAxis)]
|
|
877
882
|
};
|
|
878
883
|
};
|
|
879
|
-
|
|
884
|
+
exports.nestRosePie = nestRosePie;
|
|
885
|
+
var carouselDonut2 = function carouselDonut2() {
|
|
880
886
|
var _ref14 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
881
887
|
basePie: defaultBasePie,
|
|
882
888
|
categoryText: defaultCategoryText,
|
|
@@ -897,6 +903,7 @@ var carouselDonut2 = exports.carouselDonut2 = function carouselDonut2() {
|
|
|
897
903
|
value: [basePie(_basePie), categoryText(_categoryText), decorate2(_decorate2), current(_current)]
|
|
898
904
|
};
|
|
899
905
|
};
|
|
906
|
+
exports.carouselDonut2 = carouselDonut2;
|
|
900
907
|
var defaultPie = {
|
|
901
908
|
fan: {
|
|
902
909
|
chart: {
|
|
@@ -917,34 +924,34 @@ var defaultPie = {
|
|
|
917
924
|
}
|
|
918
925
|
}
|
|
919
926
|
};
|
|
920
|
-
var _default =
|
|
927
|
+
var _default = function _default() {
|
|
921
928
|
var _ref15 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultPie,
|
|
922
|
-
_ref15$fan = _ref15.fan
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
outerRadius = _ref15$
|
|
928
|
-
_ref15$
|
|
929
|
-
rose = _ref15$
|
|
930
|
-
_ref15$
|
|
931
|
-
baseRadius = _ref15$
|
|
932
|
-
_ref15$
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
startAngle = _ref15$
|
|
936
|
-
_ref15$
|
|
937
|
-
endAngle = _ref15$
|
|
938
|
-
_ref15$
|
|
939
|
-
antiClockwise = _ref15$
|
|
940
|
-
_ref15$
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
show = _ref15$
|
|
944
|
-
_ref15$
|
|
945
|
-
strokeWidth = _ref15$
|
|
946
|
-
_ref15$
|
|
947
|
-
color = _ref15$
|
|
929
|
+
_ref15$fan = _ref15.fan;
|
|
930
|
+
_ref15$fan = _ref15$fan === void 0 ? defaultPie.fan : _ref15$fan;
|
|
931
|
+
var _ref15$fan$chart = _ref15$fan.chart;
|
|
932
|
+
_ref15$fan$chart = _ref15$fan$chart === void 0 ? defaultPie.fan.chart : _ref15$fan$chart;
|
|
933
|
+
var _ref15$fan$chart$oute = _ref15$fan$chart.outerRadius,
|
|
934
|
+
outerRadius = _ref15$fan$chart$oute === void 0 ? defaultPie.fan.chart.outerRadius : _ref15$fan$chart$oute,
|
|
935
|
+
_ref15$fan$chart$rose = _ref15$fan$chart.rose,
|
|
936
|
+
rose = _ref15$fan$chart$rose === void 0 ? defaultPie.fan.chart.rose : _ref15$fan$chart$rose,
|
|
937
|
+
_ref15$fan$chart$base = _ref15$fan$chart.baseRadius,
|
|
938
|
+
baseRadius = _ref15$fan$chart$base === void 0 ? defaultPie.fan.chart.baseRadius : _ref15$fan$chart$base,
|
|
939
|
+
_ref15$fan$angle = _ref15$fan.angle;
|
|
940
|
+
_ref15$fan$angle = _ref15$fan$angle === void 0 ? defaultPie.fan.angle : _ref15$fan$angle;
|
|
941
|
+
var _ref15$fan$angle$star = _ref15$fan$angle.startAngle,
|
|
942
|
+
startAngle = _ref15$fan$angle$star === void 0 ? defaultPie.fan.angle.startAngle : _ref15$fan$angle$star,
|
|
943
|
+
_ref15$fan$angle$endA = _ref15$fan$angle.endAngle,
|
|
944
|
+
endAngle = _ref15$fan$angle$endA === void 0 ? defaultPie.fan.angle.endAngle : _ref15$fan$angle$endA,
|
|
945
|
+
_ref15$fan$angle$anti = _ref15$fan$angle.antiClockwise,
|
|
946
|
+
antiClockwise = _ref15$fan$angle$anti === void 0 ? defaultPie.fan.angle.antiClockwise : _ref15$fan$angle$anti,
|
|
947
|
+
_ref15$fan$stroke = _ref15$fan.stroke;
|
|
948
|
+
_ref15$fan$stroke = _ref15$fan$stroke === void 0 ? defaultPie.fan.stroke : _ref15$fan$stroke;
|
|
949
|
+
var _ref15$fan$stroke$sho = _ref15$fan$stroke.show,
|
|
950
|
+
show = _ref15$fan$stroke$sho === void 0 ? defaultPie.fan.stroke.show : _ref15$fan$stroke$sho,
|
|
951
|
+
_ref15$fan$stroke$str = _ref15$fan$stroke.strokeWidth,
|
|
952
|
+
strokeWidth = _ref15$fan$stroke$str === void 0 ? defaultPie.fan.stroke.strokeWidth : _ref15$fan$stroke$str,
|
|
953
|
+
_ref15$fan$stroke$col = _ref15$fan$stroke.color,
|
|
954
|
+
color = _ref15$fan$stroke$col === void 0 ? defaultPie.fan.stroke.color : _ref15$fan$stroke$col;
|
|
948
955
|
return {
|
|
949
956
|
name: 'fan',
|
|
950
957
|
displayName: '饼图属性',
|
|
@@ -1040,4 +1047,5 @@ var _default = exports["default"] = function _default() {
|
|
|
1040
1047
|
}
|
|
1041
1048
|
}]
|
|
1042
1049
|
};
|
|
1043
|
-
};
|
|
1050
|
+
};
|
|
1051
|
+
exports["default"] = _default;
|