react-krpano-toolkit
Version:
A React toolkit for KRPano integration with reusable functions and screen/hotspot configuration management
12 lines (11 loc) • 487 B
TypeScript
import type { KrpanoLayerProps } from "../../types";
export declare function useSkin(): {
showSkin: () => void;
hideSkin: () => void;
toggleSkin: () => void;
show: (name: string) => void;
hide: (name: string) => void;
toggle: (name: string) => void;
setSkin: <K extends keyof KrpanoLayerProps>(name: string, prop: K, value: KrpanoLayerProps[K]) => void;
getSkin: <K extends keyof KrpanoLayerProps>(name: string, prop: K) => KrpanoLayerProps[K] | null;
};