diff options
| author | Josh Kingsley <josh@joshkingsley.me> | 2025-10-26 21:50:23 +0200 |
|---|---|---|
| committer | Josh Kingsley <josh@joshkingsley.me> | 2025-10-26 21:50:23 +0200 |
| commit | ed566a3f657e8256df9aabd107c199e6971a8f96 (patch) | |
| tree | 4cabda5caf337cf787f0049d28dfa6a33a88fa3f /web/src/components/grid | |
| parent | 5e56338bb3e9bb1bcf1ef1c1fe6afb9c7391d976 (diff) | |
feat(web): subdivide cells
Diffstat (limited to 'web/src/components/grid')
| -rw-r--r-- | web/src/components/grid/index.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/src/components/grid/index.ts b/web/src/components/grid/index.ts index 5301afb..15f26a9 100644 --- a/web/src/components/grid/index.ts +++ b/web/src/components/grid/index.ts @@ -28,6 +28,11 @@ class NotiveGridElement extends HTMLElement { } window.addEventListener("ntv:selectionchange", () => this.draw()); + window.addEventListener("ntv:grid:change", (event) => { + if (event.detail.gridId === this.gridId) { + this.draw(); + } + }); this.canvasEl.addEventListener( "mousedown", |
