Skip to content
pixi-silk
GitHub repository
Interface

FindSpacingOptions

import type { FindSpacingOptions } from 'pixi-silk/ui/spacing';

Options of findSpacing.

Properties#

PropertyTypeDescriptionDefined in
alignment?booleanLooks for edges and centres that line up. Default true.ui/spacing.ts:50
gaps?booleanLooks for equal gaps. Default true.ui/spacing.ts:52
tolerance?numberTwo gaps, edges or centres this close count as equal, in the boxes’ units. Default 0.5.ui/spacing.ts:48