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

canvas

Package Overview
Dependencies
Maintainers
0
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas - npm Package Compare versions

Comparing version 0.0.7 to 0.1.0

node-canvas/lib/._image.js

6

node-canvas/._History.md

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR����"�"com.macromates.caret{
column = 10;
line = 4;
Mac OS X  2��ATTR�O��"�"com.macromates.caret{
column = 0;
line = 14;
}

@@ -0,0 +0,0 @@ Mac OS X  2��ATTR�����"�"com.macromates.caret{

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR�`^��$�$com.macromates.caret{
column = 136;
line = 13;
Mac OS X  2��ATTR�����$�$com.macromates.caret{
column = 205;
line = 60;
}
0.1.0 / 2010-11-17
==================
* Added `Image`
* Added `ImageData`
* Added `PixelArray`
* Added `CanvasRenderingContext2d#drawImage()`
* Added `CanvasRenderingContext2d#getImageData()`
* Added `CanvasRenderingContext2d#createImageData()`
* Added kraken blur benchmark example
* Added several new tests
* Fixed instanceof checks for many c++ methods
* Fixed test runner in firefox [Don Park]
0.0.8 / 2010-11-12
==================
* Added `CanvasRenderingContext2d#drawImage()`
* Fixed `free()` call missing stdlib
* Fixed Image#{width,height} initialization to 0
* Fixed; load image on non-LOADING state
0.0.7 / 2010-11-12

@@ -3,0 +25,0 @@ ==================

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR�����#�#com.macromates.caret{
column = 24;
line = 29;
Mac OS X  2��ATTR����#�#com.macromates.caret{
column = 23;
line = 15;
}

@@ -1,1 +0,4 @@

Mac OS X  2��ATTR��n�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR�����#�#com.macromates.caret{
column = 0;
line = 485;
}

@@ -1,1 +0,1 @@

Mac OS X  2��ATTR� �� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR���� � com.macromates.caretx���R������<[k0?'3/«��

@@ -16,2 +16,3 @@

, cairoVersion = canvas.cairoVersion
, PixelArray = canvas.PixelArray
, Context2d = require('./context2d')

@@ -31,3 +32,3 @@ , PNGStream = require('./pngstream')

exports.version = '0.0.7';
exports.version = '0.1.0';

@@ -46,2 +47,3 @@ /**

exports.PNGStream = PNGStream;
exports.PixelArray = PixelArray;
exports.Image = Image;

@@ -62,2 +64,8 @@

/**
* PixelArray implementation.
*/
require('./pixelarray');
/**
* Inspect canvas.

@@ -64,0 +72,0 @@ *

@@ -15,2 +15,4 @@

, CanvasGradient = canvas.CanvasGradient
, ImageData = canvas.ImageData
, PixelArray = canvas.CanvasPixelArray
, colors = require('./colors');

@@ -452,2 +454,36 @@

return this.lastTextAlignment || 'start';
});
});
/**
* Get `ImageData` with the given rect.
*
* @param {Number} x
* @param {Number} y
* @param {Number} width
* @param {Number} height
* @return {ImageData}
* @api public
*/
Context2d.prototype.getImageData = function(x, y, width, height){
var arr = new PixelArray(this.canvas, x, y, width, height);
return new ImageData(arr);
};
/**
* Create `ImageData` with the given dimensions or
* `ImageData` instance for dimensions.
*
* @param {Number|ImageData} width
* @param {Number} height
* @return {ImageData}
* @api public
*/
Context2d.prototype.createImageData = function(width, height){
if (width instanceof ImageData) {
height = width.height;
width = width.width;
}
return new ImageData(new PixelArray(width, height));
};
{ "name": "canvas"
, "description": "Canvas graphics API backed by Cairo"
, "version": "0.0.7"
, "version": "0.1.0"
, "author": "TJ Holowaychuk <tj@learnboost.com>"

@@ -5,0 +5,0 @@ , "keywords": ["canvas", "graphic", "graphics"]

@@ -61,2 +61,4 @@

Currently _only_ sync streaming is supported, however we plan on supporting async streaming as well (of course :) ). Until then the `Canvas#toBuffer(callback)` alternative is async utilizing `eio_custom()`.
### Canvas#toBuffer()

@@ -66,3 +68,2 @@

canvas.toBuffer();

@@ -69,0 +70,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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