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