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.

15 lines
883 B

4 months ago
import type { BaseStyleProps, DisplayObject } from '@antv/g';
/**
* <zh/>
*
* <en/> Set the visibility of the shape instance
* @param shape - <zh/> | <en/> shape instance
* @param value - <zh/> | <en/> visibility
* @param filter - <zh/> | <en/> Filter out the shapes that need to set visibility
* @remarks
* <zh/> enableCSSParsing false
*
* <en/> After setting enableCSSParsing to false, the compound shape cannot inherit the parent attribute, so the same visibility needs to be applied to all child shapes
*/
export declare function setVisibility(shape: DisplayObject, value: BaseStyleProps['visibility'], filter?: (shape: DisplayObject) => boolean): void;