[html5] r7865 - [giow] (1) Match reality Affected topics: Canvas

whatwg at whatwg.org whatwg at whatwg.org
Fri May 3 17:09:56 PDT 2013


Author: ianh
Date: 2013-05-03 17:09:55 -0700 (Fri, 03 May 2013)
New Revision: 7865

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Match reality
Affected topics: Canvas

Modified: complete.html
===================================================================
--- complete.html	2013-05-03 21:33:34 UTC (rev 7864)
+++ complete.html	2013-05-04 00:09:55 UTC (rev 7865)
@@ -248,7 +248,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 3 May 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 4 May 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -33123,6 +33123,8 @@
   void <a href=#dom-context-2d-resetclip title=dom-context-2d-resetClip>resetClip</a>();
   boolean <a href=#dom-context-2d-ispointinpath title=dom-context-2d-isPointInPath>isPointInPath</a>(unrestricted double x, unrestricted double y, optional <a href=#canvasfillrule>CanvasFillRule</a> fillRule = "<a href=#dom-context-2d-fillrule-nonzero title=dom-context-2d-fillRule-nonzero>nonzero</a>");
   boolean <a href=#dom-context-2d-ispointinpath title=dom-context-2d-isPointInPath>isPointInPath</a>(<a href=#path>Path</a> path, unrestricted double x, unrestricted double y, optional <a href=#canvasfillrule>CanvasFillRule</a> fillRule = "<a href=#dom-context-2d-fillrule-nonzero title=dom-context-2d-fillRule-nonzero>nonzero</a>");
+  boolean <a href=#dom-context-2d-ispointinstroke title=dom-context-2d-isPointInStroke>isPointInStroke</a>(unrestricted double x, unrestricted double y);
+  boolean <a href=#dom-context-2d-ispointinstroke title=dom-context-2d-isPointInStroke>isPointInStroke</a>(<a href=#path>Path</a> path, unrestricted double x, unrestricted double y);
 
   // text (see also the <a href=#canvasdrawingstyles>CanvasDrawingStyles</a> interface)
   void <a href=#dom-context-2d-filltext title=dom-context-2d-fillText>fillText</a>(DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
@@ -36602,6 +36604,17 @@
 
    </dd>
 
+
+   <dt><var title="">context</var> . <code title=dom-context-2d-isPointInStroke><a href=#dom-context-2d-ispointinstroke>isPointInStroke</a></code>(<var title="">x</var>, <var title="">y</var>)</dt>
+   <dt><var title="">context</var> . <code title=dom-context-2d-isPointInStroke><a href=#dom-context-2d-ispointinstroke>isPointInStroke</a></code>(<var title="">path</var>, <var title="">x</var>, <var title="">y</var>)</dt>
+
+   <dd>
+
+    <p>Returns true if the given point would be in the region covered by the stroke of the
+    <a href=#current-default-path>current default path</a> or the given path, given the current stroke style.</p>
+
+   </dd>
+
   </dl><div class=impl>
 
 <!--CLEANUP-->
@@ -36634,7 +36647,7 @@
   <p>The <dfn id=dom-context-2d-stroke title=dom-context-2d-stroke><code>stroke()</code></dfn> method
   must <a href=#trace-a-path title="trace a path">trace</a> the intended path,
   using the <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object for the line
-  styles, and then fill the combined stroke area using the <code title=dom-context-2d-strokeStyle><a href=#dom-context-2d-strokestyle>strokeStyle</a></code> attribute,
+  styles, and then fill the resulting path using the <code title=dom-context-2d-strokeStyle><a href=#dom-context-2d-strokestyle>strokeStyle</a></code> attribute,
   using the <a href=#dom-context-2d-fillrule-nonzero title=dom-context-2d-fillRule-nonzero>non-zero winding rule</a>.</p>
 
   <p class=note>As a result of how the algorithm to <a href=#trace-a-path>trace a
@@ -36782,7 +36795,7 @@
   element is focused, and the bounding box of the area to which the user agent is scrolling as the
   bounding box of the current selection.</p>
 
-  <hr><p>The <dfn id=dom-context-2d-clip title=dom-context-2d-clip><code>clip()</code></dfn> method must create a new
+  <hr><!--CLEANUP--><p>The <dfn id=dom-context-2d-clip title=dom-context-2d-clip><code>clip()</code></dfn> method must create a new
   <dfn id=clipping-region>clipping region</dfn> by calculating the intersection of the current clipping region and the
   area described by the intended path, using the <a href=#fill-rule>fill rule</a> indicated by the <var title="">fillRule</var> argument. Open subpaths must
   be implicitly closed when computing the clipping region, without affecting the actual subpaths.
@@ -36813,6 +36826,15 @@
   to be inside the path. If either of the arguments is infinite or
   NaN, then the method must return false.</p>
 
