mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2026-12-03 06:43:35 +00:00
Harden embed controls for native tables and mobile input
This commit is contained in:
1 parent
0f24b038bb
commit
76ffd8ed4d
19 files changed
+415
-61
No files matched your search
@@ -7,6 +7,10 @@ export function embedTestDOM() {
|
||||
disconnect() { this.connected = false; }
|
||||
fire() { if (this.connected) this.callback(); }
|
||||
} };
|
||||
window.ResizeObserver = class extends window.MutationObserver {
|
||||
constructor(callback) { super(callback); this.resize = true; }
|
||||
observe(target) { super.observe(); this.target = target; }
|
||||
};
|
||||
const document = { defaultView: window, activeElement: null };
|
||||
class Element {
|
||||
constructor(options = {}) { this.children = []; this.attrs = { ...options.attr }; this.classes = new Set((options.cls || "").split(" ")); this.events = new Map(); this.style = {}; this.ownerDocument = document; this.isConnected = true; this.captures = new Set(); this.bounds = { left: 0, top: 0, right: 700, bottom: 130, width: 700, height: 130 }; }
|
||||
|
||||
Reference in new issue
Block a user