UNPKG

dotting

Version:

Dotting is a pixel art editor component library for react

6 lines (5 loc) 731 B
import { Coord } from "./types"; export declare const drawArrowHead: (ctx: CanvasRenderingContext2D, x: number, y: number, radians: number, scale: number, arrowWidth: number) => void; export declare const drawExtendButton: (ctx: CanvasRenderingContext2D, leftTopPos: Coord, color: string, buttonWidth: number, buttonHeight: number, scale: number) => void; export declare const drawCircle: (ctx: CanvasRenderingContext2D, center: Coord, radius: number, fillStyle: string, strokeStyle: string, strokeWidth: number) => void; export declare const drawRect: (ctx: CanvasRenderingContext2D, leftTopPosX: number, leftTopPosY: number, width: number, height: number, fillStyle: string, strokeStyle: string, lineWidth: number) => void;