Skip to main content

Function: differsFromPreset()

differsFromPreset(config, preset, source): boolean

Defined in: src/lib/brushes/configRanges/index.ts:437

Whether any of the pen settings (PEN_PARAMS) varies with a source differently from a preset: turned on or off, or with another range or profile graph.

Parameters​

config​

BrushConfig

preset​

BrushConfig

source​

PenSource

Returns​

boolean

Example​

differsFromPreset({ widthConfig: { usePressure: true } }, {}, "pressure"); // true