Opened 13 years ago
Closed 13 years ago
#5691 closed enhancement (wontfix)
reset transform to original state
Reported by: | guest | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | DojoX GFX | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Would be nice if dojo had a method to reset the matrix back to the original state.
I'm using this method at the moment to reset my transform back to normal: var m = dojox.gfx.matrix; var matrix = new m.Matrix2D(); group.setTransform( m );
Note: See
TracTickets for help on using
tickets.
If all you want is to set an identity matrix use an empty argument:
Any setXXX() method accepts empty or null argument as a special value meaning "no XXX": no fill, no stroke, no transformation.
Or you can use standard rules of matrix normalization, which will produce slightly longer code: