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 ​
Draggable node options.
Returns ​
A DraggableNode object.