Full Changelog: https://github.com/hustcc/jest-canvas-mock/compare/v2.4.0...v2.5.0
Published by hustcc over 2 years ago
global.window
redefinition by @LitoMore in https://github.com/hustcc/jest-canvas-mock/pull/91
Full Changelog: https://github.com/hustcc/jest-canvas-mock/compare/v2.2.0...v2.4.0
Published by hustcc about 4 years ago
package.json
files fieldmoo-color
for color parsingPublished by jtenner almost 5 years ago
Published by hustcc about 5 years ago
fix(context): ⚓ Removes argument to getters #47
Published by hustcc about 5 years ago
Published by hustcc over 5 years ago
This minor version bump now has some major snapshot support but is backwards compatible.
Changes:
CanvasRenderingContext2D
method: ctx.__getEvents()
CanvasRenderingContext2D
state machine logs an _event
CanvasRenderingContext2D
method: ctx.__getPath()
_path
item and can be accessed via ctx.__getPath()
beginPath()
empties the _path
CanvasRenderingContext2D
method: ctx.__getDrawCalls()
_drawCall
item and can be accessed via ctx.__getDrawCall()
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