import type { FindSpacingOptions } from 'pixi-silk/ui/spacing';
Options of findSpacing.
Properties#
| Property | Type | Description | Defined in |
|---|
alignment? | boolean | Looks for edges and centres that line up. Default true. | ui/spacing.ts:50 |
gaps? | boolean | Looks for equal gaps. Default true. | ui/spacing.ts:52 |
tolerance? | number | Two gaps, edges or centres this close count as equal, in the boxes’ units. Default 0.5. | ui/spacing.ts:48 |