Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (1) Make the anticlockwise argument to arc() optional default …
…false.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10577

git-svn-id: http://svn.whatwg.org/webapps@5512 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 26, 2010
1 parent 7fb14eb commit 10e0d89
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 49 deletions.
24 changes: 8 additions & 16 deletions complete.html
Expand Up @@ -30486,7 +30486,7 @@ <h5 id=2dcontext><span class=secno>4.8.11.1 </span>The 2D context</h5>
void <a href=#dom-context-2d-beziercurveto title=dom-context-2d-bezierCurveTo>bezierCurveTo</a>(in double cp1x, in double cp1y, in double cp2x, in double cp2y, in double x, in double y);
void <a href=#dom-context-2d-arcto title=dom-context-2d-arcTo>arcTo</a>(in double x1, in double y1, in double x2, in double y2, in double radius);
void <a href=#dom-context-2d-rect title=dom-context-2d-rect>rect</a>(in double x, in double y, in double w, in double h);
void <a href=#dom-context-2d-arc title=dom-context-2d-arc>arc</a>(in double x, in double y, in double radius, in double startAngle, in double endAngle, in boolean anticlockwise);
void <a href=#dom-context-2d-arc title=dom-context-2d-arc>arc</a>(in double x, in double y, in double radius, in double startAngle, in double endAngle, in optional boolean anticlockwise);
void <a href=#dom-context-2d-fill title=dom-context-2d-fill>fill</a>();
void <a href=#dom-context-2d-stroke title=dom-context-2d-stroke>stroke</a>();
void <a href=#dom-context-2d-clip title=dom-context-2d-clip>clip</a>();
Expand Down Expand Up @@ -31759,15 +31759,15 @@ <h6 id=complex-shapes-(paths)><span class=secno>4.8.11.1.8 </span>Complex shapes

</dd>

<dt><var title="">context</var> . <code title=dom-context-2d-arc><a href=#dom-context-2d-arc>arc</a></code>(<var title="">x</var>, <var title="">y</var>, <var title="">radius</var>, <var title="">startAngle</var>, <var title="">endAngle</var>, <var title="">anticlockwise</var>)</dt>
<dt><var title="">context</var> . <code title=dom-context-2d-arc><a href=#dom-context-2d-arc>arc</a></code>(<var title="">x</var>, <var title="">y</var>, <var title="">radius</var>, <var title="">startAngle</var>, <var title="">endAngle</var> [, <var title="">anticlockwise</var> ] )</dt>

<dd>

<p>Adds points to the subpath such that the arc described by the
circumference of the circle described by the arguments, starting
at the given start angle and ending at the given end angle, going
in the given direction, is added to the path, connected to the
previous point by a straight line.</p>
in the given direction (defaulting to clockwise), is added to the
path, connected to the previous point by a straight line.</p>

<p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception if the given
radius is negative.</p>
Expand Down Expand Up @@ -31934,19 +31934,11 @@ <h6 id=complex-shapes-(paths)><span class=secno>4.8.11.1.8 </span>Complex shapes
measured in radians clockwise from the positive x-axis, are the
start and end points respectively.</p>

<p>If the <var title="">anticlockwise</var> argument is false and
<span title=""><var title="">endAngle</var>-<var title="">startAngle</var></span> is equal to or greater than
<span title="">2&pi;</span>, or, if the <var title="">anticlockwise</var>
<p>If the <var title="">anticlockwise</var> argument is omitted or
false and <span title=""><var title="">endAngle</var>-<var title="">startAngle</var></span> is equal to or greater than <span title="">2&pi;</span>, or, if the <var title="">anticlockwise</var>
argument is <em>true</em> and <span title=""><var title="">startAngle</var>-<var title="">endAngle</var></span> is
equal to or greater than <span title="">2&pi;</span>, then the arc is the
whole circumference of this circle.</p>

