HighlightBehaviorArgs: { clearPrevious?: boolean; skipPaint?: boolean }

Options for controlling the behavior when adding or clearing text highlights.

Type declaration

  • Optional clearPrevious?: boolean

    If true, clears existing highlights before applying the new one.

  • Optional skipPaint?: boolean

    If true, skips the immediate repaint of the text layer after applying the highlight.