Support Canvas2D.getTransform() to return DOMMatrix |
||||
Issue descriptionThe 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.
,
Aug 15 2016
The old issue about currentTransform() is here: crbug.com/354434 . Because the spec is changed, so that issue was archived.
,
Jul 11 2017
WebKit is actively implementing this: https://bugs.webkit.org/show_bug.cgi?id=174278
,
Jul 12 2017
,
May 29 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by xlai@chromium.org
, Aug 15 2016