Interface SlotStockSettings

Hierarchy

Properties

center?: boolean

indicate if the line should be centered (default yes)

direction?: "row" | "column"

Indicate the line direction (default row)

gap?: string

CSS to set the gap between dice. '8px' if unset.

mapDieToSlot?: ((die) => SlotId)

Type declaration

    • (die): SlotId
    • How to place the die on a slot automatically

      Parameters

      Returns SlotId

perspective?: number

Perspective effect on Stock elements. Default 1000px. Can be overriden on each stock.

selectableDieClass?: string

The class to apply to selectable dice. Use class from manager is unset.

selectedDieClass?: string

The class to apply to selected dice. Use class from manager is unset.

slotClasses?: string[]

The classes to apply to each slot

slotsIds: SlotId[]

The ids for the slots (can be number or string)

Indicate the die sorting (unset means no sorting, new dice will be added at the end). For example, use sort: sortFunction('type', '-type_arg') to sort by type then type_arg (in reversed order if prefixed with -). Be sure you typed the values correctly! Else '11' will be before '2'.

unselectableDieClass?: string

The class to apply to selectable dice. Use class from manager is unset.

wrap?: "wrap" | "nowrap"

Indicate if the line should wrap when needed (default wrap)

Generated using TypeDoc