evui 3.4.151 → 3.4.152
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 +414 -94
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +414 -94
- 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 +68 -64
- package/src/components/chart/plugins/plugins.legend.js +44 -8
- package/src/components/chart/scale/scale.linear.js +156 -25
- package/src/components/chart/scale/scale.time.js +94 -0
- package/src/components/chart/uses.js +7 -0
package/dist/evui.umd.js
CHANGED
|
@@ -700,20 +700,6 @@ if(content.locals) module.exports = content.locals;
|
|
|
700
700
|
var add = __webpack_require__("499e").default
|
|
701
701
|
var update = add("ede85a96", content, true, {"sourceMap":false,"shadowMode":false});
|
|
702
702
|
|
|
703
|
-
/***/ }),
|
|
704
|
-
|
|
705
|
-
/***/ "1776":
|
|
706
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
707
|
-
|
|
708
|
-
// Imports
|
|
709
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
710
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
711
|
-
// Module
|
|
712
|
-
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}", ""]);
|
|
713
|
-
// Exports
|
|
714
|
-
module.exports = exports;
|
|
715
|
-
|
|
716
|
-
|
|
717
703
|
/***/ }),
|
|
718
704
|
|
|
719
705
|
/***/ "17c2":
|
|
@@ -6149,6 +6135,21 @@ exports.push([module.i, "#ev-message-modal{position:fixed;top:0;left:50%;z-index
|
|
|
6149
6135
|
module.exports = exports;
|
|
6150
6136
|
|
|
6151
6137
|
|
|
6138
|
+
/***/ }),
|
|
6139
|
+
|
|
6140
|
+
/***/ "50c1":
|
|
6141
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6142
|
+
|
|
6143
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
6144
|
+
|
|
6145
|
+
// load the styles
|
|
6146
|
+
var content = __webpack_require__("852a");
|
|
6147
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
6148
|
+
if(content.locals) module.exports = content.locals;
|
|
6149
|
+
// add the styles to the DOM
|
|
6150
|
+
var add = __webpack_require__("499e").default
|
|
6151
|
+
var update = add("52fbf574", content, true, {"sourceMap":false,"shadowMode":false});
|
|
6152
|
+
|
|
6152
6153
|
/***/ }),
|
|
6153
6154
|
|
|
6154
6155
|
/***/ "50c4":
|
|
@@ -6520,17 +6521,6 @@ exports.push([module.i, ".grid-pagination[data-v-414aff2b]{padding-top:8px}", ""
|
|
|
6520
6521
|
module.exports = exports;
|
|
6521
6522
|
|
|
6522
6523
|
|
|
6523
|
-
/***/ }),
|
|
6524
|
-
|
|
6525
|
-
/***/ "5a0a":
|
|
6526
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6527
|
-
|
|
6528
|
-
"use strict";
|
|
6529
|
-
/* 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_24eba9c6_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9138");
|
|
6530
|
-
/* 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_24eba9c6_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_24eba9c6_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
6531
|
-
/* unused harmony reexport * */
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
6524
|
/***/ }),
|
|
6535
6525
|
|
|
6536
6526
|
/***/ "5a0c":
|
|
@@ -7125,6 +7115,25 @@ exports.default = (sfc, props) => {
|
|
|
7125
7115
|
};
|
|
7126
7116
|
|
|
7127
7117
|
|
|
7118
|
+
/***/ }),
|
|
7119
|
+
|
|
7120
|
+
/***/ "6b93":
|
|
7121
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7122
|
+
|
|
7123
|
+
var $ = __webpack_require__("23e7");
|
|
7124
|
+
|
|
7125
|
+
var log = Math.log;
|
|
7126
|
+
var LOG10E = Math.LOG10E;
|
|
7127
|
+
|
|
7128
|
+
// `Math.log10` method
|
|
7129
|
+
// https://tc39.github.io/ecma262/#sec-math.log10
|
|
7130
|
+
$({ target: 'Math', stat: true }, {
|
|
7131
|
+
log10: function log10(x) {
|
|
7132
|
+
return log(x) * LOG10E;
|
|
7133
|
+
}
|
|
7134
|
+
});
|
|
7135
|
+
|
|
7136
|
+
|
|
7128
7137
|
/***/ }),
|
|
7129
7138
|
|
|
7130
7139
|
/***/ "6bcc":
|
|
@@ -7942,6 +7951,20 @@ exports.push([module.i, ".ev-window-scroll-lock{overflow:hidden!important}.ev-wi
|
|
|
7942
7951
|
module.exports = exports;
|
|
7943
7952
|
|
|
7944
7953
|
|
|
7954
|
+
/***/ }),
|
|
7955
|
+
|
|
7956
|
+
/***/ "852a":
|
|
7957
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7958
|
+
|
|
7959
|
+
// Imports
|
|
7960
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
7961
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
7962
|
+
// Module
|
|
7963
|
+
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}", ""]);
|
|
7964
|
+
// Exports
|
|
7965
|
+
module.exports = exports;
|
|
7966
|
+
|
|
7967
|
+
|
|
7945
7968
|
/***/ }),
|
|
7946
7969
|
|
|
7947
7970
|
/***/ "857a":
|
|
@@ -11216,27 +11239,12 @@ $({ target: 'Number', stat: true }, {
|
|
|
11216
11239
|
});
|
|
11217
11240
|
|
|
11218
11241
|
|
|
11219
|
-
/***/ }),
|
|
11220
|
-
|
|
11221
|
-
/***/ "9138":
|
|
11222
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
11223
|
-
|
|
11224
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
11225
|
-
|
|
11226
|
-
// load the styles
|
|
11227
|
-
var content = __webpack_require__("1776");
|
|
11228
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
11229
|
-
if(content.locals) module.exports = content.locals;
|
|
11230
|
-
// add the styles to the DOM
|
|
11231
|
-
var add = __webpack_require__("499e").default
|
|
11232
|
-
var update = add("9519e5b6", content, true, {"sourceMap":false,"shadowMode":false});
|
|
11233
|
-
|
|
11234
11242
|
/***/ }),
|
|
11235
11243
|
|
|
11236
11244
|
/***/ "9224":
|
|
11237
11245
|
/***/ (function(module) {
|
|
11238
11246
|
|
|
11239
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11247
|
+
module.exports = JSON.parse("{\"a\":\"3.4.152\"}");
|
|
11240
11248
|
|
|
11241
11249
|
/***/ }),
|
|
11242
11250
|
|
|
@@ -12487,6 +12495,17 @@ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGT
|
|
|
12487
12495
|
});
|
|
12488
12496
|
|
|
12489
12497
|
|
|
12498
|
+
/***/ }),
|
|
12499
|
+
|
|
12500
|
+
/***/ "a444":
|
|
12501
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12502
|
+
|
|
12503
|
+
"use strict";
|
|
12504
|
+
/* 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_de83f53c_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("50c1");
|
|
12505
|
+
/* 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_de83f53c_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_de83f53c_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
12506
|
+
/* unused harmony reexport * */
|
|
12507
|
+
|
|
12508
|
+
|
|
12490
12509
|
/***/ }),
|
|
12491
12510
|
|
|
12492
12511
|
/***/ "a4d3":
|
|
@@ -38346,20 +38365,20 @@ Grid.install = function (app) {
|
|
|
38346
38365
|
};
|
|
38347
38366
|
|
|
38348
38367
|
/* harmony default export */ var grid = (Grid);
|
|
38349
|
-
// 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=
|
|
38368
|
+
// 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=de83f53c
|
|
38350
38369
|
|
|
38351
|
-
var
|
|
38370
|
+
var Chartvue_type_template_id_de83f53c_hoisted_1 = {
|
|
38352
38371
|
key: 0,
|
|
38353
38372
|
ref: "evChartToolbarRef"
|
|
38354
38373
|
};
|
|
38355
|
-
function
|
|
38374
|
+
function Chartvue_type_template_id_de83f53c_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
38356
38375
|
var _$setup$zoomOptions$t;
|
|
38357
38376
|
|
|
38358
38377
|
var _component_ev_chart_toolbar = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-chart-toolbar");
|
|
38359
38378
|
|
|
38360
38379
|
var _directive_resize = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("resize");
|
|
38361
38380
|
|
|
38362
|
-
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",
|
|
38381
|
+
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_de83f53c_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_chart_toolbar, {
|
|
38363
38382
|
toolbar: $setup.zoomOptions.toolbar,
|
|
38364
38383
|
onOnClickToolbar: $setup.onClickToolbar
|
|
38365
38384
|
}, 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", {
|
|
@@ -38368,7 +38387,7 @@ function Chartvue_type_template_id_24eba9c6_render(_ctx, _cache, $props, $setup,
|
|
|
38368
38387
|
class: "ev-chart"
|
|
38369
38388
|
}, null, 4), [[_directive_resize, $setup.onResize]])], 64);
|
|
38370
38389
|
}
|
|
38371
|
-
// CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=template&id=
|
|
38390
|
+
// CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=template&id=de83f53c
|
|
38372
38391
|
|
|
38373
38392
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
38374
38393
|
var es_object_assign = __webpack_require__("cca65");
|
|
@@ -46340,12 +46359,105 @@ var scale_time_TimeScale = /*#__PURE__*/function (_Scale) {
|
|
|
46340
46359
|
|
|
46341
46360
|
return Math.ceil((max - min) / step);
|
|
46342
46361
|
}
|
|
46362
|
+
/**
|
|
46363
|
+
* With range information, calculate how many labels in axis
|
|
46364
|
+
* @param {object} range min/max information
|
|
46365
|
+
*
|
|
46366
|
+
* @returns {object} steps, interval, min/max graph value
|
|
46367
|
+
*/
|
|
46368
|
+
|
|
46369
|
+
}, {
|
|
46370
|
+
key: "calculateSteps",
|
|
46371
|
+
value: function calculateSteps(range) {
|
|
46372
|
+
var maxValue = range.maxValue,
|
|
46373
|
+
minValue = range.minValue,
|
|
46374
|
+
maxSteps = range.maxSteps; // 사용자 interval로 인식하는 경우: 숫자 또는 객체({ time, unit }) 형태만
|
|
46375
|
+
// 문자열('hour', 'second' 등)은 기존 로직(분기 D)으로 처리
|
|
46376
|
+
|
|
46377
|
+
var hasUserRange = Array.isArray(this.range) && this.range.length === 2;
|
|
46378
|
+
var hasUserInterval = typeof this.interval === 'number' || _typeof(this.interval) === 'object' && this.interval !== null;
|
|
46379
|
+
var resolvedInterval = hasUserInterval ? this.getInterval(range) : null;
|
|
46380
|
+
var isValidInterval = resolvedInterval != null && resolvedInterval > 0 && isFinite(resolvedInterval);
|
|
46381
|
+
var graphMin = +minValue;
|
|
46382
|
+
var graphMax = +maxValue;
|
|
46383
|
+
var graphRange = graphMax - graphMin;
|
|
46384
|
+
var interval;
|
|
46385
|
+
var steps;
|
|
46386
|
+
|
|
46387
|
+
if (hasUserRange && isValidInterval) {
|
|
46388
|
+
// 1) user range + interval
|
|
46389
|
+
var candidateSteps = graphRange / resolvedInterval;
|
|
46390
|
+
var isExactlyDividable = Math.abs(candidateSteps - Math.round(candidateSteps)) < 1e-10;
|
|
46391
|
+
|
|
46392
|
+
if (isExactlyDividable && candidateSteps <= maxSteps) {
|
|
46393
|
+
// 1-1) interval 호환되는 경우
|
|
46394
|
+
interval = resolvedInterval;
|
|
46395
|
+
steps = Math.round(candidateSteps);
|
|
46396
|
+
} else {
|
|
46397
|
+
// 1-2) interval 호환되지 않음 -> 사용자 interval을 사용하지 않음
|
|
46398
|
+
steps = maxSteps;
|
|
46399
|
+
interval = graphRange / steps;
|
|
46400
|
+
}
|
|
46401
|
+
} else if (hasUserRange) {
|
|
46402
|
+
// 2) user range only
|
|
46403
|
+
steps = maxSteps;
|
|
46404
|
+
interval = graphRange / steps;
|
|
46405
|
+
} else if (isValidInterval) {
|
|
46406
|
+
// 3) user interval only
|
|
46407
|
+
interval = resolvedInterval;
|
|
46408
|
+
steps = Math.ceil(graphRange / interval);
|
|
46409
|
+
|
|
46410
|
+
while (steps > maxSteps) {
|
|
46411
|
+
interval *= 2;
|
|
46412
|
+
steps = Math.ceil(graphRange / interval);
|
|
46413
|
+
}
|
|
46414
|
+
|
|
46415
|
+
graphMax = graphMin + interval * steps;
|
|
46416
|
+
} else {
|
|
46417
|
+
// 4) 기존 로직
|
|
46418
|
+
interval = this.getInterval(range);
|
|
46419
|
+
var increase = minValue;
|
|
46420
|
+
var numberOfSteps;
|
|
46421
|
+
|
|
46422
|
+
while (increase < maxValue) {
|
|
46423
|
+
increase += interval;
|
|
46424
|
+
}
|
|
46425
|
+
|
|
46426
|
+
graphMax = increase;
|
|
46427
|
+
numberOfSteps = Math.round(graphRange / interval);
|
|
46428
|
+
|
|
46429
|
+
while (numberOfSteps > maxSteps) {
|
|
46430
|
+
interval *= 2;
|
|
46431
|
+
numberOfSteps = Math.round(graphRange / interval);
|
|
46432
|
+
var tempInterval = graphRange / numberOfSteps;
|
|
46433
|
+
interval = this.decimalPoint ? tempInterval : Math.ceil(tempInterval);
|
|
46434
|
+
}
|
|
46435
|
+
|
|
46436
|
+
if (graphMax - graphMin > numberOfSteps * interval) {
|
|
46437
|
+
var _tempInterval = (graphMax - graphMin) / numberOfSteps;
|
|
46438
|
+
|
|
46439
|
+
interval = this.decimalPoint ? _tempInterval : Math.ceil(_tempInterval);
|
|
46440
|
+
}
|
|
46441
|
+
|
|
46442
|
+
steps = numberOfSteps;
|
|
46443
|
+
}
|
|
46444
|
+
|
|
46445
|
+
return {
|
|
46446
|
+
steps: steps,
|
|
46447
|
+
interval: interval,
|
|
46448
|
+
graphMin: graphMin,
|
|
46449
|
+
graphMax: graphMax
|
|
46450
|
+
};
|
|
46451
|
+
}
|
|
46343
46452
|
}]);
|
|
46344
46453
|
|
|
46345
46454
|
return TimeScale;
|
|
46346
46455
|
}(scale_scale);
|
|
46347
46456
|
|
|
46348
46457
|
/* harmony default export */ var scale_time = (scale_time_TimeScale);
|
|
46458
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.math.log10.js
|
|
46459
|
+
var es_math_log10 = __webpack_require__("6b93");
|
|
46460
|
+
|
|
46349
46461
|
// CONCATENATED MODULE: ./src/components/chart/scale/scale.linear.js
|
|
46350
46462
|
|
|
46351
46463
|
|
|
@@ -46358,6 +46470,8 @@ var scale_time_TimeScale = /*#__PURE__*/function (_Scale) {
|
|
|
46358
46470
|
|
|
46359
46471
|
|
|
46360
46472
|
|
|
46473
|
+
|
|
46474
|
+
|
|
46361
46475
|
var scale_linear_LinearScale = /*#__PURE__*/function (_Scale) {
|
|
46362
46476
|
_inherits(LinearScale, _Scale);
|
|
46363
46477
|
|
|
@@ -46380,11 +46494,16 @@ var scale_linear_LinearScale = /*#__PURE__*/function (_Scale) {
|
|
|
46380
46494
|
* @returns {string} formatted label
|
|
46381
46495
|
*/
|
|
46382
46496
|
value: function getTruthyValue(value) {
|
|
46383
|
-
|
|
46497
|
+
var _this$adjustedDecimal;
|
|
46498
|
+
|
|
46499
|
+
var decimalPoint = (_this$adjustedDecimal = this.adjustedDecimalPoint) !== null && _this$adjustedDecimal !== void 0 ? _this$adjustedDecimal : this.decimalPoint;
|
|
46500
|
+
return truthyNumber(value) ? Number(value.toFixed(decimalPoint)) : value;
|
|
46384
46501
|
}
|
|
46385
46502
|
}, {
|
|
46386
46503
|
key: "getLabelFormat",
|
|
46387
46504
|
value: function getLabelFormat(value) {
|
|
46505
|
+
var _this$adjustedDecimal2;
|
|
46506
|
+
|
|
46388
46507
|
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
46389
46508
|
|
|
46390
46509
|
if (this.formatter) {
|
|
@@ -46401,7 +46520,8 @@ var scale_linear_LinearScale = /*#__PURE__*/function (_Scale) {
|
|
|
46401
46520
|
}
|
|
46402
46521
|
}
|
|
46403
46522
|
|
|
46404
|
-
|
|
46523
|
+
var decimalPoint = (_this$adjustedDecimal2 = this.adjustedDecimalPoint) !== null && _this$adjustedDecimal2 !== void 0 ? _this$adjustedDecimal2 : this.decimalPoint;
|
|
46524
|
+
return helpers_util.labelSignFormat(value, decimalPoint);
|
|
46405
46525
|
}
|
|
46406
46526
|
/**
|
|
46407
46527
|
* Calculate interval
|
|
@@ -46428,44 +46548,164 @@ var scale_linear_LinearScale = /*#__PURE__*/function (_Scale) {
|
|
|
46428
46548
|
return Math.ceil((max - min) / step);
|
|
46429
46549
|
}
|
|
46430
46550
|
/**
|
|
46431
|
-
|
|
46432
|
-
|
|
46433
|
-
|
|
46434
|
-
|
|
46435
|
-
|
|
46436
|
-
|
|
46437
|
-
* @returns {number} decimal point
|
|
46438
|
-
*/
|
|
46551
|
+
* Get auto decimal point from interval
|
|
46552
|
+
* interval을 표현할 수 있는 최소 decimal 반환
|
|
46553
|
+
* 너무 긴 decimal은 제한
|
|
46554
|
+
* @param {number} interval
|
|
46555
|
+
* @returns {number} decimal point
|
|
46556
|
+
*/
|
|
46439
46557
|
|
|
46440
46558
|
}, {
|
|
46441
|
-
key: "
|
|
46442
|
-
value: function
|
|
46443
|
-
|
|
46444
|
-
numberOfSteps = _ref.numberOfSteps;
|
|
46445
|
-
|
|
46446
|
-
if (numberOfSteps <= 0 || graphRange === 0) {
|
|
46559
|
+
key: "getAutoDecimalPointFromInterval",
|
|
46560
|
+
value: function getAutoDecimalPointFromInterval(interval) {
|
|
46561
|
+
if (!isFinite(interval) || interval === 0) {
|
|
46447
46562
|
return 0;
|
|
46448
46563
|
}
|
|
46449
46564
|
|
|
46450
|
-
var
|
|
46565
|
+
var absInterval = Math.abs(interval); // 1 미만 값 처리 (소수점 최대 10자리 제한)
|
|
46566
|
+
|
|
46567
|
+
if (absInterval < 1) {
|
|
46568
|
+
var decimals = 0;
|
|
46569
|
+
var temp = absInterval;
|
|
46570
|
+
|
|
46571
|
+
while (temp < 1) {
|
|
46572
|
+
temp *= 10;
|
|
46573
|
+
decimals++;
|
|
46574
|
+
|
|
46575
|
+
if (decimals > 10) {
|
|
46576
|
+
break;
|
|
46577
|
+
}
|
|
46578
|
+
}
|
|
46579
|
+
|
|
46580
|
+
return decimals;
|
|
46581
|
+
} // 1 이상 값 처리 (소수점 최대 2자리 제한)
|
|
46451
46582
|
|
|
46452
|
-
|
|
46583
|
+
|
|
46584
|
+
for (var decimal = 0; decimal <= 6; decimal++) {
|
|
46585
|
+
var rounded = Number(absInterval.toFixed(decimal));
|
|
46586
|
+
|
|
46587
|
+
if (Math.abs(rounded - absInterval) < 1e-10) {
|
|
46588
|
+
return Math.min(decimal, 2);
|
|
46589
|
+
}
|
|
46590
|
+
}
|
|
46591
|
+
|
|
46592
|
+
return 2;
|
|
46593
|
+
}
|
|
46594
|
+
/**
|
|
46595
|
+
* axis interval을 nice number로 변환
|
|
46596
|
+
* (1, 2, 5 × 10^n)
|
|
46597
|
+
*
|
|
46598
|
+
* @param {Object} params
|
|
46599
|
+
* @param {number} params.range
|
|
46600
|
+
* @param {boolean} params.round
|
|
46601
|
+
* @returns {number}
|
|
46602
|
+
*/
|
|
46603
|
+
|
|
46604
|
+
}, {
|
|
46605
|
+
key: "getNiceNumber",
|
|
46606
|
+
value: function getNiceNumber(_ref) {
|
|
46607
|
+
var range = _ref.range,
|
|
46608
|
+
_ref$round = _ref.round,
|
|
46609
|
+
round = _ref$round === void 0 ? false : _ref$round;
|
|
46610
|
+
|
|
46611
|
+
if (!isFinite(range) || range <= 0) {
|
|
46453
46612
|
return 0;
|
|
46454
46613
|
}
|
|
46455
46614
|
|
|
46456
|
-
var
|
|
46457
|
-
var
|
|
46615
|
+
var exponent = Math.floor(Math.log10(range));
|
|
46616
|
+
var fraction = range / Math.pow(10, exponent);
|
|
46617
|
+
var niceFraction;
|
|
46618
|
+
|
|
46619
|
+
if (round) {
|
|
46620
|
+
if (fraction < 1.5) {
|
|
46621
|
+
niceFraction = 1;
|
|
46622
|
+
} else if (fraction < 3) {
|
|
46623
|
+
niceFraction = 2;
|
|
46624
|
+
} else if (fraction < 7) {
|
|
46625
|
+
niceFraction = 5;
|
|
46626
|
+
} else {
|
|
46627
|
+
niceFraction = 10;
|
|
46628
|
+
}
|
|
46629
|
+
} else if (fraction <= 1) {
|
|
46630
|
+
niceFraction = 1;
|
|
46631
|
+
} else if (fraction <= 2) {
|
|
46632
|
+
niceFraction = 2;
|
|
46633
|
+
} else if (fraction <= 5) {
|
|
46634
|
+
niceFraction = 5;
|
|
46635
|
+
} else {
|
|
46636
|
+
niceFraction = 10;
|
|
46637
|
+
}
|
|
46638
|
+
|
|
46639
|
+
return niceFraction * Math.pow(10, exponent);
|
|
46640
|
+
}
|
|
46641
|
+
/**
|
|
46642
|
+
* With range information, calculate how many labels in axis
|
|
46643
|
+
* @param {object} range min/max information
|
|
46644
|
+
*
|
|
46645
|
+
* @returns {object} steps, interval, min/max graph value
|
|
46646
|
+
*/
|
|
46458
46647
|
|
|
46459
|
-
|
|
46460
|
-
|
|
46461
|
-
|
|
46648
|
+
}, {
|
|
46649
|
+
key: "calculateSteps",
|
|
46650
|
+
value: function calculateSteps(range) {
|
|
46651
|
+
var minValue = range.minValue,
|
|
46652
|
+
maxValue = range.maxValue;
|
|
46653
|
+
var maxSteps = Math.max(1, range.maxSteps);
|
|
46654
|
+
var hasUserRange = Array.isArray(this.range) && this.range.length === 2;
|
|
46655
|
+
var hasUserInterval = typeof this.interval === 'number' || _typeof(this.interval) === 'object' && this.interval !== null;
|
|
46656
|
+
var resolvedInterval = hasUserInterval ? this.getInterval(range) : null;
|
|
46657
|
+
var isValidInterval = resolvedInterval != null && resolvedInterval > 0 && isFinite(resolvedInterval);
|
|
46658
|
+
var graphMin = +minValue;
|
|
46659
|
+
var graphMax = +maxValue;
|
|
46660
|
+
var graphRange = graphMax - graphMin;
|
|
46661
|
+
var interval;
|
|
46662
|
+
var steps;
|
|
46462
46663
|
|
|
46463
|
-
|
|
46464
|
-
|
|
46664
|
+
if (hasUserRange && isValidInterval) {
|
|
46665
|
+
// 1) user range + interval
|
|
46666
|
+
var candidateSteps = graphRange / resolvedInterval;
|
|
46667
|
+
var isExactlyDividable = Math.abs(candidateSteps - Math.round(candidateSteps)) < 1e-10;
|
|
46668
|
+
|
|
46669
|
+
if (isExactlyDividable && candidateSteps <= maxSteps) {
|
|
46670
|
+
interval = resolvedInterval;
|
|
46671
|
+
steps = Math.round(candidateSteps);
|
|
46672
|
+
} else {
|
|
46673
|
+
// interval 호환되지 않음 -> 사용자 interval을 사용하지 않음
|
|
46674
|
+
steps = maxSteps;
|
|
46675
|
+
interval = graphRange / steps;
|
|
46676
|
+
}
|
|
46677
|
+
} else if (hasUserRange) {
|
|
46678
|
+
// 2) user range only
|
|
46679
|
+
steps = maxSteps;
|
|
46680
|
+
interval = graphRange / steps;
|
|
46681
|
+
} else if (isValidInterval) {
|
|
46682
|
+
// 3) user interval only
|
|
46683
|
+
interval = resolvedInterval;
|
|
46684
|
+
steps = Math.ceil(graphRange / interval);
|
|
46685
|
+
|
|
46686
|
+
while (steps > maxSteps) {
|
|
46687
|
+
interval *= 2;
|
|
46688
|
+
steps = Math.ceil(graphRange / interval);
|
|
46465
46689
|
}
|
|
46690
|
+
|
|
46691
|
+
graphMax = graphMin + interval * steps;
|
|
46692
|
+
} else {
|
|
46693
|
+
// 4) auto
|
|
46694
|
+
interval = this.getNiceNumber({
|
|
46695
|
+
range: graphRange / maxSteps,
|
|
46696
|
+
round: true
|
|
46697
|
+
});
|
|
46698
|
+
steps = Math.ceil(graphRange / interval);
|
|
46699
|
+
graphMax = graphMin + interval * steps;
|
|
46466
46700
|
}
|
|
46467
46701
|
|
|
46468
|
-
|
|
46702
|
+
this.adjustedDecimalPoint = this.decimalPoint === 'auto' ? this.getAutoDecimalPointFromInterval(interval) : this.decimalPoint;
|
|
46703
|
+
return {
|
|
46704
|
+
steps: steps,
|
|
46705
|
+
interval: interval,
|
|
46706
|
+
graphMin: graphMin,
|
|
46707
|
+
graphMax: graphMax
|
|
46708
|
+
};
|
|
46469
46709
|
}
|
|
46470
46710
|
}]);
|
|
46471
46711
|
|
|
@@ -47599,6 +47839,7 @@ var plugins_title_modules = {
|
|
|
47599
47839
|
|
|
47600
47840
|
|
|
47601
47841
|
|
|
47842
|
+
|
|
47602
47843
|
|
|
47603
47844
|
|
|
47604
47845
|
var plugins_legend_modules = {
|
|
@@ -48136,6 +48377,8 @@ var plugins_legend_modules = {
|
|
|
48136
48377
|
|
|
48137
48378
|
|
|
48138
48379
|
this.onLegendBoxClick = function (e) {
|
|
48380
|
+
var _this8$options$eventB;
|
|
48381
|
+
|
|
48139
48382
|
var opt = _this8.options.legend;
|
|
48140
48383
|
|
|
48141
48384
|
if (opt !== null && opt !== void 0 && opt.stopClickEvt) {
|
|
@@ -48161,11 +48404,12 @@ var plugins_legend_modules = {
|
|
|
48161
48404
|
|
|
48162
48405
|
if (opt.clickMode === 'active') {
|
|
48163
48406
|
var legendContainerDOMs = Array.from(_this8.legendBoxDOM.getElementsByClassName(classList.container));
|
|
48164
|
-
|
|
48407
|
+
|
|
48408
|
+
var _isActiveAll = legendContainerDOMs.every(function (dom) {
|
|
48165
48409
|
return dom.dataset.inactive === 'false';
|
|
48166
48410
|
});
|
|
48167
48411
|
|
|
48168
|
-
if (
|
|
48412
|
+
if (_isActiveAll) {
|
|
48169
48413
|
legendContainerDOMs.forEach(function (dom) {
|
|
48170
48414
|
inactiveDomAndSeries(dom, opt.inactive);
|
|
48171
48415
|
});
|
|
@@ -48216,13 +48460,35 @@ var plugins_legend_modules = {
|
|
|
48216
48460
|
_this8.brushSeries.chartIdx = chartIdx;
|
|
48217
48461
|
}
|
|
48218
48462
|
|
|
48219
|
-
_this8.
|
|
48220
|
-
|
|
48221
|
-
|
|
48222
|
-
|
|
48223
|
-
|
|
48224
|
-
|
|
48463
|
+
if (((_this8$options$eventB = _this8.options.eventBehavior) === null || _this8$options$eventB === void 0 ? void 0 : _this8$options$eventB.legendClick) !== 'emitOnly') {
|
|
48464
|
+
_this8.update({
|
|
48465
|
+
updateSeries: false,
|
|
48466
|
+
updateSelTip: {
|
|
48467
|
+
update: true,
|
|
48468
|
+
keepDomain: true
|
|
48469
|
+
}
|
|
48470
|
+
});
|
|
48471
|
+
} // click-legend event 발생
|
|
48472
|
+
|
|
48473
|
+
|
|
48474
|
+
var activeSeries = Object.values(_this8.seriesList).filter(function (series) {
|
|
48475
|
+
return series.show;
|
|
48476
|
+
});
|
|
48477
|
+
var activeSeriesIds = activeSeries.map(function (series) {
|
|
48478
|
+
return series.sId;
|
|
48225
48479
|
});
|
|
48480
|
+
var isActiveAll = activeSeriesIds.length === Object.values(_this8.seriesList).length;
|
|
48481
|
+
var args = {
|
|
48482
|
+
e: e,
|
|
48483
|
+
data: {
|
|
48484
|
+
seriesIds: isActiveAll ? [] : activeSeriesIds,
|
|
48485
|
+
isActiveAll: isActiveAll
|
|
48486
|
+
}
|
|
48487
|
+
};
|
|
48488
|
+
|
|
48489
|
+
if (typeof _this8.listeners['click-legend'] === 'function') {
|
|
48490
|
+
_this8.listeners['click-legend'](args);
|
|
48491
|
+
}
|
|
48226
48492
|
};
|
|
48227
48493
|
/**
|
|
48228
48494
|
* callback for mouseleave event on legendBoxDOM
|
|
@@ -48396,6 +48662,8 @@ var plugins_legend_modules = {
|
|
|
48396
48662
|
|
|
48397
48663
|
|
|
48398
48664
|
this.onLegendBoxClick = function (e) {
|
|
48665
|
+
var _this9$options$eventB;
|
|
48666
|
+
|
|
48399
48667
|
var opt = _this9.options.legend;
|
|
48400
48668
|
|
|
48401
48669
|
if (opt !== null && opt !== void 0 && opt.stopClickEvt) {
|
|
@@ -48424,11 +48692,12 @@ var plugins_legend_modules = {
|
|
|
48424
48692
|
|
|
48425
48693
|
if (opt.clickMode === 'active') {
|
|
48426
48694
|
var legendContainerDOMs = Array.from(_this9.legendBoxDOM.getElementsByClassName(classList.container));
|
|
48427
|
-
|
|
48695
|
+
|
|
48696
|
+
var _isActiveAll2 = legendContainerDOMs.every(function (dom) {
|
|
48428
48697
|
return dom.dataset.inactive === 'false';
|
|
48429
48698
|
});
|
|
48430
48699
|
|
|
48431
|
-
if (
|
|
48700
|
+
if (_isActiveAll2) {
|
|
48432
48701
|
legendContainerDOMs.forEach(function (dom) {
|
|
48433
48702
|
inactiveDomAndSeries(dom, opt.inactive);
|
|
48434
48703
|
});
|
|
@@ -48465,13 +48734,35 @@ var plugins_legend_modules = {
|
|
|
48465
48734
|
}
|
|
48466
48735
|
}
|
|
48467
48736
|
|
|
48468
|
-
_this9.
|
|
48469
|
-
|
|
48470
|
-
|
|
48471
|
-
|
|
48472
|
-
|
|
48473
|
-
|
|
48737
|
+
if (((_this9$options$eventB = _this9.options.eventBehavior) === null || _this9$options$eventB === void 0 ? void 0 : _this9$options$eventB.legendClick) !== 'emitOnly') {
|
|
48738
|
+
_this9.update({
|
|
48739
|
+
updateSeries: false,
|
|
48740
|
+
updateSelTip: {
|
|
48741
|
+
update: true,
|
|
48742
|
+
keepDomain: true
|
|
48743
|
+
}
|
|
48744
|
+
});
|
|
48745
|
+
} // click-legend event 발생
|
|
48746
|
+
|
|
48747
|
+
|
|
48748
|
+
var activeSeries = series.colorState.filter(function (colorItem) {
|
|
48749
|
+
return colorItem.show;
|
|
48750
|
+
});
|
|
48751
|
+
var activeSerieIndices = activeSeries.map(function (colorItem) {
|
|
48752
|
+
return +colorItem.id.split('#')[1];
|
|
48474
48753
|
});
|
|
48754
|
+
var isActiveAll = series.colorState.length === activeSeries.length;
|
|
48755
|
+
var args = {
|
|
48756
|
+
e: e,
|
|
48757
|
+
data: {
|
|
48758
|
+
seriesIndices: isActiveAll ? [] : activeSerieIndices,
|
|
48759
|
+
isActiveAll: isActiveAll
|
|
48760
|
+
}
|
|
48761
|
+
};
|
|
48762
|
+
|
|
48763
|
+
if (typeof _this9.listeners['click-legend'] === 'function') {
|
|
48764
|
+
_this9.listeners['click-legend'](args);
|
|
48765
|
+
}
|
|
48475
48766
|
};
|
|
48476
48767
|
/**
|
|
48477
48768
|
* callback for mouseleave event on legendBoxDOM
|
|
@@ -57510,7 +57801,10 @@ var DEFAULT_OPTIONS = {
|
|
|
57510
57801
|
decimalPoint: 0
|
|
57511
57802
|
},
|
|
57512
57803
|
seriesReverse: false,
|
|
57513
|
-
coordinateDedupe: true
|
|
57804
|
+
coordinateDedupe: true,
|
|
57805
|
+
eventBehavior: {
|
|
57806
|
+
legendClick: 'update'
|
|
57807
|
+
}
|
|
57514
57808
|
};
|
|
57515
57809
|
var DEFAULT_DATA = {
|
|
57516
57810
|
series: {},
|
|
@@ -57786,7 +58080,33 @@ var chart_uses_useModel = function useModel(injectGroupSelectedLabel, injectGrou
|
|
|
57786
58080
|
if (injectGroupHoveredLabel !== null && injectGroupHoveredLabel !== void 0 && injectGroupHoveredLabel.value) {
|
|
57787
58081
|
injectGroupHoveredLabel.value.label = null;
|
|
57788
58082
|
}
|
|
57789
|
-
}
|
|
58083
|
+
},
|
|
58084
|
+
'click-legend': function () {
|
|
58085
|
+
var _clickLegend = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(e) {
|
|
58086
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
58087
|
+
while (1) {
|
|
58088
|
+
switch (_context5.prev = _context5.next) {
|
|
58089
|
+
case 0:
|
|
58090
|
+
_context5.next = 2;
|
|
58091
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])();
|
|
58092
|
+
|
|
58093
|
+
case 2:
|
|
58094
|
+
emit('click-legend', e);
|
|
58095
|
+
|
|
58096
|
+
case 3:
|
|
58097
|
+
case "end":
|
|
58098
|
+
return _context5.stop();
|
|
58099
|
+
}
|
|
58100
|
+
}
|
|
58101
|
+
}, _callee5);
|
|
58102
|
+
}));
|
|
58103
|
+
|
|
58104
|
+
function clickLegend(_x5) {
|
|
58105
|
+
return _clickLegend.apply(this, arguments);
|
|
58106
|
+
}
|
|
58107
|
+
|
|
58108
|
+
return clickLegend;
|
|
58109
|
+
}()
|
|
57790
58110
|
};
|
|
57791
58111
|
return {
|
|
57792
58112
|
eventListeners: eventListeners,
|
|
@@ -58150,7 +58470,7 @@ var uses_useZoomModel = function useZoomModel(evChartNormalizedOptions, _ref3, s
|
|
|
58150
58470
|
default: false
|
|
58151
58471
|
}
|
|
58152
58472
|
},
|
|
58153
|
-
emits: ['click', 'dbl-click', 'drag-select', 'mouse-move', 'update:selectedItem', 'update:selectedLabel', 'update:selectedSeries', 'update:zoomStartIdx', 'update:zoomEndIdx', 'update:realTimeScatterReset'],
|
|
58473
|
+
emits: ['click', 'dbl-click', 'drag-select', 'mouse-move', 'update:selectedItem', 'update:selectedLabel', 'update:selectedSeries', 'update:zoomStartIdx', 'update:zoomEndIdx', 'update:realTimeScatterReset', 'click-legend'],
|
|
58154
58474
|
setup: function setup(props, _ref) {
|
|
58155
58475
|
var emit = _ref.emit;
|
|
58156
58476
|
var evChart = null;
|
|
@@ -58483,8 +58803,8 @@ var uses_useZoomModel = function useZoomModel(evChartNormalizedOptions, _ref3, s
|
|
|
58483
58803
|
});
|
|
58484
58804
|
// CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=script&lang=js
|
|
58485
58805
|
|
|
58486
|
-
// EXTERNAL MODULE: ./src/components/chart/Chart.vue?vue&type=style&index=0&id=
|
|
58487
|
-
var
|
|
58806
|
+
// EXTERNAL MODULE: ./src/components/chart/Chart.vue?vue&type=style&index=0&id=de83f53c&lang=scss
|
|
58807
|
+
var Chartvue_type_style_index_0_id_de83f53c_lang_scss = __webpack_require__("a444");
|
|
58488
58808
|
|
|
58489
58809
|
// CONCATENATED MODULE: ./src/components/chart/Chart.vue
|
|
58490
58810
|
|
|
@@ -58494,7 +58814,7 @@ var Chartvue_type_style_index_0_id_24eba9c6_lang_scss = __webpack_require__("5a0
|
|
|
58494
58814
|
|
|
58495
58815
|
|
|
58496
58816
|
|
|
58497
|
-
const Chart_exports_ = /*#__PURE__*/exportHelper_default()(Chartvue_type_script_lang_js, [['render',
|
|
58817
|
+
const Chart_exports_ = /*#__PURE__*/exportHelper_default()(Chartvue_type_script_lang_js, [['render',Chartvue_type_template_id_de83f53c_render]])
|
|
58498
58818
|
|
|
58499
58819
|
/* harmony default export */ var Chart = (Chart_exports_);
|
|
58500
58820
|
// CONCATENATED MODULE: ./src/components/chart/index.js
|