Skip to content

Commit

Permalink
add isPointInPath()
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@44 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 26, 2006
1 parent 28f824d commit a1fa1fe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
13 changes: 11 additions & 2 deletions index
Expand Up @@ -35,7 +35,7 @@

<h1 id="web-applications">Web Applications 1.0</h1>

<h2 class="no-num no-toc" id="working">Working Draft &mdash; 25 April 2006</h2>
<h2 class="no-num no-toc" id="working">Working Draft &mdash; 26 April 2006</h2>

<p>You can take part in this work. <a
href="http://www.whatwg.org/mailing-list">Join the working group's
Expand Down Expand Up @@ -15455,7 +15455,7 @@ http://lxr.mozilla.org/mozilla/source/dom/public/idl/html/nsIDOMNSHTMLTextAreaEl
increasing when going right, and y values increasing when going down.

<pre
class="idl">interface <dfn id="canvasrenderingcontext2d">CanvasRenderingContext2D</dfn> {
class="idl">interface <dfn id="canvasrenderingcontext2d">CanvasRenderingContext2D</dfn> {<!-- XXX xrefs from IDL -->

// back-reference to the canvas
readonly attribute HTMLCanvasElement canvas;
Expand Down Expand Up @@ -15516,6 +15516,7 @@ http://lxr.mozilla.org/mozilla/source/dom/public/idl/html/nsIDOMNSHTMLTextAreaEl
void fill();
void stroke();
void clip();
boolean isPointInPath(in float x, in float y);

// drawing images
void drawImage(in HTMLImageElement image, in float dx, in float dy);
Expand Down Expand Up @@ -16164,6 +16165,14 @@ interface <dfn id="canvaspattern">CanvasPattern</dfn> {
with the top left corner at (0,0) and the width and height of the
coordinate space.

<p>The <dfn id="ispointinpath"
title="isPointInPath"><code>isPointInPath(<var>x</var>,
<var>y</var>)</code></dfn> method must return true if the point given by
the <var>x</var> and <var>y</var> coordinates passed to the method, when
treated as coordinates in the canvas' coordinate space unaffected by the
current transformation, is within the area of the canvas that is inside
the current path; and must return false otherwise.

<h5 id="images"><span class="secno">6.1.1.9. </span>Images</h5>

<p>To draw images onto the canvas, the <dfn
Expand Down
11 changes: 10 additions & 1 deletion source
Expand Up @@ -13528,7 +13528,7 @@ http://lxr.mozilla.org/mozilla/source/dom/public/idl/html/nsIDOMNSHTMLTextAreaEl
values increasing when going right, and y values increasing when
going down.</p>

<pre class="idl">interface <dfn>CanvasRenderingContext2D</dfn> {
<pre class="idl">interface <dfn>CanvasRenderingContext2D</dfn> {<!-- XXX xrefs from IDL -->

// back-reference to the canvas
readonly attribute HTMLCanvasElement canvas;
Expand Down Expand Up @@ -13589,6 +13589,7 @@ http://lxr.mozilla.org/mozilla/source/dom/public/idl/html/nsIDOMNSHTMLTextAreaEl
void fill();
void stroke();
void clip();
boolean isPointInPath(in float x, in float y);

// drawing images
void drawImage(in HTMLImageElement image, in float dx, in float dy);
Expand Down Expand Up @@ -14224,6 +14225,14 @@ interface <dfn>CanvasPattern</dfn> {
rectangle with the top left corner at (0,0) and the width and height
of the coordinate space.</p>

<p>The <dfn title="isPointInPath"><code>isPointInPath(<var>x</var>,
<var>y</var>)</code></dfn> method must return true if the point
given by the <var>x</var> and <var>y</var> coordinates passed to the
method, when treated as coordinates in the canvas' coordinate space
unaffected by the current transformation, is within the area of the
canvas that is inside the current path; and must return false
otherwise.</p>


<h5>Images</h5>

Expand Down

0 comments on commit a1fa1fe

Please sign in to comment.