import { Container } from "pixi.js"; import { GameObject } from "../GameObject"; export declare class Group extends GameObject { display: Container; protected _width: number; protected _height: number; children: GameObject[]; get width(): number; set width(val: number); get height(): number; set height(val: number); resize(): void; getChildAt(index: number): GameObject>; /** * 插入一个子节点 * @param child - 待插入的节点 */ addChild(child: GameObject): GameObject>; /** * 在指定位置插入节点 * @param child - 待插入的节点 * @param index - 要插入的位置 */ addChildAt(child: GameObject, index: number): GameObject>; /** * 移除一个节点 * @param child - 将要移除的节点 */ removeChild(child: GameObject): GameObject> | undefined; /** * 移除一个指定位置的元素 * @param index - 要移除节点的位置 */ removeChildAt(index: number): GameObject>; /** * 移除所有子元素 */ removeChildren(): void; }