Skip to content

Commit

Permalink
Split up createCanvas docs into two separate blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
lazerwalker committed Jun 9, 2020
1 parent 5f5ff30 commit 17e6be0
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/core/PaperScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down

0 comments on commit 17e6be0

Please sign in to comment.