You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
698 B

4 months ago
import type { DisplayObject } from '@antv/g';
/**
* <zh/>
*
* <en/> Get all the child elements of the shape
* @param shape - <zh/> | <en/> shape
* @returns <zh/> | <en/> child elements array
*/
export declare function getDescendantShapes<T extends DisplayObject>(shape: T): DisplayObject<any, any>[];
/**
* <zh/>
*
* <en/> Get all the ancestor elements of the shape
* @param shape - <zh/> | <en/> shape
* @returns <zh/> | <en/> ancestor elements array
*/
export declare function getAncestorShapes<T extends DisplayObject>(shape: T): DisplayObject<any, any>[];