canvas-utilities
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -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; |
{ | ||
"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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14123
413
+ Addedlodash@4.17.21(transitive)
+ Addedvictor@1.1.0(transitive)
- Removedlodash@3.10.1(transitive)
- Removedvictor@0.2.6(transitive)
Updatedcanvas@^1.3.9
Updatedlodash@^4.1.0
Updatedpoisson-disc-sampler@^1.1.0
Updatedvictor@^1.1.0