UNPKG

@difizen/mana-core

Version:

21 lines 951 B
/** * Resolves after the next animation frame if no parameter is given, * or after the given number of animation frames. */ export declare function animationFrame(n?: number): Promise<void>; /** * Parse a magnitude value (e.g. width, height, left, top) from a CSS attribute value. * Returns the given default value (or undefined) if the value cannot be determined, * e.g. because it is a relative value like `50%` or `auto`. */ export declare function parseCssMagnitude(value: string | null, defaultValue: number): number; /** * Parse the number of milliseconds from a CSS time value. * Returns the given default value (or undefined) if the value cannot be determined. */ export declare function parseCssTime(time: string | null, defaultValue: number): number; /** * Prevent browser back/forward navigation of a mouse wheel event. */ export declare function preventNavigation(event: WheelEvent): void; //# sourceMappingURL=browser.d.ts.map