mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: use single function for animating canvas translation
This commit is contained in:
parent
edf54d1543
commit
ddb08ce732
2 changed files with 91 additions and 82 deletions
|
@ -665,3 +665,9 @@ export type ScrollConstraints = {
|
|||
viewportZoomFactor?: number;
|
||||
lockZoom?: boolean;
|
||||
};
|
||||
|
||||
export type AnimateTranslateCanvasValues = {
|
||||
scrollX: AppState["scrollX"];
|
||||
scrollY: AppState["scrollY"];
|
||||
zoom: AppState["zoom"]["value"];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue