Edge
A straight line segment between two vertices.
Extends
Section titled “Extends”Properties
Section titled “Properties”The curve or arc this edge belongs to, or null.
readonlyend:Vertex
The vertex the edge ends at.
entityId
Section titled “entityId”
readonlyentityId:number
Identifier that stays the same for the entity’s lifetime, including across undo and redo.
Inherited from
Section titled “Inherited from”hidden
Section titled “hidden”hidden:
boolean
The element’s own hidden flag; assign inside Model.operation. Hidden ancestors are not taken into account; use Model.isDrawingElementVisible for that.
Inherited from
Section titled “Inherited from”isDeleted
Section titled “isDeleted”
readonlyisDeleted:boolean
Whether the entity was deleted, for example by an edit or by undo.
Inherited from
Section titled “Inherited from”isValid
Section titled “isValid”
readonlyisValid:boolean
Whether the entity still exists in the model.
Inherited from
Section titled “Inherited from”length
Section titled “length”
readonlylength:number
Length in the edge’s own context, in meters.
material
Section titled “material”
readonlymaterial:Material|null
The edge’s material, or null when it has none.
readonlystart:Vertex
The vertex the edge starts at.
readonlytype:"Edge"
The concrete class name, for narrowing unions such as AnyElement.
Overrides
Section titled “Overrides”visible
Section titled “visible”visible:
boolean
The inverse of hidden; assign inside Model.operation.