1 | import Element, { ElementProps } from '../Element';
|
2 | import BoundingRect from '../core/BoundingRect';
|
3 | import { ZRenderType } from '../zrender';
|
4 | export interface GroupProps extends ElementProps {
|
5 | }
|
6 | declare class Group extends Element<GroupProps> {
|
7 | readonly isGroup = true;
|
8 | private _children;
|
9 | constructor(opts?: GroupProps);
|
10 | childrenRef(): Element<ElementProps>[];
|
11 | children(): Element<ElementProps>[];
|
12 | childAt(idx: number): Element;
|
13 | childOfName(name: string): Element;
|
14 | childCount(): number;
|
15 | add(child: Element): Group;
|
16 | addBefore(child: Element, nextSibling: Element): this;
|
17 | replace(oldChild: Element, newChild: Element): this;
|
18 | replaceAt(child: Element, index: number): this;
|
19 | _doAdd(child: Element): void;
|
20 | remove(child: Element): this;
|
21 | removeAll(): this;
|
22 | eachChild<Context>(cb: (this: Context, el: Element, index?: number) => void, context?: Context): this;
|
23 | traverse<T>(cb: (this: T, el: Element) => boolean | void, context?: T): this;
|
24 | addSelfToZr(zr: ZRenderType): void;
|
25 | removeSelfFromZr(zr: ZRenderType): void;
|
26 | getBoundingRect(includeChildren?: Element[]): BoundingRect;
|
27 | }
|
28 | export interface GroupLike extends Element {
|
29 | childrenRef(): Element[];
|
30 | }
|
31 | export default Group;
|