Skip to content

@fabwcie/free-drawing / @types/toolbar / BrushWidgetOptions

Type Alias: BrushWidgetOptions ​

BrushWidgetOptions = WidgetOptions & object

Defined in: packages/free-drawing/src/@types/toolbar.ts:90

Brush options, freehand stroke settings of perfect-freehand

Type Declaration ​

smoothing? ​

optional smoothing?: number

Softness of stroke edges, from 0 to 1 (1 by default)

streamline? ​

optional streamline?: number

How much stroke is stabilized (follows pointer less closely), from 0 to 1 (0.5 by default)

thinning? ​

optional thinning?: number

Effect of drawing speed on stroke width, from -1 to 1 (0.6 by default, 0 for constant width)