canvas-operations
Advanced tools
Comparing version 2.0.1 to 2.0.2
'use strict'; | ||
var d3 = require('d3'); | ||
var Canvas = require('canvas') | ||
, Image = Canvas.Image | ||
,d3 = require('d3'); | ||
@@ -61,2 +61,6 @@ var resize = function(input) { | ||
var ctx = canvas.getContext('2d'); | ||
global.CanvasRenderingContext2D = {}; | ||
global.CanvasRenderingContext2D.prototype = ctx; | ||
require('canvas-5-polyfill'); | ||
if(!data || data.length <= 0) | ||
@@ -63,0 +67,0 @@ return []; |
{ | ||
"name": "canvas-operations", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Used to resize handwritten pixel alpha values for nueral network pattern recognition", | ||
@@ -21,5 +21,5 @@ "main": "index.js", | ||
"canvas": "^1.4.0", | ||
"d3": "^4.2.2", | ||
"d3-scale": "^1.0.3" | ||
"canvas-5-polyfill": "^0.1.1", | ||
"d3": "^3.2.2" | ||
} | ||
} |
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
5136
5
97
+ Addedcanvas-5-polyfill@^0.1.1
+ Addedcanvas-5-polyfill@0.1.5(transitive)
+ Addedd3@3.5.17(transitive)
- Removedd3-scale@^1.0.3
- Removedcommander@2.20.3(transitive)
- Removedd3@4.13.0(transitive)
- Removedd3-array@1.2.1(transitive)
- Removedd3-axis@1.0.8(transitive)
- Removedd3-brush@1.0.4(transitive)
- Removedd3-chord@1.0.4(transitive)
- Removedd3-collection@1.0.4(transitive)
- Removedd3-color@1.0.3(transitive)
- Removedd3-dispatch@1.0.3(transitive)
- Removedd3-drag@1.2.1(transitive)
- Removedd3-dsv@1.0.8(transitive)
- Removedd3-ease@1.0.3(transitive)
- Removedd3-force@1.1.0(transitive)
- Removedd3-format@1.2.2(transitive)
- Removedd3-geo@1.9.1(transitive)
- Removedd3-hierarchy@1.1.5(transitive)
- Removedd3-interpolate@1.1.6(transitive)
- Removedd3-path@1.0.5(transitive)
- Removedd3-polygon@1.0.3(transitive)
- Removedd3-quadtree@1.0.3(transitive)
- Removedd3-queue@3.0.7(transitive)
- Removedd3-random@1.1.0(transitive)
- Removedd3-request@1.0.6(transitive)
- Removedd3-scale@1.0.7(transitive)
- Removedd3-selection@1.3.0(transitive)
- Removedd3-shape@1.2.0(transitive)
- Removedd3-time@1.0.8(transitive)
- Removedd3-time-format@2.1.1(transitive)
- Removedd3-timer@1.0.7(transitive)
- Removedd3-transition@1.1.1(transitive)
- Removedd3-voronoi@1.1.2(transitive)
- Removedd3-zoom@1.7.1(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedrw@1.3.3(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedxmlhttprequest@1.8.0(transitive)
Updatedd3@^3.2.2