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.
@@ -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.46\"}");
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 _gdata$value, _odata$value2, _gdata$color;
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 = (_gdata$value = gdata === null || gdata === void 0 ? void 0 : gdata.value) !== null && _gdata$value !== void 0 ? _gdata$value : gdata;
30953
- var odataValue = (_odata$value2 = odata === null || odata === void 0 ? void 0 : odata.value) !== null && _odata$value2 !== void 0 ? _odata$value2 : odata;
30954
- var dataColor = (_gdata$color = gdata === null || gdata === void 0 ? void 0 : gdata.color) !== null && _gdata$color !== void 0 ? _gdata$color : odata === null || odata === void 0 ? void 0 : odata.color;
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 = dataColor || null;
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 (isBorderRadius && isStackBar && isTop) {
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();