This commit is contained in:
dwelle
2025-08-21 23:17:41 +02:00
parent 23a6b6d3df
commit 110afc3c85

View File

@@ -936,8 +936,21 @@ export type ScrollConstraints = {
width: number; width: number;
height: number; height: number;
animateOnNextUpdate?: boolean; animateOnNextUpdate?: boolean;
/**
* a facotr <0-1> that determines how much you can zoom out beyond the scroll
* constraints.
*/
viewportZoomFactor?: number; viewportZoomFactor?: number;
/**
* If true, the user will not be able to zoom out beyond the scroll
* constraints (taking into account the viewportZoomFactor).
*/
lockZoom?: boolean; lockZoom?: boolean;
/**
* <0-1> - how much can you scroll beyond the constrained area within the
* timeout window. Note you will still be snapped back to the constrained area
* after the timeout.
*/
overscrollAllowance?: number; overscrollAllowance?: number;
}; };
export type PendingExcalidrawElements = ExcalidrawElement[]; export type PendingExcalidrawElements = ExcalidrawElement[];