TreeChanged

data class TreeChanged(val current: Topology) : ApplyOutcome, PreviewOutcome

Someone applied another tree since the edit started: LocalHeddle.topology is now current, not the tree the edit was made from. Nothing changed, LocalHeddle.revision included.

Applied as it stands, the edit would undo that other change as well as make its own, so list its changes again from current (current.changesTo(candidate), Topology.changesTo) and apply with current as the tree it started from once someone has confirmed them.

A tree is compared whole, in the order it was written, so a change that only reordered siblings refuses too, though nothing in heddle reads the order: listed again from current, such an edit shows no change it did not show before.

Constructors

Link copied to clipboard
constructor(current: Topology)

Properties

Link copied to clipboard