mario-education 2.4.544-feedback → 2.4.546-feedback
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/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33650,7 +33650,7 @@ var BarChart = function BarChart(_ref) {
|
|
|
33650
33650
|
enabled: false
|
|
33651
33651
|
};
|
|
33652
33652
|
return opts;
|
|
33653
|
-
}, [min, months, activeColumn, colors, maxSeries, dayOfWeek, isCountSeries, print, lowMetricStudents, labelDate
|
|
33653
|
+
}, [min, months, activeColumn, colors, maxSeries, dayOfWeek, isCountSeries, print, lowMetricStudents, labelDate]);
|
|
33654
33654
|
|
|
33655
33655
|
var showTooltipAtIndex = function showTooltipAtIndex(dataPointIndex, isSelect) {
|
|
33656
33656
|
var _chartWrapperRef$curr;
|
|
@@ -33665,13 +33665,15 @@ var BarChart = function BarChart(_ref) {
|
|
|
33665
33665
|
var relativeX = barCenterX - containerRect.left;
|
|
33666
33666
|
var containerWidth = containerRect.width;
|
|
33667
33667
|
var direction = relativeX > containerWidth / 2 ? "left" : "right";
|
|
33668
|
-
|
|
33668
|
+
var newTooltip = {
|
|
33669
33669
|
x: relativeX,
|
|
33670
33670
|
y: rect.top - containerRect.top,
|
|
33671
33671
|
dataPointIndex: dataPointIndex,
|
|
33672
33672
|
direction: direction,
|
|
33673
33673
|
isSelect: isSelect != null ? isSelect : false
|
|
33674
|
-
}
|
|
33674
|
+
};
|
|
33675
|
+
tooltipDataRef.current = newTooltip;
|
|
33676
|
+
setTooltipData(newTooltip);
|
|
33675
33677
|
}
|
|
33676
33678
|
};
|
|
33677
33679
|
|