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#
| Property | Type | Description | Defined in |
|---|---|---|---|
dx | number | Horizontal move, 0 when nothing snapped on x. | ui/snap.ts:41 |
dy | number | Vertical move, 0 when nothing snapped on y. | ui/snap.ts:43 |
guides | SnapGuide[] | Every alignment at the snapped position, x guides first. | ui/snap.ts:49 |
snappedX | boolean | True when something within the threshold lined up on x. | ui/snap.ts:45 |
snappedY | boolean | True when something within the threshold lined up on y. | ui/snap.ts:47 |