1.0.2 • Published 7 months ago

@types/canvas-multiline-text v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/canvas-multiline-text

Summary

This package contains type definitions for canvas-multiline-text (https://gitlab.com/davideblasutto/canvas-multiline-text).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/canvas-multiline-text.

index.d.ts

// Type definitions for canvas-multiline-text 1.0
// Project: https://gitlab.com/davideblasutto/canvas-multiline-text
// Definitions by: AKORA <https://github.com/A-K-O-R-A>
//                 Kiara <https://github.com/DragonCat4012>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

interface Options {
    rect?: {
        x: number;
        y: number;
        width: number;
        height: number;
    };
    font?: string;
    verbose?: boolean;
    lineHeight?: number;
    minFontSize?: number;
    maxFontSize?: number;
}

declare function drawMultilineText(ctx: CanvasRenderingContext2D, text: string, opts?: Options): number;

export = drawMultilineText;

Additional Details

  • Last updated: Thu, 03 Mar 2022 21:01:46 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by AKORA, and Kiara.