evui 3.3.39 → 3.3.41

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.
Files changed (31) hide show
  1. package/dist/evui.common.js +2477 -197
  2. package/dist/evui.common.js.map +1 -1
  3. package/dist/evui.umd.js +2477 -197
  4. package/dist/evui.umd.js.map +1 -1
  5. package/dist/evui.umd.min.js +1 -1
  6. package/dist/evui.umd.min.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/components/chart/Chart.vue +95 -5
  9. package/src/components/chart/ChartToolbar.vue +52 -0
  10. package/src/components/chart/chart.core.js +71 -27
  11. package/src/components/chart/chartZoom.core.js +479 -0
  12. package/src/components/chart/element/element.line.js +2 -1
  13. package/src/components/chart/element/element.scatter.js +8 -2
  14. package/src/components/chart/element/element.tip.js +41 -33
  15. package/src/components/chart/model/model.store.js +34 -5
  16. package/src/components/chart/plugins/plugins.interaction.js +28 -4
  17. package/src/components/chart/plugins/plugins.legend.js +11 -1
  18. package/src/components/chart/plugins/plugins.title.js +13 -8
  19. package/src/components/chart/scale/scale.js +8 -3
  20. package/src/components/chart/style/chart.scss +14 -0
  21. package/src/components/chart/uses.js +329 -6
  22. package/src/components/chartBrush/ChartBrush.vue +298 -0
  23. package/src/components/chartBrush/chartBrush.core.js +458 -0
  24. package/src/components/chartBrush/index.js +9 -0
  25. package/src/components/chartBrush/uses.js +22 -0
  26. package/src/components/chartGroup/ChartGroup.vue +125 -0
  27. package/src/components/chartGroup/index.js +9 -0
  28. package/src/components/chartGroup/style/chartGroup.scss +5 -0
  29. package/src/components/chartGroup/uses.js +48 -0
  30. package/src/components/pagination/pageButton.vue +1 -0
  31. package/src/main.js +4 -0
package/dist/evui.umd.js CHANGED
@@ -162,6 +162,21 @@ module.exports = function (fn, that, length) {
162
162
  /* unused harmony reexport * */
163
163
 
164
164
 
165
+ /***/ }),
166
+
167
+ /***/ "052a":
168
+ /***/ (function(module, exports, __webpack_require__) {
169
+
170
+ // style-loader: Adds some css to the DOM by adding a <style> tag
171
+
172
+ // load the styles
173
+ var content = __webpack_require__("17c0");
174
+ if(typeof content === 'string') content = [[module.i, content, '']];
175
+ if(content.locals) module.exports = content.locals;
176
+ // add the styles to the DOM
177
+ var add = __webpack_require__("499e").default
178
+ var update = add("68157d0e", content, true, {"sourceMap":false,"shadowMode":false});
179
+
165
180
  /***/ }),
166
181
 
167
182
  /***/ "0538":
@@ -284,6 +299,20 @@ $({ target: 'Object', stat: true }, {
284
299
  });
285
300
 
286
301
 
302
+ /***/ }),
303
+
304
+ /***/ "08a2":
305
+ /***/ (function(module, exports, __webpack_require__) {
306
+
307
+ // Imports
308
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
309
+ exports = ___CSS_LOADER_API_IMPORT___(false);
310
+ // Module
311
+ exports.push([module.i, ".ev-chart-group__wrapper[data-v-bd8c6660]{display:flex;height:100%;flex-direction:column}", ""]);
312
+ // Exports
313
+ module.exports = exports;
314
+
315
+
287
316
  /***/ }),
288
317
 
289
318
  /***/ "0924":
@@ -293,6 +322,21 @@ module.exports = __webpack_require__.p + "img/icon_oracle.0572d3ee.svg";
293
322
 
294
323
  /***/ }),
295
324
 
325
+ /***/ "0b6e":
326
+ /***/ (function(module, exports, __webpack_require__) {
327
+
328
+ // style-loader: Adds some css to the DOM by adding a <style> tag
329
+
330
+ // load the styles
331
+ var content = __webpack_require__("cdcc");
332
+ if(typeof content === 'string') content = [[module.i, content, '']];
333
+ if(content.locals) module.exports = content.locals;
334
+ // add the styles to the DOM
335
+ var add = __webpack_require__("499e").default
336
+ var update = add("0311a9bf", content, true, {"sourceMap":false,"shadowMode":false});
337
+
338
+ /***/ }),
339
+
296
340
  /***/ "0cfb":
297
341
  /***/ (function(module, exports, __webpack_require__) {
298
342
 
@@ -637,6 +681,20 @@ if(content.locals) module.exports = content.locals;
637
681
  var add = __webpack_require__("499e").default
638
682
  var update = add("ede85a96", content, true, {"sourceMap":false,"shadowMode":false});
639
683
 
684
+ /***/ }),
685
+
686
+ /***/ "17c0":
687
+ /***/ (function(module, exports, __webpack_require__) {
688
+
689
+ // Imports
690
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
691
+ exports = ___CSS_LOADER_API_IMPORT___(false);
692
+ // Module
693
+ 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-header{padding:8px 16px 0 16px;overflow:hidden;font-size:16px}.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{overflow-x:hidden;overflow-y:hidden}", ""]);
694
+ // Exports
695
+ module.exports = exports;
696
+
697
+
640
698
  /***/ }),
641
699
 
642
700
  /***/ "17c2":
@@ -658,21 +716,6 @@ module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callback
658
716
  } : [].forEach;
659
717
 
660
718
 
661
- /***/ }),
662
-
663
- /***/ "1839":
664
- /***/ (function(module, exports, __webpack_require__) {
665
-
666
- // style-loader: Adds some css to the DOM by adding a <style> tag
667
-
668
- // load the styles
669
- var content = __webpack_require__("1d10");
670
- if(typeof content === 'string') content = [[module.i, content, '']];
671
- if(content.locals) module.exports = content.locals;
672
- // add the styles to the DOM
673
- var add = __webpack_require__("499e").default
674
- var update = add("34615be8", content, true, {"sourceMap":false,"shadowMode":false});
675
-
676
719
  /***/ }),
677
720
 
678
721
  /***/ "196e":
@@ -4191,20 +4234,6 @@ var userAgent = __webpack_require__("342f");
4191
4234
  module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
4192
4235
 
4193
4236
 
4194
- /***/ }),
4195
-
4196
- /***/ "1d10":
4197
- /***/ (function(module, exports, __webpack_require__) {
4198
-
4199
- // Imports
4200
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
4201
- exports = ___CSS_LOADER_API_IMPORT___(false);
4202
- // Module
4203
- exports.push([module.i, ".ev-chart-wrapper{display:block}.ev-chart-container,.ev-chart-wrapper{position:relative;width:100%;height:100%}.ev-chart-container{overflow:hidden}.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-header{padding:8px 16px 0 16px;overflow:hidden;font-size:16px}.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{overflow-x:hidden;overflow-y:hidden}", ""]);
4204
- // Exports
4205
- module.exports = exports;
4206
-
4207
-
4208
4237
  /***/ }),
4209
4238
 
4210
4239
  /***/ "1d80":
@@ -6824,6 +6853,17 @@ exports.push([module.i, ".ev-input,.ev-textarea{width:100%;outline:0;background-
6824
6853
  module.exports = exports;
6825
6854
 
6826
6855
 
6856
+ /***/ }),
6857
+
6858
+ /***/ "6938":
6859
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6860
+
6861
+ "use strict";
6862
+ /* 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_ChartToolbar_vue_vue_type_style_index_0_id_691b9473_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0b6e");
6863
+ /* 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_ChartToolbar_vue_vue_type_style_index_0_id_691b9473_lang_scss_scoped_true__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_ChartToolbar_vue_vue_type_style_index_0_id_691b9473_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
6864
+ /* unused harmony reexport * */
6865
+
6866
+
6827
6867
  /***/ }),
6828
6868
 
6829
6869
  /***/ "69f3":
@@ -7209,6 +7249,17 @@ module.exports = function (NAME) {
7209
7249
  };
7210
7250
 
7211
7251
 
7252
+ /***/ }),
7253
+
7254
+ /***/ "74f8":
7255
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7256
+
7257
+ "use strict";
7258
+ /* 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_0627777b_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("052a");
7259
+ /* 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_0627777b_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_0627777b_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
7260
+ /* unused harmony reexport * */
7261
+
7262
+
7212
7263
  /***/ }),
7213
7264
 
7214
7265
  /***/ "76c7":
@@ -7596,6 +7647,17 @@ module.exports = function (it) {
7596
7647
  };
7597
7648
 
7598
7649
 
7650
+ /***/ }),
7651
+
7652
+ /***/ "8352":
7653
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7654
+
7655
+ "use strict";
7656
+ /* 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_ChartGroup_vue_vue_type_style_index_0_id_bd8c6660_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c920");
7657
+ /* 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_ChartGroup_vue_vue_type_style_index_0_id_bd8c6660_lang_scss_scoped_true__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_ChartGroup_vue_vue_type_style_index_0_id_bd8c6660_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
7658
+ /* unused harmony reexport * */
7659
+
7660
+
7599
7661
  /***/ }),
7600
7662
 
7601
7663
  /***/ "83ab":
@@ -7918,7 +7980,7 @@ $({ target: 'Number', stat: true }, {
7918
7980
  /***/ "9224":
7919
7981
  /***/ (function(module) {
7920
7982
 
7921
- module.exports = JSON.parse("{\"a\":\"3.3.39\"}");
7983
+ module.exports = JSON.parse("{\"a\":\"3.3.41\"}");
7922
7984
 
7923
7985
  /***/ }),
7924
7986
 
@@ -10546,6 +10608,21 @@ module.exports = function (METHOD_NAME) {
10546
10608
  };
10547
10609
 
10548
10610
 
10611
+ /***/ }),
10612
+
10613
+ /***/ "c920":
10614
+ /***/ (function(module, exports, __webpack_require__) {
10615
+
10616
+ // style-loader: Adds some css to the DOM by adding a <style> tag
10617
+
10618
+ // load the styles
10619
+ var content = __webpack_require__("08a2");
10620
+ if(typeof content === 'string') content = [[module.i, content, '']];
10621
+ if(content.locals) module.exports = content.locals;
10622
+ // add the styles to the DOM
10623
+ var add = __webpack_require__("499e").default
10624
+ var update = add("7946d016", content, true, {"sourceMap":false,"shadowMode":false});
10625
+
10549
10626
  /***/ }),
10550
10627
 
10551
10628
  /***/ "c975":
@@ -10688,6 +10765,20 @@ $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
10688
10765
  /* unused harmony reexport * */
10689
10766
 
10690
10767
 
10768
+ /***/ }),
10769
+
10770
+ /***/ "cdcc":
10771
+ /***/ (function(module, exports, __webpack_require__) {
10772
+
10773
+ // Imports
10774
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
10775
+ exports = ___CSS_LOADER_API_IMPORT___(false);
10776
+ // Module
10777
+ exports.push([module.i, ".ev-chart__toolbar__wrapper[data-v-691b9473]{height:30px;text-align:right;padding-right:30px}.ev-chart__toolbar__wrapper__icon i[data-v-691b9473]{pointer-events:none;opacity:.5;cursor:pointer}.ev-chart__toolbar__wrapper__icon i+i[data-v-691b9473]{margin-left:10px}.ev-chart__toolbar__wrapper__icon .active[data-v-691b9473]{font-weight:700}", ""]);
10778
+ // Exports
10779
+ module.exports = exports;
10780
+
10781
+
10691
10782
  /***/ }),
10692
10783
 
10693
10784
  /***/ "cdf9":
@@ -12238,17 +12329,6 @@ if(content.locals) module.exports = content.locals;
12238
12329
  var add = __webpack_require__("499e").default
12239
12330
  var update = add("235b9c6e", content, true, {"sourceMap":false,"shadowMode":false});
12240
12331
 
12241
- /***/ }),
12242
-
12243
- /***/ "e83f":
12244
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
12245
-
12246
- "use strict";
12247
- /* 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_ca3428ac_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1839");
12248
- /* 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_ca3428ac_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_ca3428ac_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
12249
- /* unused harmony reexport * */
12250
-
12251
-
12252
12332
  /***/ }),
12253
12333
 
12254
12334
  /***/ "e843":
@@ -18988,7 +19068,7 @@ Slider.install = function (app) {
18988
19068
 
18989
19069
  /* harmony default export */ var components_slider = (Slider);
18990
19070
  // EXTERNAL MODULE: ./src/style/lib/icon.css
18991
- var icon = __webpack_require__("2d5d");
19071
+ var lib_icon = __webpack_require__("2d5d");
18992
19072
 
18993
19073
  // 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/icon/Icon.vue?vue&type=template&id=5c77b16f
18994
19074
 
@@ -30822,18 +30902,27 @@ Grid.install = function (app) {
30822
30902
  };
30823
30903
 
30824
30904
  /* harmony default export */ var grid = (Grid);
30825
- // 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=ca3428ac
30905
+ // 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=0627777b
30906
+
30907
+ var Chartvue_type_template_id_0627777b_hoisted_1 = {
30908
+ key: 0,
30909
+ ref: "evChartToolbarRef"
30910
+ };
30911
+ function Chartvue_type_template_id_0627777b_render(_ctx, _cache, $props, $setup, $data, $options) {
30912
+ var _component_ev_chart_toolbar = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-chart-toolbar");
30826
30913
 
30827
- function Chartvue_type_template_id_ca3428ac_render(_ctx, _cache, $props, $setup, $data, $options) {
30828
30914
  var _directive_resize = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("resize");
30829
30915
 
30830
- return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", {
30916
+ 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.toolbar.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_0627777b_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_chart_toolbar, {
30917
+ toolbar: $setup.zoomOptions.toolbar,
30918
+ onOnClickToolbar: $setup.onClickToolbar
30919
+ }, 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", {
30831
30920
  ref: "wrapper",
30832
30921
  style: $setup.wrapperStyle,
30833
30922
  class: "ev-chart"
30834
- }, null, 4)), [[_directive_resize, $setup.onResize]]);
30923
+ }, null, 4), [[_directive_resize, $setup.onResize]])], 64);
30835
30924
  }
30836
- // CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=template&id=ca3428ac
30925
+ // CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=template&id=0627777b
30837
30926
 
30838
30927
  // CONCATENATED MODULE: ./node_modules/lodash-es/_arrayEach.js
30839
30928
  /**
@@ -33175,17 +33264,49 @@ var modules = {
33175
33264
 
33176
33265
  return findInfo;
33177
33266
  },
33178
- getItem: function getItem(_ref3) {
33179
- var seriesID = _ref3.seriesID,
33180
- dataIndex = _ref3.dataIndex;
33267
+ getItem: function getItem(selectedInfo) {
33268
+ var _this6 = this;
33269
+
33181
33270
  var useApproximate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
33182
- var dataInfo = this.getDataByValues(seriesID, dataIndex);
33271
+ var seriesID = selectedInfo.seriesID,
33272
+ dataIndex = selectedInfo.dataIndex;
33273
+ var itemPosition;
33183
33274
 
33184
- if (!dataInfo || !(dataInfo !== null && dataInfo !== void 0 && dataInfo.xp) || !(dataInfo !== null && dataInfo !== void 0 && dataInfo.yp)) {
33185
- return null;
33275
+ if ('seriesID' in selectedInfo) {
33276
+ var dataInfo = this.getDataByValues(seriesID, dataIndex);
33277
+
33278
+ if (!dataInfo || !(dataInfo !== null && dataInfo !== void 0 && dataInfo.xp) || !(dataInfo !== null && dataInfo !== void 0 && dataInfo.yp)) {
33279
+ return null;
33280
+ }
33281
+
33282
+ itemPosition = [this.getItemByPosition([dataInfo.xp, dataInfo.yp], useApproximate)];
33283
+ } else {
33284
+ var seriesList = Object.entries(this.seriesList);
33285
+ var firShowSeriesID;
33286
+
33287
+ for (var i = 0; i < seriesList.length; i++) {
33288
+ var _seriesList$i = _slicedToArray(seriesList[i], 2),
33289
+ id = _seriesList$i[0],
33290
+ info = _seriesList$i[1];
33291
+
33292
+ if (info.show) {
33293
+ firShowSeriesID = id;
33294
+ break;
33295
+ }
33296
+ }
33297
+
33298
+ itemPosition = dataIndex.map(function (idx) {
33299
+ var dataInfo = _this6.getDataByValues(firShowSeriesID, idx);
33300
+
33301
+ if (!dataInfo || !(dataInfo !== null && dataInfo !== void 0 && dataInfo.xp) || !(dataInfo !== null && dataInfo !== void 0 && dataInfo.yp)) {
33302
+ return null;
33303
+ }
33304
+
33305
+ return _this6.getItemByPosition([dataInfo.xp, dataInfo.yp], useApproximate);
33306
+ });
33186
33307
  }
33187
33308
 
33188
- return this.getItemByPosition([dataInfo.xp, dataInfo.yp], useApproximate);
33309
+ return itemPosition;
33189
33310
  },
33190
33311
 
33191
33312
  /**
@@ -33291,7 +33412,7 @@ var modules = {
33291
33412
  * @returns {object} clicked series id
33292
33413
  */
