evui 3.4.143 → 3.4.145
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 +83 -21
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +83 -21
- 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/element/element.heatmap.js +50 -11
- 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.145\"}");
|
|
11231
11231
|
|
|
11232
11232
|
/***/ }),
|
|
11233
11233
|
|
|
@@ -44467,31 +44467,77 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
44467
44467
|
ctx.restore();
|
|
44468
44468
|
}
|
|
44469
44469
|
/**
|
|
44470
|
-
*
|
|
44471
|
-
* @param {object} params
|
|
44472
|
-
*
|
|
44473
|
-
* @
|
|
44470
|
+
* 자바스크립트 부동 소수점 오차 때문에 범위를 조정
|
|
44471
|
+
* @param {object} params - range information
|
|
44472
|
+
* @param {number} params.xp - start x position
|
|
44473
|
+
* @param {number} params.yp - start y position
|
|
44474
|
+
* @param {number} params.width - width
|
|
44475
|
+
* @param {number} params.height - height
|
|
44476
|
+
* @returns {object} adjusted range
|
|
44474
44477
|
*/
|
|
44475
44478
|
|
|
44476
44479
|
}, {
|
|
44477
|
-
key: "
|
|
44478
|
-
value: function
|
|
44479
|
-
var
|
|
44480
|
-
|
|
44480
|
+
key: "getAdjustedBounds",
|
|
44481
|
+
value: function getAdjustedBounds(_ref3) {
|
|
44482
|
+
var xp = _ref3.xp,
|
|
44483
|
+
yp = _ref3.yp,
|
|
44481
44484
|
width = _ref3.width,
|
|
44482
44485
|
height = _ref3.height;
|
|
44486
|
+
var PRECISION = 100;
|
|
44487
|
+
var adjustedWidth = Math.max(0, width);
|
|
44488
|
+
var adjustedHeight = Math.max(0, height);
|
|
44489
|
+
return {
|
|
44490
|
+
xsp: Math.floor(xp * PRECISION) / PRECISION,
|
|
44491
|
+
xep: Math.ceil((xp + adjustedWidth) * PRECISION) / PRECISION,
|
|
44492
|
+
ysp: Math.floor(yp * PRECISION) / PRECISION,
|
|
44493
|
+
yep: Math.ceil((yp + adjustedHeight) * PRECISION) / PRECISION
|
|
44494
|
+
};
|
|
44495
|
+
}
|
|
44496
|
+
/**
|
|
44497
|
+
*Returns items in range
|
|
44498
|
+
* @param {object} params - range information
|
|
44499
|
+
* @param {number} params.xsp - start x position
|
|
44500
|
+
* @param {number} params.width - width
|
|
44501
|
+
* @param {number} params.ysp - start y position
|
|
44502
|
+
* @param {number} params.height - height
|
|
44503
|
+
* @returns {array} items in range
|
|
44504
|
+
*/
|
|
44505
|
+
|
|
44506
|
+
}, {
|
|
44507
|
+
key: "findItems",
|
|
44508
|
+
value: function findItems(params) {
|
|
44509
|
+
var _this3 = this;
|
|
44510
|
+
|
|
44483
44511
|
var gdata = this.data;
|
|
44484
|
-
|
|
44485
|
-
var
|
|
44512
|
+
|
|
44513
|
+
var _this$getAdjustedBoun = this.getAdjustedBounds({
|
|
44514
|
+
xp: params.xsp,
|
|
44515
|
+
yp: params.ysp,
|
|
44516
|
+
width: params.width,
|
|
44517
|
+
height: params.height
|
|
44518
|
+
}),
|
|
44519
|
+
xsp = _this$getAdjustedBoun.xsp,
|
|
44520
|
+
xep = _this$getAdjustedBoun.xep,
|
|
44521
|
+
ysp = _this$getAdjustedBoun.ysp,
|
|
44522
|
+
yep = _this$getAdjustedBoun.yep;
|
|
44523
|
+
|
|
44486
44524
|
return gdata.filter(function (_ref4) {
|
|
44487
44525
|
var xp = _ref4.xp,
|
|
44488
44526
|
yp = _ref4.yp,
|
|
44489
44527
|
w = _ref4.w,
|
|
44490
44528
|
h = _ref4.h;
|
|
44491
|
-
|
|
44492
|
-
var
|
|
44493
|
-
|
|
44494
|
-
|
|
44529
|
+
|
|
44530
|
+
var _this3$getAdjustedBou = _this3.getAdjustedBounds({
|
|
44531
|
+
xp: xp,
|
|
44532
|
+
yp: yp,
|
|
44533
|
+
width: w,
|
|
44534
|
+
height: h
|
|
44535
|
+
}),
|
|
44536
|
+
x1 = _this3$getAdjustedBou.xsp,
|
|
44537
|
+
x2 = _this3$getAdjustedBou.xep,
|
|
44538
|
+
y1 = _this3$getAdjustedBou.ysp,
|
|
44539
|
+
y2 = _this3$getAdjustedBou.yep;
|
|
44540
|
+
|
|
44495
44541
|
return x1 >= xsp && x2 <= xep && y1 >= ysp && y2 <= yep;
|
|
44496
44542
|
});
|
|
44497
44543
|
}
|
|
@@ -44677,6 +44723,8 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
44677
44723
|
|
|
44678
44724
|
if (findItem > -1) {
|
|
44679
44725
|
point[key] = ['xsp', 'ysp'].includes(key) ? itemPoint : itemPoint + gap;
|
|
44726
|
+
} else if (target < startPoint) {
|
|
44727
|
+
point[key] = startPoint;
|
|
44680
44728
|
}
|
|
44681
44729
|
};
|
|
44682
44730
|
|
|
@@ -48385,8 +48433,16 @@ var plugins_legend_modules = {
|
|
|
48385
48433
|
|
|
48386
48434
|
this.setLegendColumnHeader();
|
|
48387
48435
|
} else if (this.options.legend.virtualScroll) {
|
|
48388
|
-
|
|
48389
|
-
|
|
48436
|
+
var _this$legendDOM, _this$legendDOM$style;
|
|
48437
|
+
|
|
48438
|
+
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';
|
|
48439
|
+
|
|
48440
|
+
if (isHidden) {
|
|
48441
|
+
this.legendNeedsUpdate = true;
|
|
48442
|
+
} else {
|
|
48443
|
+
this.updateVisibleRowCount();
|
|
48444
|
+
this.renderVisibleLegends();
|
|
48445
|
+
}
|
|
48390
48446
|
} else {
|
|
48391
48447
|
while (legendBoxDOM.hasChildNodes()) {
|
|
48392
48448
|
legendBoxDOM.removeChild(legendBoxDOM.firstChild);
|
|
@@ -48632,12 +48688,12 @@ var plugins_legend_modules = {
|
|
|
48632
48688
|
* @returns {undefined}
|
|
48633
48689
|
*/
|
|
48634
48690
|
setLegendPosition: function setLegendPosition() {
|
|
48635
|
-
var _opt$legend, _this$wrapperDOM, _this$
|
|
48691
|
+
var _opt$legend, _this$wrapperDOM, _this$legendDOM2, _this$legendBoxDOM3, _this$resizeDOM, _opt$title, _opt$title2, _opt$legend2, _opt$legend$padding, _opt$legend3;
|
|
48636
48692
|
|
|
48637
48693
|
var opt = this.options;
|
|
48638
48694
|
var position = opt === null || opt === void 0 ? void 0 : (_opt$legend = opt.legend) === null || _opt$legend === void 0 ? void 0 : _opt$legend.position;
|
|
48639
48695
|
var wrapperStyle = (_this$wrapperDOM = this.wrapperDOM) === null || _this$wrapperDOM === void 0 ? void 0 : _this$wrapperDOM.style;
|
|
48640
|
-
var legendStyle = (_this$
|
|
48696
|
+
var legendStyle = (_this$legendDOM2 = this.legendDOM) === null || _this$legendDOM2 === void 0 ? void 0 : _this$legendDOM2.style;
|
|
48641
48697
|
var boxStyle = (_this$legendBoxDOM3 = this.legendBoxDOM) === null || _this$legendBoxDOM3 === void 0 ? void 0 : _this$legendBoxDOM3.style;
|
|
48642
48698
|
var resizeStyle = (_this$resizeDOM = this.resizeDOM) === null || _this$resizeDOM === void 0 ? void 0 : _this$resizeDOM.style;
|
|
48643
48699
|
var chartRect;
|
|
@@ -48959,6 +49015,12 @@ var plugins_legend_modules = {
|
|
|
48959
49015
|
if (this.legendDOM) {
|
|
48960
49016
|
this.legendDOM.style.display = 'block';
|
|
48961
49017
|
}
|
|
49018
|
+
|
|
49019
|
+
if (this.legendNeedsUpdate && this.options.legend.virtualScroll && !this.useTable) {
|
|
49020
|
+
this.legendNeedsUpdate = false;
|
|
49021
|
+
this.updateVisibleRowCount();
|
|
49022
|
+
this.renderVisibleLegends();
|
|
49023
|
+
}
|
|
48962
49024
|
},
|
|
48963
49025
|
|
|
48964
49026
|
/**
|
|
@@ -48967,12 +49029,12 @@ var plugins_legend_modules = {
|
|
|
48967
49029
|
* @returns {undefined}
|
|
48968
49030
|
*/
|
|
48969
49031
|
hideLegend: function hideLegend() {
|
|
48970
|
-
var _this$wrapperDOM2, _this$resizeDOM2, _this$
|
|
49032
|
+
var _this$wrapperDOM2, _this$resizeDOM2, _this$legendDOM3, _opt$title3, _opt$title4;
|
|
48971
49033
|
|
|
48972
49034
|
var opt = this.options;
|
|
48973
49035
|
var wrapperStyle = (_this$wrapperDOM2 = this.wrapperDOM) === null || _this$wrapperDOM2 === void 0 ? void 0 : _this$wrapperDOM2.style;
|
|
48974
49036
|
var resizeStyle = (_this$resizeDOM2 = this.resizeDOM) === null || _this$resizeDOM2 === void 0 ? void 0 : _this$resizeDOM2.style;
|
|
48975
|
-
var legendStyle = (_this$
|
|
49037
|
+
var legendStyle = (_this$legendDOM3 = this.legendDOM) === null || _this$legendDOM3 === void 0 ? void 0 : _this$legendDOM3.style;
|
|
48976
49038
|
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
49039
|
|
|
48978
49040
|
if (!legendStyle || !wrapperStyle) {
|