interface EventMap {
    configChange: ((event: {
        config: CurrentPanoImagePluginType.Config;
        prevConfig: CurrentPanoImagePluginType.Config;
        userAction: boolean;
    }) => void);
    disable: ((event: {
        userAction: boolean;
    }) => void);
    dispose: (() => void);
    enable: ((event: {
        userAction: boolean;
    }) => void);
    hide: ((event: {
        userAction: boolean;
    }) => void);
    show: ((event: {
        userAction: boolean;
    }) => void);
    stateChange: ((params: {
        prevState?: CurrentPanoImagePluginType.State;
        state: CurrentPanoImagePluginType.State;
        userAction: boolean;
    }) => void);
}

Hierarchy

Properties

configChange: ((event: {
    config: CurrentPanoImagePluginType.Config;
    prevConfig: CurrentPanoImagePluginType.Config;
    userAction: boolean;
}) => void)

config 变更的回调

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

enabled 从 true 到 false 的回调

dispose: (() => void)

插件被销毁

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

enabled 从 false 到 true 的回调

hide: ((event: {
    userAction: boolean;
}) => void)

visible 从 true 到 false 的回调

show: ((event: {
    userAction: boolean;
}) => void)

visible 从 false 到 true 的回调

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

插件状态变化