+  <hr><p>The <dfn id=dom-context-2d-ispointinstroke title=dom-context-2d-isPointInStroke><code>isPointInStroke()</code></dfn> method
+  must return true if the point given by the <var title="">x</var> and <var title="">y</var>
+  coordinates passed to the method, when treated as coordinates in the canvas coordinate space
+  unaffected by the current transformation, is inside the path that results from <a href=#trace-a-path title="trace
+  a path">tracing</a> the intended path, using the <a href=#dom-context-2d-fillrule-nonzero title=dom-context-2d-fillRule-nonzero>non-zero winding rule</a>, and using the
+  <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object for the line styles; and must return false otherwise.
+  Points on the resulting path must be considered to be inside the path. If either of the arguments
+  is infinite or NaN, then the method must return false.</p>
+
   <hr></div>
 
   <div class=example id=drawCustomFocusRingExample>

Modified: index
===================================================================
--- index	2013-05-03 21:33:34 UTC (rev 7864)
+++ index	2013-05-04 00:09:55 UTC (rev 7865)
@@ -248,7 +248,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 3 May 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 4 May 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -33123,6 +33123,8 @@
   void <a href=#dom-context-2d-resetclip title=dom-context-2d-resetClip>resetClip</a>();
   boolean <a href=#dom-context-2d-ispointinpath title=dom-context-2d-isPointInPath>isPointInPath</a>(unrestricted double x, unrestricted double y, optional <a href=#canvasfillrule>CanvasFillRule</a> fillRule = "<a href=#dom-context-2d-fillrule-nonzero title=dom-context-2d-fillRule-nonzero>nonzero</a>");
   boolean <a href=#dom-context-2d-ispointinpath title=dom-context-2d-isPointInPath>isPointInPath</a>(<a href=#path>Path</a> path, unrestricted double x, unrestricted double y, optional <a href=#canvasfillrule>CanvasFillRule</a> fillRule = "<a href=#dom-context-2d-fillrule-nonzero title=dom-context-2d-fillRule-nonzero>nonzero</a>");
+  boolean <a href=#dom-context-2d-ispointinstroke title=dom-context-2d-isPointInStroke>isPointInStroke</a>(unrestricted double x, unrestricted double y);
+  boolean <a href=#dom-context-2d-ispointinstroke title=dom-context-2d-isPointInStroke>isPointInStroke</a>(<a href=#path>Path</a> path, unrestricted double x, unrestricted double y);
 
   // text (see also the <a href=#canvasdrawingstyles>CanvasDrawingStyles</a> interface)
   void <a href=#dom-context-2d-filltext title=dom-context-2d-fillText>fillText</a>(DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
@@ -36602,6 +36604,17 @@
 
    </dd>
 
+
+   <dt><var title="">context</var> . <code title=dom-context-2d-isPointInStroke><a href=#dom-context-2d-ispointinstroke>isPointInStroke</a></code>(<var title="">x</var>, <var title="">y</var>)</dt>
+   <dt><var title="">context</var> . <code title=dom-context-2d-isPointInStroke><a href=#dom-context-2d-ispointinstroke>isPointInStroke</a></code>(<var title="">path</var>, <var title="">x</var>, <var title="">y</var>)</dt>
+
+   <dd>
+
+    <p>Returns true if the given point would be in the region covered by the stroke of the
+    <a href=#current-default-path>current default path</a> or the given path, given the current stroke style.</p>
+
+   </dd>
+
   </dl><div class=impl>
 
 <!--CLEANUP-->
@@ -36634,7 +36647,7 @@
   <p>The <dfn id=dom-context-2d-stroke title=dom-context-2d-stroke><code>stroke()</code></dfn> method
   must <a href=#trace-a-path title="trace a path">trace</a> the intended path,
   using the <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object for the line
-  styles, and then fill the combined stroke area using the <code title=dom-context-2d-strokeStyle><a href=#dom-context-2d-strokestyle>strokeStyle</a></code> attribute,
+  styles, and then fill the resulting path using the <code title=dom-context-2d-strokeStyle><a href=#dom-context-2d-strokestyle>strokeStyle</a></code> attribute,
   using the <a href=#dom-context-2d-fillrule-nonzero title=dom-context-2d-fillRule-nonzero>non-zero winding rule</a>.</p>
 
   <p class=note>As a result of how the algorithm to <a href=#trace-a-path>trace a
@@ -36782,7 +36795,7 @@
   element is focused, and the bounding box of the area to which the user agent is scrolling as the
   bounding box of the current selection.</p>
 
-  <hr><p>The <dfn id=dom-context-2d-clip title=dom-context-2d-clip><code>clip()</code></dfn> method must create a new
+  <hr><!--CLEANUP--><p>The <dfn id=dom-context-2d-clip title=dom-context-2d-clip><code>clip()</code></dfn> method must create a new
   <dfn id=clipping-region>clipping region</dfn> by calculating the intersection of the current clipping region and the
   area described by the intended path, using the <a href=#fill-rule>fill rule</a> indicated by the <var title="">fillRule</var> argument. Open subpaths must
   be implicitly closed when computing the clipping region, without affecting the actual subpaths.
