@figliolia/ripples
Version:
WebGL ripples based on the clever work of Pim Schreurs
24 lines (23 loc) • 730 B
TypeScript
import type { Callback, IRipples } from "./types";
export declare class Options {
resolution: number;
dropRadius: number;
perturbance: number;
crossOrigin: string;
interactive: boolean;
imageUrl: string | null;
onInitialized?: Callback;
constructor(options: Partial<IRipples>);
static readonly defaults: {
readonly imageUrl: null;
readonly resolution: 512;
readonly dropRadius: 10;
readonly perturbance: 0.02;
readonly interactive: true;
readonly crossOrigin: "";
};
private configure;
private extractResolution;
protected extractUrl(value: string): string | null;
protected isDataUri(url: string): RegExpMatchArray | null;
}