From b8400b8f8062e8ca01e2ba3b8695905237e1f8ee Mon Sep 17 00:00:00 2001 From: Tawanda Moyo Date: Mon, 11 Mar 2024 08:36:09 +0200 Subject: [PATCH] Editorial: improve clarity of canvas transform methods Helps with #2848. --- source | 68 +++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 24 deletions(-) diff --git a/source b/source index f0f10e15d88..ac57b0b0d1f 100644 --- a/source +++ b/source @@ -4076,6 +4076,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • The DOMPointInit dictionary, and associated x and y members
  • +
  • Matrix multiplication
  • The following terms are defined in the CSS Scoping: CSSSCOPING

    @@ -67266,30 +67267,33 @@ try {
    1. If any of the arguments are infinite or NaN, then return.

    2. -
    3. Replace the current transformation matrix with the result of multiplying the - current transformation matrix with the matrix described by:

    4. +
    5. +

      Replace the current transformation matrix with the result of multiplying the current transformation matrix + with the matrix described by:

      + + + + + + + + + + + + + + + + + +
      ace
      bdf
      001
      +
    - - - - - - - - - - - - - - - - -
    ace
    bdf
    001
    -

    The arguments a, b, c, d, e, and f are sometimes called m11, m12, m21, m22, dx, and dy or m11, @@ -67317,11 +67321,27 @@ try {

    1. If any of the arguments are infinite or NaN, then return.

    2. -
    3. Reset the current transformation matrix to the identity matrix.

    4. +
    5. +

      Reset the current transformation matrix to the matrix described by:

      -
    6. Invoke the transform(a, b, c, - d, e, f) method with the same arguments.

    7. + + + + + + + + + + + + + + + + +
      ace
      bdf
      001
      +

    The