VertexSpan

class VertexSpan(val prevId: VertexId?, val nextId: VertexId?)

Which anchors a dragged vertex has on either side, and the shape's vertices as they were when the drag first changed anything. A drag is a stream of commands, each one saying "the vertex is now here"; every one of them has to start from the same original vertices (not from what the last one left), or the hidden vertices would be moved again and again. The commands therefore share this object, and the first one to run records the vertices in it. It is a holder, not a value: two spans are never equal unless they are the same object.

Constructors

Link copied to clipboard
constructor(prevId: VertexId?, nextId: VertexId?)

Properties

Link copied to clipboard
Link copied to clipboard

The vertices of the ring the dragged vertex is in, before the drag changed anything; null until the first command runs.

Link copied to clipboard