Fix el(l)ipse spelling error

This commit is contained in:
Harry Lachenmayer 2013-12-19 00:05:32 +01:00
parent c9f79ea4d9
commit 576ff71683
6 changed files with 37 additions and 37 deletions

View file

@ -326,7 +326,7 @@ Complex polys will not be filled. Heres an example of a complex poly: <a href="h
</li> </li>
<li class="index-item method"> <li class="index-item method">
<a href="#method_drawElipse">drawElipse</a> <a href="#method_drawEllipse">drawEllipse</a>
@ -1245,8 +1245,8 @@ Complex polys will not be filled. Heres an example of a complex poly: <a href="h
</div> </div>
<div id="method_drawElipse" class="method item"> <div id="method_drawEllipse" class="method item">
<h3 class="name"><code>drawElipse</code></h3> <h3 class="name"><code>drawEllipse</code></h3>
<div class="args"> <div class="args">
@ -1316,7 +1316,7 @@ Complex polys will not be filled. Heres an example of a complex poly: <a href="h
</div> </div>
<div class="description"> <div class="description">
<p>Draws an elipse.</p> <p>Draws an ellipse.</p>
</div> </div>

View file

@ -3811,9 +3811,9 @@
{ {
"file": "src/pixi/primitives/Graphics.js", "file": "src/pixi/primitives/Graphics.js",
"line": 190, "line": 190,
"description": "Draws an elipse.", "description": "Draws an ellipse.",
"itemtype": "method", "itemtype": "method",
"name": "drawElipse", "name": "drawEllipse",
"params": [ "params": [
{ {
"name": "x", "name": "x",
@ -6159,4 +6159,4 @@
"line": " src/pixi/Pixi.js:1" "line": " src/pixi/Pixi.js:1"
} }
] ]
} }

View file

@ -360,15 +360,15 @@ PIXI.Graphics.prototype.drawCircle = function( x, y, radius)
} }
/** /**
* Draws an elipse. * Draws an ellipse.
* *
* @method drawElipse * @method drawEllipse
* @param x {Number} * @param x {Number}
* @param y {Number} * @param y {Number}
* @param width {Number} * @param width {Number}
* @param height {Number} * @param height {Number}
*/ */
PIXI.Graphics.prototype.drawElipse = function( x, y, width, height) PIXI.Graphics.prototype.drawEllipse = function( x, y, width, height)
{ {
if(this.currentPath.points.length == 0)this.graphicsData.pop(); if(this.currentPath.points.length == 0)this.graphicsData.pop();

View file

@ -276,15 +276,15 @@ PIXI.CanvasGraphics.renderGraphics = function(graphics, context)
else if(data.type == PIXI.Graphics.ELIP) else if(data.type == PIXI.Graphics.ELIP)
{ {
// elipse code taken from: http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas // ellipse code taken from: http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas
var elipseData = data.points; var ellipseData = data.points;
var w = elipseData[2] * 2; var w = ellipseData[2] * 2;
var h = elipseData[3] * 2; var h = ellipseData[3] * 2;
var x = elipseData[0] - w/2; var x = ellipseData[0] - w/2;
var y = elipseData[1] - h/2; var y = ellipseData[1] - h/2;
context.beginPath(); context.beginPath();
@ -378,14 +378,14 @@ PIXI.CanvasGraphics.renderGraphicsMask = function(graphics, context)
else if(data.type == PIXI.Graphics.ELIP) else if(data.type == PIXI.Graphics.ELIP)
{ {
// elipse code taken from: http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas // ellipse code taken from: http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas
var elipseData = data.points; var ellipseData = data.points;
var w = elipseData[2] * 2; var w = ellipseData[2] * 2;
var h = elipseData[3] * 2; var h = ellipseData[3] * 2;
var x = elipseData[0] - w/2; var x = ellipseData[0] - w/2;
var y = elipseData[1] - h/2; var y = ellipseData[1] - h/2;
context.beginPath(); context.beginPath();

View file

@ -188,15 +188,15 @@ PIXI.Graphics.prototype.drawCircle = function( x, y, radius)
} }
/** /**
* Draws an elipse. * Draws an ellipse.
* *
* @method drawElipse * @method drawEllipse
* @param x {Number} * @param x {Number}
* @param y {Number} * @param y {Number}
* @param width {Number} * @param width {Number}
* @param height {Number} * @param height {Number}
*/ */
PIXI.Graphics.prototype.drawElipse = function( x, y, width, height) PIXI.Graphics.prototype.drawEllipse = function( x, y, width, height)
{ {
if(this.currentPath.points.length == 0)this.graphicsData.pop(); if(this.currentPath.points.length == 0)this.graphicsData.pop();

View file

@ -104,15 +104,15 @@ PIXI.CanvasGraphics.renderGraphics = function(graphics, context)
else if(data.type == PIXI.Graphics.ELIP) else if(data.type == PIXI.Graphics.ELIP)
{ {
// elipse code taken from: http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas // ellipse code taken from: http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas
var elipseData = data.points; var ellipseData = data.points;
var w = elipseData[2] * 2; var w = ellipseData[2] * 2;
var h = elipseData[3] * 2; var h = ellipseData[3] * 2;
var x = elipseData[0] - w/2; var x = ellipseData[0] - w/2;
var y = elipseData[1] - h/2; var y = ellipseData[1] - h/2;
context.beginPath(); context.beginPath();
@ -208,14 +208,14 @@ PIXI.CanvasGraphics.renderGraphicsMask = function(graphics, context)
else if(data.type == PIXI.Graphics.ELIP) else if(data.type == PIXI.Graphics.ELIP)
{ {
// elipse code taken from: http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas // ellipse code taken from: http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas
var elipseData = data.points; var ellipseData = data.points;
var w = elipseData[2] * 2; var w = ellipseData[2] * 2;
var h = elipseData[3] * 2; var h = ellipseData[3] * 2;
var x = elipseData[0] - w/2; var x = ellipseData[0] - w/2;
var y = elipseData[1] - h/2; var y = ellipseData[1] - h/2;
context.beginPath(); context.beginPath();