Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextRun

Hierarchy

  • TextRun

Implements

Index

Constructors

constructor

  • new TextRun(text: string, font: Font | null, textAlign: CanvasTextAlign | null, textBaseline: CanvasTextBaseline | null, textColor: Color | null): TextRun

Methods

Protected copy

  • copy(text: string, font: Font | null, textAlign: CanvasTextAlign | null, textBaseline: CanvasTextBaseline | null, textColor: Color | null): TextRun

debug

equals

  • equals(that: unknown): boolean

font

render

text

  • text(): string
  • text(text: string): TextRun

textAlign

  • textAlign(): CanvasTextAlign | null
  • textAlign(textAlign: CanvasTextAlign | null): TextRun

textBaseline

  • textBaseline(): CanvasTextBaseline | null
  • textBaseline(textBaseline: CanvasTextBaseline | null): TextRun

textColor

toAny

toString

  • toString(): string

Static from

  • from(text: string, font?: AnyFont | null, textAlign?: CanvasTextAlign | null, textBaseline?: CanvasTextBaseline | null, textColor?: AnyColor | null): TextRun

Static fromAny