diff --git a/lib/canvas.js b/lib/canvas.js index 641aff4..0b9a093 100644 --- a/lib/canvas.js +++ b/lib/canvas.js @@ -277,7 +277,7 @@ Canvas.prototype.toBuffer = function(){ */ Canvas.prototype.toDataURL = function(type){ - // TODO: jpeg / svg + // TODO: jpeg / svg / pdf :) type = type || 'image/png'; if ('image/png' != type) throw new Error('currently only image/png is supported'); return 'data:' + type diff --git a/src/canvas.cc b/src/canvas.cc index 31e3bfd..3bf85dd 100644 --- a/src/canvas.cc +++ b/src/canvas.cc @@ -123,7 +123,7 @@ writeToBuffer(void *c, const uint8_t *data, unsigned len) { Handle Canvas::StreamPNGSync(const Arguments &args) { HandleScope scope; - // TODO: async + // TODO: async as well if (!args[0]->IsFunction()) return ThrowException(Exception::TypeError(String::New("callback function required")));