@mui/x-charts
Version:
The community edition of MUI X Charts components.
7 lines • 347 B
text/typescript
/**
* Transform mouse event position to coordinates relative to the layer container.
* (0, 0) is the top-left corner of the layer container.
* @param element The the layer container
* @param event The mouseEvent to transform
*/
export declare function getChartPoint(element: Element, event: Pick<MouseEvent, 'clientX' | 'clientY'>): DOMPoint;