You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<dd>Transformation origin on the x-axis. Defaulting to 0.</dd>
413
422
<dt>optional double y</dt>
414
423
<dd>Transformation origin on the y-axis. Defaulting to 0.</dd>
415
-
<dt>optional double z</dt>
416
-
<dd>Transformation origin on the z-axis. Defaulting to 0.</dd>
417
424
</dl>
418
425
Post-multiplies a rotation transformation on the current matrix with the given origin and returns the resulting matrix. The current matrix is not modified.
<dd>Transformation origin on the x-axis. Defaulting to 0.</dd>
580
587
<dt>optional double y</dt>
581
588
<dd>Transformation origin on the y-axis. Defaulting to 0.</dd>
582
-
<dt>optional double z</dt>
583
-
<dd>Transformation origin on the z-axis. Defaulting to 0.</dd>
584
589
</dl>
585
590
Post-multiplies a rotation transformation on the current matrix with the given origin.
586
591
</dd>
@@ -675,8 +680,21 @@ <h3>Helper methods</h3>
675
680
</dd>
676
681
<dt>void stringifier()</dt>
677
682
<dd>
678
-
Returns a string in the form of a CSS Transforms <code>matrix</code> function if the current matrix is a 2D transform or a CSS Transforms <code>matrix3d</code> else.
683
+
Returns a string in the form of a CSS Transforms <code>matrix</code> function if the current matrix is a 2D transform or a CSS Transforms <code>matrix3d</code> else. The syntax is as specified in CSS Transforms [[!CSS3-TRANSFORMS]].
679
684
<pclass='issue'>Should be <code>stringifier;</code>. Bug in old respec tool.</p>
685
+
<divclass='example'>
686
+
<p>In this example a matrix is created and several methods with 2D transformations are called.</p>
687
+
<pre><code>var matrix = new Matrix();
688
+
matrix.scaleBy(2);
689
+
matrix.translateBy(20,20);</code></pre>
690
+
<p>The <code>matrix.toString()</code> returns the DOM string:</p>
691
+
<pre><code>"matrix(2,0,0,2,20,20)"</code></pre>
692
+
<p>For 3D operations, the <var>stringifier</var> returns DOM string representing a 3D matrix.</p>
693
+
<pre><code>var matrix = new Matrix();
694
+
matrix.scale3dBy(2);</code></pre>
695
+
<p>Calling <code>matrix.toString()</code> after the snippet above returns the DOM string:</p>
0 commit comments