插件事件

interface EventMap {
    dataChange: ((data: ModelMakerPluginType.ServerData, prevData?: ModelMakerPluginType.ServerData) => void);
    dataLoaded: ((data: ModelMakerPluginType.ServerData) => 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?: ModelMakerPluginType.State;
        state: ModelMakerPluginType.State;
        userAction: boolean;
    }) => void);
}

Hierarchy

Properties

dataChange: ((data: ModelMakerPluginType.ServerData, prevData?: ModelMakerPluginType.ServerData) => void)

数据变更

dataLoaded: ((data: ModelMakerPluginType.ServerData) => void)

数据加载完成

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?: ModelMakerPluginType.State;
    state: ModelMakerPluginType.State;
    userAction: boolean;
}) => void)

插件状态变化