evui 3.4.90 → 3.4.92
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/dist/evui.common.js +200 -112
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +200 -112
- 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/Chart.vue +1 -1
- package/src/components/chart/model/model.store.js +12 -2
- package/src/components/chart/plugins/plugins.interaction.js +68 -18
- package/src/components/chart/plugins/plugins.tooltip.js +29 -4
package/dist/evui.common.js
CHANGED
|
@@ -272,17 +272,6 @@ exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnProper
|
|
|
272
272
|
};
|
|
273
273
|
|
|
274
274
|
|
|
275
|
-
/***/ }),
|
|
276
|
-
|
|
277
|
-
/***/ "073c":
|
|
278
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
279
|
-
|
|
280
|
-
"use strict";
|
|
281
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Chart_vue_vue_type_style_index_0_id_6a746eba_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b761");
|
|
282
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Chart_vue_vue_type_style_index_0_id_6a746eba_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Chart_vue_vue_type_style_index_0_id_6a746eba_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
283
|
-
/* unused harmony reexport * */
|
|
284
|
-
|
|
285
|
-
|
|
286
275
|
/***/ }),
|
|
287
276
|
|
|
288
277
|
/***/ "07ac":
|
|
@@ -6653,20 +6642,6 @@ var global = __webpack_require__("da84");
|
|
|
6653
6642
|
module.exports = classof(global.process) == 'process';
|
|
6654
6643
|
|
|
6655
6644
|
|
|
6656
|
-
/***/ }),
|
|
6657
|
-
|
|
6658
|
-
/***/ "605f":
|
|
6659
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6660
|
-
|
|
6661
|
-
// Imports
|
|
6662
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
6663
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
6664
|
-
// Module
|
|
6665
|
-
exports.push([module.i, ".ev-chart-brush-wrapper,.ev-chart-wrapper{display:block;position:relative;width:100%;height:100%}.ev-chart-brush-container,.ev-chart-container{position:relative;overflow:hidden;width:100%;height:100%}.ev-chart-title{top:0;left:0;width:100%;padding-left:10px;word-wrap:normal;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ev-chart-legend,.ev-chart-title{position:absolute;overflow:hidden}.ev-chart-legend{padding:5px 0 0 0}.ev-chart-legend-container{position:relative}.ev-chart-legend-color,.ev-chart-legend-color--point-line{position:absolute;top:50%;left:0;transform:translateY(-50%);width:18px;height:4px}.ev-chart-legend-color--point-line:after{display:inline-block;position:absolute;top:-2px;left:5px;width:8px;height:8px;content:\" \";border-radius:50%;background-color:inherit}.ev-chart-legend-name{position:absolute;top:50%;left:0;width:100%;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:12px;margin-left:24px;padding-right:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:400;transform:translateY(-50%)}.ev-chart-legend-name:hover{font-weight:700}.ev-chart-legend-value{float:right;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ev-chart-legend--table{width:100%;font-size:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-collapse:collapse}.ev-chart-legend--table td,.ev-chart-legend--table th{padding:3px;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ev-chart-legend--table__row{cursor:pointer;min-height:18px}.ev-chart-legend--table__row:hover{font-weight:700}.ev-chart-legend--table__color{width:18px}.ev-chart-legend--table__color-wrapper{position:relative;min-width:18px}.ev-chart-legend--table__color--line{height:4px}.ev-chart-legend--table__color--point-line{position:absolute;top:50%;left:3px;transform:translateY(-50%);height:4px}.ev-chart-legend--table__color--point-line:after{display:inline-block;position:absolute;top:-2px;left:5px;width:8px;height:8px;content:\" \";border-radius:50%;background-color:inherit}.ev-chart-legend--table__name,.ev-chart-legend--table__value{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ev-chart-legend-line{position:relative;width:100%;height:100%;border-radius:10px;background-color:#e3e3e3}.ev-chart-legend-line-layer,.ev-chart-legend-thumb{position:absolute;top:0;left:0;width:100%;height:100%}.ev-chart-legend-thumb{border-radius:10px;color:#000}.ev-chart-legend-handle{position:absolute;top:0;left:0;cursor:pointer}.ev-chart-legend-handle.dragging,.ev-chart-legend-handle:hover{transform:scale(1.2)}.ev-chart-legend-handle-btn{width:100%;height:100%;border-radius:50%;background-color:#fff;transition:transform .1s ease-in-out;box-sizing:border-box;border:2px solid #979797}.ev-chart-legend-handle-btn-color{position:absolute;top:4px;left:4px;width:calc(100% - 8px);height:calc(100% - 8px);border-radius:50%}.ev-chart-legend-label{position:absolute;font-size:12px;line-height:1.4em}.ev-chart-legend-label-text{display:block;white-space:nowrap}.ev-chart-legend-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.ev-chart-legend-overlay .ev-chart-legend-overlay-item{position:absolute;top:1px;left:1px;border-radius:50%;border:1px solid #fff;background-color:transparent}.ev-chart-legend-overlay .ev-chart-legend-overlay-tooltip{position:absolute;font-size:12px;line-height:1.4em}.ev-chart-resize-bar{position:absolute;background:transparent;opacity:.5;z-index:10}.ev-chart-resize-bar:hover,.ev-chart-resize-ghost{background-color:#e2e2e2}.ev-chart-resize-ghost{position:absolute;width:4px;height:100%;cursor:col-resize;opacity:.5}.ev-chart-resize-ghost.horizontal{width:100%;height:4px;cursor:row-resize}.ev-chart-tooltip{position:absolute;z-index:850;top:0;left:0;overflow-y:hidden;overflow-x:hidden;border-radius:8px}.ev-chart-tooltip .ev-chart-tooltip-custom__header,.ev-chart-tooltip .ev-chart-tooltip-header{padding:12px 16px 3px 16px;overflow:hidden}.ev-chart-tooltip .ev-chart-tooltip-header--wrap{word-wrap:break-word}.ev-chart-tooltip .ev-chart-tooltip-header--ellipsis{text-overflow:ellipsis;white-space:nowrap}.ev-chart-tooltip .ev-chart-tooltip-body,.ev-chart-tooltip .ev-chart-tooltip-custom{overflow-x:hidden;overflow-y:hidden}.ev-chart-tooltip .ev-chart-tooltip-custom__body{padding:8px 20px 8px 16px;overflow-x:hidden;overflow-y:hidden}.ev-chart-tooltip .ev-chart-tooltip-custom__body .row{display:flex;flex-direction:row;align-items:center}.ev-chart-tooltip .ev-chart-tooltip-custom__body .series-name{flex:auto}.ev-chart-tooltip .ev-chart-tooltip-custom__body .value{text-align:right}.ev-chart-tooltip .ev-chart-tooltip-custom__body .color-circle,.ev-chart-tooltip .ev-chart-tooltip-custom__body .color-rect{width:12px;height:12px;margin-right:16px}.ev-chart-tooltip .ev-chart-tooltip-custom__body .color-circle{border-radius:12px}.ev-chart-scrollbar{position:absolute;z-index:3}.ev-chart-scrollbar-container{position:relative;top:0;left:0;width:100%;height:100%}.ev-chart-scrollbar-thumb,.ev-chart-scrollbar-track{position:absolute}.ev-chart-scrollbar-thumb:hover{opacity:.7}.ev-chart-scrollbar-button{position:absolute;text-align:center}.ev-chart-scrollbar-button:hover{opacity:.5!important}.ev-chart-scrollbar-button-icon{display:none;margin:0 auto;font-size:12px}", ""]);
|
|
6666
|
-
// Exports
|
|
6667
|
-
module.exports = exports;
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
6645
|
/***/ }),
|
|
6671
6646
|
|
|
6672
6647
|
/***/ "6062":
|
|
@@ -7453,6 +7428,20 @@ module.exports = function (NAME) {
|
|
|
7453
7428
|
};
|
|
7454
7429
|
|
|
7455
7430
|
|
|
7431
|
+
/***/ }),
|
|
7432
|
+
|
|
7433
|
+
/***/ "7471":
|
|
7434
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7435
|
+
|
|
7436
|
+
// Imports
|
|
7437
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
7438
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
7439
|
+
// Module
|
|
7440
|
+
exports.push([module.i, ".ev-chart-brush-wrapper,.ev-chart-wrapper{display:block;position:relative;width:100%;height:100%}.ev-chart-brush-container,.ev-chart-container{position:relative;overflow:hidden;width:100%;height:100%}.ev-chart-title{top:0;left:0;width:100%;padding-left:10px;word-wrap:normal;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ev-chart-legend,.ev-chart-title{position:absolute;overflow:hidden}.ev-chart-legend{padding:5px 0 0 0}.ev-chart-legend-container{position:relative}.ev-chart-legend-color,.ev-chart-legend-color--point-line{position:absolute;top:50%;left:0;transform:translateY(-50%);width:18px;height:4px}.ev-chart-legend-color--point-line:after{display:inline-block;position:absolute;top:-2px;left:5px;width:8px;height:8px;content:\" \";border-radius:50%;background-color:inherit}.ev-chart-legend-name{position:absolute;top:50%;left:0;width:100%;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:12px;margin-left:24px;padding-right:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:400;transform:translateY(-50%)}.ev-chart-legend-name:hover{font-weight:700}.ev-chart-legend-value{float:right;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ev-chart-legend--table{width:100%;font-size:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-collapse:collapse}.ev-chart-legend--table td,.ev-chart-legend--table th{padding:3px;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ev-chart-legend--table__row{cursor:pointer;min-height:18px}.ev-chart-legend--table__row:hover{font-weight:700}.ev-chart-legend--table__color{width:18px}.ev-chart-legend--table__color-wrapper{position:relative;min-width:18px}.ev-chart-legend--table__color--line{height:4px}.ev-chart-legend--table__color--point-line{position:absolute;top:50%;left:3px;transform:translateY(-50%);height:4px}.ev-chart-legend--table__color--point-line:after{display:inline-block;position:absolute;top:-2px;left:5px;width:8px;height:8px;content:\" \";border-radius:50%;background-color:inherit}.ev-chart-legend--table__name,.ev-chart-legend--table__value{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ev-chart-legend-line{position:relative;width:100%;height:100%;border-radius:10px;background-color:#e3e3e3}.ev-chart-legend-line-layer,.ev-chart-legend-thumb{position:absolute;top:0;left:0;width:100%;height:100%}.ev-chart-legend-thumb{border-radius:10px;color:#000}.ev-chart-legend-handle{position:absolute;top:0;left:0;cursor:pointer}.ev-chart-legend-handle.dragging,.ev-chart-legend-handle:hover{transform:scale(1.2)}.ev-chart-legend-handle-btn{width:100%;height:100%;border-radius:50%;background-color:#fff;transition:transform .1s ease-in-out;box-sizing:border-box;border:2px solid #979797}.ev-chart-legend-handle-btn-color{position:absolute;top:4px;left:4px;width:calc(100% - 8px);height:calc(100% - 8px);border-radius:50%}.ev-chart-legend-label{position:absolute;font-size:12px;line-height:1.4em}.ev-chart-legend-label-text{display:block;white-space:nowrap}.ev-chart-legend-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.ev-chart-legend-overlay .ev-chart-legend-overlay-item{position:absolute;top:1px;left:1px;border-radius:50%;border:1px solid #fff;background-color:transparent}.ev-chart-legend-overlay .ev-chart-legend-overlay-tooltip{position:absolute;font-size:12px;line-height:1.4em}.ev-chart-resize-bar{position:absolute;background:transparent;opacity:.5;z-index:10}.ev-chart-resize-bar:hover,.ev-chart-resize-ghost{background-color:#e2e2e2}.ev-chart-resize-ghost{position:absolute;width:4px;height:100%;cursor:col-resize;opacity:.5}.ev-chart-resize-ghost.horizontal{width:100%;height:4px;cursor:row-resize}.ev-chart-tooltip{position:absolute;z-index:850;top:0;left:0;overflow-y:hidden;overflow-x:hidden;border-radius:8px}.ev-chart-tooltip .ev-chart-tooltip-custom__header,.ev-chart-tooltip .ev-chart-tooltip-header{padding:12px 16px 3px 16px;overflow:hidden}.ev-chart-tooltip .ev-chart-tooltip-header--wrap{word-wrap:break-word}.ev-chart-tooltip .ev-chart-tooltip-header--ellipsis{text-overflow:ellipsis;white-space:nowrap}.ev-chart-tooltip .ev-chart-tooltip-body,.ev-chart-tooltip .ev-chart-tooltip-custom{overflow-x:hidden;overflow-y:hidden}.ev-chart-tooltip .ev-chart-tooltip-custom__body{padding:8px 20px 8px 16px;overflow-x:hidden;overflow-y:hidden}.ev-chart-tooltip .ev-chart-tooltip-custom__body .row{display:flex;flex-direction:row;align-items:center}.ev-chart-tooltip .ev-chart-tooltip-custom__body .series-name{flex:auto}.ev-chart-tooltip .ev-chart-tooltip-custom__body .value{text-align:right}.ev-chart-tooltip .ev-chart-tooltip-custom__body .color-circle,.ev-chart-tooltip .ev-chart-tooltip-custom__body .color-rect{width:12px;height:12px;margin-right:16px}.ev-chart-tooltip .ev-chart-tooltip-custom__body .color-circle{border-radius:12px}.ev-chart-scrollbar{position:absolute;z-index:3}.ev-chart-scrollbar-container{position:relative;top:0;left:0;width:100%;height:100%}.ev-chart-scrollbar-thumb,.ev-chart-scrollbar-track{position:absolute}.ev-chart-scrollbar-thumb:hover{opacity:.7}.ev-chart-scrollbar-button{position:absolute;text-align:center}.ev-chart-scrollbar-button:hover{opacity:.5!important}.ev-chart-scrollbar-button-icon{display:none;margin:0 auto;font-size:12px}", ""]);
|
|
7441
|
+
// Exports
|
|
7442
|
+
module.exports = exports;
|
|
7443
|
+
|
|
7444
|
+
|
|
7456
7445
|
/***/ }),
|
|
7457
7446
|
|
|
7458
7447
|
/***/ "7582":
|
|
@@ -7477,6 +7466,21 @@ var update = add("4aa7370c", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
7477
7466
|
|
|
7478
7467
|
/***/ }),
|
|
7479
7468
|
|
|
7469
|
+
/***/ "7679":
|
|
7470
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7471
|
+
|
|
7472
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
7473
|
+
|
|
7474
|
+
// load the styles
|
|
7475
|
+
var content = __webpack_require__("7471");
|
|
7476
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
7477
|
+
if(content.locals) module.exports = content.locals;
|
|
7478
|
+
// add the styles to the DOM
|
|
7479
|
+
var add = __webpack_require__("499e").default
|
|
7480
|
+
var update = add("1d487ebf", content, true, {"sourceMap":false,"shadowMode":false});
|
|
7481
|
+
|
|
7482
|
+
/***/ }),
|
|
7483
|
+
|
|
7480
7484
|
/***/ "7839":
|
|
7481
7485
|
/***/ (function(module, exports) {
|
|
7482
7486
|
|
|
@@ -11241,7 +11245,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
11241
11245
|
/***/ "9224":
|
|
11242
11246
|
/***/ (function(module) {
|
|
11243
11247
|
|
|
11244
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11248
|
+
module.exports = JSON.parse("{\"a\":\"3.4.92\"}");
|
|
11245
11249
|
|
|
11246
11250
|
/***/ }),
|
|
11247
11251
|
|
|
@@ -13647,21 +13651,6 @@ module.exports = {
|
|
|
13647
13651
|
};
|
|
13648
13652
|
|
|
13649
13653
|
|
|
13650
|
-
/***/ }),
|
|
13651
|
-
|
|
13652
|
-
/***/ "b761":
|
|
13653
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
13654
|
-
|
|
13655
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
13656
|
-
|
|
13657
|
-
// load the styles
|
|
13658
|
-
var content = __webpack_require__("605f");
|
|
13659
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
13660
|
-
if(content.locals) module.exports = content.locals;
|
|
13661
|
-
// add the styles to the DOM
|
|
13662
|
-
var add = __webpack_require__("499e").default
|
|
13663
|
-
var update = add("3a6c2639", content, true, {"sourceMap":false,"shadowMode":false});
|
|
13664
|
-
|
|
13665
13654
|
/***/ }),
|
|
13666
13655
|
|
|
13667
13656
|
/***/ "ba9f":
|
|
@@ -14148,6 +14137,17 @@ $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
|
14148
14137
|
});
|
|
14149
14138
|
|
|
14150
14139
|
|
|
14140
|
+
/***/ }),
|
|
14141
|
+
|
|
14142
|
+
/***/ "cce5":
|
|
14143
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14144
|
+
|
|
14145
|
+
"use strict";
|
|
14146
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Chart_vue_vue_type_style_index_0_id_68e9bb60_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7679");
|
|
14147
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Chart_vue_vue_type_style_index_0_id_68e9bb60_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Chart_vue_vue_type_style_index_0_id_68e9bb60_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
14148
|
+
/* unused harmony reexport * */
|
|
14149
|
+
|
|
14150
|
+
|
|
14151
14151
|
/***/ }),
|
|
14152
14152
|
|
|
14153
14153
|
/***/ "cdf9":
|
|
@@ -38184,20 +38184,20 @@ Grid.install = function (app) {
|
|
|
38184
38184
|
};
|
|
38185
38185
|
|
|
38186
38186
|
/* harmony default export */ var grid = (Grid);
|
|
38187
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/chart/Chart.vue?vue&type=template&id=
|
|
38187
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/chart/Chart.vue?vue&type=template&id=68e9bb60
|
|
38188
38188
|
|
|
38189
|
-
var
|
|
38189
|
+
var Chartvue_type_template_id_68e9bb60_hoisted_1 = {
|
|
38190
38190
|
key: 0,
|
|
38191
38191
|
ref: "evChartToolbarRef"
|
|
38192
38192
|
};
|
|
38193
|
-
function
|
|
38193
|
+
function Chartvue_type_template_id_68e9bb60_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
38194
38194
|
var _$setup$zoomOptions$t;
|
|
38195
38195
|
|
|
38196
38196
|
var _component_ev_chart_toolbar = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-chart-toolbar");
|
|
38197
38197
|
|
|
38198
38198
|
var _directive_resize = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("resize");
|
|
38199
38199
|
|
|
38200
|
-
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, [(_$setup$zoomOptions$t = $setup.zoomOptions.toolbar) !== null && _$setup$zoomOptions$t !== void 0 && _$setup$zoomOptions$t.show && !$setup.injectIsChartGroup ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div",
|
|
38200
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, [(_$setup$zoomOptions$t = $setup.zoomOptions.toolbar) !== null && _$setup$zoomOptions$t !== void 0 && _$setup$zoomOptions$t.show && !$setup.injectIsChartGroup ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", Chartvue_type_template_id_68e9bb60_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_chart_toolbar, {
|
|
38201
38201
|
toolbar: $setup.zoomOptions.toolbar,
|
|
38202
38202
|
onOnClickToolbar: $setup.onClickToolbar
|
|
38203
38203
|
}, null, 8, ["toolbar", "onOnClickToolbar"])], 512)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", {
|
|
@@ -38206,7 +38206,7 @@ function Chartvue_type_template_id_6a746eba_render(_ctx, _cache, $props, $setup,
|
|
|
38206
38206
|
class: "ev-chart"
|
|
38207
38207
|
}, null, 4), [[_directive_resize, $setup.onResize]])], 64);
|
|
38208
38208
|
}
|
|
38209
|
-
// CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=template&id=
|
|
38209
|
+
// CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=template&id=68e9bb60
|
|
38210
38210
|
|
|
38211
38211
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
38212
38212
|
var es_object_assign = __webpack_require__("cca65");
|
|
@@ -39661,14 +39661,23 @@ var modules = {
|
|
|
39661
39661
|
if (ldata !== null && ldata !== undefined) {
|
|
39662
39662
|
var g = isHorizontal ? data.o || data.x : data.o || data.y;
|
|
39663
39663
|
|
|
39664
|
-
if (series.stackIndex) {
|
|
39664
|
+
if (series.stackIndex != null) {
|
|
39665
39665
|
acc += !isNaN(data.o) ? data.o : 0;
|
|
39666
39666
|
useStack = true;
|
|
39667
39667
|
} else {
|
|
39668
39668
|
acc += data.y;
|
|
39669
39669
|
}
|
|
39670
39670
|
|
|
39671
|
-
if (
|
|
39671
|
+
if (maxType === 'bar' && useStack) {
|
|
39672
|
+
if (item.hit) {
|
|
39673
|
+
maxValue = g;
|
|
39674
|
+
maxSeriesID = seriesID;
|
|
39675
|
+
maxIndex = index;
|
|
39676
|
+
maxLabel = ldata;
|
|
39677
|
+
maxValuePos = lp;
|
|
39678
|
+
maxType = series.type;
|
|
39679
|
+
}
|
|
39680
|
+
} else if (maxValue === null || maxValue <= g) {
|
|
39672
39681
|
maxValue = g;
|
|
39673
39682
|
maxSeriesID = seriesID;
|
|
39674
39683
|
maxLabel = ldata;
|
|
@@ -50068,21 +50077,19 @@ var plugins_interaction_modules = {
|
|
|
50068
50077
|
e: e
|
|
50069
50078
|
};
|
|
50070
50079
|
|
|
50071
|
-
|
|
50072
|
-
var offset = _this.getMousePosition(e);
|
|
50073
|
-
|
|
50074
|
-
var hitInfo = _this.getItemByPosition(offset, selectItem.useApproximateValue);
|
|
50080
|
+
var offset = _this.getMousePosition(e);
|
|
50075
50081
|
|
|
50076
|
-
|
|
50077
|
-
_this.render(hitInfo);
|
|
50078
|
-
}
|
|
50082
|
+
var hitInfo = _this.getItemByPosition(offset, selectItem.useApproximateValue);
|
|
50079
50083
|
|
|
50080
|
-
|
|
50081
|
-
|
|
50082
|
-
args.seriesId = hitInfo.sId;
|
|
50083
|
-
args.acc = hitInfo.acc;
|
|
50084
|
+
if (hitInfo.label !== null) {
|
|
50085
|
+
_this.render(hitInfo);
|
|
50084
50086
|
}
|
|
50085
50087
|
|
|
50088
|
+
args.label = hitInfo.label;
|
|
50089
|
+
args.value = hitInfo.value;
|
|
50090
|
+
args.seriesId = hitInfo.sId;
|
|
50091
|
+
args.acc = hitInfo.acc;
|
|
50092
|
+
|
|
50086
50093
|
if (typeof _this.listeners['dbl-click'] === 'function') {
|
|
50087
50094
|
_this.listeners['dbl-click'](args);
|
|
50088
50095
|
}
|
|
@@ -50134,6 +50141,8 @@ var plugins_interaction_modules = {
|
|
|
50134
50141
|
};
|
|
50135
50142
|
|
|
50136
50143
|
var setSelectedLabelInfo = function setSelectedLabelInfo(targetAxis) {
|
|
50144
|
+
var itemHitInfo = _this.getItemByPosition(offset, false);
|
|
50145
|
+
|
|
50137
50146
|
var _this$getLabelInfoByP = _this.getLabelInfoByPosition(offset, targetAxis),
|
|
50138
50147
|
clickedLabelIndex = _this$getLabelInfoByP.labelIndex;
|
|
50139
50148
|
|
|
@@ -50149,9 +50158,13 @@ var plugins_interaction_modules = {
|
|
|
50149
50158
|
args.selected = _objectSpread2({
|
|
50150
50159
|
eventTarget: 'label'
|
|
50151
50160
|
}, lodash_es_cloneDeep(_this.defaultSelectInfo));
|
|
50161
|
+
args.label = itemHitInfo.label;
|
|
50162
|
+
args.dataIndex = itemHitInfo.maxIndex;
|
|
50152
50163
|
};
|
|
50153
50164
|
|
|
50154
50165
|
var setSelectedSeriesInfo = function setSelectedSeriesInfo() {
|
|
50166
|
+
var itemHitInfo = _this.getItemByPosition(offset, false);
|
|
50167
|
+
|
|
50155
50168
|
var hitInfo = _this.getSeriesInfoByPosition(offset);
|
|
50156
50169
|
|
|
50157
50170
|
if (hitInfo.sId !== null) {
|
|
@@ -50161,6 +50174,8 @@ var plugins_interaction_modules = {
|
|
|
50161
50174
|
args.selected = _objectSpread2({
|
|
50162
50175
|
eventTarget: 'series'
|
|
50163
50176
|
}, lodash_es_cloneDeep(_this.defaultSelectInfo));
|
|
50177
|
+
args.label = itemHitInfo.label;
|
|
50178
|
+
args.dataIndex = itemHitInfo.maxIndex;
|
|
50164
50179
|
}
|
|
50165
50180
|
};
|
|
50166
50181
|
|
|
@@ -50787,24 +50802,31 @@ var plugins_interaction_modules = {
|
|
|
50787
50802
|
}
|
|
50788
50803
|
|
|
50789
50804
|
if (gdata !== null && gdata !== undefined) {
|
|
50790
|
-
var
|
|
50791
|
-
|
|
50792
|
-
|
|
50805
|
+
var formattedSeriesName = this.getFormattedTooltipLabel({
|
|
50806
|
+
dataId: series.id,
|
|
50807
|
+
seriesId: sId,
|
|
50808
|
+
seriesName: series.name,
|
|
50809
|
+
itemData: item.data
|
|
50810
|
+
});
|
|
50811
|
+
var sw = ctx ? ctx.measureText(formattedSeriesName).width : 1;
|
|
50812
|
+
item.id = series.id;
|
|
50813
|
+
item.name = formattedSeriesName;
|
|
50793
50814
|
item.axis = {
|
|
50794
50815
|
x: series.xAxisIndex,
|
|
50795
50816
|
y: series.yAxisIndex
|
|
50796
50817
|
};
|
|
50797
50818
|
items[sId] = item;
|
|
50798
50819
|
var formattedTxt = this.getFormattedTooltipValue({
|
|
50820
|
+
dataId: series.id,
|
|
50799
50821
|
seriesId: sId,
|
|
50800
|
-
seriesName:
|
|
50822
|
+
seriesName: formattedSeriesName,
|
|
50801
50823
|
value: gdata,
|
|
50802
50824
|
itemData: item.data
|
|
50803
50825
|
});
|
|
50804
50826
|
item.data.formatted = formattedTxt;
|
|
50805
50827
|
|
|
50806
50828
|
if (maxsw < sw) {
|
|
50807
|
-
maxs =
|
|
50829
|
+
maxs = formattedSeriesName;
|
|
50808
50830
|
maxsw = sw;
|
|
50809
50831
|
}
|
|
50810
50832
|
|
|
@@ -50836,24 +50858,58 @@ var plugins_interaction_modules = {
|
|
|
50836
50858
|
},
|
|
50837
50859
|
|
|
50838
50860
|
/**
|
|
50839
|
-
* get formatted
|
|
50861
|
+
* get formatted label for tooltip
|
|
50862
|
+
* @param dataId
|
|
50840
50863
|
* @param seriesId
|
|
50841
50864
|
* @param seriesName
|
|
50842
|
-
* @param value
|
|
50843
50865
|
* @param itemData
|
|
50844
50866
|
* @returns {string}
|
|
50845
50867
|
*/
|
|
50846
|
-
|
|
50868
|
+
getFormattedTooltipLabel: function getFormattedTooltipLabel(_ref2) {
|
|
50847
50869
|
var _tooltipOpt$formatter;
|
|
50848
50870
|
|
|
50849
|
-
var
|
|
50871
|
+
var dataId = _ref2.dataId,
|
|
50872
|
+
seriesId = _ref2.seriesId,
|
|
50850
50873
|
seriesName = _ref2.seriesName,
|
|
50851
|
-
value = _ref2.value,
|
|
50852
50874
|
itemData = _ref2.itemData;
|
|
50853
50875
|
var opt = this.options;
|
|
50876
|
+
var tooltipOpt = opt.tooltip;
|
|
50877
|
+
var tooltipLabelFormatter = tooltipOpt === null || tooltipOpt === void 0 ? void 0 : (_tooltipOpt$formatter = tooltipOpt.formatter) === null || _tooltipOpt$formatter === void 0 ? void 0 : _tooltipOpt$formatter.label;
|
|
50878
|
+
var formattedLabel = seriesName;
|
|
50879
|
+
|
|
50880
|
+
if (tooltipLabelFormatter) {
|
|
50881
|
+
formattedLabel = tooltipLabelFormatter({
|
|
50882
|
+
dataId: dataId,
|
|
50883
|
+
seriesId: seriesId,
|
|
50884
|
+
seriesName: seriesName,
|
|
50885
|
+
itemData: itemData
|
|
50886
|
+
});
|
|
50887
|
+
}
|
|
50888
|
+
|
|
50889
|
+
return formattedLabel;
|
|
50890
|
+
},
|
|
50891
|
+
|
|
50892
|
+
/**
|
|
50893
|
+
* get formatted value for tooltip
|
|
50894
|
+
* @param dataId
|
|
50895
|
+
* @param seriesId
|
|
50896
|
+
* @param seriesName
|
|
50897
|
+
* @param value
|
|
50898
|
+
* @param itemData
|
|
50899
|
+
* @returns {string}
|
|
50900
|
+
*/
|
|
50901
|
+
getFormattedTooltipValue: function getFormattedTooltipValue(_ref3) {
|
|
50902
|
+
var _tooltipOpt$formatter2;
|
|
50903
|
+
|
|
50904
|
+
var dataId = _ref3.dataId,
|
|
50905
|
+
seriesId = _ref3.seriesId,
|
|
50906
|
+
seriesName = _ref3.seriesName,
|
|
50907
|
+
value = _ref3.value,
|
|
50908
|
+
itemData = _ref3.itemData;
|
|
50909
|
+
var opt = this.options;
|
|
50854
50910
|
var isHorizontal = !!opt.horizontal;
|
|
50855
50911
|
var tooltipOpt = opt.tooltip;
|
|
50856
|
-
var tooltipValueFormatter = typeof (tooltipOpt === null || tooltipOpt === void 0 ? void 0 : tooltipOpt.formatter) === 'function' ? tooltipOpt === null || tooltipOpt === void 0 ? void 0 : tooltipOpt.formatter : tooltipOpt === null || tooltipOpt === void 0 ? void 0 : (_tooltipOpt$
|
|
50912
|
+
var tooltipValueFormatter = typeof (tooltipOpt === null || tooltipOpt === void 0 ? void 0 : tooltipOpt.formatter) === 'function' ? tooltipOpt === null || tooltipOpt === void 0 ? void 0 : tooltipOpt.formatter : tooltipOpt === null || tooltipOpt === void 0 ? void 0 : (_tooltipOpt$formatter2 = tooltipOpt.formatter) === null || _tooltipOpt$formatter2 === void 0 ? void 0 : _tooltipOpt$formatter2.value;
|
|
50857
50913
|
var formattedTxt = value;
|
|
50858
50914
|
|
|
50859
50915
|
if (tooltipValueFormatter) {
|
|
@@ -50862,21 +50918,24 @@ var plugins_interaction_modules = {
|
|
|
50862
50918
|
value: value,
|
|
50863
50919
|
name: seriesName,
|
|
50864
50920
|
percentage: itemData === null || itemData === void 0 ? void 0 : itemData.percentage,
|
|
50865
|
-
seriesId: seriesId
|
|
50921
|
+
seriesId: seriesId,
|
|
50922
|
+
dataId: dataId
|
|
50866
50923
|
});
|
|
50867
50924
|
} else if (opt.type === 'heatMap') {
|
|
50868
50925
|
formattedTxt = tooltipValueFormatter({
|
|
50869
50926
|
x: itemData === null || itemData === void 0 ? void 0 : itemData.x,
|
|
50870
50927
|
y: itemData === null || itemData === void 0 ? void 0 : itemData.y,
|
|
50871
50928
|
value: value > -1 ? value : 'error',
|
|
50872
|
-
seriesId: seriesId
|
|
50929
|
+
seriesId: seriesId,
|
|
50930
|
+
dataId: dataId
|
|
50873
50931
|
});
|
|
50874
50932
|
} else {
|
|
50875
50933
|
formattedTxt = tooltipValueFormatter({
|
|
50876
50934
|
x: isHorizontal ? value : itemData === null || itemData === void 0 ? void 0 : itemData.x,
|
|
50877
50935
|
y: isHorizontal ? itemData === null || itemData === void 0 ? void 0 : itemData.y : value,
|
|
50878
50936
|
name: seriesName,
|
|
50879
|
-
seriesId: seriesId
|
|
50937
|
+
seriesId: seriesId,
|
|
50938
|
+
dataId: dataId
|
|
50880
50939
|
});
|
|
50881
50940
|
}
|
|
50882
50941
|
}
|
|
@@ -50915,9 +50974,16 @@ var plugins_interaction_modules = {
|
|
|
50915
50974
|
var hasData = series.data.find(function (data) {
|
|
50916
50975
|
return isHorizontal ? (data === null || data === void 0 ? void 0 : data.y) === hitItemData : (data === null || data === void 0 ? void 0 : data.x) === hitItemData;
|
|
50917
50976
|
});
|
|
50918
|
-
var
|
|
50977
|
+
var formattedSeriesName = this.getFormattedTooltipLabel({
|
|
50978
|
+
dataId: series.id,
|
|
50919
50979
|
seriesId: sId,
|
|
50920
50980
|
seriesName: series.name,
|
|
50981
|
+
itemData: hasData
|
|
50982
|
+
});
|
|
50983
|
+
var formattedValue = this.getFormattedTooltipValue({
|
|
50984
|
+
dataId: series.id,
|
|
50985
|
+
seriesId: sId,
|
|
50986
|
+
seriesName: formattedSeriesName,
|
|
50921
50987
|
value: hasData === null || hasData === void 0 ? void 0 : hasData.o,
|
|
50922
50988
|
itemData: hasData
|
|
50923
50989
|
});
|
|
@@ -50926,7 +50992,7 @@ var plugins_interaction_modules = {
|
|
|
50926
50992
|
var item = {};
|
|
50927
50993
|
item.color = series.color;
|
|
50928
50994
|
item.hit = false;
|
|
50929
|
-
item.name =
|
|
50995
|
+
item.name = formattedSeriesName;
|
|
50930
50996
|
item.axis = {
|
|
50931
50997
|
x: series.xAxisIndex,
|
|
50932
50998
|
y: series.yAxisIndex
|
|
@@ -50938,10 +51004,10 @@ var plugins_interaction_modules = {
|
|
|
50938
51004
|
}
|
|
50939
51005
|
|
|
50940
51006
|
var maxSeriesNameWidth = ctx ? ctx.measureText(maxSeriesName).width : 1;
|
|
50941
|
-
var seriesNameWidth = ctx ? ctx.measureText(
|
|
51007
|
+
var seriesNameWidth = ctx ? ctx.measureText(formattedSeriesName).width : 1;
|
|
50942
51008
|
|
|
50943
51009
|
if (maxSeriesNameWidth < seriesNameWidth) {
|
|
50944
|
-
maxSeriesName =
|
|
51010
|
+
maxSeriesName = formattedSeriesName;
|
|
50945
51011
|
}
|
|
50946
51012
|
|
|
50947
51013
|
var maxValueWidth = ctx ? ctx.measureText(maxValueTxt).width : 1;
|
|
@@ -51032,10 +51098,10 @@ var plugins_interaction_modules = {
|
|
|
51032
51098
|
});
|
|
51033
51099
|
var dataEntries = Object.entries(this.data.data);
|
|
51034
51100
|
result.data = result.dataIndex.map(function (labelIdx) {
|
|
51035
|
-
return Object.fromEntries(dataEntries.map(function (
|
|
51036
|
-
var
|
|
51037
|
-
sId =
|
|
51038
|
-
data =
|
|
51101
|
+
return Object.fromEntries(dataEntries.map(function (_ref4) {
|
|
51102
|
+
var _ref5 = _slicedToArray(_ref4, 2),
|
|
51103
|
+
sId = _ref5[0],
|
|
51104
|
+
data = _ref5[1];
|
|
51039
51105
|
|
|
51040
51106
|
return [sId, data[labelIdx]];
|
|
51041
51107
|
}));
|
|
@@ -51061,9 +51127,9 @@ var plugins_interaction_modules = {
|
|
|
51061
51127
|
return _this4.data.labels[targetAxisDirection][i];
|
|
51062
51128
|
});
|
|
51063
51129
|
var dataValues = Object.values(this.data.data)[0];
|
|
51064
|
-
result.data = dataValues.filter(function (
|
|
51065
|
-
var x =
|
|
51066
|
-
y =
|
|
51130
|
+
result.data = dataValues.filter(function (_ref6) {
|
|
51131
|
+
var x = _ref6.x,
|
|
51132
|
+
y = _ref6.y;
|
|
51067
51133
|
return result.label.includes(targetAxisDirection === 'y' ? y : x);
|
|
51068
51134
|
});
|
|
51069
51135
|
break;
|
|
@@ -51178,14 +51244,14 @@ var plugins_interaction_modules = {
|
|
|
51178
51244
|
* object.range: coordinate-based range in graph
|
|
51179
51245
|
* @returns {object}
|
|
51180
51246
|
*/
|
|
51181
|
-
getSelectionRange: function getSelectionRange(
|
|
51247
|
+
getSelectionRange: function getSelectionRange(_ref7) {
|
|
51182
51248
|
var _this$boxOverflow, _this$boxOverflow2, _this$boxOverflow3, _this$boxOverflow4;
|
|
51183
51249
|
|
|
51184
|
-
var xsp =
|
|
51185
|
-
ysp =
|
|
51186
|
-
width =
|
|
51187
|
-
height =
|
|
51188
|
-
range =
|
|
51250
|
+
var xsp = _ref7.xsp,
|
|
51251
|
+
ysp = _ref7.ysp,
|
|
51252
|
+
width = _ref7.width,
|
|
51253
|
+
height = _ref7.height,
|
|
51254
|
+
range = _ref7.range;
|
|
51189
51255
|
var dataRangeX = this.axesSteps.x.length ? this.axesSteps.x[0] : null;
|
|
51190
51256
|
var dataRangeY = this.axesSteps.y.length ? this.axesSteps.y[0] : null;
|
|
51191
51257
|
|
|
@@ -51242,11 +51308,11 @@ var plugins_interaction_modules = {
|
|
|
51242
51308
|
|
|
51243
51309
|
var sId = Object.keys(this.seriesList)[0];
|
|
51244
51310
|
|
|
51245
|
-
var
|
|
51246
|
-
xMin =
|
|
51247
|
-
xMax =
|
|
51248
|
-
yMin =
|
|
51249
|
-
yMax =
|
|
51311
|
+
var _ref8 = (_this$seriesList$sId$ = this.seriesList[sId].findSelectionRange(range)) !== null && _this$seriesList$sId$ !== void 0 ? _this$seriesList$sId$ : {},
|
|
51312
|
+
xMin = _ref8.xMin,
|
|
51313
|
+
xMax = _ref8.xMax,
|
|
51314
|
+
yMin = _ref8.yMin,
|
|
51315
|
+
yMax = _ref8.yMax;
|
|
51250
51316
|
|
|
51251
51317
|
return {
|
|
51252
51318
|
xMin: xMin !== null && xMin !== void 0 ? xMin : dataRangeX.graphMin,
|
|
@@ -51621,9 +51687,11 @@ var plugins_tooltip_modules = {
|
|
|
51621
51687
|
var seriesList = [];
|
|
51622
51688
|
seriesKeys.forEach(function (seriesName) {
|
|
51623
51689
|
seriesList.push({
|
|
51690
|
+
id: seriesName,
|
|
51624
51691
|
data: items[seriesName].data,
|
|
51625
51692
|
color: items[seriesName].color,
|
|
51626
|
-
name: items[seriesName].name
|
|
51693
|
+
name: items[seriesName].name,
|
|
51694
|
+
dataId: items[seriesName].id
|
|
51627
51695
|
});
|
|
51628
51696
|
});
|
|
51629
51697
|
|
|
@@ -51648,7 +51716,7 @@ var plugins_tooltip_modules = {
|
|
|
51648
51716
|
var textLineCnt = 1;
|
|
51649
51717
|
|
|
51650
51718
|
for (var ix = 0; ix < seriesList.length; ix++) {
|
|
51651
|
-
var _opt$fontColor$label, _opt$fontColor
|
|
51719
|
+
var _opt$fontColor$label, _opt$fontColor$value;
|
|
51652
51720
|
|
|
51653
51721
|
var gdata = seriesList[ix].data;
|
|
51654
51722
|
var color = seriesList[ix].color;
|
|
@@ -51669,15 +51737,21 @@ var plugins_tooltip_modules = {
|
|
|
51669
51737
|
}, color);
|
|
51670
51738
|
} else {
|
|
51671
51739
|
ctx.fillStyle = color;
|
|
51672
|
-
}
|
|
51740
|
+
}
|
|
51673
51741
|
|
|
51742
|
+
var curTooltipInfo = {
|
|
51743
|
+
id: seriesList[ix].id,
|
|
51744
|
+
name: seriesList[ix].name,
|
|
51745
|
+
value: valueText,
|
|
51746
|
+
dataId: seriesList[ix].dataId
|
|
51747
|
+
}; // 1. Draw series color
|
|
51674
51748
|
|
|
51675
51749
|
this.drawSeriesColorShape(ctx, opt.colorShape, {
|
|
51676
51750
|
x: itemX,
|
|
51677
51751
|
y: itemY
|
|
51678
51752
|
}); // 2. Draw series name
|
|
51679
51753
|
|
|
51680
|
-
ctx.fillStyle =
|
|
51754
|
+
ctx.fillStyle = typeof opt.fontColor.label === 'function' ? opt.fontColor.label(curTooltipInfo) : (_opt$fontColor$label = opt.fontColor.label) !== null && _opt$fontColor$label !== void 0 ? _opt$fontColor$label : opt.fontColor;
|
|
51681
51755
|
ctx.textBaseline = 'Bottom';
|
|
51682
51756
|
var seriesNameSpaceWidth = opt.maxWidth - Math.round(ctx.measureText(maxValue).width) - boxPadding.l - boxPadding.r - seriesColorMarginRight - VALUE_MARGIN;
|
|
51683
51757
|
var xPos = itemX + seriesColorMarginRight;
|
|
@@ -51714,7 +51788,7 @@ var plugins_tooltip_modules = {
|
|
|
51714
51788
|
|
|
51715
51789
|
ctx.save(); // 3. Draw value
|
|
51716
51790
|
|
|
51717
|
-
ctx.fillStyle =
|
|
51791
|
+
ctx.fillStyle = typeof opt.fontColor.value === 'function' ? opt.fontColor.value(curTooltipInfo) : (_opt$fontColor$value = opt.fontColor.value) !== null && _opt$fontColor$value !== void 0 ? _opt$fontColor$value : opt.fontColor;
|
|
51718
51792
|
ctx.textAlign = 'right';
|
|
51719
51793
|
ctx.fillText(valueText, this.tooltipDOM.offsetWidth - boxPadding.r, itemY);
|
|
51720
51794
|
ctx.restore();
|
|
@@ -51735,7 +51809,7 @@ var plugins_tooltip_modules = {
|
|
|
51735
51809
|
* @returns {undefined}
|
|
51736
51810
|
*/
|
|
51737
51811
|
drawToolTipForHeatMap: function drawToolTipForHeatMap(hitInfo, context) {
|
|
51738
|
-
var _opt$fontColor$label2, _opt$
|
|
51812
|
+
var _opt$fontColor$label2, _opt$fontColor$value2;
|
|
51739
51813
|
|
|
51740
51814
|
var ctx = context;
|
|
51741
51815
|
var items = hitInfo.items;
|
|
@@ -51809,15 +51883,21 @@ var plugins_tooltip_modules = {
|
|
|
51809
51883
|
}, hitColor);
|
|
51810
51884
|
} else {
|
|
51811
51885
|
ctx.fillStyle = hitColor;
|
|
51812
|
-
}
|
|
51886
|
+
}
|
|
51813
51887
|
|
|
51888
|
+
var curTooltipInfo = {
|
|
51889
|
+
id: hitInfo.hitId,
|
|
51890
|
+
name: hitItem.y,
|
|
51891
|
+
value: valueText,
|
|
51892
|
+
dataId: items[sId].id
|
|
51893
|
+
}; // 1. Draw value color
|
|
51814
51894
|
|
|
51815
51895
|
this.drawSeriesColorShape(ctx, opt.colorShape, {
|
|
51816
51896
|
x: itemX,
|
|
51817
51897
|
y: itemY
|
|
51818
51898
|
}); // 2. Draw value y names
|
|
51819
51899
|
|
|
51820
|
-
ctx.fillStyle =
|
|
51900
|
+
ctx.fillStyle = typeof opt.fontColor.label === 'function' ? opt.fontColor.label(curTooltipInfo) : (_opt$fontColor$label2 = opt.fontColor.label) !== null && _opt$fontColor$label2 !== void 0 ? _opt$fontColor$label2 : opt.fontColor;
|
|
51821
51901
|
ctx.textBaseline = 'Bottom';
|
|
51822
51902
|
|
|
51823
51903
|
if (this.axesY.length) {
|
|
@@ -51826,6 +51906,7 @@ var plugins_tooltip_modules = {
|
|
|
51826
51906
|
|
|
51827
51907
|
|
|
51828
51908
|
ctx.textAlign = 'right';
|
|
51909
|
+
ctx.fillStyle = typeof opt.fontColor.value === 'function' ? opt.fontColor.value(curTooltipInfo) : (_opt$fontColor$value2 = opt.fontColor.value) !== null && _opt$fontColor$value2 !== void 0 ? _opt$fontColor$value2 : opt.fontColor;
|
|
51829
51910
|
ctx.fillText(valueText, this.tooltipDOM.offsetWidth - boxPadding.r, itemY);
|
|
51830
51911
|
ctx.closePath();
|
|
51831
51912
|
},
|
|
@@ -51898,7 +51979,7 @@ var plugins_tooltip_modules = {
|
|
|
51898
51979
|
var textLineCnt = 1;
|
|
51899
51980
|
|
|
51900
51981
|
for (var ix = 0; ix < seriesList.length; ix++) {
|
|
51901
|
-
var _opt$fontColor$label3, _opt$
|
|
51982
|
+
var _opt$fontColor$label3, _opt$fontColor$value3;
|
|
51902
51983
|
|
|
51903
51984
|
var gdata = seriesList[ix].data;
|
|
51904
51985
|
var color = seriesList[ix].color;
|
|
@@ -51919,15 +52000,21 @@ var plugins_tooltip_modules = {
|
|
|
51919
52000
|
}, color);
|
|
51920
52001
|
} else {
|
|
51921
52002
|
ctx.fillStyle = color;
|
|
51922
|
-
}
|
|
52003
|
+
}
|
|
51923
52004
|
|
|
52005
|
+
var curTooltipInfo = {
|
|
52006
|
+
id: hitInfo.hitId,
|
|
52007
|
+
name: seriesList[ix].name,
|
|
52008
|
+
value: valueText,
|
|
52009
|
+
dataId: seriesList[ix].dataId
|
|
52010
|
+
}; // 1. Draw series color
|
|
51924
52011
|
|
|
51925
52012
|
this.drawSeriesColorShape(ctx, opt.colorShape, {
|
|
51926
52013
|
x: itemX,
|
|
51927
52014
|
y: itemY
|
|
51928
52015
|
}); // 2. Draw series name
|
|
51929
52016
|
|
|
51930
|
-
ctx.fillStyle =
|
|
52017
|
+
ctx.fillStyle = typeof opt.fontColor.label === 'function' ? opt.fontColor.label(curTooltipInfo) : (_opt$fontColor$label3 = opt.fontColor.label) !== null && _opt$fontColor$label3 !== void 0 ? _opt$fontColor$label3 : opt.fontColor;
|
|
51931
52018
|
ctx.textBaseline = 'Bottom';
|
|
51932
52019
|
var seriesNameSpaceWidth = opt.maxWidth - Math.round(ctx.measureText(maxValue).width) - boxPadding.l - boxPadding.r - seriesColorMarginRight - VALUE_MARGIN;
|
|
51933
52020
|
var xPos = itemX + seriesColorMarginRight;
|
|
@@ -51965,6 +52052,7 @@ var plugins_tooltip_modules = {
|
|
|
51965
52052
|
ctx.save(); // 3. Draw value
|
|
51966
52053
|
|
|
51967
52054
|
ctx.textAlign = 'right';
|
|
52055
|
+
ctx.fillStyle = typeof opt.fontColor.value === 'function' ? opt.fontColor.value(curTooltipInfo) : (_opt$fontColor$value3 = opt.fontColor.value) !== null && _opt$fontColor$value3 !== void 0 ? _opt$fontColor$value3 : opt.fontColor;
|
|
51968
52056
|
ctx.fillText(valueText, this.tooltipDOM.offsetWidth - boxPadding.r, itemY);
|
|
51969
52057
|
ctx.restore();
|
|
51970
52058
|
ctx.closePath(); // 4. add lineSpacing
|
|
@@ -52016,7 +52104,7 @@ var plugins_tooltip_modules = {
|
|
|
52016
52104
|
var opt = (_this$options5 = this.options) === null || _this$options5 === void 0 ? void 0 : _this$options5.tooltip;
|
|
52017
52105
|
|
|
52018
52106
|
if ((_opt$formatter2 = opt.formatter) !== null && _opt$formatter2 !== void 0 && _opt$formatter2.html) {
|
|
52019
|
-
var _opt$formatter3, _opt$fontColor$title, _opt$
|
|
52107
|
+
var _opt$formatter3, _opt$fontColor$title, _opt$fontColor;
|
|
52020
52108
|
|
|
52021
52109
|
this.tooltipDOM.innerHTML = '';
|
|
52022
52110
|
var seriesList = [];
|
|
@@ -52037,7 +52125,7 @@ var plugins_tooltip_modules = {
|
|
|
52037
52125
|
this.tooltipDOM.style.overflowY = 'hidden';
|
|
52038
52126
|
this.tooltipDOM.style.backgroundColor = opt.backgroundColor;
|
|
52039
52127
|
this.tooltipDOM.style.border = "1px solid ".concat(opt.borderColor);
|
|
52040
|
-
this.tooltipDOM.style.color = (_opt$fontColor$title = (_opt$
|
|
52128
|
+
this.tooltipDOM.style.color = (_opt$fontColor$title = (_opt$fontColor = opt.fontColor) === null || _opt$fontColor === void 0 ? void 0 : _opt$fontColor.title) !== null && _opt$fontColor$title !== void 0 ? _opt$fontColor$title : opt.fontColor;
|
|
52041
52129
|
}
|
|
52042
52130
|
},
|
|
52043
52131
|
|
|
@@ -56004,7 +56092,7 @@ var uses_useZoomModel = function useZoomModel(evChartNormalizedOptions, _ref3, s
|
|
|
56004
56092
|
}, function (chartOpt) {
|
|
56005
56093
|
var newOpt = getNormalizedOptions(chartOpt);
|
|
56006
56094
|
var isUpdateLegendType = !lodash_es_isEqual(newOpt.legend.table, evChart.options.legend.table);
|
|
56007
|
-
var isUpdateTooltipFormatter = !lodash_es_isEqual(newOpt.tooltip.formatter, evChart.options.tooltip.formatter);
|
|
56095
|
+
var isUpdateTooltipFormatter = newOpt.tooltip.use === true && !lodash_es_isEqual(newOpt.tooltip.formatter, evChart.options.tooltip.formatter);
|
|
56008
56096
|
evChart.options = lodash_es_cloneDeep(newOpt);
|
|
56009
56097
|
evChart.update({
|
|
56010
56098
|
updateSeries: false,
|
|
@@ -56249,8 +56337,8 @@ var uses_useZoomModel = function useZoomModel(evChartNormalizedOptions, _ref3, s
|
|
|
56249
56337
|
});
|
|
56250
56338
|
// CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=script&lang=js
|
|
56251
56339
|
|
|
56252
|
-
// EXTERNAL MODULE: ./src/components/chart/Chart.vue?vue&type=style&index=0&id=
|
|
56253
|
-
var
|
|
56340
|
+
// EXTERNAL MODULE: ./src/components/chart/Chart.vue?vue&type=style&index=0&id=68e9bb60&lang=scss
|
|
56341
|
+
var Chartvue_type_style_index_0_id_68e9bb60_lang_scss = __webpack_require__("cce5");
|
|
56254
56342
|
|
|
56255
56343
|
// CONCATENATED MODULE: ./src/components/chart/Chart.vue
|
|
56256
56344
|
|
|
@@ -56260,7 +56348,7 @@ var Chartvue_type_style_index_0_id_6a746eba_lang_scss = __webpack_require__("073
|
|
|
56260
56348
|
|
|
56261
56349
|
|
|
56262
56350
|
|
|
56263
|
-
const Chart_exports_ = /*#__PURE__*/exportHelper_default()(Chartvue_type_script_lang_js, [['render',
|
|
56351
|
+
const Chart_exports_ = /*#__PURE__*/exportHelper_default()(Chartvue_type_script_lang_js, [['render',Chartvue_type_template_id_68e9bb60_render]])
|
|
56264
56352
|
|
|
56265
56353
|
/* harmony default export */ var Chart = (Chart_exports_);
|
|
56266
56354
|
// CONCATENATED MODULE: ./src/components/chart/index.js
|