Comparing version 2.0.0-alpha.6 to 2.0.0-alpha.7
{ | ||
"name": "canvas", | ||
"description": "Canvas graphics API backed by Cairo", | ||
"version": "2.0.0-alpha.6", | ||
"version": "2.0.0-alpha.7", | ||
"author": "TJ Holowaychuk <tj@learnboost.com>", | ||
@@ -6,0 +6,0 @@ "browser": "browser.js", |
@@ -126,3 +126,3 @@ # node-canvas | ||
To create a `PNGStream` simply call `canvas.pngStream()`, and the stream will start to emit _data_ events, finally emitting _end_ when finished. If an exception occurs the _error_ event is emitted. | ||
To create a `PNGStream` simply call `canvas.pngStream()`, and the stream will start to emit _data_ events, emitting _end_ when the data stream ends. If an exception occurs the _error_ event is emitted. | ||
@@ -139,4 +139,8 @@ ```javascript | ||
stream.on('end', function(){ | ||
console.log('saved png'); | ||
console.log('The PNG stream ended'); | ||
}); | ||
out.on('finish', function(){ | ||
console.log('The PNG file was created.'); | ||
}); | ||
``` | ||
@@ -143,0 +147,0 @@ |
@@ -8,2 +8,3 @@ var query = process.argv[2] | ||
'/usr/lib', | ||
'/usr/lib64', | ||
'/usr/local/lib', | ||
@@ -10,0 +11,0 @@ '/opt/local/lib', |
Sorry, the diff of this file is not supported yet
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
1392
478
288882