File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff 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 width and height of the canvas.
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 } ,
You can’t perform that action at this time.
0 commit comments