UNPKG

@nmmty/lazycanvas

Version:

A simple way to interact with @napi-rs/canvas in an advanced way!

29 lines (28 loc) 599 B
import { Group } from "../structures/components"; import { ColorType } from "../types"; declare const Utils: { grid(size: { x: number; y: number; }, opts?: gridOptions): Group; box(start: { x: number; y: number; }, end: { x: number; y: number; }, opts?: options): Group; }; interface options { color?: ColorType; lineWidth?: number; } interface gridOptions extends options { cellWith?: number; cellHeight?: number; startX?: number; startY?: number; endX?: number; endY?: number; } export { Utils };