// Generated by scripts/generate.mjs from bindings/api.mjs. Do not edit.
///|
#external
pub type Light
///|
pub fn Light::as_object3d(self : Light) -> Object3D = "%identity"
///|
pub extern "js" fn Light::color(self : Light) -> Color =
#| (self) => self.color
///|
pub extern "js" fn Light::intensity(self : Light) -> Double =
#| (self) => self.intensity
///|
pub extern "js" fn Light::set_intensity(self : Light, value : Double) -> Unit =
#| (self, value) => { self.intensity = value; }
///|
pub extern "js" fn Light::dispose(self : Light) -> Unit =
#| (self) => self.dispose()
///|
pub extern "js" fn Light::copy(
self : Light,
source : Light,
recursive : Bool,
) -> Light =
#| (self, source, recursive) => self.copy(source, recursive)
///|
pub extern "js" fn Light::cast_shadow(self : Light) -> Bool =
#| (self) => self.castShadow
///|
pub extern "js" fn Light::set_cast_shadow(self : Light, value : Bool) -> Unit =
#| (self, value) => { self.castShadow = value; }
///|
pub extern "js" fn Light::receive_shadow(self : Light) -> Bool =
#| (self) => self.receiveShadow
///|
pub extern "js" fn Light::set_receive_shadow(
self : Light,
value : Bool,
) -> Unit =
#| (self, value) => { self.receiveShadow = value; }
///|
pub extern "js" fn Light::id(self : Light) -> Int =
#| (self) => self.id
///|
pub extern "js" fn Light::uuid(self : Light) -> String =
#| (self) => self.uuid
///|
pub extern "js" fn Light::kind(self : Light) -> String =
#| (self) => self.type
///|
pub extern "js" fn Light::name(self : Light) -> String =
#| (self) => self.name
///|
pub extern "js" fn Light::visible(self : Light) -> Bool =
#| (self) => self.visible
///|
/// Returns the live three.js reference, not a copy.
pub extern "js" fn Light::position(self : Light) -> Vector3 =
#| (self) => self.position
///|
/// Returns the live three.js reference, not a copy.
pub extern "js" fn Light::rotation(self : Light) -> Euler =
#| (self) => self.rotation
///|
/// Returns the live three.js reference, not a copy.
pub extern "js" fn Light::quaternion(self : Light) -> Quaternion =
#| (self) => self.quaternion
///|
/// Returns the live three.js reference, not a copy.
pub extern "js" fn Light::scale(self : Light) -> Vector3 =
#| (self) => self.scale
///|
/// Returns the live three.js reference, not a copy.
pub extern "js" fn Light::up(self : Light) -> Vector3 =
#| (self) => self.up
///|
/// Returns the live three.js reference, not a copy.
pub extern "js" fn Light::matrix(self : Light) -> Matrix4 =
#| (self) => self.matrix
///|
/// Returns the live three.js reference, not a copy.
pub extern "js" fn Light::matrix_world(self : Light) -> Matrix4 =
#| (self) => self.matrixWorld
///|
pub extern "js" fn Light::set_name(self : Light, name : String) -> Unit =
#| (self, name) => { self.name = name; }
///|
pub extern "js" fn Light::set_visible(self : Light, visible : Bool) -> Unit =
#| (self, visible) => { self.visible = visible; }
///|
pub extern "js" fn Light::children(self : Light) -> FixedArray[Object3D] =
#| (self) => self.children.slice()
///|
pub extern "js" fn Light::add(self : Light, child : Object3D) -> Object3D =
#| (self, child) => self.add(child)
///|
pub extern "js" fn Light::remove(self : Light, child : Object3D) -> Object3D =
#| (self, child) => self.remove(child)
///|
pub extern "js" fn Light::attach(self : Light, child : Object3D) -> Object3D =
#| (self, child) => self.attach(child)
///|
pub extern "js" fn Light::remove_from_parent(self : Light) -> Object3D =
#| (self) => self.removeFromParent()
///|
pub extern "js" fn Light::look_at(self : Light, target : Vector3) -> Unit =
#| (self, target) => self.lookAt(target)
///|
pub extern "js" fn Light::rotate_x(self : Light, angle : Double) -> Object3D =
#| (self, angle) => self.rotateX(angle)
///|
pub extern "js" fn Light::rotate_y(self : Light, angle : Double) -> Object3D =
#| (self, angle) => self.rotateY(angle)
///|
pub extern "js" fn Light::rotate_z(self : Light, angle : Double) -> Object3D =
#| (self, angle) => self.rotateZ(angle)
///|
pub extern "js" fn Light::translate_x(
self : Light,
distance : Double,
) -> Object3D =
#| (self, distance) => self.translateX(distance)
///|
pub extern "js" fn Light::translate_y(
self : Light,
distance : Double,
) -> Object3D =
#| (self, distance) => self.translateY(distance)
///|
pub extern "js" fn Light::translate_z(
self : Light,
distance : Double,
) -> Object3D =
#| (self, distance) => self.translateZ(distance)
///|
pub extern "js" fn Light::apply_matrix4(self : Light, matrix : Matrix4) -> Unit =
#| (self, matrix) => self.applyMatrix4(matrix)
///|
pub extern "js" fn Light::apply_quaternion(
self : Light,
quaternion : Quaternion,
) -> Object3D =
#| (self, quaternion) => self.applyQuaternion(quaternion)
///|
pub extern "js" fn Light::update_matrix(self : Light) -> Unit =
#| (self) => self.updateMatrix()
///|
pub extern "js" fn Light::update_matrix_world(
self : Light,
force : Bool,
) -> Unit =
#| (self, force) => self.updateMatrixWorld(force)
///|
pub extern "js" fn Light::update_world_matrix(
self : Light,
update_parents : Bool,
update_children : Bool,
) -> Unit =
#| (self, update_parents, update_children) => self.updateWorldMatrix(update_parents, update_children)
///|
pub extern "js" fn Light::get_world_position(
self : Light,
target : Vector3,
) -> Vector3 =
#| (self, target) => self.getWorldPosition(target)
///|
pub extern "js" fn Light::get_world_quaternion(
self : Light,
target : Quaternion,
) -> Quaternion =
#| (self, target) => self.getWorldQuaternion(target)
///|
pub extern "js" fn Light::get_world_scale(
self : Light,
target : Vector3,
) -> Vector3 =
#| (self, target) => self.getWorldScale(target)
///|
pub extern "js" fn Light::get_world_direction(
self : Light,
target : Vector3,
) -> Vector3 =
#| (self, target) => self.getWorldDirection(target)
///|
pub extern "js" fn Light::local_to_world(
self : Light,
vector : Vector3,
) -> Vector3 =
#| (self, vector) => self.localToWorld(vector)
///|
pub extern "js" fn Light::world_to_local(
self : Light,
vector : Vector3,
) -> Vector3 =
#| (self, vector) => self.worldToLocal(vector)
///|
pub extern "js" fn Light::traverse(
self : Light,
callback : (Object3D) -> Unit,
) -> Unit =
#| (self, callback) => self.traverse(callback)
///|
pub extern "js" fn Light::traverse_visible(
self : Light,
callback : (Object3D) -> Unit,
) -> Unit =
#| (self, callback) => self.traverseVisible(callback)
///|
/// Copies coordinates into the live position vector; does not retain the input vector.
pub extern "js" fn Light::set_position(
self : Light,
position : Vector3,
) -> Unit =
#| (self, position) => { self.position.copy(position); }
///|
/// Sets local position coordinates while preserving the live position reference.
pub extern "js" fn Light::set_position_xyz(
self : Light,
x : Double,
y : Double,
z : Double,
) -> Unit =
#| (self, x, y, z) => { self.position.set(x, y, z); }
///|
/// Copies Euler angles and order; native quaternion synchronization is preserved.
pub extern "js" fn Light::set_rotation(self : Light, rotation : Euler) -> Unit =
#| (self, rotation) => { self.rotation.copy(rotation); }
///|
/// Sets local Euler angles in radians, retaining the current Euler order.
pub extern "js" fn Light::set_rotation_xyz(
self : Light,
x : Double,
y : Double,
z : Double,
) -> Unit =
#| (self, x, y, z) => { self.rotation.set(x, y, z); }
///|
/// Copies quaternion components; native Euler synchronization is preserved. Does not normalize.
pub extern "js" fn Light::set_quaternion(
self : Light,
quaternion : Quaternion,
) -> Unit =
#| (self, quaternion) => { self.quaternion.copy(quaternion); }
///|
/// Copies local scale components into the existing live scale vector.
pub extern "js" fn Light::set_scale(self : Light, scale : Vector3) -> Unit =
#| (self, scale) => { self.scale.copy(scale); }
///|
/// Sets the three local scale components.
pub extern "js" fn Light::set_scale_xyz(
self : Light,
x : Double,
y : Double,
z : Double,
) -> Unit =
#| (self, x, y, z) => { self.scale.set(x, y, z); }
///|
/// Sets all local scale components to the supplied value.
pub extern "js" fn Light::set_uniform_scale(
self : Light,
scale : Double,
) -> Unit =
#| (self, scale) => { self.scale.setScalar(scale); }
///|
/// Adds a child using native reparenting and event behavior.
pub extern "js" fn Light::add_child(self : Light, child : Object3D) -> Unit =
#| (self, child) => { self.add(child); }
///|
/// Adds children in order using native reparenting and event behavior. An empty list is a no-op.
pub extern "js" fn Light::add_children(
self : Light,
children : FixedArray[Object3D],
) -> Unit =
#| (self, children) => { if (children.length > 0) { self.add(...children); }; }
///|
/// Adds this object to the parent, retaining this object as the cascade receiver.
pub extern "js" fn Light::add_to(self : Light, parent : Object3D) -> Unit =
#| (self, parent) => { parent.add(self); }
///|
/// Removes a child using native event behavior. Does not dispose resources.
pub extern "js" fn Light::remove_child(self : Light, child : Object3D) -> Unit =
#| (self, child) => { self.remove(child); }