Releases: hustcc/jest-canvas-mock
Releases · hustcc/jest-canvas-mock
v2.5.0
What's Changed
- Fix copy & paste mistake: toBlob -> toDataURL by @jdufresne in #101
- docs: fix some typos by @jdufresne in #104
- index: export a function to re-initialize mocks by @nicks in #98
New Contributors
- @jdufresne made their first contribution in #101
- @nicks made their first contribution in #98
Full Changelog: v2.4.0...v2.5.0
v2.4.0
What's Changed
- feat(clip): add clippath by @jtenner in #58
- [Docs] add __getClippingRegion function to docs by @jtenner in #59
- fix(gradients): support for 'transparent' as a color stop by @evanoc3 in #65
- Add code style enforcement, code of conduct by @jtenner in #66
- feat(DOMMatrix): add toFloat32Array and toFloat64Array by @FeliciousX in #70
- Fix(clip): delete clipping region with restore by @lekha in #73
- fix setLineDash parameter name: value -> segments by @milahu in #74
- test: add test for vis @antv/g2plot by @hustcc in #79
- optimize(Path2D): replace reassign-concat with for-push by @milahu in #76
- Add translate, translateSelf, scale and scaleSelf to DOMMatrix by @YonatanKra in #83
- ci: target to Node.js 12 by @LitoMore in #90
- fix(window): avoid
global.windowredefinition by @LitoMore in #91
New Contributors
- @evanoc3 made their first contribution in #65
- @FeliciousX made their first contribution in #70
- @lekha made their first contribution in #73
- @milahu made their first contribution in #74
- @YonatanKra made their first contribution in #83
- @LitoMore made their first contribution in #90
Full Changelog: v2.2.0...v2.4.0
v2.3.0
- Added Prettier code style
- Deleted .npmignore and switched to
package.jsonfiles field - Added CONTRIBUTING and CODE_OF_CONDUCT docs
- Switched to
moo-colorfor color parsing - Added contributors to markdown document
- New Contributor @evanoc0
- New Contributor @FeliciousX
- Add 2 methods of DOMMatrix #70
v2.2.0
v2.1.2
v2.1.1
v2.1.0
Version 2.1.0
This minor version bump now has some major snapshot support but is backwards compatible.
Changes:
- Feature: Add
CanvasRenderingContext2Dmethod:ctx.__getEvents()- Feature: Every successful modification of the
CanvasRenderingContext2Dstate machine logs an_event
- Feature: Every successful modification of the
- Feature: Add
CanvasRenderingContext2Dmethod:ctx.__getPath()- Feature: Every path call adds a
_pathitem and can be accessed viactx.__getPath() - Feature:
beginPath()empties the_path
- Feature: Every path call adds a
- Feature: Add
CanvasRenderingContext2Dmethod:ctx.__getDrawCalls()- Feature: Every draw call adds a
_drawCallitem and can be accessed viactx.__getDrawCall()
- Feature: Every draw call adds a
- Feature: Add
types/index.d.tsfile for tooling types (in jest environment) - Feature: Support node 12 🎉
- Docs
- Updated arc example
- Added snapshot testing documentation
- Bug:
createLinearGradientnow accepts strings - Bug:
createRadialGradientnow accepts strings - Bug:
globalAlphanow acceptsnullperNumbercoercion - Feature: Faster finite values checks
- Feature: Add
_pathand_eventstoPath2D - Testing: Add and test snapshot outputs