Skip to content

ComponentDefinition

Shared geometry that groups and component instances place in the model.

readonly entities: Entities

The definition’s own entities, in definition-local coordinates.


readonly entityId: number

Identifier that stays the same for the entity’s lifetime, including across undo and redo.

Entity.entityId


readonly isDeleted: boolean

Whether the entity was deleted, for example by an edit or by undo.

Entity.isDeleted


readonly isValid: boolean

Whether the entity still exists in the model.

Entity.isValid


name: string

Definition name, shared by all its instances; assign inside Model.operation.


readonly type: "ComponentDefinition"

The concrete class name, for narrowing unions such as AnyElement.

Entity.type