interface PluginEventMap {
    click: ((event: {
        preventDefault: (() => void);
        target: VideoMeshController;
    }) => void);
    dataChange: ((data: PanoVideoPluginType.PluginData, prevData?: PanoVideoPluginType.PluginData) => void);
    dataLoaded: ((data: PanoVideoPluginType.PluginData) => void);
    disable: ((params: {
        userAction: boolean;
    }) => void);
    dispose: (() => void);
    enable: ((params: {
        userAction: boolean;
    }) => void);
    stateChange: ((params: {
        prevState?: PanoVideoPluginType.PluginState;
        state: PanoVideoPluginType.PluginState;
        userAction: boolean;
    }) => void);
}

Hierarchy

Properties

click: ((event: {
    preventDefault: (() => void);
    target: VideoMeshController;
}) => void)

点位视频被点击

dataChange: ((data: PanoVideoPluginType.PluginData, prevData?: PanoVideoPluginType.PluginData) => void)

数据变更

dataLoaded: ((data: PanoVideoPluginType.PluginData) => void)

数据加载完成

disable: ((params: {
    userAction: boolean;
}) => void)

点位视频模型关闭

dispose: (() => void)

插件被销毁

enable: ((params: {
    userAction: boolean;
}) => void)

点位视频模型开启

stateChange: ((params: {
    prevState?: PanoVideoPluginType.PluginState;
    state: PanoVideoPluginType.PluginState;
    userAction: boolean;
}) => void)

插件状态变化