API REFERENCE

setBrush

replace the brush areas of the active cartesian family (null clears).

Definition

typescript
setBrush(areas: ReadonlyArray<CartesianBrushAreaInput> | null): Promise<CartesianBrushChangeEventDetail | null>
ArgumentsTypeRequired
areasReadonlyArray<CartesianBrushAreaInput> | nullRequired

Return type: Promise<CartesianBrushChangeEventDetail | null>. Call the method after element registration and await its Promise result.