Skip to content

Commit 17e6be0

Browse files
committed
Split up createCanvas docs into two separate blocks
1 parent 5f5ff30 commit 17e6be0

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/core/PaperScope.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,20 +266,26 @@ var PaperScope = Base.extend(/** @lends PaperScope# */{
266266
},
267267

268268
/**
269-
* Returns a valid HTML canvas you can use.
269+
* Returns a valid HTML canvas you can use.
270270
* Internally, this may reuse an existing canvas.
271271
*
272-
* This either accepts width and height as two arguments, or you can pass
273-
* in an object with "width" and "height" properties.
274-
*
275-
* @param {Number|Object} width
272+
* @param {Number} width
276273
* @param {Number} height
277274
*
275+
* @returns {HTMLCanvasElement}
276+
*/
277+
278+
/**
279+
* Returns a valid HTML canvas you can use.
280+
* Internally, this may reuse an existing canvas.
281+
*
282+
* @param {Object} options An object containing the canvas width / height
283+
*
278284
* @option width {Number}
279285
* @option height {Number}
280286
*
281287
* @returns {HTMLCanvasElement}
282-
*/
288+
*/
283289
createCanvas: function(width, height) {
284290
return CanvasProvider.getCanvas(width, height);
285291
},

0 commit comments

Comments
 (0)