evui 3.4.89 → 3.4.91
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 +168 -64
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +168 -64
- 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/model/model.store.js +12 -2
- package/src/components/chart/plugins/plugins.interaction.js +68 -18
- package/src/components/chart/plugins/plugins.tooltip.js +29 -4
- package/src/components/treeGrid/uses.js +12 -1
package/dist/evui.umd.js
CHANGED
|
@@ -11250,7 +11250,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
11250
11250
|
/***/ "9224":
|
|
11251
11251
|
/***/ (function(module) {
|
|
11252
11252
|
|
|
11253
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11253
|
+
module.exports = JSON.parse("{\"a\":\"3.4.91\"}");
|
|
11254
11254
|
|
|
11255
11255
|
/***/ }),
|
|
11256
11256
|
|
|
@@ -39670,14 +39670,23 @@ var modules = {
|
|
|
39670
39670
|
if (ldata !== null && ldata !== undefined) {
|
|
39671
39671
|
var g = isHorizontal ? data.o || data.x : data.o || data.y;
|
|
39672
39672
|
|
|
39673
|
-
if (series.stackIndex) {
|
|
39673
|
+
if (series.stackIndex != null) {
|
|
39674
39674
|
acc += !isNaN(data.o) ? data.o : 0;
|
|
39675
39675
|
useStack = true;
|
|
39676
39676
|
} else {
|
|
39677
39677
|
acc += data.y;
|
|
39678
39678
|
}
|
|
39679
39679
|
|
|
39680
|
-
if (
|
|
39680
|
+
if (maxType === 'bar' && useStack) {
|
|
39681
|
+
if (item.hit) {
|
|
39682
|
+
maxValue = g;
|
|
39683
|
+
maxSeriesID = seriesID;
|
|
39684
|
+
maxIndex = index;
|
|
39685
|
+
maxLabel = ldata;
|
|
39686
|
+
maxValuePos = lp;
|
|
39687
|
+
maxType = series.type;
|
|
39688
|
+
}
|
|
39689
|
+
} else if (maxValue === null || maxValue <= g) {
|
|
39681
39690
|
maxValue = g;
|
|
39682
39691
|
maxSeriesID = seriesID;
|
|
39683
39692
|
maxLabel = ldata;
|
|
@@ -50077,21 +50086,19 @@ var plugins_interaction_modules = {
|
|
|
50077
50086
|
e: e
|
|
50078
50087
|
};
|
|
50079
50088
|
|
|
50080
|
-
|
|
50081
|
-
var offset = _this.getMousePosition(e);
|
|
50082
|
-
|
|
50083
|
-
var hitInfo = _this.getItemByPosition(offset, selectItem.useApproximateValue);
|
|
50089
|
+
var offset = _this.getMousePosition(e);
|
|
50084
50090
|
|
|
50085
|
-
|
|
50086
|
-
_this.render(hitInfo);
|
|
50087
|
-
}
|
|
50091
|
+
var hitInfo = _this.getItemByPosition(offset, selectItem.useApproximateValue);
|
|
50088
50092
|
|
|
50089
|
-
|
|
50090
|
-
|
|
50091
|
-
args.seriesId = hitInfo.sId;
|
|
50092
|
-
args.acc = hitInfo.acc;
|
|
50093
|
+
if (hitInfo.label !== null) {
|
|
50094
|
+
_this.render(hitInfo);
|
|
50093
50095
|
}
|
|
50094
50096
|
|
|
50097
|
+
args.label = hitInfo.label;
|
|
50098
|
+
args.value = hitInfo.value;
|
|
50099
|
+
args.seriesId = hitInfo.sId;
|
|
50100
|
+
args.acc = hitInfo.acc;
|
|
50101
|
+
|
|
50095
50102
|
if (typeof _this.listeners['dbl-click'] === 'function') {
|
|
50096
50103
|
_this.listeners['dbl-click'](args);
|
|
50097
50104
|
}
|
|
@@ -50143,6 +50150,8 @@ var plugins_interaction_modules = {
|
|
|
50143
50150
|
};
|
|
50144
50151
|
|
|
50145
50152
|
var setSelectedLabelInfo = function setSelectedLabelInfo(targetAxis) {
|
|
50153
|
+
var itemHitInfo = _this.getItemByPosition(offset, false);
|
|
50154
|
+
|
|
50146
50155
|
var _this$getLabelInfoByP = _this.getLabelInfoByPosition(offset, targetAxis),
|
|
50147
50156
|
clickedLabelIndex = _this$getLabelInfoByP.labelIndex;
|
|
50148
50157
|
|
|
@@ -50158,9 +50167,13 @@ var plugins_interaction_modules = {
|
|
|
50158
50167
|
args.selected = _objectSpread2({
|
|
50159
50168
|
eventTarget: 'label'
|
|
50160
50169
|
}, lodash_es_cloneDeep(_this.defaultSelectInfo));
|
|
50170
|
+
args.label = itemHitInfo.label;
|
|
50171
|
+
args.dataIndex = itemHitInfo.maxIndex;
|
|
50161
50172
|
};
|
|
50162
50173
|
|
|
50163
50174
|
var setSelectedSeriesInfo = function setSelectedSeriesInfo() {
|
|
50175
|
+
var itemHitInfo = _this.getItemByPosition(offset, false);
|
|
50176
|
+
|
|
50164
50177
|
var hitInfo = _this.getSeriesInfoByPosition(offset);
|
|
50165
50178
|
|
|
50166
50179
|
if (hitInfo.sId !== null) {
|
|
@@ -50170,6 +50183,8 @@ var plugins_interaction_modules = {
|
|
|
50170
50183
|
args.selected = _objectSpread2({
|
|
50171
50184
|
eventTarget: 'series'
|
|
50172
50185
|
}, lodash_es_cloneDeep(_this.defaultSelectInfo));
|
|
50186
|
+
args.label = itemHitInfo.label;
|
|
50187
|
+
args.dataIndex = itemHitInfo.maxIndex;
|
|
50173
50188
|
}
|
|
50174
50189
|
};
|
|
50175
50190
|
|
|
@@ -50796,24 +50811,31 @@ var plugins_interaction_modules = {
|
|
|
50796
50811
|
}
|
|
50797
50812
|
|
|
50798
50813
|
if (gdata !== null && gdata !== undefined) {
|
|
50799
|
-
var
|
|
50800
|
-
|
|
50801
|
-
|
|
50814
|
+
var formattedSeriesName = this.getFormattedTooltipLabel({
|
|
50815
|
+
dataId: series.id,
|
|
50816
|
+
seriesId: sId,
|
|
50817
|
+
seriesName: series.name,
|
|
50818
|
+
itemData: item.data
|
|
50819
|
+
});
|
|
50820
|
+
var sw = ctx ? ctx.measureText(formattedSeriesName).width : 1;
|
|
50821
|
+
item.id = series.id;
|
|
50822
|
+
item.name = formattedSeriesName;
|
|
50802
50823
|
item.axis = {
|
|
50803
50824
|
x: series.xAxisIndex,
|
|
50804
50825
|
y: series.yAxisIndex
|
|
50805
50826
|
};
|
|
50806
50827
|
items[sId] = item;
|
|
50807
50828
|
var formattedTxt = this.getFormattedTooltipValue({
|
|
50829
|
+
dataId: series.id,
|
|
50808
50830
|
seriesId: sId,
|
|
50809
|
-
seriesName:
|
|
50831
|
+
seriesName: formattedSeriesName,
|
|
50810
50832
|
value: gdata,
|
|
50811
50833
|
itemData: item.data
|
|
50812
50834
|
});
|
|
50813
50835
|
item.data.formatted = formattedTxt;
|
|
50814
50836
|
|
|
50815
50837
|
if (maxsw < sw) {
|
|
50816
|
-
maxs =
|
|
50838
|
+
maxs = formattedSeriesName;
|
|
50817
50839
|
maxsw = sw;
|
|
50818
50840
|
}
|
|
50819
50841
|
|
|
@@ -50845,24 +50867,58 @@ var plugins_interaction_modules = {
|
|
|
50845
50867
|
},
|
|
50846
50868
|
|
|
50847
50869
|
/**
|
|
50848
|
-
* get formatted
|
|
50870
|
+
* get formatted label for tooltip
|
|
50871
|
+
* @param dataId
|
|
50849
50872
|
* @param seriesId
|
|
50850
50873
|
* @param seriesName
|
|
50851
|
-
* @param value
|
|
50852
50874
|
* @param itemData
|
|
50853
50875
|
* @returns {string}
|
|
50854
50876
|
*/
|
|
50855
|
-
|
|
50877
|
+
getFormattedTooltipLabel: function getFormattedTooltipLabel(_ref2) {
|
|
50856
50878
|
var _tooltipOpt$formatter;
|
|
50857
50879
|
|
|
50858
|
-
var
|
|
50880
|
+
var dataId = _ref2.dataId,
|
|
50881
|
+
seriesId = _ref2.seriesId,
|
|
50859
50882
|
seriesName = _ref2.seriesName,
|
|
50860
|
-
value = _ref2.value,
|
|
50861
50883
|
itemData = _ref2.itemData;
|
|
50862
50884
|
var opt = this.options;
|
|
50885
|
+
var tooltipOpt = opt.tooltip;
|
|
50886
|
+
var tooltipLabelFormatter = tooltipOpt === null || tooltipOpt === void 0 ? void 0 : (_tooltipOpt$formatter = tooltipOpt.formatter) === null || _tooltipOpt$formatter === void 0 ? void 0 : _tooltipOpt$formatter.label;
|
|
50887
|
+
var formattedLabel = seriesName;
|
|
50888
|
+
|
|
50889
|
+
if (tooltipLabelFormatter) {
|
|
50890
|
+
formattedLabel = tooltipLabelFormatter({
|
|
50891
|
+
dataId: dataId,
|
|
50892
|
+
seriesId: seriesId,
|
|
50893
|
+
seriesName: seriesName,
|
|
50894
|
+
itemData: itemData
|
|
50895
|
+
});
|
|
50896
|
+
}
|
|
50897
|
+
|
|
50898
|
+
return formattedLabel;
|
|
50899
|
+
},
|
|
50900
|
+
|
|
50901
|
+
/**
|
|
50902
|
+
* get formatted value for tooltip
|
|
50903
|
+
* @param dataId
|
|
50904
|
+
* @param seriesId
|
|
50905
|
+
* @param seriesName
|
|
50906
|
+
* @param value
|
|
50907
|
+
* @param itemData
|
|
50908
|
+
* @returns {string}
|
|
50909
|
+
*/
|
|
50910
|
+
getFormattedTooltipValue: function getFormattedTooltipValue(_ref3) {
|
|
50911
|
+
var _tooltipOpt$formatter2;
|
|
50912
|
+
|
|
50913
|
+
var dataId = _ref3.dataId,
|
|
50914
|
+
seriesId = _ref3.seriesId,
|
|
50915
|
+
seriesName = _ref3.seriesName,
|
|
50916
|
+
value = _ref3.value,
|
|
50917
|
+
itemData = _ref3.itemData;
|
|
50918
|
+
var opt = this.options;
|
|
50863
50919
|
var isHorizontal = !!opt.horizontal;
|
|
50864
50920
|
var tooltipOpt = opt.tooltip;
|
|
50865
|
-
var tooltipValueFormatter = typeof (tooltipOpt === null || tooltipOpt === void 0 ? void 0 : tooltipOpt.formatter) === 'function' ? tooltipOpt === null || tooltipOpt === void 0 ? void 0 : tooltipOpt.formatter : tooltipOpt === null || tooltipOpt === void 0 ? void 0 : (_tooltipOpt$
|
|
50921
|
+
var tooltipValueFormatter = typeof (tooltipOpt === null || tooltipOpt === void 0 ? void 0 : tooltipOpt.formatter) === 'function' ? tooltipOpt === null || tooltipOpt === void 0 ? void 0 : tooltipOpt.formatter : tooltipOpt === null || tooltipOpt === void 0 ? void 0 : (_tooltipOpt$formatter2 = tooltipOpt.formatter) === null || _tooltipOpt$formatter2 === void 0 ? void 0 : _tooltipOpt$formatter2.value;
|
|
50866
50922
|
var formattedTxt = value;
|
|
50867
50923
|
|
|
50868
50924
|
if (tooltipValueFormatter) {
|
|
@@ -50871,21 +50927,24 @@ var plugins_interaction_modules = {
|
|
|
50871
50927
|
value: value,
|
|
50872
50928
|
name: seriesName,
|
|
50873
50929
|
percentage: itemData === null || itemData === void 0 ? void 0 : itemData.percentage,
|
|
50874
|
-
seriesId: seriesId
|
|
50930
|
+
seriesId: seriesId,
|
|
50931
|
+
dataId: dataId
|
|
50875
50932
|
});
|
|
50876
50933
|
} else if (opt.type === 'heatMap') {
|
|
50877
50934
|
formattedTxt = tooltipValueFormatter({
|
|
50878
50935
|
x: itemData === null || itemData === void 0 ? void 0 : itemData.x,
|
|
50879
50936
|
y: itemData === null || itemData === void 0 ? void 0 : itemData.y,
|
|
50880
50937
|
value: value > -1 ? value : 'error',
|
|
50881
|
-
seriesId: seriesId
|
|
50938
|
+
seriesId: seriesId,
|
|
50939
|
+
dataId: dataId
|
|
50882
50940
|
});
|
|
50883
50941
|
} else {
|
|
50884
50942
|
formattedTxt = tooltipValueFormatter({
|
|
50885
50943
|
x: isHorizontal ? value : itemData === null || itemData === void 0 ? void 0 : itemData.x,
|
|
50886
50944
|
y: isHorizontal ? itemData === null || itemData === void 0 ? void 0 : itemData.y : value,
|
|
50887
50945
|
name: seriesName,
|
|
50888
|
-
seriesId: seriesId
|
|
50946
|
+
seriesId: seriesId,
|
|
50947
|
+
dataId: dataId
|
|
50889
50948
|
});
|
|
50890
50949
|
}
|
|
50891
50950
|
}
|
|
@@ -50924,9 +50983,16 @@ var plugins_interaction_modules = {
|
|
|
50924
50983
|
var hasData = series.data.find(function (data) {
|
|
50925
50984
|
return isHorizontal ? (data === null || data === void 0 ? void 0 : data.y) === hitItemData : (data === null || data === void 0 ? void 0 : data.x) === hitItemData;
|
|
50926
50985
|
});
|
|
50927
|
-
var
|
|
50986
|
+
var formattedSeriesName = this.getFormattedTooltipLabel({
|
|
50987
|
+
dataId: series.id,
|
|
50928
50988
|
seriesId: sId,
|
|
50929
50989
|
seriesName: series.name,
|
|
50990
|
+
itemData: hasData
|
|
50991
|
+
});
|
|
50992
|
+
var formattedValue = this.getFormattedTooltipValue({
|
|
50993
|
+
dataId: series.id,
|
|
50994
|
+
seriesId: sId,
|
|
50995
|
+
seriesName: formattedSeriesName,
|
|
50930
50996
|
value: hasData === null || hasData === void 0 ? void 0 : hasData.o,
|
|
50931
50997
|
itemData: hasData
|
|
50932
50998
|
});
|
|
@@ -50935,7 +51001,7 @@ var plugins_interaction_modules = {
|
|
|
50935
51001
|
var item = {};
|
|
50936
51002
|
item.color = series.color;
|
|
50937
51003
|
item.hit = false;
|
|
50938
|
-
item.name =
|
|
51004
|
+
item.name = formattedSeriesName;
|
|
50939
51005
|
item.axis = {
|
|
50940
51006
|
x: series.xAxisIndex,
|
|
50941
51007
|
y: series.yAxisIndex
|
|
@@ -50947,10 +51013,10 @@ var plugins_interaction_modules = {
|
|
|
50947
51013
|
}
|
|
50948
51014
|
|
|
50949
51015
|
var maxSeriesNameWidth = ctx ? ctx.measureText(maxSeriesName).width : 1;
|
|
50950
|
-
var seriesNameWidth = ctx ? ctx.measureText(
|
|
51016
|
+
var seriesNameWidth = ctx ? ctx.measureText(formattedSeriesName).width : 1;
|
|
50951
51017
|
|
|
50952
51018
|
if (maxSeriesNameWidth < seriesNameWidth) {
|
|
50953
|
-
maxSeriesName =
|
|
51019
|
+
maxSeriesName = formattedSeriesName;
|
|
50954
51020
|
}
|
|
50955
51021
|
|
|
50956
51022
|
var maxValueWidth = ctx ? ctx.measureText(maxValueTxt).width : 1;
|
|
@@ -51041,10 +51107,10 @@ var plugins_interaction_modules = {
|
|
|
51041
51107
|
});
|
|
51042
51108
|
var dataEntries = Object.entries(this.data.data);
|
|
51043
51109
|
result.data = result.dataIndex.map(function (labelIdx) {
|
|
51044
|
-
return Object.fromEntries(dataEntries.map(function (
|
|
51045
|
-
var
|
|
51046
|
-
sId =
|
|
51047
|
-
data =
|
|
51110
|
+
return Object.fromEntries(dataEntries.map(function (_ref4) {
|
|
51111
|
+
var _ref5 = _slicedToArray(_ref4, 2),
|
|
51112
|
+
sId = _ref5[0],
|
|
51113
|
+
data = _ref5[1];
|
|
51048
51114
|
|
|
51049
51115
|
return [sId, data[labelIdx]];
|
|
51050
51116
|
}));
|
|
@@ -51070,9 +51136,9 @@ var plugins_interaction_modules = {
|
|
|
51070
51136
|
return _this4.data.labels[targetAxisDirection][i];
|
|
51071
51137
|
});
|
|
51072
51138
|
var dataValues = Object.values(this.data.data)[0];
|
|
51073
|
-
result.data = dataValues.filter(function (
|
|
51074
|
-
var x =
|
|
51075
|
-
y =
|
|
51139
|
+
result.data = dataValues.filter(function (_ref6) {
|
|
51140
|
+
var x = _ref6.x,
|
|
51141
|
+
y = _ref6.y;
|
|
51076
51142
|
return result.label.includes(targetAxisDirection === 'y' ? y : x);
|
|
51077
51143
|
});
|
|
51078
51144
|
break;
|
|
@@ -51187,14 +51253,14 @@ var plugins_interaction_modules = {
|
|
|
51187
51253
|
* object.range: coordinate-based range in graph
|
|
51188
51254
|
* @returns {object}
|
|
51189
51255
|
*/
|
|
51190
|
-
getSelectionRange: function getSelectionRange(
|
|
51256
|
+
getSelectionRange: function getSelectionRange(_ref7) {
|
|
51191
51257
|
var _this$boxOverflow, _this$boxOverflow2, _this$boxOverflow3, _this$boxOverflow4;
|
|
51192
51258
|
|
|
51193
|
-
var xsp =
|
|
51194
|
-
ysp =
|
|
51195
|
-
width =
|
|
51196
|
-
height =
|
|
51197
|
-
range =
|
|
51259
|
+
var xsp = _ref7.xsp,
|
|
51260
|
+
ysp = _ref7.ysp,
|
|
51261
|
+
width = _ref7.width,
|
|
51262
|
+
height = _ref7.height,
|
|
51263
|
+
range = _ref7.range;
|
|
51198
51264
|
var dataRangeX = this.axesSteps.x.length ? this.axesSteps.x[0] : null;
|
|
51199
51265
|
var dataRangeY = this.axesSteps.y.length ? this.axesSteps.y[0] : null;
|
|
51200
51266
|
|
|
@@ -51251,11 +51317,11 @@ var plugins_interaction_modules = {
|
|
|
51251
51317
|
|
|
51252
51318
|
var sId = Object.keys(this.seriesList)[0];
|
|
51253
51319
|
|
|
51254
|
-
var
|
|
51255
|
-
xMin =
|
|
51256
|
-
xMax =
|
|
51257
|
-
yMin =
|
|
51258
|
-
yMax =
|
|
51320
|
+
var _ref8 = (_this$seriesList$sId$ = this.seriesList[sId].findSelectionRange(range)) !== null && _this$seriesList$sId$ !== void 0 ? _this$seriesList$sId$ : {},
|
|
51321
|
+
xMin = _ref8.xMin,
|
|
51322
|
+
xMax = _ref8.xMax,
|
|
51323
|
+
yMin = _ref8.yMin,
|
|
51324
|
+
yMax = _ref8.yMax;
|
|
51259
51325
|
|
|
51260
51326
|
return {
|
|
51261
51327
|
xMin: xMin !== null && xMin !== void 0 ? xMin : dataRangeX.graphMin,
|
|
@@ -51630,9 +51696,11 @@ var plugins_tooltip_modules = {
|
|
|
51630
51696
|
var seriesList = [];
|
|
51631
51697
|
seriesKeys.forEach(function (seriesName) {
|
|
51632
51698
|
seriesList.push({
|
|
51699
|
+
id: seriesName,
|
|
51633
51700
|
data: items[seriesName].data,
|
|
51634
51701
|
color: items[seriesName].color,
|
|
51635
|
-
name: items[seriesName].name
|
|
51702
|
+
name: items[seriesName].name,
|
|
51703
|
+
dataId: items[seriesName].id
|
|
51636
51704
|
});
|
|
51637
51705
|
});
|
|
51638
51706
|
|
|
@@ -51657,7 +51725,7 @@ var plugins_tooltip_modules = {
|
|
|
51657
51725
|
var textLineCnt = 1;
|
|
51658
51726
|
|
|
51659
51727
|
for (var ix = 0; ix < seriesList.length; ix++) {
|
|
51660
|
-
var _opt$fontColor$label, _opt$fontColor
|
|
51728
|
+
var _opt$fontColor$label, _opt$fontColor$value;
|
|
51661
51729
|
|
|
51662
51730
|
var gdata = seriesList[ix].data;
|
|
51663
51731
|
var color = seriesList[ix].color;
|
|
@@ -51678,15 +51746,21 @@ var plugins_tooltip_modules = {
|
|
|
51678
51746
|
}, color);
|
|
51679
51747
|
} else {
|
|
51680
51748
|
ctx.fillStyle = color;
|
|
51681
|
-
}
|
|
51749
|
+
}
|
|
51682
51750
|
|
|
51751
|
+
var curTooltipInfo = {
|
|
51752
|
+
id: seriesList[ix].id,
|
|
51753
|
+
name: seriesList[ix].name,
|
|
51754
|
+
value: valueText,
|
|
51755
|
+
dataId: seriesList[ix].dataId
|
|
51756
|
+
}; // 1. Draw series color
|
|
51683
51757
|
|
|
51684
51758
|
this.drawSeriesColorShape(ctx, opt.colorShape, {
|
|
51685
51759
|
x: itemX,
|
|
51686
51760
|
y: itemY
|
|
51687
51761
|
}); // 2. Draw series name
|
|
51688
51762
|
|
|
51689
|
-
ctx.fillStyle =
|
|
51763
|
+
ctx.fillStyle = typeof opt.fontColor.label === 'function' ? opt.fontColor.label(curTooltipInfo) : (_opt$fontColor$label = opt.fontColor.label) !== null && _opt$fontColor$label !== void 0 ? _opt$fontColor$label : opt.fontColor;
|
|
51690
51764
|
ctx.textBaseline = 'Bottom';
|
|
51691
51765
|
var seriesNameSpaceWidth = opt.maxWidth - Math.round(ctx.measureText(maxValue).width) - boxPadding.l - boxPadding.r - seriesColorMarginRight - VALUE_MARGIN;
|
|
51692
51766
|
var xPos = itemX + seriesColorMarginRight;
|
|
@@ -51723,7 +51797,7 @@ var plugins_tooltip_modules = {
|
|
|
51723
51797
|
|
|
51724
51798
|
ctx.save(); // 3. Draw value
|
|
51725
51799
|
|
|
51726
|
-
ctx.fillStyle =
|
|
51800
|
+
ctx.fillStyle = typeof opt.fontColor.value === 'function' ? opt.fontColor.value(curTooltipInfo) : (_opt$fontColor$value = opt.fontColor.value) !== null && _opt$fontColor$value !== void 0 ? _opt$fontColor$value : opt.fontColor;
|
|
51727
51801
|
ctx.textAlign = 'right';
|
|
51728
51802
|
ctx.fillText(valueText, this.tooltipDOM.offsetWidth - boxPadding.r, itemY);
|
|
51729
51803
|
ctx.restore();
|
|
@@ -51744,7 +51818,7 @@ var plugins_tooltip_modules = {
|
|
|
51744
51818
|
* @returns {undefined}
|
|
51745
51819
|
*/
|
|
51746
51820
|
drawToolTipForHeatMap: function drawToolTipForHeatMap(hitInfo, context) {
|
|
51747
|
-
var _opt$fontColor$label2, _opt$
|
|
51821
|
+
var _opt$fontColor$label2, _opt$fontColor$value2;
|
|
51748
51822
|
|
|
51749
51823
|
var ctx = context;
|
|
51750
51824
|
var items = hitInfo.items;
|
|
@@ -51818,15 +51892,21 @@ var plugins_tooltip_modules = {
|
|
|
51818
51892
|
}, hitColor);
|
|
51819
51893
|
} else {
|
|
51820
51894
|
ctx.fillStyle = hitColor;
|
|
51821
|
-
}
|
|
51895
|
+
}
|
|
51822
51896
|
|
|
51897
|
+
var curTooltipInfo = {
|
|
51898
|
+
id: hitInfo.hitId,
|
|
51899
|
+
name: hitItem.y,
|
|
51900
|
+
value: valueText,
|
|
51901
|
+
dataId: items[sId].id
|
|
51902
|
+
}; // 1. Draw value color
|
|
51823
51903
|
|
|
51824
51904
|
this.drawSeriesColorShape(ctx, opt.colorShape, {
|
|
51825
51905
|
x: itemX,
|
|
51826
51906
|
y: itemY
|
|
51827
51907
|
}); // 2. Draw value y names
|
|
51828
51908
|
|
|
51829
|
-
ctx.fillStyle =
|
|
51909
|
+
ctx.fillStyle = typeof opt.fontColor.label === 'function' ? opt.fontColor.label(curTooltipInfo) : (_opt$fontColor$label2 = opt.fontColor.label) !== null && _opt$fontColor$label2 !== void 0 ? _opt$fontColor$label2 : opt.fontColor;
|
|
51830
51910
|
ctx.textBaseline = 'Bottom';
|
|
51831
51911
|
|
|
51832
51912
|
if (this.axesY.length) {
|
|
@@ -51835,6 +51915,7 @@ var plugins_tooltip_modules = {
|
|
|
51835
51915
|
|
|
51836
51916
|
|
|
51837
51917
|
ctx.textAlign = 'right';
|
|
51918
|
+
ctx.fillStyle = typeof opt.fontColor.value === 'function' ? opt.fontColor.value(curTooltipInfo) : (_opt$fontColor$value2 = opt.fontColor.value) !== null && _opt$fontColor$value2 !== void 0 ? _opt$fontColor$value2 : opt.fontColor;
|
|
51838
51919
|
ctx.fillText(valueText, this.tooltipDOM.offsetWidth - boxPadding.r, itemY);
|
|
51839
51920
|
ctx.closePath();
|
|
51840
51921
|
},
|
|
@@ -51907,7 +51988,7 @@ var plugins_tooltip_modules = {
|
|
|
51907
51988
|
var textLineCnt = 1;
|
|
51908
51989
|
|
|
51909
51990
|
for (var ix = 0; ix < seriesList.length; ix++) {
|
|
51910
|
-
var _opt$fontColor$label3, _opt$
|
|
51991
|
+
var _opt$fontColor$label3, _opt$fontColor$value3;
|
|
51911
51992
|
|
|
51912
51993
|
var gdata = seriesList[ix].data;
|
|
51913
51994
|
var color = seriesList[ix].color;
|
|
@@ -51928,15 +52009,21 @@ var plugins_tooltip_modules = {
|
|
|
51928
52009
|
}, color);
|
|
51929
52010
|
} else {
|
|
51930
52011
|
ctx.fillStyle = color;
|
|
51931
|
-
}
|
|
52012
|
+
}
|
|
51932
52013
|
|
|
52014
|
+
var curTooltipInfo = {
|
|
52015
|
+
id: hitInfo.hitId,
|
|
52016
|
+
name: seriesList[ix].name,
|
|
52017
|
+
value: valueText,
|
|
52018
|
+
dataId: seriesList[ix].dataId
|
|
52019
|
+
}; // 1. Draw series color
|
|
51933
52020
|
|
|
51934
52021
|
this.drawSeriesColorShape(ctx, opt.colorShape, {
|
|
51935
52022
|
x: itemX,
|
|
51936
52023
|
y: itemY
|
|
51937
52024
|
}); // 2. Draw series name
|
|
51938
52025
|
|
|
51939
|
-
ctx.fillStyle =
|
|
52026
|
+
ctx.fillStyle = typeof opt.fontColor.label === 'function' ? opt.fontColor.label(curTooltipInfo) : (_opt$fontColor$label3 = opt.fontColor.label) !== null && _opt$fontColor$label3 !== void 0 ? _opt$fontColor$label3 : opt.fontColor;
|
|
51940
52027
|
ctx.textBaseline = 'Bottom';
|
|
51941
52028
|
var seriesNameSpaceWidth = opt.maxWidth - Math.round(ctx.measureText(maxValue).width) - boxPadding.l - boxPadding.r - seriesColorMarginRight - VALUE_MARGIN;
|
|
51942
52029
|
var xPos = itemX + seriesColorMarginRight;
|
|
@@ -51974,6 +52061,7 @@ var plugins_tooltip_modules = {
|
|
|
51974
52061
|
ctx.save(); // 3. Draw value
|
|
51975
52062
|
|
|
51976
52063
|
ctx.textAlign = 'right';
|
|
52064
|
+
ctx.fillStyle = typeof opt.fontColor.value === 'function' ? opt.fontColor.value(curTooltipInfo) : (_opt$fontColor$value3 = opt.fontColor.value) !== null && _opt$fontColor$value3 !== void 0 ? _opt$fontColor$value3 : opt.fontColor;
|
|
51977
52065
|
ctx.fillText(valueText, this.tooltipDOM.offsetWidth - boxPadding.r, itemY);
|
|
51978
52066
|
ctx.restore();
|
|
51979
52067
|
ctx.closePath(); // 4. add lineSpacing
|
|
@@ -52025,7 +52113,7 @@ var plugins_tooltip_modules = {
|
|
|
52025
52113
|
var opt = (_this$options5 = this.options) === null || _this$options5 === void 0 ? void 0 : _this$options5.tooltip;
|
|
52026
52114
|
|
|
52027
52115
|
if ((_opt$formatter2 = opt.formatter) !== null && _opt$formatter2 !== void 0 && _opt$formatter2.html) {
|
|
52028
|
-
var _opt$formatter3, _opt$fontColor$title, _opt$
|
|
52116
|
+
var _opt$formatter3, _opt$fontColor$title, _opt$fontColor;
|
|
52029
52117
|
|
|
52030
52118
|
this.tooltipDOM.innerHTML = '';
|
|
52031
52119
|
var seriesList = [];
|
|
@@ -52046,7 +52134,7 @@ var plugins_tooltip_modules = {
|
|
|
52046
52134
|
this.tooltipDOM.style.overflowY = 'hidden';
|
|
52047
52135
|
this.tooltipDOM.style.backgroundColor = opt.backgroundColor;
|
|
52048
52136
|
this.tooltipDOM.style.border = "1px solid ".concat(opt.borderColor);
|
|
52049
|
-
this.tooltipDOM.style.color = (_opt$fontColor$title = (_opt$
|
|
52137
|
+
this.tooltipDOM.style.color = (_opt$fontColor$title = (_opt$fontColor = opt.fontColor) === null || _opt$fontColor === void 0 ? void 0 : _opt$fontColor.title) !== null && _opt$fontColor$title !== void 0 ? _opt$fontColor$title : opt.fontColor;
|
|
52050
52138
|
}
|
|
52051
52139
|
},
|
|
52052
52140
|
|
|
@@ -58922,6 +59010,10 @@ var treeGrid_uses_checkEvent = function checkEvent(params) {
|
|
|
58922
59010
|
*/
|
|
58923
59011
|
|
|
58924
59012
|
|
|
59013
|
+
var isEachMode = function isEachMode() {
|
|
59014
|
+
return checkInfo.useCheckbox.mode === 'each';
|
|
59015
|
+
};
|
|
59016
|
+
|
|
58925
59017
|
var unCheckedRow = function unCheckedRow(row) {
|
|
58926
59018
|
var index = stores.treeStore.findIndex(function (item) {
|
|
58927
59019
|
return item.index === row.index;
|
|
@@ -58933,6 +59025,10 @@ var treeGrid_uses_checkEvent = function checkEvent(params) {
|
|
|
58933
59025
|
};
|
|
58934
59026
|
|
|
58935
59027
|
var onCheckChildren = function onCheckChildren(node) {
|
|
59028
|
+
if (isEachMode()) {
|
|
59029
|
+
return;
|
|
59030
|
+
}
|
|
59031
|
+
|
|
58936
59032
|
if (node.hasChild) {
|
|
58937
59033
|
node.children.forEach(function (children) {
|
|
58938
59034
|
var childNode = children;
|
|
@@ -58957,6 +59053,10 @@ var treeGrid_uses_checkEvent = function checkEvent(params) {
|
|
|
58957
59053
|
};
|
|
58958
59054
|
|
|
58959
59055
|
var onCheckParent = function onCheckParent(node) {
|
|
59056
|
+
if (isEachMode()) {
|
|
59057
|
+
return;
|
|
59058
|
+
}
|
|
59059
|
+
|
|
58960
59060
|
var parentNode = node.parent;
|
|
58961
59061
|
|
|
58962
59062
|
if (parentNode) {
|
|
@@ -59074,8 +59174,12 @@ var treeGrid_uses_checkEvent = function checkEvent(params) {
|
|
|
59074
59174
|
|
|
59075
59175
|
|
|
59076
59176
|
var onCheckAll = function onCheckAll(event) {
|
|
59177
|
+
var _stores$store;
|
|
59178
|
+
|
|
59077
59179
|
var status = checkInfo.isHeaderChecked;
|
|
59078
|
-
var store = stores.store
|
|
59180
|
+
var store = (_stores$store = stores.store) === null || _stores$store === void 0 ? void 0 : _stores$store.filter(function (row) {
|
|
59181
|
+
return row.isFilter;
|
|
59182
|
+
});
|
|
59079
59183
|
|
|
59080
59184
|
if (pageInfo.isClientPaging) {
|
|
59081
59185
|
store = getPagingData();
|