Skip to content

Edge

A straight line segment between two vertices.

readonly curve: Curve | ArcCurve | null

The curve or arc this edge belongs to, or null.


readonly end: Vertex

The vertex the edge ends at.


readonly entityId: number

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

DrawingElement.entityId


hidden: boolean

The element’s own hidden flag; assign inside Model.operation. Hidden ancestors are not taken into account; use Model.isDrawingElementVisible for that.

DrawingElement.hidden


readonly isDeleted: boolean

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

DrawingElement.isDeleted


readonly isValid: boolean

Whether the entity still exists in the model.

DrawingElement.isValid


readonly length: number

Length in the edge’s own context, in meters.


readonly material: Material | null

The edge’s material, or null when it has none.


readonly start: Vertex

The vertex the edge starts at.


readonly type: "Edge"

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

DrawingElement.type


visible: boolean

The inverse of hidden; assign inside Model.operation.

DrawingElement.visible