@easyv/config 1.2.18 → 1.2.20
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/highlight.js +526 -0
- package/lib/index.js +7 -0
- package/lib/series.js +1 -1
- package/package.json +1 -1
- package/src/highlight.js +494 -0
- package/src/index.js +4 -1
- package/src/series.js +1 -1
- package/pnpm-lock.yaml +0 -5974
package/lib/highlight.js
ADDED
|
@@ -0,0 +1,526 @@
|
|
|
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
|
+
var defaultConfig = {
|
|
11
|
+
show: true,
|
|
12
|
+
defaultSelected: "",
|
|
13
|
+
showType: "bar",
|
|
14
|
+
// openStack:true,
|
|
15
|
+
barStyle: {
|
|
16
|
+
style: "square",
|
|
17
|
+
// paddingInner:1,
|
|
18
|
+
// seriesIntervalWidth:1,
|
|
19
|
+
fillType: "color",
|
|
20
|
+
fill: (0, _.multiColor)({
|
|
21
|
+
type: "pure",
|
|
22
|
+
pure: "#EDC20A"
|
|
23
|
+
}),
|
|
24
|
+
border: {
|
|
25
|
+
borderWidth: 0,
|
|
26
|
+
borderColor: "#20ADFF"
|
|
27
|
+
},
|
|
28
|
+
url: "components/static-image/superChart/pattern.png",
|
|
29
|
+
size: {
|
|
30
|
+
width: 10,
|
|
31
|
+
height: 10
|
|
32
|
+
},
|
|
33
|
+
opacity: 0.65
|
|
34
|
+
},
|
|
35
|
+
icon: {
|
|
36
|
+
show: true,
|
|
37
|
+
mode: "single",
|
|
38
|
+
image: "components/static-image/superChart/fang.png",
|
|
39
|
+
size: {
|
|
40
|
+
width: 12,
|
|
41
|
+
height: 12
|
|
42
|
+
},
|
|
43
|
+
inner: {
|
|
44
|
+
color: "#83C4FF",
|
|
45
|
+
radius: 3
|
|
46
|
+
},
|
|
47
|
+
outer: {
|
|
48
|
+
color: "rgba(24,144,255,0.4)",
|
|
49
|
+
radius: 6
|
|
50
|
+
},
|
|
51
|
+
color: "#00FFFF",
|
|
52
|
+
radius: 4
|
|
53
|
+
},
|
|
54
|
+
headDecorate: {
|
|
55
|
+
show: true,
|
|
56
|
+
type: "image",
|
|
57
|
+
url: "",
|
|
58
|
+
video: "",
|
|
59
|
+
size: {
|
|
60
|
+
width: 20,
|
|
61
|
+
height: 20
|
|
62
|
+
},
|
|
63
|
+
translate: {
|
|
64
|
+
x: 0,
|
|
65
|
+
y: 0
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
numlabel: {
|
|
69
|
+
show: true,
|
|
70
|
+
textStyle: (0, _.font)(),
|
|
71
|
+
position: "outerStart",
|
|
72
|
+
reverse: true,
|
|
73
|
+
translate: {
|
|
74
|
+
x: 0,
|
|
75
|
+
y: 0
|
|
76
|
+
},
|
|
77
|
+
suffix: {
|
|
78
|
+
content: "",
|
|
79
|
+
font: (0, _.font)(),
|
|
80
|
+
translate: {
|
|
81
|
+
x: 0,
|
|
82
|
+
y: 0
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
var _default = exports["default"] = function _default() {
|
|
88
|
+
var isSuper = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
89
|
+
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultConfig,
|
|
90
|
+
_ref$show = _ref.show,
|
|
91
|
+
showConfig = _ref$show === void 0 ? defaultConfig.show : _ref$show,
|
|
92
|
+
_ref$defaultSelected = _ref.defaultSelected,
|
|
93
|
+
defaultSelected = _ref$defaultSelected === void 0 ? defaultConfig.defaultSelected : _ref$defaultSelected,
|
|
94
|
+
_ref$showType = _ref.showType,
|
|
95
|
+
showType = _ref$showType === void 0 ? defaultConfig.showType : _ref$showType,
|
|
96
|
+
_ref$barStyle = _ref.barStyle,
|
|
97
|
+
_ref$barStyle2 = _ref$barStyle === void 0 ? defaultConfig.barStyle : _ref$barStyle,
|
|
98
|
+
_ref$barStyle2$style = _ref$barStyle2.style,
|
|
99
|
+
style = _ref$barStyle2$style === void 0 ? defaultConfig.barStyle.type : _ref$barStyle2$style,
|
|
100
|
+
_ref$barStyle2$fillTy = _ref$barStyle2.fillType,
|
|
101
|
+
fillType = _ref$barStyle2$fillTy === void 0 ? defaultConfig.barStyle.fillType : _ref$barStyle2$fillTy,
|
|
102
|
+
_ref$barStyle2$fill = _ref$barStyle2.fill,
|
|
103
|
+
fill = _ref$barStyle2$fill === void 0 ? defaultConfig.barStyle.fill : _ref$barStyle2$fill,
|
|
104
|
+
_ref$barStyle2$border = _ref$barStyle2.border,
|
|
105
|
+
_ref$barStyle2$border2 = _ref$barStyle2$border === void 0 ? defaultConfig.barStyle.border : _ref$barStyle2$border,
|
|
106
|
+
_ref$barStyle2$border3 = _ref$barStyle2$border2.borderWidth,
|
|
107
|
+
borderWidth = _ref$barStyle2$border3 === void 0 ? defaultConfig.barStyle.border.borderWidth : _ref$barStyle2$border3,
|
|
108
|
+
_ref$barStyle2$border4 = _ref$barStyle2$border2.borderColor,
|
|
109
|
+
borderColor = _ref$barStyle2$border4 === void 0 ? defaultConfig.barStyle.border.borderColor : _ref$barStyle2$border4,
|
|
110
|
+
_ref$barStyle2$url = _ref$barStyle2.url,
|
|
111
|
+
url = _ref$barStyle2$url === void 0 ? defaultConfig.barStyle.url : _ref$barStyle2$url,
|
|
112
|
+
_ref$barStyle2$size = _ref$barStyle2.size,
|
|
113
|
+
_ref$barStyle2$size2 = _ref$barStyle2$size === void 0 ? defaultConfig.barStyle.size : _ref$barStyle2$size,
|
|
114
|
+
_ref$barStyle2$size2$ = _ref$barStyle2$size2.width,
|
|
115
|
+
width = _ref$barStyle2$size2$ === void 0 ? defaultConfig.barStyle.size.width : _ref$barStyle2$size2$,
|
|
116
|
+
_ref$barStyle2$size2$2 = _ref$barStyle2$size2.height,
|
|
117
|
+
height = _ref$barStyle2$size2$2 === void 0 ? defaultConfig.barStyle.size.height : _ref$barStyle2$size2$2,
|
|
118
|
+
_ref$barStyle2$opacit = _ref$barStyle2.opacity,
|
|
119
|
+
opacity = _ref$barStyle2$opacit === void 0 ? defaultConfig.barStyle.opacity : _ref$barStyle2$opacit,
|
|
120
|
+
_ref$icon = _ref.icon,
|
|
121
|
+
_ref$icon2 = _ref$icon === void 0 ? defaultConfig.icon : _ref$icon,
|
|
122
|
+
_ref$icon2$show = _ref$icon2.show,
|
|
123
|
+
showIcon = _ref$icon2$show === void 0 ? defaultConfig.icon.show : _ref$icon2$show,
|
|
124
|
+
_ref$icon2$mode = _ref$icon2.mode,
|
|
125
|
+
mode = _ref$icon2$mode === void 0 ? defaultConfig.icon.mode : _ref$icon2$mode,
|
|
126
|
+
_ref$icon2$image = _ref$icon2.image,
|
|
127
|
+
image = _ref$icon2$image === void 0 ? defaultConfig.icon.image : _ref$icon2$image,
|
|
128
|
+
_ref$icon2$size = _ref$icon2.size,
|
|
129
|
+
_ref$icon2$size2 = _ref$icon2$size === void 0 ? defaultConfig.icon.size : _ref$icon2$size,
|
|
130
|
+
_ref$icon2$size2$widt = _ref$icon2$size2.width,
|
|
131
|
+
iconWidth = _ref$icon2$size2$widt === void 0 ? defaultConfig.icon.size.width : _ref$icon2$size2$widt,
|
|
132
|
+
_ref$icon2$size2$heig = _ref$icon2$size2.height,
|
|
133
|
+
iconHeight = _ref$icon2$size2$heig === void 0 ? defaultConfig.icon.size.height : _ref$icon2$size2$heig,
|
|
134
|
+
_ref$icon2$inner = _ref$icon2.inner,
|
|
135
|
+
_ref$icon2$inner2 = _ref$icon2$inner === void 0 ? defaultConfig.icon.inner : _ref$icon2$inner,
|
|
136
|
+
_ref$icon2$inner2$col = _ref$icon2$inner2.color,
|
|
137
|
+
innerColor = _ref$icon2$inner2$col === void 0 ? defaultConfig.icon.inner.color : _ref$icon2$inner2$col,
|
|
138
|
+
_ref$icon2$inner2$rad = _ref$icon2$inner2.radius,
|
|
139
|
+
innerRadius = _ref$icon2$inner2$rad === void 0 ? defaultConfig.icon.inner.radius : _ref$icon2$inner2$rad,
|
|
140
|
+
_ref$icon2$outer = _ref$icon2.outer,
|
|
141
|
+
_ref$icon2$outer2 = _ref$icon2$outer === void 0 ? defaultConfig.icon.outer : _ref$icon2$outer,
|
|
142
|
+
_ref$icon2$outer2$col = _ref$icon2$outer2.color,
|
|
143
|
+
outerColor = _ref$icon2$outer2$col === void 0 ? defaultConfig.icon.outer.color : _ref$icon2$outer2$col,
|
|
144
|
+
_ref$icon2$outer2$rad = _ref$icon2$outer2.radius,
|
|
145
|
+
outerRadius = _ref$icon2$outer2$rad === void 0 ? defaultConfig.icon.outer.radius : _ref$icon2$outer2$rad,
|
|
146
|
+
_ref$icon2$color = _ref$icon2.color,
|
|
147
|
+
color = _ref$icon2$color === void 0 ? defaultConfig.icon.color : _ref$icon2$color,
|
|
148
|
+
_ref$icon2$radius = _ref$icon2.radius,
|
|
149
|
+
radius = _ref$icon2$radius === void 0 ? defaultConfig.icon.radius : _ref$icon2$radius,
|
|
150
|
+
_ref$headDecorate = _ref.headDecorate,
|
|
151
|
+
_ref$headDecorate2 = _ref$headDecorate === void 0 ? defaultConfig.headDecorate : _ref$headDecorate,
|
|
152
|
+
_ref$headDecorate2$sh = _ref$headDecorate2.show,
|
|
153
|
+
showHead = _ref$headDecorate2$sh === void 0 ? defaultConfig.headDecorate.show : _ref$headDecorate2$sh,
|
|
154
|
+
_ref$headDecorate2$ty = _ref$headDecorate2.type,
|
|
155
|
+
headType = _ref$headDecorate2$ty === void 0 ? defaultConfig.headDecorate.type : _ref$headDecorate2$ty,
|
|
156
|
+
_ref$headDecorate2$ur = _ref$headDecorate2.url,
|
|
157
|
+
headUrl = _ref$headDecorate2$ur === void 0 ? defaultConfig.headDecorate.url : _ref$headDecorate2$ur,
|
|
158
|
+
_ref$headDecorate2$vi = _ref$headDecorate2.video,
|
|
159
|
+
video = _ref$headDecorate2$vi === void 0 ? defaultConfig.headDecorate.video : _ref$headDecorate2$vi,
|
|
160
|
+
_ref$headDecorate2$si = _ref$headDecorate2.size,
|
|
161
|
+
_ref$headDecorate2$si2 = _ref$headDecorate2$si === void 0 ? defaultConfig.headDecorate.size : _ref$headDecorate2$si,
|
|
162
|
+
_ref$headDecorate2$si3 = _ref$headDecorate2$si2.width,
|
|
163
|
+
headWidth = _ref$headDecorate2$si3 === void 0 ? defaultConfig.headDecorate.size.width : _ref$headDecorate2$si3,
|
|
164
|
+
_ref$headDecorate2$si4 = _ref$headDecorate2$si2.height,
|
|
165
|
+
headHeight = _ref$headDecorate2$si4 === void 0 ? defaultConfig.headDecorate.size.height : _ref$headDecorate2$si4,
|
|
166
|
+
_ref$headDecorate2$tr = _ref$headDecorate2.translate,
|
|
167
|
+
_ref$headDecorate2$tr2 = _ref$headDecorate2$tr === void 0 ? defaultConfig.headDecorate.translate : _ref$headDecorate2$tr,
|
|
168
|
+
_ref$headDecorate2$tr3 = _ref$headDecorate2$tr2.x,
|
|
169
|
+
x = _ref$headDecorate2$tr3 === void 0 ? defaultConfig.headDecorate.translate.x : _ref$headDecorate2$tr3,
|
|
170
|
+
_ref$headDecorate2$tr4 = _ref$headDecorate2$tr2.y,
|
|
171
|
+
y = _ref$headDecorate2$tr4 === void 0 ? defaultConfig.headDecorate.translate.y : _ref$headDecorate2$tr4,
|
|
172
|
+
_ref$numlabel = _ref.numlabel,
|
|
173
|
+
_ref$numlabel2 = _ref$numlabel === void 0 ? defaultConfig.numlabel : _ref$numlabel,
|
|
174
|
+
_ref$numlabel2$show = _ref$numlabel2.show,
|
|
175
|
+
showLabel = _ref$numlabel2$show === void 0 ? defaultConfig.numlabel.show : _ref$numlabel2$show,
|
|
176
|
+
_ref$numlabel2$textSt = _ref$numlabel2.textStyle,
|
|
177
|
+
textStyle = _ref$numlabel2$textSt === void 0 ? defaultConfig.numlabel.textStyle : _ref$numlabel2$textSt,
|
|
178
|
+
_ref$numlabel2$positi = _ref$numlabel2.position,
|
|
179
|
+
position = _ref$numlabel2$positi === void 0 ? defaultConfig.numlabel.position : _ref$numlabel2$positi,
|
|
180
|
+
_ref$numlabel2$revers = _ref$numlabel2.reverse,
|
|
181
|
+
reverse = _ref$numlabel2$revers === void 0 ? defaultConfig.numlabel.reverse : _ref$numlabel2$revers,
|
|
182
|
+
_ref$numlabel2$transl = _ref$numlabel2.translate,
|
|
183
|
+
_ref$numlabel2$transl2 = _ref$numlabel2$transl === void 0 ? defaultConfig.numlabel.translate : _ref$numlabel2$transl,
|
|
184
|
+
_ref$numlabel2$transl3 = _ref$numlabel2$transl2.x,
|
|
185
|
+
labelX = _ref$numlabel2$transl3 === void 0 ? defaultConfig.numlabel.translate.x : _ref$numlabel2$transl3,
|
|
186
|
+
_ref$numlabel2$transl4 = _ref$numlabel2$transl2.y,
|
|
187
|
+
labelY = _ref$numlabel2$transl4 === void 0 ? defaultConfig.numlabel.translate.y : _ref$numlabel2$transl4,
|
|
188
|
+
_ref$numlabel2$suffix = _ref$numlabel2.suffix,
|
|
189
|
+
_ref$numlabel2$suffix2 = _ref$numlabel2$suffix === void 0 ? defaultConfig.numlabel.suffix : _ref$numlabel2$suffix,
|
|
190
|
+
_ref$numlabel2$suffix3 = _ref$numlabel2$suffix2.content,
|
|
191
|
+
content = _ref$numlabel2$suffix3 === void 0 ? defaultConfig.numlabel.suffix.content : _ref$numlabel2$suffix3,
|
|
192
|
+
_ref$numlabel2$suffix4 = _ref$numlabel2$suffix2.font,
|
|
193
|
+
suffixFont = _ref$numlabel2$suffix4 === void 0 ? defaultConfig.numlabel.suffix.font : _ref$numlabel2$suffix4,
|
|
194
|
+
_ref$numlabel2$suffix5 = _ref$numlabel2$suffix2.translate,
|
|
195
|
+
_ref$numlabel2$suffix6 = _ref$numlabel2$suffix5 === void 0 ? defaultConfig.numlabel.suffix.translate : _ref$numlabel2$suffix5,
|
|
196
|
+
_ref$numlabel2$suffix7 = _ref$numlabel2$suffix6.x,
|
|
197
|
+
suffixX = _ref$numlabel2$suffix7 === void 0 ? defaultConfig.numlabel.suffix.translate.x : _ref$numlabel2$suffix7,
|
|
198
|
+
_ref$numlabel2$suffix8 = _ref$numlabel2$suffix6.y,
|
|
199
|
+
suffixY = _ref$numlabel2$suffix8 === void 0 ? defaultConfig.numlabel.suffix.translate.x : _ref$numlabel2$suffix8;
|
|
200
|
+
return (0, _.sc)("selectStyle", "点击选中样式", "", [(0, _.show)(showConfig), (0, _.sc)("defaultSelected", "默认选中", "input", defaultSelected, {
|
|
201
|
+
other: {
|
|
202
|
+
tip: "输入X轴的标签,则选中那一列"
|
|
203
|
+
}
|
|
204
|
+
}, (0, _.showRule)()), (0, _.sc)("showType", "类型", "radio", showType, {
|
|
205
|
+
mode: "button",
|
|
206
|
+
options: [{
|
|
207
|
+
name: "柱状",
|
|
208
|
+
value: "bar"
|
|
209
|
+
}, {
|
|
210
|
+
name: "折线",
|
|
211
|
+
value: "line"
|
|
212
|
+
}, {
|
|
213
|
+
name: "面积",
|
|
214
|
+
value: "area"
|
|
215
|
+
}]
|
|
216
|
+
}, isSuper ? (0, _.showRule)() : (0, _.showRule)("hidden", "$eq", true)),
|
|
217
|
+
// sc("openStack","开启堆叠","boolean",openStack,{},{rule:[["show","$eq",true],["showType","$eq","bar"]]}),
|
|
218
|
+
(0, _.sc)("barStyle", "柱状样式", "", [{
|
|
219
|
+
name: 'style',
|
|
220
|
+
displayName: '类型',
|
|
221
|
+
value: style,
|
|
222
|
+
type: 'select',
|
|
223
|
+
config: {
|
|
224
|
+
options: [{
|
|
225
|
+
name: '方形',
|
|
226
|
+
value: 'square'
|
|
227
|
+
}, {
|
|
228
|
+
name: '子弹头',
|
|
229
|
+
value: 'round'
|
|
230
|
+
}]
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
// {
|
|
234
|
+
// name: 'paddingInner',
|
|
235
|
+
// displayName: '柱间间距',
|
|
236
|
+
// value: paddingInner,
|
|
237
|
+
// type: 'number',
|
|
238
|
+
// config: {
|
|
239
|
+
// step: 0.01,
|
|
240
|
+
// },
|
|
241
|
+
// },
|
|
242
|
+
// {
|
|
243
|
+
// name: 'seriesIntervalWidth',
|
|
244
|
+
// displayName: '系列间距',
|
|
245
|
+
// value: seriesIntervalWidth,
|
|
246
|
+
// type: 'number',
|
|
247
|
+
// config: {
|
|
248
|
+
// step: 0.01,
|
|
249
|
+
// },
|
|
250
|
+
// },
|
|
251
|
+
{
|
|
252
|
+
name: 'fillType',
|
|
253
|
+
displayName: '填充样式',
|
|
254
|
+
value: fillType,
|
|
255
|
+
type: 'radio',
|
|
256
|
+
config: {
|
|
257
|
+
options: [{
|
|
258
|
+
name: '颜色',
|
|
259
|
+
value: 'color'
|
|
260
|
+
}, {
|
|
261
|
+
name: '纹理',
|
|
262
|
+
value: 'pattern'
|
|
263
|
+
}]
|
|
264
|
+
}
|
|
265
|
+
}, {
|
|
266
|
+
rule: [['fillType', '$eq', 'color']],
|
|
267
|
+
name: 'fill',
|
|
268
|
+
displayName: '柱子颜色',
|
|
269
|
+
type: 'multicolor',
|
|
270
|
+
value: fill,
|
|
271
|
+
markColorType: 'seriesGradient'
|
|
272
|
+
}, {
|
|
273
|
+
rule: [['fillType', '$eq', 'color']],
|
|
274
|
+
name: 'border',
|
|
275
|
+
displayName: '描边',
|
|
276
|
+
value: [{
|
|
277
|
+
name: "borderWidth",
|
|
278
|
+
displayName: "线宽",
|
|
279
|
+
type: "number",
|
|
280
|
+
value: borderWidth,
|
|
281
|
+
config: {
|
|
282
|
+
min: 0
|
|
283
|
+
}
|
|
284
|
+
}, {
|
|
285
|
+
name: "borderColor",
|
|
286
|
+
displayName: "描边颜色",
|
|
287
|
+
type: "color",
|
|
288
|
+
value: borderColor
|
|
289
|
+
}]
|
|
290
|
+
}, {
|
|
291
|
+
rule: [['fillType', '$eq', 'pattern']],
|
|
292
|
+
name: 'url',
|
|
293
|
+
displayName: '纹理图片',
|
|
294
|
+
type: 'uploadImage',
|
|
295
|
+
value: url
|
|
296
|
+
}, {
|
|
297
|
+
rule: [['fillType', '$eq', 'pattern']],
|
|
298
|
+
name: 'size',
|
|
299
|
+
displayName: '尺寸',
|
|
300
|
+
value: [{
|
|
301
|
+
name: 'width',
|
|
302
|
+
displayName: '宽度',
|
|
303
|
+
value: width,
|
|
304
|
+
config: {
|
|
305
|
+
span: 12,
|
|
306
|
+
suffix: 'W'
|
|
307
|
+
}
|
|
308
|
+
}, {
|
|
309
|
+
name: 'height',
|
|
310
|
+
displayName: '高度',
|
|
311
|
+
value: height,
|
|
312
|
+
config: {
|
|
313
|
+
span: 12,
|
|
314
|
+
suffix: 'H'
|
|
315
|
+
}
|
|
316
|
+
}],
|
|
317
|
+
type: 'group'
|
|
318
|
+
}, {
|
|
319
|
+
rule: [['fillType', '$eq', 'pattern']],
|
|
320
|
+
type: 'range',
|
|
321
|
+
name: 'opacity',
|
|
322
|
+
displayName: '透明度',
|
|
323
|
+
value: opacity,
|
|
324
|
+
config: {
|
|
325
|
+
max: 1,
|
|
326
|
+
min: 0,
|
|
327
|
+
step: 0.01
|
|
328
|
+
}
|
|
329
|
+
}], {
|
|
330
|
+
defaultOpen: true
|
|
331
|
+
}, {
|
|
332
|
+
rule: [["show", "$eq", true], ["showType", "$eq", "bar"]]
|
|
333
|
+
}), (0, _.sc)("icon", "数据标记", "", [{
|
|
334
|
+
name: 'show',
|
|
335
|
+
displayName: '显示',
|
|
336
|
+
value: showIcon,
|
|
337
|
+
type: 'boolean'
|
|
338
|
+
}, {
|
|
339
|
+
rule: [['show', '$eq', true]],
|
|
340
|
+
name: 'mode',
|
|
341
|
+
displayName: '模式',
|
|
342
|
+
value: mode,
|
|
343
|
+
type: 'select',
|
|
344
|
+
config: {
|
|
345
|
+
options: [{
|
|
346
|
+
name: '单圆',
|
|
347
|
+
value: 'single'
|
|
348
|
+
}, {
|
|
349
|
+
name: '双圆',
|
|
350
|
+
value: 'double'
|
|
351
|
+
}, {
|
|
352
|
+
name: '自定义',
|
|
353
|
+
value: 'custom'
|
|
354
|
+
}]
|
|
355
|
+
}
|
|
356
|
+
}, {
|
|
357
|
+
rule: [['show', '$eq', true], ['mode', '$eq', 'custom']],
|
|
358
|
+
name: 'image',
|
|
359
|
+
displayName: '图片',
|
|
360
|
+
value: image,
|
|
361
|
+
type: 'uploadImage'
|
|
362
|
+
}, {
|
|
363
|
+
rule: [['show', '$eq', true], ['mode', '$eq', 'custom']],
|
|
364
|
+
name: 'size',
|
|
365
|
+
displayName: '尺寸',
|
|
366
|
+
value: [{
|
|
367
|
+
name: 'width',
|
|
368
|
+
displayName: '宽度',
|
|
369
|
+
value: iconWidth,
|
|
370
|
+
config: {
|
|
371
|
+
span: 12,
|
|
372
|
+
suffix: 'W'
|
|
373
|
+
}
|
|
374
|
+
}, {
|
|
375
|
+
name: 'height',
|
|
376
|
+
displayName: '高度',
|
|
377
|
+
value: iconHeight,
|
|
378
|
+
config: {
|
|
379
|
+
span: 12,
|
|
380
|
+
suffix: 'H'
|
|
381
|
+
}
|
|
382
|
+
}],
|
|
383
|
+
type: 'group'
|
|
384
|
+
}, {
|
|
385
|
+
rule: [['show', '$eq', true], ['mode', '$eq', 'double']],
|
|
386
|
+
name: 'inner',
|
|
387
|
+
displayName: '内圆',
|
|
388
|
+
value: [{
|
|
389
|
+
name: 'color',
|
|
390
|
+
displayName: '颜色',
|
|
391
|
+
value: innerColor,
|
|
392
|
+
type: 'color'
|
|
393
|
+
}, {
|
|
394
|
+
name: 'radius',
|
|
395
|
+
displayName: '半径',
|
|
396
|
+
value: innerRadius,
|
|
397
|
+
type: 'number',
|
|
398
|
+
config: {
|
|
399
|
+
min: 0,
|
|
400
|
+
suffix: 'px'
|
|
401
|
+
}
|
|
402
|
+
}]
|
|
403
|
+
}, {
|
|
404
|
+
rule: [['show', '$eq', true], ['mode', '$eq', 'double']],
|
|
405
|
+
name: 'outer',
|
|
406
|
+
displayName: '外圆',
|
|
407
|
+
value: [{
|
|
408
|
+
name: 'color',
|
|
409
|
+
displayName: '颜色',
|
|
410
|
+
value: outerColor,
|
|
411
|
+
type: 'color'
|
|
412
|
+
}, {
|
|
413
|
+
name: 'radius',
|
|
414
|
+
displayName: '半径',
|
|
415
|
+
value: outerRadius,
|
|
416
|
+
type: 'number',
|
|
417
|
+
config: {
|
|
418
|
+
min: 0,
|
|
419
|
+
suffix: 'px'
|
|
420
|
+
}
|
|
421
|
+
}]
|
|
422
|
+
}, (0, _defineProperty2["default"])({
|
|
423
|
+
rule: [['show', '$eq', true], ['mode', '$eq', 'single']],
|
|
424
|
+
name: 'color',
|
|
425
|
+
displayName: '颜色',
|
|
426
|
+
value: color,
|
|
427
|
+
type: 'color',
|
|
428
|
+
markColorType: 'palette'
|
|
429
|
+
}, "markColorType", 'palette'), {
|
|
430
|
+
rule: [['show', '$eq', true], ['mode', '$eq', 'single']],
|
|
431
|
+
name: 'radius',
|
|
432
|
+
displayName: '半径',
|
|
433
|
+
value: radius,
|
|
434
|
+
type: 'number',
|
|
435
|
+
config: {
|
|
436
|
+
min: 0,
|
|
437
|
+
suffix: 'px'
|
|
438
|
+
}
|
|
439
|
+
}], {
|
|
440
|
+
defaultOpen: true
|
|
441
|
+
}, {
|
|
442
|
+
rule: [["show", "$eq", true], ["showType", "$neq", "bar"]]
|
|
443
|
+
}), (0, _.sc)("headDecorate", "头部装饰", "", [(0, _.show)(showHead), (0, _.sc)("type", "类型", "radio", headType, {
|
|
444
|
+
options: [{
|
|
445
|
+
name: "图片",
|
|
446
|
+
value: "image"
|
|
447
|
+
}, {
|
|
448
|
+
name: "视频",
|
|
449
|
+
value: "video"
|
|
450
|
+
}]
|
|
451
|
+
}), (0, _.sc)("url", "图片", "image", headUrl, {}, (0, _.showRule)("type", "$eq", "image")), (0, _.sc)("video", "视频", "video", video, {}, (0, _.showRule)("type", "$eq", "video")), (0, _.sc)("size", "尺寸", "group", [(0, _.sc)("width", "宽", "number", headWidth, {
|
|
452
|
+
span: 12,
|
|
453
|
+
suffix: "px"
|
|
454
|
+
}), (0, _.sc)("height", "高", "number", headHeight, {
|
|
455
|
+
span: 12,
|
|
456
|
+
suffix: "px"
|
|
457
|
+
})]), (0, _.translate)(x, y)], {}, {
|
|
458
|
+
rule: [["show", "$eq", true], ["showType", "$eq", "bar"]]
|
|
459
|
+
}), (0, _.sc)("numlabel", "数值标签", "", [{
|
|
460
|
+
name: 'show',
|
|
461
|
+
displayName: '显示',
|
|
462
|
+
value: showLabel,
|
|
463
|
+
type: 'boolean'
|
|
464
|
+
}, {
|
|
465
|
+
rule: [['show', '$eq', true]],
|
|
466
|
+
name: 'font',
|
|
467
|
+
displayName: '文本样式',
|
|
468
|
+
type: 'textStyle',
|
|
469
|
+
value: textStyle
|
|
470
|
+
}, {
|
|
471
|
+
name: "position",
|
|
472
|
+
displayName: "位置",
|
|
473
|
+
value: position,
|
|
474
|
+
type: "select",
|
|
475
|
+
config: {
|
|
476
|
+
options: [{
|
|
477
|
+
name: "起点",
|
|
478
|
+
value: "start"
|
|
479
|
+
}, {
|
|
480
|
+
name: "居中",
|
|
481
|
+
value: "middle"
|
|
482
|
+
}, {
|
|
483
|
+
name: "终点",
|
|
484
|
+
value: "end"
|
|
485
|
+
}, {
|
|
486
|
+
name: "终点外",
|
|
487
|
+
value: "outerStart"
|
|
488
|
+
}, {
|
|
489
|
+
name: "图表外",
|
|
490
|
+
value: "chartStart"
|
|
491
|
+
}]
|
|
492
|
+
}
|
|
493
|
+
}, {
|
|
494
|
+
rule: [["position", "$neq", "middle"], ["position", "$neq", "chartStart"]],
|
|
495
|
+
name: "reverse",
|
|
496
|
+
displayName: "负值反向",
|
|
497
|
+
type: "boolean",
|
|
498
|
+
value: reverse,
|
|
499
|
+
tip: "开启后负值的标签会与正值对称显示"
|
|
500
|
+
}, {
|
|
501
|
+
name: 'translate',
|
|
502
|
+
displayName: '偏移',
|
|
503
|
+
type: 'group',
|
|
504
|
+
value: [{
|
|
505
|
+
name: 'x',
|
|
506
|
+
displayName: 'X',
|
|
507
|
+
type: 'number',
|
|
508
|
+
value: labelX,
|
|
509
|
+
config: {
|
|
510
|
+
span: 12,
|
|
511
|
+
suffix: 'px'
|
|
512
|
+
}
|
|
513
|
+
}, {
|
|
514
|
+
name: 'y',
|
|
515
|
+
displayName: 'Y',
|
|
516
|
+
type: 'number',
|
|
517
|
+
value: labelY,
|
|
518
|
+
config: {
|
|
519
|
+
span: 12,
|
|
520
|
+
suffix: 'px'
|
|
521
|
+
}
|
|
522
|
+
}]
|
|
523
|
+
}, (0, _.sc)("suffix", "后缀", "", [(0, _.sc)("content", "内容", "input", content), (0, _.sc)("font", "字体样式", "textStyle", suffixFont), (0, _.translate)(suffixX, suffixY)], {
|
|
524
|
+
defaultOpen: true
|
|
525
|
+
}, (0, _.showRule)())], {}, (0, _.showRule)())]);
|
|
526
|
+
};
|
package/lib/index.js
CHANGED
|
@@ -125,6 +125,12 @@ Object.defineProperty(exports, "gridLine", {
|
|
|
125
125
|
return _gridLine["default"];
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
|
+
Object.defineProperty(exports, "highlight", {
|
|
129
|
+
enumerable: true,
|
|
130
|
+
get: function get() {
|
|
131
|
+
return _highlight["default"];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
128
134
|
Object.defineProperty(exports, "imageGroup", {
|
|
129
135
|
enumerable: true,
|
|
130
136
|
get: function get() {
|
|
@@ -351,5 +357,6 @@ var _textOverflow = _interopRequireDefault(require("./textOverflow"));
|
|
|
351
357
|
var _baseLine = _interopRequireDefault(require("./baseLine"));
|
|
352
358
|
var _control = require("./control");
|
|
353
359
|
var _pieTooltip = _interopRequireDefault(require("./pieTooltip"));
|
|
360
|
+
var _highlight = _interopRequireDefault(require("./highlight"));
|
|
354
361
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
355
362
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
package/lib/series.js
CHANGED
|
@@ -312,7 +312,7 @@ var bandSeries = exports.bandSeries = function bandSeries() {
|
|
|
312
312
|
}), (0, _.sc)("height", "高", "number", headDecorate.size && headDecorate.size.height || 20, {
|
|
313
313
|
span: 12,
|
|
314
314
|
suffix: "px"
|
|
315
|
-
})]), translate(headDecorate.translate && headDecorate.translate.x, headDecorate.translate && headDecorate.translate.y)], {
|
|
315
|
+
})]), (0, _.translate)(headDecorate.translate && headDecorate.translate.x, headDecorate.translate && headDecorate.translate.y)], {
|
|
316
316
|
defaultOpen: true
|
|
317
317
|
}), (0, _.label)(bandLabel)].filter(function (item) {
|
|
318
318
|
return !!item;
|