UNPKG

@egjs/imready

Version:

This module is used to wait for the image or video to be ready.

16 lines (15 loc) 628 B
import { ReactiveSetupAdapter, ReactiveObject } from "@cfcs/core"; import { ImReadyEvents, ImReadyReactiveProps, ImReadyReactiveState } from "./types"; export declare type ReactiveImReady = ReactiveObject<{ preReadyCount: number; readyCount: number; errorCount: number; totalErrorCount: number; totalCount: number; isPreReady: boolean; isReady: boolean; hasError: boolean; isPreReadyOver: boolean; add(element: HTMLElement): void; }>; export declare const REACTIVE_IMREADY: ReactiveSetupAdapter<ReactiveImReady, ImReadyReactiveState, "add", Partial<ImReadyReactiveProps>, ImReadyEvents>;