immersivity_core
Version:
Immersivity. Feel the depth.
23 lines (22 loc) • 997 B
TypeScript
import './index.css';
export declare function getParallaxContainerClassName(): string;
export type EventCallback = (params: {
centerX: number;
centerY: number;
rotationX: string;
rotationY: string;
}) => void;
export declare function subscribeToEventEmitter(callback: EventCallback): void;
export declare function unsubscribeFromEventEmitter(callback: EventCallback): void;
export declare function wrapParallax(el: HTMLElement): void;
export declare function setVideoElement(): Promise<HTMLVideoElement>;
export declare function startFaceParallax(videoRef: HTMLVideoElement): Promise<void>;
declare const _default: {
startFaceParallax: typeof startFaceParallax;
setVideoElement: typeof setVideoElement;
wrapParallax: typeof wrapParallax;
subscribeToEventEmitter: typeof subscribeToEventEmitter;
unsubscribeFromEventEmitter: typeof unsubscribeFromEventEmitter;
getParallaxContainerClassName: typeof getParallaxContainerClassName;
};
export default _default;