evui 3.1.46 → 3.1.50
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 +23 -8
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +23 -8
- 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/chart.core.js +1 -1
- package/src/components/chart/element/element.bar.js +1 -1
- package/src/components/chart/model/model.store.js +19 -4
package/dist/evui.common.js
CHANGED
|
@@ -7805,7 +7805,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
7805
7805
|
/***/ "9224":
|
|
7806
7806
|
/***/ (function(module) {
|
|
7807
7807
|
|
|
7808
|
-
module.exports = JSON.parse("{\"a\":\"3.1.
|
|
7808
|
+
module.exports = JSON.parse("{\"a\":\"3.1.50\"}");
|
|
7809
7809
|
|
|
7810
7810
|
/***/ }),
|
|
7811
7811
|
|
|
@@ -30943,15 +30943,30 @@ var modules = {
|
|
|
30943
30943
|
* @returns {object} data for each graph point
|
|
30944
30944
|
*/
|
|
30945
30945
|
addData: function addData(gdata, ldata) {
|
|
30946
|
-
var
|
|
30946
|
+
var _gdataColor;
|
|
30947
30947
|
|
|
30948
30948
|
var odata = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
30949
30949
|
var bdata = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
30950
30950
|
var isTop = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
30951
30951
|
var data;
|
|
30952
|
-
var gdataValue =
|
|
30953
|
-
var odataValue =
|
|
30954
|
-
var
|
|
30952
|
+
var gdataValue = null;
|
|
30953
|
+
var odataValue = null;
|
|
30954
|
+
var gdataColor = null;
|
|
30955
|
+
var odataColor = null;
|
|
30956
|
+
|
|
30957
|
+
if (gdata !== null && _typeof(gdata) === 'object') {
|
|
30958
|
+
gdataValue = gdata.value;
|
|
30959
|
+
gdataColor = gdata.color;
|
|
30960
|
+
} else {
|
|
30961
|
+
gdataValue = gdata;
|
|
30962
|
+
}
|
|
30963
|
+
|
|
30964
|
+
if (odata !== null && _typeof(odata) === 'object') {
|
|
30965
|
+
odataValue = odata.value;
|
|
30966
|
+
odataColor = odata.color;
|
|
30967
|
+
} else {
|
|
30968
|
+
odataValue = odata;
|
|
30969
|
+
}
|
|
30955
30970
|
|
|
30956
30971
|
if (this.options.horizontal) {
|
|
30957
30972
|
data = {
|
|
@@ -30973,7 +30988,7 @@ var modules = {
|
|
|
30973
30988
|
data.yp = null;
|
|
30974
30989
|
data.w = null;
|
|
30975
30990
|
data.h = null;
|
|
30976
|
-
data.dataColor =
|
|
30991
|
+
data.dataColor = (_gdataColor = gdataColor) !== null && _gdataColor !== void 0 ? _gdataColor : odataColor;
|
|
30977
30992
|
data.isTop = isTop;
|
|
30978
30993
|
return data;
|
|
30979
30994
|
},
|
|
@@ -33832,7 +33847,7 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
33832
33847
|
return;
|
|
33833
33848
|
}
|
|
33834
33849
|
|
|
33835
|
-
if (
|
|
33850
|
+
if (!isStackBar && isBorderRadius || isStackBar && isBorderRadius && isTop) {
|
|
33836
33851
|
try {
|
|
33837
33852
|
this.drawRoundedRect(ctx, positions);
|
|
33838
33853
|
} catch (e) {
|
|
@@ -39133,7 +39148,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
39133
39148
|
pos: null,
|
|
39134
39149
|
value: null
|
|
39135
39150
|
};
|
|
39136
|
-
this.createSeriesSet(series, options.type);
|
|
39151
|
+
this.createSeriesSet(series, options.type, options.horizontal);
|
|
39137
39152
|
|
|
39138
39153
|
if (this.legendDOM) {
|
|
39139
39154
|
this.resetLegend();
|