New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 637940 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature

Blocked on:
issue 388780



Sign in to add a comment

Support Canvas2D.getTransform() to return DOMMatrix

Project Member Reported by xlai@chromium.org, Aug 15 2016

Issue description

The latest spec expects Canvas2d to have function getTransform() (https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-gettransform) which returns a newly created DOMMatrix representing a copy of the current transformation matrix matrix of the context.

In particular, the spec notes that "This returned object is not live, so updating it will not affect the current transformation matrix, and updating the current transformation matrix will not affect an already returned DOMMatrix.".
(My doubt is whether the returned entity should be DOMMatrixReadOnly instead of DOMMatrix).

Note that at the time of writing, the function is actually implemented as "attribute SVGMatrix currentTransform;".

I am assigning this to myself because this is similar to another bug I have ( crbug.com/289572 ) but it'll take sometime for me to start. Anyone who want to implement this right now can ask it from me.
 

Comment 1 by xlai@chromium.org, Aug 15 2016

Blockedon: 388780
And, this is another use case of DOMMatrix.

Comment 2 by xlai@chromium.org, Aug 15 2016

The old issue about currentTransform() is here:  crbug.com/354434 . Because the spec is changed, so that issue was archived.

Comment 3 Deleted

Comment 4 Deleted

Comment 5 by pdr@chromium.org, Jul 11 2017

Cc: pdr@chromium.org xlai@chromium.org
Owner: ----
Status: Available (was: Assigned)
WebKit is actively implementing this:
https://bugs.webkit.org/show_bug.cgi?id=174278

Comment 6 by junov@chromium.org, Jul 12 2017

Labels: -Type-Bug Type-Feature
Owner: fs...@chromium.org
Status: Assigned (was: Available)

Comment 7 by fs...@chromium.org, May 29 2018

Status: Fixed (was: Assigned)

Sign in to add a comment