OptionalautoThe settings when using placeDie/placeDice to automatically place some dice in the matching stock
OptionalborderThe border radius, in % (default 5% for 6-faces, else 0%).
OptionaldieThe filter on die click event. Default 'selectable'.
OptionalfacesThe number of faces of the die (default 6).
OptionalgetReturn the die face.
Default: the face will be set to die.face.
OptionalgetDefine the id that will be set to each die div. It must return a unique id for each different die, so it's often linked to die id.
Default: the id will be set to die.id.
OptionalperspectivePerspective effect on Stock elements. Default 1000px. Can be overriden on each stock.
OptionalselectableThe class to apply to selectable dice. Default 'bga-dice_selectable-die'.
OptionalselectedThe class to apply to selected dice. Default 'bga-dice_selected-die'.
OptionalsetupAllow to populate the main div of the die. You can set classes or dataset, if it's informations shared by all faces.
OptionalsetupAllow to populate a face div of the die. You can set classes or dataset to show the correct die face.
OptionalsizeThe size of the die, in px (default 50).
OptionaltypeThe type of dice, if you game has multiple dice types (each dice manager should have a different type).
Default ${yourgamename}-dice.
The die element will have this type as a class, and each face will have the class ${type}-face-${number}.
OptionalunselectableThe class to apply to selectable dice. Default 'bga-dice_disabled-die'.
The animation manager used in the game.