pub struct LightNode {Show 14 fields
pub id: String,
pub name: Option<String>,
pub role: Option<String>,
pub kind: Option<String>,
pub x: Option<PropertyValue>,
pub y: Option<PropertyValue>,
pub radius: Option<PropertyValue>,
pub color: Option<PropertyValue>,
pub opacity: Option<f64>,
pub visible: Option<bool>,
pub locked: Option<bool>,
pub source_span: Option<Span>,
pub unknown_props: BTreeMap<String, UnknownProperty>,
pub angle: Option<Dimension>,
}Expand description
A soft light source rendered as ambient scene ink.
Fields§
§id: String§name: Option<String>§role: Option<String>§kind: Option<String>Light family. Recognized values are validated, but the string is kept open for forward-compatible authoring.
x: Option<PropertyValue>Center X, page/container-relative.
y: Option<PropertyValue>Center Y, page/container-relative.
radius: Option<PropertyValue>Radial falloff radius.
color: Option<PropertyValue>Inner light color; token refs must resolve to color tokens.
opacity: Option<f64>§visible: Option<bool>§locked: Option<bool>§source_span: Option<Span>Source declaration span, when available.
unknown_props: BTreeMap<String, UnknownProperty>Unknown properties preserved for forward-compat.
angle: Option<Dimension>Reserved for future focused/angled light families.
Trait Implementations§
impl StructuralPartialEq for LightNode
Auto Trait Implementations§
impl Freeze for LightNode
impl RefUnwindSafe for LightNode
impl Send for LightNode
impl Sync for LightNode
impl Unpin for LightNode
impl UnsafeUnpin for LightNode
impl UnwindSafe for LightNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more