evui 3.4.143 → 3.4.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/evui.common.js +21 -7
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +21 -7
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/plugins/plugins.legend.js +13 -2
package/dist/evui.umd.js
CHANGED
|
@@ -11236,7 +11236,7 @@ var update = add("9519e5b6", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
11236
11236
|
/***/ "9224":
|
|
11237
11237
|
/***/ (function(module) {
|
|
11238
11238
|
|
|
11239
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11239
|
+
module.exports = JSON.parse("{\"a\":\"3.4.144\"}");
|
|
11240
11240
|
|
|
11241
11241
|
/***/ }),
|
|
11242
11242
|
|
|
@@ -48394,8 +48394,16 @@ var plugins_legend_modules = {
|
|
|
48394
48394
|
|
|
48395
48395
|
this.setLegendColumnHeader();
|
|
48396
48396
|
} else if (this.options.legend.virtualScroll) {
|
|
48397
|
-
|
|
48398
|
-
|
|
48397
|
+
var _this$legendDOM, _this$legendDOM$style;
|
|
48398
|
+
|
|
48399
|
+
var isHidden = ((_this$legendDOM = this.legendDOM) === null || _this$legendDOM === void 0 ? void 0 : (_this$legendDOM$style = _this$legendDOM.style) === null || _this$legendDOM$style === void 0 ? void 0 : _this$legendDOM$style.display) === 'none';
|
|
48400
|
+
|
|
48401
|
+
if (isHidden) {
|
|
48402
|
+
this.legendNeedsUpdate = true;
|
|
48403
|
+
} else {
|
|
48404
|
+
this.updateVisibleRowCount();
|
|
48405
|
+
this.renderVisibleLegends();
|
|
48406
|
+
}
|
|
48399
48407
|
} else {
|
|
48400
48408
|
while (legendBoxDOM.hasChildNodes()) {
|
|
48401
48409
|
legendBoxDOM.removeChild(legendBoxDOM.firstChild);
|
|
@@ -48641,12 +48649,12 @@ var plugins_legend_modules = {
|
|
|
48641
48649
|
* @returns {undefined}
|
|
48642
48650
|
*/
|
|
48643
48651
|
setLegendPosition: function setLegendPosition() {
|
|
48644
|
-
var _opt$legend, _this$wrapperDOM, _this$
|
|
48652
|
+
var _opt$legend, _this$wrapperDOM, _this$legendDOM2, _this$legendBoxDOM3, _this$resizeDOM, _opt$title, _opt$title2, _opt$legend2, _opt$legend$padding, _opt$legend3;
|
|
48645
48653
|
|
|
48646
48654
|
var opt = this.options;
|
|
48647
48655
|
var position = opt === null || opt === void 0 ? void 0 : (_opt$legend = opt.legend) === null || _opt$legend === void 0 ? void 0 : _opt$legend.position;
|
|
48648
48656
|
var wrapperStyle = (_this$wrapperDOM = this.wrapperDOM) === null || _this$wrapperDOM === void 0 ? void 0 : _this$wrapperDOM.style;
|
|
48649
|
-
var legendStyle = (_this$
|
|
48657
|
+
var legendStyle = (_this$legendDOM2 = this.legendDOM) === null || _this$legendDOM2 === void 0 ? void 0 : _this$legendDOM2.style;
|
|
48650
48658
|
var boxStyle = (_this$legendBoxDOM3 = this.legendBoxDOM) === null || _this$legendBoxDOM3 === void 0 ? void 0 : _this$legendBoxDOM3.style;
|
|
48651
48659
|
var resizeStyle = (_this$resizeDOM = this.resizeDOM) === null || _this$resizeDOM === void 0 ? void 0 : _this$resizeDOM.style;
|
|
48652
48660
|
var chartRect;
|
|
@@ -48968,6 +48976,12 @@ var plugins_legend_modules = {
|
|
|
48968
48976
|
if (this.legendDOM) {
|
|
48969
48977
|
this.legendDOM.style.display = 'block';
|
|
48970
48978
|
}
|
|
48979
|
+
|
|
48980
|
+
if (this.legendNeedsUpdate && this.options.legend.virtualScroll && !this.useTable) {
|
|
48981
|
+
this.legendNeedsUpdate = false;
|
|
48982
|
+
this.updateVisibleRowCount();
|
|
48983
|
+
this.renderVisibleLegends();
|
|
48984
|
+
}
|
|
48971
48985
|
},
|
|
48972
48986
|
|
|
48973
48987
|
/**
|
|
@@ -48976,12 +48990,12 @@ var plugins_legend_modules = {
|
|
|
48976
48990
|
* @returns {undefined}
|
|
48977
48991
|
*/
|
|
48978
48992
|
hideLegend: function hideLegend() {
|
|
48979
|
-
var _this$wrapperDOM2, _this$resizeDOM2, _this$
|
|
48993
|
+
var _this$wrapperDOM2, _this$resizeDOM2, _this$legendDOM3, _opt$title3, _opt$title4;
|
|
48980
48994
|
|
|
48981
48995
|
var opt = this.options;
|
|
48982
48996
|
var wrapperStyle = (_this$wrapperDOM2 = this.wrapperDOM) === null || _this$wrapperDOM2 === void 0 ? void 0 : _this$wrapperDOM2.style;
|
|
48983
48997
|
var resizeStyle = (_this$resizeDOM2 = this.resizeDOM) === null || _this$resizeDOM2 === void 0 ? void 0 : _this$resizeDOM2.style;
|
|
48984
|
-
var legendStyle = (_this$
|
|
48998
|
+
var legendStyle = (_this$legendDOM3 = this.legendDOM) === null || _this$legendDOM3 === void 0 ? void 0 : _this$legendDOM3.style;
|
|
48985
48999
|
var title = opt !== null && opt !== void 0 && (_opt$title3 = opt.title) !== null && _opt$title3 !== void 0 && _opt$title3.show ? opt === null || opt === void 0 ? void 0 : (_opt$title4 = opt.title) === null || _opt$title4 === void 0 ? void 0 : _opt$title4.height : 0;
|
|
48986
49000
|
|
|
48987
49001
|
if (!legendStyle || !wrapperStyle) {
|