Skip to content

findSnap

findSnap(draggedComponent, candidateOrigin, others, radius?, wires?): SnapResult

Defined in: packages/core/src/preview/snap.ts:11

Component

Point

readonly Readonly<{ flipped: boolean; id: string; kind: ComponentKind; name: string; origin: Point; properties: Readonly<Record<string, PropertyValue>>; rotation: Rotation; sourceTypeName: string | null; terminals: readonly Readonly<{ name: string; position: Point; }>[]; }>[]

number = DEFAULT_SNAP_RADIUS

readonly Readonly<{ endpoints: readonly [Readonly<{ x: number; y: number; }>, Readonly<{ x: number; y: number; }>]; id: string; }>[] = []

SnapResult