Test extensively & refactor, this has to bulletproof for next.1
Noticed (issues) during testing:
[x] Improve / Refactor SvelthreeGLTF and related types (related to using "strict": true in tsconfig.json + dx)
[x] with LoadedGLTF tests (generated components) see #100
Test: (twice) set target to a component reference + set target to false
SpotLight
[x] Mesh
[x] Object3D
[x] Group
[x] Scene
[x] PointLight
[x] SpotLight
[x] DirectionalLight
[x] OrthographicCamera
[x] PerspectiveCamera
[x] LoadedGLTF
[x] Points
DirectionalLight
[x] Mesh
[x] Object3D
[x] Group
[x] Scene
[x] PointLight
[x] SpotLight
[x] DirectionalLight
[x] OrthographicCamera
[x] PerspectiveCamera
[x] LoadedGLTF
[x] Points
Test: (twice) set target to component's three.js instance reference + set target to false
SpotLight
[x] Mesh
[x] Object3D
[x] Group
[x] Scene
[x] PointLight
[x] SpotLight
[x] DirectionalLight
[x] OrthographicCamera
[x] PerspectiveCamera
[x] LoadedGLTF
[x] Points
DirectionalLight
[x] Mesh
[x] Object3D
[x] Group
[x] Scene
[x] PointLight
[x] SpotLight
[x] DirectionalLight
[x] OrthographicCamera
[x] PerspectiveCamera
[x] LoadedGLTF
[x] Points
Test: (twice) set target to a premade / manually added three.js instance + set target to false
SpotLight
[x] Mesh
[x] Object3D
[x] Group
[x] Scene
[x] PointLight
[x] SpotLight
[x] DirectionalLight
[x] OrthographicCamera
[x] PerspectiveCameraLoadedGLTF (separate test targeting objects inside a complex loaded GLTF)
[x] Points
DirectionalLight
[x] Mesh
[x] Object3D
[x] Group
[x] Scene
[x] PointLight
[x] SpotLight
[x] DirectionalLight
[x] OrthographicCamera
[x] PerspectiveCameraLoadedGLTF (separate test targeting objects inside a complex loaded GLTF)
[x] Points
Test: (twice) set target to a nested (grouped) component reference + set target to false
SpotLight
[x] (<Group>) Mesh
[x] (<Object3D>) Mesh
[x] (<Mesh>) Mesh
DirectionalLight
[x] (<Group>) Mesh
[x] (<Object3D>) Mesh
[x] (<Mesh>) Mesh
Test: (twice) set target to an object inside a complex loaded GLTF + set target to false
SpotLight
[x] LoadedGLTF component (just loaded): iterate through LoadedGLTF component's container instance's children (three.js instances) and set them as target.
[x] LoadedGLTF component (loaded + generated): iterate through generated svelthree components and set them as target.
[x] LoadedGLTF component (loaded + generated): iterate through generated svelthree components' three.js instances and set them as target.
[x] Load a GLTF via THREE.GLTFLoader only, add it to the scene, iterate through GLTF container's children (three.js instances) and set them as target.
DirectionalLight
[x] LoadedGLTF component (just loaded): iterate through LoadedGLTF component's container instance's children (three.js instances) and set them as target.
[x] LoadedGLTF component (loaded + generated): iterate through generated svelthree components and set them as target.
[x] LoadedGLTF component (loaded + generated): iterate through generated svelthree components' three.js instances and set them as target.
[x] Load a GLTF via THREE.GLTFLoader only, add it to the scene, iterate through GLTF container's children (three.js instances) and set them as target.
Test extensively & refactor, this has to bulletproof for
next.1
Noticed (issues) during testing:
SvelthreeGLTF
and related types (related to using"strict": true
intsconfig.json
+ dx)LoadedGLTF
tests (generated components) see #100Test: (twice) set
target
to a component reference + settarget
tofalse
SpotLight
Mesh
Object3D
Group
Scene
PointLight
SpotLight
DirectionalLight
OrthographicCamera
PerspectiveCamera
LoadedGLTF
Points
DirectionalLight
Mesh
Object3D
Group
Scene
PointLight
SpotLight
DirectionalLight
OrthographicCamera
PerspectiveCamera
LoadedGLTF
Points
Test: (twice) set
target
to component's three.js instance reference + settarget
tofalse
SpotLight
Mesh
Object3D
Group
Scene
PointLight
SpotLight
DirectionalLight
OrthographicCamera
PerspectiveCamera
LoadedGLTF
Points
DirectionalLight
Mesh
Object3D
Group
Scene
PointLight
SpotLight
DirectionalLight
OrthographicCamera
PerspectiveCamera
LoadedGLTF
Points
Test: (twice) set
target
to a premade / manually added three.js instance + settarget
tofalse
SpotLight
Mesh
Object3D
Group
Scene
PointLight
SpotLight
DirectionalLight
OrthographicCamera
PerspectiveCamera
(separate test targeting objects inside a complex loaded GLTF)LoadedGLTF
Points
DirectionalLight
Mesh
Object3D
Group
Scene
PointLight
SpotLight
DirectionalLight
OrthographicCamera
PerspectiveCamera
(separate test targeting objects inside a complex loaded GLTF)LoadedGLTF
Points
Test: (twice) set
target
to a nested (grouped) component reference + settarget
tofalse
SpotLight
<Group>
)Mesh
<Object3D>
)Mesh
<Mesh>
)Mesh
DirectionalLight
<Group>
)Mesh
<Object3D>
)Mesh
<Mesh>
)Mesh
Test: (twice) set
target
to an object inside a complex loaded GLTF + settarget
tofalse
SpotLight
LoadedGLTF
component (just loaded): iterate throughLoadedGLTF
component'scontainer
instance's children (three.js instances) and set them astarget
.LoadedGLTF
component (loaded + generated): iterate through generatedsvelthree
components and set them astarget
.LoadedGLTF
component (loaded + generated): iterate through generatedsvelthree
components' three.js instances and set them astarget
.THREE.GLTFLoader
only, add it to the scene, iterate through GLTF container's children (three.js instances) and set them astarget
.DirectionalLight
LoadedGLTF
component (just loaded): iterate throughLoadedGLTF
component'scontainer
instance's children (three.js instances) and set them astarget
.LoadedGLTF
component (loaded + generated): iterate through generatedsvelthree
components and set them astarget
.LoadedGLTF
component (loaded + generated): iterate through generatedsvelthree
components' three.js instances and set them astarget
.THREE.GLTFLoader
only, add it to the scene, iterate through GLTF container's children (three.js instances) and set them astarget
.