如视 Five SDK
    Preparing search index...

    Interface PanoEvent

    全景图切换事件

    interface PanoEvent {
        defaultPrevented: boolean;
        error: Error | null;
        options: MovePanoOptions;
        pano: Pano;
        prevPano: Pano;
        progress: number;
        state: State;
        timeStamp: number;
        type: string;
        userAction: boolean;
        preventDefault(): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    defaultPrevented: boolean

    是否已调用过 preventDefault

    error: Error | null

    切换过程中发生的错误

    切换时传入的选项

    pano: Pano

    新的全景图

    prevPano: Pano

    切换前的全景图

    progress: number

    切换动画进度(0-1)

    state: State

    当前的 Five 状态

    timeStamp: number

    事件触发时的时间戳

    type: string

    事件类型名称

    userAction: boolean

    是否由用户交互触发

    Methods

    • 阻止事件的默认行为

      Returns void