NewVertex

data class NewVertex(val edgeIndex: Int, val position: GeoPosition, val ringIndex: Int = 0) : DrawMode.Edit.ActiveDrag

A midpoint handle on edge edgeIndex (of ring ringIndex, 0 for a shape with only one) is being dragged into a new vertex. Deliberately does NOT touch com.tcsappdev.worldwinddraw.core.repository.EntityRepository while dragging — position only drives a live rendering preview (see DrawLayer). Only one com.tcsappdev.worldwinddraw.core.history.commands.AddVertexCommand, built with the final position, is ever recorded — inserting provisionally at drag-start and moving it on every step would need a second, different command for undo (remove) than for redo (re-insert at the right position), which is exactly the kind of state a pure reducer can't safely fake.

Constructors

Link copied to clipboard
constructor(edgeIndex: Int, position: GeoPosition, ringIndex: Int = 0)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard