vevet
Version:
Vevet is a JavaScript library for creative development that simplifies crafting rich interactions like split text animations, carousels, marquees, preloading, and more.
35 lines • 1.18 kB
TypeScript
import { TResponsiveProps, TResponsiveRule, TResponsiveSource } from './types';
export * from './types';
export declare class Responsive<T extends TResponsiveSource> {
private _source;
private _rules;
private _onChange?;
/** Tracks whether the instance has been destroyed */
private _isDestroyed;
/** Destroyable actions */
private _destructors;
/** Previously active breakpoints */
private _prevBreakpoints;
/** Initial props */
private _initProps;
/** Current props */
private _props;
/** Current props */
get props(): TResponsiveProps<T>;
constructor(_source: T, _rules: TResponsiveRule<T>[], _onChange?: ((props: TResponsiveProps<T>) => void) | undefined);
/** Set initial props */
private _fetchInitProps;
/** Get active rules */
private _getActiveRules;
/** Get responsive props */
private _getResponsiveProps;
/** Update properties */
private _handleUpdate;
/**
* Destroy the instance and clean up resources.
*
* The instance is destroyed automatically when it is used to mutate Module's props.
*/
destroy(): void;
}
//# sourceMappingURL=index.d.ts.map