@easyv/config 1.1.31 → 1.1.32
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/baseLine.js +228 -228
- package/lib/label.js +942 -841
- package/package.json +1 -1
package/lib/baseLine.js
CHANGED
|
@@ -1,229 +1,229 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _ = require(".");
|
|
10
|
-
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; }
|
|
11
|
-
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; } //@ts-check
|
|
12
|
-
var defaultBaseLine = {
|
|
13
|
-
line: {
|
|
14
|
-
yOrZ: 'y',
|
|
15
|
-
margin: {
|
|
16
|
-
marginLeft: 0,
|
|
17
|
-
marginRight: 100
|
|
18
|
-
},
|
|
19
|
-
lineType: 'dash',
|
|
20
|
-
color: '#FF781E',
|
|
21
|
-
lineWidth: 1,
|
|
22
|
-
strokeDasharray: '3,4'
|
|
23
|
-
},
|
|
24
|
-
dataStyle: {
|
|
25
|
-
label: {
|
|
26
|
-
show: true,
|
|
27
|
-
text: '平均值',
|
|
28
|
-
font: (0, _.font)({
|
|
29
|
-
color: 'rgba(255, 120, 30, 0.7)',
|
|
30
|
-
fontFamily: 'Mircosoft Yahei',
|
|
31
|
-
fontSize: 12,
|
|
32
|
-
bold: false,
|
|
33
|
-
italic: false,
|
|
34
|
-
letterSpacing: 0
|
|
35
|
-
}),
|
|
36
|
-
translate: {
|
|
37
|
-
x: 4,
|
|
38
|
-
y: 1
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
data: {
|
|
42
|
-
show: false,
|
|
43
|
-
font: (0, _.font)(),
|
|
44
|
-
translate: {
|
|
45
|
-
x: 0,
|
|
46
|
-
y: 0
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
var _default = function _default() {
|
|
52
|
-
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBaseLine,
|
|
53
|
-
_ref$line = _ref.line,
|
|
54
|
-
_ref$line2 = _ref$line === void 0 ? defaultBaseLine.line : _ref$line,
|
|
55
|
-
_ref$line2$yOrZ = _ref$line2.yOrZ,
|
|
56
|
-
yOrZ = _ref$line2$yOrZ === void 0 ? defaultBaseLine.line.yOrZ : _ref$line2$yOrZ,
|
|
57
|
-
_ref$line2$margin = _ref$line2.margin,
|
|
58
|
-
_ref$line2$margin2 = _ref$line2$margin === void 0 ? defaultBaseLine.line.margin : _ref$line2$margin,
|
|
59
|
-
_ref$line2$margin2$ma = _ref$line2$margin2.marginLeft,
|
|
60
|
-
marginLeft = _ref$line2$margin2$ma === void 0 ? defaultBaseLine.line.margin.marginLeft : _ref$line2$margin2$ma,
|
|
61
|
-
_ref$line2$margin2$ma2 = _ref$line2$margin2.marginRight,
|
|
62
|
-
marginRight = _ref$line2$margin2$ma2 === void 0 ? defaultBaseLine.line.margin.marginRight : _ref$line2$margin2$ma2,
|
|
63
|
-
_ref$line2$lineType = _ref$line2.lineType,
|
|
64
|
-
lineType = _ref$line2$lineType === void 0 ? defaultBaseLine.line.lineType : _ref$line2$lineType,
|
|
65
|
-
_ref$line2$color = _ref$line2.color,
|
|
66
|
-
color = _ref$line2$color === void 0 ? defaultBaseLine.line.color : _ref$line2$color,
|
|
67
|
-
_ref$line2$lineWidth = _ref$line2.lineWidth,
|
|
68
|
-
lineWidth = _ref$line2$lineWidth === void 0 ? defaultBaseLine.line.lineWidth : _ref$line2$lineWidth,
|
|
69
|
-
_ref$line2$strokeDash = _ref$line2.strokeDasharray,
|
|
70
|
-
strokeDasharray = _ref$line2$strokeDash === void 0 ? defaultBaseLine.line.strokeDasharray : _ref$line2$strokeDash,
|
|
71
|
-
_ref$dataStyle = _ref.dataStyle,
|
|
72
|
-
_ref$dataStyle2 = _ref$dataStyle === void 0 ? defaultBaseLine.dataStyle : _ref$dataStyle,
|
|
73
|
-
_ref$dataStyle2$label = _ref$dataStyle2.label,
|
|
74
|
-
_ref$dataStyle2$label2 = _ref$dataStyle2$label.showLabel,
|
|
75
|
-
showLabel = _ref$dataStyle2$label2 === void 0 ? defaultBaseLine.dataStyle.label.show : _ref$dataStyle2$label2,
|
|
76
|
-
_ref$dataStyle2$label3 = _ref$dataStyle2$label.text,
|
|
77
|
-
text = _ref$dataStyle2$label3 === void 0 ? defaultBaseLine.dataStyle.label.text : _ref$dataStyle2$label3,
|
|
78
|
-
_ref$dataStyle2$label4 = _ref$dataStyle2$label.textStyle,
|
|
79
|
-
textStyle = _ref$dataStyle2$label4 === void 0 ? defaultBaseLine.dataStyle.label.font : _ref$dataStyle2$label4,
|
|
80
|
-
_ref$dataStyle2$label5 = _ref$dataStyle2$label.translate,
|
|
81
|
-
_ref$dataStyle2$label6 = _ref$dataStyle2$label5 === void 0 ? defaultBaseLine.dataStyle.label.translate : _ref$dataStyle2$label5,
|
|
82
|
-
x = _ref$dataStyle2$label6.x,
|
|
83
|
-
y = _ref$dataStyle2$label6.y,
|
|
84
|
-
_ref$dataStyle2$data = _ref$dataStyle2.data,
|
|
85
|
-
_ref$dataStyle2$data2 = _ref$dataStyle2$data === void 0 ? defaultBaseLine.dataStyle.data : _ref$dataStyle2$data,
|
|
86
|
-
_ref$dataStyle2$data3 = _ref$dataStyle2$data2.showData,
|
|
87
|
-
showData = _ref$dataStyle2$data3 === void 0 ? defaultBaseLine.dataStyle.data.show : _ref$dataStyle2$data3,
|
|
88
|
-
_ref$dataStyle2$data4 = _ref$dataStyle2$data2.dataStyle,
|
|
89
|
-
dataStyle = _ref$dataStyle2$data4 === void 0 ? defaultBaseLine.dataStyle.data.dataStyle : _ref$dataStyle2$data4,
|
|
90
|
-
_ref$dataStyle2$data5 = _ref$dataStyle2$data2.dataTranslate,
|
|
91
|
-
_ref$dataStyle2$data6 = _ref$dataStyle2$data5 === void 0 ? defaultBaseLine.dataStyle.data.translate : _ref$dataStyle2$data5,
|
|
92
|
-
_ref$dataStyle2$data7 = _ref$dataStyle2$data6.x,
|
|
93
|
-
dataTranslateX = _ref$dataStyle2$data7 === void 0 ? defaultBaseLine.dataStyle.data.translate.x : _ref$dataStyle2$data7,
|
|
94
|
-
_ref$dataStyle2$data8 = _ref$dataStyle2$data6.y,
|
|
95
|
-
dataTranslateY = _ref$dataStyle2$data8 === void 0 ? defaultBaseLine.dataStyle.data.translate.y : _ref$dataStyle2$data8;
|
|
96
|
-
return [{
|
|
97
|
-
name: 'line',
|
|
98
|
-
displayName: '线样式',
|
|
99
|
-
config: {
|
|
100
|
-
layout: 'horizontal'
|
|
101
|
-
},
|
|
102
|
-
value: [{
|
|
103
|
-
name: 'yOrZ',
|
|
104
|
-
displayName: '纵轴选择',
|
|
105
|
-
value: yOrZ,
|
|
106
|
-
type: 'select',
|
|
107
|
-
config: {
|
|
108
|
-
options: [{
|
|
109
|
-
name: "X轴",
|
|
110
|
-
value: 'x'
|
|
111
|
-
}, {
|
|
112
|
-
name: 'Y轴',
|
|
113
|
-
value: 'y'
|
|
114
|
-
}, {
|
|
115
|
-
name: 'Z轴',
|
|
116
|
-
value: 'z'
|
|
117
|
-
}]
|
|
118
|
-
}
|
|
119
|
-
}, {
|
|
120
|
-
name: 'margin',
|
|
121
|
-
displayName: '边距',
|
|
122
|
-
type: 'group',
|
|
123
|
-
value: [{
|
|
124
|
-
type: 'number',
|
|
125
|
-
name: 'marginLeft',
|
|
126
|
-
displayName: '左',
|
|
127
|
-
value: marginLeft,
|
|
128
|
-
config: {
|
|
129
|
-
span: 12,
|
|
130
|
-
showStep: false
|
|
131
|
-
}
|
|
132
|
-
}, {
|
|
133
|
-
type: 'number',
|
|
134
|
-
name: 'marginRight',
|
|
135
|
-
displayName: '右',
|
|
136
|
-
value: marginRight,
|
|
137
|
-
config: {
|
|
138
|
-
span: 12,
|
|
139
|
-
showStep: false
|
|
140
|
-
}
|
|
141
|
-
}]
|
|
142
|
-
}, {
|
|
143
|
-
name: 'lineType',
|
|
144
|
-
displayName: '线样式',
|
|
145
|
-
value: lineType,
|
|
146
|
-
type: 'select',
|
|
147
|
-
config: {
|
|
148
|
-
options: [{
|
|
149
|
-
name: '实线',
|
|
150
|
-
value: 'solid'
|
|
151
|
-
}, {
|
|
152
|
-
name: '虚线',
|
|
153
|
-
value: 'dash'
|
|
154
|
-
}]
|
|
155
|
-
}
|
|
156
|
-
}, {
|
|
157
|
-
name: 'color',
|
|
158
|
-
displayName: '颜色',
|
|
159
|
-
value: color,
|
|
160
|
-
type: 'color',
|
|
161
|
-
markColorType: 'assistColor'
|
|
162
|
-
}, {
|
|
163
|
-
name: 'lineWidth',
|
|
164
|
-
displayName: '粗细',
|
|
165
|
-
value: lineWidth,
|
|
166
|
-
type: 'number',
|
|
167
|
-
config: {
|
|
168
|
-
data: 'px'
|
|
169
|
-
}
|
|
170
|
-
}, {
|
|
171
|
-
rule: [['lineType', '$eq', 'dash']],
|
|
172
|
-
name: 'strokeDasharray',
|
|
173
|
-
displayName: '虚线样式',
|
|
174
|
-
value: strokeDasharray,
|
|
175
|
-
type: 'input',
|
|
176
|
-
tip: '格式使用半角字符,如3,3'
|
|
177
|
-
}]
|
|
178
|
-
}, {
|
|
179
|
-
name: 'dataStyle',
|
|
180
|
-
displayName: '数据样式',
|
|
181
|
-
value: [{
|
|
182
|
-
name: 'label',
|
|
183
|
-
displayName: '标签',
|
|
184
|
-
config: {
|
|
185
|
-
defaultOpen: true
|
|
186
|
-
},
|
|
187
|
-
value: [{
|
|
188
|
-
name: 'show',
|
|
189
|
-
displayName: '显示',
|
|
190
|
-
value: showLabel,
|
|
191
|
-
type: 'boolean'
|
|
192
|
-
}, {
|
|
193
|
-
rule: [['show', '$eq', true]],
|
|
194
|
-
name: "label",
|
|
195
|
-
displayName: "标签内容",
|
|
196
|
-
type: 'input',
|
|
197
|
-
value: text
|
|
198
|
-
}, {
|
|
199
|
-
rule: [['show', '$eq', true]],
|
|
200
|
-
name: 'textStyle',
|
|
201
|
-
displayName: '文本样式',
|
|
202
|
-
value: (0, _.font)(textStyle),
|
|
203
|
-
type: 'textStyle',
|
|
204
|
-
markColorType: 'textColor'
|
|
205
|
-
}, _objectSpread({
|
|
206
|
-
rule: [['show', '$eq', true]]
|
|
207
|
-
}, (0, _.translate)(x, y))]
|
|
208
|
-
}, {
|
|
209
|
-
name: 'data',
|
|
210
|
-
displayName: '数值',
|
|
211
|
-
value: [{
|
|
212
|
-
name: 'show',
|
|
213
|
-
displayName: '显示',
|
|
214
|
-
value: showData,
|
|
215
|
-
type: 'boolean'
|
|
216
|
-
}, {
|
|
217
|
-
rule: [['show', '$eq', true]],
|
|
218
|
-
name: 'dataStyle',
|
|
219
|
-
displayName: '文本样式',
|
|
220
|
-
value: (0, _.font)(dataStyle),
|
|
221
|
-
type: 'textStyle',
|
|
222
|
-
markColorType: 'textColor'
|
|
223
|
-
}, _objectSpread({
|
|
224
|
-
rule: [['show', '$eq', true]]
|
|
225
|
-
}, (0, _.translate)(dataTranslateX, dataTranslateY))]
|
|
226
|
-
}]
|
|
227
|
-
}];
|
|
228
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _ = require(".");
|
|
10
|
+
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; }
|
|
11
|
+
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; } //@ts-check
|
|
12
|
+
var defaultBaseLine = {
|
|
13
|
+
line: {
|
|
14
|
+
yOrZ: 'y',
|
|
15
|
+
margin: {
|
|
16
|
+
marginLeft: 0,
|
|
17
|
+
marginRight: 100
|
|
18
|
+
},
|
|
19
|
+
lineType: 'dash',
|
|
20
|
+
color: '#FF781E',
|
|
21
|
+
lineWidth: 1,
|
|
22
|
+
strokeDasharray: '3,4'
|
|
23
|
+
},
|
|
24
|
+
dataStyle: {
|
|
25
|
+
label: {
|
|
26
|
+
show: true,
|
|
27
|
+
text: '平均值',
|
|
28
|
+
font: (0, _.font)({
|
|
29
|
+
color: 'rgba(255, 120, 30, 0.7)',
|
|
30
|
+
fontFamily: 'Mircosoft Yahei',
|
|
31
|
+
fontSize: 12,
|
|
32
|
+
bold: false,
|
|
33
|
+
italic: false,
|
|
34
|
+
letterSpacing: 0
|
|
35
|
+
}),
|
|
36
|
+
translate: {
|
|
37
|
+
x: 4,
|
|
38
|
+
y: 1
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
data: {
|
|
42
|
+
show: false,
|
|
43
|
+
font: (0, _.font)(),
|
|
44
|
+
translate: {
|
|
45
|
+
x: 0,
|
|
46
|
+
y: 0
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var _default = function _default() {
|
|
52
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBaseLine,
|
|
53
|
+
_ref$line = _ref.line,
|
|
54
|
+
_ref$line2 = _ref$line === void 0 ? defaultBaseLine.line : _ref$line,
|
|
55
|
+
_ref$line2$yOrZ = _ref$line2.yOrZ,
|
|
56
|
+
yOrZ = _ref$line2$yOrZ === void 0 ? defaultBaseLine.line.yOrZ : _ref$line2$yOrZ,
|
|
57
|
+
_ref$line2$margin = _ref$line2.margin,
|
|
58
|
+
_ref$line2$margin2 = _ref$line2$margin === void 0 ? defaultBaseLine.line.margin : _ref$line2$margin,
|
|
59
|
+
_ref$line2$margin2$ma = _ref$line2$margin2.marginLeft,
|
|
60
|
+
marginLeft = _ref$line2$margin2$ma === void 0 ? defaultBaseLine.line.margin.marginLeft : _ref$line2$margin2$ma,
|
|
61
|
+
_ref$line2$margin2$ma2 = _ref$line2$margin2.marginRight,
|
|
62
|
+
marginRight = _ref$line2$margin2$ma2 === void 0 ? defaultBaseLine.line.margin.marginRight : _ref$line2$margin2$ma2,
|
|
63
|
+
_ref$line2$lineType = _ref$line2.lineType,
|
|
64
|
+
lineType = _ref$line2$lineType === void 0 ? defaultBaseLine.line.lineType : _ref$line2$lineType,
|
|
65
|
+
_ref$line2$color = _ref$line2.color,
|
|
66
|
+
color = _ref$line2$color === void 0 ? defaultBaseLine.line.color : _ref$line2$color,
|
|
67
|
+
_ref$line2$lineWidth = _ref$line2.lineWidth,
|
|
68
|
+
lineWidth = _ref$line2$lineWidth === void 0 ? defaultBaseLine.line.lineWidth : _ref$line2$lineWidth,
|
|
69
|
+
_ref$line2$strokeDash = _ref$line2.strokeDasharray,
|
|
70
|
+
strokeDasharray = _ref$line2$strokeDash === void 0 ? defaultBaseLine.line.strokeDasharray : _ref$line2$strokeDash,
|
|
71
|
+
_ref$dataStyle = _ref.dataStyle,
|
|
72
|
+
_ref$dataStyle2 = _ref$dataStyle === void 0 ? defaultBaseLine.dataStyle : _ref$dataStyle,
|
|
73
|
+
_ref$dataStyle2$label = _ref$dataStyle2.label,
|
|
74
|
+
_ref$dataStyle2$label2 = _ref$dataStyle2$label.showLabel,
|
|
75
|
+
showLabel = _ref$dataStyle2$label2 === void 0 ? defaultBaseLine.dataStyle.label.show : _ref$dataStyle2$label2,
|
|
76
|
+
_ref$dataStyle2$label3 = _ref$dataStyle2$label.text,
|
|
77
|
+
text = _ref$dataStyle2$label3 === void 0 ? defaultBaseLine.dataStyle.label.text : _ref$dataStyle2$label3,
|
|
78
|
+
_ref$dataStyle2$label4 = _ref$dataStyle2$label.textStyle,
|
|
79
|
+
textStyle = _ref$dataStyle2$label4 === void 0 ? defaultBaseLine.dataStyle.label.font : _ref$dataStyle2$label4,
|
|
80
|
+
_ref$dataStyle2$label5 = _ref$dataStyle2$label.translate,
|
|
81
|
+
_ref$dataStyle2$label6 = _ref$dataStyle2$label5 === void 0 ? defaultBaseLine.dataStyle.label.translate : _ref$dataStyle2$label5,
|
|
82
|
+
x = _ref$dataStyle2$label6.x,
|
|
83
|
+
y = _ref$dataStyle2$label6.y,
|
|
84
|
+
_ref$dataStyle2$data = _ref$dataStyle2.data,
|
|
85
|
+
_ref$dataStyle2$data2 = _ref$dataStyle2$data === void 0 ? defaultBaseLine.dataStyle.data : _ref$dataStyle2$data,
|
|
86
|
+
_ref$dataStyle2$data3 = _ref$dataStyle2$data2.showData,
|
|
87
|
+
showData = _ref$dataStyle2$data3 === void 0 ? defaultBaseLine.dataStyle.data.show : _ref$dataStyle2$data3,
|
|
88
|
+
_ref$dataStyle2$data4 = _ref$dataStyle2$data2.dataStyle,
|
|
89
|
+
dataStyle = _ref$dataStyle2$data4 === void 0 ? defaultBaseLine.dataStyle.data.dataStyle : _ref$dataStyle2$data4,
|
|
90
|
+
_ref$dataStyle2$data5 = _ref$dataStyle2$data2.dataTranslate,
|
|
91
|
+
_ref$dataStyle2$data6 = _ref$dataStyle2$data5 === void 0 ? defaultBaseLine.dataStyle.data.translate : _ref$dataStyle2$data5,
|
|
92
|
+
_ref$dataStyle2$data7 = _ref$dataStyle2$data6.x,
|
|
93
|
+
dataTranslateX = _ref$dataStyle2$data7 === void 0 ? defaultBaseLine.dataStyle.data.translate.x : _ref$dataStyle2$data7,
|
|
94
|
+
_ref$dataStyle2$data8 = _ref$dataStyle2$data6.y,
|
|
95
|
+
dataTranslateY = _ref$dataStyle2$data8 === void 0 ? defaultBaseLine.dataStyle.data.translate.y : _ref$dataStyle2$data8;
|
|
96
|
+
return [{
|
|
97
|
+
name: 'line',
|
|
98
|
+
displayName: '线样式',
|
|
99
|
+
config: {
|
|
100
|
+
layout: 'horizontal'
|
|
101
|
+
},
|
|
102
|
+
value: [{
|
|
103
|
+
name: 'yOrZ',
|
|
104
|
+
displayName: '纵轴选择',
|
|
105
|
+
value: yOrZ,
|
|
106
|
+
type: 'select',
|
|
107
|
+
config: {
|
|
108
|
+
options: [{
|
|
109
|
+
name: "X轴",
|
|
110
|
+
value: 'x'
|
|
111
|
+
}, {
|
|
112
|
+
name: 'Y轴',
|
|
113
|
+
value: 'y'
|
|
114
|
+
}, {
|
|
115
|
+
name: 'Z轴',
|
|
116
|
+
value: 'z'
|
|
117
|
+
}]
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
name: 'margin',
|
|
121
|
+
displayName: '边距',
|
|
122
|
+
type: 'group',
|
|
123
|
+
value: [{
|
|
124
|
+
type: 'number',
|
|
125
|
+
name: 'marginLeft',
|
|
126
|
+
displayName: '左',
|
|
127
|
+
value: marginLeft,
|
|
128
|
+
config: {
|
|
129
|
+
span: 12,
|
|
130
|
+
showStep: false
|
|
131
|
+
}
|
|
132
|
+
}, {
|
|
133
|
+
type: 'number',
|
|
134
|
+
name: 'marginRight',
|
|
135
|
+
displayName: '右',
|
|
136
|
+
value: marginRight,
|
|
137
|
+
config: {
|
|
138
|
+
span: 12,
|
|
139
|
+
showStep: false
|
|
140
|
+
}
|
|
141
|
+
}]
|
|
142
|
+
}, {
|
|
143
|
+
name: 'lineType',
|
|
144
|
+
displayName: '线样式',
|
|
145
|
+
value: lineType,
|
|
146
|
+
type: 'select',
|
|
147
|
+
config: {
|
|
148
|
+
options: [{
|
|
149
|
+
name: '实线',
|
|
150
|
+
value: 'solid'
|
|
151
|
+
}, {
|
|
152
|
+
name: '虚线',
|
|
153
|
+
value: 'dash'
|
|
154
|
+
}]
|
|
155
|
+
}
|
|
156
|
+
}, {
|
|
157
|
+
name: 'color',
|
|
158
|
+
displayName: '颜色',
|
|
159
|
+
value: color,
|
|
160
|
+
type: 'color',
|
|
161
|
+
markColorType: 'assistColor'
|
|
162
|
+
}, {
|
|
163
|
+
name: 'lineWidth',
|
|
164
|
+
displayName: '粗细',
|
|
165
|
+
value: lineWidth,
|
|
166
|
+
type: 'number',
|
|
167
|
+
config: {
|
|
168
|
+
data: 'px'
|
|
169
|
+
}
|
|
170
|
+
}, {
|
|
171
|
+
rule: [['lineType', '$eq', 'dash']],
|
|
172
|
+
name: 'strokeDasharray',
|
|
173
|
+
displayName: '虚线样式',
|
|
174
|
+
value: strokeDasharray,
|
|
175
|
+
type: 'input',
|
|
176
|
+
tip: '格式使用半角字符,如3,3'
|
|
177
|
+
}]
|
|
178
|
+
}, {
|
|
179
|
+
name: 'dataStyle',
|
|
180
|
+
displayName: '数据样式',
|
|
181
|
+
value: [{
|
|
182
|
+
name: 'label',
|
|
183
|
+
displayName: '标签',
|
|
184
|
+
config: {
|
|
185
|
+
defaultOpen: true
|
|
186
|
+
},
|
|
187
|
+
value: [{
|
|
188
|
+
name: 'show',
|
|
189
|
+
displayName: '显示',
|
|
190
|
+
value: showLabel,
|
|
191
|
+
type: 'boolean'
|
|
192
|
+
}, {
|
|
193
|
+
rule: [['show', '$eq', true]],
|
|
194
|
+
name: "label",
|
|
195
|
+
displayName: "标签内容",
|
|
196
|
+
type: 'input',
|
|
197
|
+
value: text
|
|
198
|
+
}, {
|
|
199
|
+
rule: [['show', '$eq', true]],
|
|
200
|
+
name: 'textStyle',
|
|
201
|
+
displayName: '文本样式',
|
|
202
|
+
value: (0, _.font)(textStyle),
|
|
203
|
+
type: 'textStyle',
|
|
204
|
+
markColorType: 'textColor'
|
|
205
|
+
}, _objectSpread({
|
|
206
|
+
rule: [['show', '$eq', true]]
|
|
207
|
+
}, (0, _.translate)(x, y))]
|
|
208
|
+
}, {
|
|
209
|
+
name: 'data',
|
|
210
|
+
displayName: '数值',
|
|
211
|
+
value: [{
|
|
212
|
+
name: 'show',
|
|
213
|
+
displayName: '显示',
|
|
214
|
+
value: showData,
|
|
215
|
+
type: 'boolean'
|
|
216
|
+
}, {
|
|
217
|
+
rule: [['show', '$eq', true]],
|
|
218
|
+
name: 'dataStyle',
|
|
219
|
+
displayName: '文本样式',
|
|
220
|
+
value: (0, _.font)(dataStyle),
|
|
221
|
+
type: 'textStyle',
|
|
222
|
+
markColorType: 'textColor'
|
|
223
|
+
}, _objectSpread({
|
|
224
|
+
rule: [['show', '$eq', true]]
|
|
225
|
+
}, (0, _.translate)(dataTranslateX, dataTranslateY))]
|
|
226
|
+
}]
|
|
227
|
+
}];
|
|
228
|
+
};
|
|
229
229
|
exports["default"] = _default;
|