Interface CanvasText

    interface CanvasText {
        fillText(text: string, x: number, y: number, maxWidth?: number): void;
        measureText(text: string): TextMetrics;
        strokeText(text: string, x: number, y: number, maxWidth?: number): void;
    }
    Hierarchy

    Methods

    • Parameters

      • text: string
      • x: number
      • y: number
      • OptionalmaxWidth: number

      Returns void

    • Parameters

      • text: string
      • x: number
      • y: number
      • OptionalmaxWidth: number

      Returns void