@mui/x-charts
Version:
The community edition of MUI X Charts components.
6 lines • 321 B
TypeScript
/**
* Transform mouse event position to coordinates inside the SVG surface or the layer container.
* @param element The SVG surface or the layer container
* @param event The mouseEvent to transform
*/
export declare function getSurfacePoint(element: Element, event: Pick<MouseEvent, 'clientX' | 'clientY'>): DOMPoint;