Releases: Dysnomia-Studio/canvas2d-wrapper
Releases · Dysnomia-Studio/canvas2d-wrapper
1.9.1
1.9.0
Changes:
- Fix CanvasImage.crop() implementation
- Expose types for typescript usage
Full Changelog: 1.8.0...1.9.0
1.8.0
- Drop React 17 support
- Add React 19 support
- Update various dependencies
Full Changelog: 1.7.2...1.8.0
1.7.2
- Fix collideElement being inverted
Full Changelog: 1.7.1...1.7.2
1.7.1
- Fix render sortElement function
Full Changelog: 1.7.0...1.7.1
1.7.0
- Update dependencies
- Fix collideElement() when multiple elements could match
Full Changelog: 1.6.2...1.7.0
1.6.2
Fix usage when multiple canvas are used at the same time
Full Changelog: 1.6.1...1.6.2
1.6.1
Fix onRightClick Event
Full Changelog: 1.6.0...1.6.1
1.6.0
Changes
-
Breaking Change: Transfer elements responsability to onFrame() method
You should now return elements list in onFrame() method instead of giving it as a prop.
It will help to improve performance by preventing some react hook rerender on gameplay side. -
Give x/y mouse positions to onHover callback()
onHover
now returns {x, y} as a second parameters -
Update some dependencies
Full Changelog: 1.5.1...1.6.0
1.5.1
Add new helper hooks:
- useGamepad()
- useKeyboard()
- useMousePosition()
- useWindowDimensions()
Full Changelog: 1.5.0...1.5.1