Interface Node2DEventMap

2D结点事件映射

Hierarchy

  • NodeEventMap
    • Node2DEventMap

Properties

addChild: {
    child: Node;
    parent: Node;
}

添加了子对象,当child被添加到parent中时派发冒泡事件

Type declaration

  • child: Node
  • parent: Node
addComponent: {
    component: Component;
    entity: Entity;
}

添加子组件事件

Type declaration

added: {
    parent: Node;
}

自身被添加到父对象中事件

Type declaration

  • parent: Node
refreshView: any

刷新界面

removeChild: {
    child: Node;
    parent: Node;
}

删除了子对象,当child被parent移除时派发冒泡事件

Type declaration

  • child: Node
  • parent: Node
removeComponent: {
    component: Component;
    entity: Entity;
}

移除子组件事件

Type declaration

removed: {
    parent: Node;
}

自身从父对象中移除事件

Type declaration

  • parent: Node

Generated using TypeDoc