mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: add possibility to limit scroll area
This commit is contained in:
parent
2e46e27490
commit
75f8e904cc
3 changed files with 99 additions and 2 deletions
|
@ -223,6 +223,12 @@ export type AppState = {
|
|||
pendingImageElementId: ExcalidrawImageElement["id"] | null;
|
||||
showHyperlinkPopup: false | "info" | "editor";
|
||||
selectedLinearElement: LinearElementEditor | null;
|
||||
scrollConstraints: {
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type UIAppState = Omit<
|
||||
|
@ -549,6 +555,7 @@ export type ExcalidrawImperativeAPI = {
|
|||
* used in conjunction with view mode (props.viewModeEnabled).
|
||||
*/
|
||||
updateFrameRendering: InstanceType<typeof App>["updateFrameRendering"];
|
||||
setScrollConstraints: InstanceType<typeof App>["setScrollConstraints"];
|
||||
};
|
||||
|
||||
export type Device = Readonly<{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue