跳到主要内容

IDP.EventTypes 接口

interface EventTypes 

小程序可监听的事件集合

属性

"IDP.Custom.Design.CustomModel.Add"

'IDP.Custom.Design.CustomModel.Add': IDP.DB.Types.ElementId[];

监听定制模型新增

类型: IDP.DB.Types.ElementId[]

"IDP.Custom.Design.CustomModel.AddV2"

'IDP.Custom.Design.CustomModel.AddV2': IDPCommon.DB.Types.ElementId[];

定制模型新增事件 模型对象是最顶层模型,与设计工具资源管理器顶层节点一致

类型: IDPCommon.DB.Types.ElementId[]

"IDP.Custom.Design.CustomModel.Delete"

'IDP.Custom.Design.CustomModel.Delete': IDP.DB.Types.ElementId[];

监听定制模型删除

类型: IDP.DB.Types.ElementId[]

"IDP.Custom.Design.CustomModel.DeleteV2"

'IDP.Custom.Design.CustomModel.DeleteV2': IDPCommon.DB.Types.ElementId[];

定制模型删除事件 模型对象是最顶层模型,与设计工具资源管理器顶层节点一致

类型: IDPCommon.DB.Types.ElementId[]

"IDP.Custom.Design.CustomModel.Update"

'IDP.Custom.Design.CustomModel.Update': IDPCommon.DB.Types.ElementId[];

定制模式下,模型更新事件

类型: IDPCommon.DB.Types.ElementId[]

"IDP.Custom.Design.CustomModel.UpdateV2"

'IDP.Custom.Design.CustomModel.UpdateV2': IDPCommon.DB.Types.ElementId[];

定制模型更新事件 模型对象是最顶层模型,与设计工具资源管理器顶层节点一致

类型: IDPCommon.DB.Types.ElementId[]

"IDP.Custom.Design.Loaded"

'IDP.Custom.Design.Loaded': void;

监听定制数据加载完成

"IDP.Custom.DoorCoveringHardware.Mode"

'IDP.Custom.DoorCoveringHardware.Mode': DoorCoveringHardwareMode;

掩门五金模式,选项配置发生变化时触发

类型: DoorCoveringHardwareMode

"IDP.Custom.DoorCoveringHardware.SelectedElementsChange"

'IDP.Custom.DoorCoveringHardware.SelectedElementsChange': IDPCommon.DB.Types.ElementId[];

掩门五金模式下,模型选中事件

类型: IDPCommon.DB.Types.ElementId[]

"IDP.Custom.LeftPanel.Style.Selected"

'IDP.Custom.LeftPanel.Style.Selected': IProduct;

风格面板选中商品事件

类型: IProduct

"IDP.Custom.Mode.Enter"

'IDP.Custom.Mode.Enter': CustomAppMode | CustomAppModeAsync;

进入定制子模式下触发的事件

类型: CustomAppMode | CustomAppModeAsync

"IDP.Custom.Mode.Exit"

'IDP.Custom.Mode.Exit': CustomAppMode | CustomAppModeAsync;

退出定制子模式下触发的事件

类型: CustomAppMode | CustomAppModeAsync

"IDP.DB.Element.Add"

'IDP.DB.Element.Add': IDP.DB.Types.ElementId[];

监听模型新增

类型: IDP.DB.Types.ElementId[]

"IDP.DB.Element.Delete"

'IDP.DB.Element.Delete': IDP.DB.Types.ElementId[];

监听模型删除

类型: IDP.DB.Types.ElementId[]

"IDP.Design.Save"

'IDP.Design.Save': void;

监听是否触发保存

"IDP.Design.Saved"

'IDP.Design.Saved': void;

监听保存成功

"IDP.Integration.FOP.OrderMode.OrderModel.Update"

'IDP.Integration.FOP.OrderMode.OrderModel.Update': Pick<FindAuditedModelResult, 'modelIds' | 'subModels'>;

订单模式下,自动更新模型范围变更时触发

类型: Pick<FindAuditedModelResult, 'modelIds' | 'subModels'>

"IDP.Interaction.SelectedElementsChange"

'IDP.Interaction.SelectedElementsChange': IDP.DB.Types.ElementId[];

监听当前选中的对象列表的变更

类型: IDP.DB.Types.ElementId[]

"IDP.Kada.RoutingFace.AfterConnectivityDetection"

'IDP.Kada.RoutingFace.AfterConnectivityDetection': RoutingFaceConnectivityDetectionResult;

走线设计环境下,走线检测结束时触发事件

类型: RoutingFaceConnectivityDetectionResult

"IDP.Kada.RoutingFace.BeforeConnectivityDetection"

'IDP.Kada.RoutingFace.BeforeConnectivityDetection': IDPCommon.DB.Types.ElementId[];

走线设计环境下,走线实时检测开始执行时触发事件

类型: IDPCommon.DB.Types.ElementId[]

"IDP.Kada.RoutingFace.enter"

'IDP.Kada.RoutingFace.enter': undefined | Error;

进入走线设计环境 如果error存在,表明进入走线环境失败

"IDP.Kada.RoutingFace.exit"

'IDP.Kada.RoutingFace.exit': void | Error;

退出走线设计环境 如果error存在,表明退出走线环境失败

"IDP.Kada.RoutingSocket.Add"

'IDP.Kada.RoutingSocket.Add': IDPCommon.DB.Types.ElementId[];

走线设计环境下,插座添加事件

类型: IDPCommon.DB.Types.ElementId[]

"IDP.Kada.RoutingSocket.Delete"

'IDP.Kada.RoutingSocket.Delete': IDPCommon.DB.Types.ElementId[];

走线环境下,走线插座被删除事件

类型: IDPCommon.DB.Types.ElementId[]

"IDP.Miniapp.View.ContainerMinimizedChange"

'IDP.Miniapp.View.ContainerMinimizedChange': {
frameId: string;
isMinimized: boolean;
};

监听小程序frame容器的最小化状态更新

"IDP.Payment.PaymentDialogClosed"

'IDP.Payment.PaymentDialogClosed': IDP.Payment.Types.PaymentResult;

支付弹窗关闭时触发的事件,会将支付结果作为回调函数参数进行传递

类型: IDP.Payment.Types.PaymentResult

"IDP.UI.Layout.WindowResize"

'IDP.UI.Layout.WindowResize': void;

监听 **云设计工具页面** 文档视图(窗口)大小调整