ContentEditingTextBlockMoveAndResizeEdit

class ContentEditingTextBlockMoveAndResizeEdit(pageIndex: Int, textBlockId: String, oldAnchor: Vec2? = null, newAnchor: Vec2? = null, oldSize: Numeric? = null, newSize: Numeric? = null) : ContentEditingEdit

Content Editing undo-edit object for text block move/resize operations (mainly from drag & drop).

Parameters

pageIndex

The zero-based index of the page containing the text block.

textBlockId

The unique identifier of the text block.

oldAnchor

The anchor position of the text block before the edit, or null if unchanged.

newAnchor

The anchor position of the text block after the edit, or null if unchanged.

oldSize

The size of the text block before the edit, or null if unchanged.

newSize

The size of the text block after the edit, or null if unchanged.

Constructors

Link copied to clipboard
constructor(pageIndex: Int, textBlockId: String, oldAnchor: Vec2? = null, newAnchor: Vec2? = null, oldSize: Numeric? = null, newSize: Numeric? = null)

Functions

Link copied to clipboard
fun getAnchor(forUndo: Boolean): Vec2?

Returns the anchor position for undo or redo operations.

Link copied to clipboard
fun getSize(forUndo: Boolean): Numeric?

Returns the size value for undo or redo operations.