DragEnd

data class DragEnd(val position: GeoPosition, val newVertexId: VertexId? = null) : DrawEvent

The drag ends at position. newVertexId is a fresh id the adapter generates only when the drag that's ending was a DrawMode.Edit.ActiveDrag.NewVertex one (the adapter knows this because it's the same gesture whose DragStart it built) — it's what the reducer uses to finally construct the one real com.tcsappdev.worldwinddraw.core.history.commands.AddVertexCommand for the whole gesture. null here on a NewVertex drag just skips the insert (a graceful no-op), matching how null fields elsewhere in DrawEvent mean "the adapter couldn't/didn't supply this," not an error.

Constructors

Link copied to clipboard
constructor(position: GeoPosition, newVertexId: VertexId? = null)

Properties

Link copied to clipboard
Link copied to clipboard