claw-machine-js
Version:
A physics based claw-machine simulation
18 lines (17 loc) • 408 B
TypeScript
export interface IBall {
x: number;
y: number;
radius: number;
dx: number;
dy: number;
isInDropZone: boolean;
text: string;
icon?: string;
imageHeight?: number;
imageWidth?: number;
ballColor?: string;
ballTextFontSize?: number;
ballTextColor?: string;
ballTextAlign?: 'center' | 'left' | 'right';
ballTextBaseline?: 'middle' | 'top' | 'bottom';
}