diff --git a/src/lib/components/CubeCamera.svelte b/src/lib/components/CubeCamera.svelte index dce303b..5747348 100644 --- a/src/lib/components/CubeCamera.svelte +++ b/src/lib/components/CubeCamera.svelte @@ -706,8 +706,8 @@ Renders a `CubeMap` which can be used with **non-PBR** materials having an `.env } } - /** */ - export let lookAt: Vector3 | Parameters | Targetable | undefined = undefined + /** **shorthand** attribute for calling the `svelthree`-custom `lookAt` method with the provided value as argument. */ + export let lookAt: Vector3 | Parameters | Targetable | undefined | null = undefined $: !matrix && camera && lookAt ? set_lookat() : lookAt && camera ? console.warn(w_sh.lookAt) : null function set_lookat() { if (verbose && log_rs) console.debug(...c_rs(c_name, "lookAt", lookAt)) diff --git a/src/lib/components/Group.svelte b/src/lib/components/Group.svelte index 8673c87..ba5dc2a 100644 --- a/src/lib/components/Group.svelte +++ b/src/lib/components/Group.svelte @@ -378,8 +378,8 @@ svelthree uses svelte-accmod, where accessors are always `true`, regardless of ` } } - /** */ - export let lookAt: Vector3 | Parameters | Targetable | undefined = undefined + /** **shorthand** attribute for calling the `svelthree`-custom `lookAt` method with the provided value as argument. */ + export let lookAt: Vector3 | Parameters | Targetable | undefined | null = undefined $: !matrix && group && lookAt ? set_lookat() : lookAt && group ? console.warn(w_sh.lookAt) : null function set_lookat() { if (verbose && log_rs) console.debug(...c_rs(c_name, "lookAt", lookAt)) diff --git a/src/lib/components/LoadedGLTF.svelte b/src/lib/components/LoadedGLTF.svelte index 451c76b..82ae9d9 100644 --- a/src/lib/components/LoadedGLTF.svelte +++ b/src/lib/components/LoadedGLTF.svelte @@ -447,8 +447,8 @@ svelthree uses svelte-accmod, where accessors are always `true`, regardless of ` } } - /** */ - export let lookAt: Vector3 | Parameters | Targetable | undefined = undefined + /** **shorthand** attribute for calling the `svelthree`-custom `lookAt` method with the provided value as argument. */ + export let lookAt: Vector3 | Parameters | Targetable | undefined | null = undefined $: !matrix && container && lookAt ? set_lookat() : lookAt && container ? console.warn(w_sh.lookAt) : null function set_lookat() { if (verbose && log_rs) console.debug(...c_rs(c_name, "lookAt", lookAt)) diff --git a/src/lib/components/Mesh.svelte b/src/lib/components/Mesh.svelte index 9d9ff7e..2595691 100644 --- a/src/lib/components/Mesh.svelte +++ b/src/lib/components/Mesh.svelte @@ -573,8 +573,8 @@ svelthree uses svelte-accmod, where accessors are always `true`, regardless of ` } } - /** */ - export let lookAt: Vector3 | Parameters | Targetable | undefined = undefined + /** **shorthand** attribute for calling the `svelthree`-custom `lookAt` method with the provided value as argument. */ + export let lookAt: Vector3 | Parameters | Targetable | undefined | null = undefined $: !matrix && mesh && lookAt ? set_lookat() : lookAt && mesh ? console.warn(w_sh.lookAt) : null function set_lookat() { if (verbose && log_rs) console.debug(...c_rs(c_name, "lookAt", lookAt)) diff --git a/src/lib/components/Object3D.svelte b/src/lib/components/Object3D.svelte index f54060c..a469b13 100644 --- a/src/lib/components/Object3D.svelte +++ b/src/lib/components/Object3D.svelte @@ -380,8 +380,8 @@ svelthree uses svelte-accmod, where accessors are always `true`, regardless of ` } } - /** */ - export let lookAt: Vector3 | Parameters | Targetable | undefined = undefined + /** **shorthand** attribute for calling the `svelthree`-custom `lookAt` method with the provided value as argument. */ + export let lookAt: Vector3 | Parameters | Targetable | undefined | null = undefined $: !matrix && object3d && lookAt ? set_lookat() : lookAt && object3d ? console.warn(w_sh.lookAt) : null function set_lookat() { if (verbose && log_rs) console.debug(...c_rs(c_name, "lookAt", lookAt)) diff --git a/src/lib/components/OrthographicCamera.svelte b/src/lib/components/OrthographicCamera.svelte index 2742132..8cea2d0 100644 --- a/src/lib/components/OrthographicCamera.svelte +++ b/src/lib/components/OrthographicCamera.svelte @@ -494,8 +494,8 @@ If you use this approach you'll see a warning in the console if you define left, } } - /** */ - export let lookAt: Vector3 | Parameters | Targetable | undefined = undefined + /** **shorthand** attribute for calling the `svelthree`-custom `lookAt` method with the provided value as argument. */ + export let lookAt: Vector3 | Parameters | Targetable | undefined | null = undefined $: !matrix && camera && lookAt ? set_lookat() : lookAt && camera ? console.warn(w_sh.lookAt) : null function set_lookat() { if (verbose && log_rs) console.debug(...c_rs(c_name, "lookAt", lookAt)) diff --git a/src/lib/components/PerspectiveCamera.svelte b/src/lib/components/PerspectiveCamera.svelte index b83be9c..fea64c3 100644 --- a/src/lib/components/PerspectiveCamera.svelte +++ b/src/lib/components/PerspectiveCamera.svelte @@ -459,8 +459,8 @@ svelthree uses svelte-accmod, where accessors are always `true`, regardless of ` } } - /** */ - export let lookAt: Vector3 | Parameters | Targetable | undefined = undefined + /** **shorthand** attribute for calling the `svelthree`-custom `lookAt` method with the provided value as argument. */ + export let lookAt: Vector3 | Parameters | Targetable | undefined | null = undefined $: !matrix && camera && lookAt ? set_lookat() : lookAt && camera ? console.warn(w_sh.lookAt) : null function set_lookat() { if (verbose && log_rs) console.debug(...c_rs(c_name, "lookAt", lookAt)) diff --git a/src/lib/components/PointLight.svelte b/src/lib/components/PointLight.svelte index 993719c..176e2e0 100644 --- a/src/lib/components/PointLight.svelte +++ b/src/lib/components/PointLight.svelte @@ -377,8 +377,8 @@ svelthree uses svelte-accmod, where accessors are always `true`, regardless of ` } } - /** */ - export let lookAt: Vector3 | Parameters | Targetable | undefined = undefined + /** **shorthand** attribute for calling the `svelthree`-custom `lookAt` method with the provided value as argument. */ + export let lookAt: Vector3 | Parameters | Targetable | undefined | null = undefined $: !matrix && light && lookAt ? set_lookat() : lookAt && light ? console.warn(w_sh.lookAt) : null function set_lookat() { if (verbose && log_rs) console.debug(...c_rs(c_name, "lookAt", lookAt)) diff --git a/src/lib/components/Points.svelte b/src/lib/components/Points.svelte index aa76ffa..ec61689 100644 --- a/src/lib/components/Points.svelte +++ b/src/lib/components/Points.svelte @@ -575,8 +575,8 @@ svelthree uses svelte-accmod, where accessors are always `true`, regardless of ` } } - /** */ - export let lookAt: Vector3 | Parameters | Targetable | undefined = undefined + /** **shorthand** attribute for calling the `svelthree`-custom `lookAt` method with the provided value as argument. */ + export let lookAt: Vector3 | Parameters | Targetable | undefined | null = undefined $: !matrix && points && lookAt ? set_lookat() : lookAt && points ? console.warn(w_sh.lookAt) : null function set_lookat() { if (verbose && log_rs) console.debug(...c_rs(c_name, "lookAt", lookAt)) diff --git a/src/lib/components/RectAreaLight.svelte b/src/lib/components/RectAreaLight.svelte index a6afc5f..2e9230f 100644 --- a/src/lib/components/RectAreaLight.svelte +++ b/src/lib/components/RectAreaLight.svelte @@ -382,8 +382,8 @@ svelthree uses svelte-accmod, where accessors are always `true`, regardless of ` } } - /** */ - export let lookAt: Vector3 | Parameters | Targetable | undefined = undefined + /** **shorthand** attribute for calling the `svelthree`-custom `lookAt` method with the provided value as argument. */ + export let lookAt: Vector3 | Parameters | Targetable | undefined | null = undefined $: !matrix && light && lookAt ? set_lookat() : lookAt && light ? console.warn(w_sh.lookAt) : null function set_lookat() { if (verbose && log_rs) console.debug(...c_rs(c_name, "lookAt", lookAt)) diff --git a/src/lib/components/Scene.svelte b/src/lib/components/Scene.svelte index a835d6b..9986fa4 100644 --- a/src/lib/components/Scene.svelte +++ b/src/lib/components/Scene.svelte @@ -500,8 +500,8 @@ svelthree uses svelte-accmod, where accessors are always `true`, regardless of ` } } - /** */ - export let lookAt: Vector3 | Parameters | Targetable | undefined = undefined + /** **shorthand** attribute for calling the `svelthree`-custom `lookAt` method with the provided value as argument. */ + export let lookAt: Vector3 | Parameters | Targetable | undefined | null = undefined $: !matrix && scene && lookAt ? set_lookat() : lookAt && scene ? console.warn(w_sh.lookAt) : null function set_lookat() { if (verbose && log_rs) console.debug(...c_rs(c_name, "lookAt", lookAt))