From ffbb1a6c140d1fd29a56cc0f6c4abff2ec9972c7 Mon Sep 17 00:00:00 2001 From: Spongman Date: Fri, 19 Jan 2018 14:01:03 -0800 Subject: [PATCH 1/2] fix `arc` doc parameters to match other 2d primitives --- src/core/2d_primitives.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/2d_primitives.js b/src/core/2d_primitives.js index 080843dccd..2af519e567 100644 --- a/src/core/2d_primitives.js +++ b/src/core/2d_primitives.js @@ -25,10 +25,10 @@ require('./error_helpers'); * only to draw parts of an ellipse. * * @method arc - * @param {Number} a x-coordinate of the arc's ellipse - * @param {Number} b y-coordinate of the arc's ellipse - * @param {Number} c width of the arc's ellipse by default - * @param {Number} d height of the arc's ellipse by default + * @param {Number} x x-coordinate of the arc's ellipse + * @param {Number} y y-coordinate of the arc's ellipse + * @param {Number} w width of the arc's ellipse by default + * @param {Number} h height of the arc's ellipse by default * @param {Number} start angle to start the arc, specified in radians * @param {Number} stop angle to stop the arc, specified in radians * @param {Constant} [mode] optional parameter to determine the way of drawing From fd4978675ea05fb42d0de427dfa8a5d9ef1acc33 Mon Sep 17 00:00:00 2001 From: Spongman Date: Fri, 19 Jan 2018 16:40:02 -0800 Subject: [PATCH 2/2] fix arc doc comment --- src/core/2d_primitives.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/2d_primitives.js b/src/core/2d_primitives.js index 2af519e567..933e2f0efb 100644 --- a/src/core/2d_primitives.js +++ b/src/core/2d_primitives.js @@ -14,7 +14,7 @@ var canvas = require('./canvas'); require('./error_helpers'); /** - * Draw an arc to the screen. If called with only a, b, c, d, start, and + * Draw an arc to the screen. If called with only x, y, w, h, start, and * stop, the arc will be drawn and filled as an open pie segment. If a mode parameter is provided, the arc * will be filled like an open semi-circle (OPEN) , a closed semi-circle (CHORD), or as a closed pie segment (PIE). The * origin may be changed with the ellipseMode() function.