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

canvas

Package Overview
Dependencies
Maintainers
6
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 1.4.0 to 1.5.0

.github/ISSUE_TEMPLATE.md

9

History.md

@@ -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 @@ *

4

package.json
{
"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

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