canUndo

val canUndo: StateFlow<Boolean>

True if there are actions that can be undone on the GeometryEditor.geometry, false otherwise. This applies to both programmatic and interactive changes to the GeometryEditor.geometry and is useful for enabling or disabling a UI control for undo actions.

The value of GeometryEditor.canUndo changes, raising the GeometryEditor.canUndoChanged event, when:

  • an initial action that can be undone is performed in the GeometryEditor, or

  • the last remaining action that can be undone was undone

Since

200.1.0

See also