mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2026-12-03 06:43:35 +00:00
fixed any vs. ExcalidrawImperativeAPI
This commit is contained in:
1 parent
8fefcbcf66
commit
ce2713ecdb
14 files changed
+74
-74
No files matched your search
@@ -21,7 +21,7 @@ export class UniversalInsertFileModal extends Modal {
|
||||
private view: ExcalidrawView,
|
||||
) {
|
||||
super(plugin.app);
|
||||
const appState = (view.excalidrawAPI as ExcalidrawImperativeAPI).getAppState();
|
||||
const appState = (view.excalidrawAPI).getAppState();
|
||||
const containerRect = view.containerEl.getBoundingClientRect();
|
||||
const viewportWidth = window.innerWidth || document.documentElement.clientWidth;
|
||||
const viewportHeight = window.innerHeight || document.documentElement.clientHeight;
|
||||
|
||||
Reference in new issue
Block a user