Skip to content

API reference / Common / Engine types / ObjectTextCommand

Type Alias: ObjectTextCommand ​

ts
type ObjectTextCommand = 
  | {
  replaceText: {
     range: {
        start: TextPosition;
        end: TextPosition;
     };
     text: string;
  };
}
  | {
  splitTextBlock: {
     at: TextPosition;
  };
}
  | {
  resizeTextBox: {
     at: TextPosition;
     frame: Rect;
  };
}
  | {
  transformTextBox: {
     at: TextPosition;
     delta: Affine;
  };
};

An edit intent on a page's text, its positions in the paragraphs the layout derives (DerivedTextBlock), which flow in their boxes (DerivedTextBox).