33293
33414
  getSeriesIdByPosition: function getSeriesIdByPosition(offset) {
33294
- var _this6 = this;
33415
+ var _this7 = this;
33295
33416
 
33296
33417
  var _offset = _slicedToArray(offset, 2),
33297
33418
  clickedX = _offset[0],
@@ -33325,8 +33446,8 @@ var modules = {
33325
33446
  case 'line':
33326
33447
  {
33327
33448
  var orderedSeriesList = this.seriesInfo.charts.line;
33328
- var isStackChart = Object.values(this.seriesList).some(function (_ref4) {
33329
- var stackIndex = _ref4.stackIndex;
33449
+ var isStackChart = Object.values(this.seriesList).some(function (_ref3) {
33450
+ var stackIndex = _ref3.stackIndex;
33330
33451
  return stackIndex;
33331
33452
  });
33332
33453
 
@@ -33345,16 +33466,16 @@ var modules = {
33345
33466
  position: (_hitItem$items$sId = hitItem.items[sId]) === null || _hitItem$items$sId === void 0 ? void 0 : (_hitItem$items$sId$da = _hitItem$items$sId.data) === null || _hitItem$items$sId$da === void 0 ? void 0 : _hitItem$items$sId$da.yp
33346
33467
  };
33347
33468
  });
33348
- hitSeries = (_positionList$find = positionList.find(function (_ref5) {
33349
- var position = _ref5.position;
33469
+ hitSeries = (_positionList$find = positionList.find(function (_ref4) {
33470
+ var position = _ref4.position;
33350
33471
  return clickedY > position;
33351
33472
  })) === null || _positionList$find === void 0 ? void 0 : _positionList$find.sId;
33352
33473
  } else {
33353
33474
  var _Object$entries$find;
33354
33475
 
33355
- hitSeries = (_Object$entries$find = Object.entries(hitItem.items).find(function (_ref6) {
33356
- var _ref7 = _slicedToArray(_ref6, 2),
33357
- hit = _ref7[1].hit;
33476
+ hitSeries = (_Object$entries$find = Object.entries(hitItem.items).find(function (_ref5) {
33477
+ var _ref6 = _slicedToArray(_ref5, 2),
33478
+ hit = _ref6[1].hit;
33358
33479
 
33359
33480
  return hit;
33360
33481
  })) === null || _Object$entries$find === void 0 ? void 0 : _Object$entries$find[0];
@@ -33364,29 +33485,29 @@ var modules = {
33364
33485
 
33365
33486
  // 클릭한 위치에 data 가 존재하지 않는 경우
33366
33487
  var visibleSeriesList = orderedSeriesList.filter(function (sId) {
33367
- return _this6.seriesList[sId].show;
33488
+ return _this7.seriesList[sId].show;
33368
33489
  });
33369
33490
  positionList = visibleSeriesList.map(function (sId) {
33370
- var _this6$seriesList$sId;
33491
+ var _this7$seriesList$sId;
33371
33492
 
33372
33493
  return {
33373
33494
  sId: sId,
33374
- position: (_this6$seriesList$sId = _this6.seriesList[sId].data) === null || _this6$seriesList$sId === void 0 ? void 0 : _this6$seriesList$sId.map(function (_ref8) {
33375
- var xp = _ref8.xp,
33376
- yp = _ref8.yp;
33495
+ position: (_this7$seriesList$sId = _this7.seriesList[sId].data) === null || _this7$seriesList$sId === void 0 ? void 0 : _this7$seriesList$sId.map(function (_ref7) {
33496
+ var xp = _ref7.xp,
33497
+ yp = _ref7.yp;
33377
33498
  return [xp, yp];
33378
33499
  })
33379
33500
  };
33380
33501
  });
33381
- var dataIndex = (_positionList$0$posit = positionList[0].position) === null || _positionList$0$posit === void 0 ? void 0 : _positionList$0$posit.findIndex(function (_ref9) {
33382
- var _ref10 = _slicedToArray(_ref9, 1),
33383
- xp = _ref10[0];
33502
+ var dataIndex = (_positionList$0$posit = positionList[0].position) === null || _positionList$0$posit === void 0 ? void 0 : _positionList$0$posit.findIndex(function (_ref8) {
33503
+ var _ref9 = _slicedToArray(_ref8, 1),
33504
+ xp = _ref9[0];
33384
33505
 
33385
33506
  return xp >= clickedX;
33386
33507
  });
33387
- var vectorList = positionList.map(function (_ref11) {
33388
- var sId = _ref11.sId,
33389
- position = _ref11.position;
33508
+ var vectorList = positionList.map(function (_ref10) {
33509
+ var sId = _ref10.sId,
33510
+ position = _ref10.position;
33390
33511
  return {
33391
33512
  sId: sId,
33392
33513
  vector: {
@@ -33404,8 +33525,8 @@ var modules = {
33404
33525
  if (isStackChart) {
33405
33526
  var _vectorList$find;
33406
33527
 
33407
- hitSeries = (_vectorList$find = vectorList.find(function (_ref12) {
33408
- var vector = _ref12.vector;
33528
+ hitSeries = (_vectorList$find = vectorList.find(function (_ref11) {
33529
+ var vector = _ref11.vector;
33409
33530
 
33410
33531
  if (isEmptyVector(vector === null || vector === void 0 ? void 0 : vector.start) && isEmptyVector(vector === null || vector === void 0 ? void 0 : vector.end)) {
33411
33532
  return false;
@@ -33431,8 +33552,8 @@ var modules = {
33431
33552
  } else {
33432
33553
  var _vectorList$find2;
33433
33554
 
33434
- hitSeries = (_vectorList$find2 = vectorList.find(function (_ref13) {
33435
- var vector = _ref13.vector;
33555
+ hitSeries = (_vectorList$find2 = vectorList.find(function (_ref12) {
33556
+ var vector = _ref12.vector;
33436
33557
 
33437
33558
  if (isEmptyVector(vector === null || vector === void 0 ? void 0 : vector.start) && isEmptyVector(vector === null || vector === void 0 ? void 0 : vector.end)) {
33438
33559
  return false;
@@ -33515,7 +33636,7 @@ var modules = {
33515
33636
  * @returns {object} min/max info for all of data
33516
33637
  */
33517
33638
  getStoreMinMax: function getStoreMinMax() {
33518
- var _this7 = this;
33639
+ var _this8 = this;
33519
33640
 
33520
33641
  var keys = Object.keys(this.seriesList);
33521
33642
  var isHorizontal = this.options.horizontal;
@@ -33533,7 +33654,7 @@ var modules = {
33533
33654
  if (keys.length) {
33534
33655
  return keys.reduce(function (acc, key) {
33535
33656
  var minmax = acc;
33536
- var series = _this7.seriesList[key];
33657
+ var series = _this8.seriesList[key];
33537
33658
  var smm = series.minMax;
33538
33659
  var axisX = series.xAxisIndex;
33539
33660
  var axisY = series.yAxisIndex;
@@ -35023,7 +35144,8 @@ var element_line_Line = /*#__PURE__*/function () {
35023
35144
  axesSteps = param.axesSteps,
35024
35145
  selectLabel = param.selectLabel,
35025
35146
  selectSeries = param.selectSeries,
35026
- legendHitInfo = param.legendHitInfo; // about selectLabel
35147
+ legendHitInfo = param.legendHitInfo,
35148
+ isBrush = param.isBrush; // about selectLabel
35027
35149
 
35028
35150
  var selectLabelOption = selectLabel === null || selectLabel === void 0 ? void 0 : selectLabel.option;
35029
35151
  var useSelectLabel = (selectLabelOption === null || selectLabelOption === void 0 ? void 0 : selectLabelOption.use) && (selectLabelOption === null || selectLabelOption === void 0 ? void 0 : selectLabelOption.useSeriesOpacity);
@@ -35159,7 +35281,7 @@ var element_line_Line = /*#__PURE__*/function () {
35159
35281
  } // Draw points
35160
35282
 
35161
35283
 
35162
- if (this.point || useSelectLabel) {
35284
+ if (!isBrush && (this.point || useSelectLabel)) {
35163
35285
  ctx.strokeStyle = helpers_util.colorStringToRgba(mainColor, mainColorOpacity);
35164
35286
  var focusStyle = helpers_util.colorStringToRgba(pointFillColor, 1);
35165
35287
  var blurStyle = helpers_util.colorStringToRgba(pointFillColor, pointFillColorOpacity);
@@ -35395,6 +35517,8 @@ var merge = _createAssigner(function(object, source, srcIndex) {
35395
35517
 
35396
35518
 
35397
35519
 
35520
+
35521
+
35398
35522
  var element_scatter_Scatter = /*#__PURE__*/function () {
35399
35523
  function Scatter(sId, opt, sIdx) {
35400
35524
  var _this = this;
@@ -35440,6 +35564,7 @@ var element_scatter_Scatter = /*#__PURE__*/function () {
35440
35564
  var chartRect = param.chartRect;
35441
35565
  var labelOffset = param.labelOffset;
35442
35566
  var axesSteps = param.axesSteps;
35567
+ var displayOverflow = param.displayOverflow;
35443
35568
  var x;
35444
35569
  var y;
35445
35570
  var aliasPixel;
@@ -35449,6 +35574,15 @@ var element_scatter_Scatter = /*#__PURE__*/function () {
35449
35574
  var yArea = chartRect.chartHeight - (labelOffset.top + labelOffset.bottom);
35450
35575
  var xsp = chartRect.x1 + labelOffset.left;
35451
35576
  var ysp = chartRect.y2 - labelOffset.bottom;
35577
+
35578
+ if (displayOverflow) {
35579
+ this.data = this.data.map(function (val) {
35580
+ return _objectSpread2(_objectSpread2({}, val), {}, {
35581
+ y: val.y > minmaxY.graphMax ? minmaxY.graphMax : val.y
35582
+ });
35583
+ });
35584
+ }
35585
+
35452
35586
  this.data.forEach(function (item) {
35453
35587
  x = helpers_canvas.calculateX(item.x, minmaxX.graphMin, minmaxX.graphMax, xArea, xsp);
35454
35588
  y = helpers_canvas.calculateY(item.y, minmaxY.graphMin, minmaxY.graphMax, yArea, ysp);
@@ -37772,10 +37906,13 @@ var scale_Scale = /*#__PURE__*/function () {
37772
37906
  var labelPoint = void 0;
37773
37907
 
37774
37908
  if (this.type === 'x') {
37775
- var _options$selectItem, _this$options3;
37909
+ var _options$brush, _options$selectItem, _this$options3;
37776
37910
 
37777
37911
  labelPoint = this.position === 'top' ? offsetPoint - 10 : offsetPoint + 10;
37778
- ctx.fillText(labelText, labelCenter, labelPoint);
37912
+
37913
+ if (options !== null && options !== void 0 && (_options$brush = options.brush) !== null && _options$brush !== void 0 && _options$brush.showLabel || !options.brush) {
37914
+ ctx.fillText(labelText, labelCenter, labelPoint);
37915
+ }
37779
37916
 
37780
37917
  if (!isBlurredLabel && options !== null && options !== void 0 && (_options$selectItem = options.selectItem) !== null && _options$selectItem !== void 0 && _options$selectItem.showLabelTip && hitInfo !== null && hitInfo !== void 0 && hitInfo.label && !((_this$options3 = this.options) !== null && _this$options3 !== void 0 && _this$options3.horizontal)) {
37781
37918
  var selectedLabel = this.getLabelFormat(Math.min(axisMax, hitInfo.label + 0 * stepValue));
@@ -37804,11 +37941,16 @@ var scale_Scale = /*#__PURE__*/function () {
37804
37941
  ctx.lineTo(linePosition, offsetCounterPoint);
37805
37942
  }
37806
37943
  } else {
37944
+ var _options$brush2;
37945
+
37807
37946
  labelPoint = this.position === 'left' ? offsetPoint - 10 : offsetPoint + 10;
37808
- ctx.fillText(labelText, labelPoint, labelCenter);
37947
+
37948
+ if (options !== null && options !== void 0 && (_options$brush2 = options.brush) !== null && _options$brush2 !== void 0 && _options$brush2.showLabel || !options.brush) {
37949
+ ctx.fillText(labelText, labelPoint, labelCenter);
37950
+ }
37809
37951
 
37810
37952
  if (ix === steps) {
37811
- linePosition += 1;
37953
+ linePosition -= 1;
37812
37954
  }
37813
37955
 
37814
37956
  if (ix !== 0 && this.showGrid) {
@@ -39331,19 +39473,11 @@ var plugins_title_modules = {
39331
39473
  * @returns {undefined}
39332
39474
  */
39333
39475
  initTitle: function initTitle() {
39334
- var _this = this;
39335
-
39336
39476
  if (!this.isInitTitle) {
39337
39477
  this.createTitle();
39338
39478
  }
39339
39479
 
39340
- var opt = this.options.title;
39341
- Object.keys(opt.style).forEach(function (key) {
39342
- _this.titleDOM.style[key] = opt.style[key];
39343
- });
39344
- this.titleDOM.textContent = opt.text;
39345
- this.titleDOM.style.height = "".concat(opt.height, "px");
39346
- this.titleDOM.style.lineHeight = "".concat(opt.height, "px");
39480
+ this.updateTitle();
39347
39481
  this.isInitTitle = true;
39348
39482
  },
39349
39483
 
@@ -39365,6 +39499,17 @@ var plugins_title_modules = {
39365
39499
  hideTitle: function hideTitle() {
39366
39500
  this.titleDOM.style.display = 'none';
39367
39501
  this.wrapperDOM.style.paddingTop = '0px';
39502
+ },
39503
+ updateTitle: function updateTitle() {
39504
+ var _this = this;
39505
+
39506
+ var opt = this.options.title;
39507
+ Object.keys(opt.style).forEach(function (key) {
39508
+ _this.titleDOM.style[key] = opt.style[key];
39509
+ });
39510
+ this.titleDOM.textContent = opt.text;
39511
+ this.titleDOM.style.height = "".concat(opt.height, "px");
39512
+ this.titleDOM.style.lineHeight = "".concat(opt.height, "px");
39368
39513
  }
39369
39514
  };
39370
39515
  /* harmony default export */ var plugins_title = (plugins_title_modules);
@@ -39579,7 +39724,8 @@ var plugins_legend_modules = {
39579
39724
  _this3.addLegend({
39580
39725
  cId: colorItem.id,
39581
39726
  color: colorItem.color,
39582
- name: name
39727
+ name: name,
39728
+ show: true
39583
39729
  });
39584
39730
  }
39585
39731
  }
@@ -39638,6 +39784,7 @@ var plugins_legend_modules = {
39638
39784
 
39639
39785
  this.onLegendBoxClick = function (e) {
39640
39786
  var opt = _this4.options.legend;
39787
+ var chartIdx = _this4.data.chartIdx;
39641
39788
 
39642
39789
  var targetDOM = _this4.getContainerDOM(e);
39643
39790
 
@@ -39698,6 +39845,14 @@ var plugins_legend_modules = {
39698
39845
  series.show = !series.show;
39699
39846
  targetDOM.classList.toggle('inactive');
39700
39847
 
39848
+ if (_this4.brushSeries) {
39849
+ var seriesList = _toConsumableArray(_this4.brushSeries.list);
39850
+
39851
+ seriesList[chartIdx] = _this4.seriesList;
39852
+ _this4.brushSeries.list = seriesList;
39853
+ _this4.brushSeries.chartIdx = chartIdx;
39854
+ }
39855
+
39701
39856
  _this4.update({
39702
39857
  updateSeries: false,
39703
39858
  updateSelTip: {
@@ -41416,6 +41571,11 @@ var plugins_interaction_modules = {
41416
41571
 
41417
41572
 
41418
41573
  this.onClick = function (e) {
41574
+ if (_this.isMouseMove) {
41575
+ _this.isMouseMove = false;
41576
+ return;
41577
+ }
41578
+
41419
41579
  var args = {
41420
41580
  e: e
41421
41581
  };
@@ -41569,6 +41729,7 @@ var plugins_interaction_modules = {
41569
41729
  var xep;
41570
41730
  var yep;
41571
41731
  dragInfo.isMove = true;
41732
+ _this2.isMouseMove = true;
41572
41733
 
41573
41734
  if (aOffsetX < aRange.x1) {
41574
41735
  xep = aRange.x1;
@@ -41627,6 +41788,8 @@ var plugins_interaction_modules = {
41627
41788
  var dragInfo = _this2.dragInfo;
41628
41789
 
41629
41790
  if (dragInfo !== null && dragInfo !== void 0 && dragInfo.isMove && (dragInfo === null || dragInfo === void 0 ? void 0 : dragInfo.width) > 1 && (dragInfo === null || dragInfo === void 0 ? void 0 : dragInfo.height) > 1) {
41791
+ var _this2$options, _this2$options$zoom;
41792
+
41630
41793
  var args = {
41631
41794
  e: e,
41632
41795
  data: _this2.findSelectedItems(dragInfo),
@@ -41634,13 +41797,28 @@ var plugins_interaction_modules = {
41634
41797
  };
41635
41798
  _this2.dragInfoBackup = lodash_es_defaultsDeep({}, dragInfo);
41636
41799
 
41637
- if (typeof _this2.listeners['drag-select'] === 'function') {
41800
+ if (typeof _this2.listeners['drag-select'] === 'function' && !((_this2$options = _this2.options) !== null && _this2$options !== void 0 && (_this2$options$zoom = _this2$options.zoom) !== null && _this2$options$zoom !== void 0 && _this2$options$zoom.use)) {
41638
41801
  _this2.listeners['drag-select'](args);
41802
+ } else {
41803
+ var xsp = dragInfo.xsp,
41804
+ chartRange = dragInfo.range,
41805
+ dragWidth = dragInfo.width;
41806
+ var dragXsp = xsp - chartRange.x1;
41807
+ args.range.dragSelectionInfo = {
41808
+ dragXsp: dragXsp,
41809
+ dragXep: dragXsp + dragWidth,
41810
+ exceptAxesYChartWidth: chartRange.x2 - chartRange.x1,
41811
+ exceptAxesXChartHeight: chartRange.y2 - chartRange.y1,
41812
+ chartRange: chartRange,
41813
+ chartTitle: _this2.options.title.text
41814
+ };
41815
+
41816
+ _this2.options.zoom.getRangeInfo(args);
41639
41817
  }
41640
- }
41641
41818
 
41642
- if (!_this2.options.dragSelection.keepDisplay) {
41643
- _this2.removeSelectionArea();
41819
+ if (!_this2.options.dragSelection.keepDisplay) {
41820
+ _this2.removeSelectionArea();
41821
+ }
41644
41822
  }
41645
41823
 
41646
41824
  _this2.dragInfo = null;
@@ -43163,6 +43341,8 @@ var element_tip_modules = {
43163
43341
  * @returns {undefined}
43164
43342
  */
43165
43343
  drawTips: function drawTips(tipLocationInfo) {
43344
+ var _this = this;
43345
+
43166
43346
  var opt = this.options;
43167
43347
  var isHorizontal = !!opt.horizontal;
43168
43348
  var maxTipOpt = opt.maxTip;
@@ -43171,75 +43351,83 @@ var element_tip_modules = {
43171
43351
  var maxArgs;
43172
43352
  var isExistSelectedLabel;
43173
43353
 
43174
- if (labelTipOpt.use && labelTipOpt.showTip) {
43175
- isExistSelectedLabel = this.drawLabelTip();
43176
- }
43354
+ var executeDrawTip = function executeDrawTip(tipOpt) {
43355
+ tipLocationInfo.forEach(function (tipInfo) {
43356
+ if (tipInfo && !isExistSelectedLabel) {
43357
+ var seriesInfo = _this.seriesList[tipInfo === null || tipInfo === void 0 ? void 0 : tipInfo.sId];
43177
43358
 
43178
- if (selTipOpt.use && tipLocationInfo && !isExistSelectedLabel) {
43179
- var seriesInfo = this.seriesList[tipLocationInfo === null || tipLocationInfo === void 0 ? void 0 : tipLocationInfo.sId];
43359
+ if (!(seriesInfo !== null && seriesInfo !== void 0 && seriesInfo.show)) {
43360
+ return;
43361
+ }
43180
43362
 
43181
- if (!(seriesInfo !== null && seriesInfo !== void 0 && seriesInfo.show)) {
43182
- return;
43183
- }
43363
+ var selArgs = _this.calculateTipInfo(seriesInfo, 'sel', tipInfo);
43184
43364
 
43185
- var selArgs = this.calculateTipInfo(seriesInfo, 'sel', tipLocationInfo);
43365
+ if (selArgs) {
43366
+ var _maxArgs;
43186
43367
 
43187
- if (selArgs) {
43188
- var _maxArgs;
43368
+ var isSamePos = false;
43189
43369
 
43190
- var isSamePos = false;
43370
+ if (maxTipOpt.use && ((_maxArgs = maxArgs) === null || _maxArgs === void 0 ? void 0 : _maxArgs.dp) === selArgs.dp) {
43371
+ isSamePos = true;
43372
+ }
43191
43373
 
43192
- if (maxTipOpt.use && ((_maxArgs = maxArgs) === null || _maxArgs === void 0 ? void 0 : _maxArgs.dp) === selArgs.dp) {
43193
- isSamePos = true;
43194
- }
43374
+ if (tipOpt.showTextTip || tipOpt.showTip) {
43375
+ if (tipOpt.tipText === 'label') {
43376
+ var axisOpt = isHorizontal ? opt.axesY[0] : opt.axesX[0];
43377
+ var label = selArgs.label;
43378
+ selArgs.text = axisOpt.type === 'time' ? dayjs_min_default()(label).format(axisOpt.timeFormat) : label;
43379
+ } else {
43380
+ selArgs.text = numberWithComma(selArgs.value);
43381
+ }
43195
43382
 
43196
- if (selTipOpt.showTextTip || selTipOpt.showTip) {
43197
- if (selTipOpt.tipText === 'label') {
43198
- var axisOpt = isHorizontal ? opt.axesY[0] : opt.axesX[0];
43199
- var label = selArgs.label;
43200
- selArgs.text = axisOpt.type === 'time' ? dayjs_min_default()(label).format(axisOpt.timeFormat) : label;
43201
- } else {
43202
- selArgs.text = numberWithComma(selArgs.value);
43203
- }
43383
+ _this.drawTextTip(_objectSpread2({
43384
+ opt: tipOpt,
43385
+ tipType: 'sel',
43386
+ seriesOpt: seriesInfo,
43387
+ isSamePos: isSamePos
43388
+ }, selArgs));
43389
+ }
43204
43390
 
43205
- this.drawTextTip(_objectSpread2({
43206
- opt: selTipOpt,
43207
- tipType: 'sel',
43208
- seriesOpt: seriesInfo,
43209
- isSamePos: isSamePos
43210
- }, selArgs));
43211
- }
43391
+ if (tipOpt.showIndicator) {
43392
+ _this.drawFixedIndicator(_objectSpread2({
43393
+ opt: tipOpt,
43394
+ seriesOpt: seriesInfo
43395
+ }, selArgs));
43396
+ }
43397
+ }
43212
43398
 
43213
- if (selTipOpt.showIndicator) {
43214
- this.drawFixedIndicator(_objectSpread2({
43215
- opt: selTipOpt,
43216
- seriesOpt: seriesInfo
43217
- }, selArgs));
43399
+ if (tipInfo && tipInfo !== null && tipInfo !== void 0 && tipInfo.label && (tipInfo === null || tipInfo === void 0 ? void 0 : tipInfo.label) === 0) {
43400
+ _this.lastHitInfo = tipInfo;
43401
+ }
43218
43402
  }
43219
- }
43403
+ });
43404
+ };
43220
43405
 
43221
- if (tipLocationInfo && tipLocationInfo !== null && tipLocationInfo !== void 0 && tipLocationInfo.label && (tipLocationInfo === null || tipLocationInfo === void 0 ? void 0 : tipLocationInfo.label) === 0) {
43222
- this.lastHitInfo = tipLocationInfo;
43406
+ if (tipLocationInfo) {
43407
+ if (selTipOpt.use) {
43408
+ executeDrawTip(selTipOpt);
43409
+ } else if (labelTipOpt.use) {
43410
+ executeDrawTip(labelTipOpt);
43223
43411
  }
43224
43412
  }
43225
43413
 
43226
43414
  if (maxTipOpt.use && !isExistSelectedLabel) {
43227
43415
  var maxSID = this.minMax[isHorizontal ? 'x' : 'y'][0].maxSID;
43228
- var _seriesInfo = this.seriesList[maxSID];
43229
- maxArgs = this.calculateTipInfo(_seriesInfo, 'max', null);
43416
+ var seriesInfo = this.seriesList[maxSID];
43417
+ maxArgs = this.calculateTipInfo(seriesInfo, 'max', null);
43230
43418
 
43231
43419
  if (maxTipOpt.use && maxArgs) {
43232
43420
  maxArgs.text = numberWithComma(maxArgs.value);
43233
43421
  this.drawTextTip(_objectSpread2({
43234
43422
  opt: maxTipOpt,
43235
43423
  tipType: 'max',
43236
- seriesOpt: _seriesInfo
43424
+ seriesOpt: seriesInfo
43237
43425
  }, maxArgs));
43238
43426
 
43239
43427
  if (maxTipOpt.showIndicator) {
43240
43428
  this.drawFixedIndicator(_objectSpread2({
43241
43429
  opt: maxTipOpt,
43242
- seriesOpt: _seriesInfo
43430
+ seriesOpt: seriesInfo
43243
43431
  }, maxArgs));
43244
43432
  }
43245
43433
  }
@@ -43423,7 +43611,7 @@ var element_tip_modules = {
43423
43611
  * @returns {boolean} Whether drew at least one tip
43424
43612
  */
43425
43613
  drawLabelTip: function drawLabelTip() {
43426
- var _this = this;
43614
+ var _this2 = this;
43427
43615
 
43428
43616
  var opt = this.options;
43429
43617
  var isHorizontal = !!opt.horizontal;
@@ -43459,10 +43647,10 @@ var element_tip_modules = {
43459
43647
  offset *= isHorizontal ? 1 : -1;
43460
43648
  var seriesList = Object.keys((_this$seriesList = this.seriesList) !== null && _this$seriesList !== void 0 ? _this$seriesList : {});
43461
43649
  var visibleSeries = seriesList.filter(function (sId) {
43462
- return _this.seriesList[sId].show;
43650
+ return _this2.seriesList[sId].show;
43463
43651
  });
43464
43652
  var isExistGrp = seriesList.some(function (sId) {
43465
- return _this.seriesList[sId].isExistGrp;
43653
+ return _this2.seriesList[sId].isExistGrp;
43466
43654
  });
43467
43655
  var groups = (_this$data$groups$ = (_this$data$groups = this.data.groups) === null || _this$data$groups === void 0 ? void 0 : _this$data$groups[0]) !== null && _this$data$groups$ !== void 0 ? _this$data$groups$ : [];
43468
43656
  var gp;
@@ -43482,9 +43670,9 @@ var element_tip_modules = {
43482
43670
  } else {
43483
43671
  graphX = this.axesSteps.x[0];
43484
43672
  lineSeries = seriesList.find(function (sId) {
43485
- var _this$seriesList$sId;
43673
+ var _this2$seriesList$sId;
43486
43674
 
43487
- return ((_this$seriesList$sId = _this.seriesList[sId]) === null || _this$seriesList$sId === void 0 ? void 0 : _this$seriesList$sId.type) === 'line';
43675
+ return ((_this2$seriesList$sId = _this2.seriesList[sId]) === null || _this2$seriesList$sId === void 0 ? void 0 : _this2$seriesList$sId.type) === 'line';
43488
43676
  });
43489
43677
  sizeObj = this.seriesList[lineSeries].size;
43490
43678
  }
@@ -43527,8 +43715,8 @@ var element_tip_modules = {
43527
43715
  gp = valuePositionCalcFunction(value, valueAxesRange.min, valueAxesRange.max, valueSpace, valueStartPoint);
43528
43716
  gp += offset;
43529
43717
 
43530
- _this.showTip({
43531
- context: _this.bufferCtx,
43718
+ _this2.showTip({
43719
+ context: _this2.bufferCtx,
43532
43720
  x: isHorizontal ? gp : dp,
43533
43721
  y: isHorizontal ? dp : gp,
43534
43722
  opt: labelTipOpt,
@@ -43780,7 +43968,7 @@ var element_tip_modules = {
43780
43968
 
43781
43969
 
43782
43970
  var chart_core_EvChart = /*#__PURE__*/function () {
43783
- function EvChart(target, data, options, listeners, defaultSelectItemInfo, defaultSelectInfo) {
43971
+ function EvChart(target, data, options, listeners, defaultSelectItemInfo, defaultSelectInfo, brushSeries) {
43784
43972
  var _this = this;
43785
43973
 
43786
43974
  _classCallCheck(this, EvChart);
@@ -43788,25 +43976,29 @@ var chart_core_EvChart = /*#__PURE__*/function () {
43788
43976
  Object.keys(model).forEach(function (key) {
43789
43977
  return Object.assign(_this, model[key]);
43790
43978
  });
43791
- Object.assign(this, plugins_title);
43792
- Object.assign(this, plugins_legend);
43793
- Object.assign(this, plugins_interaction);
43794
- Object.assign(this, plugins_tooltip);
43795
- Object.assign(this, plugins_pie);
43796
- Object.assign(this, element_tip);
43979
+
43980
+ if (!options.brush) {
43981
+ Object.assign(this, plugins_tooltip);
43982
+ Object.assign(this, plugins_interaction);
43983
+ Object.assign(this, element_tip);
43984
+ Object.assign(this, plugins_legend);
43985
+ Object.assign(this, plugins_pie);
43986
+ Object.assign(this, plugins_title);
43987
+ }
43797
43988
 
43798
43989
  if (options.type === 'heatMap' && options.legend.type === 'gradient') {
43799
43990
  Object.assign(this, plugins_legend_gradient);
43800
43991
  }
43801
43992
 
43993
+ this.brushSeries = brushSeries;
43802
43994
  this.target = target;
43803
43995
  this.data = data;
43804
43996
  this.options = options;
43805
43997
  this.listeners = listeners;
43806
43998
  this.wrapperDOM = document.createElement('div');
43807
- this.wrapperDOM.className = 'ev-chart-wrapper';
43999
+ this.wrapperDOM.className = options.brush ? 'ev-chart-brush-wrapper' : 'ev-chart-wrapper';
43808
44000
  this.chartDOM = document.createElement('div');
43809
- this.chartDOM.className = 'ev-chart-container';
44001
+ this.chartDOM.className = options.brush ? 'ev-chart-brush-container' : 'ev-chart-container';
43810
44002
  this.wrapperDOM.appendChild(this.chartDOM);
43811
44003
  this.target.appendChild(this.wrapperDOM);
43812
44004
  this.displayCanvas = document.createElement('canvas');
@@ -43815,16 +44007,21 @@ var chart_core_EvChart = /*#__PURE__*/function () {
43815
44007
  this.bufferCanvas = document.createElement('canvas');
43816
44008
  this.bufferCanvas.setAttribute('style', 'display: block;');
43817
44009
  this.bufferCtx = this.bufferCanvas.getContext('2d');
43818
- this.overlayCanvas = document.createElement('canvas');
43819
- this.overlayCanvas.setAttribute('style', 'display: block;');
43820
- this.overlayCtx = this.overlayCanvas.getContext('2d');
43821
44010
  this.pixelRatio = window.devicePixelRatio || 1;
43822
44011
  this.oldPixelRatio = this.pixelRatio;
43823
44012
  this.chartDOM.appendChild(this.displayCanvas);
43824
- this.chartDOM.appendChild(this.overlayCanvas);
43825
- this.overlayCanvas.style.position = 'absolute';
43826
- this.overlayCanvas.style.top = '0px';
43827
- this.overlayCanvas.style.left = '0px';
44013
+
44014
+ if (!options.brush) {
44015
+ this.overlayCanvas = document.createElement('canvas');
44016
+ this.overlayCanvas.setAttribute('style', 'display: block; z-index: 2;');
44017
+ this.overlayCanvas.setAttribute('class', 'overlay-canvas');
44018
+ this.overlayCtx = this.overlayCanvas.getContext('2d');
44019
+ this.chartDOM.appendChild(this.overlayCanvas);
44020
+ this.overlayCanvas.style.position = 'absolute';
44021
+ this.overlayCanvas.style.top = '0px';
44022
+ this.overlayCanvas.style.left = '0px';
44023
+ }
44024
+
43828
44025
  this.isInitLegend = false;
43829
44026
  this.isInitTitle = false;
43830
44027
  this.isInit = false;
@@ -43856,6 +44053,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
43856
44053
  _createClass(EvChart, [{
43857
44054
  key: "init",
43858
44055
  value: function init() {
44056
+ var _this$initSelectedInf, _this$createEventFunc;
44057
+
43859
44058
  var _this$data = this.data,
43860
44059
  series = _this$data.series,
43861
44060
  data = _this$data.data,
@@ -43880,7 +44079,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
43880
44079
  this.axesY = this.createAxes('y', axesY);
43881
44080
  this.axesRange = this.getAxesRange();
43882
44081
  this.labelOffset = this.getLabelOffset();
43883
- this.initSelectedInfo();
44082
+ (_this$initSelectedInf = this.initSelectedInfo) === null || _this$initSelectedInf === void 0 ? void 0 : _this$initSelectedInf.call(this);
43884
44083
  this.drawChart();
43885
44084
 
43886
44085
  if (tooltip.use) {
@@ -43891,7 +44090,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
43891
44090
  }
43892
44091
  }
43893
44092
 
43894
- this.createEventFunctions();
44093
+ (_this$createEventFunc = this.createEventFunctions) === null || _this$createEventFunc === void 0 ? void 0 : _this$createEventFunc.call(this);
43895
44094
  this.isInit = true;
43896
44095
  }
43897
44096
  /**
@@ -43960,7 +44159,9 @@ var chart_core_EvChart = /*#__PURE__*/function () {
43960
44159
  maxTip = _this$options2.maxTip,
43961
44160
  selectLabel = _this$options2.selectLabel,
43962
44161
  selectItem = _this$options2.selectItem,
43963
- selectSeries = _this$options2.selectSeries;
44162
+ selectSeries = _this$options2.selectSeries,
44163
+ brush = _this$options2.brush,
44164
+ displayOverflow = _this$options2.displayOverflow;
43964
44165
  var opt = {
43965
44166
  ctx: this.bufferCtx,
43966
44167
  chartRect: this.chartRect,
@@ -43978,7 +44179,9 @@ var chart_core_EvChart = /*#__PURE__*/function () {
43978
44179
  option: selectSeries,
43979
44180
  selected: this.defaultSelectInfo
43980
44181
  },
43981
- overlayCtx: this.overlayCtx
44182
+ overlayCtx: this.overlayCtx,
44183
+ isBrush: !!brush,
44184
+ displayOverflow: displayOverflow
43982
44185
  };
43983
44186
  var showIndex = 0;
43984
44187
  var showSeriesCount = 0;
@@ -44104,17 +44307,21 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44104
44307
  }, {
44105
44308
  key: "drawTip",
44106
44309
  value: function drawTip() {
44310
+ var _this$drawTips;
44311
+
44107
44312
  var tipLocationInfo;
44108
44313
 
44109
44314
  if (this.lastHitInfo) {
44110
44315
  tipLocationInfo = this.lastHitInfo;
44111
44316
  } else if (this.defaultSelectItemInfo) {
44112
44317
  tipLocationInfo = this.getItem(this.defaultSelectItemInfo, false);
44318
+ } else if (this.defaultSelectInfo && this.options.selectLabel.use) {
44319
+ tipLocationInfo = this.getItem(this.defaultSelectInfo, false);
44113
44320
  } else {
44114
44321
  tipLocationInfo = null;
44115
44322
  }
44116
44323
 
44117
- this.drawTips(tipLocationInfo);
44324
+ (_this$drawTips = this.drawTips) === null || _this$drawTips === void 0 ? void 0 : _this$drawTips.call(this, tipLocationInfo);
44118
44325
  }
44119
44326
  /**
44120
44327
  * Create axes
@@ -44273,7 +44480,10 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44273
44480
  }
44274
44481
 
44275
44482
  this.bufferCtx.scale(this.pixelRatio, this.pixelRatio);
44276
- this.overlayCtx.scale(this.pixelRatio, this.pixelRatio);
44483
+
44484
+ if (this.overlayCtx) {
44485
+ this.overlayCtx.scale(this.pixelRatio, this.pixelRatio);
44486
+ }
44277
44487
  }
44278
44488
  /**
44279
44489
  * Get chart DOM size and set canvas size
@@ -44367,8 +44577,11 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44367
44577
  this.displayCanvas.style.width = "".concat(width, "px");
44368
44578
  this.bufferCanvas.width = width * this.pixelRatio;
44369
44579
  this.bufferCanvas.style.width = "".concat(width, "px");
44370
- this.overlayCanvas.width = width * this.pixelRatio;
44371
- this.overlayCanvas.style.width = "".concat(width, "px");
44580
+
44581
+ if (this.overlayCanvas) {
44582
+ this.overlayCanvas.width = width * this.pixelRatio;
44583
+ this.overlayCanvas.style.width = "".concat(width, "px");
44584
+ }
44372
44585
  }
44373
44586
  /**
44374
44587
  * Set canvas height
@@ -44388,8 +44601,11 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44388
44601
  this.displayCanvas.style.height = "".concat(height, "px");
44389
44602
  this.bufferCanvas.height = height * this.pixelRatio;
44390
44603
  this.bufferCanvas.style.height = "".concat(height, "px");
44391
- this.overlayCanvas.height = height * this.pixelRatio;
44392
- this.overlayCanvas.style.height = "".concat(height, "px");
44604
+
44605
+ if (this.overlayCanvas) {
44606
+ this.overlayCanvas.height = height * this.pixelRatio;
44607
+ this.overlayCanvas.style.height = "".concat(height, "px");
44608
+ }
44393
44609
  }
44394
44610
  /**
44395
44611
  * Calculate labels offset from chart rect (Axis 영역을 벗어나는 label 크기 계산)
@@ -44477,6 +44693,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44477
44693
  }, {
44478
44694
  key: "update",
44479
44695
  value: function update(updateInfo) {
44696
+ var _this$initSelectedInf2;
44697
+
44480
44698
  var options = this.options;
44481
44699
  var data = this.data.data;
44482
44700
  var labels = this.data.labels;
@@ -44537,6 +44755,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44537
44755
  if (options.title.show) {
44538
44756
  if (!this.isInitTitle) {
44539
44757
  this.initTitle();
44758
+ } else {
44759
+ this.updateTitle();
44540
44760
  }
44541
44761
 
44542
44762
  this.showTitle();
@@ -44572,7 +44792,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44572
44792
  this.axesY = this.createAxes('y', options.axesY);
44573
44793
  this.axesRange = this.getAxesRange();
44574
44794
  this.labelOffset = this.getLabelOffset();
44575
- this.initSelectedInfo();
44795
+ (_this$initSelectedInf2 = this.initSelectedInfo) === null || _this$initSelectedInf2 === void 0 ? void 0 : _this$initSelectedInf2.call(this);
44576
44796
  this.render(updateInfo === null || updateInfo === void 0 ? void 0 : updateInfo.hitInfo);
44577
44797
  var isDragMove = this.dragInfo && this.drawSelectionArea;
44578
44798
 
@@ -44638,13 +44858,15 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44638
44858
  }
44639
44859
  /**
44640
44860
  * Resize chart
44861
+ * @param {Function} promiseRes After evChart resize completes,
44862
+ * callback completion status with promiseRes to draw a Brush over it.
44641
44863
  *
44642
44864
  * @returns {undefined}
44643
44865
  */
44644
44866
 
44645
44867
  }, {
44646
44868
  key: "resize",
44647
- value: function resize() {
44869
+ value: function resize(promiseRes) {
44648
44870
  this.clear();
44649
44871
  this.bufferCtx.restore();
44650
44872
  this.bufferCtx.save();
@@ -44652,6 +44874,10 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44652
44874
  this.initScale();
44653
44875
  this.chartRect = this.getChartRect();
44654
44876
  this.drawChart();
44877
+
44878
+ if (promiseRes) {
44879
+ promiseRes(true);
44880
+ }
44655
44881
  }
44656
44882
  /**
44657
44883
  * Render chart
@@ -44748,12 +44974,541 @@ var chart_core_EvChart = /*#__PURE__*/function () {
44748
44974
  }();
44749
44975
 
44750
44976
  /* harmony default export */ var chart_core = (chart_core_EvChart);
44977
+ // 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/ChartToolbar.vue?vue&type=template&id=691b9473&scoped=true
44978
+
44979
+
44980
+
44981
+ var ChartToolbarvue_type_template_id_691b9473_scoped_true_withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-691b9473");
44982
+
44983
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-691b9473");
44984
+
44985
+ var ChartToolbarvue_type_template_id_691b9473_scoped_true_hoisted_1 = {
44986
+ class: "ev-chart__toolbar__wrapper"
44987
+ };
44988
+ var ChartToolbarvue_type_template_id_691b9473_scoped_true_hoisted_2 = {
44989
+ class: "ev-chart__toolbar__wrapper__icon"
44990
+ };
44991
+
44992
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
44993
+
44994
+ var ChartToolbarvue_type_template_id_691b9473_scoped_true_render = /*#__PURE__*/ChartToolbarvue_type_template_id_691b9473_scoped_true_withId(function (_ctx, _cache, $props, $setup, $data, $options) {
44995
+ var _component_ev_icon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-icon");
44996
+
44997
+ return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", ChartToolbarvue_type_template_id_691b9473_scoped_true_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", ChartToolbarvue_type_template_id_691b9473_scoped_true_hoisted_2, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.$props.toolbar.items, function (option, iconType) {
44998
+ return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ev_icon, {
44999
+ key: "".concat(iconType, "-").concat(option.icon),
45000
+ class: iconType,
45001
+ icon: option.icon,
45002
+ size: option.size,
45003
+ title: option.title,
45004
+ onClick: function onClick($event) {
45005
+ return _ctx.$emit('onClickToolbar', $event, iconType);
45006
+ }
45007
+ }, null, 8, ["class", "icon", "size", "title", "onClick"]);
45008
+ }), 128))])]);
45009
+ });
45010
+ // CONCATENATED MODULE: ./src/components/chart/ChartToolbar.vue?vue&type=template&id=691b9473&scoped=true
45011
+
45012
+ // 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/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/chart/ChartToolbar.vue?vue&type=script&lang=js
45013
+ /* harmony default export */ var ChartToolbarvue_type_script_lang_js = ({
45014
+ name: 'EvChartToolbar',
45015
+ props: {
45016
+ toolbar: {
45017
+ type: Object,
45018
+ default: function _default() {
45019
+ return {};
45020
+ }
45021
+ }
45022
+ },
45023
+ emits: ['onClickToolbar']
45024
+ });
45025
+ // CONCATENATED MODULE: ./src/components/chart/ChartToolbar.vue?vue&type=script&lang=js
45026
+
45027
+ // EXTERNAL MODULE: ./src/components/chart/ChartToolbar.vue?vue&type=style&index=0&id=691b9473&lang=scss&scoped=true
45028
+ var ChartToolbarvue_type_style_index_0_id_691b9473_lang_scss_scoped_true = __webpack_require__("6938");
45029
+
45030
+ // CONCATENATED MODULE: ./src/components/chart/ChartToolbar.vue
45031
+
45032
+
45033
+
45034
+
45035
+
45036
+
45037
+
45038
+ const ChartToolbar_exports_ = /*#__PURE__*/exportHelper_default()(ChartToolbarvue_type_script_lang_js, [['render',ChartToolbarvue_type_template_id_691b9473_scoped_true_render],['__scopeId',"data-v-691b9473"]])
45039
+
45040
+ /* harmony default export */ var ChartToolbar = (ChartToolbar_exports_);
45041
+ // CONCATENATED MODULE: ./src/components/chart/chartZoom.core.js
45042
+
45043
+
45044
+
45045
+
45046
+
45047
+
45048
+
45049
+
45050
+
45051
+
45052
+
45053
+
45054
+
45055
+
45056
+
45057
+ var chartZoom_core_EvChartZoom = /*#__PURE__*/function () {
45058
+ function EvChartZoom(evChartInfo, evChartClone, evChartZoomOptions, evChartToolbarRef, isExecuteZoom, brushIdx, emitFunc) {
45059
+ _classCallCheck(this, EvChartZoom);
45060
+
45061
+ this.isExecuteZoom = isExecuteZoom;
45062
+ this.evChartProps = evChartInfo.props;
45063
+ this.evChartCloneData = evChartClone.data;
45064
+ this.brushIdx = brushIdx;
45065
+ this.setEvChartZoomOptions(evChartZoomOptions);
45066
+ this.setIcon(evChartToolbarRef);
45067
+ var cloneLabelsLastIdx = evChartClone.data[0].labels.length - 1;
45068
+ this.cloneLabelsLastIdx = cloneLabelsLastIdx;
45069
+ this.isAnimationFinish = true;
45070
+ this.zoomAreaMemory = {
45071
+ previous: [],
45072
+ current: [[0, cloneLabelsLastIdx]],
45073
+ latest: []
45074
+ };
45075
+
45076
+ if (emitFunc) {
45077
+ this.emitFunc = emitFunc;
45078
+ emitFunc.updateZoomStartIdx(0);
45079
+ emitFunc.updateZoomEndIdx(cloneLabelsLastIdx);
45080
+ }
45081
+
45082
+ this.wrapWheelMoveZoomArea = this.wheelMoveZoomArea.bind(this);
45083
+ this.evChartDomContainers = this.drawAnimationCanvas(evChartInfo.dom);
45084
+ }
45085
+
45086
+ _createClass(EvChartZoom, [{
45087
+ key: "setEvChartZoomOptions",
45088
+ value: function setEvChartZoomOptions(options) {
45089
+ this.evChartZoomOptions = options;
45090
+ }
45091
+ }, {
45092
+ key: "setIcon",
45093
+ value: function setIcon(evChartToolbarRef) {
45094
+ if (!evChartToolbarRef) {
45095
+ return;
45096
+ }
45097
+
45098
+ var dragZoomIcon = evChartToolbarRef.querySelector('.dragZoom');
45099
+ this.resetIcon = evChartToolbarRef.querySelector('.reset');
45100
+ this.previousIcon = evChartToolbarRef.querySelector('.previous');
45101
+ this.latestIcon = evChartToolbarRef.querySelector('.latest');
45102
+ this.dragZoomIcon = dragZoomIcon;
45103
+ this.iconStyle(dragZoomIcon, 'enable');
45104
+ }
45105
+ }, {
45106
+ key: "drawAnimationCanvas",
45107
+ value: function drawAnimationCanvas(evChartDom) {
45108
+ evChartDom.forEach(function (dom) {
45109
+ var animationCanvas = document.createElement('canvas');
45110
+ animationCanvas.setAttribute('style', 'display: block;');
45111
+ animationCanvas.setAttribute('class', 'animation-canvas');
45112
+ animationCanvas.style.position = 'absolute';
45113
+ dom.appendChild(animationCanvas);
45114
+ });
45115
+ return evChartDom;
45116
+ }
45117
+ }, {
45118
+ key: "setEventListener",
45119
+ value: function setEventListener(isUseZoomMode) {
45120
+ var _this = this;
45121
+
45122
+ var toggleEventListener = isUseZoomMode ? 'addEventListener' : 'removeEventListener';
45123
+ this.isUseZoomMode = isUseZoomMode;
45124
+ this.evChartDomContainers.forEach(function (dom) {
45125
+ dom[toggleEventListener]('wheel', _this.wrapWheelMoveZoomArea);
45126
+ });
45127
+ }
45128
+ }, {
45129
+ key: "wheelMoveZoomArea",
45130
+ value: function wheelMoveZoomArea(e) {
45131
+ e.preventDefault();
45132
+
45133
+ var _this$zoomAreaMemory$ = _slicedToArray(this.zoomAreaMemory.current[0], 2),
45134
+ zoomStartIdx = _this$zoomAreaMemory$[0],
45135
+ zoomEndIdx = _this$zoomAreaMemory$[1];
45136
+
45137
+ if (zoomStartIdx === zoomEndIdx) {
45138
+ return;
45139
+ }
45140
+
45141
+ var zoomMoveStartIdx;
45142
+ var zoomMoveEndIdx;
45143
+
45144
+ if (e.deltaY > 0) {
45145
+ if (!zoomStartIdx) {
45146
+ return;
45147
+ }
45148
+
45149
+ zoomMoveStartIdx = zoomStartIdx - 1;
45150
+ zoomMoveEndIdx = zoomEndIdx - 1;
45151
+ } else {
45152
+ if (zoomEndIdx === this.cloneLabelsLastIdx) {
45153
+ return;
45154
+ }
45155
+
45156
+ zoomMoveStartIdx = zoomStartIdx + 1;
45157
+ zoomMoveEndIdx = zoomEndIdx + 1;
45158
+ }
45159
+
45160
+ this.isUseToolbar = true;
45161
+ this.executeZoom(zoomMoveStartIdx, zoomMoveEndIdx);
45162
+ this.zoomAreaMemory.current[0] = [zoomMoveStartIdx, zoomMoveEndIdx];
45163
+ }
45164
+ }, {
45165
+ key: "clickMoveZoomArea",
45166
+ value: function clickMoveZoomArea(direction) {
45167
+ if (!this.zoomAreaMemory[direction].length) {
45168
+ return;
45169
+ }
45170
+
45171
+ var _this$zoomAreaMemory$2 = this.zoomAreaMemory[direction].pop(),
45172
+ _this$zoomAreaMemory$3 = _slicedToArray(_this$zoomAreaMemory$2, 2),
45173
+ zoomStartIdx = _this$zoomAreaMemory$3[0],
45174
+ zoomEndIdx = _this$zoomAreaMemory$3[1];
45175
+
45176
+ this.isUseToolbar = true;
45177
+ this.executeZoom(zoomStartIdx, zoomEndIdx);
45178
+ this.setZoomAreaMemory(zoomStartIdx, zoomEndIdx, direction === 'previous' ? 'latest' : 'previous');
45179
+ }
45180
+ }, {
45181
+ key: "dragZoom",
45182
+ value: function dragZoom(_ref) {
45183
+ var zoomInfoData = _ref.data,
45184
+ dragSelectionInfo = _ref.range.dragSelectionInfo;
45185
+ var dragXsp = dragSelectionInfo.dragXsp,
45186
+ dragXep = dragSelectionInfo.dragXep,
45187
+ exceptAxesYChartWidth = dragSelectionInfo.exceptAxesYChartWidth,
45188
+ chartTitle = dragSelectionInfo.chartTitle;
45189
+ var _this$evChartProps = this.evChartProps,
45190
+ evChartOptions = _this$evChartProps.options,
45191
+ evChartData = _this$evChartProps.data;
45192
+ var dragChartIdx = evChartOptions.length > 1 ? evChartOptions.findIndex(function (option) {
45193
+ var _option$title$text, _option$title;
45194
+
45195
+ return ((_option$title$text = option === null || option === void 0 ? void 0 : (_option$title = option.title) === null || _option$title === void 0 ? void 0 : _option$title.text) !== null && _option$title$text !== void 0 ? _option$title$text : '') === chartTitle;
45196
+ }) : 0;
45197
+
45198
+ if (evChartOptions[dragChartIdx].axesX[0].type === 'time') {
45199
+ var zoomSeries = zoomInfoData[0].items;
45200
+ var zoomStartDate = zoomSeries[0].x;
45201
+ var zoomEndDate = zoomSeries[zoomSeries.length - 1].x;
45202
+ var currentChartDataLabels = evChartData[dragChartIdx].labels;
45203
+ var cloneChartDataLabels = this.evChartCloneData[dragChartIdx].labels;
45204
+
45205
+ var _this$zoomAreaMemory$4 = _slicedToArray(this.zoomAreaMemory.current[0], 2),
45206
+ currentZoomStartIdx = _this$zoomAreaMemory$4[0],
45207
+ currentZoomEndIdx = _this$zoomAreaMemory$4[1];
45208
+
45209
+ var newZoomStartIdx = cloneChartDataLabels.findIndex(function (label) {
45210
+ return +label.$d === +zoomStartDate.$d;
45211
+ });
45212
+ var newZoomEndIdx = cloneChartDataLabels.findLastIndex(function (label) {
45213
+ return +label.$d === +zoomEndDate.$d;
45214
+ });
45215
+
45216
+ var calculateAxesXPosition = function calculateAxesXPosition(zoomIdx) {
45217
+ var axesXInterval = exceptAxesYChartWidth / (currentChartDataLabels.length - 1);
45218
+ return axesXInterval * (zoomIdx - currentZoomStartIdx);
45219
+ };
45220
+
45221
+ var newDragStartAxesX = calculateAxesXPosition(newZoomStartIdx);
45222
+
45223
+ if (newZoomStartIdx === newZoomEndIdx) {
45224
+ // drag 영역에 한 포인트만 있을 경우
45225
+ if (newDragStartAxesX - dragXsp >= dragXep - newDragStartAxesX) {
45226
+ newZoomStartIdx -= 1;
45227
+ } else {
45228
+ newZoomEndIdx += 1;
45229
+ }
45230
+ }
45231
+
45232
+ if (newZoomStartIdx === currentZoomStartIdx && newZoomEndIdx === currentZoomEndIdx) {
45233
+ return;
45234
+ }
45235
+
45236
+ if (newZoomStartIdx - newZoomEndIdx === -1) {
45237
+ newDragStartAxesX = calculateAxesXPosition(newZoomStartIdx);
45238
+ }
45239
+
45240
+ var newDragEndAxesX = calculateAxesXPosition(newZoomEndIdx);
45241
+ this.dragZoomAnimation(dragSelectionInfo, newZoomStartIdx, newZoomEndIdx, newDragStartAxesX, newDragEndAxesX);
45242
+ }
45243
+ }
45244
+ }, {
45245
+ key: "dragZoomAnimation",
45246
+ value: function dragZoomAnimation(dragSelectionInfo, newZoomStartIdx, newZoomEndIdx, newDragStartAxesX, newDragEndAxesX) {
45247
+ var _this2 = this;
45248
+
45249
+ var chartRange = dragSelectionInfo.chartRange,
45250
+ exceptAxesYChartWidth = dragSelectionInfo.exceptAxesYChartWidth,
45251
+ exceptAxesXChartHeight = dragSelectionInfo.exceptAxesXChartHeight;
45252
+ var pixelRatio = window.devicePixelRatio || 1;
45253
+ var displayAnimaionCanvas = Array.from(this.evChartDomContainers).map(function (container) {
45254
+ var animationCanvas = container.querySelector('.animation-canvas');
45255
+ var displayCanvas = container.children[0];
45256
+ return [displayCanvas, animationCanvas];
45257
+ });
45258
+
45259
+ var _loop = function _loop(idx) {
45260
+ var _displayAnimaionCanva = _slicedToArray(displayAnimaionCanvas[idx], 2),
45261
+ displayCanvas = _displayAnimaionCanva[0],
45262
+ animationCanvas = _displayAnimaionCanva[1];
45263
+
45264
+ var animationCtx = animationCanvas.getContext('2d');
45265
+ animationCanvas.style.top = "".concat(chartRange.y1, "px");
45266
+ animationCanvas.style.left = "".concat(chartRange.x1, "px");
45267
+ animationCanvas.width = exceptAxesYChartWidth * pixelRatio;
45268
+ animationCanvas.style.width = "".concat(exceptAxesYChartWidth, "px");
45269
+ animationCanvas.height = exceptAxesXChartHeight * pixelRatio;
45270
+ animationCanvas.style.height = "".concat(exceptAxesXChartHeight, "px");
45271
+
45272
+ if (animationCanvas.style.display === 'none') {
45273
+ animationCanvas.style.display = 'block';
45274
+ }
45275
+
45276
+ _this2.isAnimationFinish = false;
45277
+ _this2.isUseToolbar = true;
45278
+
45279
+ _this2.executeDragZoomAnimation(displayCanvas, animationCtx, dragSelectionInfo, newDragStartAxesX, newDragEndAxesX).then(function (isAnimationFinish) {
45280
+ animationCanvas.style.display = 'none';
45281
+
45282
+ if (isAnimationFinish && idx === displayAnimaionCanvas.length - 1) {
45283
+ _this2.isAnimationFinish = isAnimationFinish;
45284
+
45285
+ _this2.executeZoom(newZoomStartIdx, newZoomEndIdx);
45286
+
45287
+ _this2.setZoomAreaMemory(newZoomStartIdx, newZoomEndIdx);
45288
+ }
45289
+ });
45290
+ };
45291
+
45292
+ for (var idx = 0; idx < displayAnimaionCanvas.length; idx++) {
45293
+ _loop(idx);
45294
+ }
45295
+ }
45296
+ }, {
45297
+ key: "executeZoom",
45298
+ value: function executeZoom(zoomStartIdx, zoomEndIdx) {
45299
+ if (this.isExecuteZoom) {
45300
+ this.isExecuteZoom.value = true;
45301
+ }
45302
+
45303
+ for (var idx = 0; idx < this.evChartCloneData.length; idx++) {
45304
+ var _this$evChartCloneDat = this.evChartCloneData[idx],
45305
+ cloneData = _this$evChartCloneDat.data,
45306
+ cloneLabels = _this$evChartCloneDat.labels,
45307
+ cloneSeries = _this$evChartCloneDat.series;
45308
+ var evChartData = this.evChartProps.data[idx];
45309
+ var cloneSeriesNames = Object.keys(cloneSeries);
45310
+
45311
+ for (var jdx = 0; jdx < cloneSeriesNames.length; jdx++) {
45312
+ var cloneSeriesName = cloneSeriesNames[jdx];
45313
+ evChartData.data[cloneSeriesName] = cloneData[cloneSeriesName].filter(function (d, dataIdx) {
45314
+ return zoomStartIdx <= dataIdx && zoomEndIdx >= dataIdx;
45315
+ });
45316
+ }
45317
+
45318
+ evChartData.labels = cloneLabels.filter(function (l, labelIdx) {
45319
+ return zoomStartIdx <= labelIdx && zoomEndIdx >= labelIdx;
45320
+ });
45321
+ }
45322
+
45323
+ if (!this.brushIdx.isUseButton && !this.brushIdx.isUseScroll) {
45324
+ this.brushIdx.start = zoomStartIdx;
45325
+ this.brushIdx.end = zoomEndIdx;
45326
+ }
45327
+
45328
+ if (this.emitFunc) {
45329
+ this.emitFunc.updateZoomStartIdx(zoomStartIdx);
45330
+ this.emitFunc.updateZoomEndIdx(zoomEndIdx);
45331
+ }
45332
+ }
45333
+ }, {
45334
+ key: "updateEvChartCloneData",
45335
+ value: function updateEvChartCloneData(evChartClone, isUseZoomMode) {
45336
+ var cloneLabelsLastIdx = evChartClone.data[0].labels.length - 1;
45337
+ this.cloneLabelsLastIdx = cloneLabelsLastIdx;
45338
+ this.evChartCloneData = evChartClone.data;
45339
+
45340
+ if (this.dragZoomIcon) {
45341
+ this.dragZoomIcon.classList.remove('active');
45342
+ }
45343
+
45344
+ this.zoomAreaMemory = {
45345
+ previous: [],
45346
+ current: [[0, cloneLabelsLastIdx]],
45347
+ latest: []
45348
+ };
45349
+
45350
+ if (this.emitFunc) {
45351
+ this.emitFunc.updateZoomStartIdx(0);
45352
+ this.emitFunc.updateZoomEndIdx(cloneLabelsLastIdx);
45353
+ }
45354
+
45355
+ this.setIconStyle(isUseZoomMode);
45356
+ }
45357
+ }, {
45358
+ key: "setZoomAreaMemory",
45359
+ value: function setZoomAreaMemory(zoomStartIdx, zoomEndIdx, direction) {
45360
+ var _this$zoomAreaMemory = this.zoomAreaMemory,
45361
+ previous = _this$zoomAreaMemory.previous,
45362
+ current = _this$zoomAreaMemory.current,
45363
+ latest = _this$zoomAreaMemory.latest;
45364
+ var currentZoomArea = current.pop();
45365
+ var bufferMemoryCnt = this.evChartZoomOptions.zoom.bufferMemoryCnt;
45366
+
45367
+ if (direction) {
45368
+ if (previous.length >= bufferMemoryCnt) {
45369
+ previous.splice(0, previous.length - bufferMemoryCnt + 1);
45370
+ }
45371
+
45372
+ this.zoomAreaMemory[direction].push(currentZoomArea);
45373
+ } else {
45374
+ previous.push(currentZoomArea);
45375
+ latest.length = 0;
45376
+ }
45377
+
45378
+ current.push([zoomStartIdx, zoomEndIdx]);
45379
+ this.setIconStyle(this.isUseZoomMode);
45380
+ }
45381
+ }, {
45382
+ key: "executeDragZoomAnimation",
45383
+ value: function executeDragZoomAnimation(displayCanvas, animationCtx, dragSelectionInfo, newDragStartAxesX, newDragEndAxesX) {
45384
+ var chartRange = dragSelectionInfo.chartRange,
45385
+ exceptAxesYChartWidth = dragSelectionInfo.exceptAxesYChartWidth,
45386
+ exceptAxesXChartHeight = dragSelectionInfo.exceptAxesXChartHeight;
45387
+ var leftDx = 0;
45388
+ var centerDx = newDragStartAxesX;
45389
+ var centerDWidth = newDragEndAxesX - newDragStartAxesX;
45390
+ var rightDx = newDragEndAxesX;
45391
+ var globalAlpha = 1;
45392
+ var globalAlphaSensitivity = 0.0015;
45393
+ var evChartOpacity = 0.5;
45394
+ var evChartMinOpacity = 0.1;
45395
+ var evChartOpacitySensitivity = 0.05;
45396
+ var zoomSpeed = 50;
45397
+ var leftSpeed = Math.ceil(zoomSpeed * (newDragStartAxesX / exceptAxesYChartWidth));
45398
+ var rightSpeed = Math.ceil(zoomSpeed * ((exceptAxesYChartWidth - newDragEndAxesX) / exceptAxesYChartWidth));
45399
+
45400
+ var animate = function animate(responseFinishStatus) {
45401
+ animationCtx.clearRect(0, 0, exceptAxesYChartWidth, exceptAxesXChartHeight);
45402
+
45403
+ if (centerDx <= 0 && centerDWidth >= exceptAxesYChartWidth) {
45404
+ displayCanvas.style.opacity = 'initial';
45405
+ return responseFinishStatus(true);
45406
+ }
45407
+
45408
+ if (evChartOpacity >= evChartMinOpacity) {
45409
+ displayCanvas.style.opacity = evChartOpacity;
45410
+ evChartOpacity -= evChartOpacitySensitivity;
45411
+ }
45412
+
45413
+ animationCtx.globalAlpha = globalAlpha; // 줌 영역 왼쪽
45414
+
45415
+ animationCtx.drawImage(displayCanvas, chartRange.x1, chartRange.y1, newDragStartAxesX, exceptAxesXChartHeight, leftDx, 0, newDragStartAxesX, exceptAxesXChartHeight); // 줌 영역
45416
+
45417
+ animationCtx.drawImage(displayCanvas, chartRange.x1 + newDragStartAxesX, chartRange.y1, newDragEndAxesX - newDragStartAxesX, exceptAxesXChartHeight, centerDx, 0, centerDWidth, exceptAxesXChartHeight); // 줌 영역 오른쪽
45418
+
45419
+ animationCtx.drawImage(displayCanvas, chartRange.x1 + newDragEndAxesX, chartRange.y1, exceptAxesYChartWidth, exceptAxesXChartHeight, rightDx, 0, exceptAxesYChartWidth, exceptAxesXChartHeight);
45420
+ globalAlpha -= globalAlphaSensitivity;
45421
+ leftDx -= leftSpeed;
45422
+ centerDx -= leftSpeed;
45423
+ centerDWidth += leftSpeed + rightSpeed;
45424
+ rightDx += rightSpeed;
45425
+ return requestAnimationFrame(function () {
45426
+ return animate(responseFinishStatus);
45427
+ });
45428
+ };
45429
+
45430
+ return new Promise(function (response) {
45431
+ return animate(response);
45432
+ });
45433
+ }
45434
+ }, {
45435
+ key: "setIconStyle",
45436
+ value: function setIconStyle(isUseZoomMode) {
45437
+ var _this3 = this;
45438
+
45439
+ var toggleIconStyle = function toggleIconStyle(icon, condition) {
45440
+ if (condition) {
45441
+ _this3.iconStyle(icon, 'enable');
45442
+ } else {
45443
+ _this3.iconStyle(icon, 'disable');
45444
+ }
45445
+ };
45446
+
45447
+ if (isUseZoomMode && this.dragZoomIcon.classList.contains('active')) {
45448
+ var _this$zoomAreaMemory2 = this.zoomAreaMemory,
45449
+ previous = _this$zoomAreaMemory2.previous,
45450
+ latest = _this$zoomAreaMemory2.latest;
45451
+ toggleIconStyle(this.previousIcon, previous.length);
45452
+ toggleIconStyle(this.latestIcon, latest.length);
45453
+ this.iconStyle(this.resetIcon, 'enable');
45454
+ } else {
45455
+ toggleIconStyle(this.resetIcon);
45456
+ toggleIconStyle(this.previousIcon);
45457
+ toggleIconStyle(this.latestIcon);
45458
+ }
45459
+ }
45460
+ }, {
45461
+ key: "iconStyle",
45462
+ value: function iconStyle(icon, mode) {
45463
+ if (!icon) {
45464
+ return;
45465
+ }
45466
+
45467
+ var _ref2 = mode === 'enable' ? [1, 'initial'] : [0.5, 'none'],
45468
+ _ref3 = _slicedToArray(_ref2, 2),
45469
+ opacity = _ref3[0],
45470
+ pointerEvents = _ref3[1];
45471
+
45472
+ icon.style.opacity = opacity;
45473
+ icon.style.pointerEvents = pointerEvents;
45474
+ }
45475
+ }, {
45476
+ key: "initZoom",
45477
+ value: function initZoom() {
45478
+ if (!this.isAnimationFinish) {
45479
+ return;
45480
+ }
45481
+
45482
+ var _this$zoomAreaMemory$5 = _slicedToArray(this.zoomAreaMemory.current[0], 2),
45483
+ currentZoomStartIdx = _this$zoomAreaMemory$5[0],
45484
+ currentZoomEndIdx = _this$zoomAreaMemory$5[1];
45485
+
45486
+ var cloneLabelsLastIdx = this.cloneLabelsLastIdx;
45487
+
45488
+ if (currentZoomStartIdx !== 0 || currentZoomEndIdx !== cloneLabelsLastIdx) {
45489
+ this.isUseToolbar = true;
45490
+ this.executeZoom(0, cloneLabelsLastIdx);
45491
+ this.setZoomAreaMemory(0, cloneLabelsLastIdx);
45492
+ }
45493
+ }
45494
+ }]);
45495
+
45496
+ return EvChartZoom;
45497
+ }();
45498
+
45499
+
44751
45500
  // CONCATENATED MODULE: ./src/components/chart/uses.js
44752
45501
 
44753
45502
 
44754
45503
 
44755
45504
 
44756
45505
 
45506
+
45507
+
45508
+
45509
+
45510
+
45511
+
44757
45512
  var DEFAULT_OPTIONS = {
44758
45513
  padding: {
44759
45514
  top: 20,
@@ -44882,6 +45637,7 @@ var DEFAULT_OPTIONS = {
44882
45637
  selectLabel: {
44883
45638
  use: false,
44884
45639
  useClick: true,
45640
+ tipText: 'value',
44885
45641
  limit: 1,
44886
45642
  useDeselectOverflow: false,
44887
45643
  showTip: false,
@@ -44889,7 +45645,18 @@ var DEFAULT_OPTIONS = {
44889
45645
  useLabelOpacity: true,
44890
45646
  fixedPosTop: false,
44891
45647
  useApproximateValue: false,
44892
- tipBackground: '#000000'
45648
+ tipBackground: '#000000',
45649
+ indicatorColor: '#000000',
45650
+ tipStyle: {
45651
+ height: 20,
45652
+ background: '#000000',
45653
+ textColor: '#FFFFFF',
45654
+ fontSize: 14,
45655
+ fontFamily: 'Roboto',
45656
+ fontWeight: 400
45657
+ },
45658
+ showTextTip: false,
45659
+ showIndicator: false
44893
45660
  },
44894
45661
  selectSeries: {
44895
45662
  use: false,
@@ -44903,6 +45670,34 @@ var DEFAULT_OPTIONS = {
44903
45670
  fillColor: '#38ACEC',
44904
45671
  opacity: 0.65
44905
45672
  },
45673
+ zoom: {
45674
+ bufferMemoryCnt: 100,
45675
+ toolbar: {
45676
+ show: false,
45677
+ items: {
45678
+ previous: {
45679
+ icon: 'ev-icon-allow2-left',
45680
+ size: 'medium',
45681
+ title: 'Previous'
45682
+ },
45683
+ latest: {
45684
+ icon: 'ev-icon-allow2-right',
45685
+ size: 'medium',
45686
+ title: 'Latest'
45687
+ },
45688
+ reset: {
45689
+ icon: 'ev-icon-redo',
45690
+ size: 'medium',
45691
+ title: 'Reset'
45692
+ },
45693
+ dragZoom: {
45694
+ icon: 'ev-icon-zoomin',
45695
+ size: 'medium',
45696
+ title: 'Drag Zoom'
45697
+ }
45698
+ }
45699
+ }
45700
+ },
44906
45701
  heatMapColor: {
44907
45702
  min: '#FFFFFF',
44908
45703
  max: '#0052FF',
@@ -44924,7 +45719,9 @@ var DEFAULT_DATA = {
44924
45719
  labels: [],
44925
45720
  data: {}
44926
45721
  };
44927
- var chart_uses_useModel = function useModel() {
45722
+ var chart_uses_useModel = function useModel(selectedLabel) {
45723
+ var _props$selectedLabel;
45724
+
44928
45725
  var _getCurrentInstance = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["getCurrentInstance"])(),
44929
45726
  props = _getCurrentInstance.props,
44930
45727
  emit = _getCurrentInstance.emit;
@@ -44953,7 +45750,7 @@ var chart_uses_useModel = function useModel() {
44953
45750
  };
44954
45751
 
44955
45752
  var selectItemInfo = lodash_es_cloneDeep(props.selectedItem);
44956
- var selectLabelInfo = lodash_es_cloneDeep(props.selectedLabel);
45753
+ var selectLabelInfo = lodash_es_cloneDeep((_props$selectedLabel = props.selectedLabel) !== null && _props$selectedLabel !== void 0 ? _props$selectedLabel : selectedLabel === null || selectedLabel === void 0 ? void 0 : selectedLabel.value);
44957
45754
  var selectSeriesInfo = lodash_es_cloneDeep(props.selectedSeries);
44958
45755
  var eventListeners = {
44959
45756
  click: function () {
@@ -44976,9 +45773,13 @@ var chart_uses_useModel = function useModel() {
44976
45773
  }
44977
45774
 
44978
45775
  if ((_e$selected = e.selected) !== null && _e$selected !== void 0 && _e$selected.dataIndex) {
44979
- emit('update:selectedLabel', {
44980
- dataIndex: e.selected.dataIndex
44981
- });
45776
+ if (selectedLabel !== null && selectedLabel !== void 0 && selectedLabel.value) {
45777
+ selectedLabel.value.dataIndex = e.selected.dataIndex;
45778
+ } else {
45779
+ emit('update:selectedLabel', {
45780
+ dataIndex: e.selected.dataIndex
45781
+ });
45782
+ }
44982
45783
  }
44983
45784
 
44984
45785
  if ((_e$selected2 = e.selected) !== null && _e$selected2 !== void 0 && _e$selected2.seriesId) {
@@ -45090,6 +45891,284 @@ var uses_useWrapper = function useWrapper(options) {
45090
45891
  wrapperStyle: wrapperStyle
45091
45892
  };
45092
45893
  };
45894
+ var uses_useZoomModel = function useZoomModel(evChartNormalizedOptions, _ref, selectedLabelOrItem) {
45895
+ var evChartWrapper = _ref.wrapper,
45896
+ evChartGroupRef = _ref.evChartGroupRef;
45897
+
45898
+ var _getCurrentInstance2 = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["getCurrentInstance"])(),
45899
+ props = _getCurrentInstance2.props,
45900
+ slots = _getCurrentInstance2.slots,
45901
+ emit = _getCurrentInstance2.emit;
45902
+
45903
+ var isExecuteZoom = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(false);
45904
+ var isUseZoomMode = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(false);
45905
+ var evChartToolbarRef = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])();
45906
+ var evChartZoomOptions = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
45907
+ zoom: evChartNormalizedOptions.zoom
45908
+ });
45909
+ var brushIdx = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
45910
+ start: 0,
45911
+ end: -1,
45912
+ isUseButton: false,
45913
+ isUseScroll: false
45914
+ });
45915
+ var evChartZoom = null;
45916
+ var evChartInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
45917
+ dom: [],
45918
+ props: {
45919
+ data: [],
45920
+ options: []
45921
+ }
45922
+ });
45923
+ var evChartClone = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
45924
+ data: null,
45925
+ options: null
45926
+ });
45927
+ var brushChartIdx = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])([]);
45928
+
45929
+ var getRangeInfo = function getRangeInfo(zoomInfo) {
45930
+ if (zoomInfo.data.length && zoomInfo.range && isUseZoomMode.value) {
45931
+ evChartZoom.dragZoom(zoomInfo);
45932
+ }
45933
+ };
45934
+
45935
+ var setEvChartOptions = function setEvChartOptions() {
45936
+ evChartInfo.props.options.forEach(function (option, idx) {
45937
+ option.zoom = _objectSpread2(_objectSpread2({}, option.zoom), {}, {
45938
+ use: isUseZoomMode.value,
45939
+ getRangeInfo: getRangeInfo
45940
+ });
45941
+
45942
+ if (isUseZoomMode.value) {
45943
+ option.dragSelection = _objectSpread2(_objectSpread2({}, option.dragSelection), {}, {
45944
+ use: true,
45945
+ keepDisplay: false
45946
+ });
45947
+ } else {
45948
+ var _evChartClone$options;
45949
+
45950
+ var _ref2 = (_evChartClone$options = evChartClone.options[idx].dragSelection) !== null && _evChartClone$options !== void 0 ? _evChartClone$options : {},
45951
+ originUseOption = _ref2.use,
45952
+ originKeepDisplayOption = _ref2.keepDisplay;
45953
+
45954
+ option.dragSelection = {
45955
+ use: !!originUseOption,
45956
+ keepDisplay: !!originKeepDisplayOption
45957
+ };
45958
+ }
45959
+ });
45960
+ };
45961
+
45962
+ var createEvChartZoom = function createEvChartZoom() {
45963
+ if (evChartGroupRef) {
45964
+ evChartInfo.dom = evChartGroupRef.value.querySelectorAll('.ev-chart-container');
45965
+ var chartIdx = 0;
45966
+
45967
+ if (evChartInfo.dom.length) {
45968
+ slots.default(evChartInfo.dom).forEach(function (_ref3) {
45969
+ var type = _ref3.type,
45970
+ evChartProps = _ref3.props;
45971
+
45972
+ if ((type === null || type === void 0 ? void 0 : type.name) === 'EvChart') {
45973
+ var options = evChartProps.options,
45974
+ data = evChartProps.data;
45975
+ data.chartIdx = chartIdx;
45976
+ chartIdx++;
45977
+ evChartInfo.props.data.push(data);
45978
+ evChartInfo.props.options.push(options);
45979
+ } else if ((type === null || type === void 0 ? void 0 : type.name) === 'EvChartBrush') {
45980
+ var _evChartProps$options, _evChartProps$options2;
45981
+
45982
+ brushChartIdx.value.push((_evChartProps$options = evChartProps === null || evChartProps === void 0 ? void 0 : (_evChartProps$options2 = evChartProps.options) === null || _evChartProps$options2 === void 0 ? void 0 : _evChartProps$options2.chartIdx) !== null && _evChartProps$options !== void 0 ? _evChartProps$options : 0);
45983
+ }
45984
+ });
45985
+ }
45986
+ } else {
45987
+ evChartInfo.dom = [evChartWrapper.value.querySelector('.ev-chart-container')];
45988
+ evChartInfo.props.data.push(props.data);
45989
+ evChartInfo.props.options.push(props.options);
45990
+ }
45991
+
45992
+ if (evChartInfo.props.data.length) {
45993
+ evChartClone.data = lodash_es_cloneDeep(evChartInfo.props.data);
45994
+ evChartClone.options = lodash_es_cloneDeep(evChartInfo.props.options);
45995
+ var emitFunc = {
45996
+ updateZoomStartIdx: function updateZoomStartIdx(startIdx) {
45997
+ return emit('update:zoomStartIdx', startIdx);
45998
+ },
45999
+ updateZoomEndIdx: function updateZoomEndIdx(endIdx) {
46000
+ return emit('update:zoomEndIdx', endIdx);
46001
+ }
46002
+ };
46003
+ evChartZoom = new chartZoom_core_EvChartZoom(evChartInfo, evChartClone, evChartZoomOptions, evChartToolbarRef.value, isExecuteZoom, brushIdx, emitFunc);
46004
+ }
46005
+ };
46006
+
46007
+ var toggleUseZoom = function toggleUseZoom(target) {
46008
+ if (evChartClone.data[0].labels.length <= 1) {
46009
+ return;
46010
+ }
46011
+
46012
+ isUseZoomMode.value = !isUseZoomMode.value;
46013
+
46014
+ if (target) {
46015
+ target.classList.toggle('active');
46016
+ } else {
46017
+ var dragZoomIcon = evChartToolbarRef.value.querySelector('.dragZoom');
46018
+ dragZoomIcon.classList.toggle('active');
46019
+ }
46020
+
46021
+ setEvChartOptions();
46022
+ evChartZoom.setIconStyle(isUseZoomMode.value);
46023
+ evChartZoom.setEventListener(isUseZoomMode.value);
46024
+ };
46025
+
46026
+ var onClickToolbar = function onClickToolbar(e, iconType) {
46027
+ if (!evChartZoom.isAnimationFinish) {
46028
+ return;
46029
+ }
46030
+
46031
+ switch (iconType) {
46032
+ case 'dragZoom':
46033
+ toggleUseZoom(e.target);
46034
+ break;
46035
+
46036
+ case 'reset':
46037
+ evChartZoom.initZoom();
46038
+ break;
46039
+
46040
+ case 'previous':
46041
+ case 'latest':
46042
+ evChartZoom.clickMoveZoomArea(iconType);
46043
+ break;
46044
+
46045
+ default:
46046
+ break;
46047
+ }
46048
+ };
46049
+
46050
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onUpdated"])(function () {
46051
+ if (evChartToolbarRef.value) {
46052
+ evChartZoom.setIcon(evChartToolbarRef.value);
46053
+ }
46054
+ });
46055
+
46056
+ var setOptionsForUseZoom = function setOptionsForUseZoom(newOpt) {
46057
+ var isUpdateZoomOptions = !lodash_es_isEqual(newOpt.zoom, evChartZoomOptions.zoom);
46058
+
46059
+ if (isUpdateZoomOptions) {
46060
+ evChartZoomOptions.zoom = newOpt.zoom;
46061
+
46062
+ if (evChartZoom) {
46063
+ if (!evChartZoomOptions.zoom.toolbar.show && isUseZoomMode.value) {
46064
+ toggleUseZoom();
46065
+ }
46066
+
46067
+ evChartZoom.setEvChartZoomOptions(evChartZoomOptions);
46068
+ } else if (evChartZoomOptions.zoom.toolbar.show && !evChartGroupRef) {
46069
+ createEvChartZoom();
46070
+ }
46071
+ }
46072
+ };
46073
+
46074
+ var setDataForUseZoom = function setDataForUseZoom(newData) {
46075
+ if (!isExecuteZoom.value) {
46076
+ evChartClone.data = evChartGroupRef ? lodash_es_cloneDeep(newData) : [lodash_es_cloneDeep(newData)];
46077
+ isUseZoomMode.value = false;
46078
+ setEvChartOptions();
46079
+ brushIdx.end = -1;
46080
+
46081
+ for (var i = 0; i < brushChartIdx.value.length; i++) {
46082
+ var data = evChartClone.data[brushChartIdx.value[i]];
46083
+
46084
+ if (data.labels.length) {
46085
+ brushIdx.start = 0;
46086
+ brushIdx.end = data.labels.length - 1;
46087
+ }
46088
+ }
46089
+
46090
+ if (evChartZoom) {
46091
+ evChartZoom.updateEvChartCloneData(evChartClone, isUseZoomMode.value);
46092
+ }
46093
+ }
46094
+
46095
+ isExecuteZoom.value = false;
46096
+ };
46097
+
46098
+ var controlZoomIdx = function controlZoomIdx(zoomStartIdx, zoomEndIdx) {
46099
+ if (evChartZoom.isUseToolbar) {
46100
+ evChartZoom.isUseToolbar = false;
46101
+ return;
46102
+ }
46103
+
46104
+ if (isUseZoomMode.value) {
46105
+ evChartZoom.executeZoom(zoomStartIdx, zoomEndIdx);
46106
+ evChartZoom.setZoomAreaMemory(zoomStartIdx, zoomEndIdx);
46107
+ }
46108
+ };
46109
+
46110
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
46111
+ return [brushIdx.start, brushIdx.end];
46112
+ }, function (_ref4, _ref5) {
46113
+ var _ref6 = _slicedToArray(_ref4, 2),
46114
+ curBrushStartIdx = _ref6[0],
46115
+ curBrushEndIdx = _ref6[1];
46116
+
46117
+ var _ref7 = _slicedToArray(_ref5, 1),
46118
+ prevBrushStartIdx = _ref7[0];
46119
+
46120
+ if (selectedLabelOrItem !== null && selectedLabelOrItem !== void 0 && selectedLabelOrItem.value) {
46121
+ if (typeof selectedLabelOrItem.value.dataIndex === 'number') {
46122
+ if (curBrushStartIdx >= (prevBrushStartIdx !== null && prevBrushStartIdx !== void 0 ? prevBrushStartIdx : 0)) {
46123
+ selectedLabelOrItem.value.dataIndex -= curBrushStartIdx - (prevBrushStartIdx !== null && prevBrushStartIdx !== void 0 ? prevBrushStartIdx : 0);
46124
+ } else {
46125
+ selectedLabelOrItem.value.dataIndex += prevBrushStartIdx - curBrushStartIdx;
46126
+ }
46127
+ } else {
46128
+ for (var idx = 0; idx < selectedLabelOrItem.value.dataIndex.length; idx++) {
46129
+ if (curBrushStartIdx >= (prevBrushStartIdx !== null && prevBrushStartIdx !== void 0 ? prevBrushStartIdx : 0)) {
46130
+ selectedLabelOrItem.value.dataIndex[idx] -= curBrushStartIdx - (prevBrushStartIdx !== null && prevBrushStartIdx !== void 0 ? prevBrushStartIdx : 0);
46131
+ } else {
46132
+ selectedLabelOrItem.value.dataIndex[idx] += prevBrushStartIdx - curBrushStartIdx;
46133
+ }
46134
+ }
46135
+ }
46136
+ }
46137
+
46138
+ if (brushIdx.isUseButton || brushIdx.isUseScroll) {
46139
+ evChartZoom.executeZoom(curBrushStartIdx, curBrushEndIdx);
46140
+ }
46141
+ });
46142
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
46143
+ return [brushIdx.isUseButton, brushIdx.isUseScroll];
46144
+ }, function (_ref8, _ref9) {
46145
+ var _ref10 = _slicedToArray(_ref8, 2),
46146
+ curIsUseButton = _ref10[0],
46147
+ curIsUseScroll = _ref10[1];
46148
+
46149
+ var _ref11 = _slicedToArray(_ref9, 2),
46150
+ prevIsUseButton = _ref11[0],
46151
+ prevIsUseScroll = _ref11[1];
46152
+
46153
+ if (prevIsUseButton && !curIsUseButton) {
46154
+ evChartZoom.setZoomAreaMemory(brushIdx.start, brushIdx.end);
46155
+ } else if (prevIsUseScroll && !curIsUseScroll) {
46156
+ evChartZoom.zoomAreaMemory.current[0] = [brushIdx.start, brushIdx.end];
46157
+ }
46158
+ });
46159
+ return {
46160
+ evChartZoomOptions: evChartZoomOptions,
46161
+ evChartInfo: evChartInfo,
46162
+ evChartToolbarRef: evChartToolbarRef,
46163
+ evChartClone: evChartClone,
46164
+ brushIdx: brushIdx,
46165
+ createEvChartZoom: createEvChartZoom,
46166
+ setOptionsForUseZoom: setOptionsForUseZoom,
46167
+ setDataForUseZoom: setDataForUseZoom,
46168
+ controlZoomIdx: controlZoomIdx,
46169
+ onClickToolbar: onClickToolbar
46170
+ };
46171
+ };
45093
46172
  // 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/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/chart/Chart.vue?vue&type=script&lang=js
45094
46173
 
45095
46174
 
@@ -45098,8 +46177,13 @@ var uses_useWrapper = function useWrapper(options) {
45098
46177
 
45099
46178
 
45100
46179
 
46180
+
46181
+
45101
46182
  /* harmony default export */ var Chartvue_type_script_lang_js = ({
45102
46183
  name: 'EvChart',
46184
+ components: {
46185
+ EvChartToolbar: ChartToolbar
46186
+ },
45103
46187
  props: {
45104
46188
  selectedItem: {
45105
46189
  type: Object,
@@ -45128,13 +46212,31 @@ var uses_useWrapper = function useWrapper(options) {
45128
46212
  resizeTimeout: {
45129
46213
  type: Number,
45130
46214
  default: 0
46215
+ },
46216
+ zoomStartIdx: {
46217
+ type: Number,
46218
+ default: 0
46219
+ },
46220
+ zoomEndIdx: {
46221
+ type: Number,
46222
+ default: 0
45131
46223
  }
45132
46224
  },
45133
- emits: ['click', 'dbl-click', 'drag-select', 'update:selectedItem', 'update:selectedLabel', 'update:selectedSeries'],
46225
+ emits: ['click', 'dbl-click', 'drag-select', 'update:selectedItem', 'update:selectedLabel', 'update:selectedSeries', 'update:zoomStartIdx', 'update:zoomEndIdx'],
45134
46226
  setup: function setup(props) {
45135
46227
  var evChart = null;
46228
+ var injectIsChartGroup = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["inject"])('isChartGroup', false);
46229
+ var injectBrushSeries = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["inject"])('brushSeries', {
46230
+ list: [],
46231
+ chartIdx: null
46232
+ });
46233
+ var injectGroupSelectedLabel = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["inject"])('groupSelectedLabel', null);
46234
+ var injectBrushIdx = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["inject"])('brushIdx', {
46235
+ start: 0,
46236
+ end: -1
46237
+ });
45136
46238
 
45137
- var _useModel = chart_uses_useModel(),
46239
+ var _useModel = chart_uses_useModel(injectGroupSelectedLabel),
45138
46240
  eventListeners = _useModel.eventListeners,
45139
46241
  selectItemInfo = _useModel.selectItemInfo,
45140
46242
  selectLabelInfo = _useModel.selectLabelInfo,
@@ -45144,11 +46246,29 @@ var uses_useWrapper = function useWrapper(options) {
45144
46246
 
45145
46247
  var normalizedData = getNormalizedData(props.data);
45146
46248
  var normalizedOptions = getNormalizedOptions(props.options);
46249
+ var selectedLabel = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
46250
+ return props.selectedLabel;
46251
+ });
46252
+ var selectedItem = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
46253
+ return props.selectedItem;
46254
+ });
45147
46255
 
45148
46256
  var _useWrapper = uses_useWrapper(normalizedOptions),
45149
46257
  wrapper = _useWrapper.wrapper,
45150
46258
  wrapperStyle = _useWrapper.wrapperStyle;
45151
46259
 
46260
+ var _useZoomModel = uses_useZoomModel(normalizedOptions, {
46261
+ wrapper: wrapper,
46262
+ evChartGroupRef: null
46263
+ }, props.selectedLabel ? selectedLabel : selectedItem),
46264
+ evChartZoomOptions = _useZoomModel.evChartZoomOptions,
46265
+ evChartToolbarRef = _useZoomModel.evChartToolbarRef,
46266
+ createEvChartZoom = _useZoomModel.createEvChartZoom,
46267
+ setOptionsForUseZoom = _useZoomModel.setOptionsForUseZoom,
46268
+ setDataForUseZoom = _useZoomModel.setDataForUseZoom,
46269
+ controlZoomIdx = _useZoomModel.controlZoomIdx,
46270
+ onClickToolbar = _useZoomModel.onClickToolbar;
46271
+
45152
46272
  var createChart = function createChart() {
45153
46273
  var selected;
45154
46274
 
@@ -45158,12 +46278,16 @@ var uses_useWrapper = function useWrapper(options) {
45158
46278
  selected = selectSeriesInfo;
45159
46279
  }
45160
46280
 
45161
- evChart = new chart_core(wrapper.value, normalizedData, normalizedOptions, eventListeners, selectItemInfo, selected);
46281
+ evChart = new chart_core(wrapper.value, normalizedData, normalizedOptions, eventListeners, selectItemInfo, selected, injectBrushSeries);
45162
46282
  };
45163
46283
 
45164
46284
  var drawChart = function drawChart() {
45165
46285
  if (evChart) {
45166
46286
  evChart.init();
46287
+
46288
+ if (!injectIsChartGroup && normalizedOptions.zoom.toolbar.show) {
46289
+ createEvChartZoom();
46290
+ }
45167
46291
  }
45168
46292
  };
45169
46293
 
@@ -45181,6 +46305,10 @@ var uses_useWrapper = function useWrapper(options) {
45181
46305
  },
45182
46306
  updateLegend: isUpdateLegendType
45183
46307
  });
46308
+
46309
+ if (!injectIsChartGroup) {
46310
+ setOptionsForUseZoom(newOpt);
46311
+ }
45184
46312
  }, {
45185
46313
  deep: true,
45186
46314
  flush: 'post'
@@ -45200,12 +46328,39 @@ var uses_useWrapper = function useWrapper(options) {
45200
46328
  },
45201
46329
  updateData: isUpdateData
45202
46330
  });
46331
+
46332
+ if (!injectIsChartGroup && isUpdateData) {
46333
+ setDataForUseZoom(newData);
46334
+ }
45203
46335
  }, {
45204
46336
  deep: true,
45205
46337
  flush: 'post'
45206
46338
  });
46339
+
46340
+ if (injectIsChartGroup && !(injectGroupSelectedLabel !== null && injectGroupSelectedLabel !== void 0 && injectGroupSelectedLabel.value)) {
46341
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
46342
+ return injectBrushIdx.start;
46343
+ }, function (curBrushStartIdx, prevBrushStartIdx) {
46344
+ if (selectedLabel !== null && selectedLabel !== void 0 && selectedLabel.value) {
46345
+ for (var idx = 0; idx < selectedLabel.value.dataIndex.length; idx++) {
46346
+ if (curBrushStartIdx >= (prevBrushStartIdx !== null && prevBrushStartIdx !== void 0 ? prevBrushStartIdx : 0)) {
46347
+ selectedLabel.value.dataIndex[idx] -= curBrushStartIdx - (prevBrushStartIdx !== null && prevBrushStartIdx !== void 0 ? prevBrushStartIdx : 0);
46348
+ } else {
46349
+ selectedLabel.value.dataIndex[idx] += prevBrushStartIdx - curBrushStartIdx;
46350
+ }
46351
+ }
46352
+ } else if (selectedItem !== null && selectedItem !== void 0 && selectedItem.value) {
46353
+ if (curBrushStartIdx >= (prevBrushStartIdx !== null && prevBrushStartIdx !== void 0 ? prevBrushStartIdx : 0)) {
46354
+ selectedItem.value.dataIndex -= curBrushStartIdx - (prevBrushStartIdx !== null && prevBrushStartIdx !== void 0 ? prevBrushStartIdx : 0);
46355
+ } else {
46356
+ selectedItem.value.dataIndex += prevBrushStartIdx - curBrushStartIdx;
46357
+ }
46358
+ }
46359
+ });
46360
+ }
46361
+
45207
46362
  Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
45208
- return props.selectedItem;
46363
+ return selectedItem.value;
45209
46364
  }, function (newValue) {
45210
46365
  var chartType = props.options.type;
45211
46366
  evChart.selectItemByData(newValue, chartType);
@@ -45214,7 +46369,9 @@ var uses_useWrapper = function useWrapper(options) {
45214
46369
  flush: 'post'
45215
46370
  });
45216
46371
  Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
45217
- return props.selectedLabel;
46372
+ var _injectGroupSelectedL;
46373
+
46374
+ return (_injectGroupSelectedL = injectGroupSelectedLabel === null || injectGroupSelectedLabel === void 0 ? void 0 : injectGroupSelectedLabel.value) !== null && _injectGroupSelectedL !== void 0 ? _injectGroupSelectedL : selectedLabel.value;
45218
46375
  }, function (newValue) {
45219
46376
  if (newValue.dataIndex) {
45220
46377
  evChart.renderWithSelected(newValue.dataIndex);
@@ -45233,6 +46390,19 @@ var uses_useWrapper = function useWrapper(options) {
45233
46390
  deep: true,
45234
46391
  flush: 'post'
45235
46392
  });
46393
+
46394
+ if (!injectIsChartGroup) {
46395
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
46396
+ return [props.zoomStartIdx, props.zoomEndIdx];
46397
+ }, function (_ref) {
46398
+ var _ref2 = _slicedToArray(_ref, 2),
46399
+ zoomStartIdx = _ref2[0],
46400
+ zoomEndIdx = _ref2[1];
46401
+
46402
+ controlZoomIdx(zoomStartIdx, zoomEndIdx);
46403
+ });
46404
+ }
46405
+
45236
46406
  Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onMounted"])( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
45237
46407
  return regeneratorRuntime.wrap(function _callee$(_context) {
45238
46408
  while (1) {
@@ -45284,14 +46454,19 @@ var uses_useWrapper = function useWrapper(options) {
45284
46454
  wrapper: wrapper,
45285
46455
  wrapperStyle: wrapperStyle,
45286
46456
  onResize: onResize,
45287
- redraw: redraw
46457
+ redraw: redraw,
46458
+ evChartToolbarRef: evChartToolbarRef,
46459
+ injectIsChartGroup: injectIsChartGroup,
46460
+ onClickToolbar: onClickToolbar,
46461
+ normalizedOptions: normalizedOptions,
46462
+ zoomOptions: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRef"])(evChartZoomOptions, 'zoom')
45288
46463
  };
45289
46464
  }
45290
46465
  });
45291
46466
  // CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=script&lang=js
45292
46467
 
45293
- // EXTERNAL MODULE: ./src/components/chart/Chart.vue?vue&type=style&index=0&id=ca3428ac&lang=scss
45294
- var Chartvue_type_style_index_0_id_ca3428ac_lang_scss = __webpack_require__("e83f");
46468
+ // EXTERNAL MODULE: ./src/components/chart/Chart.vue?vue&type=style&index=0&id=0627777b&lang=scss
46469
+ var Chartvue_type_style_index_0_id_0627777b_lang_scss = __webpack_require__("74f8");
45295
46470
 
45296
46471
  // CONCATENATED MODULE: ./src/components/chart/Chart.vue
45297
46472
 
@@ -45301,7 +46476,7 @@ var Chartvue_type_style_index_0_id_ca3428ac_lang_scss = __webpack_require__("e83
45301
46476
 
45302
46477
 
45303
46478
 
45304
- const Chart_exports_ = /*#__PURE__*/exportHelper_default()(Chartvue_type_script_lang_js, [['render',Chartvue_type_template_id_ca3428ac_render]])
46479
+ const Chart_exports_ = /*#__PURE__*/exportHelper_default()(Chartvue_type_script_lang_js, [['render',Chartvue_type_template_id_0627777b_render]])
45305
46480
 
45306
46481
  /* harmony default export */ var Chart = (Chart_exports_);
45307
46482
  // CONCATENATED MODULE: ./src/components/chart/index.js
@@ -45315,6 +46490,1104 @@ Chart.install = function (app) {
45315
46490
  };
45316
46491
 
45317
46492
  /* harmony default export */ var chart = (Chart);
46493
+ // 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/chartGroup/ChartGroup.vue?vue&type=template&id=bd8c6660&scoped=true
46494
+
46495
+
46496
+ var ChartGroupvue_type_template_id_bd8c6660_scoped_true_withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-bd8c6660");
46497
+
46498
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-bd8c6660");
46499
+
46500
+ var ChartGroupvue_type_template_id_bd8c6660_scoped_true_hoisted_1 = {
46501
+ key: 0,
46502
+ ref: "evChartToolbarRef"
46503
+ };
46504
+ var ChartGroupvue_type_template_id_bd8c6660_scoped_true_hoisted_2 = {
46505
+ ref: "evChartGroupRef",
46506
+ class: "ev-chart-group__wrapper"
46507
+ };
46508
+
46509
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
46510
+
46511
+ var ChartGroupvue_type_template_id_bd8c6660_scoped_true_render = /*#__PURE__*/ChartGroupvue_type_template_id_bd8c6660_scoped_true_withId(function (_ctx, _cache, $props, $setup, $data, $options) {
46512
+ var _component_ev_chart_toolbar = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-chart-toolbar");
46513
+
46514
+ 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.toolbar.show ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", ChartGroupvue_type_template_id_bd8c6660_scoped_true_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_chart_toolbar, {
46515
+ toolbar: $setup.zoomOptions.toolbar,
46516
+ onOnClickToolbar: $setup.onClickToolbar
46517
+ }, null, 8, ["toolbar", "onOnClickToolbar"])], 512)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", ChartGroupvue_type_template_id_bd8c6660_scoped_true_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default")], 512)], 64);
46518
+ });
46519
+ // CONCATENATED MODULE: ./src/components/chartGroup/ChartGroup.vue?vue&type=template&id=bd8c6660&scoped=true
46520
+
46521
+ // CONCATENATED MODULE: ./src/components/chartGroup/uses.js
46522
+
46523
+
46524
+ var uses_DEFAULT_OPTIONS = {
46525
+ zoom: {
46526
+ bufferMemoryCnt: 100,
46527
+ toolbar: {
46528
+ show: false,
46529
+ items: {
46530
+ previous: {
46531
+ icon: 'ev-icon-allow2-left',
46532
+ size: 'medium',
46533
+ title: 'Previous'
46534
+ },
46535
+ latest: {
46536
+ icon: 'ev-icon-allow2-right',
46537
+ size: 'medium',
46538
+ title: 'Latest'
46539
+ },
46540
+ reset: {
46541
+ icon: 'ev-icon-redo',
46542
+ size: 'medium',
46543
+ title: 'Reset'
46544
+ },
46545
+ dragZoom: {
46546
+ icon: 'ev-icon-zoomin',
46547
+ size: 'medium',
46548
+ title: 'Drag Zoom'
46549
+ }
46550
+ }
46551
+ }
46552
+ }
46553
+ }; // eslint-disable-next-line import/prefer-default-export
46554
+
46555
+ var uses_useGroupModel = function useGroupModel() {
46556
+ var isExecuteZoom = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(false);
46557
+ var evChartGroupRef = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])();
46558
+ var brushSeries = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
46559
+ list: [],
46560
+ chartIdx: null
46561
+ });
46562
+
46563
+ var getNormalizedOptions = function getNormalizedOptions(options) {
46564
+ return lodash_es_defaultsDeep({}, options, uses_DEFAULT_OPTIONS);
46565
+ };
46566
+
46567
+ return {
46568
+ getNormalizedOptions: getNormalizedOptions,
46569
+ isExecuteZoom: isExecuteZoom,
46570
+ brushSeries: brushSeries,
46571
+ evChartGroupRef: evChartGroupRef
46572
+ };
46573
+ };
46574
+ // 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/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/chartGroup/ChartGroup.vue?vue&type=script&lang=js
46575
+
46576
+
46577
+
46578
+
46579
+
46580
+
46581
+ /* harmony default export */ var ChartGroupvue_type_script_lang_js = ({
46582
+ name: 'EvChartGroup',
46583
+ components: {
46584
+ evChartToolbar: ChartToolbar
46585
+ },
46586
+ props: {
46587
+ options: {
46588
+ type: Object,
46589
+ default: function _default() {
46590
+ return {};
46591
+ }
46592
+ },
46593
+ zoomStartIdx: {
46594
+ type: Number,
46595
+ default: 0
46596
+ },
46597
+ zoomEndIdx: {
46598
+ type: Number,
46599
+ default: 0
46600
+ },
46601
+ groupSelectedLabel: {
46602
+ type: Object,
46603
+ default: null
46604
+ }
46605
+ },
46606
+ emits: ['update:zoomStartIdx', 'update:zoomEndIdx'],
46607
+ setup: function setup(props) {
46608
+ var _useGroupModel = uses_useGroupModel(),
46609
+ getNormalizedOptions = _useGroupModel.getNormalizedOptions,
46610
+ isExecuteZoom = _useGroupModel.isExecuteZoom,
46611
+ brushSeries = _useGroupModel.brushSeries,
46612
+ evChartGroupRef = _useGroupModel.evChartGroupRef;
46613
+
46614
+ var normalizedOptions = getNormalizedOptions(props.options);
46615
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["provide"])('isExecuteZoom', isExecuteZoom);
46616
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["provide"])('isChartGroup', true);
46617
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["provide"])('brushSeries', brushSeries);
46618
+ var groupSelectedLabel = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
46619
+ return props.groupSelectedLabel;
46620
+ });
46621
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["provide"])('groupSelectedLabel', groupSelectedLabel);
46622
+
46623
+ var _useZoomModel = uses_useZoomModel(normalizedOptions, {
46624
+ wrapper: null,
46625
+ evChartGroupRef: evChartGroupRef
46626
+ }, groupSelectedLabel),
46627
+ evChartZoomOptions = _useZoomModel.evChartZoomOptions,
46628
+ evChartInfo = _useZoomModel.evChartInfo,
46629
+ evChartToolbarRef = _useZoomModel.evChartToolbarRef,
46630
+ evChartClone = _useZoomModel.evChartClone,
46631
+ brushIdx = _useZoomModel.brushIdx,
46632
+ createEvChartZoom = _useZoomModel.createEvChartZoom,
46633
+ setOptionsForUseZoom = _useZoomModel.setOptionsForUseZoom,
46634
+ setDataForUseZoom = _useZoomModel.setDataForUseZoom,
46635
+ controlZoomIdx = _useZoomModel.controlZoomIdx,
46636
+ onClickToolbar = _useZoomModel.onClickToolbar;
46637
+
46638
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["provide"])('evChartClone', evChartClone);
46639
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["provide"])('evChartInfo', evChartInfo);
46640
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["provide"])('brushIdx', brushIdx);
46641
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onMounted"])(function () {
46642
+ createEvChartZoom();
46643
+ });
46644
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
46645
+ return evChartInfo.props.data;
46646
+ }, function (evChartProps) {
46647
+ setDataForUseZoom(evChartProps);
46648
+ }, {
46649
+ deep: true
46650
+ });
46651
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
46652
+ return props.options;
46653
+ }, function (zoomOptions) {
46654
+ var newOpt = getNormalizedOptions(zoomOptions);
46655
+ setOptionsForUseZoom(newOpt);
46656
+ }, {
46657
+ deep: true
46658
+ });
46659
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
46660
+ return [props.zoomStartIdx, props.zoomEndIdx];
46661
+ }, function (_ref) {
46662
+ var _ref2 = _slicedToArray(_ref, 2),
46663
+ zoomStartIdx = _ref2[0],
46664
+ zoomEndIdx = _ref2[1];
46665
+
46666
+ if (brushIdx.isUseButton || brushIdx.isUseScroll) {
46667
+ return;
46668
+ }
46669
+
46670
+ controlZoomIdx(zoomStartIdx, zoomEndIdx);
46671
+ });
46672
+ return {
46673
+ evChartGroupRef: evChartGroupRef,
46674
+ evChartToolbarRef: evChartToolbarRef,
46675
+ zoomOptions: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRef"])(evChartZoomOptions, 'zoom'),
46676
+ onClickToolbar: onClickToolbar
46677
+ };
46678
+ }
46679
+ });
46680
+ // CONCATENATED MODULE: ./src/components/chartGroup/ChartGroup.vue?vue&type=script&lang=js
46681
+
46682
+ // EXTERNAL MODULE: ./src/components/chartGroup/ChartGroup.vue?vue&type=style&index=0&id=bd8c6660&lang=scss&scoped=true
46683
+ var ChartGroupvue_type_style_index_0_id_bd8c6660_lang_scss_scoped_true = __webpack_require__("8352");
46684
+
46685
+ // CONCATENATED MODULE: ./src/components/chartGroup/ChartGroup.vue
46686
+
46687
+
46688
+
46689
+
46690
+
46691
+
46692
+
46693
+ const ChartGroup_exports_ = /*#__PURE__*/exportHelper_default()(ChartGroupvue_type_script_lang_js, [['render',ChartGroupvue_type_template_id_bd8c6660_scoped_true_render],['__scopeId',"data-v-bd8c6660"]])
46694
+
46695
+ /* harmony default export */ var ChartGroup = (ChartGroup_exports_);
46696
+ // CONCATENATED MODULE: ./src/components/chartGroup/index.js
46697
+
46698
+
46699
+
46700
+
46701
+ ChartGroup.install = function (app) {
46702
+ app.component(ChartGroup.name, ChartGroup);
46703
+ app.use(dist_default.a);
46704
+ };
46705
+
46706
+ /* harmony default export */ var chartGroup = (ChartGroup);
46707
+ // 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/chartBrush/ChartBrush.vue?vue&type=template&id=7d0c10ab
46708
+
46709
+ function ChartBrushvue_type_template_id_7d0c10ab_render(_ctx, _cache, $props, $setup, $data, $options) {
46710
+ var _directive_resize = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("resize");
46711
+
46712
+ return $setup.evChartBrushOptions.show ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", {
46713
+ key: 0,
46714
+ ref: "evChartBrushRef",
46715
+ style: $setup.evChartBrushStyle,
46716
+ class: "ev-chart-brush"
46717
+ }, null, 4)), [[_directive_resize, $setup.onResize]]) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
46718
+ }
46719
+ // CONCATENATED MODULE: ./src/components/chartBrush/ChartBrush.vue?vue&type=template&id=7d0c10ab
46720
+
46721
+ // CONCATENATED MODULE: ./src/components/chartBrush/chartBrush.core.js
46722
+
46723
+
46724
+
46725
+
46726
+
46727
+
46728
+ var chartBrush_core_EvChartBrush = /*#__PURE__*/function () {
46729
+ function EvChartBrush(evChart, evChartData, evChartBrushOptions, brushIdx, evChartBrushRef) {
46730
+ _classCallCheck(this, EvChartBrush);
46731
+
46732
+ this.evChart = evChart;
46733
+ this.evChartData = evChartData;
46734
+ this.evChartBrushOptions = evChartBrushOptions;
46735
+ this.evChartBrushRef = evChartBrushRef;
46736
+ this.brushIdx = brushIdx;
46737
+
46738
+ if (evChartBrushOptions.value.useDebounce) {
46739
+ this.debounceBrushIdx = {
46740
+ start: brushIdx.start,
46741
+ end: brushIdx.end
46742
+ };
46743
+ }
46744
+ }
46745
+
46746
+ _createClass(EvChartBrush, [{
46747
+ key: "init",
46748
+ value: function init(isResize) {
46749
+ if (this.brushIdx.start > this.brushIdx.end) {
46750
+ this.initEventState();
46751
+ this.removeBrushCanvas();
46752
+ return;
46753
+ }
46754
+
46755
+ var existedBrushCanvas = this.evChartBrushRef.value.querySelector('.brush-canvas');
46756
+
46757
+ if (!existedBrushCanvas) {
46758
+ var brushCanvas = document.createElement('canvas');
46759
+ brushCanvas.setAttribute('class', 'brush-canvas');
46760
+ brushCanvas.setAttribute('style', 'display: block; z-index: 1;');
46761
+ var evChartBrushContainer = this.evChartBrushRef.value.querySelector('.ev-chart-brush-container');
46762
+
46763
+ if (evChartBrushContainer) {
46764
+ this.brushCanvas = brushCanvas;
46765
+ evChartBrushContainer.appendChild(brushCanvas);
46766
+ this.evChartBrushContainer = evChartBrushContainer;
46767
+ this.drawBrushRect({
46768
+ brushCanvas: brushCanvas
46769
+ });
46770
+ this.addEvent(brushCanvas);
46771
+ }
46772
+ } else {
46773
+ this.drawBrushRect({
46774
+ brushCanvas: existedBrushCanvas,
46775
+ isResize: isResize
46776
+ });
46777
+ }
46778
+ }
46779
+ }, {
46780
+ key: "drawBrushRect",
46781
+ value: function drawBrushRect(_ref) {
46782
+ var _this$debounceBrushId;
46783
+
46784
+ var brushCanvas = _ref.brushCanvas,
46785
+ isResize = _ref.isResize,
46786
+ isDebounce = _ref.isDebounce;
46787
+ var _this$evChart = this.evChart,
46788
+ chartRect = _this$evChart.chartRect,
46789
+ labelOffset = _this$evChart.labelOffset;
46790
+
46791
+ if (!chartRect && !labelOffset) {
46792
+ return;
46793
+ }
46794
+
46795
+ var evChartRange = {
46796
+ x1: chartRect.x1 + labelOffset.left,
46797
+ x2: chartRect.x2 - labelOffset.right,
46798
+ y1: chartRect.y1 + labelOffset.top,
46799
+ y2: chartRect.y2 - labelOffset.bottom
46800
+ };
46801
+ var pixelRatio = window.devicePixelRatio || 1;
46802
+ var brushButtonWidth = 6;
46803
+ var brushCanvasWidth = evChartRange.x2 - evChartRange.x1 + brushButtonWidth;
46804
+ var brushCanvasHeight = evChartRange.y2 - evChartRange.y1;
46805
+ var isEqualWidth = brushCanvas.width === Math.floor(brushCanvasWidth * pixelRatio);
46806
+
46807
+ if (isResize && isEqualWidth) {
46808
+ return;
46809
+ }
46810
+
46811
+ if (!isDebounce && this.debounceBrushIdx) {
46812
+ this.debounceBrushIdx.start = this.brushIdx.start;
46813
+ this.debounceBrushIdx.end = this.brushIdx.end;
46814
+ }
46815
+
46816
+ var brushIdx = (_this$debounceBrushId = this.debounceBrushIdx) !== null && _this$debounceBrushId !== void 0 ? _this$debounceBrushId : this.brushIdx;
46817
+ var labelEndIdx = this.evChartData.value.labels.length - 1;
46818
+
46819
+ if (labelEndIdx >= 0) {
46820
+ this.labelEndIdx = labelEndIdx;
46821
+ var axesXInterval = (evChartRange.x2 - evChartRange.x1) / labelEndIdx;
46822
+ var brushRectX = brushIdx.start * axesXInterval * pixelRatio;
46823
+ var brushRectWidth = (brushCanvasWidth - (labelEndIdx - (brushIdx.end - brushIdx.start)) * axesXInterval) * pixelRatio;
46824
+ var brushRectHeight = this.evChartBrushOptions.value.height - evChartRange.y1;
46825
+ var brushButtonLeftXPos = brushRectX;
46826
+ var brushButtonRightXPos = brushRectX + brushRectWidth;
46827
+
46828
+ if (!brushCanvas.style.position) {
46829
+ brushCanvas.style.position = 'absolute';
46830
+ brushCanvas.style.top = "".concat(evChartRange.y1, "px");
46831
+ brushCanvas.style.left = "".concat(evChartRange.x1 - brushButtonWidth / 2, "px");
46832
+ }
46833
+
46834
+ if (!isEqualWidth) {
46835
+ brushCanvas.width = brushCanvasWidth * pixelRatio;
46836
+ brushCanvas.style.width = "".concat(brushCanvasWidth, "px");
46837
+ brushCanvas.height = brushCanvasHeight * pixelRatio;
46838
+ brushCanvas.style.height = "".concat(brushCanvasHeight, "px");
46839
+ }
46840
+
46841
+ var ctx = brushCanvas.getContext('2d');
46842
+ ctx.clearRect(0, 0, brushCanvasWidth * pixelRatio, brushCanvasHeight * pixelRatio);
46843
+ ctx.fillStyle = this.evChartBrushOptions.value.selection.fillColor;
46844
+ ctx.globalAlpha = this.evChartBrushOptions.value.selection.opacity;
46845
+ ctx.fillRect(brushRectX, 0, brushRectWidth, brushRectHeight);
46846
+ ctx.fillRect(brushButtonLeftXPos, 0, brushButtonWidth, brushRectHeight);
46847
+ ctx.fillRect(brushButtonRightXPos - brushButtonWidth, 0, brushButtonWidth, brushRectHeight);
46848
+ this.evChartBrushPos = {
46849
+ leftX: brushButtonLeftXPos / pixelRatio,
46850
+ rightX: brushButtonRightXPos / pixelRatio,
46851
+ buttonWidth: brushButtonWidth,
46852
+ axesXInterval: axesXInterval
46853
+ };
46854
+ }
46855
+ }
46856
+ }, {
46857
+ key: "addEvent",
46858
+ value: function addEvent() {
46859
+ var _this = this;
46860
+
46861
+ var mousePosition;
46862
+
46863
+ this.onMouseDown = function (e) {
46864
+ e.preventDefault();
46865
+
46866
+ if (mousePosition.isInsideButton) {
46867
+ _this.clickBrushInsideX = -1;
46868
+ } else if (mousePosition.isInsideBrush) {
46869
+ _this.clickBrushInsideX = e.offsetX;
46870
+ } else if (mousePosition.isOutsideBrush) {
46871
+ _this.teleportBrush(e);
46872
+ }
46873
+ };
46874
+
46875
+ var onMouseMove = function onMouseMove(e) {
46876
+ if (_this.clickBrushInsideX) {
46877
+ _this.mouseDownAndMove(e);
46878
+ } else {
46879
+ mousePosition = _this.getMousePosition(e);
46880
+
46881
+ _this.changeCursor(mousePosition);
46882
+ }
46883
+ };
46884
+
46885
+ this.onMouseMove = lodash_es_throttle(onMouseMove, 5);
46886
+
46887
+ this.onWheel = function (e) {
46888
+ e.preventDefault();
46889
+
46890
+ _this.updateBrushIdx(e.deltaY > 0 ? 'movedown' : 'moveup');
46891
+ };
46892
+
46893
+ this.onMouseUp = function () {
46894
+ _this.initEventState();
46895
+ };
46896
+
46897
+ this.onMouseLeave = function () {
46898
+ if (_this.clickBrushInsideX) {
46899
+ _this.initEventState();
46900
+ }
46901
+ };
46902
+
46903
+ var onWheelDebounce = function onWheelDebounce() {
46904
+ _this.initEventState();
46905
+ };
46906
+
46907
+ this.onWheelDebounce = lodash_es_debounce(onWheelDebounce, 100);
46908
+ this.setEventListener('addEventListener');
46909
+ }
46910
+ }, {
46911
+ key: "getMousePosition",
46912
+ value: function getMousePosition(e) {
46913
+ var _this2 = this;
46914
+
46915
+ var calDisToCurMouseX = function calDisToCurMouseX(xPos) {
46916
+ return Math.abs(_this2.evChartBrushPos[xPos] - e.offsetX);
46917
+ };
46918
+
46919
+ var buttonType = calDisToCurMouseX('rightX') > calDisToCurMouseX('leftX') ? 'leftX' : 'rightX';
46920
+ this.curBrushButtonType = buttonType;
46921
+
46922
+ var isMoveRight = function isMoveRight(xPos) {
46923
+ return e.offsetX > _this2.evChartBrushPos[xPos];
46924
+ };
46925
+
46926
+ var isMoveLeft = function isMoveLeft(xPos) {
46927
+ return e.offsetX < _this2.evChartBrushPos[xPos];
46928
+ };
46929
+
46930
+ var isOutsideBrush = isMoveLeft('leftX') || isMoveRight('rightX');
46931
+ var isInsideBrush = isMoveRight('leftX') && isMoveLeft('rightX');
46932
+ var isInsideButton = e.offsetX + this.evChartBrushPos.buttonWidth >= this.evChartBrushPos[buttonType] && e.offsetX - this.evChartBrushPos.buttonWidth <= this.evChartBrushPos[buttonType];
46933
+ return {
46934
+ isInsideButton: isInsideButton,
46935
+ isInsideBrush: isInsideBrush,
46936
+ isOutsideBrush: isOutsideBrush
46937
+ };
46938
+ }
46939
+ }, {
46940
+ key: "destroy",
46941
+ value: function destroy() {
46942
+ if (this.brushCanvas) {
46943
+ this.setEventListener('removeEventListener');
46944
+ this.brushCanvas = null;
46945
+ }
46946
+
46947
+ var evChartBrushContainer = this.evChartBrushContainer;
46948
+
46949
+ while (evChartBrushContainer.hasChildNodes()) {
46950
+ evChartBrushContainer.removeChild(evChartBrushContainer.firstChild);
46951
+ }
46952
+ }
46953
+ /**
46954
+ * @param {string} type eventListener setting type.
46955
+ *
46956
+ * @returns {undefined}
46957
+ */
46958
+
46959
+ }, {
46960
+ key: "setEventListener",
46961
+ value: function setEventListener(type) {
46962
+ this.brushCanvas[type]('mousemove', this.onMouseMove);
46963
+ this.brushCanvas[type]('mousedown', this.onMouseDown);
46964
+ this.brushCanvas[type]('mouseup', this.onMouseUp);
46965
+ this.brushCanvas[type]('mouseleave', this.onMouseLeave);
46966
+ this.brushCanvas[type]('wheel', this.onWheel);
46967
+ this.brushCanvas[type]('wheel', this.onWheelDebounce);
46968
+ }
46969
+ }, {
46970
+ key: "removeBrushWrapper",
46971
+ value: function removeBrushWrapper() {
46972
+ if (this.evChartBrushRef.value) {
46973
+ var evChartBrushWrapper = this.evChartBrushRef.value.querySelector('.ev-chart-brush-wrapper');
46974
+
46975
+ if (evChartBrushWrapper) {
46976
+ this.evChartBrushRef.value.removeChild(evChartBrushWrapper);
46977
+ }
46978
+ }
46979
+ }
46980
+ }, {
46981
+ key: "removeBrushCanvas",
46982
+ value: function removeBrushCanvas() {
46983
+ if (this.evChartBrushContainer) {
46984
+ var brushCanvas = this.evChartBrushContainer.querySelector('.brush-canvas');
46985
+
46986
+ if (brushCanvas) {
46987
+ this.evChartBrushContainer.removeChild(brushCanvas);
46988
+ }
46989
+ }
46990
+ }
46991
+ }, {
46992
+ key: "teleportBrush",
46993
+ value: function teleportBrush(e) {
46994
+ var _this$debounceBrushId2;
46995
+
46996
+ var brushIdx = (_this$debounceBrushId2 = this.debounceBrushIdx) !== null && _this$debounceBrushId2 !== void 0 ? _this$debounceBrushId2 : this.brushIdx;
46997
+ var middle = (brushIdx.end - brushIdx.start) / 2;
46998
+ var left;
46999
+ var right;
47000
+ var clickIdx;
47001
+
47002
+ if (middle > 0.5) {
47003
+ if ((brushIdx.end - brushIdx.start) % 2 === 0) {
47004
+ clickIdx = Math.round(e.offsetX / this.evChartBrushPos.axesXInterval);
47005
+ left = Math.ceil(middle);
47006
+ right = Math.floor(middle);
47007
+ } else {
47008
+ clickIdx = Math.ceil(e.offsetX / this.evChartBrushPos.axesXInterval);
47009
+ left = Math.ceil(middle);
47010
+ right = Math.floor(middle);
47011
+ }
47012
+ } else {
47013
+ clickIdx = Math.floor(e.offsetX / this.evChartBrushPos.axesXInterval);
47014
+
47015
+ if (e.offsetX - clickIdx * this.evChartBrushPos.axesXInterval > this.evChartBrushPos.axesXInterval / 2) {
47016
+ left = Math.floor(middle);
47017
+ right = Math.ceil(middle);
47018
+ } else {
47019
+ left = Math.ceil(middle);
47020
+ right = Math.floor(middle);
47021
+
47022
+ if (middle < 1) {
47023
+ clickIdx += 1;
47024
+ }
47025
+ }
47026
+ }
47027
+
47028
+ if (clickIdx - left <= 0) {
47029
+ brushIdx.start = 0;
47030
+ brushIdx.end = right + left;
47031
+ } else if (clickIdx + right >= this.labelEndIdx) {
47032
+ brushIdx.start = this.labelEndIdx - right - left;
47033
+ brushIdx.end = this.labelEndIdx;
47034
+ } else {
47035
+ brushIdx.start = clickIdx - left;
47036
+ brushIdx.end = clickIdx + right;
47037
+ }
47038
+
47039
+ this.brushIdx.isUseScroll = true;
47040
+ }
47041
+ }, {
47042
+ key: "changeCursor",
47043
+ value: function changeCursor(mousePosition) {
47044
+ if (mousePosition.isOutsideBrush) {
47045
+ this.brushCanvas.style.cursor = 'pointer';
47046
+ } else if (mousePosition.isInsideBrush) {
47047
+ if (mousePosition.isInsideButton) {
47048
+ this.brushCanvas.style.cursor = 'ew-resize';
47049
+ } else {
47050
+ this.brushCanvas.style.cursor = 'grab';
47051
+ }
47052
+ }
47053
+ }
47054
+ }, {
47055
+ key: "mouseDownAndMove",
47056
+ value: function mouseDownAndMove(e) {
47057
+ var moveSensitive = this.evChartBrushPos.axesXInterval / 3;
47058
+ var mode;
47059
+
47060
+ if (e.offsetX > this.beforeMouseXPos) {
47061
+ // 오른쪽 이동
47062
+ if (this.clickBrushInsideX > 0) {
47063
+ if (this.clickBrushInsideX < e.offsetX - moveSensitive) {
47064
+ mode = 'moveup';
47065
+ this.clickBrushInsideX = e.offsetX + moveSensitive;
47066
+ }
47067
+ } else {
47068
+ var isMoveRight = e.offsetX - this.evChartBrushPos[this.curBrushButtonType] > moveSensitive;
47069
+
47070
+ if (isMoveRight) {
47071
+ mode = this.curBrushButtonType === 'leftX' ? 'decrease' : 'increase';
47072
+ }
47073
+ }
47074
+ } else if (e.offsetX < this.beforeMouseXPos) {
47075
+ // 왼쪽 이동
47076
+ if (this.clickBrushInsideX > 0) {
47077
+ if (this.clickBrushInsideX > e.offsetX + moveSensitive) {
47078
+ mode = 'movedown';
47079
+ this.clickBrushInsideX = e.offsetX - moveSensitive;
47080
+ }
47081
+ } else {
47082
+ var isMoveLeft = this.evChartBrushPos[this.curBrushButtonType] - e.offsetX > moveSensitive;
47083
+
47084
+ if (isMoveLeft) {
47085
+ mode = this.curBrushButtonType === 'leftX' ? 'increase' : 'decrease';
47086
+ }
47087
+ }
47088
+ }
47089
+
47090
+ if (mode) {
47091
+ this.updateBrushIdx(mode);
47092
+ }
47093
+
47094
+ this.beforeMouseXPos = e.offsetX;
47095
+ }
47096
+ /**
47097
+ * @param {string} mode determines how to update the brush index value.
47098
+ *
47099
+ * @returns {undefined}
47100
+ */
47101
+
47102
+ }, {
47103
+ key: "updateBrushIdx",
47104
+ value: function updateBrushIdx(mode) {
47105
+ var _this$debounceBrushId3;
47106
+
47107
+ var brushIdx = (_this$debounceBrushId3 = this.debounceBrushIdx) !== null && _this$debounceBrushId3 !== void 0 ? _this$debounceBrushId3 : this.brushIdx;
47108
+
47109
+ switch (mode) {
47110
+ case 'moveup':
47111
+ if (brushIdx.end === this.labelEndIdx) {
47112
+ return;
47113
+ }
47114
+
47115
+ brushIdx.start += 1;
47116
+ brushIdx.end += 1;
47117
+ this.brushIdx.isUseScroll = true;
47118
+ break;
47119
+
47120
+ case 'movedown':
47121
+ if (!brushIdx.start) {
47122
+ return;
47123
+ }
47124
+
47125
+ brushIdx.start -= 1;
47126
+ brushIdx.end -= 1;
47127
+ this.brushIdx.isUseScroll = true;
47128
+ break;
47129
+
47130
+ case 'increase':
47131
+ if (this.curBrushButtonType === 'leftX') {
47132
+ if (!brushIdx.start) {
47133
+ return;
47134
+ }
47135
+
47136
+ brushIdx.start -= 1;
47137
+ } else {
47138
+ if (brushIdx.end === this.labelEndIdx) {
47139
+ return;
47140
+ }
47141
+
47142
+ brushIdx.end += 1;
47143
+ }
47144
+
47145
+ this.brushIdx.isUseButton = true;
47146
+ break;
47147
+
47148
+ case 'decrease':
47149
+ if (brushIdx.start === brushIdx.end - 1) {
47150
+ return;
47151
+ }
47152
+
47153
+ if (this.curBrushButtonType === 'leftX') {
47154
+ brushIdx.start += 1;
47155
+ } else {
47156
+ brushIdx.end -= 1;
47157
+ }
47158
+
47159
+ this.brushIdx.isUseButton = true;
47160
+ break;
47161
+
47162
+ default:
47163
+ break;
47164
+ }
47165
+
47166
+ if (mode && this.debounceBrushIdx) {
47167
+ this.drawBrushRect({
47168
+ brushCanvas: this.brushCanvas,
47169
+ isResize: false,
47170
+ isDebounce: true
47171
+ });
47172
+ }
47173
+ }
47174
+ /**
47175
+ * @param {boolean} isUpdateBrushIdx to initialize state after update brush index value
47176
+ *
47177
+ * @returns {undefined}
47178
+ */
47179
+
47180
+ }, {
47181
+ key: "initEventState",
47182
+ value: function initEventState() {
47183
+ var _this3 = this;
47184
+
47185
+ var promise = new Promise(function (resolve) {
47186
+ if (_this3.debounceBrushIdx && (_this3.brushIdx.isUseButton || _this3.brushIdx.isUseScroll)) {
47187
+ _this3.brushIdx.start = _this3.debounceBrushIdx.start;
47188
+ _this3.brushIdx.end = _this3.debounceBrushIdx.end;
47189
+ }
47190
+
47191
+ resolve(true);
47192
+ });
47193
+ promise.then(function (isUpdateBrushIdx) {
47194
+ if (isUpdateBrushIdx) {
47195
+ _this3.clickBrushInsideX = null;
47196
+ _this3.beforeMouseXPos = null;
47197
+ _this3.curBrushButtonType = null;
47198
+ _this3.brushIdx.isUseButton = false;
47199
+ _this3.brushIdx.isUseScroll = false;
47200
+ }
47201
+ });
47202
+ }
47203
+ }]);
47204
+
47205
+ return EvChartBrush;
47206
+ }();
47207
+
47208
+
47209
+ // CONCATENATED MODULE: ./src/components/chartBrush/uses.js
47210
+
47211
+ var chartBrush_uses_DEFAULT_OPTIONS = {
47212
+ show: true,
47213
+ useDebounce: true,
47214
+ chartIdx: 0,
47215
+ height: 100,
47216
+ showLabel: false,
47217
+ selection: {
47218
+ fillColor: '#38ACEC',
47219
+ opacity: 0.65
47220
+ }
47221
+ }; // eslint-disable-next-line import/prefer-default-export
47222
+
47223
+ var uses_useBrushModel = function useBrushModel() {
47224
+ var getNormalizedBrushOptions = function getNormalizedBrushOptions(options) {
47225
+ return lodash_es_defaultsDeep({}, options, chartBrush_uses_DEFAULT_OPTIONS);
47226
+ };
47227
+
47228
+ return {
47229
+ getNormalizedBrushOptions: getNormalizedBrushOptions
47230
+ };
47231
+ };
47232
+ // 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/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/chartBrush/ChartBrush.vue?vue&type=script&lang=js
47233
+
47234
+
47235
+
47236
+
47237
+
47238
+
47239
+
47240
+
47241
+
47242
+
47243
+
47244
+
47245
+
47246
+
47247
+ /* harmony default export */ var ChartBrushvue_type_script_lang_js = ({
47248
+ name: 'EvChartBrush',
47249
+ props: {
47250
+ options: {
47251
+ type: Object,
47252
+ default: function _default() {
47253
+ return {};
47254
+ }
47255
+ }
47256
+ },
47257
+ setup: function setup(props) {
47258
+ var evChart = null;
47259
+ var evChartBrush = null;
47260
+ var injectEvChartClone = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["inject"])('evChartClone', {
47261
+ data: []
47262
+ });
47263
+ var injectEvChartInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["inject"])('evChartInfo', {
47264
+ props: {
47265
+ options: []
47266
+ }
47267
+ });
47268
+ var injectBrushIdx = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["inject"])('brushIdx', {
47269
+ start: 0,
47270
+ end: -1,
47271
+ isUseButton: false,
47272
+ isUseScroll: false
47273
+ });
47274
+ var injectBrushSeries = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["inject"])('brushSeries', {
47275
+ list: [],
47276
+ chartIdx: null
47277
+ });
47278
+
47279
+ var _useBrushModel = uses_useBrushModel(),
47280
+ getNormalizedBrushOptions = _useBrushModel.getNormalizedBrushOptions;
47281
+
47282
+ var evChartBrushOptions = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
47283
+ return getNormalizedBrushOptions(props.options);
47284
+ });
47285
+
47286
+ var _useModel = chart_uses_useModel(),
47287
+ eventListeners = _useModel.eventListeners,
47288
+ selectItemInfo = _useModel.selectItemInfo,
47289
+ selectLabelInfo = _useModel.selectLabelInfo,
47290
+ selectSeriesInfo = _useModel.selectSeriesInfo,
47291
+ getNormalizedData = _useModel.getNormalizedData,
47292
+ getNormalizedOptions = _useModel.getNormalizedOptions;
47293
+
47294
+ var evChartData = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
47295
+ var _injectEvChartClone$d;
47296
+
47297
+ return getNormalizedData(((_injectEvChartClone$d = injectEvChartClone.data) !== null && _injectEvChartClone$d !== void 0 ? _injectEvChartClone$d : [])[evChartBrushOptions.value.chartIdx]);
47298
+ });
47299
+ var evChartOption = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
47300
+ var _chartOption$axesX, _chartOption$axesY;
47301
+
47302
+ var chartOption = injectEvChartInfo.props.options[evChartBrushOptions.value.chartIdx];
47303
+
47304
+ var option = _objectSpread2(_objectSpread2({}, chartOption), {}, {
47305
+ brush: _objectSpread2({
47306
+ use: true
47307
+ }, evChartBrushOptions.value),
47308
+ height: evChartBrushOptions.value.height,
47309
+ zoom: {
47310
+ use: false
47311
+ },
47312
+ dragSelection: {
47313
+ use: false
47314
+ },
47315
+ title: {
47316
+ show: false
47317
+ },
47318
+ tooltip: {
47319
+ use: false
47320
+ },
47321
+ legend: {
47322
+ show: false
47323
+ },
47324
+ selectLabel: {
47325
+ use: false
47326
+ },
47327
+ selectSeries: {
47328
+ use: false
47329
+ },
47330
+ axesX: [_objectSpread2(_objectSpread2({}, chartOption === null || chartOption === void 0 ? void 0 : (_chartOption$axesX = chartOption.axesX) === null || _chartOption$axesX === void 0 ? void 0 : _chartOption$axesX[0]), {}, {
47331
+ title: {
47332
+ use: false
47333
+ }
47334
+ })],
47335
+ axesY: [_objectSpread2(_objectSpread2({}, chartOption === null || chartOption === void 0 ? void 0 : (_chartOption$axesY = chartOption.axesY) === null || _chartOption$axesY === void 0 ? void 0 : _chartOption$axesY[0]), {}, {
47336
+ title: {
47337
+ use: false
47338
+ }
47339
+ })]
47340
+ });
47341
+
47342
+ return getNormalizedOptions(option);
47343
+ });
47344
+
47345
+ var _useWrapper = uses_useWrapper(evChartOption.value),
47346
+ evChartBrushRef = _useWrapper.wrapper,
47347
+ evChartBrushStyle = _useWrapper.wrapperStyle;
47348
+
47349
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
47350
+ return injectBrushSeries.list;
47351
+ }, function () {
47352
+ if (evChartBrushRef.value && injectBrushSeries.chartIdx === evChartBrushOptions.value.chartIdx) {
47353
+ evChart.seriesList = injectBrushSeries.list[evChartBrushOptions.value.chartIdx];
47354
+ evChart.update({
47355
+ updateSeries: false,
47356
+ updateSelTip: {
47357
+ update: false,
47358
+ keepDomain: false
47359
+ }
47360
+ });
47361
+ }
47362
+ });
47363
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(evChartOption, function (newOpt, prevOpt) {
47364
+ var _injectEvChartClone$d2;
47365
+
47366
+ if (newOpt.brush.chartIdx <= ((_injectEvChartClone$d2 = injectEvChartClone.data) === null || _injectEvChartClone$d2 === void 0 ? void 0 : _injectEvChartClone$d2.length) - 1) {
47367
+ if (evChartBrush && !lodash_es_isEqual(prevOpt.brush, newOpt.brush)) {
47368
+ evChartBrush.removeBrushWrapper();
47369
+ } else if (evChart && !lodash_es_isEqual(newOpt, prevOpt)) {
47370
+ evChart.options = lodash_es_cloneDeep(newOpt);
47371
+ evChart.update({
47372
+ updateSeries: false,
47373
+ updateSelTip: {
47374
+ update: false,
47375
+ keepDomain: false
47376
+ }
47377
+ });
47378
+ }
47379
+ } else {
47380
+ evChart.data = lodash_es_cloneDeep(evChartData.value);
47381
+ evChart.update({
47382
+ updateSeries: true,
47383
+ updateSelTip: {
47384
+ update: false,
47385
+ keepDomain: false
47386
+ },
47387
+ updateData: false
47388
+ });
47389
+ evChartBrush.removeBrushCanvas();
47390
+ }
47391
+ });
47392
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
47393
+ return injectEvChartClone.data;
47394
+ }, function (newData) {
47395
+ if (evChart) {
47396
+ var data = newData[evChartBrushOptions.value.chartIdx];
47397
+
47398
+ if (data) {
47399
+ var isUpdateSeries = !lodash_es_isEqual(data.series, evChart.data.series);
47400
+ var seriesList = injectBrushSeries.list[evChartBrushOptions.value.chartIdx];
47401
+
47402
+ if (seriesList) {
47403
+ Object.keys(data.series).forEach(function (series) {
47404
+ data.series[series].show = seriesList[series].show;
47405
+ });
47406
+ }
47407
+
47408
+ evChart.data = lodash_es_cloneDeep(data);
47409
+ evChart.update({
47410
+ updateSeries: isUpdateSeries,
47411
+ updateSelTip: {
47412
+ update: false,
47413
+ keepDomain: false
47414
+ },
47415
+ updateData: false
47416
+ });
47417
+ }
47418
+ }
47419
+ });
47420
+
47421
+ var createChart = function createChart() {
47422
+ var selected;
47423
+
47424
+ if (evChartOption.value.selectLabel.use) {
47425
+ selected = selectLabelInfo;
47426
+ } else if (evChartOption.value.selectSeries.use) {
47427
+ selected = selectSeriesInfo;
47428
+ }
47429
+
47430
+ evChart = new chart_core(evChartBrushRef.value, evChartData.value, evChartOption.value, eventListeners, selectItemInfo, selected);
47431
+ };
47432
+
47433
+ var createChartBrush = function createChartBrush() {
47434
+ evChartBrush = new chartBrush_core_EvChartBrush(evChart, evChartData, evChartBrushOptions, injectBrushIdx, evChartBrushRef);
47435
+ };
47436
+
47437
+ var drawChart = function drawChart() {
47438
+ if (evChart) {
47439
+ evChart.init();
47440
+ }
47441
+ };
47442
+
47443
+ var drawChartBrush = function drawChartBrush(isResize) {
47444
+ if (evChartBrush) {
47445
+ evChartBrush.init(isResize);
47446
+ }
47447
+ };
47448
+
47449
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
47450
+ return [injectBrushIdx.start, injectBrushIdx.end];
47451
+ }, function () {
47452
+ var _injectEvChartClone$d3;
47453
+
47454
+ if (evChartBrushRef.value && evChartBrushOptions.value.chartIdx <= ((_injectEvChartClone$d3 = injectEvChartClone.data) === null || _injectEvChartClone$d3 === void 0 ? void 0 : _injectEvChartClone$d3.length) - 1) {
47455
+ drawChartBrush();
47456
+ }
47457
+ });
47458
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onMounted"])( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
47459
+ return regeneratorRuntime.wrap(function _callee$(_context) {
47460
+ while (1) {
47461
+ switch (_context.prev = _context.next) {
47462
+ case 0:
47463
+ if (!evChartBrushOptions.value.show) {
47464
+ _context.next = 7;
47465
+ break;
47466
+ }
47467
+
47468
+ _context.next = 3;
47469
+ return createChart();
47470
+
47471
+ case 3:
47472
+ _context.next = 5;
47473
+ return drawChart();
47474
+
47475
+ case 5:
47476
+ createChartBrush();
47477
+ drawChartBrush();
47478
+
47479
+ case 7:
47480
+ case "end":
47481
+ return _context.stop();
47482
+ }
47483
+ }
47484
+ }, _callee);
47485
+ })));
47486
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onUpdated"])( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
47487
+ var _injectEvChartClone$d4, seriesList;
47488
+
47489
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
47490
+ while (1) {
47491
+ switch (_context2.prev = _context2.next) {
47492
+ case 0:
47493
+ if (!evChartBrushOptions.value.show) {
47494
+ _context2.next = 10;
47495
+ break;
47496
+ }
47497
+
47498
+ if (!(evChartBrushOptions.value.chartIdx <= ((_injectEvChartClone$d4 = injectEvChartClone.data) === null || _injectEvChartClone$d4 === void 0 ? void 0 : _injectEvChartClone$d4.length) - 1)) {
47499
+ _context2.next = 10;
47500
+ break;
47501
+ }
47502
+
47503
+ seriesList = injectBrushSeries.list[evChartBrushOptions.value.chartIdx];
47504
+
47505
+ if (seriesList) {
47506
+ Object.keys(evChartData.value.series).forEach(function (series) {
47507
+ evChartData.value.series[series].show = seriesList[series].show;
47508
+ });
47509
+ }
47510
+
47511
+ _context2.next = 6;
47512
+ return createChart();
47513
+
47514
+ case 6:
47515
+ _context2.next = 8;
47516
+ return drawChart();
47517
+
47518
+ case 8:
47519
+ createChartBrush();
47520
+ drawChartBrush();
47521
+
47522
+ case 10:
47523
+ case "end":
47524
+ return _context2.stop();
47525
+ }
47526
+ }
47527
+ }, _callee2);
47528
+ })));
47529
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onBeforeUnmount"])(function () {
47530
+ if (evChart && 'destroy' in evChart) {
47531
+ evChart.destroy();
47532
+ }
47533
+
47534
+ if (evChartBrush) {
47535
+ evChartBrush.destroy();
47536
+ }
47537
+ });
47538
+ Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onDeactivated"])(function () {
47539
+ if (evChart && 'hideTooltip' in evChart) {
47540
+ evChart.hideTooltip();
47541
+ }
47542
+ });
47543
+ /**
47544
+ * @param {boolean} isResizeDone resizing complete status
47545
+ *
47546
+ * @returns {undefined}
47547
+ */
47548
+
47549
+ var onResize = lodash_es_debounce(function () {
47550
+ if (evChart && 'resize' in evChart) {
47551
+ var resize = new Promise(function (resolve) {
47552
+ return evChart.resize(resolve);
47553
+ });
47554
+ resize.then(function (isResizeDone) {
47555
+ if (isResizeDone) {
47556
+ drawChartBrush(isResizeDone);
47557
+ }
47558
+ });
47559
+ }
47560
+ }, 0);
47561
+ return {
47562
+ evChartBrushOptions: evChartBrushOptions,
47563
+ evChartBrushRef: evChartBrushRef,
47564
+ evChartBrushStyle: evChartBrushStyle,
47565
+ onResize: onResize
47566
+ };
47567
+ }
47568
+ });
47569
+ // CONCATENATED MODULE: ./src/components/chartBrush/ChartBrush.vue?vue&type=script&lang=js
47570
+
47571
+ // CONCATENATED MODULE: ./src/components/chartBrush/ChartBrush.vue
47572
+
47573
+
47574
+
47575
+
47576
+
47577
+ const ChartBrush_exports_ = /*#__PURE__*/exportHelper_default()(ChartBrushvue_type_script_lang_js, [['render',ChartBrushvue_type_template_id_7d0c10ab_render]])
47578
+
47579
+ /* harmony default export */ var ChartBrush = (ChartBrush_exports_);
47580
+ // CONCATENATED MODULE: ./src/components/chartBrush/index.js
47581
+
47582
+
47583
+
47584
+
47585
+ ChartBrush.install = function (app) {
47586
+ app.component(ChartBrush.name, ChartBrush);
47587
+ app.use(dist_default.a);
47588
+ };
47589
+
47590
+ /* harmony default export */ var chartBrush = (ChartBrush);
45318
47591
  // 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/treeGrid/TreeGrid.vue?vue&type=template&id=99e6d310&scoped=true
45319
47592
 
45320
47593
 
@@ -47735,22 +50008,27 @@ function Paginationvue_type_template_id_541b906a_render(_ctx, _cache, $props, $s
47735
50008
  }
47736
50009
  // CONCATENATED MODULE: ./src/components/pagination/Pagination.vue?vue&type=template&id=541b906a
47737
50010
 
47738
- // 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/pagination/pageButton.vue?vue&type=template&id=dcd27724
50011
+ // 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/pagination/pageButton.vue?vue&type=template&id=530eda26
47739
50012
 
47740
50013
 
47741
- function pageButtonvue_type_template_id_dcd27724_render(_ctx, _cache, $props, $setup, $data, $options) {
50014
+ function pageButtonvue_type_template_id_530eda26_render(_ctx, _cache, $props, $setup, $data, $options) {
47742
50015
  return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", Object(external_commonjs_vue_commonjs2_vue_root_Vue_["mergeProps"])({
47743
50016
  class: _defineProperty({
47744
50017
  'is-current': $props.page.isCurrent,
47745
50018
  'is-disabled': $props.disabled || $props.page.disabled
47746
50019
  }, $props.page.class, true)
47747
50020
  }, _ctx.$attrs, {
47748
- "aria-current": $props.page.isCurrent
50021
+ "aria-current": $props.page.isCurrent,
50022
+ onClick: _cache[1] || (_cache[1] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withModifiers"])(function () {
50023
+ var _$props$page;
50024
+
50025
+ return $props.page.click && (_$props$page = $props.page).click.apply(_$props$page, arguments);
50026
+ }, ["stop"]))
47749
50027
  }), [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default", {}, function () {
47750
50028
  return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])($props.page.number), 1)];
