This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12140 - Why is there no getTransform() method?
Summary: Why is there no getTransform() method?
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML Canvas 2D Context (show other bugs)
Version: unspecified
Hardware: All All
: P3 enhancement
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard: canvas v5
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-19 19:10 UTC by contributor
Modified: 2012-03-28 21:49 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2011-02-19 19:10:25 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html
Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#transformations

Comment:
Why is there no getTransform() method?

Posted from: 173.52.179.61
Comment 1 andrew morton 2011-02-19 19:17:46 UTC
My use case is a LOGO interpreter in Javascript that does the drawing on the canvas. I'm able to use transformations to draw the path of the turtle but if I draw the turtle then I need to clear the canvas before running the next command to avoid leaving a series of turtles. If I was able to load the transformation matrix I believe I could use it as a CSS transformation to position an image on top of the canvas.
Comment 2 andrew morton 2011-02-19 19:29:35 UTC
I guess I'm not the only one wondering this:
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2010-July/027394.html
Comment 3 Ian 'Hixie' Hickson 2011-05-04 23:44:26 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Partially Accepted
Change Description: see diff given below
Rationale: This might make sense, but first we need to wait for implementations to catch up with what we've implemented so far. I've marked this "LATER" so that we will remember to revisit this in the future.
Comment 4 Michael[tm] Smith 2011-08-04 05:03:50 UTC
mass-move component to LC1
Comment 5 Ian 'Hixie' Hickson 2012-02-29 22:29:33 UTC
Mozilla proposes "attribute SVGMatrix currentTransform" in:
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-November/033745.html
Comment 6 Ian 'Hixie' Hickson 2012-02-29 22:51:44 UTC
Adopted that as proposal: http://wiki.whatwg.org/wiki/Canvas#Misc_other_proposals
Comment 7 Edward O'Connor 2012-03-20 18:05:49 UTC
See also Dean's unified-css-and-svg matrix proposal:

http://lists.w3.org/Archives/Public/public-fx/2012JanMar/0007.html

which was in response to

http://lists.w3.org/Archives/Public/public-webapps/2011OctDec/0376.html
Comment 8 Ian 'Hixie' Hickson 2012-03-28 21:49:04 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: I've used SVGMatrix for now.
Rationale: Concurred with reporter's comments.