From 42c17a8405073feeccd29373cb076d541c68d09b Mon Sep 17 00:00:00 2001 From: Vatroslav Vrbanic Date: Thu, 16 Jun 2022 17:36:36 +0200 Subject: [PATCH] Fix `shadow_dom_target` not ready in non-svelthree 'container' components, close #72 This will add / append shadow DOM elements correctly, even for svelthree-components inside non-svelthree 'wrapper' components. --- src/components/AmbientLight.svelte | 32 +++++--- src/components/CubeCamera.svelte | 32 +++++--- src/components/DirectionalLight.svelte | 32 +++++--- src/components/Empty.svelte | 32 +++++--- src/components/HemisphereLight.svelte | 32 +++++--- src/components/LoadedGLTF.svelte | 98 +++++++++++++++++------- src/components/Mesh.svelte | 98 +++++++++++++++++------- src/components/OrthographicCamera.svelte | 32 +++++--- src/components/PerspectiveCamera.svelte | 32 +++++--- src/components/PointLight.svelte | 32 +++++--- src/components/Points.svelte | 98 +++++++++++++++++------- src/components/RectAreaLight.svelte | 32 +++++--- src/components/Scene.svelte | 98 +++++++++++++++++------- src/components/SpotLight.svelte | 32 +++++--- 14 files changed, 476 insertions(+), 236 deletions(-) diff --git a/src/components/AmbientLight.svelte b/src/components/AmbientLight.svelte index 2c2a301..fd8d98a 100644 --- a/src/components/AmbientLight.svelte +++ b/src/components/AmbientLight.svelte @@ -19,7 +19,7 @@ AmbientLight cannot be used to cast shadows as it doesn't have a direction. Posi