Skip to content

Intermact API Reference / @intermact/core / draggablePoint

Function: draggablePoint()

draggablePoint(sig, opts?): IMObject2D

Defined in: packages/core/src/interaction/draggable.ts:61

A draggable 2D point handle bound to an AbsXY signal (design.md §12.3). The handle geometry is centered at the signal's current value, so registering it reactively (see draggablePointSource) makes it follow the signal.

Parameters

sig

Signal<AbsXY>

opts?

DraggablePointOptions = {}

Returns

IMObject2D

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