Skip to content

EdgeUse

One use of an edge by a loop, with the direction the loop runs along it.

readonly edge: Edge

The edge being used.


readonly end: Vertex

The vertex where the loop leaves the edge.


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 isReversed: boolean

Whether the loop runs from the edge’s end to its start.


readonly isValid: boolean

Whether the entity still exists in the model.

Entity.isValid


readonly start: Vertex

The vertex where the loop enters the edge.


readonly type: "EdgeUse"

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

Entity.type