Function: sizedPresets()
sizedPresets(
__namedParameters,sizes,defaults,perSize?):BrushesConfig
Defined in: src/lib/brushes/presets/sized/index.ts:51
Make a family of presets, one per size, from the family's default settings. IDs are the prefix and the size (e.g. "round10"), names the family's name and the size (e.g. "Round 10px"), and the family's name is their group.
Parameters
__namedParameters
sizes
number[]
defaults
perSize?
PerSize = ...
settings that depend on the size (e.g. spacing)
Returns
Example
sizedPresets({ idPrefix: "round", name: "Round", version: "1.1.0" }, [1, 5], { image: ROUND_IMAGE },
(size) => ({ spacing: size }));
// { round1: { id: "round1", name: "Round 1px", group: "Round", content: { width: 1, height: 1, spacing: 1, ... } }, ... }