Intent to implement: canvas getTransform() and setTransform(DOMMatrixInit) methods.
31 views
Skip to first unread message
Thomas Wisniewski
unread,
Sep 7, 2016, 7:28:04 PM9/7/16
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-pl...@lists.mozilla.org
The canvas draft spec used to have a currentTransform attribute on 2D
canvas context objects, which was implemented by Chrome (behind a
runtime flag). We also ship our own similar (but non-standard)
mozGetTransform and mozSetTransform methods.
The draft spec has since changed to add a getTransform method
returning a DOMMatrix, and a setTransform method that accepts a new
DOMMatrixInit dictionary.
It seems that the Chrome team intends to support these new methods
instead of currentTransform, so I would like to implement them as
well, and help push the spec forward.