react-krpano-toolkit
Version:
A React toolkit for KRPano integration with reusable functions and screen/hotspot configuration management
9 lines (8 loc) • 376 B
TypeScript
import { KrpanoEventHandler, KrpanoViewEventData } from "../../types/krpano-event";
interface ViewEventHandlers {
onviewchange?: KrpanoEventHandler<KrpanoViewEventData>;
onviewchanged?: KrpanoEventHandler<KrpanoViewEventData>;
onidle?: KrpanoEventHandler<KrpanoViewEventData>;
}
export declare function useViewEvents(handlers: ViewEventHandlers): void;
export {};