feat: use single function for animating canvas translation

This commit is contained in:
Arnošt Pleskot 2023-09-13 16:18:47 +02:00
parent edf54d1543
commit ddb08ce732
No known key found for this signature in database
2 changed files with 91 additions and 82 deletions

View file

@ -665,3 +665,9 @@ export type ScrollConstraints = {
viewportZoomFactor?: number;
lockZoom?: boolean;
};
export type AnimateTranslateCanvasValues = {
scrollX: AppState["scrollX"];
scrollY: AppState["scrollY"];
zoom: AppState["zoom"]["value"];
};