Skip to content

Commit

Permalink
Fix: Clarity improvements to canvas transform methods, fixes whatwg#2848
Browse files Browse the repository at this point in the history
  • Loading branch information
tawandamoyo committed Mar 5, 2024
1 parent 702119c commit 9864007
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4092,6 +4092,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li>The <dfn data-x-href="https://drafts.fxtf.org/geometry/#dictdef-dompointinit"><code>DOMPointInit</code></dfn> dictionary, and associated
<dfn data-x="DOMPointInit-x" data-xref="https://drafts.fxtf.org/geometry/#dom-dompointinit-x">x</dfn> and
<dfn data-x="DOMPointInit-y" data-xref="https://drafts.fxtf.org/geometry/#dom-dompointinit-y">y</dfn> members</li>
<li><dfn data-x-href="https://drafts.fxtf.org/geometry/#matrix-multiply">Matrix multiplication</dfn></li>
</ul>

<p>The following terms are defined in the <cite>CSS Scoping</cite>: <ref>CSSSCOPING</ref></p>
Expand Down Expand Up @@ -67282,8 +67283,8 @@ try {
<ol>
<li><p>If any of the arguments are infinite or NaN, then return.</p></li>

<li><p>Replace the <span>current transformation matrix</span> with the result of multiplying the
current transformation matrix with the matrix described by:</p></li>
<li><p>Replace the <span>current transformation matrix</span> with the result of <span data-x="matrix multiplication">multiplying</span> the
<span>current transformation matrix</span> with the matrix described by:</p></li>
</ol>

</div>
Expand Down Expand Up @@ -67333,11 +67334,24 @@ try {
<ol>
<li><p>If any of the arguments are infinite or NaN, then return.</p></li>

<li><p>Reset the <span>current transformation matrix</span> to the identity matrix.</p></li>

<li><p>Invoke the <code data-x=""><span
data-x="dom-context-2d-transform">transform</span>(<var>a</var>, <var>b</var>, <var>c</var>,
<var>d</var>, <var>e</var>, <var>f</var>)</code> method with the same arguments.</p></li>
<li><p>Reset the <span>current transformation matrix</span> to the matrix described by:</p>
<table class="matrix">
<tr>
<td><var>a</var></td>
<td><var>c</var></td>
<td><var>e</var></td>
</tr>
<tr>
<td><var>b</var></td>
<td><var>d</var></td>
<td><var>f</var></td>
</tr>
<tr>
<td>0</td>
<td>0</td>
<td>1</td>
</tr>
</table></li>
</ol>

<p>The <dfn method for="CanvasTransform"><code
Expand Down

0 comments on commit 9864007

Please sign in to comment.