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.common.js
CHANGED
|
@@ -11227,7 +11227,7 @@ var update = add("9519e5b6", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
11227
11227
|
/***/ "9224":
|
|
11228
11228
|
/***/ (function(module) {
|
|
11229
11229
|
|
|
11230
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11230
|
+
module.exports = JSON.parse("{\"a\":\"3.4.144\"}");
|
|
11231
11231
|
|
|
11232
11232
|
/***/ }),
|
|
11233
11233
|
|
|
@@ -48385,8 +48385,16 @@ var plugins_legend_modules = {
|
|
|
48385
48385
|
|
|
48386
48386
|
this.setLegendColumnHeader();
|
|
48387
48387
|
} else if (this.options.legend.virtualScroll) {
|
|
48388
|
-
|
|
48389
|
-
|
|
48388
|
+
var _this$legendDOM, _this$legendDOM$style;
|
|
48389
|
+
|
|
48390
|
+
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';
|
|
48391
|
+
|
|
48392
|
+
if (isHidden) {
|
|
48393
|
+
this.legendNeedsUpdate = true;
|
|
48394
|
+
} else {
|
|
48395
|
+
this.updateVisibleRowCount();
|
|
48396
|
+
this.renderVisibleLegends();
|
|
48397
|
+
}
|
|
48390
48398
|
} else {
|
|
48391
48399
|
while (legendBoxDOM.hasChildNodes()) {
|
|
48392
48400
|
legendBoxDOM.removeChild(legendBoxDOM.firstChild);
|
|
@@ -48632,12 +48640,12 @@ var plugins_legend_modules = {
|
|
|
48632
48640
|
* @returns {undefined}
|
|
48633
48641
|
*/
|
|
48634
48642
|
setLegendPosition: function setLegendPosition() {
|
|
48635
|
-
var _opt$legend, _this$wrapperDOM, _this$
|
|
48643
|
+
var _opt$legend, _this$wrapperDOM, _this$legendDOM2, _this$legendBoxDOM3, _this$resizeDOM, _opt$title, _opt$title2, _opt$legend2, _opt$legend$padding, _opt$legend3;
|
|
48636
48644
|
|
|
48637
48645
|
var opt = this.options;
|
|
48638
48646
|
var position = opt === null || opt === void 0 ? void 0 : (_opt$legend = opt.legend) === null || _opt$legend === void 0 ? void 0 : _opt$legend.position;
|
|
48639
48647
|
var wrapperStyle = (_this$wrapperDOM = this.wrapperDOM) === null || _this$wrapperDOM === void 0 ? void 0 : _this$wrapperDOM.style;
|
|
48640
|
-
var legendStyle = (_this$
|
|
48648
|
+
var legendStyle = (_this$legendDOM2 = this.legendDOM) === null || _this$legendDOM2 === void 0 ? void 0 : _this$legendDOM2.style;
|
|
48641
48649
|
var boxStyle = (_this$legendBoxDOM3 = this.legendBoxDOM) === null || _this$legendBoxDOM3 === void 0 ? void 0 : _this$legendBoxDOM3.style;
|
|
48642
48650
|
var resizeStyle = (_this$resizeDOM = this.resizeDOM) === null || _this$resizeDOM === void 0 ? void 0 : _this$resizeDOM.style;
|
|
48643
48651
|
var chartRect;
|
|
@@ -48959,6 +48967,12 @@ var plugins_legend_modules = {
|
|
|
48959
48967
|
if (this.legendDOM) {
|
|
48960
48968
|
this.legendDOM.style.display = 'block';
|
|
48961
48969
|
}
|
|
48970
|
+
|
|
48971
|
+
if (this.legendNeedsUpdate && this.options.legend.virtualScroll && !this.useTable) {
|
|
48972
|
+
this.legendNeedsUpdate = false;
|
|
48973
|
+
this.updateVisibleRowCount();
|
|
48974
|
+
this.renderVisibleLegends();
|
|
48975
|
+
}
|
|
48962
48976
|
},
|
|
48963
48977
|
|
|
48964
48978
|
/**
|
|
@@ -48967,12 +48981,12 @@ var plugins_legend_modules = {
|
|
|
48967
48981
|
* @returns {undefined}
|
|
48968
48982
|
*/
|
|
48969
48983
|
hideLegend: function hideLegend() {
|
|
48970
|
-
var _this$wrapperDOM2, _this$resizeDOM2, _this$
|
|
48984
|
+
var _this$wrapperDOM2, _this$resizeDOM2, _this$legendDOM3, _opt$title3, _opt$title4;
|
|
48971
48985
|
|
|
48972
48986
|
var opt = this.options;
|
|
48973
48987
|
var wrapperStyle = (_this$wrapperDOM2 = this.wrapperDOM) === null || _this$wrapperDOM2 === void 0 ? void 0 : _this$wrapperDOM2.style;
|
|
48974
48988
|
var resizeStyle = (_this$resizeDOM2 = this.resizeDOM) === null || _this$resizeDOM2 === void 0 ? void 0 : _this$resizeDOM2.style;
|
|
48975
|
-
var legendStyle = (_this$
|
|
48989
|
+
var legendStyle = (_this$legendDOM3 = this.legendDOM) === null || _this$legendDOM3 === void 0 ? void 0 : _this$legendDOM3.style;
|
|
48976
48990
|
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;
|
|
48977
48991
|
|
|
48978
48992
|
if (!legendStyle || !wrapperStyle) {
|