|
@ -41,6 +41,7 @@ var PNGStream = module.exports = function PNGStream(canvas, sync) { |
|
|
: 'streamPNG'; |
|
|
: 'streamPNG'; |
|
|
this.sync = sync; |
|
|
this.sync = sync; |
|
|
this.canvas = canvas; |
|
|
this.canvas = canvas; |
|
|
|
|
|
if ('streamPNG' == method) throw new Error('async png streaming not yet implemented'); |
|
|
process.nextTick(function(){ |
|
|
process.nextTick(function(){ |
|
|
canvas[method](function(err, chunk, len){ |
|
|
canvas[method](function(err, chunk, len){ |
|
|
if (err) { |
|
|
if (err) { |
|
|