jest-canvas-mock
Advanced tools
Changelog
Version 2.5.0
Changelog
Version 2.4.0
Changelog
Version 2.3.0
package.json
files fieldmoo-color
for color parsingChangelog
Version 2.2.0
Changelog
Version 2.1.0
This minor version bump now has some major snapshot support but is backwards compatible.
Changes:
static
CanvasRenderingContext2D
method: #.__getEvents(ctx)
CanvasRenderingContext2D
state machine logs an _event
static
CanvasRenderingContext2D
method: #.__getPath(ctx)
_path
item and can be accessed via __getPath(ctx)
beginPath()
empties the _path
static
CanvasRenderingContext2D
method: #.__getDrawCalls(ctx)
_drawCall
item and can be accessed via __getDrawCall(ctx)
types/index.d.ts
file for tooling types (in jest environment)createLinearGradient
now accepts stringscreateRadialGradient
now accepts stringsglobalAlpha
now accepts null
per Number
coercion_path
and _events
to Path2D