@easyv/config 1.1.9 → 1.1.11
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/.babelrc +9 -9
- package/CHANGELOG.md +17 -17
- package/index.js +3 -3
- package/lib/animation.js +37 -51
- package/lib/axes.js +31 -47
- package/lib/axisLine.js +6 -9
- package/lib/baseLine.js +31 -40
- package/lib/brush.js +12 -15
- package/lib/dimension.js +8 -11
- package/lib/extent.js +4 -7
- package/lib/font.js +12 -15
- package/lib/gridLine.js +8 -11
- package/lib/imageGroup.js +48 -0
- package/lib/index.js +95 -117
- package/lib/interaction.js +4 -9
- package/lib/label.js +103 -124
- package/lib/legend.js +165 -184
- package/lib/mapping.js +4 -7
- package/lib/margin.js +8 -11
- package/lib/multiColor.js +10 -13
- package/lib/mutiColor.js +51 -51
- package/lib/pie.js +163 -221
- package/lib/sc.js +4 -7
- package/lib/series.js +174 -163
- package/lib/shadow.js +8 -11
- package/lib/show.js +0 -4
- package/lib/textOverflow.js +4 -7
- package/lib/tickLine.js +8 -11
- package/lib/tooltip.js +68 -65
- package/lib/translate.js +0 -2
- package/lib/unit.js +21 -30
- package/package.json +30 -30
- package/src/animation.js +256 -256
- package/src/axes.js +162 -162
- package/src/axisLine.js +39 -39
- package/src/baseLine.js +216 -216
- package/src/brush.js +90 -90
- package/src/dimension.js +49 -49
- package/src/extent.js +29 -29
- package/src/font.js +23 -23
- package/src/gridLine.js +49 -49
- package/src/imageGroup.js +37 -0
- package/src/index.js +101 -99
- package/src/interaction.js +121 -121
- package/src/label.js +722 -722
- package/src/legend.js +982 -982
- package/src/mapping.js +26 -26
- package/src/margin.js +58 -58
- package/src/multiColor.js +30 -30
- package/src/pie.js +1035 -1035
- package/src/sc.js +11 -8
- package/src/series.js +867 -824
- package/src/shadow.js +17 -17
- package/src/show.js +11 -11
- package/src/textOverflow.js +34 -34
- package/src/tickLine.js +51 -51
- package/src/tooltip.js +433 -425
- package/src/translate.js +27 -27
- package/src/unit.js +67 -67
package/lib/mutiColor.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var defaultMutiColor = {
|
|
8
|
-
type: 'linear',
|
|
9
|
-
pure: '#fff',
|
|
10
|
-
linear: {
|
|
11
|
-
stops: [{
|
|
12
|
-
offset: 0,
|
|
13
|
-
color: '#fff'
|
|
14
|
-
}, {
|
|
15
|
-
offset: 50,
|
|
16
|
-
color: '#ff0'
|
|
17
|
-
}, {
|
|
18
|
-
offset: 100,
|
|
19
|
-
color: '#f0f'
|
|
20
|
-
}],
|
|
21
|
-
angle: 30,
|
|
22
|
-
opacity: 1
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
var _default = function _default() {
|
|
27
|
-
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultMutiColor,
|
|
28
|
-
_ref$type = _ref.type,
|
|
29
|
-
type = _ref$type === void 0 ? defaultMutiColor.type : _ref$type,
|
|
30
|
-
_ref$pure = _ref.pure,
|
|
31
|
-
pure = _ref$pure === void 0 ? defaultMutiColor.pure : _ref$pure,
|
|
32
|
-
_ref$linear = _ref.linear;
|
|
33
|
-
|
|
34
|
-
_ref$linear = _ref$linear === void 0 ? defaultMutiColor.linear : _ref$linear;
|
|
35
|
-
var _ref$linear$stops = _ref$linear.stops,
|
|
36
|
-
stops = _ref$linear$stops === void 0 ? defaultMutiColor.linear.stops : _ref$linear$stops,
|
|
37
|
-
_ref$linear$angle = _ref$linear.angle,
|
|
38
|
-
angle = _ref$linear$angle === void 0 ? defaultMutiColor.linear.angle : _ref$linear$angle,
|
|
39
|
-
_ref$linear$opacity = _ref$linear.opacity,
|
|
40
|
-
opacity = _ref$linear$opacity === void 0 ? defaultMutiColor.linear.opacity : _ref$linear$opacity;
|
|
41
|
-
return {
|
|
42
|
-
type: type,
|
|
43
|
-
pure: pure,
|
|
44
|
-
linear: {
|
|
45
|
-
stops: stops,
|
|
46
|
-
angle: angle,
|
|
47
|
-
opacity: opacity
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var defaultMutiColor = {
|
|
8
|
+
type: 'linear',
|
|
9
|
+
pure: '#fff',
|
|
10
|
+
linear: {
|
|
11
|
+
stops: [{
|
|
12
|
+
offset: 0,
|
|
13
|
+
color: '#fff'
|
|
14
|
+
}, {
|
|
15
|
+
offset: 50,
|
|
16
|
+
color: '#ff0'
|
|
17
|
+
}, {
|
|
18
|
+
offset: 100,
|
|
19
|
+
color: '#f0f'
|
|
20
|
+
}],
|
|
21
|
+
angle: 30,
|
|
22
|
+
opacity: 1
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var _default = function _default() {
|
|
27
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultMutiColor,
|
|
28
|
+
_ref$type = _ref.type,
|
|
29
|
+
type = _ref$type === void 0 ? defaultMutiColor.type : _ref$type,
|
|
30
|
+
_ref$pure = _ref.pure,
|
|
31
|
+
pure = _ref$pure === void 0 ? defaultMutiColor.pure : _ref$pure,
|
|
32
|
+
_ref$linear = _ref.linear;
|
|
33
|
+
|
|
34
|
+
_ref$linear = _ref$linear === void 0 ? defaultMutiColor.linear : _ref$linear;
|
|
35
|
+
var _ref$linear$stops = _ref$linear.stops,
|
|
36
|
+
stops = _ref$linear$stops === void 0 ? defaultMutiColor.linear.stops : _ref$linear$stops,
|
|
37
|
+
_ref$linear$angle = _ref$linear.angle,
|
|
38
|
+
angle = _ref$linear$angle === void 0 ? defaultMutiColor.linear.angle : _ref$linear$angle,
|
|
39
|
+
_ref$linear$opacity = _ref$linear.opacity,
|
|
40
|
+
opacity = _ref$linear$opacity === void 0 ? defaultMutiColor.linear.opacity : _ref$linear$opacity;
|
|
41
|
+
return {
|
|
42
|
+
type: type,
|
|
43
|
+
pure: pure,
|
|
44
|
+
linear: {
|
|
45
|
+
stops: stops,
|
|
46
|
+
angle: angle,
|
|
47
|
+
opacity: opacity
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
|
|
52
52
|
exports["default"] = _default;
|