From 17e6be0ac3f10ad7f628c59288a044929b2af7aa Mon Sep 17 00:00:00 2001 From: Em Lazer-Walker Date: Tue, 9 Jun 2020 15:07:34 -0400 Subject: [PATCH] Split up createCanvas docs into two separate blocks --- src/core/PaperScope.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/core/PaperScope.js b/src/core/PaperScope.js index 37cca4d332..aae6dbd612 100644 --- a/src/core/PaperScope.js +++ b/src/core/PaperScope.js @@ -266,20 +266,26 @@ var PaperScope = Base.extend(/** @lends PaperScope# */{ }, /** - * Returns a valid HTML canvas you can use. + * Returns a valid HTML canvas you can use. * Internally, this may reuse an existing canvas. * - * This either accepts width and height as two arguments, or you can pass - * in an object with "width" and "height" properties. - * - * @param {Number|Object} width + * @param {Number} width * @param {Number} height * + * @returns {HTMLCanvasElement} + */ + + /** + * Returns a valid HTML canvas you can use. + * Internally, this may reuse an existing canvas. + * + * @param {Object} options An object containing the canvas width / height + * * @option width {Number} * @option height {Number} * * @returns {HTMLCanvasElement} - */ + */ createCanvas: function(width, height) { return CanvasProvider.getCanvas(width, height); },