interface IRenderer {
    beginPath(): void;
    clearRect(x, y, width, height): void;
    closePath(): void;
    destroy(): void;
    drawImage(image, x, y, width?, height?): void;
    drawVideo(enableLegacyPip): void;
    fillRect(x, y, width, height): void;
    fillText(text, x, y): void;
    getCanvas(): IRenderer;
    getFillStyle(): string | CanvasGradient | CanvasPattern;
    getFont(): string;
    getSize(): {
        height: number;
        width: number;
    };
    lineTo(x, y): void;
    measureText(text): TextMetrics;
    moveTo(x, y): void;
    quadraticCurveTo(cpx, cpy, x, y): void;
    restore(): void;
    save(): void;
    setFillStyle(color): void;
    setFont(font): void;
    setGlobalAlpha(alpha): void;
    setLineWidth(width): void;
    setScale(scale, arg1?): void;
    setSize(width, height): void;
    setStrokeStyle(color): void;
    stroke(): void;
    strokeRect(x, y, width, height): void;
    strokeText(text, x, y): void;
}

Implemented by

Methods

  • Parameters

    • x: number
    • y: number
    • width: number
    • height: number

    Returns void

  • Parameters

    • image: IRenderer
    • x: number
    • y: number
    • Optional width: number
    • Optional height: number

    Returns void

  • Parameters

    • x: number
    • y: number
    • width: number
    • height: number

    Returns void

  • Returns string | CanvasGradient | CanvasPattern

  • Returns {
        height: number;
        width: number;
    }

    • height: number
    • width: number
  • Parameters

    • cpx: number
    • cpy: number
    • x: number
    • y: number

    Returns void

  • Parameters

    • x: number
    • y: number
    • width: number
    • height: number

    Returns void