47751
50029
  })], 16, ["aria-current"]);
47752
50030
  }
47753
- // CONCATENATED MODULE: ./src/components/pagination/pageButton.vue?vue&type=template&id=dcd27724
50031
+ // CONCATENATED MODULE: ./src/components/pagination/pageButton.vue?vue&type=template&id=530eda26
47754
50032
 
47755
50033
  // 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/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/pagination/pageButton.vue?vue&type=script&lang=js
47756
50034
  /* harmony default export */ var pageButtonvue_type_script_lang_js = ({
@@ -47774,7 +50052,7 @@ function pageButtonvue_type_template_id_dcd27724_render(_ctx, _cache, $props, $s
47774
50052
 
47775
50053
 
47776
50054
 
47777
- const pageButton_exports_ = /*#__PURE__*/exportHelper_default()(pageButtonvue_type_script_lang_js, [['render',pageButtonvue_type_template_id_dcd27724_render]])
50055
+ const pageButton_exports_ = /*#__PURE__*/exportHelper_default()(pageButtonvue_type_script_lang_js, [['render',pageButtonvue_type_template_id_530eda26_render]])
47778
50056
 
47779
50057
  /* harmony default export */ var pageButton = (pageButton_exports_);
47780
50058
  // 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/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/pagination/Pagination.vue?vue&type=script&lang=js
@@ -48018,7 +50296,9 @@ var package_0 = __webpack_require__("9224");
48018
50296
 
48019
50297
 
48020
50298
 
48021
- var components = [tabs, tabPanel, components_button, buttonGroup, components_checkbox, checkboxGroup, components_radio, radioGroup, components_select, toggle, textField, inputNumber, components_slider, components_icon, calendar, components_datePicker, scheduler, components_contextMenu, components_window, loading, progress, components_menu, tree, timePicker, grid, chart, components_message, components_notification, components_messageBox, treeGrid, pagination];
50299
+
50300
+
50301
+ var components = [tabs, tabPanel, components_button, buttonGroup, components_checkbox, checkboxGroup, components_radio, radioGroup, components_select, toggle, textField, inputNumber, components_slider, components_icon, calendar, components_datePicker, scheduler, components_contextMenu, components_window, loading, progress, components_menu, tree, timePicker, grid, chart, chartGroup, chartBrush, components_message, components_notification, components_messageBox, treeGrid, pagination];
48022
50302
 
48023
50303
  var install = function install(app) {
48024
50304
  if (!app) {