@@ -36813,6 +36826,15 @@
   to be inside the path. If either of the arguments is infinite or
   NaN, then the method must return false.</p>
 
+  <hr><p>The <dfn id=dom-context-2d-ispointinstroke title=dom-context-2d-isPointInStroke><code>isPointInStroke()</code></dfn> method
+  must return true if the point given by the <var title="">x</var> and <var title="">y</var>
+  coordinates passed to the method, when treated as coordinates in the canvas coordinate space
+  unaffected by the current transformation, is inside the path that results from <a href=#trace-a-path title="trace
+  a path">tracing</a> the intended path, using the <a href=#dom-context-2d-fillrule-nonzero title=dom-context-2d-fillRule-nonzero>non-zero winding rule</a>, and using the
+  <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object for the line styles; and must return false otherwise.
+  Points on the resulting path must be considered to be inside the path. If either of the arguments
+  is infinite or NaN, then the method must return false.</p>
+
   <hr></div>
 
   <div class=example id=drawCustomFocusRingExample>

Modified: source
===================================================================
--- source	2013-05-03 21:33:34 UTC (rev 7864)
+++ source	2013-05-04 00:09:55 UTC (rev 7865)
@@ -35759,6 +35759,8 @@
   void <span title="dom-context-2d-resetClip">resetClip</span>();
   boolean <span title="dom-context-2d-isPointInPath">isPointInPath</span>(unrestricted double x, unrestricted double y, optional <span>CanvasFillRule</span> fillRule = "<span title="dom-context-2d-fillRule-nonzero">nonzero</span>");
   boolean <span title="dom-context-2d-isPointInPath">isPointInPath</span>(<span>Path</span> path, unrestricted double x, unrestricted double y, optional <span>CanvasFillRule</span> fillRule = "<span title="dom-context-2d-fillRule-nonzero">nonzero</span>");
+  boolean <span title="dom-context-2d-isPointInStroke">isPointInStroke</span>(unrestricted double x, unrestricted double y);
+  boolean <span title="dom-context-2d-isPointInStroke">isPointInStroke</span>(<span>Path</span> path, unrestricted double x, unrestricted double y);
 
   // text (see also the <span>CanvasDrawingStyles</span> interface)
   void <span title="dom-context-2d-fillText">fillText</span>(DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
@@ -39877,6 +39879,17 @@
 
    </dd>
 
+
+   <dt><var title="">context</var> . <code title="dom-context-2d-isPointInStroke">isPointInStroke</code>(<var title="">x</var>, <var title="">y</var>)</dt>
+   <dt><var title="">context</var> . <code title="dom-context-2d-isPointInStroke">isPointInStroke</code>(<var title="">path</var>, <var title="">x</var>, <var title="">y</var>)</dt>
+
+   <dd>
+
+    <p>Returns true if the given point would be in the region covered by the stroke of the
+    <span>current default path</span> or the given path, given the current stroke style.</p>
+
+   </dd>
+
   </dl>
 
   <div class="impl">
@@ -39915,7 +39928,7 @@
   title="dom-context-2d-stroke"><code>stroke()</code></dfn> method
   must <span title="trace a path">trace</span> the intended path,
   using the <code>CanvasRenderingContext2D</code> object for the line
-  styles, and then fill the combined stroke area using the <code
+  styles, and then fill the resulting path using the <code
   title="dom-context-2d-strokeStyle">strokeStyle</code> attribute,
   using the <span title="dom-context-2d-fillRule-nonzero">non-zero winding rule</span>.</p>
 
@@ -40107,6 +40120,8 @@
 
   <hr>
 
+<!--CLEANUP-->
+
   <p>The <dfn title="dom-context-2d-clip"><code>clip()</code></dfn> method must create a new
   <dfn>clipping region</dfn> by calculating the intersection of the current clipping region and the
   area described by the intended path, using the <span>fill rule</span> indicated by the <var title="">fillRule</var> argument. Open subpaths must
@@ -40145,6 +40160,18 @@
 
   <hr>
 
+  <p>The <dfn title="dom-context-2d-isPointInStroke"><code>isPointInStroke()</code></dfn> method
+  must return true if the point given by the <var title="">x</var> and <var title="">y</var>
+  coordinates passed to the method, when treated as coordinates in the canvas coordinate space
+  unaffected by the current transformation, is inside the path that results from <span title="trace
+  a path">tracing</span> the intended path, using the <span
+  title="dom-context-2d-fillRule-nonzero">non-zero winding rule</span>, and using the
+  <code>CanvasRenderingContext2D</code> object for the line styles; and must return false otherwise.
+  Points on the resulting path must be considered to be inside the path. If either of the arguments
+  is infinite or NaN, then the method must return false.</p>
+
+  <hr>
+
   </div>
 
   <div class="example" id="drawCustomFocusRingExample">




More information about the Commit-Watchers mailing list