Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

canvas-utilities

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-utilities - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

14

canvas-utilities.js

@@ -0,3 +1,17 @@

'use strict';
var Canvas = require('canvas');
// polyfill for the new ellipse method
Canvas.Context2d.prototype.ellipse =
function (x, y, radiusX, radiusY, rotation, startAngle, endAngle,
antiClockwise) {
this.save();
this.translate(x, y);
this.rotate(rotation);
this.scale(radiusX, radiusY);
this.arc(0, 0, 1, startAngle, endAngle, antiClockwise);
this.restore();
};
exports.Canvas = Canvas;

10

package.json
{
"name": "canvas-utilities",
"version": "2.1.0",
"version": "2.2.0",
"description": "Utilities for use with node-canvas or the browser's <canvas> element.",

@@ -12,7 +12,7 @@ "main": "canvas-utilities.js",

"dependencies": {
"canvas": "^1.2.3",
"lodash": "^3.9.3",
"canvas": "^1.3.9",
"lodash": "^4.1.0",
"onecolor": "^2.5.0",
"poisson-disc-sampler": "^1.0.0",
"victor": "^0.2.6"
"poisson-disc-sampler": "^1.1.0",
"victor": "^1.1.0"
},

@@ -19,0 +19,0 @@ "browser": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc