Skip to content

Profectus / game/boards/board / setupDraggableNode

Function: setupDraggableNode() ​

setupDraggableNode<T>(options): DraggableNode<T>

Sets up a system to allow nodes to be moved within a board by dragging and dropping. Also allows for dropping nodes on other nodes to trigger code.

Type Parameters ​

• T

Parameters ​

options ​

DraggableNodeOptions<T>

Draggable node options.

Returns ​

DraggableNode<T>

A DraggableNode object.

Defined in ​

profectus/src/game/boards/board.tsx:94