[html5] r5512 - [giow] (1) Make the anticlockwise argument to arc() optional default false. Fixi [...]
whatwg at whatwg.org
whatwg at whatwg.org
Sun Sep 26 09:44:08 PDT 2010
Author: ianh
Date: 2010-09-26 09:44:06 -0700 (Sun, 26 Sep 2010)
New Revision: 5512
Modified:
complete.html
index
source
Log:
[giow] (1) Make the anticlockwise argument to arc() optional default false.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10577
Modified: complete.html
===================================================================
--- complete.html 2010-09-26 16:38:04 UTC (rev 5511)
+++ complete.html 2010-09-26 16:44:06 UTC (rev 5512)
@@ -30486,7 +30486,7 @@
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>();
@@ -31759,15 +31759,15 @@
</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>
@@ -31934,20 +31934,12 @@
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π</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π</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π</span>, then the arc is the
- whole circumference of this circle.</p>
+ equal to or greater than <span title="">2π</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π</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
if the <var title="">anticlockwise</var> argument is true, and
Modified: index
===================================================================
--- index 2010-09-26 16:38:04 UTC (rev 5511)
+++ index 2010-09-26 16:44:06 UTC (rev 5512)
@@ -30466,7 +30466,7 @@
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>();
@@ -31739,15 +31739,15 @@
</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>
@@ -31914,20 +31914,12 @@
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π</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π</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π</span>, then the arc is the
- whole circumference of this circle.</p>
+ equal to or greater than <span title="">2π</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π</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
if the <var title="">anticlockwise</var> argument is true, and
Modified: source
===================================================================
--- source 2010-09-26 16:38:04 UTC (rev 5511)
+++ source 2010-09-26 16:44:06 UTC (rev 5512)
@@ -33427,7 +33427,7 @@
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>();
@@ -34950,15 +34950,15 @@
</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>
@@ -35169,22 +35169,15 @@
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π</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π</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π</span>, then the arc is the
- whole circumference of this circle.</p>
+ equal to or greater than <span title="">2π</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π</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
if the <var title="">anticlockwise</var> argument is true, and
More information about the Commit-Watchers
mailing list