getAnchor

fun getAnchor(forUndo: Boolean): Vec2?

Returns the anchor position for undo or redo operations.

Return

The text block anchor position, or null if position was unchanged.

Parameters

forUndo

If true, returns the old anchor (for undo); if false, returns the new anchor (for redo).