Skip to content
pixi-silk
GitHub repository
Interface

SnapResult

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

What SnapEngine.snap found. Add dx and dy to the moving rectangle to snap it.

Properties#

PropertyTypeDescriptionDefined in
dxnumberHorizontal move, 0 when nothing snapped on x.ui/snap.ts:41
dynumberVertical move, 0 when nothing snapped on y.ui/snap.ts:43
guidesSnapGuide[]Every alignment at the snapped position, x guides first.ui/snap.ts:49
snappedXbooleanTrue when something within the threshold lined up on x.ui/snap.ts:45
snappedYbooleanTrue when something within the threshold lined up on y.ui/snap.ts:47