Interface BgaDieType

Hierarchy

  • BgaDieType

Implemented by

Properties

facesCount: number
setupDieDiv: ((die, element) => void)

Type declaration

    • (die, element): void
    • Allow to populate the main div of the die. You can set classes or dataset, if it's informations shared by all faces.

      Parameters

      • die: BgaDie

        the die informations

      • element: HTMLDivElement

        the die main Div element

      Returns void

setupFaceDiv?: ((die, element, face) => void)

Type declaration

    • (die, element, face): void
    • Allow to populate a face div of the die. You can set classes or dataset to show the correct die face.

      Parameters

      • die: BgaDie

        the die informations

      • element: HTMLDivElement

        the die face Div element

      • face: number

        the face number (1-indexed)

      Returns void

size?: number

Generated using TypeDoc