This commit is contained in:
Zsolt Viczian
2021-09-10 16:16:13 +02:00
parent 5c2c1ebf5e
commit e8666797d7
6 changed files with 26 additions and 10 deletions

View File

@@ -53,7 +53,7 @@ setView(view:ExcalidrawView|"first"|"active"):ExcalidrawView;
getExcalidrawAPI():any;
getViewSelectedElement():ExcalidrawElement;
getViewSelectedElements():ExcalidrawElement[];
viewToggleFullScreen():void;
viewToggleFullScreen(forceViewMode?:boolean):void;
connectObjectWithViewSelectedElement(objectA:string,connectionA: ConnectionPoint, connectionB: ConnectionPoint, formatting?:{numberOfPoints?: number,startArrowHead?:string,endArrowHead?:string, padding?: number}):boolean;
addElementsToView(repositionToCursor:boolean, save:boolean):Promise<boolean>;
};

View File

@@ -117,10 +117,12 @@ Note: you can call `getExcalidrawAPI().getSceneElements()` to retreive all the e
#### viewToggleFullScreen()
```typescript
viewToggleFullScreen():void
viewToggleFullScreen(forceViewMode?:boolean):void;
```
Toggles targetView between fullscreen mode and normal mode.
Toggles targetView between fullscreen mode and normal mode. By setting forceViewMode to `true` will change Excalidraw mode to View mode. Default is `false`.
The function will do nothing on Obsidian Mobile.
#### connectObjectWithViewSelectedElement()
```typescript