@easyv/config 1.2.0 → 1.2.2
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/control.js +12 -0
- package/lib/series.js +2 -1
- package/package.json +1 -1
- package/src/control.js +12 -0
- package/src/series.js +2 -0
package/lib/control.js
CHANGED
|
@@ -11,6 +11,7 @@ var defaultControl = {
|
|
|
11
11
|
left: 40,
|
|
12
12
|
right: 40
|
|
13
13
|
},
|
|
14
|
+
gap: 20,
|
|
14
15
|
drag: {
|
|
15
16
|
width: 30,
|
|
16
17
|
color: "RGBA(255, 255, 255, .3)"
|
|
@@ -28,6 +29,8 @@ var control = function control() {
|
|
|
28
29
|
left = _ref$margin$left === void 0 ? defaultControl.margin.left : _ref$margin$left,
|
|
29
30
|
_ref$margin$right = _ref$margin.right,
|
|
30
31
|
right = _ref$margin$right === void 0 ? defaultControl.margin.right : _ref$margin$right,
|
|
32
|
+
_ref$gap = _ref.gap,
|
|
33
|
+
gap = _ref$gap === void 0 ? defaultControl.gap : _ref$gap,
|
|
31
34
|
_ref$drag = _ref.drag;
|
|
32
35
|
_ref$drag = _ref$drag === void 0 ? defaultControl.drag : _ref$drag;
|
|
33
36
|
var _ref$drag$width = _ref$drag.width,
|
|
@@ -68,6 +71,15 @@ var control = function control() {
|
|
|
68
71
|
span: 12
|
|
69
72
|
}
|
|
70
73
|
}]
|
|
74
|
+
}, {
|
|
75
|
+
name: "gap",
|
|
76
|
+
displayName: "上间距",
|
|
77
|
+
type: "number",
|
|
78
|
+
value: gap,
|
|
79
|
+
config: {
|
|
80
|
+
suffix: "px"
|
|
81
|
+
},
|
|
82
|
+
tip: "与X轴的距离"
|
|
71
83
|
}, {
|
|
72
84
|
name: "drag",
|
|
73
85
|
displayName: "详情区域",
|
package/lib/series.js
CHANGED
|
@@ -750,6 +750,7 @@ var areaSeries = function areaSeries() {
|
|
|
750
750
|
_ref6$line$lineShadow3 = _ref6$line$lineShadow.shadow,
|
|
751
751
|
shadow_ = _ref6$line$lineShadow3 === void 0 ? defaultLineSeries.line.lineShadow.shadow : _ref6$line$lineShadow3,
|
|
752
752
|
lineLighter = _ref6$line.lighter,
|
|
753
|
+
lineIcon = _ref6.icon,
|
|
753
754
|
_ref6$label = _ref6.label,
|
|
754
755
|
areaLabel = _ref6$label === void 0 ? defaultLineSeries.label : _ref6$label,
|
|
755
756
|
_ref6$areaType = _ref6.areaType,
|
|
@@ -859,7 +860,7 @@ var areaSeries = function areaSeries() {
|
|
|
859
860
|
})), [(0, _.sc)("lineShadow", "折线阴影", "", [(0, _.show)(showShadow), (0, _.sc)("shadow", "阴影", "shadow", (0, _.shadow)(shadow_), {}, (0, _.showRule)())]), lineLighter && lighter(lineLighter)]).filter(function (item) {
|
|
860
861
|
return !!item;
|
|
861
862
|
})
|
|
862
|
-
}, (0, _.label)(areaLabel)],
|
|
863
|
+
}, icon(lineIcon), (0, _.label)(areaLabel)],
|
|
863
864
|
type: 'object'
|
|
864
865
|
};
|
|
865
866
|
};
|
package/package.json
CHANGED
package/src/control.js
CHANGED
|
@@ -5,6 +5,7 @@ const defaultControl={
|
|
|
5
5
|
left:40,
|
|
6
6
|
right:40
|
|
7
7
|
},
|
|
8
|
+
gap:20,
|
|
8
9
|
drag:{
|
|
9
10
|
width:30,
|
|
10
11
|
color:"RGBA(255, 255, 255, .3)"
|
|
@@ -18,6 +19,7 @@ export const control = ({
|
|
|
18
19
|
left = defaultControl.margin.left,
|
|
19
20
|
right = defaultControl.margin.right
|
|
20
21
|
} = defaultControl.margin,
|
|
22
|
+
gap = defaultControl.gap,
|
|
21
23
|
drag:{
|
|
22
24
|
width = defaultControl.drag.width,
|
|
23
25
|
color:dragColor = defaultControl.drag.color
|
|
@@ -64,6 +66,16 @@ export const control = ({
|
|
|
64
66
|
},
|
|
65
67
|
],
|
|
66
68
|
},
|
|
69
|
+
{
|
|
70
|
+
name:"gap",
|
|
71
|
+
displayName:"上间距",
|
|
72
|
+
type:"number",
|
|
73
|
+
value:gap,
|
|
74
|
+
config:{
|
|
75
|
+
suffix:"px"
|
|
76
|
+
},
|
|
77
|
+
tip:"与X轴的距离"
|
|
78
|
+
},
|
|
67
79
|
{
|
|
68
80
|
name: "drag",
|
|
69
81
|
displayName: "详情区域",
|
package/src/series.js
CHANGED
|
@@ -725,6 +725,7 @@ export const areaSeries = (
|
|
|
725
725
|
} = defaultLineSeries.line.lineShadow,
|
|
726
726
|
lighter: lineLighter,
|
|
727
727
|
} = defaultLineSeries.line,
|
|
728
|
+
icon:lineIcon,
|
|
728
729
|
label: areaLabel = defaultLineSeries.label,
|
|
729
730
|
areaType = defaultLineSeries.areaType,
|
|
730
731
|
areaColor = defaultLineSeries.areaColor,
|
|
@@ -826,6 +827,7 @@ export const areaSeries = (
|
|
|
826
827
|
lineLighter && lighter(lineLighter),
|
|
827
828
|
].filter((item) => !!item),
|
|
828
829
|
},
|
|
830
|
+
icon(lineIcon),
|
|
829
831
|
label(areaLabel),
|
|
830
832
|
],
|
|
831
833
|
type: 'object',
|