Skip to content

Intermact API Reference / @intermact/core / interactive

Function: interactive()

interactive(base, opts?): IMObject2D

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

Attach pointer interaction to any object functionally (design.md §12.2). Unlike RegisteredObject2D.on, this returns a new definition, so it composes inside reactive derived(...) builders that rebuild the object each frame.

Parameters

base

IMObject2D

opts?

InteractiveOptions = {}

Returns

IMObject2D

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