MergeWith

data class MergeWith(val otherId: EntityId, val idPrefix: String) : DrawEvent

An explicit request to merge the polygon otherId into the polygon that is currently selected or being edited: the selected one becomes the union of the two (keeping its id and look) and otherId is gone. New vertices (where the outlines cross) get ids made from idPrefix (<idPrefix>-1, <idPrefix>-2, ...), which the host picks so that they are free. Does nothing in any other mode, if either shape is missing or isn't a polygon, if they are the same shape, if either isn't a valid polygon, or if the state machine was given no com.tcsappdev.worldwinddraw.core.overlay.OverlayEngine. Undoable.

Constructors

Link copied to clipboard
constructor(otherId: EntityId, idPrefix: String)

Properties

Link copied to clipboard
Link copied to clipboard