@tetacom/svg-charts 1.4.12 → 1.4.13
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.
|
@@ -2076,6 +2076,11 @@ class ZoomableDirective {
|
|
|
2076
2076
|
const domain = this.axis.orientation === AxisOrientation.y
|
|
2077
2077
|
? event.transform.rescaleY(origin).domain()
|
|
2078
2078
|
: event.transform.rescaleX(origin).domain();
|
|
2079
|
+
if (domain[0] === null || domain[0] === undefined
|
|
2080
|
+
|| domain[1] === null || domain[1] === undefined
|
|
2081
|
+
|| Math.abs(domain[0] - domain[1]) < 0.000001) {
|
|
2082
|
+
return;
|
|
2083
|
+
}
|
|
2079
2084
|
const message = new ZoomMessage({
|
|
2080
2085
|
eventType: event.type,
|
|
2081
2086
|
axis: {
|