From 43eadf2ec6c9629c789cde666ce42abf32cc8b2b Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 1 Mar 2023 08:44:02 +0000 Subject: [PATCH] Add WIP virtual dom implementation to massively increase performance --- .../src/components/sheet/NewRow.svelte | 4 +- .../src/components/sheet/ResizeOverlay.svelte | 2 +- .../src/components/sheet/ScrollOverlay.svelte | 124 ++++++++++++++++++ .../src/components/sheet/Sheet.svelte | 5 +- .../src/components/sheet/SheetBody.svelte | 46 ++++--- .../src/components/sheet/SheetRow.svelte | 7 +- .../src/components/sheet/stores/viewport.js | 19 +-- 7 files changed, 168 insertions(+), 39 deletions(-) create mode 100644 packages/frontend-core/src/components/sheet/ScrollOverlay.svelte diff --git a/packages/frontend-core/src/components/sheet/NewRow.svelte b/packages/frontend-core/src/components/sheet/NewRow.svelte index 78a990ff58..11f99de5a6 100644 --- a/packages/frontend-core/src/components/sheet/NewRow.svelte +++ b/packages/frontend-core/src/components/sheet/NewRow.svelte @@ -14,7 +14,7 @@ } -
+
@@ -33,9 +33,7 @@ diff --git a/packages/frontend-core/src/components/sheet/Sheet.svelte b/packages/frontend-core/src/components/sheet/Sheet.svelte index 72d648c32c..920964e758 100644 --- a/packages/frontend-core/src/components/sheet/Sheet.svelte +++ b/packages/frontend-core/src/components/sheet/Sheet.svelte @@ -100,9 +100,10 @@
+ + - - {#each $visibleRows as row (row._id)} + {#each $visibleRows as row} {/each} diff --git a/packages/frontend-core/src/components/sheet/SheetBody.svelte b/packages/frontend-core/src/components/sheet/SheetBody.svelte index f7cf7c63ab..6a5bfe68d5 100644 --- a/packages/frontend-core/src/components/sheet/SheetBody.svelte +++ b/packages/frontend-core/src/components/sheet/SheetBody.svelte @@ -1,6 +1,7 @@ -
+
selectRow(row._id)}>
@@ -76,8 +78,7 @@