@react-magma/charts 13.3.1 → 13.3.2-v4-next.0

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.
@@ -51795,14 +51795,15 @@
51795
51795
  theme.chartColorsInverse,
51796
51796
  isInverse,
51797
51797
  ]);
51798
- var newOptions = __assign(__assign(__assign({}, options), { theme: isInverse ? ChartTheme.G100 : ChartTheme.WHITE, color: {
51798
+ var hasChartToolbar = Boolean(chartToolbar);
51799
+ var newOptions = React__namespace.useMemo(function () { return (__assign(__assign(__assign({}, options), { theme: isInverse ? ChartTheme.G100 : ChartTheme.WHITE, color: {
51799
51800
  scale: colorScale,
51800
51801
  }, tooltip: __assign(__assign({}, ((options === null || options === void 0 ? void 0 : options.tooltip) || {})), { truncation: {
51801
51802
  type: 'none',
51802
- } }) }), (chartToolbar
51803
+ } }) }), (hasChartToolbar
51803
51804
  ? __assign({ toolbar: { enabled: false }, title: chartTitle }, (options.fileDownload
51804
51805
  ? {}
51805
- : { fileDownload: { fileName: chartTitle } })) : {}));
51806
+ : { fileDownload: { fileName: chartTitle } })) : {}))); }, [options, isInverse, colorScale, hasChartToolbar, chartTitle]);
51806
51807
  var ChartType = ALL_CHARTS[type];
51807
51808
  React__namespace.useEffect(function () {
51808
51809
  if (!ariaLabel)