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# */{
266
266
} ,
267
267
268
268
/**
269
- * Returns a valid HTML canvas you can use.
269
+ * Returns a valid HTML canvas you can use.
270
270
* Internally, this may reuse an existing canvas.
271
271
*
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
276
273
* @param {Number } height
277
274
*
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
+ *
278
284
* @option width {Number}
279
285
* @option height {Number}
280
286
*
281
287
* @returns {HTMLCanvasElement }
282
- */
288
+ */
283
289
createCanvas : function ( width , height ) {
284
290
return CanvasProvider . getCanvas ( width , height ) ;
285
291
} ,
You can’t perform that action at this time.
0 commit comments