@jingx/three-dice-roll 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,6 +28,7 @@ import 'three-dice-roll/style.css';
28
28
  const dice = new DiceComponent({
29
29
  container: document.getElementById('app'),
30
30
  result: [2, 5, 6],
31
+ time: 10,
31
32
  startRoll: 1,
32
33
  rollDoneCallBack(results) {
33
34
  console.log(results);
@@ -75,6 +76,8 @@ Props:
75
76
  - `rollDoneCallBack?: (results: number[]) => void`
76
77
  - `startRoll?: boolean | number | string`
77
78
  - `interactive?: boolean`
79
+ - `time?: number` countdown duration in seconds before auto-roll
80
+ - `countdownTickMs?: number` countdown interval in milliseconds
78
81
 
79
82
  Methods:
80
83