Skip to content

Releases: hustcc/jest-canvas-mock

v2.5.0

23 Mar 13:20
002c8db
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.4.0...v2.5.0

v2.4.0

28 Apr 09:56
0a18832
Compare
Choose a tag to compare

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.window redefinition by @LitoMore in #91

New Contributors

Full Changelog: v2.2.0...v2.4.0

v2.3.0

29 Sep 01:31
Compare
Choose a tag to compare
  • Added Prettier code style
  • Deleted .npmignore and switched to package.json files field
  • Added CONTRIBUTING and CODE_OF_CONDUCT docs
  • Switched to moo-color for color parsing
  • Added contributors to markdown document
  • Add 2 methods of DOMMatrix #70

v2.2.0

06 Nov 18:17
Compare
Choose a tag to compare
feat(version): update version

v2.1.2

09 Oct 01:46
Compare
Choose a tag to compare

fix(context): ⚓ Removes argument to getters #47

v2.1.1

19 Aug 02:01
Compare
Choose a tag to compare
  • Feature: Support for ImageData instantiation using a source array(#45)

v2.1.0

14 May 01:36
7d6239c
Compare
Choose a tag to compare

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: Add CanvasRenderingContext2D method: ctx.__getPath()
    • Feature: Every path call adds a _path item and can be accessed via ctx.__getPath()
    • Feature: beginPath() empties the _path
  • Feature: Add CanvasRenderingContext2D method: ctx.__getDrawCalls()
    • Feature: Every draw call adds a _drawCall item and can be accessed via ctx.__getDrawCall()
  • 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 accepts null per Number coercion
  • Feature: Faster finite values checks
  • Feature: Add _path and _events to Path2D
  • Testing: Add and test snapshot outputs