Skip to content

Releases: Dysnomia-Studio/canvas2d-wrapper

1.7.1

09 Nov 11:29
Compare
Choose a tag to compare
  • Fix render sortElement function

Full Changelog: 1.7.0...1.7.1

1.7.0

09 Nov 11:29
Compare
Choose a tag to compare
  • Update dependencies
  • Fix collideElement() when multiple elements could match

Full Changelog: 1.6.2...1.7.0

1.6.2

08 Mar 18:29
Compare
Choose a tag to compare

Fix usage when multiple canvas are used at the same time

Full Changelog: 1.6.1...1.6.2

1.6.1

21 Jan 18:21
Compare
Choose a tag to compare

Fix onRightClick Event

Full Changelog: 1.6.0...1.6.1

1.6.0

21 Jan 12:54
Compare
Choose a tag to compare

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

26 Dec 10:50
Compare
Choose a tag to compare

Add new helper hooks:

  • useGamepad()
  • useKeyboard()
  • useMousePosition()
  • useWindowDimensions()

Full Changelog: 1.5.0...1.5.1

1.5.0

26 Dec 09:40
Compare
Choose a tag to compare
  • Setup vsync (e.g: on a 60hz screen, animation will always try to get to 60 FPS)
  • Add onFrame callback, if needed or gameplay purposes
  • Various performances improvements using useEffect()
  • Clean code
  • Update various (dev and non-dev) dependencies
  • Setup dependabot
  • Setup CI & tests for node 16/18/20/21
  • Setup sonarqube analysis

Full Changelog: 1.4.0...1.5.0

1.4.0

02 Jul 09:29
Compare
Choose a tag to compare
  • Touchscreen support
  • Added react 18 as peer dependency

1.3.4

21 Apr 18:05
Compare
Choose a tag to compare

Added "onWheel" event

1.3.3

26 Mar 12:26
Compare
Choose a tag to compare

Update dependencies