@arwes/bgs
Version:
Futuristic Sci-Fi UI Web Framework
27 lines (26 loc) • 867 B
TypeScript
import { type Easing } from '@arwes/animated';
import type { AnimatorNode } from '@arwes/animator';
type DotsOrigin = 'left' | 'right' | 'top' | 'bottom' | 'center' | [number, number];
interface CreateBackgroundDotsSettings {
color?: string;
type?: 'box' | 'circle' | 'cross';
distance?: number;
size?: number;
crossSize?: number;
origin?: DotsOrigin;
originInverted?: boolean;
easing?: Easing;
}
interface CreateBackgroundDotsProps {
canvas: HTMLCanvasElement;
animator?: AnimatorNode;
settingsRef: {
current: CreateBackgroundDotsSettings;
};
}
interface BackgroundDots {
cancel: () => void;
}
declare const createBackgroundDots: (props: CreateBackgroundDotsProps) => BackgroundDots;
export type { CreateBackgroundDotsSettings, CreateBackgroundDotsProps, BackgroundDots };
export { createBackgroundDots };