Comparing version 1.4.0 to 1.5.0
@@ -0,1 +1,10 @@ | ||
1.5.0 / 2016-09-11 | ||
================== | ||
* Crude PDF stream implementation (#781) | ||
* Update CI settings (#797) | ||
* Reduce some of the install warnings (#794) | ||
* Fix lineDash browser tests never finishing (#793) | ||
* Add issue template (#791) | ||
1.4.0 / 2016-06-03 | ||
@@ -2,0 +11,0 @@ ================== |
@@ -19,2 +19,3 @@ 'use strict'; | ||
, PNGStream = require('./pngstream') | ||
, PDFStream = require('./pdfstream') | ||
, JPEGStream = require('./jpegstream') | ||
@@ -74,2 +75,3 @@ , FontFace = canvas.FontFace | ||
exports.PNGStream = PNGStream; | ||
exports.PDFStream = PDFStream; | ||
exports.JPEGStream = JPEGStream; | ||
@@ -167,2 +169,26 @@ exports.Image = Image; | ||
/** | ||
* Create a `PDFStream` for `this` canvas. | ||
* | ||
* @return {PDFStream} | ||
* @api public | ||
*/ | ||
Canvas.prototype.pdfStream = | ||
Canvas.prototype.createPDFStream = function(){ | ||
return new PDFStream(this); | ||
}; | ||
/** | ||
* Create a synchronous `PDFStream` for `this` canvas. | ||
* | ||
* @return {PDFStream} | ||
* @api public | ||
*/ | ||
Canvas.prototype.syncPDFStream = | ||
Canvas.prototype.createSyncPDFStream = function(){ | ||
return new PDFStream(this, true); | ||
}; | ||
/** | ||
* Create a `JPEGStream` for `this` canvas. | ||
@@ -169,0 +195,0 @@ * |
{ | ||
"name": "canvas", | ||
"description": "Canvas graphics API backed by Cairo", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"author": "TJ Holowaychuk <tj@learnboost.com>", | ||
@@ -37,3 +37,3 @@ "contributors": [ | ||
"express": "^4.13.2", | ||
"jade": "^1.11.0", | ||
"pug": "^2.0.0-beta3", | ||
"mocha": "*", | ||
@@ -40,0 +40,0 @@ "standard": "^7.1.1" |
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
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
225543
37
787