evui 3.3.57 → 3.3.58
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 +28 -5
- package/dist/evui.common.js +7 -4
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +7 -4
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/element/element.line.js +4 -3
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### Project setup
|
|
4
4
|
```
|
|
5
|
-
npm
|
|
5
|
+
npm i -D evui
|
|
6
6
|
```
|
|
7
7
|
|
|
8
8
|
### Compiles library for product
|
|
@@ -11,6 +11,9 @@ npm run build:lib
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
### Compiles and hot-reloads for development document project
|
|
14
|
+
- Node 12 is required to run the official documentation locally.
|
|
15
|
+
- We will upload the node version later.
|
|
16
|
+
- DOCUMENT : https://ex-em.github.io/EVUI
|
|
14
17
|
```
|
|
15
18
|
npm run docs
|
|
16
19
|
```
|
|
@@ -30,11 +33,31 @@ npm run build
|
|
|
30
33
|
npm run test:unit
|
|
31
34
|
```
|
|
32
35
|
|
|
33
|
-
###
|
|
36
|
+
### Use Vue3 Project
|
|
34
37
|
```
|
|
35
|
-
|
|
38
|
+
// main.ts
|
|
39
|
+
import App from '@/App.vue';
|
|
40
|
+
import EVUI from 'evui';
|
|
41
|
+
|
|
42
|
+
const app = createApp(App);
|
|
43
|
+
|
|
44
|
+
app.use(EVUI);
|
|
45
|
+
|
|
46
|
+
app.mount('#app');
|
|
36
47
|
```
|
|
37
48
|
|
|
49
|
+
### Using Message Component
|
|
50
|
+
```
|
|
51
|
+
// main.ts
|
|
52
|
+
import App from '@/App.vue';
|
|
53
|
+
import { EvMessageBox, EvMessage, EvNotification } from 'evui';
|
|
38
54
|
|
|
39
|
-
|
|
40
|
-
|
|
55
|
+
const app = createApp(App);
|
|
56
|
+
|
|
57
|
+
app.use(EVUI);
|
|
58
|
+
app.config.globalProperties.$messagebox = EvMessageBox;
|
|
59
|
+
app.config.globalProperties.$messagex = EvMessage;
|
|
60
|
+
app.config.globalProperties.$notify = EvNotification;
|
|
61
|
+
|
|
62
|
+
app.mount('#app');
|
|
63
|
+
```
|
package/dist/evui.common.js
CHANGED
|
@@ -8045,7 +8045,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
8045
8045
|
/***/ "9224":
|
|
8046
8046
|
/***/ (function(module) {
|
|
8047
8047
|
|
|
8048
|
-
module.exports = JSON.parse("{\"a\":\"3.3.
|
|
8048
|
+
module.exports = JSON.parse("{\"a\":\"3.3.58\"}");
|
|
8049
8049
|
|
|
8050
8050
|
/***/ }),
|
|
8051
8051
|
|
|
@@ -35699,18 +35699,21 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
35699
35699
|
} // Draw points
|
|
35700
35700
|
|
|
35701
35701
|
|
|
35702
|
-
if (!isBrush
|
|
35702
|
+
if (!isBrush) {
|
|
35703
35703
|
ctx.strokeStyle = helpers_util.colorStringToRgba(mainColor, mainColorOpacity);
|
|
35704
35704
|
var focusStyle = helpers_util.colorStringToRgba(pointFillColor, 1);
|
|
35705
35705
|
var blurStyle = helpers_util.colorStringToRgba(pointFillColor, pointFillColorOpacity);
|
|
35706
35706
|
this.data.forEach(function (curr, ix) {
|
|
35707
|
-
var
|
|
35707
|
+
var _this2$data, _this2$data2;
|
|
35708
35708
|
|
|
35709
35709
|
if (curr.xp === null || curr.yp === null) {
|
|
35710
35710
|
return;
|
|
35711
35711
|
}
|
|
35712
35712
|
|
|
35713
|
-
|
|
35713
|
+
var isSingle = ((_this2$data = _this2.data[ix - 1]) === null || _this2$data === void 0 ? void 0 : _this2$data.o) === null && ((_this2$data2 = _this2.data[ix + 1]) === null || _this2$data2 === void 0 ? void 0 : _this2$data2.o) === null;
|
|
35714
|
+
var isSelectedLabel = selectedLabelIndexList.includes(ix);
|
|
35715
|
+
|
|
35716
|
+
if (_this2.point || isSingle || isSelectedLabel) {
|
|
35714
35717
|
ctx.fillStyle = isSelectedLabel && !legendHitInfo ? focusStyle : blurStyle;
|
|
35715
35718
|
helpers_canvas.drawPoint(ctx, _this2.pointStyle, _this2.pointSize, curr.xp, curr.yp);
|
|
35716
35719
|
}
|