Interface DieAnimation

Hierarchy

  • DieAnimation

Properties

animation?: BgaAnimation<BgaElementAnimationSettings>

An animation function, that return a Promise at the end of animation (the promise returns true if animation ended, false otherwise)

fromElement?: HTMLElement

The element to move the die from.

fromStock?: DiceStock

The stock to take the die. It will automatically remove the die from the other stock.

originalSide?: "front" | "back"

The side before animation.

rotationDelta?: number

If the die is rotated at the start of animation.

Generated using TypeDoc