Skip to main content

Function: getBrushSizeForToolGroup()

getBrushSizeForToolGroup(toolGroupId, toolName?): number

Gets the brush size for the first brush-based tool instance in a given tool group.

Parameters

toolGroupId: string

The ID of the tool group to get the brush size for.

toolName?: string

The name of the specific tool to get the brush size for (Optional) If not provided, the first brush-based tool instance in the tool group will be used.

Returns

number

The brush size of the selected tool instance, or undefined if no brush-based tool instance is found.

Defined in

tools/src/utilities/segmentation/brushSizeForToolGroup.ts:52