vx event
npm install @vx/event```
npm install --save @vx/event
@vx/event exports a utility localPoint that takes an SVG MouseEvent or TouchEvent as input{ x: number; y: number; }
and returns a point coordinate (or null in the case the event has noownerSVGElement) within the coordinate system of the SVG. This makes placement of tooltips,
finding nearby datum, etc. easier.
Example:
`tsx
import { localPoint } from '@vx/event';
`
You may optionally pass a reference to the SVG node
`tsx
import { useRef } from 'react';
import { localPoint } from '@vx/event';
const svgRef = useRef
``