evui 3.4.207 → 3.4.209
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/README.md +18 -33
- package/dist/404.html +44 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.js +22738 -0
- package/dist/index.umd.cjs +28 -0
- package/dist/style.css +1 -0
- package/package.json +46 -43
- package/dist/evui.common.js +0 -63681
- package/dist/evui.common.js.map +0 -1
- package/dist/evui.umd.js +0 -63691
- package/dist/evui.umd.js.map +0 -1
- package/dist/evui.umd.min.js +0 -2
- package/dist/evui.umd.min.js.map +0 -1
- package/dist/img/EVUI.b82ee81a.svg +0 -293
- package/src/assets/logo.png +0 -0
- package/src/common/emitter.js +0 -20
- package/src/common/utils.bignumber.js +0 -67
- package/src/common/utils.debounce.js +0 -223
- package/src/common/utils.js +0 -151
- package/src/common/utils.table.js +0 -78
- package/src/common/utils.throttle.js +0 -83
- package/src/common/utils.tree.js +0 -18
- package/src/components/button/Button.vue +0 -195
- package/src/components/button/index.js +0 -7
- package/src/components/buttonGroup/ButtonGroup.vue +0 -11
- package/src/components/buttonGroup/index.js +0 -7
- package/src/components/calendar/Calendar.vue +0 -725
- package/src/components/calendar/index.js +0 -7
- package/src/components/calendar/uses.js +0 -1410
- package/src/components/chart/Chart.vue +0 -363
- package/src/components/chart/ChartToolbar.vue +0 -52
- package/src/components/chart/chart.core.js +0 -1170
- package/src/components/chart/chartZoom.core.js +0 -540
- package/src/components/chart/element/element.bar.js +0 -672
- package/src/components/chart/element/element.bar.time.js +0 -166
- package/src/components/chart/element/element.heatmap.js +0 -743
- package/src/components/chart/element/element.line.js +0 -611
- package/src/components/chart/element/element.pie.js +0 -197
- package/src/components/chart/element/element.scatter.js +0 -320
- package/src/components/chart/element/element.tip.js +0 -717
- package/src/components/chart/helpers/helpers.canvas.js +0 -265
- package/src/components/chart/helpers/helpers.constant.js +0 -235
- package/src/components/chart/helpers/helpers.util.js +0 -400
- package/src/components/chart/index.js +0 -9
- package/src/components/chart/model/index.js +0 -50
- package/src/components/chart/model/model.series.js +0 -125
- package/src/components/chart/model/model.store.js +0 -1427
- package/src/components/chart/plugins/plugins.interaction.js +0 -1659
- package/src/components/chart/plugins/plugins.legend.gradient.js +0 -606
- package/src/components/chart/plugins/plugins.legend.js +0 -1543
- package/src/components/chart/plugins/plugins.pie.js +0 -254
- package/src/components/chart/plugins/plugins.scrollbar.js +0 -732
- package/src/components/chart/plugins/plugins.title.js +0 -61
- package/src/components/chart/plugins/plugins.tooltip.js +0 -1041
- package/src/components/chart/scale/scale.js +0 -951
- package/src/components/chart/scale/scale.linear.js +0 -268
- package/src/components/chart/scale/scale.logarithmic.js +0 -135
- package/src/components/chart/scale/scale.step.js +0 -430
- package/src/components/chart/scale/scale.time.category.js +0 -338
- package/src/components/chart/scale/scale.time.js +0 -49
- package/src/components/chart/style/chart.scss +0 -405
- package/src/components/chart/uses.js +0 -721
- package/src/components/chartBrush/ChartBrush.vue +0 -323
- package/src/components/chartBrush/chartBrush.core.js +0 -691
- package/src/components/chartBrush/index.js +0 -9
- package/src/components/chartBrush/uses.js +0 -23
- package/src/components/chartGroup/ChartGroup.vue +0 -144
- package/src/components/chartGroup/index.js +0 -9
- package/src/components/chartGroup/style/chartGroup.scss +0 -5
- package/src/components/chartGroup/uses.js +0 -53
- package/src/components/checkbox/Checkbox.vue +0 -229
- package/src/components/checkbox/index.js +0 -7
- package/src/components/checkboxGroup/CheckboxGroup.vue +0 -44
- package/src/components/checkboxGroup/index.js +0 -7
- package/src/components/contextMenu/ContextMenu.vue +0 -95
- package/src/components/contextMenu/MenuList.vue +0 -182
- package/src/components/contextMenu/index.js +0 -7
- package/src/components/contextMenu/uses.js +0 -223
- package/src/components/datePicker/DatePicker.vue +0 -504
- package/src/components/datePicker/index.js +0 -7
- package/src/components/datePicker/uses.js +0 -460
- package/src/components/grid/Grid.vue +0 -1535
- package/src/components/grid/GridColumnSetting.vue +0 -358
- package/src/components/grid/GridFilterSetting.vue +0 -323
- package/src/components/grid/GridPagination.vue +0 -75
- package/src/components/grid/GridSummary.vue +0 -314
- package/src/components/grid/GridToolbar.vue +0 -35
- package/src/components/grid/icon/icon-option-button.vue +0 -17
- package/src/components/grid/icon/icon-sort-button.vue +0 -67
- package/src/components/grid/index.js +0 -11
- package/src/components/grid/style/grid.scss +0 -417
- package/src/components/grid/uses.js +0 -1629
- package/src/components/icon/Icon.vue +0 -53
- package/src/components/icon/index.js +0 -8
- package/src/components/inputNumber/InputNumber.vue +0 -212
- package/src/components/inputNumber/index.js +0 -7
- package/src/components/inputNumber/uses.js +0 -217
- package/src/components/loading/Loading.vue +0 -125
- package/src/components/loading/index.js +0 -7
- package/src/components/menu/Menu.vue +0 -79
- package/src/components/menu/MenuItem.vue +0 -201
- package/src/components/menu/index.js +0 -7
- package/src/components/message/Message.vue +0 -229
- package/src/components/message/index.js +0 -34
- package/src/components/messageBox/MessageBox.vue +0 -358
- package/src/components/messageBox/index.js +0 -22
- package/src/components/notification/Notification.vue +0 -316
- package/src/components/notification/index.js +0 -49
- package/src/components/pagination/Pagination.vue +0 -317
- package/src/components/pagination/index.js +0 -7
- package/src/components/pagination/pageButton.vue +0 -31
- package/src/components/progress/Progress.vue +0 -139
- package/src/components/progress/index.js +0 -7
- package/src/components/radio/Radio.vue +0 -159
- package/src/components/radio/index.js +0 -7
- package/src/components/radioGroup/RadioGroup.vue +0 -41
- package/src/components/radioGroup/index.js +0 -7
- package/src/components/scheduler/Scheduler.vue +0 -149
- package/src/components/scheduler/index.js +0 -7
- package/src/components/scheduler/uses.js +0 -183
- package/src/components/select/Select.vue +0 -556
- package/src/components/select/index.js +0 -7
- package/src/components/select/uses.js +0 -379
- package/src/components/slider/Slider.vue +0 -505
- package/src/components/slider/index.js +0 -7
- package/src/components/slider/uses.js +0 -391
- package/src/components/tabPanel/TabPanel.vue +0 -74
- package/src/components/tabPanel/index.js +0 -7
- package/src/components/tabs/Tabs.vue +0 -517
- package/src/components/tabs/index.js +0 -7
- package/src/components/textField/TextField.vue +0 -399
- package/src/components/textField/index.js +0 -7
- package/src/components/timePicker/TimePicker.vue +0 -364
- package/src/components/timePicker/index.js +0 -7
- package/src/components/toggle/Toggle.vue +0 -115
- package/src/components/toggle/index.js +0 -7
- package/src/components/tree/Tree.vue +0 -338
- package/src/components/tree/TreeNode.vue +0 -293
- package/src/components/tree/index.js +0 -7
- package/src/components/treeGrid/TreeGrid.vue +0 -1074
- package/src/components/treeGrid/TreeGridNode.vue +0 -349
- package/src/components/treeGrid/TreeGridToolbar.vue +0 -35
- package/src/components/treeGrid/icon/icon-tree.png +0 -0
- package/src/components/treeGrid/index.js +0 -9
- package/src/components/treeGrid/style/treeGrid.scss +0 -277
- package/src/components/treeGrid/uses.js +0 -1178
- package/src/components/window/Window.vue +0 -329
- package/src/components/window/index.js +0 -7
- package/src/components/window/uses.js +0 -908
- package/src/directives/clickoutside.js +0 -90
- package/src/main.js +0 -120
- package/src/style/components/input.scss +0 -108
- package/src/style/functions.scss +0 -3
- package/src/style/index.scss +0 -6
- package/src/style/lib/fonts/EVUI.eot +0 -0
- package/src/style/lib/fonts/EVUI.svg +0 -293
- package/src/style/lib/fonts/EVUI.ttf +0 -0
- package/src/style/lib/fonts/EVUI.woff +0 -0
- package/src/style/lib/icon.css +0 -888
- package/src/style/mixins.scss +0 -94
- package/src/style/themes.scss +0 -69
- package/src/style/variables.scss +0 -22
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
import Util from './helpers.util';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
/**
|
|
5
|
-
* Calculate X position
|
|
6
|
-
* @param {number|null|undefined} value graph value
|
|
7
|
-
* @param {number} min min value
|
|
8
|
-
* @param {number} max max value
|
|
9
|
-
* @param {number} area height for axis
|
|
10
|
-
* @param {number} startPoint startPoint
|
|
11
|
-
*
|
|
12
|
-
* @returns {number|null} position
|
|
13
|
-
*/
|
|
14
|
-
calculateX(value, min, max, area, startPoint = 0) {
|
|
15
|
-
if (value === null || value === undefined) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
if (value > max || value < min) {
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const scalingFactor = area / (max - min);
|
|
24
|
-
return Math.ceil(startPoint + (scalingFactor * (value - min)));
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Calculate X position (for timebar)
|
|
29
|
-
* @param {any} value graph value
|
|
30
|
-
* @param {number} min min value
|
|
31
|
-
* @param {number} max max value
|
|
32
|
-
* @param {number} area height for axis
|
|
33
|
-
* @param {number} startPoint startPoint
|
|
34
|
-
*
|
|
35
|
-
* @returns {any} position
|
|
36
|
-
*/
|
|
37
|
-
calculateSubX(value, min, max, area, startPoint = 0) {
|
|
38
|
-
if (value === null || value === undefined) {
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const scalingFactor = area / (max - min);
|
|
43
|
-
return Math.ceil(startPoint + (scalingFactor * (value - min)));
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Calculate Y position
|
|
48
|
-
* @param {number|null|undefined} value graph value
|
|
49
|
-
* @param {number} min min value
|
|
50
|
-
* @param {number} max max value
|
|
51
|
-
* @param {number} area height for axis
|
|
52
|
-
* @param {number} startPoint startPoint
|
|
53
|
-
*
|
|
54
|
-
* @returns {number|null} position
|
|
55
|
-
*/
|
|
56
|
-
calculateY(value, min, max, area, startPoint = 0) {
|
|
57
|
-
let calcY;
|
|
58
|
-
|
|
59
|
-
if (value === null || value === undefined) {
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (value > max || value < min) {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
// Bar차트의 fillRect처리를 위해 invert값 추가 하여 Y값을 처리
|
|
67
|
-
const scalingFactor = area / (max - min);
|
|
68
|
-
if (startPoint) {
|
|
69
|
-
calcY = startPoint - (scalingFactor * (value - (min || 0)));
|
|
70
|
-
} else {
|
|
71
|
-
calcY = -(scalingFactor * (value - (min || 0)));
|
|
72
|
-
}
|
|
73
|
-
return Math.floor(calcY);
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Draw point for chart
|
|
78
|
-
* @param {object} ctx canvas context
|
|
79
|
-
* @param {string} style point style
|
|
80
|
-
* @param {number} radius radius
|
|
81
|
-
* @param {number} x x position
|
|
82
|
-
* @param {number} y y position
|
|
83
|
-
*
|
|
84
|
-
* @returns {undefined}
|
|
85
|
-
*/
|
|
86
|
-
drawPoint(ctx, style, radius, x, y) {
|
|
87
|
-
let edgeLength;
|
|
88
|
-
let xOffset;
|
|
89
|
-
let yOffset;
|
|
90
|
-
let height;
|
|
91
|
-
let size;
|
|
92
|
-
|
|
93
|
-
if (isNaN(radius) || radius <= 0) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
let offset;
|
|
98
|
-
let leftX;
|
|
99
|
-
let topY;
|
|
100
|
-
let sideSize;
|
|
101
|
-
|
|
102
|
-
switch (style) {
|
|
103
|
-
// Default includes circle
|
|
104
|
-
case 'triangle':
|
|
105
|
-
ctx.beginPath();
|
|
106
|
-
edgeLength = (3 * radius) / Math.sqrt(3);
|
|
107
|
-
height = (edgeLength * Math.sqrt(3)) / 2;
|
|
108
|
-
ctx.moveTo(x - (edgeLength / 2), y + (height / 3));
|
|
109
|
-
ctx.lineTo(x + (edgeLength / 2), y + (height / 3));
|
|
110
|
-
ctx.lineTo(x, y - ((2 * height) / 3));
|
|
111
|
-
ctx.closePath();
|
|
112
|
-
ctx.fill();
|
|
113
|
-
break;
|
|
114
|
-
case 'rect':
|
|
115
|
-
size = (1 / Math.SQRT2) * radius;
|
|
116
|
-
ctx.beginPath();
|
|
117
|
-
ctx.fillRect(x - size, y - size, 2 * size, 2 * size);
|
|
118
|
-
ctx.strokeRect(x - size, y - size, 2 * size, 2 * size);
|
|
119
|
-
break;
|
|
120
|
-
case 'rectRounded':
|
|
121
|
-
offset = radius / Math.SQRT2;
|
|
122
|
-
leftX = x - offset;
|
|
123
|
-
topY = y - offset;
|
|
124
|
-
sideSize = Math.SQRT2 * radius;
|
|
125
|
-
ctx.beginPath();
|
|
126
|
-
this.roundedRect(ctx, leftX, topY, sideSize, sideSize, radius / 2);
|
|
127
|
-
ctx.closePath();
|
|
128
|
-
ctx.fill();
|
|
129
|
-
break;
|
|
130
|
-
case 'rectRot':
|
|
131
|
-
size = (1 / Math.SQRT2) * radius;
|
|
132
|
-
ctx.beginPath();
|
|
133
|
-
ctx.moveTo(x - size, y);
|
|
134
|
-
ctx.lineTo(x, y + size);
|
|
135
|
-
ctx.lineTo(x + size, y);
|
|
136
|
-
ctx.lineTo(x, y - size);
|
|
137
|
-
ctx.closePath();
|
|
138
|
-
ctx.fill();
|
|
139
|
-
break;
|
|
140
|
-
case 'cross':
|
|
141
|
-
ctx.beginPath();
|
|
142
|
-
ctx.moveTo(x, y + radius);
|
|
143
|
-
ctx.lineTo(x, y - radius);
|
|
144
|
-
ctx.moveTo(x - radius, y);
|
|
145
|
-
ctx.lineTo(x + radius, y);
|
|
146
|
-
ctx.closePath();
|
|
147
|
-
break;
|
|
148
|
-
case 'crossRot':
|
|
149
|
-
ctx.beginPath();
|
|
150
|
-
xOffset = Math.cos(Math.PI / 4) * radius;
|
|
151
|
-
yOffset = Math.sin(Math.PI / 4) * radius;
|
|
152
|
-
ctx.moveTo(x - xOffset, y - yOffset);
|
|
153
|
-
ctx.lineTo(x + xOffset, y + yOffset);
|
|
154
|
-
ctx.moveTo(x - xOffset, y + yOffset);
|
|
155
|
-
ctx.lineTo(x + xOffset, y - yOffset);
|
|
156
|
-
ctx.closePath();
|
|
157
|
-
break;
|
|
158
|
-
case 'star':
|
|
159
|
-
ctx.beginPath();
|
|
160
|
-
ctx.moveTo(x, y + radius);
|
|
161
|
-
ctx.lineTo(x, y - radius);
|
|
162
|
-
ctx.moveTo(x - radius, y);
|
|
163
|
-
ctx.lineTo(x + radius, y);
|
|
164
|
-
xOffset = Math.cos(Math.PI / 4) * radius;
|
|
165
|
-
yOffset = Math.sin(Math.PI / 4) * radius;
|
|
166
|
-
ctx.moveTo(x - xOffset, y - yOffset);
|
|
167
|
-
ctx.lineTo(x + xOffset, y + yOffset);
|
|
168
|
-
ctx.moveTo(x - xOffset, y + yOffset);
|
|
169
|
-
ctx.lineTo(x + xOffset, y - yOffset);
|
|
170
|
-
ctx.closePath();
|
|
171
|
-
break;
|
|
172
|
-
case 'line':
|
|
173
|
-
ctx.beginPath();
|
|
174
|
-
ctx.moveTo(x - radius, y);
|
|
175
|
-
ctx.lineTo(x + radius, y);
|
|
176
|
-
ctx.closePath();
|
|
177
|
-
break;
|
|
178
|
-
default:
|
|
179
|
-
ctx.beginPath();
|
|
180
|
-
ctx.arc(x, y, radius, 0, Math.PI * 2);
|
|
181
|
-
ctx.closePath();
|
|
182
|
-
ctx.fill();
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
ctx.stroke();
|
|
187
|
-
},
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Draw roundedRect point for chart
|
|
191
|
-
* @param {object} ctx canvas context
|
|
192
|
-
* @param {number} x x position
|
|
193
|
-
* @param {number} y y position
|
|
194
|
-
* @param {string} width width
|
|
195
|
-
* @param {number} height height
|
|
196
|
-
* @param {number} radius radius
|
|
197
|
-
*
|
|
198
|
-
* @returns {undefined}
|
|
199
|
-
*/
|
|
200
|
-
roundedRect(ctx, x, y, width, height, radius) {
|
|
201
|
-
const pi = Math.PI;
|
|
202
|
-
const halfPi = pi / 2;
|
|
203
|
-
|
|
204
|
-
if (radius) {
|
|
205
|
-
const r = Math.min(radius, height / 2, width / 2);
|
|
206
|
-
const left = x + r;
|
|
207
|
-
const top = y + r;
|
|
208
|
-
const right = (x + width) - r;
|
|
209
|
-
const bottom = (y + height) - r;
|
|
210
|
-
|
|
211
|
-
ctx.moveTo(x, top);
|
|
212
|
-
if (left < right && top < bottom) {
|
|
213
|
-
ctx.arc(left, top, r, -pi, -halfPi);
|
|
214
|
-
ctx.arc(right, top, r, -halfPi, 0);
|
|
215
|
-
ctx.arc(right, bottom, r, 0, halfPi);
|
|
216
|
-
ctx.arc(left, bottom, r, halfPi, pi);
|
|
217
|
-
} else if (left < right) {
|
|
218
|
-
ctx.moveTo(left, y);
|
|
219
|
-
ctx.arc(right, top, r, -halfPi, halfPi);
|
|
220
|
-
ctx.arc(left, top, r, halfPi, pi + halfPi);
|
|
221
|
-
} else if (top < bottom) {
|
|
222
|
-
ctx.arc(left, top, r, -pi, 0);
|
|
223
|
-
ctx.arc(left, bottom, r, 0, pi);
|
|
224
|
-
} else {
|
|
225
|
-
ctx.arc(left, top, r, -pi, pi);
|
|
226
|
-
}
|
|
227
|
-
ctx.closePath();
|
|
228
|
-
ctx.moveTo(x, y);
|
|
229
|
-
} else {
|
|
230
|
-
ctx.rect(x, y, width, height);
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* create Linear Gradient
|
|
236
|
-
* @param ctx
|
|
237
|
-
* @param isHorizontal
|
|
238
|
-
* @param positions
|
|
239
|
-
* @param stops
|
|
240
|
-
* @param isDownplay
|
|
241
|
-
*
|
|
242
|
-
* @returns {object} gradient
|
|
243
|
-
*/
|
|
244
|
-
createGradient(ctx, isHorizontal, positions, stops, isDownplay) {
|
|
245
|
-
const { x, y, w, h } = positions;
|
|
246
|
-
let gradient;
|
|
247
|
-
|
|
248
|
-
if (isHorizontal) {
|
|
249
|
-
gradient = ctx.createLinearGradient(x, 0, x + w, 0);
|
|
250
|
-
} else {
|
|
251
|
-
gradient = ctx.createLinearGradient(0, y, 0, y + h);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
for (let ix = 0; ix < stops.length; ix++) {
|
|
255
|
-
const stopIdx = stops[ix][0] ?? 0;
|
|
256
|
-
const stopColor = stops[ix][1] ?? 'rgba(255, 255, 255, 0)';
|
|
257
|
-
const noneDownplayOpacity = stopColor.includes('rgba') ? Util.getOpacity(stopColor) : 1;
|
|
258
|
-
const opacity = isDownplay ? 0.1 : noneDownplayOpacity;
|
|
259
|
-
|
|
260
|
-
gradient.addColorStop(stopIdx, Util.colorStringToRgba(stopColor, opacity));
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
return gradient;
|
|
264
|
-
},
|
|
265
|
-
};
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
export const AXIS_UNITS = {
|
|
2
|
-
x: {
|
|
3
|
-
rectStart: 'x1',
|
|
4
|
-
rectEnd: 'x2',
|
|
5
|
-
rectOffsetCounter: position => (position === 'top' ? 'y2' : 'y1'),
|
|
6
|
-
rectOffset: position => (position === 'top' ? 'y1' : 'y2'),
|
|
7
|
-
},
|
|
8
|
-
y: {
|
|
9
|
-
rectStart: 'y2',
|
|
10
|
-
rectEnd: 'y1',
|
|
11
|
-
rectOffsetCounter: position => (position === 'left' ? 'x2' : 'x1'),
|
|
12
|
-
rectOffset: position => (position === 'left' ? 'x1' : 'x2'),
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export const COLOR = [
|
|
17
|
-
'#2b99f0', '#8ac449', '#00C4C5', '#ffde00', '#ff7781', '#8470ff', '#75cd8e',
|
|
18
|
-
'#48d1cc', '#fec64f', '#fe984f', '#0052ff', '#00a48c', '#83cfde', '#dfe32d',
|
|
19
|
-
'#ff7d40', '#99c7ff', '#a5fee3', '#0379c9', '#eef093', '#ffa891', '#00c5cd',
|
|
20
|
-
'#009bc7', '#cacaff', '#ffc125', '#df6264',
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
// export const COLOR = [
|
|
24
|
-
// '#00C8FC', '#00F1CD', '#C19F87', '#008FD2', '#93F7FE', '#00FC78', '#0058DE',
|
|
25
|
-
// '#3BDEFF', '#254763', '#BAEDF9', '#A24E3D', '#1FD017', '#F1D3B6', '#AFC9C9',
|
|
26
|
-
// '#498700', '#3650FE', '#8786EF', '#68FBFB', '#BCF061', '#CBD3EA',
|
|
27
|
-
// ];
|
|
28
|
-
|
|
29
|
-
export const LINE_OPTION = {
|
|
30
|
-
show: true,
|
|
31
|
-
highlight: {
|
|
32
|
-
defaultSize: 4,
|
|
33
|
-
maxSize: 6,
|
|
34
|
-
maxShadowSize: 10,
|
|
35
|
-
maxShadowOpacity: 0.4,
|
|
36
|
-
},
|
|
37
|
-
xAxisIndex: 0,
|
|
38
|
-
yAxisIndex: 0,
|
|
39
|
-
point: true,
|
|
40
|
-
pointHighlight: true,
|
|
41
|
-
pointSize: 3,
|
|
42
|
-
pointStyle: '',
|
|
43
|
-
lineWidth: 2,
|
|
44
|
-
fill: false,
|
|
45
|
-
fillOpacity: 0.4,
|
|
46
|
-
showLegend: true,
|
|
47
|
-
passingValue: null,
|
|
48
|
-
interpolation: 'none',
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const BAR_OPTION = {
|
|
52
|
-
show: true,
|
|
53
|
-
highlight: {
|
|
54
|
-
pointSize: 5,
|
|
55
|
-
},
|
|
56
|
-
xAxisIndex: 0,
|
|
57
|
-
yAxisIndex: 0,
|
|
58
|
-
category: true,
|
|
59
|
-
showLegend: true,
|
|
60
|
-
showValue: {
|
|
61
|
-
use: false,
|
|
62
|
-
fontSize: 12,
|
|
63
|
-
textColor: '#000000',
|
|
64
|
-
formatter: null,
|
|
65
|
-
decimalPoint: 0,
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export const PIE_OPTION = {
|
|
70
|
-
show: true,
|
|
71
|
-
showLegend: true,
|
|
72
|
-
stroke: {
|
|
73
|
-
show: true,
|
|
74
|
-
color: '#FFFFFF',
|
|
75
|
-
lineWidth: 2,
|
|
76
|
-
},
|
|
77
|
-
showValue: {
|
|
78
|
-
use: false,
|
|
79
|
-
fontSize: 12,
|
|
80
|
-
textColor: '#000000',
|
|
81
|
-
formatter: null,
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export const AXIS_OPTION = {
|
|
86
|
-
min: null,
|
|
87
|
-
max: null,
|
|
88
|
-
autoScaleRatio: null,
|
|
89
|
-
startToZero: false,
|
|
90
|
-
showAxis: true,
|
|
91
|
-
axisLineColor: '#C9CFDC',
|
|
92
|
-
axisLineWidth: 1,
|
|
93
|
-
showGrid: true,
|
|
94
|
-
gridLineColor: '#C9CFDC',
|
|
95
|
-
showAxisTick: true,
|
|
96
|
-
showIndicator: false,
|
|
97
|
-
timeFormat: 'mm:ss',
|
|
98
|
-
range: null,
|
|
99
|
-
interval: null,
|
|
100
|
-
decimalPoint: 'auto',
|
|
101
|
-
labelStyle: {
|
|
102
|
-
show: true,
|
|
103
|
-
fontSize: 12,
|
|
104
|
-
color: '#25262E',
|
|
105
|
-
fontFamily: 'Roboto',
|
|
106
|
-
fontWeight: 400,
|
|
107
|
-
fitWidth: false,
|
|
108
|
-
fitDir: 'right',
|
|
109
|
-
alignToGridLine: false,
|
|
110
|
-
padding: 0,
|
|
111
|
-
},
|
|
112
|
-
title: {
|
|
113
|
-
use: false,
|
|
114
|
-
text: null,
|
|
115
|
-
fontWeight: 400,
|
|
116
|
-
fontSize: 12,
|
|
117
|
-
fontFamily: 'Roboto',
|
|
118
|
-
textAlign: 'right',
|
|
119
|
-
fontStyle: 'normal',
|
|
120
|
-
color: '#808080',
|
|
121
|
-
},
|
|
122
|
-
scrollbar: {
|
|
123
|
-
use: false,
|
|
124
|
-
width: 14,
|
|
125
|
-
height: 14,
|
|
126
|
-
background: '#F2F2F2',
|
|
127
|
-
showButton: true,
|
|
128
|
-
thumbStyle: {
|
|
129
|
-
background: '#929292',
|
|
130
|
-
radius: 0,
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
export const PLOT_LINE_LABEL_OPTION = {
|
|
136
|
-
show: false,
|
|
137
|
-
fontSize: 12,
|
|
138
|
-
fontColor: '#FF0000',
|
|
139
|
-
fillColor: '#FFFFFF',
|
|
140
|
-
lineColor: '#FF0000',
|
|
141
|
-
lineWidth: 0,
|
|
142
|
-
fontWeight: 400,
|
|
143
|
-
fontFamily: 'Roboto',
|
|
144
|
-
verticalAlign: 'middle',
|
|
145
|
-
textAlign: 'center',
|
|
146
|
-
textOverflow: 'none', // 'none', 'ellipsis'
|
|
147
|
-
maxWidth: null,
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
export const PLOT_LINE_OPTION = {
|
|
151
|
-
color: '#FF0000',
|
|
152
|
-
lineWidth: 1,
|
|
153
|
-
label: PLOT_LINE_LABEL_OPTION,
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
export const PLOT_BAND_OPTION = {
|
|
157
|
-
color: '#FAE59D',
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
export const HEAT_MAP_OPTION = {
|
|
161
|
-
show: true,
|
|
162
|
-
xAxisIndex: 0,
|
|
163
|
-
yAxisIndex: 0,
|
|
164
|
-
showLegend: true,
|
|
165
|
-
showValue: {
|
|
166
|
-
use: false,
|
|
167
|
-
fontSize: 12,
|
|
168
|
-
textColor: '#000000',
|
|
169
|
-
formatter: null,
|
|
170
|
-
decimalPoint: 0,
|
|
171
|
-
},
|
|
172
|
-
highlight: {
|
|
173
|
-
stroke: {
|
|
174
|
-
use: false,
|
|
175
|
-
color: null,
|
|
176
|
-
width: 1,
|
|
177
|
-
radius: 0,
|
|
178
|
-
},
|
|
179
|
-
shadow: {
|
|
180
|
-
use: true,
|
|
181
|
-
offsetX: 0,
|
|
182
|
-
offsetY: 0,
|
|
183
|
-
blur: 4,
|
|
184
|
-
color: '#959494',
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
export const TIME_INTERVALS = {
|
|
191
|
-
millisecond: {
|
|
192
|
-
common: true,
|
|
193
|
-
size: 1,
|
|
194
|
-
steps: [1, 2, 5, 10, 20, 50, 100, 250, 500],
|
|
195
|
-
},
|
|
196
|
-
second: {
|
|
197
|
-
common: true,
|
|
198
|
-
size: 1000,
|
|
199
|
-
steps: [1, 2, 5, 10, 30],
|
|
200
|
-
},
|
|
201
|
-
minute: {
|
|
202
|
-
common: true,
|
|
203
|
-
size: 60000,
|
|
204
|
-
steps: [1, 2, 5, 10, 30],
|
|
205
|
-
},
|
|
206
|
-
hour: {
|
|
207
|
-
common: true,
|
|
208
|
-
size: 3600000,
|
|
209
|
-
steps: [1, 2, 3, 6, 12],
|
|
210
|
-
},
|
|
211
|
-
day: {
|
|
212
|
-
common: true,
|
|
213
|
-
size: 86400000,
|
|
214
|
-
steps: [1, 2, 5],
|
|
215
|
-
},
|
|
216
|
-
week: {
|
|
217
|
-
common: false,
|
|
218
|
-
size: 604800000,
|
|
219
|
-
steps: [1, 2, 3, 4],
|
|
220
|
-
},
|
|
221
|
-
month: {
|
|
222
|
-
common: true,
|
|
223
|
-
size: 2.6784e9,
|
|
224
|
-
steps: [1, 2, 3],
|
|
225
|
-
},
|
|
226
|
-
quarter: {
|
|
227
|
-
common: false,
|
|
228
|
-
size: 7.884e9,
|
|
229
|
-
steps: [1, 2, 3, 4],
|
|
230
|
-
},
|
|
231
|
-
year: {
|
|
232
|
-
common: true,
|
|
233
|
-
size: 3.154e10,
|
|
234
|
-
},
|
|
235
|
-
};
|