Skip to content

Commit a6ff0d5

Browse files
committed
Removed angle calculations from renderer as we only need do it when the arc is first defined
1 parent 6aa1526 commit a6ff0d5

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

src/renderer/webgl/pipelines/FlatTintPipeline.js

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ var FlatTintPipeline = new Class({
192192
* @param {number} srcScaleX - Graphics horizontal component for scale
193193
* @param {number} srcScaleY - Graphics vertical component for scale
194194
* @param {number} srcRotation - Graphics rotation
195-
* @param {number} x - Horiztonal top left coordinate of the rectangle
195+
* @param {number} x - Horizontal top left coordinate of the rectangle
196196
* @param {number} y - Vertical top left coordinate of the rectangle
197197
* @param {number} width - Width of the rectangle
198198
* @param {number} height - Height of the rectangle
@@ -847,7 +847,6 @@ var FlatTintPipeline = new Class({
847847
radius = commands[cmdIndex + 3];
848848
startAngle = commands[cmdIndex + 4];
849849
endAngle = commands[cmdIndex + 5];
850-
anticlockwise = commands[cmdIndex + 6];
851850

852851
if (lastPath === null)
853852
{
@@ -856,28 +855,6 @@ var FlatTintPipeline = new Class({
856855
iteration += iterStep;
857856
}
858857

859-
endAngle -= startAngle;
860-
861-
if (anticlockwise)
862-
{
863-
if (endAngle < -PI2)
864-
{
865-
endAngle = -PI2;
866-
}
867-
else if (endAngle > 0)
868-
{
869-
endAngle = -PI2 + endAngle % PI2;
870-
}
871-
}
872-
else if (endAngle > PI2)
873-
{
874-
endAngle = PI2;
875-
}
876-
else if (endAngle < 0)
877-
{
878-
endAngle = PI2 + endAngle % PI2;
879-
}
880-
881858
while (iteration < 1)
882859
{
883860
ta = endAngle * iteration + startAngle;

0 commit comments

Comments
 (0)