From 329b52e670a3a87c135a0cfa7009d6b8a9dcb7ac Mon Sep 17 00:00:00 2001 From: Thomas <9749173+uhthomas@users.noreply.github.com> Date: Fri, 16 Jun 2023 16:09:28 +0100 Subject: [PATCH] use svelte motion tweening for animation (#2788) It look like Svelte has a concept of 'tweening' for writing animations, which should reduce the complexity of the animation code. Thanks to @probablykasper for finding this. A lot of the logic has been rewritten for reactivity, which further reduces complexity. --- .../memory-page/memory-viewer.svelte | 139 +++++++----------- 1 file changed, 51 insertions(+), 88 deletions(-) diff --git a/web/src/lib/components/memory-page/memory-viewer.svelte b/web/src/lib/components/memory-page/memory-viewer.svelte index 878cb88e8c..cbc7c95f7d 100644 --- a/web/src/lib/components/memory-page/memory-viewer.svelte +++ b/web/src/lib/components/memory-page/memory-viewer.svelte @@ -1,5 +1,4 @@
@@ -136,12 +99,12 @@ (paused = !paused)} />
- +
@@ -215,7 +178,7 @@ {/if}
@@ -226,7 +189,7 @@ {/if}