[html5] r7036 - [giow] (0) Provide a convenience method to reset the transform to the identity t [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Mar 27 16:25:08 PDT 2012


Author: ianh
Date: 2012-03-27 16:25:07 -0700 (Tue, 27 Mar 2012)
New Revision: 7036

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Provide a convenience method to reset the transform to the identity transform.
Affected topics: Canvas

Modified: complete.html
===================================================================
--- complete.html	2012-03-27 23:22:07 UTC (rev 7035)
+++ complete.html	2012-03-27 23:25:07 UTC (rev 7036)
@@ -34897,6 +34897,7 @@
   void <a href=#dom-context-2d-translate title=dom-context-2d-translate>translate</a>(double x, double y);
   void <a href=#dom-context-2d-transform title=dom-context-2d-transform>transform</a>(double a, double b, double c, double d, double e, double f);
   void <a href=#dom-context-2d-settransform title=dom-context-2d-setTransform>setTransform</a>(double a, double b, double c, double d, double e, double f);
+  void <a href=#dom-context-2d-resettransform title=dom-context-2d-resetTransform>resetTransform</a>();
 <!--
   // v7 we've also received requests (though not many so far) for:
   void skew(...);                             // is this common enough that one can't just use setTransform()?
@@ -36848,6 +36849,14 @@
 
    </dd>
 
+   <dt><var title="">context</var> . <code title=dom-context-2d-resetTransform><a href=#dom-context-2d-resettransform>resetTransform</a></code>()</dt>
+
+   <dd>
+
+    <p>Changes the transformation matrix to the identity transform.</p>
+
+   </dd>
+
   </dl><div class=impl>
 
   <p>The <dfn id=dom-context-2d-currenttransform title=dom-context-2d-currentTransform><code>currentTransform</code></dfn>,
@@ -36907,6 +36916,9 @@
   transform to the identity matrix, and then invoke the <code><a href=#dom-context-2d-transform title=dom-context-2d-transform>transform</a>(<var title="">a</var>, <var title="">b</var>, <var title="">c</var>, <var title="">d</var>, <var title="">e</var>,
   <var title="">f</var>)</code> method with the same arguments.</p>
 
+  <p>The <dfn id=dom-context-2d-resettransform title=dom-context-2d-resetTransform><code>resetTransform()</code></dfn>
+  method must reset the current transform to the identity matrix.</p>
+
   </div>
 
 

Modified: index
===================================================================
--- index	2012-03-27 23:22:07 UTC (rev 7035)
+++ index	2012-03-27 23:25:07 UTC (rev 7036)
@@ -34897,6 +34897,7 @@
   void <a href=#dom-context-2d-translate title=dom-context-2d-translate>translate</a>(double x, double y);
   void <a href=#dom-context-2d-transform title=dom-context-2d-transform>transform</a>(double a, double b, double c, double d, double e, double f);
   void <a href=#dom-context-2d-settransform title=dom-context-2d-setTransform>setTransform</a>(double a, double b, double c, double d, double e, double f);
+  void <a href=#dom-context-2d-resettransform title=dom-context-2d-resetTransform>resetTransform</a>();
 <!--
   // v7 we've also received requests (though not many so far) for:
   void skew(...);                             // is this common enough that one can't just use setTransform()?
@@ -36848,6 +36849,14 @@
 
    </dd>
 
+   <dt><var title="">context</var> . <code title=dom-context-2d-resetTransform><a href=#dom-context-2d-resettransform>resetTransform</a></code>()</dt>
+
+   <dd>
+
+    <p>Changes the transformation matrix to the identity transform.</p>
+
+   </dd>
+
   </dl><div class=impl>
 
   <p>The <dfn id=dom-context-2d-currenttransform title=dom-context-2d-currentTransform><code>currentTransform</code></dfn>,
@@ -36907,6 +36916,9 @@
   transform to the identity matrix, and then invoke the <code><a href=#dom-context-2d-transform title=dom-context-2d-transform>transform</a>(<var title="">a</var>, <var title="">b</var>, <var title="">c</var>, <var title="">d</var>, <var title="">e</var>,
   <var title="">f</var>)</code> method with the same arguments.</p>
 
+  <p>The <dfn id=dom-context-2d-resettransform title=dom-context-2d-resetTransform><code>resetTransform()</code></dfn>
+  method must reset the current transform to the identity matrix.</p>
+
   </div>
 
 

Modified: source
===================================================================
--- source	2012-03-27 23:22:07 UTC (rev 7035)
+++ source	2012-03-27 23:25:07 UTC (rev 7036)
@@ -40579,6 +40579,7 @@
   void <span title="dom-context-2d-translate">translate</span>(double x, double y);
   void <span title="dom-context-2d-transform">transform</span>(double a, double b, double c, double d, double e, double f);
   void <span title="dom-context-2d-setTransform">setTransform</span>(double a, double b, double c, double d, double e, double f);
+  void <span title="dom-context-2d-resetTransform">resetTransform</span>();
 <!--
   // v7 we've also received requests (though not many so far) for:
   void skew(...);                             // is this common enough that one can't just use setTransform()?
@@ -42874,6 +42875,14 @@
 
    </dd>
 
+   <dt><var title="">context</var> . <code title="dom-context-2d-resetTransform">resetTransform</code>()</dt>
+
+   <dd>
+
+    <p>Changes the transformation matrix to the identity transform.</p>
+
+   </dd>
+
   </dl>
 
   <div class="impl">
@@ -42969,6 +42978,10 @@
   title="">c</var>, <var title="">d</var>, <var title="">e</var>,
   <var title="">f</var>)</code> method with the same arguments.</p>
 
+  <p>The <dfn
+  title="dom-context-2d-resetTransform"><code>resetTransform()</code></dfn>
+  method must reset the current transform to the identity matrix.</p>
+
   </div>
 
 




More information about the Commit-Watchers mailing list