From 4a4513acae78e33e89c1ddf3454abeb118e9dd6c Mon Sep 17 00:00:00 2001 From: "Paper.js Bot" Date: Sun, 3 Jul 2016 12:20:10 +0000 Subject: [PATCH] Prebuilt module for commit f04dd1430984f5414f7b20ce2b4275660d0be06f --- dist/docs/assets/js/paper.js | 2 +- dist/node/canvas.js | 13 +++---------- dist/paper-core.js | 2 +- dist/paper-core.min.js | 2 +- dist/paper-full.js | 2 +- dist/paper-full.min.js | 2 +- 6 files changed, 8 insertions(+), 15 deletions(-) diff --git a/dist/docs/assets/js/paper.js b/dist/docs/assets/js/paper.js index 12a294c9..7612e074 100644 --- a/dist/docs/assets/js/paper.js +++ b/dist/docs/assets/js/paper.js @@ -9,7 +9,7 @@ * * All rights reserved. * - * Date: Sun Jul 3 14:13:50 2016 +0200 + * Date: Sun Jul 3 14:16:17 2016 +0200 * *** * diff --git a/dist/node/canvas.js b/dist/node/canvas.js index 94dd232a..c6bc25ef 100644 --- a/dist/node/canvas.js +++ b/dist/node/canvas.js @@ -21,24 +21,17 @@ var Canvas = require('canvas'), module.exports = function(window) { var HTMLCanvasElement = window.HTMLCanvasElement; - function getImplementation(obj) { - // Try implForWrapper() first, fall back on obj. This appears to be - // necessary on v7.2.2, but not anymore once we can switch to 8.0.0 - var impl = idlUtils.implForWrapper(obj); - return impl && impl._canvas ? impl : obj; - } - // Add fake HTMLCanvasElement#type property: Object.defineProperty(HTMLCanvasElement.prototype, 'type', { get: function() { - var canvas = getImplementation(this)._canvas; + var canvas = idlUtils.implForWrapper(this)._canvas; return canvas && canvas.type || 'image'; }, set: function(type) { // Allow replacement of internal node-canvas, so we can switch to a // PDF canvas. - var impl = getImplementation(this), + var impl = idlUtils.implForWrapper(this), size = impl._canvas || impl; impl._canvas = new Canvas(size.width, size.height, type); impl._context = null; @@ -49,7 +42,7 @@ module.exports = function(window) { ['toBuffer', 'pngStream', 'createPNGStream', 'jpgStream', 'createJPGStream'] .forEach(function(key) { HTMLCanvasElement.prototype[key] = function() { - var canvas = getImplementation(this)._canvas; + var canvas = idlUtils.implForWrapper(this)._canvas; return canvas[key].apply(canvas, arguments); }; }); diff --git a/dist/paper-core.js b/dist/paper-core.js index 239fe913..8a99ac3b 100644 --- a/dist/paper-core.js +++ b/dist/paper-core.js @@ -9,7 +9,7 @@ * * All rights reserved. * - * Date: Sun Jul 3 14:13:50 2016 +0200 + * Date: Sun Jul 3 14:16:17 2016 +0200 * *** * diff --git a/dist/paper-core.min.js b/dist/paper-core.min.js index 90c67480..638df077 100644 --- a/dist/paper-core.min.js +++ b/dist/paper-core.min.js @@ -9,7 +9,7 @@ * * All rights reserved. * - * Date: Sun Jul 3 14:13:50 2016 +0200 + * Date: Sun Jul 3 14:16:17 2016 +0200 * *** * diff --git a/dist/paper-full.js b/dist/paper-full.js index 12a294c9..7612e074 100644 --- a/dist/paper-full.js +++ b/dist/paper-full.js @@ -9,7 +9,7 @@ * * All rights reserved. * - * Date: Sun Jul 3 14:13:50 2016 +0200 + * Date: Sun Jul 3 14:16:17 2016 +0200 * *** * diff --git a/dist/paper-full.min.js b/dist/paper-full.min.js index fdcfc0e7..0ad3ad87 100644 --- a/dist/paper-full.min.js +++ b/dist/paper-full.min.js @@ -9,7 +9,7 @@ * * All rights reserved. * - * Date: Sun Jul 3 14:13:50 2016 +0200 + * Date: Sun Jul 3 14:16:17 2016 +0200 * *** *