From 77216955000efb2ea7ed2f0a5ee33708134df823 Mon Sep 17 00:00:00 2001 From: Drew C Youngren Date: Fri, 3 Nov 2023 22:22:34 -0400 Subject: [PATCH 1/5] Name select elements --- media/src/Story.svelte | 1 + media/src/docs/HowTo.svelte | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/media/src/Story.svelte b/media/src/Story.svelte index 6226059b..21447e17 100644 --- a/media/src/Story.svelte +++ b/media/src/Story.svelte @@ -15,6 +15,7 @@ + - - - - - - - +
+
+

3D Objects

+
+ - {#if currentMode === 'session' && isHost} - - {/if} -
-
- - {#each objects as { uuid, kind, params, color, title, animation, ...etc } (uuid)} -
- { - objects = objects.filter( - (b) => b.uuid !== uuid - ); - selectedObjects = - selectedObjects.filter( - (objectId) => - objectId !== uuid - ); +
+ + {#each objects as { uuid, kind, params, color, title, animation, ...etc } (uuid)} +
selectObject(uuid)} - bind:selectedPoint - /> -
- {/each} -
+ > + { + objects = objects.filter( + (b) => b.uuid !== uuid + ); + selectedObjects = + selectedObjects.filter( + (objectId) => + objectId !== uuid + ); + }} + bind:color + bind:title + bind:animation + {uuid} + {gridStep} + {gridMax} + on:animate={animateIfNotAnimating} + bind:selectedObjects + selected={selectedObjects.includes( + uuid + )} + onSelect={() => selectObject(uuid)} + bind:selectedPoint + /> +
+ {/each} +
- - - {#if debug} -
- - + - + - + - + - + -
- {/if} + ]; + }}>unanim field + + {/if} + + - + - - + + + +