@easyv/config 1.2.17 → 1.2.19
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 +2 -3
- package/lib/label.js +122 -128
- package/lib/legend.js +221 -225
- 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 +1 -1
- package/src/series.js +17 -2
package/lib/multiColor.js
CHANGED
|
@@ -22,20 +22,20 @@ var defaultMultiColor = {
|
|
|
22
22
|
opacity: 1
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
var _default = function _default() {
|
|
25
|
+
var _default = exports["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$linear2 = _ref$linear === void 0 ? defaultMultiColor.linear : _ref$linear,
|
|
33
|
+
_ref$linear2$stops = _ref$linear2.stops,
|
|
34
|
+
stops = _ref$linear2$stops === void 0 ? defaultMultiColor.linear.stops : _ref$linear2$stops,
|
|
35
|
+
_ref$linear2$angle = _ref$linear2.angle,
|
|
36
|
+
angle = _ref$linear2$angle === void 0 ? defaultMultiColor.linear.angle : _ref$linear2$angle,
|
|
37
|
+
_ref$linear2$opacity = _ref$linear2.opacity,
|
|
38
|
+
opacity = _ref$linear2$opacity === void 0 ? defaultMultiColor.linear.opacity : _ref$linear2$opacity;
|
|
39
39
|
return {
|
|
40
40
|
type: type,
|
|
41
41
|
pure: pure,
|
|
@@ -45,5 +45,4 @@ var _default = function _default() {
|
|
|
45
45
|
opacity: opacity
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
};
|
|
49
|
-
exports["default"] = _default;
|
|
48
|
+
};
|
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(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 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$chart2 = _ref$chart === void 0 ? defaultBasePie.chart : _ref$chart,
|
|
25
|
+
_ref$chart2$innerRadi = _ref$chart2.innerRadius,
|
|
26
|
+
innerRadius = _ref$chart2$innerRadi === void 0 ? defaultBasePie.chart.innerRadius : _ref$chart2$innerRadi,
|
|
27
|
+
_ref$chart2$outerRadi = _ref$chart2.outerRadius,
|
|
28
|
+
outerRadius = _ref$chart2$outerRadi === void 0 ? defaultBasePie.chart.outerRadius : _ref$chart2$outerRadi,
|
|
29
|
+
_ref$chart2$cornerRad = _ref$chart2.cornerRadius,
|
|
30
|
+
cornerRadius = _ref$chart2$cornerRad === void 0 ? defaultBasePie.chart.cornerRadius : _ref$chart2$cornerRad,
|
|
31
|
+
_ref$chart2$padAngle = _ref$chart2.padAngle,
|
|
32
|
+
padAngle = _ref$chart2$padAngle === void 0 ? defaultBasePie.chart.padAngle : _ref$chart2$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$chart2 = _ref2$chart === void 0 ? defaultBaseRose.chart : _ref2$chart,
|
|
92
|
+
_ref2$chart2$innerRad = _ref2$chart2.innerRadius,
|
|
93
|
+
innerRadius = _ref2$chart2$innerRad === void 0 ? defaultBaseRose.chart.innerRadius : _ref2$chart2$innerRad,
|
|
94
|
+
_ref2$chart2$outerRad = _ref2$chart2.outerRadius,
|
|
95
|
+
outerRadius = _ref2$chart2$outerRad === void 0 ? defaultBaseRose.chart.outerRadius : _ref2$chart2$outerRad,
|
|
96
|
+
_ref2$chart2$padAngle = _ref2$chart2.padAngle,
|
|
97
|
+
padAngle = _ref2$chart2$padAngle === void 0 ? defaultBaseRose.chart.padAngle : _ref2$chart2$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$axis2 = _ref4$axis === void 0 ? defaultRoseAxis.axis : _ref4$axis,
|
|
199
|
+
_ref4$axis2$layout = _ref4$axis2.layout,
|
|
200
|
+
layout = _ref4$axis2$layout === void 0 ? defaultRoseAxis.axis.layout : _ref4$axis2$layout,
|
|
201
|
+
_ref4$axis2$textStyle = _ref4$axis2.textStyle,
|
|
202
|
+
textStyle = _ref4$axis2$textStyle === void 0 ? defaultRoseAxis.axis.textStyle : _ref4$axis2$textStyle,
|
|
203
|
+
_ref4$axis2$gap = _ref4$axis2.gap,
|
|
204
|
+
gap = _ref4$axis2$gap === void 0 ? defaultRoseAxis.axis.gap : _ref4$axis2$gap,
|
|
205
|
+
_ref4$axis2$axisLine = _ref4$axis2.axisLine,
|
|
206
|
+
axisLine_ = _ref4$axis2$axisLine === void 0 ? defaultRoseAxis.axis.axisline : _ref4$axis2$axisLine,
|
|
207
|
+
_ref4$axis2$gridLine = _ref4$axis2.gridLine,
|
|
208
|
+
gridLine_ = _ref4$axis2$gridLine === void 0 ? defaultRoseAxis.axis.gridLine : _ref4$axis2$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$axis2 = _ref5$axis === void 0 ? defaultRoseAxis.axis : _ref5$axis,
|
|
244
|
+
_ref5$axis2$count = _ref5$axis2.count,
|
|
245
|
+
count = _ref5$axis2$count === void 0 ? defaultRoseAxis.axis.count : _ref5$axis2$count,
|
|
246
|
+
_ref5$axis2$textStyle = _ref5$axis2.textStyle,
|
|
247
|
+
textStyle = _ref5$axis2$textStyle === void 0 ? defaultRoseAxis.axis.textStyle : _ref5$axis2$textStyle,
|
|
248
|
+
_ref5$axis2$gap = _ref5$axis2.gap,
|
|
249
|
+
gap = _ref5$axis2$gap === void 0 ? defaultRoseAxis.axis.gap : _ref5$axis2$gap,
|
|
250
|
+
_ref5$axis2$axisLine = _ref5$axis2.axisLine,
|
|
251
|
+
axisLine_ = _ref5$axis2$axisLine === void 0 ? defaultRoseAxis.axis.axisline : _ref5$axis2$axisLine,
|
|
252
|
+
_ref5$axis2$gridLine = _ref5$axis2.gridLine,
|
|
253
|
+
gridLine_ = _ref5$axis2$gridLine === void 0 ? defaultRoseAxis.axis.gridLine : _ref5$axis2$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$categoryText2 = _ref6$categoryText === void 0 ? defaultCategoryText : _ref6$categoryText,
|
|
292
|
+
_ref6$categoryText2$s = _ref6$categoryText2.show,
|
|
293
|
+
show = _ref6$categoryText2$s === void 0 ? defaultCategoryText.categoryText.show : _ref6$categoryText2$s,
|
|
294
|
+
_ref6$categoryText2$f = _ref6$categoryText2.font,
|
|
295
|
+
font = _ref6$categoryText2$f === void 0 ? defaultCategoryText.categoryText.font : _ref6$categoryText2$f,
|
|
296
|
+
_ref6$categoryText2$g = _ref6$categoryText2.gap,
|
|
297
|
+
gap = _ref6$categoryText2$g === void 0 ? defaultCategoryText.categoryText.gap : _ref6$categoryText2$g;
|
|
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$decorate2 = _ref7$decorate === void 0 ? defaultDecorate : _ref7$decorate,
|
|
336
|
+
_ref7$decorate2$show = _ref7$decorate2.show,
|
|
337
|
+
show = _ref7$decorate2$show === void 0 ? defaultDecorate.decorate.show : _ref7$decorate2$show,
|
|
338
|
+
_ref7$decorate2$inner = _ref7$decorate2.innerRadius,
|
|
339
|
+
innerRadius = _ref7$decorate2$inner === void 0 ? defaultDecorate.decorate.innerRadius : _ref7$decorate2$inner,
|
|
340
|
+
_ref7$decorate2$outer = _ref7$decorate2.outerRadius,
|
|
341
|
+
outerRadius = _ref7$decorate2$outer === void 0 ? defaultDecorate.decorate.outerRadius : _ref7$decorate2$outer,
|
|
342
|
+
_ref7$decorate2$opaci = _ref7$decorate2.opacity,
|
|
343
|
+
opacity = _ref7$decorate2$opaci === void 0 ? defaultDecorate.decorate.opacity : _ref7$decorate2$opaci,
|
|
344
|
+
_ref7$decorate2$speed = _ref7$decorate2.speed,
|
|
345
|
+
speed = _ref7$decorate2$speed === void 0 ? defaultDecorate.decorate.speed : _ref7$decorate2$speed,
|
|
346
|
+
_ref7$decorate2$direc = _ref7$decorate2.direction,
|
|
347
|
+
direction = _ref7$decorate2$direc === void 0 ? defaultDecorate.decorate.direction : _ref7$decorate2$direc;
|
|
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 = function current() {
|
|
504
|
+
var current = exports.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$current2 = _ref9$current === void 0 ? defaultCurrent.current : _ref9$current,
|
|
508
|
+
_ref9$current2$show = _ref9$current2.show,
|
|
509
|
+
show = _ref9$current2$show === void 0 ? defaultCurrent.current.show : _ref9$current2$show,
|
|
510
|
+
_ref9$current2$gap = _ref9$current2.gap,
|
|
511
|
+
gap = _ref9$current2$gap === void 0 ? defaultCurrent.current.gap : _ref9$current2$gap,
|
|
512
|
+
_ref9$current2$name = _ref9$current2.name,
|
|
513
|
+
_ref9$current2$name2 = _ref9$current2$name === void 0 ? defaultCurrent.current.name : _ref9$current2$name,
|
|
514
|
+
_ref9$current2$name2$ = _ref9$current2$name2.show,
|
|
515
|
+
showName = _ref9$current2$name2$ === void 0 ? defaultCurrent.current.name.show : _ref9$current2$name2$,
|
|
516
|
+
_ref9$current2$name2$2 = _ref9$current2$name2.sameColor,
|
|
517
|
+
nameColor = _ref9$current2$name2$2 === void 0 ? defaultCurrent.current.name.sameColor : _ref9$current2$name2$2,
|
|
518
|
+
_ref9$current2$name2$3 = _ref9$current2$name2.font,
|
|
519
|
+
nameFont = _ref9$current2$name2$3 === void 0 ? defaultCurrent.current.name.font : _ref9$current2$name2$3,
|
|
520
|
+
nameTranslate = _ref9$current2$name2.translate,
|
|
521
|
+
_ref9$current2$name2$4 = _ref9$current2$name2.maxWidth,
|
|
522
|
+
maxWidth = _ref9$current2$name2$4 === void 0 ? defaultCurrent.current.name.maxWidth : _ref9$current2$name2$4,
|
|
523
|
+
overflow = _ref9$current2$name2.overflow,
|
|
524
|
+
_ref9$current2$percen = _ref9$current2.percent,
|
|
525
|
+
_ref9$current2$percen2 = _ref9$current2$percen === void 0 ? defaultCurrent.current.percent : _ref9$current2$percen,
|
|
526
|
+
_ref9$current2$percen3 = _ref9$current2$percen2.show,
|
|
527
|
+
showPercent = _ref9$current2$percen3 === void 0 ? defaultCurrent.current.percent.show : _ref9$current2$percen3,
|
|
528
|
+
_ref9$current2$percen4 = _ref9$current2$percen2.sameColor,
|
|
529
|
+
percentColor = _ref9$current2$percen4 === void 0 ? defaultCurrent.current.percent.sameColor : _ref9$current2$percen4,
|
|
530
|
+
_ref9$current2$percen5 = _ref9$current2$percen2.precision,
|
|
531
|
+
precision = _ref9$current2$percen5 === void 0 ? defaultCurrent.current.percent.precision : _ref9$current2$percen5,
|
|
532
|
+
_ref9$current2$percen6 = _ref9$current2$percen2.font,
|
|
533
|
+
percentFont = _ref9$current2$percen6 === void 0 ? defaultCurrent.current.percent.font : _ref9$current2$percen6,
|
|
534
|
+
_ref9$current2$percen7 = _ref9$current2$percen2.translate,
|
|
535
|
+
_ref9$current2$percen8 = _ref9$current2$percen7 === void 0 ? defaultCurrent.current.percent.translate : _ref9$current2$percen7,
|
|
536
|
+
percentTranslateX = _ref9$current2$percen8.x,
|
|
537
|
+
percentTranslateY = _ref9$current2$percen8.y,
|
|
538
|
+
_ref9$current2$value = _ref9$current2.value,
|
|
539
|
+
_ref9$current2$value2 = _ref9$current2$value === void 0 ? defaultCurrent.current.value : _ref9$current2$value,
|
|
540
|
+
_ref9$current2$value3 = _ref9$current2$value2.show,
|
|
541
|
+
showValue = _ref9$current2$value3 === void 0 ? defaultCurrent.current.value.show : _ref9$current2$value3,
|
|
542
|
+
_ref9$current2$value4 = _ref9$current2$value2.sameColor,
|
|
543
|
+
valueColor = _ref9$current2$value4 === void 0 ? defaultCurrent.current.value.sameColor : _ref9$current2$value4,
|
|
544
|
+
_ref9$current2$value5 = _ref9$current2$value2.font,
|
|
545
|
+
valueFont = _ref9$current2$value5 === void 0 ? defaultCurrent.current.value.font : _ref9$current2$value5,
|
|
546
|
+
_ref9$current2$value6 = _ref9$current2$value2.translate,
|
|
547
|
+
_ref9$current2$value7 = _ref9$current2$value6 === void 0 ? defaultCurrent.current.value.translate : _ref9$current2$value6,
|
|
548
|
+
valueTranslateX = _ref9$current2$value7.x,
|
|
549
|
+
valueTranslateY = _ref9$current2$value7.y,
|
|
550
|
+
_ref9$current2$value8 = _ref9$current2$value2.suffix,
|
|
551
|
+
_ref9$current2$value9 = _ref9$current2$value8 === void 0 ? defaultCurrent.current.value.suffix : _ref9$current2$value8,
|
|
552
|
+
_ref9$current2$value10 = _ref9$current2$value9.show,
|
|
553
|
+
showSuffix = _ref9$current2$value10 === void 0 ? defaultCurrent.current.value.suffix.show : _ref9$current2$value10,
|
|
554
|
+
_ref9$current2$value11 = _ref9$current2$value9.text,
|
|
555
|
+
text = _ref9$current2$value11 === void 0 ? defaultCurrent.current.value.suffix.text : _ref9$current2$value11,
|
|
556
|
+
_ref9$current2$value12 = _ref9$current2$value9.fontSize,
|
|
557
|
+
fontSize = _ref9$current2$value12 === void 0 ? defaultCurrent.current.value.suffix.fontSize : _ref9$current2$value12,
|
|
558
|
+
_ref9$current2$value13 = _ref9$current2$value9.translate,
|
|
559
|
+
_ref9$current2$value14 = _ref9$current2$value13 === void 0 ? defaultCurrent.current.value.suffix.translate : _ref9$current2$value13,
|
|
560
|
+
suffixTranslateX = _ref9$current2$value14.x,
|
|
561
|
+
suffixTranslateY = _ref9$current2$value14.y;
|
|
562
562
|
return {
|
|
563
563
|
name: 'current',
|
|
564
564
|
displayName: '当前值',
|
|
@@ -675,7 +675,6 @@ var current = function current() {
|
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
677
|
};
|
|
678
|
-
exports.current = current;
|
|
679
678
|
var defaultBaseOuter = {
|
|
680
679
|
chart: {
|
|
681
680
|
innerRadius: 0,
|
|
@@ -685,14 +684,14 @@ var defaultBaseOuter = {
|
|
|
685
684
|
};
|
|
686
685
|
var baseOuter = function baseOuter() {
|
|
687
686
|
var _ref10 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBaseOuter,
|
|
688
|
-
_ref10$chart = _ref10.chart
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
innerRadius = _ref10$
|
|
692
|
-
_ref10$
|
|
693
|
-
outerRadius = _ref10$
|
|
694
|
-
_ref10$
|
|
695
|
-
padAngle = _ref10$
|
|
687
|
+
_ref10$chart = _ref10.chart,
|
|
688
|
+
_ref10$chart2 = _ref10$chart === void 0 ? defaultBasePie.chart : _ref10$chart,
|
|
689
|
+
_ref10$chart2$innerRa = _ref10$chart2.innerRadius,
|
|
690
|
+
innerRadius = _ref10$chart2$innerRa === void 0 ? defaultBasePie.chart.innerRadius : _ref10$chart2$innerRa,
|
|
691
|
+
_ref10$chart2$outerRa = _ref10$chart2.outerRadius,
|
|
692
|
+
outerRadius = _ref10$chart2$outerRa === void 0 ? defaultBasePie.chart.outerRadius : _ref10$chart2$outerRa,
|
|
693
|
+
_ref10$chart2$padAngl = _ref10$chart2.padAngle,
|
|
694
|
+
padAngle = _ref10$chart2$padAngl === void 0 ? defaultBasePie.chart.padAngle : _ref10$chart2$padAngl;
|
|
696
695
|
return {
|
|
697
696
|
name: 'chart',
|
|
698
697
|
displayName: '图形',
|
|
@@ -748,24 +747,24 @@ var defaultOuterDecorate = {
|
|
|
748
747
|
};
|
|
749
748
|
var outerDecorate = function outerDecorate() {
|
|
750
749
|
var _ref11 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultOuterDecorate,
|
|
751
|
-
_ref11$outerDecorate = _ref11.outerDecorate
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
color = _ref11$
|
|
755
|
-
_ref11$
|
|
756
|
-
width = _ref11$
|
|
757
|
-
_ref11$
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
show = _ref11$
|
|
761
|
-
_ref11$
|
|
762
|
-
count = _ref11$
|
|
763
|
-
_ref11$
|
|
764
|
-
tickColor = _ref11$
|
|
765
|
-
_ref11$
|
|
766
|
-
tickWidth = _ref11$
|
|
767
|
-
_ref11$
|
|
768
|
-
length = _ref11$
|
|
750
|
+
_ref11$outerDecorate = _ref11.outerDecorate,
|
|
751
|
+
_ref11$outerDecorate2 = _ref11$outerDecorate === void 0 ? defaultOuterDecorate.outerDecorate : _ref11$outerDecorate,
|
|
752
|
+
_ref11$outerDecorate3 = _ref11$outerDecorate2.color,
|
|
753
|
+
color = _ref11$outerDecorate3 === void 0 ? defaultOuterDecorate.outerDecorate.color : _ref11$outerDecorate3,
|
|
754
|
+
_ref11$outerDecorate4 = _ref11$outerDecorate2.width,
|
|
755
|
+
width = _ref11$outerDecorate4 === void 0 ? defaultOuterDecorate.outerDecorate.width : _ref11$outerDecorate4,
|
|
756
|
+
_ref11$outerDecorate5 = _ref11$outerDecorate2.tick,
|
|
757
|
+
_ref11$outerDecorate6 = _ref11$outerDecorate5 === void 0 ? defaultOuterDecorate.outerDecorate.tick : _ref11$outerDecorate5,
|
|
758
|
+
_ref11$outerDecorate7 = _ref11$outerDecorate6.show,
|
|
759
|
+
show = _ref11$outerDecorate7 === void 0 ? defaultOuterDecorate.outerDecorate.tick.show : _ref11$outerDecorate7,
|
|
760
|
+
_ref11$outerDecorate8 = _ref11$outerDecorate6.count,
|
|
761
|
+
count = _ref11$outerDecorate8 === void 0 ? defaultOuterDecorate.outerDecorate.tick.count : _ref11$outerDecorate8,
|
|
762
|
+
_ref11$outerDecorate9 = _ref11$outerDecorate6.color,
|
|
763
|
+
tickColor = _ref11$outerDecorate9 === void 0 ? defaultOuterDecorate.outerDecorate.tick.color : _ref11$outerDecorate9,
|
|
764
|
+
_ref11$outerDecorate10 = _ref11$outerDecorate6.width,
|
|
765
|
+
tickWidth = _ref11$outerDecorate10 === void 0 ? defaultOuterDecorate.outerDecorate.tick.width : _ref11$outerDecorate10,
|
|
766
|
+
_ref11$outerDecorate11 = _ref11$outerDecorate6.length,
|
|
767
|
+
length = _ref11$outerDecorate11 === void 0 ? defaultOuterDecorate.outerDecorate.tick.length : _ref11$outerDecorate11;
|
|
769
768
|
return {
|
|
770
769
|
name: 'outerDecorate',
|
|
771
770
|
displayName: '外环装饰',
|
|
@@ -820,7 +819,7 @@ var outerDecorate = function outerDecorate() {
|
|
|
820
819
|
}]
|
|
821
820
|
};
|
|
822
821
|
};
|
|
823
|
-
var rosePie = function rosePie() {
|
|
822
|
+
var rosePie = exports.rosePie = function rosePie() {
|
|
824
823
|
var _basePie = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBasePie;
|
|
825
824
|
return {
|
|
826
825
|
name: 'fan',
|
|
@@ -828,8 +827,7 @@ var rosePie = function rosePie() {
|
|
|
828
827
|
value: [basePie(_basePie)]
|
|
829
828
|
};
|
|
830
829
|
};
|
|
831
|
-
exports.
|
|
832
|
-
var rosePieDecorate = function rosePieDecorate() {
|
|
830
|
+
var rosePieDecorate = exports.rosePieDecorate = function rosePieDecorate() {
|
|
833
831
|
var _baseOuter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBaseOuter;
|
|
834
832
|
var _outerDecorate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOuterDecorate;
|
|
835
833
|
return {
|
|
@@ -838,8 +836,7 @@ var rosePieDecorate = function rosePieDecorate() {
|
|
|
838
836
|
value: [baseOuter(_baseOuter), outerDecorate(_outerDecorate)]
|
|
839
837
|
};
|
|
840
838
|
};
|
|
841
|
-
exports.
|
|
842
|
-
var donut = function donut() {
|
|
839
|
+
var donut = exports.donut = function donut() {
|
|
843
840
|
var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
844
841
|
basePie: defaultBasePie,
|
|
845
842
|
decorate: defaultDecorate
|
|
@@ -854,8 +851,7 @@ var donut = function donut() {
|
|
|
854
851
|
value: [basePie(_basePie), decorate(_decorate)]
|
|
855
852
|
};
|
|
856
853
|
};
|
|
857
|
-
exports.
|
|
858
|
-
var carouselDonut = function carouselDonut() {
|
|
854
|
+
var carouselDonut = exports.carouselDonut = function carouselDonut() {
|
|
859
855
|
var _ref13 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
860
856
|
basePie: defaultBasePie,
|
|
861
857
|
current: defaultCurrent
|
|
@@ -870,8 +866,7 @@ var carouselDonut = function carouselDonut() {
|
|
|
870
866
|
value: [basePie(_basePie), current(_current)]
|
|
871
867
|
};
|
|
872
868
|
};
|
|
873
|
-
exports.
|
|
874
|
-
var nestRosePie = function nestRosePie() {
|
|
869
|
+
var nestRosePie = exports.nestRosePie = function nestRosePie() {
|
|
875
870
|
var _baseRose = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBaseRose;
|
|
876
871
|
var _categoryAxis = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultRoseAxis;
|
|
877
872
|
var _valueAxis = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultRoseAxis;
|
|
@@ -881,8 +876,7 @@ var nestRosePie = function nestRosePie() {
|
|
|
881
876
|
value: [baseRose(_baseRose), roseCategoryAxis(_categoryAxis), roseValueAxis(_valueAxis)]
|
|
882
877
|
};
|
|
883
878
|
};
|
|
884
|
-
exports.
|
|
885
|
-
var carouselDonut2 = function carouselDonut2() {
|
|
879
|
+
var carouselDonut2 = exports.carouselDonut2 = function carouselDonut2() {
|
|
886
880
|
var _ref14 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
887
881
|
basePie: defaultBasePie,
|
|
888
882
|
categoryText: defaultCategoryText,
|
|
@@ -903,7 +897,6 @@ var carouselDonut2 = function carouselDonut2() {
|
|
|
903
897
|
value: [basePie(_basePie), categoryText(_categoryText), decorate2(_decorate2), current(_current)]
|
|
904
898
|
};
|
|
905
899
|
};
|
|
906
|
-
exports.carouselDonut2 = carouselDonut2;
|
|
907
900
|
var defaultPie = {
|
|
908
901
|
fan: {
|
|
909
902
|
chart: {
|
|
@@ -924,34 +917,34 @@ var defaultPie = {
|
|
|
924
917
|
}
|
|
925
918
|
}
|
|
926
919
|
};
|
|
927
|
-
var _default = function _default() {
|
|
920
|
+
var _default = exports["default"] = function _default() {
|
|
928
921
|
var _ref15 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultPie,
|
|
929
|
-
_ref15$fan = _ref15.fan
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
outerRadius = _ref15$
|
|
935
|
-
_ref15$
|
|
936
|
-
rose = _ref15$
|
|
937
|
-
_ref15$
|
|
938
|
-
baseRadius = _ref15$
|
|
939
|
-
_ref15$
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
startAngle = _ref15$
|
|
943
|
-
_ref15$
|
|
944
|
-
endAngle = _ref15$
|
|
945
|
-
_ref15$
|
|
946
|
-
antiClockwise = _ref15$
|
|
947
|
-
_ref15$
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
show = _ref15$
|
|
951
|
-
_ref15$
|
|
952
|
-
strokeWidth = _ref15$
|
|
953
|
-
_ref15$
|
|
954
|
-
color = _ref15$
|
|
922
|
+
_ref15$fan = _ref15.fan,
|
|
923
|
+
_ref15$fan2 = _ref15$fan === void 0 ? defaultPie.fan : _ref15$fan,
|
|
924
|
+
_ref15$fan2$chart = _ref15$fan2.chart,
|
|
925
|
+
_ref15$fan2$chart2 = _ref15$fan2$chart === void 0 ? defaultPie.fan.chart : _ref15$fan2$chart,
|
|
926
|
+
_ref15$fan2$chart2$ou = _ref15$fan2$chart2.outerRadius,
|
|
927
|
+
outerRadius = _ref15$fan2$chart2$ou === void 0 ? defaultPie.fan.chart.outerRadius : _ref15$fan2$chart2$ou,
|
|
928
|
+
_ref15$fan2$chart2$ro = _ref15$fan2$chart2.rose,
|
|
929
|
+
rose = _ref15$fan2$chart2$ro === void 0 ? defaultPie.fan.chart.rose : _ref15$fan2$chart2$ro,
|
|
930
|
+
_ref15$fan2$chart2$ba = _ref15$fan2$chart2.baseRadius,
|
|
931
|
+
baseRadius = _ref15$fan2$chart2$ba === void 0 ? defaultPie.fan.chart.baseRadius : _ref15$fan2$chart2$ba,
|
|
932
|
+
_ref15$fan2$angle = _ref15$fan2.angle,
|
|
933
|
+
_ref15$fan2$angle2 = _ref15$fan2$angle === void 0 ? defaultPie.fan.angle : _ref15$fan2$angle,
|
|
934
|
+
_ref15$fan2$angle2$st = _ref15$fan2$angle2.startAngle,
|
|
935
|
+
startAngle = _ref15$fan2$angle2$st === void 0 ? defaultPie.fan.angle.startAngle : _ref15$fan2$angle2$st,
|
|
936
|
+
_ref15$fan2$angle2$en = _ref15$fan2$angle2.endAngle,
|
|
937
|
+
endAngle = _ref15$fan2$angle2$en === void 0 ? defaultPie.fan.angle.endAngle : _ref15$fan2$angle2$en,
|
|
938
|
+
_ref15$fan2$angle2$an = _ref15$fan2$angle2.antiClockwise,
|
|
939
|
+
antiClockwise = _ref15$fan2$angle2$an === void 0 ? defaultPie.fan.angle.antiClockwise : _ref15$fan2$angle2$an,
|
|
940
|
+
_ref15$fan2$stroke = _ref15$fan2.stroke,
|
|
941
|
+
_ref15$fan2$stroke2 = _ref15$fan2$stroke === void 0 ? defaultPie.fan.stroke : _ref15$fan2$stroke,
|
|
942
|
+
_ref15$fan2$stroke2$s = _ref15$fan2$stroke2.show,
|
|
943
|
+
show = _ref15$fan2$stroke2$s === void 0 ? defaultPie.fan.stroke.show : _ref15$fan2$stroke2$s,
|
|
944
|
+
_ref15$fan2$stroke2$s2 = _ref15$fan2$stroke2.strokeWidth,
|
|
945
|
+
strokeWidth = _ref15$fan2$stroke2$s2 === void 0 ? defaultPie.fan.stroke.strokeWidth : _ref15$fan2$stroke2$s2,
|
|
946
|
+
_ref15$fan2$stroke2$c = _ref15$fan2$stroke2.color,
|
|
947
|
+
color = _ref15$fan2$stroke2$c === void 0 ? defaultPie.fan.stroke.color : _ref15$fan2$stroke2$c;
|
|
955
948
|
return {
|
|
956
949
|
name: 'fan',
|
|
957
950
|
displayName: '饼图属性',
|
|
@@ -1047,5 +1040,4 @@ var _default = function _default() {
|
|
|
1047
1040
|
}
|
|
1048
1041
|
}]
|
|
1049
1042
|
};
|
|
1050
|
-
};
|
|
1051
|
-
exports["default"] = _default;
|
|
1043
|
+
};
|