Function: previewSizes()
previewSizes(
presets):Map<string, {height:number;width:number; }>
Defined in: src/ui/elements/PcPanelBrushes/index.ts:66
The size of each preset's shape preview, relative to the largest preset of its family (group), so a family's sizes
are easy to tell apart (the largest fills the tile). Presets without a family fill the tile from 50 pixels.
Parameters
presets
Returns
Map<string, { height: number; width: number; }>
Example
previewSizes([{ ...round10, id: "a", content: { width: 10, height: 10 } }, { ...round50, id: "b", content: { width: 50, height: 50 } }]);
// Map { "a" => { width: 6, height: 6 }, "b" => { width: 30, height: 30 } }