layerchart 0.93.6 → 0.93.7

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.
@@ -144,6 +144,15 @@
144
144
  e.stopPropagation();
145
145
 
146
146
  const startPoint = localPoint(rootEl, e);
147
+
148
+ if (
149
+ startPoint &&
150
+ (startPoint.x < 0 || startPoint.x > $width || startPoint.y < 0 || startPoint.y > $height)
151
+ ) {
152
+ logger.debug('ignoring click as outside of chart bounds', { startPoint, $width, $height });
153
+ return;
154
+ }
155
+
147
156
  const start = {
148
157
  xDomain: [xDomain?.[0] ?? xDomainMin, xDomain?.[1] ?? xDomainMax] as [number, number],
149
158
  yDomain: [yDomain?.[0] ?? yDomainMin, yDomain?.[1] ?? yDomainMax] as [number, number],
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Sean Lynch <techniq35@gmail.com>",
5
5
  "license": "MIT",
6
6
  "repository": "techniq/layerchart",
7
- "version": "0.93.6",
7
+ "version": "0.93.7",
8
8
  "devDependencies": {
9
9
  "@changesets/cli": "^2.27.12",
10
10
  "@mdi/js": "^7.4.47",