Releases: TheBlindHawk/Roulette
Releases · TheBlindHawk/Roulette
v/3.1.0
Version Updates
- added
AsyncRollByIndex
to roll the roulette on a value promise (ex: while waiting for an axios response)
v/3.0.2
v/3.0.1
Version updates
fixes
- Image width and height is not set when adding a custom image causing it to overflow
features
- You can now add your own custom images on top of the roulette instead of plain text!
v/3.0.0
Version Updates:
Version 3 has some major changes in the constructor, as well as newly added features.
Any previously existing feature is still accessible, and upgrading to version 3 should be as easy as changing the way you pass your information.
additional features
- further editable down to each section
- (untested) add React compatibility without losing JS and TS compatibility
breaking changes
- complete refactoring of the constructor to ease detailed customization
- update the folder structure in a more future-proof way that eases the addition of brand new features
- removing all development libraries (currently only relies on d3-selection)
- Removing most unnecessary/repetitive functions
- Example: you can now
roll()
with empty input to do what was previouslyrollRandom()
v/2.2.1
Version Updates
- outdated development libraries updated
v/2.1.2
Version Updates
- The Roulette sound's volume can now be customized
v/2.1.1
Version Updates
- major fixes to the README file
- added option to change text font and data from constructor
v/2.1.0
Version Updates
- WARN Use the contructor to change the audio directory (audio_dir has been removed)
- WARN roulette functions will now thow an error when passing unprocessable data
- The sound can now be changed to only play once
- The roulette and arrow can now be rotated to different positions
- The last roll is now passed to the onstart() and onstop() functions
- npm code is now uglified (github code will remain accessible)
v/2.0.1
Version 2.0.1
- Updated and fixed the README
- added error messages where needed
- added new ready made arrow: 'thin'
Version 2.0.0
- changed the code to typescript, added linters and testers
- roulette chan be shaped as a doughnut or changed into a custom image
- you can customize the arrow more easily using an element or string
- you can decide for how log the roulette will keep rolling
- the slowdown now has a more "natural" feel to it
- the arrow no longer needs to land precisely at the center of the roll
- declaration changed from
Roulette()
toRoulette({})
now using an object