## Index

### Functions

- bubbling
- traverse
- traversePostorder

## Functions

### bubbling

- bubbling(target: Entity, hitParent: function, includeSelf?: boolean, ...params: any[]): void

- - Defined in core/entity-utils.ts:78

  节点冒泡

  #### Parameters

  - ##### target: Entity

    目标节点

  - ##### hitParent: function

    遇到父节点回调

    - - (parent: Entity, ...params: any[]): boolean

      - #### Parameters

        - ##### parent: Entity

        - ##### Rest ...params: any[]

        #### Returns boolean

  - ##### Default value includeSelf: boolean = false

    是否包括自身

  - ##### Rest ...params: any[]

    其他参数

  #### Returns void

### traverse

- traverse(target: Entity, hitChild: function, level?: number, includeSelf?: boolean, fullCallback?: function, ...params: any[]): void

- - Defined in core/entity-utils.ts:18

  节点遍历(先序遍历)

  #### Parameters

  - ##### target: Entity

    目标节点

  - ##### hitChild: function

    遇到子节点回调

    - - (child: Entity, ...params: any[]): boolean

      - #### Parameters

        - ##### child: Entity

        - ##### Rest ...params: any[]

        #### Returns boolean

  - ##### Default value level: number = -1

    深度，默认全部遍历

  - ##### Default value includeSelf: boolean = false

    是否包括自身

  - ##### Optional fullCallback: function

    子节点遍历完后回调

    - - (current: Entity ): void

      - #### Parameters

        - ##### current: Entity

        #### Returns void

  - ##### Rest ...params: any[]

    其他参数

  #### Returns void

### traversePostorder

- traversePostorder(target: Entity, hitChild: function, level?: number, includeSelf?: boolean, fullCallback?: function, ...params: any[]): boolean

- - Defined in core/entity-utils.ts:48

  节点遍历(后序遍历且倒序)

  #### Parameters

  - ##### target: Entity

    目标节点

  - ##### hitChild: function

    遇到子节点回调

    - - (child: Entity, ...params: any[]): boolean

      - #### Parameters

        - ##### child: Entity

        - ##### Rest ...params: any[]

        #### Returns boolean

  - ##### Default value level: number = -1

    深度，默认全部遍历

  - ##### Default value includeSelf: boolean = false

    是否包括自身

  - ##### Optional fullCallback: function

    子节点遍历完后回调

    - - (current: Entity ): void

      - #### Parameters

        - ##### current: Entity

        #### Returns void

  - ##### Rest ...params: any[]

    其他参数

  #### Returns boolean

Generated using TypeDoc