UNPKG

canvasimo

Version:

An HTML5 canvas drawing library, with 150+ useful methods, jQuery-like fluent interface, and cross-browser compatibility enhancements.

17 lines (16 loc) 740 B
import { FillRule, Points } from './types'; export declare const isPoint: (point?: number | [number, number] | { x: number; y: number; } | undefined) => point is { x: number; y: number; }; export declare const isTuplePoint: (point?: number | [number, number] | { x: number; y: number; } | undefined) => point is [number, number]; export declare const getFontParts: (input: string | undefined, density: number, getter: boolean) => string[]; export declare const formatFont: (input: string, density: number, getter: boolean) => string; export declare const forPoints: (points: Points, callback: (x: number, y: number, index: number) => any) => void; export declare const isFillRule: (value: any) => value is FillRule;