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
It is doubtful that this can be very useful for authors. On the other hand, it allows scripted animations similar to the animations by CSS3 Transforms.
123
125
</p>
@@ -160,6 +162,7 @@ <h3>The constructors</h3>
160
162
</div>
161
163
<pclass='issue'>Should it be postponed to avoid CSS3 Transforms dependency?</p>
162
164
<pclass='issue'>Should unit-less values (like for SVG transform presentation attribute) be allowed too? <code>"translate(20,20)"</code></p>
165
+
<p>Throws a <var>DOMException</var> with name <code>SyntaxError</code> if the <code>DOMString</code> parameter does not validate to a transform list [[!CSS3-TRANSFORMS]].
163
166
</dd>
164
167
<dt>Constructor()</dt>
165
168
<dd>
@@ -185,6 +188,7 @@ <h3>The constructors</h3>
185
188
Create an identity matrix first. An Float32array [[!TYPED-ARRAYS]] of 6 items sets the element values <code>a</code> to <code>f</code>. An array of 16 items sets the element values <code>m11</code> to <code>m44</code>.
186
189
</dd>
187
190
</dl>
191
+
<p>Throws a <var>DOMException</var> with name <code>SyntaxError</code> if the <code>Float32array</code> parameter does not consist of 6 or 16 items.
188
192
</dd>
189
193
<dt>Constructor()</dt>
190
194
<dd>
@@ -194,6 +198,7 @@ <h3>The constructors</h3>
194
198
Create an identity matrix first. An Float64array [[!TYPED-ARRAYS]] of 6 items sets the element values <code>a</code> to <code>f</code>. An array of 16 items sets the element values <code>m11</code> to <code>m44</code>.
195
199
</dd>
196
200
</dl>
201
+
<p>Throws a <var>DOMException</var> with name <code>SyntaxError</code> if the <code>Float64array</code> parameter does not consist of 6 or 16 items.
197
202
</dd>
198
203
<dt>Constructor()</dt>
199
204
<dd>
@@ -203,14 +208,15 @@ <h3>The constructors</h3>
203
208
Create an identity matrix first. A sequence of 6 items sets the element values <code>a</code> to <code>f</code>. A sequence of 16 items sets the element values <code>m11</code> to <code>m44</code>.
204
209
</dd>
205
210
</dl>
211
+
<p>Throws a <var>DOMException</var> with name <code>SyntaxError</code> if the number sequence parameter does not consist of 6 or 16 items.
206
212
</dd>
207
213
</section>
208
214
209
215
<section>
210
216
<h3>Two-dimensional attributes</h3>
211
217
212
218
<p>
213
-
If a <a>Matrix</a> just consists of 2D transformations the 6 values <code>a</code> to <code>f</code> can represent the transformation matrix. If the <a>Matrix</a> object is immutable, a DOMException of type<code>NoModificationAllowedError</code> must be thrown on setting the attributes.
219
+
If a <a>Matrix</a> just consists of 2D transformations the 6 values <code>a</code> to <code>f</code> can represent the transformation matrix. If the <a>Matrix</a> object is immutable, a <var>DOMException</var> with name<code>NoModificationAllowedError</code> must be thrown on setting the attributes.
The following attributes <code>m11</code> to <code>m44</code> represent the elements of the 4x4 matrix. The coordinates are in column-major order. If the <a>Matrix</a> object is immutable, a DOMException of type<code>NoModificationAllowedError</code> must be thrown on setting the attributes.
260
+
The following attributes <code>m11</code> to <code>m44</code> represent the elements of the 4x4 matrix. The coordinates are in column-major order. If the <a>Matrix</a> object is immutable, a <var>DOMException</var> with name<code>NoModificationAllowedError</code> must be thrown on setting the attributes.
<dd>Multiplier for a uniform scale transformation.</dd>
384
-
<dt>optional double originX</dt>
385
-
<dd>Transformation origin on the x-axis. Defaulting to 0.</dd>
386
-
<dt>optional double originY</dt>
387
-
<dd>Transformation origin on the y-axis. Defaulting to 0.</dd>
390
+
<dt>optional double originX = 0</dt>
391
+
<dd>Transformation origin on the x-axis.</dd>
392
+
<dt>optional double originY = 0</dt>
393
+
<dd>Transformation origin on the y-axis.</dd>
388
394
</dl>
389
395
Post-multiplies a uniform 2D scale transformation (<code>m11 = m22 = scale</code>) on the current matrix with the given origin and returns the resulting matrix. The current matrix is not modified.
<dd>Multiplier for a uniform scale transformation.</dd>
396
-
<dt>optional double originX</dt>
397
-
<dd>Transformation origin on the x-axis. Defaulting to 0.</dd>
398
-
<dt>optional double originY</dt>
399
-
<dd>Transformation origin on the y-axis. Defaulting to 0.</dd>
400
-
<dt>optional double originZ</dt>
401
-
<dd>Transformation origin on the z-axis. Defaulting to 0.</dd>
402
+
<dt>optional double originX = 0</dt>
403
+
<dd>Transformation origin on the x-axis.</dd>
404
+
<dt>optional double originY = 0</dt>
405
+
<dd>Transformation origin on the y-axis.</dd>
406
+
<dt>optional double originZ = 0</dt>
407
+
<dd>Transformation origin on the z-axis.</dd>
402
408
</dl>
403
409
Post-multiplies a uniform scale transformation (<code>m11 = m22 = m33 = scale</code>) on the current matrix with the given origin and returns the resulting matrix. The current matrix is not modified.
<dd>Multiplier for a non-uniform scale along the x-axis.</dd>
410
-
<dt>optional double scaleY</dt>
411
-
<dd>Multiplier for a non-uniform scale along the y-axis. Defaulting to 1.</dd>
412
-
<dt>optional double scaleZ</dt>
413
-
<dd>Multiplier for a non-uniform scale along the z-axis. Defaulting to 1.</dd>
414
-
<dt>optional double originX</dt>
415
-
<dd>Transformation origin on the x-axis. Defaulting to 0.</dd>
416
-
<dt>optional double originY</dt>
417
-
<dd>Transformation origin on the y-axis. Defaulting to 0.</dd>
418
-
<dt>optional double originZ</dt>
419
-
<dd>Transformation origin on the z-axis. Defaulting to 0.</dd>
416
+
<dt>optional double scaleY = 1</dt>
417
+
<dd>Multiplier for a non-uniform scale along the y-axis.</dd>
418
+
<dt>optional double scaleZ = 1</dt>
419
+
<dd>Multiplier for a non-uniform scale along the z-axis.</dd>
420
+
<dt>optional double originX = 0</dt>
421
+
<dd>Transformation origin on the x-axis.</dd>
422
+
<dt>optional double originY = 0</dt>
423
+
<dd>Transformation origin on the y-axis.</dd>
424
+
<dt>optional double originZ = 0</dt>
425
+
<dd>Transformation origin on the z-axis.</dd>
420
426
</dl>
421
427
Post-multiplies a non-uniform scale 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>
430
-
<dt>optional double originY</dt>
431
-
<dd>Transformation origin on the y-axis. Defaulting to 0.</dd>
434
+
<dt>optional double originX = 0</dt>
435
+
<dd>Transformation origin on the x-axis.</dd>
436
+
<dt>optional double originY = 0</dt>
437
+
<dd>Transformation origin on the y-axis.</dd>
432
438
</dl>
433
439
Post-multiplies a rotation transformation on the current matrix with the given origin and returns the resulting matrix. The current matrix is not modified.
The following methods do modify the current matrix. If the <a>Matrix</a> object is immutable, a DOMException of type<code>NoModificationAllowedError</code> must be thrown on calling the operations below.
515
+
The following methods do modify the current matrix. If the <a>Matrix</a> object is immutable, a <var>DOMException</var> with name<code>NoModificationAllowedError</code> must be thrown on calling the operations below.
0 commit comments