jmpressjs / jmpress.js

A jQuery plugin to build a website on the infinite canvas
http://jmpressjs.github.com/jmpress.js
1.5k stars 237 forks source link

Get css transformer #166

Open mcshaman opened 9 years ago

mcshaman commented 9 years ago

There is obviously a function to set prefixed transform properties. However I can't see a method for getting transform properties. I would like to be able to work out what the rotateX of an is. I could write some logic to identify prefixed properties and then decode the transform matrix... But I feel like this code must already be within jmpress and I would only be doubling up on code.

sokra commented 9 years ago

In the callback setActive there is a property target in eventData which contains such information. Store it from there for later usage.