mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Make gesture.pointers a Map instead of an array of pointers (#877)
This commit is contained in:
parent
92ba401da8
commit
8d8f9f23bd
3 changed files with 25 additions and 30 deletions
|
@ -36,14 +36,13 @@ export type AppState = {
|
|||
selectedElementIds: { [id: string]: boolean };
|
||||
};
|
||||
|
||||
export type Pointer = Readonly<{
|
||||
id: number;
|
||||
export type PointerCoords = Readonly<{
|
||||
x: number;
|
||||
y: number;
|
||||
}>;
|
||||
|
||||
export type Gesture = {
|
||||
pointers: Array<Pointer>;
|
||||
pointers: Map<number, PointerCoords>;
|
||||
lastCenter: { x: number; y: number } | null;
|
||||
initialDistance: number | null;
|
||||
initialScale: number | null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue