Skip to content

Intermact API Reference / @intermact/core / DragBinding

Interface: DragBinding

Defined in: packages/core/src/interaction/types.ts:51

Signal-backed drag behavior the host wires up (design.md §12.3). read gives the handle's current world position (so it follows the signal); write commits a dragged world position back to the signal, triggering reactive recompute.

Properties

kind

readonly kind: "point" | "value"

Defined in: packages/core/src/interaction/types.ts:52

Methods

read()

read(): AbsXY

Defined in: packages/core/src/interaction/types.ts:53

Returns

AbsXY


write()

write(world): void

Defined in: packages/core/src/interaction/types.ts:54

Parameters

world

AbsXY

Returns

void

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)