• One undo or redo press from any control: the chart-wide timeline when the context carries one, the drawing controller's own otherwise, so every button, chord and sheet walks the same steps.

    Parameters

    • ctx: Pick<WidgetContext, "history" | "draw">
    • direction: "undo" | "redo"

    Returns boolean