pub struct Entity {Show 14 fields
pub id: EntityId,
pub type_id: TypeId,
pub type_version: u32,
pub layer: LayerId,
pub transform: Affine,
pub geometry: Option<Shape>,
pub props: BTreeMap<String, PropValue>,
pub data: BTreeMap<String, Value>,
pub name: Option<String>,
pub style: Style,
pub locked: bool,
pub hidden: bool,
pub fallback: Option<Vec<Shape>>,
pub extra: BTreeMap<String, Value>,
}Expand description
A document entity.
Built-in types (dotloom.*) carry canonical geometry. Plugin types carry typed
props; their drawable geometry is derived by the type definition and is not
stored, except for the optional fallback representation that lets viewers
without the plugin display (not edit) the entity.
Fields§
§id: EntityIdStable identifier.
type_id: TypeIdNamespaced type.
type_version: u32Version of the type’s schema the properties follow.
layer: LayerIdLayer membership.
transform: AffineLocal-to-world transform.
geometry: Option<Shape>Canonical geometry (built-in types) in local coordinates.
props: BTreeMap<String, PropValue>Typed properties (canonical units).
data: BTreeMap<String, Value>Opaque, namespaced plugin payloads preserved verbatim.
name: Option<String>Optional user-visible name.
style: StyleStyle overrides.
locked: boolLocked against interactive editing (not a solver lock).
Hidden from rendering and picking.
fallback: Option<Vec<Shape>>Standard representation for viewers that lack the plugin (derived snapshot, world coordinates). Never used for editing or measurement.
extra: BTreeMap<String, Value>Unknown fields from newer producers, preserved on save.