[html5] r7034 - [giow] (0) Path copy constructor Affected topics: Canvas

whatwg at whatwg.org whatwg at whatwg.org
Tue Mar 27 16:19:34 PDT 2012


Author: ianh
Date: 2012-03-27 16:19:32 -0700 (Tue, 27 Mar 2012)
New Revision: 7034

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Path copy constructor
Affected topics: Canvas

Modified: complete.html
===================================================================
--- complete.html	2012-03-27 23:10:04 UTC (rev 7033)
+++ complete.html	2012-03-27 23:19:32 UTC (rev 7034)
@@ -35062,6 +35062,7 @@
 <a href=#drawingstyle>DrawingStyle</a> implements <a href=#canvasdrawingstyles>CanvasDrawingStyles</a>;
 
 [<a href=#dom-path title=dom-Path>Constructor</a>,
+ <a href=#dom-path-copy title=dom-Path-copy>Constructor</a>(<span>Path path),
  <a href=#dom-path-withdata title=dom-Path-withdata>Constructor</a>(DOMString d)]
 interface <dfn id=path>Path</dfn> {
   void <a href=#dom-path-addpath title=dom-path-addPath>addPath</a>(<a href=#path>Path</a> path, <a href=#svgmatrix>SVGMatrix</a>? transformation);
@@ -35071,7 +35072,7 @@
   void <a href=#dom-path-addtext title=dom-path-addText>addText</a>(DOMString text, <a href=#canvasdrawingstyles>CanvasDrawingStyles</a> styles, <a href=#svgmatrix>SVGMatrix</a>? transformation, <a href=#path>Path</a> path, optional double maxWidth);
   void <a href=#dom-path-addpathbystrokingtext title=dom-path-addPathByStrokingText>addPathByStrokingText</a>(DOMString text, <a href=#canvasdrawingstyles>CanvasDrawingStyles</a> styles, <a href=#svgmatrix>SVGMatrix</a>? transformation, <a href=#path>Path</a> path, optional double maxWidth);
 };
-<a href=#path>Path</a> implements <a href=#canvaspathmethods>CanvasPathMethods</a>;</pre>
+<a href=#path>Path</a> implements <a href=#canvaspathmethods>CanvasPathMethods</a>;</span></pre>
 
  <!-- ARC-ORDER note (see above):
       some demos rely on the precise order of the arc() and arcTo()
@@ -36479,6 +36480,14 @@
 
    </dd>
 
+   <dt><var title="">path</var> = new <code title=dom-Path-copy><a href=#dom-path-copy>Path</a></code>(<var title="">path</var>)</dt>
+
+   <dd>
+
+    <p>Creates a new <code><a href=#path>Path</a></code> object that is a copy of the argument.</p>
+
+   </dd>
+
    <dt><var title="">path</var> = new <code title=dom-Path-withdata><a href=#dom-path-withdata>Path</a></code>(<var title="">d</var>)</dt>
 
    <dd>
@@ -36517,6 +36526,11 @@
   when invoked, must return a newly created <code><a href=#path>Path</a></code>
   object.</p>
 
+  <hr><p>The <dfn id=dom-path-copy title=dom-Path-copy><code>Path()</code></dfn>
+  constructor, when invoked, must return a newly created
+  <code><a href=#path>Path</a></code> object, to which the subpaths of the argument are
+  added. (In other words, it returns a copy of the argument.)</p>
+
   <hr><p>The <dfn id=dom-path-withdata title=dom-Path-withdata><code>Path(<var title="">d</var>)</code></dfn> constructor must run the following
   steps:</p>
 

Modified: index
===================================================================
--- index	2012-03-27 23:10:04 UTC (rev 7033)
+++ index	2012-03-27 23:19:32 UTC (rev 7034)
@@ -35062,6 +35062,7 @@
 <a href=#drawingstyle>DrawingStyle</a> implements <a href=#canvasdrawingstyles>CanvasDrawingStyles</a>;
 
 [<a href=#dom-path title=dom-Path>Constructor</a>,
+ <a href=#dom-path-copy title=dom-Path-copy>Constructor</a>(<span>Path path),
  <a href=#dom-path-withdata title=dom-Path-withdata>Constructor</a>(DOMString d)]
 interface <dfn id=path>Path</dfn> {
   void <a href=#dom-path-addpath title=dom-path-addPath>addPath</a>(<a href=#path>Path</a> path, <a href=#svgmatrix>SVGMatrix</a>? transformation);
@@ -35071,7 +35072,7 @@
   void <a href=#dom-path-addtext title=dom-path-addText>addText</a>(DOMString text, <a href=#canvasdrawingstyles>CanvasDrawingStyles</a> styles, <a href=#svgmatrix>SVGMatrix</a>? transformation, <a href=#path>Path</a> path, optional double maxWidth);
   void <a href=#dom-path-addpathbystrokingtext title=dom-path-addPathByStrokingText>addPathByStrokingText</a>(DOMString text, <a href=#canvasdrawingstyles>CanvasDrawingStyles</a> styles, <a href=#svgmatrix>SVGMatrix</a>? transformation, <a href=#path>Path</a> path, optional double maxWidth);
 };
-<a href=#path>Path</a> implements <a href=#canvaspathmethods>CanvasPathMethods</a>;</pre>
+<a href=#path>Path</a> implements <a href=#canvaspathmethods>CanvasPathMethods</a>;</span></pre>
 
  <!-- ARC-ORDER note (see above):
       some demos rely on the precise order of the arc() and arcTo()
@@ -36479,6 +36480,14 @@
 
    </dd>
 
+   <dt><var title="">path</var> = new <code title=dom-Path-copy><a href=#dom-path-copy>Path</a></code>(<var title="">path</var>)</dt>
+
+   <dd>
+
+    <p>Creates a new <code><a href=#path>Path</a></code> object that is a copy of the argument.</p>
+
+   </dd>
+
    <dt><var title="">path</var> = new <code title=dom-Path-withdata><a href=#dom-path-withdata>Path</a></code>(<var title="">d</var>)</dt>
 
    <dd>
@@ -36517,6 +36526,11 @@
   when invoked, must return a newly created <code><a href=#path>Path</a></code>
   object.</p>
 
+  <hr><p>The <dfn id=dom-path-copy title=dom-Path-copy><code>Path()</code></dfn>
+  constructor, when invoked, must return a newly created
+  <code><a href=#path>Path</a></code> object, to which the subpaths of the argument are
+  added. (In other words, it returns a copy of the argument.)</p>
+
   <hr><p>The <dfn id=dom-path-withdata title=dom-Path-withdata><code>Path(<var title="">d</var>)</code></dfn> constructor must run the following
   steps:</p>
 

Modified: source
===================================================================
--- source	2012-03-27 23:10:04 UTC (rev 7033)
+++ source	2012-03-27 23:19:32 UTC (rev 7034)
@@ -40744,6 +40744,7 @@
 <span>DrawingStyle</span> implements <span>CanvasDrawingStyles</span>;
 
 [<span title="dom-Path">Constructor</span>,
+ <span title="dom-Path-copy">Constructor</span>(<span>Path</code> path),
  <span title="dom-Path-withdata">Constructor</span>(DOMString d)]
 interface <dfn>Path</dfn> {
   void <span title="dom-path-addPath">addPath</span>(<span>Path</span> path, <span>SVGMatrix</span>? transformation);
@@ -42415,6 +42416,14 @@
 
    </dd>
 
+   <dt><var title="">path</var> = new <code title="dom-Path-copy">Path</code>(<var title="">path</var>)</dt>
+
+   <dd>
+
+    <p>Creates a new <code>Path</code> object that is a copy of the argument.</p>
+
+   </dd>
+
    <dt><var title="">path</var> = new <code title="dom-Path-withdata">Path</code>(<var title="">d</var>)</dt>
 
    <dd>
@@ -42457,6 +42466,13 @@
 
   <hr>
 
+  <p>The <dfn title="dom-Path-copy"><code>Path()</code></dfn>
+  constructor, when invoked, must return a newly created
+  <code>Path</code> object, to which the subpaths of the argument are
+  added. (In other words, it returns a copy of the argument.)</p>
+
+  <hr>
+
   <p>The <dfn title="dom-Path-withdata"><code>Path(<var
   title="">d</var>)</code></dfn> constructor must run the following
   steps:</p>




More information about the Commit-Watchers mailing list