Skip to content

Profectus / game/boards/board / setupActions

Function: setupActions() ​

setupActions<T>(options): ComputedRef<Element | "">

Sets up a system where a list of actions, which are arbitrary JSX elements, will get displayed around a node radially, under given conditions. The actions are radially centered around 3/2 PI (Down).

Type Parameters ​

• T extends NodePosition

Parameters ​

options ​

SetupActionsOptions<T>

Setup actions options.

Returns ​

ComputedRef<Element | "">

A JSX function to render the actions.

Defined in ​

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