@visactor/react-vchart 2.0.16 → 2.0.17

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/build/index.js CHANGED
@@ -46160,6 +46160,9 @@
46160
46160
  }
46161
46161
  return isArray$1(spec) ? spec.map(s => functionTransform(s, VChart)) : spec;
46162
46162
  }
46163
+ function transformFunctionAttribute(att, ...args) {
46164
+ return isFunction$1(att) ? att(...args) : att;
46165
+ }
46163
46166
 
46164
46167
  const initTextMeasure = (textSpec, option, useNaiveCanvas) => initTextMeasure$1(textSpec, option, useNaiveCanvas, {
46165
46168
  fontFamily: token.fontFamily,
@@ -55160,7 +55163,7 @@
55160
55163
  _getGridAttributes() {
55161
55164
  const spec = this._spec;
55162
55165
  return {
55163
- alternateColor: spec.grid.alternateColor,
55166
+ alternateColor: transformFunctionAttribute(spec.grid.alternateColor),
55164
55167
  alignWithLabel: spec.grid.alignWithLabel,
55165
55168
  style: isFunction$1(spec.grid.style) ? (datum, index) => {
55166
55169
  var _a, _b;
@@ -55172,7 +55175,7 @@
55172
55175
  } : {
55173
55176
  type: "line",
55174
55177
  visible: spec.subGrid.visible,
55175
- alternateColor: spec.subGrid.alternateColor,
55178
+ alternateColor: transformFunctionAttribute(spec.subGrid.alternateColor),
55176
55179
  style: transformToGraphic(spec.subGrid.style)
55177
55180
  }
55178
55181
  };
@@ -88776,7 +88779,7 @@
88776
88779
 
88777
88780
  const VChartSimple = createChart('VChartSimple');
88778
88781
 
88779
- const version = "2.0.16";
88782
+ const version = "2.0.17";
88780
88783
 
88781
88784
  exports.Area = Area;
88782
88785
  exports.AreaChart = AreaChart;