shama/jmpress.js — pull request #93 by mlarcher (2012-12-04 15:55:11+00:00)
Title: customizable order for rotations & transformations

It can come in handy to be able to force the rotation on the Y axis to occur before the one on the X axis, or to apply rotations before applying translations.
This pull request handles those cases, and won't interfere with the default behaviour.

It adds the following options :

rotateOrder: 'xyz'
Its value is a string that can be any combination of x,y and z.
Translations will be applied in that order.

transformOrder: 'trs'
Its value is a string that can be any combination of t, r and s.
t stands for translate, r for rotate and s for scale.