UNPKG

@robotlegsjs/pixi

Version:
17 lines (16 loc) 775 B
/** * Patch Container class to add implementation of contains method. */ import { Container, DisplayObject } from "pixi.js"; /** * Determines whether the specified child object is a child of the Container instance or the instance itself. * The search includes the entire display list including this Container instance. * Grandchildren, great-grandchildren, and so on each return true. * * @param child The child object to test. * * @return true if the child object is a child of the Container or the Container itself; otherwise false. * * @see {@link https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObjectContainer.html#contains()} */ export declare function contains(container: Container, child: DisplayObject): boolean;