Socket
Socket
Sign inDemoInstall

jest-canvas-mock

Package Overview
Dependencies
3
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

2.5.2

Diff

atool
published 2.5.1 •

atool
published 2.5.0 •

Changelog

Source

Version 2.5.0

  • feat: export a function to re-initialize mocks (#98)
  • docs: fix some typos (#104)
  • fix: copy & paste mistake: toBlob -> toDataURL (#101)
  • chore: add Contributors LitoMore (#94)
atool
published 2.4.0 •

Changelog

Source

Version 2.4.0

  • fix(window): avoid global.window redefinition (#91)
  • feat: add translate, translateSelf, scale and scaleSelf to DOMMatrix (#83)
  • optimize(Path2D): replace reassign-concat with for-push (#76)
  • test: add test for vis @antv/g2plot (#79)
  • fix(setLineDash): rename parameter value to segments (#74)
  • fix(clip): delete clipping region with restore (#73)
atool
published 2.3.1 •

atool
published 2.3.0 •

Changelog

Source

Version 2.3.0

  • 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
jtenner
published 2.2.0 •

Changelog

Source

Version 2.2.0

  • Bug: Slice canvas transform value when pushing (#50)
  • Remove support for node 6 and 7
  • switch babel env to target node 8
  • add support for node 13
  • update package versions
  • fix lineWidth bug
atool
published 2.1.2 •

atool
published 2.1.1 •

Changelog

Source

Version 2.1.1

  • Feature: Support for ImageData instantiation using a source array (#45)
atool
published 2.1.0 •

Changelog

Source

Version 2.1.0

This minor version bump now has some major snapshot support but is backwards compatible.

Changes:

  • Feature: Add static CanvasRenderingContext2D method: #.__getEvents(ctx)
    • Feature: Every successful modification of the CanvasRenderingContext2D state machine logs an _event
  • Feature: Add static CanvasRenderingContext2D method: #.__getPath(ctx)
    • Feature: Every path call adds a _path item and can be accessed via __getPath(ctx)
    • Feature: beginPath() empties the _path
  • Feature: Add static CanvasRenderingContext2D method: #.__getDrawCalls(ctx)
    • Feature: Every draw call adds a _drawCall item and can be accessed via __getDrawCall(ctx)
  • 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
23Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc