@types/canvas-multiline-text
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

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: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by AKORA, and Kiara.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/canvas-multiline-text

Weekly Downloads

12

Version

1.0.2

License

MIT

Unpacked Size

3.6 kB

Total Files

5

Last publish

Collaborators

  • types