evui 3.3.22 → 3.3.23
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 -9
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +21 -9
- 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.tooltip.js +17 -7
- package/src/components/chart/style/chart.scss +0 -1
- package/src/components/chart/uses.js +1 -0
package/dist/evui.common.js
CHANGED
|
@@ -6925,7 +6925,7 @@ module.exports = {
|
|
|
6925
6925
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
6926
6926
|
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
6927
6927
|
// Module
|
|
6928
|
-
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-box{overflow-x:hidden;overflow-y:auto}.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-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;
|
|
6928
|
+
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-box{overflow-x:hidden;overflow-y:auto}.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-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}", ""]);
|
|
6929
6929
|
// Exports
|
|
6930
6930
|
module.exports = exports;
|
|
6931
6931
|
|
|
@@ -7935,7 +7935,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
7935
7935
|
/***/ "9224":
|
|
7936
7936
|
/***/ (function(module) {
|
|
7937
7937
|
|
|
7938
|
-
module.exports = JSON.parse("{\"a\":\"3.3.
|
|
7938
|
+
module.exports = JSON.parse("{\"a\":\"3.3.23\"}");
|
|
7939
7939
|
|
|
7940
7940
|
/***/ }),
|
|
7941
7941
|
|
|
@@ -41402,14 +41402,13 @@ var plugins_interaction_modules = {
|
|
|
41402
41402
|
|
|
41403
41403
|
|
|
41404
41404
|
|
|
41405
|
-
|
|
41406
41405
|
var TITLE_HEIGHT = 30;
|
|
41407
41406
|
var TEXT_HEIGHT = 14;
|
|
41408
41407
|
var LINE_SPACING = 8;
|
|
41409
41408
|
var COLOR_MARGIN = 16;
|
|
41410
41409
|
var VALUE_MARGIN = 50;
|
|
41411
41410
|
var SCROLL_WIDTH = 17;
|
|
41412
|
-
var
|
|
41411
|
+
var fontStyle = 'normal normal lighter 14px Roboto';
|
|
41413
41412
|
var plugins_tooltip_modules = {
|
|
41414
41413
|
/**
|
|
41415
41414
|
* Create tooltip DOM
|
|
@@ -41429,6 +41428,7 @@ var plugins_tooltip_modules = {
|
|
|
41429
41428
|
this.tooltipCanvas.className = 'ev-chart-tooltip-canvas';
|
|
41430
41429
|
this.tooltipCtx = this.tooltipCanvas.getContext('2d');
|
|
41431
41430
|
this.tooltipDOM.style.display = 'none';
|
|
41431
|
+
this.setFontFamily();
|
|
41432
41432
|
this.tooltipBodyDOM.appendChild(this.tooltipCanvas);
|
|
41433
41433
|
this.tooltipDOM.appendChild(this.tooltipHeaderDOM);
|
|
41434
41434
|
this.tooltipDOM.appendChild(this.tooltipBodyDOM);
|
|
@@ -41445,6 +41445,17 @@ var plugins_tooltip_modules = {
|
|
|
41445
41445
|
}
|
|
41446
41446
|
},
|
|
41447
41447
|
|
|
41448
|
+
/**
|
|
41449
|
+
* set tooltip's font style
|
|
41450
|
+
*/
|
|
41451
|
+
setFontFamily: function setFontFamily() {
|
|
41452
|
+
var _this$options$tooltip, _this$options, _this$options$tooltip2;
|
|
41453
|
+
|
|
41454
|
+
var fontFamily = (_this$options$tooltip = (_this$options = this.options) === null || _this$options === void 0 ? void 0 : (_this$options$tooltip2 = _this$options.tooltip) === null || _this$options$tooltip2 === void 0 ? void 0 : _this$options$tooltip2.fontFamily) !== null && _this$options$tooltip !== void 0 ? _this$options$tooltip : 'Roboto';
|
|
41455
|
+
fontStyle = "normal normal lighter 14px ".concat(fontFamily);
|
|
41456
|
+
this.tooltipHeaderDOM.style.fontFamily = fontFamily;
|
|
41457
|
+
},
|
|
41458
|
+
|
|
41448
41459
|
/**
|
|
41449
41460
|
* Set tooltip DOM's position and style
|
|
41450
41461
|
* @param {object} hitInfo value and mouse position touched
|
|
@@ -41475,7 +41486,7 @@ var plugins_tooltip_modules = {
|
|
|
41475
41486
|
var opt = this.options.tooltip; // calculate and decide width of canvas El(contentsWidth)
|
|
41476
41487
|
|
|
41477
41488
|
ctx.save();
|
|
41478
|
-
ctx.font =
|
|
41489
|
+
ctx.font = fontStyle;
|
|
41479
41490
|
var isHorizontal = !!this.options.horizontal;
|
|
41480
41491
|
var label = isHorizontal ? (_items$hitInfo$hitId = items[hitInfo.hitId]) === null || _items$hitInfo$hitId === void 0 ? void 0 : (_items$hitInfo$hitId$ = _items$hitInfo$hitId.data) === null || _items$hitInfo$hitId$ === void 0 ? void 0 : _items$hitInfo$hitId$.y : (_items$hitInfo$hitId2 = items[hitInfo.hitId]) === null || _items$hitInfo$hitId2 === void 0 ? void 0 : (_items$hitInfo$hitId3 = _items$hitInfo$hitId2.data) === null || _items$hitInfo$hitId3 === void 0 ? void 0 : _items$hitInfo$hitId3.x;
|
|
41481
41492
|
var tooltipValue = (label === null || label === void 0 ? void 0 : label.length) > maxSeries.length ? label : maxSeries;
|
|
@@ -41609,7 +41620,7 @@ var plugins_tooltip_modules = {
|
|
|
41609
41620
|
|
|
41610
41621
|
x += boxPadding.l;
|
|
41611
41622
|
y += boxPadding.t;
|
|
41612
|
-
ctx.font =
|
|
41623
|
+
ctx.font = fontStyle;
|
|
41613
41624
|
var seriesList = [];
|
|
41614
41625
|
seriesKeys.forEach(function (seriesName) {
|
|
41615
41626
|
seriesList.push({
|
|
@@ -41822,7 +41833,7 @@ var plugins_tooltip_modules = {
|
|
|
41822
41833
|
var itemX = boxPadding.l + 2;
|
|
41823
41834
|
var itemY = boxPadding.t + TEXT_HEIGHT + 2;
|
|
41824
41835
|
var itemValue = hitItem.o > -1 ? hitItem.o : 'error';
|
|
41825
|
-
ctx.font =
|
|
41836
|
+
ctx.font = fontStyle;
|
|
41826
41837
|
ctx.beginPath();
|
|
41827
41838
|
|
|
41828
41839
|
if (typeof hitColor !== 'string') {
|
|
@@ -41901,7 +41912,7 @@ var plugins_tooltip_modules = {
|
|
|
41901
41912
|
|
|
41902
41913
|
x += boxPadding.l;
|
|
41903
41914
|
y += boxPadding.t;
|
|
41904
|
-
ctx.font =
|
|
41915
|
+
ctx.font = fontStyle;
|
|
41905
41916
|
var seriesList = [];
|
|
41906
41917
|
seriesKeys.forEach(function (seriesName) {
|
|
41907
41918
|
seriesList.push({
|
|
@@ -44055,7 +44066,8 @@ var DEFAULT_OPTIONS = {
|
|
|
44055
44066
|
throttledMove: false,
|
|
44056
44067
|
debouncedHide: false,
|
|
44057
44068
|
useScrollbar: false,
|
|
44058
|
-
textOverflow: 'wrap'
|
|
44069
|
+
textOverflow: 'wrap',
|
|
44070
|
+
fontFamily: 'Roboto'
|
|
44059
44071
|
},
|
|
44060
44072
|
indicator: {
|
|
44061
44073
|
use: true,
|