@arwes/bgs
Version:
Futuristic Sci-Fi UI Web Framework
22 lines (21 loc) • 728 B
TypeScript
import type { AnimatorNode } from '@arwes/animator';
interface CreateBackgroundGridLinesSettings {
lineWidth?: number;
lineColor?: string;
horizontalLineDash?: number[];
verticalLineDash?: number[];
distance?: number;
}
interface CreateBackgroundGridLinesProps {
canvas: HTMLCanvasElement;
animator?: AnimatorNode;
settingsRef: {
current: CreateBackgroundGridLinesSettings;
};
}
interface BackgroundGridLines {
cancel: () => void;
}
declare const createBackgroundGridLines: (props: CreateBackgroundGridLinesProps) => BackgroundGridLines;
export type { CreateBackgroundGridLinesProps, CreateBackgroundGridLinesSettings, BackgroundGridLines };
export { createBackgroundGridLines };