UNPKG

@0xllllh/react-krpano

Version:
47 lines (46 loc) 1.25 kB
import KrpanoActionProxy from './KrpanoActionProxy'; /** * @see https://krpano.com/docu/html/#wmode */ export interface IKrpanoConfig { /** * 全景图xml路径。需要手动设置为null才不会加载。 * @see https://krpano.com/docu/html/#xml */ xml?: string | null; /** 挂载点id */ target: string; swf?: string; id?: string; bgcolor?: string; /** * @see https://krpano.com/docu/html/#html5 */ html5?: string; flash?: string; wmode?: string; localfallback?: string; vars?: Record<string, unknown>; initvars?: Record<string, unknown>; consolelog?: boolean; basepath?: string; mwheel?: boolean; capturetouch?: boolean; focus?: boolean; webglsettings?: Record<string, unknown>; webxr?: string; mobilescale?: number; touchdevicemousesupport?: boolean; fakedevice?: string; onready?: (renderer: NativeKrpanoRendererObject) => void; } export interface NativeKrpanoRendererObject { get(key: string): any; call(action: string): void; } export declare type EventCallback = (renderer: KrpanoActionProxy) => void; declare global { interface Window { embedpano?: (config: IKrpanoConfig) => void; } }