Skip to content
pixi-silk
GitHub repository
Interface

AlignLine

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

An alignment line. All values are in the boxes’ space.

Properties#

PropertyTypeDescriptionDefined in
atnumberPosition of the line.ui/spacing.ts:30
axis"x" | "y"x is a vertical line at x = at, y a horizontal line at y = at.ui/spacing.ts:26
fromnumberStart of the line across axis, covering every box that lines up.ui/spacing.ts:32
kind"edge" | "centre"Whether edges or centres line up.ui/spacing.ts:28
tonumberEnd of the line across axis.ui/spacing.ts:34