Skip to content
pixi-silk
GitHub repository
Interface

SnapRect

import type { SnapRect } from 'pixi-silk/ui/snap';

Axis-aligned rectangle in the snapping space. Targets are compared by identity in exclude.

Properties#

PropertyTypeDescriptionDefined in
heightnumberHeight, 0 for a point.ui/snap.ts:17
widthnumberWidth, 0 for a point.ui/snap.ts:15
xnumberLeft edge.ui/snap.ts:11
ynumberTop edge.ui/snap.ts:13