lume
Version:
29 lines • 915 B
TypeScript
import { Effects } from 'classy-solid';
type Options = Partial<Pick<PinchFling, 'target' | 'x' | 'minX' | 'maxX' | 'sensitivity' | 'hasInteracted' | 'epsilon' | 'slowdownAmount'>>;
export declare class PinchFling extends Effects {
#private;
/**
* During pinch, this value will change. It is a signal so that it can be
* observed. Set this value initially if you want to start at a certain
* value.
*/
x: number;
minX: number;
maxX: number;
target: Element;
sensitivity: number;
hasInteracted: boolean;
epsilon: number;
/**
* Portion of the change in value that is removed each frame to
* cause slowdown. Between 0 and 1.
*/
slowdownAmount: number;
get interacting(): boolean;
get isStarted(): boolean;
constructor(options?: Options);
start(): this;
stop(): this;
}
export {};
//# sourceMappingURL=PinchFling.d.ts.map