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

canvas-color

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-color - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

2

package.json
{
"name": "canvas-color",
"version": "2.0.7",
"version": "2.0.8",
"description": "color",

@@ -5,0 +5,0 @@ "keywords": [

@@ -12,2 +12,3 @@ ;(function(root, factory) {

'use strict';
var guid = function() {

@@ -21,2 +22,11 @@ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {

var getBase64 = function(img, width, height) {
var canvas = document.createElement('canvas');
canvas.height = height;
canvas.width = width;
var ctx = canvas.getContext('2d');
ctx.drawImage(img, 0, 0);
return canvas.toDataURL();
};
function CanvasColor(options) {

@@ -30,11 +40,2 @@ this.image = options.image;

function getBase64(img, width, height) {
var canvas = document.createElement('canvas');
canvas.height = height;
canvas.width = width;
var ctx = canvas.getContext('2d');
ctx.drawImage(img, 0, 0);
return canvas.toDataURL();
}
CanvasColor.prototype.init = function() {

@@ -41,0 +42,0 @@ var that = this;

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