Opened 14 years ago

Closed 14 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:


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 );

Change History (1)

comment:1 Changed 14 years ago by Eugene Lazutkin

Resolution: wontfix
Status: newclosed

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:

Note: See TracTickets for help on using tickets.