<!--alternatively (this is not equivalent, but might make more
sense, if browsers are willing to change to it: <p>If the absolute
magnitude of the difference between the <var
title="">startAngle</var> and <var title="">endAngle</var> angles is
equal to or greater than <span title="">2&pi;</span>, then the arc is the
whole circumference of this circle.</p>-->
equal to or greater than <span title="">2&pi;</span>, then the arc
is the whole circumference of this circle.</p>

<p>Otherwise, the arc is the path along the circumference of this
circle from the start point to the end point, going anti-clockwise
Expand Down
24 changes: 8 additions & 16 deletions index
Expand Up @@ -30466,7 +30466,7 @@ interface <dfn id=timedtrackcue>TimedTrackCue</dfn> {
void <a href=#dom-context-2d-beziercurveto title=dom-context-2d-bezierCurveTo>bezierCurveTo</a>(in double cp1x, in double cp1y, in double cp2x, in double cp2y, in double x, in double y);
void <a href=#dom-context-2d-arcto title=dom-context-2d-arcTo>arcTo</a>(in double x1, in double y1, in double x2, in double y2, in double radius);
void <a href=#dom-context-2d-rect title=dom-context-2d-rect>rect</a>(in double x, in double y, in double w, in double h);
void <a href=#dom-context-2d-arc title=dom-context-2d-arc>arc</a>(in double x, in double y, in double radius, in double startAngle, in double endAngle, in boolean anticlockwise);
void <a href=#dom-context-2d-arc title=dom-context-2d-arc>arc</a>(in double x, in double y, in double radius, in double startAngle, in double endAngle, in optional boolean anticlockwise);
void <a href=#dom-context-2d-fill title=dom-context-2d-fill>fill</a>();
void <a href=#dom-context-2d-stroke title=dom-context-2d-stroke>stroke</a>();
void <a href=#dom-context-2d-clip title=dom-context-2d-clip>clip</a>();
Expand Down Expand Up @@ -31739,15 +31739,15 @@ hairline width with transform. ack Shaun Morris.

</dd>

<dt><var title="">context</var> . <code title=dom-context-2d-arc><a href=#dom-context-2d-arc>arc</a></code>(<var title="">x</var>, <var title="">y</var>, <var title="">radius</var>, <var title="">startAngle</var>, <var title="">endAngle</var>, <var title="">anticlockwise</var>)</dt>
<dt><var title="">context</var> . <code title=dom-context-2d-arc><a href=#dom-context-2d-arc>arc</a></code>(<var title="">x</var>, <var title="">y</var>, <var title="">radius</var>, <var title="">startAngle</var>, <var title="">endAngle</var> [, <var title="">anticlockwise</var> ] )</dt>

<dd>

<p>Adds points to the subpath such that the arc described by the
circumference of the circle described by the arguments, starting
at the given start angle and ending at the given end angle, going
in the given direction, is added to the path, connected to the
previous point by a straight line.</p>
in the given direction (defaulting to clockwise), is added to the
path, connected to the previous point by a straight line.</p>

<p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception if the given
radius is negative.</p>
Expand Down Expand Up @@ -31914,19 +31914,11 @@ hairline width with transform. ack Shaun Morris.
measured in radians clockwise from the positive x-axis, are the
start and end points respectively.</p>

<p>If the <var title="">anticlockwise</var> argument is false and
<span title=""><var title="">endAngle</var>-<var title="">startAngle</var></span> is equal to or greater than
<span title="">2&pi;</span>, or, if the <var title="">anticlockwise</var>
<p>If the <var title="">anticlockwise</var> argument is omitted or
false and <span title=""><var title="">endAngle</var>-<var title="">startAngle</var></span> is equal to or greater than <span title="">2&pi;</span>, or, if the <var title="">anticlockwise</var>
argument is <em>true</em> and <span title=""><var title="">startAngle</var>-<var title="">endAngle</var></span> is
equal to or greater than <span title="">2&pi;</span>, then the arc is the
whole circumference of this circle.</p>

<!--alternatively (this is not equivalent, but might make more
sense, if browsers are willing to change to it: <p>If the absolute
magnitude of the difference between the <var
title="">startAngle</var> and <var title="">endAngle</var> angles is
equal to or greater than <span title="">2&pi;</span>, then the arc is the
whole circumference of this circle.</p>-->
equal to or greater than <span title="">2&pi;</span>, then the arc
is the whole circumference of this circle.</p>

<p>Otherwise, the arc is the path along the circumference of this
circle from the start point to the end point, going anti-clockwise
Expand Down
27 changes: 10 additions & 17 deletions source
Expand Up @@ -33427,7 +33427,7 @@ interface <dfn>TimedTrackCue</dfn> {
void <span title="dom-context-2d-bezierCurveTo">bezierCurveTo</span>(in double cp1x, in double cp1y, in double cp2x, in double cp2y, in double x, in double y);
void <span title="dom-context-2d-arcTo">arcTo</span>(in double x1, in double y1, in double x2, in double y2, in double radius);
void <span title="dom-context-2d-rect">rect</span>(in double x, in double y, in double w, in double h);
void <span title="dom-context-2d-arc">arc</span>(in double x, in double y, in double radius, in double startAngle, in double endAngle, in boolean anticlockwise);
void <span title="dom-context-2d-arc">arc</span>(in double x, in double y, in double radius, in double startAngle, in double endAngle, in optional boolean anticlockwise);
void <span title="dom-context-2d-fill">fill</span>();
void <span title="dom-context-2d-stroke">stroke</span>();
void <span title="dom-context-2d-clip">clip</span>();
Expand Down Expand Up @@ -34950,15 +34950,15 @@ hairline width with transform. ack Shaun Morris.

</dd>

<dt><var title="">context</var> . <code title="dom-context-2d-arc">arc</code>(<var title="">x</var>, <var title="">y</var>, <var title="">radius</var>, <var title="">startAngle</var>, <var title="">endAngle</var>, <var title="">anticlockwise</var>)</dt>
<dt><var title="">context</var> . <code title="dom-context-2d-arc">arc</code>(<var title="">x</var>, <var title="">y</var>, <var title="">radius</var>, <var title="">startAngle</var>, <var title="">endAngle</var> [, <var title="">anticlockwise</var> ] )</dt>

<dd>

<p>Adds points to the subpath such that the arc described by the
circumference of the circle described by the arguments, starting
at the given start angle and ending at the given end angle, going
in the given direction, is added to the path, connected to the
previous point by a straight line.</p>
in the given direction (defaulting to clockwise), is added to the
path, connected to the previous point by a straight line.</p>

<p>Throws an <code>INDEX_SIZE_ERR</code> exception if the given
radius is negative.</p>
Expand Down Expand Up @@ -35169,21 +35169,14 @@ hairline width with transform. ack Shaun Morris.
measured in radians clockwise from the positive x-axis, are the
start and end points respectively.</p>

<p>If the <var title="">anticlockwise</var> argument is false and
<span title=""><var title="">endAngle</var>-<var
title="">startAngle</var></span> is equal to or greater than
<span title="">2&pi;</span>, or, if the <var title="">anticlockwise</var>
<p>If the <var title="">anticlockwise</var> argument is omitted or
false and <span title=""><var title="">endAngle</var>-<var
title="">startAngle</var></span> is equal to or greater than <span
title="">2&pi;</span>, or, if the <var title="">anticlockwise</var>
argument is <em>true</em> and <span title=""><var
title="">startAngle</var>-<var title="">endAngle</var></span> is
equal to or greater than <span title="">2&pi;</span>, then the arc is the
whole circumference of this circle.</p>

<!--alternatively (this is not equivalent, but might make more
sense, if browsers are willing to change to it: <p>If the absolute
magnitude of the difference between the <var
title="">startAngle</var> and <var title="">endAngle</var> angles is
equal to or greater than <span title="">2&pi;</span>, then the arc is the
whole circumference of this circle.</p>-->
equal to or greater than <span title="">2&pi;</span>, then the arc
is the whole circumference of this circle.</p>

<p>Otherwise, the arc is the path along the circumference of this
circle from the start point to the end point, going anti-clockwise
Expand Down

0 comments on commit 10e0d89

Please sign in to comment.