v2.1.0
Version 2.1.0
This minor version bump now has some major snapshot support but is backwards compatible.
Changes:
- Feature: Add
CanvasRenderingContext2D
method:ctx.__getEvents()
- Feature: Every successful modification of the
CanvasRenderingContext2D
state machine logs an_event
- Feature: Every successful modification of the
- Feature: Add
CanvasRenderingContext2D
method:ctx.__getPath()
- Feature: Every path call adds a
_path
item and can be accessed viactx.__getPath()
- Feature:
beginPath()
empties the_path
- Feature: Every path call adds a
- Feature: Add
CanvasRenderingContext2D
method:ctx.__getDrawCalls()
- Feature: Every draw call adds a
_drawCall
item and can be accessed viactx.__getDrawCall()
- Feature: Every draw call adds a
- Feature: Add
types/index.d.ts
file for tooling types (in jest environment) - Feature: Support node 12 🎉
- Docs
- Updated arc example
- Added snapshot testing documentation
- Bug:
createLinearGradient
now accepts strings - Bug:
createRadialGradient
now accepts strings - Bug:
globalAlpha
now acceptsnull
perNumber
coercion - Feature: Faster finite values checks
- Feature: Add
_path
and_events
toPath2D
- Testing: Add and test snapshot outputs