@easyv/config 1.2.17 → 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 +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/pnpm-lock.yaml +5974 -0
- package/src/series.js +16 -1
package/lib/pieTooltip.js
CHANGED
|
@@ -72,79 +72,79 @@ var defaultTooltip = {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
var _default = function _default() {
|
|
75
|
+
var _default = exports["default"] = function _default() {
|
|
76
76
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultTooltip,
|
|
77
77
|
_ref$manual = _ref.manual,
|
|
78
78
|
manual = _ref$manual === void 0 ? defaultTooltip.manual : _ref$manual,
|
|
79
|
-
_ref$tip = _ref.tip
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
tipTranslateX = _ref$
|
|
85
|
-
_ref$
|
|
86
|
-
tipTranslateY = _ref$
|
|
87
|
-
_ref$
|
|
88
|
-
image = _ref$
|
|
89
|
-
_ref$
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
tipWidth = _ref$
|
|
93
|
-
_ref$
|
|
94
|
-
tipHeight = _ref$
|
|
95
|
-
_ref$
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
marginTop = _ref$
|
|
99
|
-
_ref$
|
|
100
|
-
marginBottom = _ref$
|
|
101
|
-
_ref$
|
|
102
|
-
marginLeft = _ref$
|
|
103
|
-
_ref$
|
|
104
|
-
marginRight = _ref$
|
|
105
|
-
_ref$
|
|
106
|
-
_ref$
|
|
107
|
-
lineHeight = _ref$
|
|
108
|
-
_ref$
|
|
109
|
-
iconSize = _ref$
|
|
110
|
-
_ref$
|
|
111
|
-
num = _ref$
|
|
112
|
-
_ref$
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
nameFontSize = _ref$
|
|
116
|
-
nameColor = _ref$
|
|
117
|
-
nameBold = _ref$
|
|
118
|
-
nameItalic = _ref$
|
|
119
|
-
nameLetterSpacing = _ref$
|
|
120
|
-
_ref$
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
valueFontFamily = _ref$
|
|
124
|
-
valueFontSize = _ref$
|
|
125
|
-
valueFontColor = _ref$
|
|
126
|
-
valueFontBold = _ref$
|
|
127
|
-
valueFontItalic = _ref$
|
|
128
|
-
valueFontLetterSpacing = _ref$
|
|
129
|
-
_ref$
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
percentageFontFamily = _ref$
|
|
133
|
-
percentageFontSize = _ref$
|
|
134
|
-
percentageFontColor = _ref$
|
|
135
|
-
percentageFontBold = _ref$
|
|
136
|
-
percentageFontItalic = _ref$
|
|
137
|
-
percentageFontLetterSpacing = _ref$
|
|
138
|
-
_ref$
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
suffixFontSize = _ref$
|
|
144
|
-
suffixColor = _ref$
|
|
145
|
-
suffixBold = _ref$
|
|
146
|
-
suffixItalic = _ref$
|
|
147
|
-
suffixLetterSpacing = _ref$
|
|
79
|
+
_ref$tip = _ref.tip,
|
|
80
|
+
_ref$tip2 = _ref$tip === void 0 ? defaultTooltip.tip : _ref$tip,
|
|
81
|
+
_ref$tip2$translate = _ref$tip2.translate,
|
|
82
|
+
_ref$tip2$translate2 = _ref$tip2$translate === void 0 ? defaultTooltip.tip.translate : _ref$tip2$translate,
|
|
83
|
+
_ref$tip2$translate2$ = _ref$tip2$translate2.x,
|
|
84
|
+
tipTranslateX = _ref$tip2$translate2$ === void 0 ? defaultTooltip.tip.translate.x : _ref$tip2$translate2$,
|
|
85
|
+
_ref$tip2$translate2$2 = _ref$tip2$translate2.y,
|
|
86
|
+
tipTranslateY = _ref$tip2$translate2$2 === void 0 ? defaultTooltip.tip.translate.y : _ref$tip2$translate2$2,
|
|
87
|
+
_ref$tip2$image = _ref$tip2.image,
|
|
88
|
+
image = _ref$tip2$image === void 0 ? defaultTooltip.tip.image : _ref$tip2$image,
|
|
89
|
+
_ref$tip2$size = _ref$tip2.size,
|
|
90
|
+
_ref$tip2$size2 = _ref$tip2$size === void 0 ? defaultTooltip.tip.size : _ref$tip2$size,
|
|
91
|
+
_ref$tip2$size2$width = _ref$tip2$size2.width,
|
|
92
|
+
tipWidth = _ref$tip2$size2$width === void 0 ? defaultTooltip.tip.size.width : _ref$tip2$size2$width,
|
|
93
|
+
_ref$tip2$size2$heigh = _ref$tip2$size2.height,
|
|
94
|
+
tipHeight = _ref$tip2$size2$heigh === void 0 ? defaultTooltip.tip.size.height : _ref$tip2$size2$heigh,
|
|
95
|
+
_ref$tip2$margin = _ref$tip2.margin,
|
|
96
|
+
_ref$tip2$margin2 = _ref$tip2$margin === void 0 ? defaultTooltip.tip.margin : _ref$tip2$margin,
|
|
97
|
+
_ref$tip2$margin2$mar = _ref$tip2$margin2.marginTop,
|
|
98
|
+
marginTop = _ref$tip2$margin2$mar === void 0 ? defaultTooltip.tip.margin.marginTop : _ref$tip2$margin2$mar,
|
|
99
|
+
_ref$tip2$margin2$mar2 = _ref$tip2$margin2.marginBottom,
|
|
100
|
+
marginBottom = _ref$tip2$margin2$mar2 === void 0 ? defaultTooltip.tip.margin.marginBottom : _ref$tip2$margin2$mar2,
|
|
101
|
+
_ref$tip2$margin2$mar3 = _ref$tip2$margin2.marginLeft,
|
|
102
|
+
marginLeft = _ref$tip2$margin2$mar3 === void 0 ? defaultTooltip.tip.margin.marginLeft : _ref$tip2$margin2$mar3,
|
|
103
|
+
_ref$tip2$margin2$mar4 = _ref$tip2$margin2.marginRight,
|
|
104
|
+
marginRight = _ref$tip2$margin2$mar4 === void 0 ? defaultTooltip.tip.margin.marginRight : _ref$tip2$margin2$mar4,
|
|
105
|
+
_ref$tip2$data = _ref$tip2.data,
|
|
106
|
+
_ref$tip2$data$lineHe = _ref$tip2$data.lineHeight,
|
|
107
|
+
lineHeight = _ref$tip2$data$lineHe === void 0 ? defaultTooltip.tip.data.lineHeight : _ref$tip2$data$lineHe,
|
|
108
|
+
_ref$tip2$data$iconSi = _ref$tip2$data.iconSize,
|
|
109
|
+
iconSize = _ref$tip2$data$iconSi === void 0 ? defaultTooltip.tip.data.iconSize : _ref$tip2$data$iconSi,
|
|
110
|
+
_ref$tip2$data$num = _ref$tip2$data.num,
|
|
111
|
+
num = _ref$tip2$data$num === void 0 ? defaultTooltip.tip.data.num : _ref$tip2$data$num,
|
|
112
|
+
_ref$tip2$data$name = _ref$tip2$data.name,
|
|
113
|
+
_ref$tip2$data$name2 = _ref$tip2$data$name === void 0 ? defaultTooltip.tip.data.name : _ref$tip2$data$name,
|
|
114
|
+
nameFontFamily = _ref$tip2$data$name2.fontFamily,
|
|
115
|
+
nameFontSize = _ref$tip2$data$name2.fontSize,
|
|
116
|
+
nameColor = _ref$tip2$data$name2.color,
|
|
117
|
+
nameBold = _ref$tip2$data$name2.bold,
|
|
118
|
+
nameItalic = _ref$tip2$data$name2.italic,
|
|
119
|
+
nameLetterSpacing = _ref$tip2$data$name2.letterSpacing,
|
|
120
|
+
_ref$tip2$data$value = _ref$tip2$data.value,
|
|
121
|
+
_ref$tip2$data$value2 = _ref$tip2$data$value === void 0 ? defaultTooltip.tip.data.value : _ref$tip2$data$value,
|
|
122
|
+
_ref$tip2$data$value3 = _ref$tip2$data$value2.font,
|
|
123
|
+
valueFontFamily = _ref$tip2$data$value3.fontFamily,
|
|
124
|
+
valueFontSize = _ref$tip2$data$value3.fontSize,
|
|
125
|
+
valueFontColor = _ref$tip2$data$value3.color,
|
|
126
|
+
valueFontBold = _ref$tip2$data$value3.bold,
|
|
127
|
+
valueFontItalic = _ref$tip2$data$value3.italic,
|
|
128
|
+
valueFontLetterSpacing = _ref$tip2$data$value3.letterSpacing,
|
|
129
|
+
_ref$tip2$data$percen = _ref$tip2$data.percentage,
|
|
130
|
+
_ref$tip2$data$percen2 = _ref$tip2$data$percen === void 0 ? defaultTooltip.tip.data.percentage : _ref$tip2$data$percen,
|
|
131
|
+
_ref$tip2$data$percen3 = _ref$tip2$data$percen2.font,
|
|
132
|
+
percentageFontFamily = _ref$tip2$data$percen3.fontFamily,
|
|
133
|
+
percentageFontSize = _ref$tip2$data$percen3.fontSize,
|
|
134
|
+
percentageFontColor = _ref$tip2$data$percen3.color,
|
|
135
|
+
percentageFontBold = _ref$tip2$data$percen3.bold,
|
|
136
|
+
percentageFontItalic = _ref$tip2$data$percen3.italic,
|
|
137
|
+
percentageFontLetterSpacing = _ref$tip2$data$percen3.letterSpacing,
|
|
138
|
+
_ref$tip2$data$suffix = _ref$tip2$data.suffix,
|
|
139
|
+
_ref$tip2$data$suffix2 = _ref$tip2$data$suffix === void 0 ? defaultTooltip.tip.data.suffix : _ref$tip2$data$suffix,
|
|
140
|
+
_ref$tip2$data$suffix3 = _ref$tip2$data$suffix2.font,
|
|
141
|
+
_ref$tip2$data$suffix4 = _ref$tip2$data$suffix3 === void 0 ? defaultTooltip.tip.data.suffix.font : _ref$tip2$data$suffix3,
|
|
142
|
+
suffixFontFamily = _ref$tip2$data$suffix4.fontFamily,
|
|
143
|
+
suffixFontSize = _ref$tip2$data$suffix4.fontSize,
|
|
144
|
+
suffixColor = _ref$tip2$data$suffix4.color,
|
|
145
|
+
suffixBold = _ref$tip2$data$suffix4.bold,
|
|
146
|
+
suffixItalic = _ref$tip2$data$suffix4.italic,
|
|
147
|
+
suffixLetterSpacing = _ref$tip2$data$suffix4.letterSpacing;
|
|
148
148
|
return {
|
|
149
149
|
name: "tooltip",
|
|
150
150
|
displayName: "提示框",
|
|
@@ -319,5 +319,4 @@ var _default = function _default() {
|
|
|
319
319
|
}]
|
|
320
320
|
}]
|
|
321
321
|
};
|
|
322
|
-
};
|
|
323
|
-
exports["default"] = _default;
|
|
322
|
+
};
|
package/lib/sc.js
CHANGED
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
function ownKeys(
|
|
10
|
-
function _objectSpread(
|
|
11
|
-
var _default = function _default(name, displayName) {
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
|
+
var _default = exports["default"] = function _default(name, displayName) {
|
|
12
12
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
|
|
13
13
|
var value = arguments.length > 3 ? arguments[3] : undefined;
|
|
14
14
|
var config = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : "";
|
|
@@ -25,5 +25,4 @@ var _default = function _default(name, displayName) {
|
|
|
25
25
|
}
|
|
26
26
|
if (rule) res = _objectSpread(_objectSpread({}, rule), res);
|
|
27
27
|
return res;
|
|
28
|
-
};
|
|
29
|
-
exports["default"] = _default;
|
|
28
|
+
};
|
package/lib/series.js
CHANGED
|
@@ -63,15 +63,15 @@ var defaultBandSeries = {
|
|
|
63
63
|
},
|
|
64
64
|
opacity: 0.65
|
|
65
65
|
};
|
|
66
|
-
var bandSeries = function bandSeries() {
|
|
66
|
+
var bandSeries = exports.bandSeries = function bandSeries() {
|
|
67
67
|
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Math.random() + '';
|
|
68
68
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultBandSeries,
|
|
69
|
-
_ref$mapping = _ref.mapping
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
fieldName = _ref$
|
|
73
|
-
_ref$
|
|
74
|
-
displayName = _ref$
|
|
69
|
+
_ref$mapping = _ref.mapping,
|
|
70
|
+
_ref$mapping2 = _ref$mapping === void 0 ? defaultBandSeries.mapping : _ref$mapping,
|
|
71
|
+
_ref$mapping2$fieldNa = _ref$mapping2.fieldName,
|
|
72
|
+
fieldName = _ref$mapping2$fieldNa === void 0 ? defaultBandSeries.mapping.fieldName : _ref$mapping2$fieldNa,
|
|
73
|
+
_ref$mapping2$display = _ref$mapping2.displayName,
|
|
74
|
+
displayName = _ref$mapping2$display === void 0 ? defaultBandSeries.mapping.displayName : _ref$mapping2$display,
|
|
75
75
|
_ref$yOrZ = _ref.yOrZ,
|
|
76
76
|
yOrZ = _ref$yOrZ === void 0 ? defaultBandSeries.yOrZ : _ref$yOrZ,
|
|
77
77
|
stack = _ref.stack,
|
|
@@ -88,23 +88,23 @@ var bandSeries = function bandSeries() {
|
|
|
88
88
|
borderWidth = _ref$borderWidth === void 0 ? defaultBandSeries.borderWidth : _ref$borderWidth,
|
|
89
89
|
_ref$borderColor = _ref.borderColor,
|
|
90
90
|
borderColor = _ref$borderColor === void 0 ? defaultBandSeries.borderColor : _ref$borderColor,
|
|
91
|
-
_ref$size = _ref.size
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
urlWidth = _ref$
|
|
95
|
-
_ref$
|
|
96
|
-
urlHeight = _ref$
|
|
91
|
+
_ref$size = _ref.size,
|
|
92
|
+
_ref$size2 = _ref$size === void 0 ? defaultBandSeries.size : _ref$size,
|
|
93
|
+
_ref$size2$width = _ref$size2.width,
|
|
94
|
+
urlWidth = _ref$size2$width === void 0 ? defaultBandSeries.size.width : _ref$size2$width,
|
|
95
|
+
_ref$size2$height = _ref$size2.height,
|
|
96
|
+
urlHeight = _ref$size2$height === void 0 ? defaultBandSeries.size.height : _ref$size2$height,
|
|
97
97
|
_ref$opacity = _ref.opacity,
|
|
98
98
|
opacity = _ref$opacity === void 0 ? defaultBandSeries.opacity : _ref$opacity,
|
|
99
99
|
headDecorate = _ref.headDecorate,
|
|
100
|
-
_ref$highlight = _ref.highlight
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
showHighlight = _ref$
|
|
104
|
-
_ref$
|
|
105
|
-
highlightExtent = _ref$
|
|
106
|
-
_ref$
|
|
107
|
-
highlightFill = _ref$
|
|
100
|
+
_ref$highlight = _ref.highlight,
|
|
101
|
+
_ref$highlight2 = _ref$highlight === void 0 ? defaultBandSeries.highlight : _ref$highlight,
|
|
102
|
+
_ref$highlight2$show = _ref$highlight2.show,
|
|
103
|
+
showHighlight = _ref$highlight2$show === void 0 ? defaultBandSeries.highlight.show : _ref$highlight2$show,
|
|
104
|
+
_ref$highlight2$exten = _ref$highlight2.extent,
|
|
105
|
+
highlightExtent = _ref$highlight2$exten === void 0 ? defaultBandSeries.highlight.extent : _ref$highlight2$exten,
|
|
106
|
+
_ref$highlight2$fill = _ref$highlight2.fill,
|
|
107
|
+
highlightFill = _ref$highlight2$fill === void 0 ? defaultBandSeries.highlight.fill : _ref$highlight2$fill,
|
|
108
108
|
bandLabel = _ref.label;
|
|
109
109
|
return {
|
|
110
110
|
name: name,
|
|
@@ -298,13 +298,28 @@ var bandSeries = function bandSeries() {
|
|
|
298
298
|
type: 'multicolor',
|
|
299
299
|
value: highlightFill
|
|
300
300
|
}]
|
|
301
|
-
}, headDecorate !== undefined && (0, _.
|
|
301
|
+
}, headDecorate !== undefined && (0, _.sc)("headDecorate", "头部装饰", '', [(0, _.show)(headDecorate.show || false), (0, _.sc)("type", "类型", "radio", headDecorate.type || "image", {
|
|
302
|
+
options: [{
|
|
303
|
+
name: "图片",
|
|
304
|
+
value: "image"
|
|
305
|
+
}, {
|
|
306
|
+
name: "视频",
|
|
307
|
+
value: "video"
|
|
308
|
+
}]
|
|
309
|
+
}), (0, _.sc)("url", "图片", "image", headDecorate.image, {}, (0, _.showRule)("type", "$eq", "image")), (0, _.sc)("video", "视频", "video", headDecorate.video, {}, (0, _.showRule)("type", "$eq", "video")), (0, _.sc)("size", "尺寸", "group", [(0, _.sc)("width", "宽", "number", headDecorate.size && headDecorate.size.width || 20, {
|
|
310
|
+
span: 12,
|
|
311
|
+
suffix: "px"
|
|
312
|
+
}), (0, _.sc)("height", "高", "number", headDecorate.size && headDecorate.size.height || 20, {
|
|
313
|
+
span: 12,
|
|
314
|
+
suffix: "px"
|
|
315
|
+
})]), translate(headDecorate.translate && headDecorate.translate.x, headDecorate.translate && headDecorate.translate.y)], {
|
|
316
|
+
defaultOpen: true
|
|
317
|
+
}), (0, _.label)(bandLabel)].filter(function (item) {
|
|
302
318
|
return !!item;
|
|
303
319
|
}),
|
|
304
320
|
type: 'object'
|
|
305
321
|
};
|
|
306
322
|
};
|
|
307
|
-
exports.bandSeries = bandSeries;
|
|
308
323
|
var defaultLineSeries = {
|
|
309
324
|
mapping: _mapping,
|
|
310
325
|
yOrZ: 'y',
|
|
@@ -513,30 +528,30 @@ var icon = function icon() {
|
|
|
513
528
|
show = _ref4$show === void 0 ? defaultIcon.show : _ref4$show,
|
|
514
529
|
_ref4$mode = _ref4.mode,
|
|
515
530
|
mode = _ref4$mode === void 0 ? defaultIcon.mode : _ref4$mode,
|
|
516
|
-
_ref4$inner = _ref4.inner
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
innerColor = _ref4$
|
|
520
|
-
_ref4$
|
|
521
|
-
innerRadius = _ref4$
|
|
522
|
-
_ref4$outer = _ref4.outer
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
outerColor = _ref4$
|
|
526
|
-
_ref4$
|
|
527
|
-
outerRadius = _ref4$
|
|
531
|
+
_ref4$inner = _ref4.inner,
|
|
532
|
+
_ref4$inner2 = _ref4$inner === void 0 ? defaultIcon.inner : _ref4$inner,
|
|
533
|
+
_ref4$inner2$color = _ref4$inner2.color,
|
|
534
|
+
innerColor = _ref4$inner2$color === void 0 ? defaultIcon.inner.color : _ref4$inner2$color,
|
|
535
|
+
_ref4$inner2$radius = _ref4$inner2.radius,
|
|
536
|
+
innerRadius = _ref4$inner2$radius === void 0 ? defaultIcon.inner.innerRadius : _ref4$inner2$radius,
|
|
537
|
+
_ref4$outer = _ref4.outer,
|
|
538
|
+
_ref4$outer2 = _ref4$outer === void 0 ? defaultIcon.outer : _ref4$outer,
|
|
539
|
+
_ref4$outer2$color = _ref4$outer2.color,
|
|
540
|
+
outerColor = _ref4$outer2$color === void 0 ? defaultIcon.outer.color : _ref4$outer2$color,
|
|
541
|
+
_ref4$outer2$radius = _ref4$outer2.radius,
|
|
542
|
+
outerRadius = _ref4$outer2$radius === void 0 ? defaultIcon.outer.radius : _ref4$outer2$radius,
|
|
528
543
|
_ref4$color = _ref4.color,
|
|
529
544
|
color = _ref4$color === void 0 ? defaultIcon.color : _ref4$color,
|
|
530
545
|
_ref4$radius = _ref4.radius,
|
|
531
546
|
radius = _ref4$radius === void 0 ? defaultIcon.radius : _ref4$radius,
|
|
532
547
|
_ref4$image = _ref4.image,
|
|
533
548
|
image = _ref4$image === void 0 ? defaultIcon.image : _ref4$image,
|
|
534
|
-
_ref4$size = _ref4.size
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
imageWidth = _ref4$
|
|
538
|
-
_ref4$
|
|
539
|
-
imageHeight = _ref4$
|
|
549
|
+
_ref4$size = _ref4.size,
|
|
550
|
+
_ref4$size2 = _ref4$size === void 0 ? defaultIcon.size : _ref4$size,
|
|
551
|
+
_ref4$size2$width = _ref4$size2.width,
|
|
552
|
+
imageWidth = _ref4$size2$width === void 0 ? defaultIcon.size.width : _ref4$size2$width,
|
|
553
|
+
_ref4$size2$height = _ref4$size2.height,
|
|
554
|
+
imageHeight = _ref4$size2$height === void 0 ? defaultIcon.size.height : _ref4$size2$height;
|
|
540
555
|
return {
|
|
541
556
|
name: 'icon',
|
|
542
557
|
displayName: '数据标记',
|
|
@@ -649,37 +664,37 @@ var icon = function icon() {
|
|
|
649
664
|
}]
|
|
650
665
|
};
|
|
651
666
|
};
|
|
652
|
-
var lineSeries = function lineSeries() {
|
|
667
|
+
var lineSeries = exports.lineSeries = function lineSeries() {
|
|
653
668
|
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Math.random() + '';
|
|
654
669
|
var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultLineSeries,
|
|
655
|
-
_ref5$mapping = _ref5.mapping
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
fieldName = _ref5$
|
|
659
|
-
_ref5$
|
|
660
|
-
displayName = _ref5$
|
|
670
|
+
_ref5$mapping = _ref5.mapping,
|
|
671
|
+
_ref5$mapping2 = _ref5$mapping === void 0 ? defaultLineSeries.mapping : _ref5$mapping,
|
|
672
|
+
_ref5$mapping2$fieldN = _ref5$mapping2.fieldName,
|
|
673
|
+
fieldName = _ref5$mapping2$fieldN === void 0 ? defaultLineSeries.mapping.fieldName : _ref5$mapping2$fieldN,
|
|
674
|
+
_ref5$mapping2$displa = _ref5$mapping2.displayName,
|
|
675
|
+
displayName = _ref5$mapping2$displa === void 0 ? defaultLineSeries.mapping.displayName : _ref5$mapping2$displa,
|
|
661
676
|
_ref5$yOrZ = _ref5.yOrZ,
|
|
662
677
|
yOrZ = _ref5$yOrZ === void 0 ? defaultLineSeries.yOrZ : _ref5$yOrZ,
|
|
663
|
-
_ref5$line = _ref5.line
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
type = _ref5$
|
|
667
|
-
_ref5$
|
|
668
|
-
color = _ref5$
|
|
669
|
-
_ref5$
|
|
670
|
-
lineWidth = _ref5$
|
|
671
|
-
_ref5$
|
|
672
|
-
curve = _ref5$
|
|
673
|
-
_ref5$
|
|
674
|
-
tension = _ref5$
|
|
675
|
-
_ref5$
|
|
676
|
-
connectNulls = _ref5$
|
|
677
|
-
_ref5$
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
showShadow = _ref5$
|
|
681
|
-
_ref5$
|
|
682
|
-
shadow_ = _ref5$
|
|
678
|
+
_ref5$line = _ref5.line,
|
|
679
|
+
_ref5$line2 = _ref5$line === void 0 ? defaultLineSeries.line : _ref5$line,
|
|
680
|
+
_ref5$line2$type = _ref5$line2.type,
|
|
681
|
+
type = _ref5$line2$type === void 0 ? defaultLineSeries.line.type : _ref5$line2$type,
|
|
682
|
+
_ref5$line2$color = _ref5$line2.color,
|
|
683
|
+
color = _ref5$line2$color === void 0 ? defaultLineSeries.line.color : _ref5$line2$color,
|
|
684
|
+
_ref5$line2$lineWidth = _ref5$line2.lineWidth,
|
|
685
|
+
lineWidth = _ref5$line2$lineWidth === void 0 ? defaultLineSeries.line.lineWidth : _ref5$line2$lineWidth,
|
|
686
|
+
_ref5$line2$curve = _ref5$line2.curve,
|
|
687
|
+
curve = _ref5$line2$curve === void 0 ? defaultLineSeries.line.curve : _ref5$line2$curve,
|
|
688
|
+
_ref5$line2$tension = _ref5$line2.tension,
|
|
689
|
+
tension = _ref5$line2$tension === void 0 ? defaultLineSeries.line.tension : _ref5$line2$tension,
|
|
690
|
+
_ref5$line2$connectNu = _ref5$line2.connectNulls,
|
|
691
|
+
connectNulls = _ref5$line2$connectNu === void 0 ? defaultLineSeries.line.connectNulls : _ref5$line2$connectNu,
|
|
692
|
+
_ref5$line2$lineShado = _ref5$line2.lineShadow,
|
|
693
|
+
_ref5$line2$lineShado2 = _ref5$line2$lineShado === void 0 ? defaultLineSeries.line.lineShadow : _ref5$line2$lineShado,
|
|
694
|
+
_ref5$line2$lineShado3 = _ref5$line2$lineShado2.show,
|
|
695
|
+
showShadow = _ref5$line2$lineShado3 === void 0 ? defaultLineSeries.line.lineShadow.show : _ref5$line2$lineShado3,
|
|
696
|
+
_ref5$line2$lineShado4 = _ref5$line2$lineShado2.shadow,
|
|
697
|
+
shadow_ = _ref5$line2$lineShado4 === void 0 ? defaultLineSeries.line.lineShadow.shadow : _ref5$line2$lineShado4,
|
|
683
698
|
lineIcon = _ref5.icon,
|
|
684
699
|
lineLabel = _ref5.label;
|
|
685
700
|
return {
|
|
@@ -717,39 +732,38 @@ var lineSeries = function lineSeries() {
|
|
|
717
732
|
type: 'object'
|
|
718
733
|
};
|
|
719
734
|
};
|
|
720
|
-
exports.
|
|
721
|
-
var areaSeries = function areaSeries() {
|
|
735
|
+
var areaSeries = exports.areaSeries = function areaSeries() {
|
|
722
736
|
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Math.random() + '';
|
|
723
737
|
var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultLineSeries,
|
|
724
|
-
_ref6$mapping = _ref6.mapping
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
fieldName = _ref6$
|
|
728
|
-
_ref6$
|
|
729
|
-
displayName = _ref6$
|
|
738
|
+
_ref6$mapping = _ref6.mapping,
|
|
739
|
+
_ref6$mapping2 = _ref6$mapping === void 0 ? defaultLineSeries.mapping : _ref6$mapping,
|
|
740
|
+
_ref6$mapping2$fieldN = _ref6$mapping2.fieldName,
|
|
741
|
+
fieldName = _ref6$mapping2$fieldN === void 0 ? defaultLineSeries.mapping.fieldName : _ref6$mapping2$fieldN,
|
|
742
|
+
_ref6$mapping2$displa = _ref6$mapping2.displayName,
|
|
743
|
+
displayName = _ref6$mapping2$displa === void 0 ? defaultLineSeries.mapping.displayName : _ref6$mapping2$displa,
|
|
730
744
|
_ref6$yOrZ = _ref6.yOrZ,
|
|
731
745
|
yOrZ = _ref6$yOrZ === void 0 ? defaultLineSeries.yOrZ : _ref6$yOrZ,
|
|
732
|
-
_ref6$line = _ref6.line
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
type = _ref6$
|
|
736
|
-
_ref6$
|
|
737
|
-
color = _ref6$
|
|
738
|
-
_ref6$
|
|
739
|
-
lineWidth = _ref6$
|
|
740
|
-
_ref6$
|
|
741
|
-
curve = _ref6$
|
|
742
|
-
_ref6$
|
|
743
|
-
tension = _ref6$
|
|
744
|
-
_ref6$
|
|
745
|
-
connectNulls = _ref6$
|
|
746
|
-
_ref6$
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
showShadow = _ref6$
|
|
750
|
-
_ref6$
|
|
751
|
-
shadow_ = _ref6$
|
|
752
|
-
lineLighter = _ref6$
|
|
746
|
+
_ref6$line = _ref6.line,
|
|
747
|
+
_ref6$line2 = _ref6$line === void 0 ? defaultLineSeries.line : _ref6$line,
|
|
748
|
+
_ref6$line2$type = _ref6$line2.type,
|
|
749
|
+
type = _ref6$line2$type === void 0 ? defaultLineSeries.line.type : _ref6$line2$type,
|
|
750
|
+
_ref6$line2$color = _ref6$line2.color,
|
|
751
|
+
color = _ref6$line2$color === void 0 ? defaultLineSeries.line.color : _ref6$line2$color,
|
|
752
|
+
_ref6$line2$lineWidth = _ref6$line2.lineWidth,
|
|
753
|
+
lineWidth = _ref6$line2$lineWidth === void 0 ? defaultLineSeries.line.lineWidth : _ref6$line2$lineWidth,
|
|
754
|
+
_ref6$line2$curve = _ref6$line2.curve,
|
|
755
|
+
curve = _ref6$line2$curve === void 0 ? defaultLineSeries.line.curve : _ref6$line2$curve,
|
|
756
|
+
_ref6$line2$tension = _ref6$line2.tension,
|
|
757
|
+
tension = _ref6$line2$tension === void 0 ? defaultLineSeries.line.tension : _ref6$line2$tension,
|
|
758
|
+
_ref6$line2$connectNu = _ref6$line2.connectNulls,
|
|
759
|
+
connectNulls = _ref6$line2$connectNu === void 0 ? defaultLineSeries.line.connectNulls : _ref6$line2$connectNu,
|
|
760
|
+
_ref6$line2$lineShado = _ref6$line2.lineShadow,
|
|
761
|
+
_ref6$line2$lineShado2 = _ref6$line2$lineShado === void 0 ? defaultLineSeries.line.lineShadow : _ref6$line2$lineShado,
|
|
762
|
+
_ref6$line2$lineShado3 = _ref6$line2$lineShado2.show,
|
|
763
|
+
showShadow = _ref6$line2$lineShado3 === void 0 ? defaultLineSeries.line.lineShadow.show : _ref6$line2$lineShado3,
|
|
764
|
+
_ref6$line2$lineShado4 = _ref6$line2$lineShado2.shadow,
|
|
765
|
+
shadow_ = _ref6$line2$lineShado4 === void 0 ? defaultLineSeries.line.lineShadow.shadow : _ref6$line2$lineShado4,
|
|
766
|
+
lineLighter = _ref6$line2.lighter,
|
|
753
767
|
lineIcon = _ref6.icon,
|
|
754
768
|
_ref6$label = _ref6.label,
|
|
755
769
|
areaLabel = _ref6$label === void 0 ? defaultLineSeries.label : _ref6$label,
|
|
@@ -759,12 +773,12 @@ var areaSeries = function areaSeries() {
|
|
|
759
773
|
areaColor = _ref6$areaColor === void 0 ? defaultLineSeries.areaColor : _ref6$areaColor,
|
|
760
774
|
_ref6$url = _ref6.url,
|
|
761
775
|
url = _ref6$url === void 0 ? defaultLineSeries.url : _ref6$url,
|
|
762
|
-
_ref6$size = _ref6.size
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
urlWidth = _ref6$
|
|
766
|
-
_ref6$
|
|
767
|
-
urlHeight = _ref6$
|
|
776
|
+
_ref6$size = _ref6.size,
|
|
777
|
+
_ref6$size2 = _ref6$size === void 0 ? defaultLineSeries.size : _ref6$size,
|
|
778
|
+
_ref6$size2$width = _ref6$size2.width,
|
|
779
|
+
urlWidth = _ref6$size2$width === void 0 ? defaultLineSeries.size.width : _ref6$size2$width,
|
|
780
|
+
_ref6$size2$height = _ref6$size2.height,
|
|
781
|
+
urlHeight = _ref6$size2$height === void 0 ? defaultLineSeries.size.height : _ref6$size2$height,
|
|
768
782
|
_ref6$opacity = _ref6.opacity,
|
|
769
783
|
opacity = _ref6$opacity === void 0 ? defaultLineSeries.opacity : _ref6$opacity;
|
|
770
784
|
return {
|
|
@@ -864,7 +878,6 @@ var areaSeries = function areaSeries() {
|
|
|
864
878
|
type: 'object'
|
|
865
879
|
};
|
|
866
880
|
};
|
|
867
|
-
exports.areaSeries = areaSeries;
|
|
868
881
|
var defaultPieSeries = {
|
|
869
882
|
mapping: _mapping,
|
|
870
883
|
color: {
|
|
@@ -886,15 +899,15 @@ var defaultPieSeries = {
|
|
|
886
899
|
}
|
|
887
900
|
}
|
|
888
901
|
};
|
|
889
|
-
var pieSeries = function pieSeries() {
|
|
902
|
+
var pieSeries = exports.pieSeries = function pieSeries() {
|
|
890
903
|
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Math.random() + '';
|
|
891
904
|
var _ref7 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultPieSeries,
|
|
892
|
-
_ref7$mapping = _ref7.mapping
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
fieldName = _ref7$
|
|
896
|
-
_ref7$
|
|
897
|
-
displayName = _ref7$
|
|
905
|
+
_ref7$mapping = _ref7.mapping,
|
|
906
|
+
_ref7$mapping2 = _ref7$mapping === void 0 ? defaultPieSeries.mapping : _ref7$mapping,
|
|
907
|
+
_ref7$mapping2$fieldN = _ref7$mapping2.fieldName,
|
|
908
|
+
fieldName = _ref7$mapping2$fieldN === void 0 ? defaultPieSeries.mapping.fieldName : _ref7$mapping2$fieldN,
|
|
909
|
+
_ref7$mapping2$displa = _ref7$mapping2.displayName,
|
|
910
|
+
displayName = _ref7$mapping2$displa === void 0 ? defaultPieSeries.mapping.displayName : _ref7$mapping2$displa,
|
|
898
911
|
_ref7$color = _ref7.color,
|
|
899
912
|
color = _ref7$color === void 0 ? defaultPieSeries.color : _ref7$color,
|
|
900
913
|
currentColor = _ref7.currentColor;
|
|
@@ -921,20 +934,19 @@ var pieSeries = function pieSeries() {
|
|
|
921
934
|
type: 'object'
|
|
922
935
|
};
|
|
923
936
|
};
|
|
924
|
-
exports.pieSeries = pieSeries;
|
|
925
937
|
var defaultPurePieSeries = {
|
|
926
938
|
mapping: _mapping,
|
|
927
939
|
color: '#fff'
|
|
928
940
|
};
|
|
929
|
-
var purePieSeries = function purePieSeries() {
|
|
941
|
+
var purePieSeries = exports.purePieSeries = function purePieSeries() {
|
|
930
942
|
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Math.random() + '';
|
|
931
943
|
var _ref8 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultPurePieSeries,
|
|
932
|
-
_ref8$mapping = _ref8.mapping
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
fieldName = _ref8$
|
|
936
|
-
_ref8$
|
|
937
|
-
displayName = _ref8$
|
|
944
|
+
_ref8$mapping = _ref8.mapping,
|
|
945
|
+
_ref8$mapping2 = _ref8$mapping === void 0 ? defaultPurePieSeries.mapping : _ref8$mapping,
|
|
946
|
+
_ref8$mapping2$fieldN = _ref8$mapping2.fieldName,
|
|
947
|
+
fieldName = _ref8$mapping2$fieldN === void 0 ? defaultPurePieSeries.mapping.fieldName : _ref8$mapping2$fieldN,
|
|
948
|
+
_ref8$mapping2$displa = _ref8$mapping2.displayName,
|
|
949
|
+
displayName = _ref8$mapping2$displa === void 0 ? defaultPurePieSeries.mapping.displayName : _ref8$mapping2$displa,
|
|
938
950
|
_ref8$color = _ref8.color,
|
|
939
951
|
color = _ref8$color === void 0 ? defaultPurePieSeries.color : _ref8$color;
|
|
940
952
|
return {
|
|
@@ -952,5 +964,4 @@ var purePieSeries = function purePieSeries() {
|
|
|
952
964
|
}],
|
|
953
965
|
type: 'object'
|
|
954
966
|
};
|
|
955
|
-
};
|
|
956
|
-
exports.purePieSeries = purePieSeries;
|
|
967
|
+
};
|
package/lib/shadow.js
CHANGED
|
@@ -10,7 +10,7 @@ var defaultShadow = {
|
|
|
10
10
|
hShadow: 8,
|
|
11
11
|
blur: 8
|
|
12
12
|
};
|
|
13
|
-
var _default = function _default() {
|
|
13
|
+
var _default = exports["default"] = function _default() {
|
|
14
14
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultShadow,
|
|
15
15
|
_ref$color = _ref.color,
|
|
16
16
|
color = _ref$color === void 0 ? defaultShadow.color : _ref$color,
|
|
@@ -26,5 +26,4 @@ var _default = function _default() {
|
|
|
26
26
|
hShadow: hShadow,
|
|
27
27
|
blur: blur
|
|
28
28
|
};
|
|
29
|
-
};
|
|
30
|
-
exports["default"] = _default;
|
|
29
|
+
};
|
package/lib/show.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.showRule = exports["default"] = void 0;
|
|
7
|
-
var _default = function _default() {
|
|
7
|
+
var _default = exports["default"] = function _default() {
|
|
8
8
|
var show = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
9
9
|
return {
|
|
10
10
|
name: 'show',
|
|
@@ -12,13 +12,11 @@ var _default = function _default() {
|
|
|
12
12
|
type: 'boolean'
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
exports
|
|
16
|
-
var showRule = function showRule() {
|
|
15
|
+
var showRule = exports.showRule = function showRule() {
|
|
17
16
|
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "show";
|
|
18
17
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "$eq";
|
|
19
18
|
var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
20
19
|
return {
|
|
21
20
|
rule: [[name, type, value]]
|
|
22
21
|
};
|
|
23
|
-
};
|
|
24
|
-
exports.showRule = showRule;
|
|
22
|
+
};
|
package/lib/textOverflow.js
CHANGED
|
@@ -8,7 +8,7 @@ var defaultTextOverflow = {
|
|
|
8
8
|
textOverflow: 'ellipsis',
|
|
9
9
|
speed: 5
|
|
10
10
|
};
|
|
11
|
-
var _default = function _default() {
|
|
11
|
+
var _default = exports["default"] = function _default() {
|
|
12
12
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultTextOverflow,
|
|
13
13
|
_ref$textOverflow = _ref.textOverflow,
|
|
14
14
|
textOverflow = _ref$textOverflow === void 0 ? defaultTextOverflow.textOverflow : _ref$textOverflow,
|
|
@@ -41,5 +41,4 @@ var _default = function _default() {
|
|
|
41
41
|
min: 1
|
|
42
42
|
}
|
|
43
43
|
}];
|
|
44
|
-
};
|
|
45
|
-
exports["default"] = _default;
|
|
44
|
+
};
|