mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-19 15:31:04 +02:00
doc
This commit is contained in:
@@ -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[];
|
||||||
|
Reference in New Issue
Block a user