+5
@@ -0,0 +1,5 @@
|
||||
import type { Coordinates } from './types';
|
||||
/**
|
||||
* Returns the normalized x and y coordinates for mouse and touch events.
|
||||
*/
|
||||
export declare function getEventCoordinates(event: Event): Coordinates | null;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export type { Coordinates } from './types';
|
||||
export { getEventCoordinates } from './getEventCoordinates';
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
export declare type Coordinates = {
|
||||
x: number;
|
||||
y: number;
|
||||
};
|
||||
Reference in New Issue
Block a user