canvasimo
Version:
An HTML5 canvas drawing library, with 150+ useful methods, jQuery-like fluent interface, and cross-browser compatibility enhancements.
44 lines (43 loc) • 1.74 kB
TypeScript
export declare const PROPERTY_MAP: {
globalAlpha: string;
globalCompositeOperation: string;
fillStyle: string;
strokeStyle: string;
lineWidth: string;
lineCap: string;
lineJoin: string;
lineDashOffset: string;
miterLimit: string;
shadowColor: string;
shadowBlur: string;
shadowOffsetX: string;
shadowOffsetY: string;
textAlign: string;
textBaseline: string;
};
export declare const IMAGE_SMOOTHING_KEYS: "imageSmoothingEnabled"[];
export declare const IMAGE_SMOOTHING_QUALITY_KEYS: "imageSmoothingQuality"[];
export declare const CONTEXT_TYPE = "2d";
export declare const INCORRECT_POINT_FORMAT = "Path points must be an array of:\n\n numbers [x, y, x, y], pairs [[x, y], [x, y]], or objects [{x, y}, {x, y}].";
export declare const INCORRECT_GET_ANGLE_ARGUMENTS: string;
export declare const DEFAULT_FONT_PARTS: string[];
export declare const DEFAULT_FONT: string;
export declare const DEFAULT_DENSITY = 1;
export declare const MATCHES_SPECIAL_FILL: RegExp;
export declare const MATCHES_NORMAL: RegExp;
export declare const MATCHES_FONT_STYLE: RegExp;
export declare const MATCHES_FONT_VARIANT: RegExp;
export declare const MATCHES_FONT_WEIGHT: RegExp;
export declare const MATCHES_SPECIAL_FONT: RegExp;
export declare const MATCHES_WHITESPACE: RegExp;
export declare const MATCHES_ALL_WHITESPACE: RegExp;
export declare const MATCHES_FONT_SIZE: RegExp;
export declare const MATCHES_WORD_BREAKS: RegExp;
export declare const DEFAULT_CONTEXT_VALUES: {
[i: string]: string | number;
};
export declare const DEFAULT_IMAGE_SMOOTHING_VALUES: {
imageSmoothingEnabled: boolean;
imageSmoothingQuality: ImageSmoothingQuality;
};
export declare const DEFAULT_LINE_DASH: never[];