# HG changeset patch # User Thinker K.F. Li # Date 1299211390 -28800 # Node ID 9d46f2982fa341e9bacbff2e82a336327a7e729f # Parent dc6591b4079d675a826c160588ca3cb31c55065d Write animation information in javascript variable diff -r dc6591b4079d -r 9d46f2982fa3 pyink/html5css3.py --- a/pyink/html5css3.py Fri Mar 04 11:41:51 2011 +0800 +++ b/pyink/html5css3.py Fri Mar 04 12:03:10 2011 +0800 @@ -216,7 +216,7 @@ _passing = lambda name, value: (name, str(value)) _trans_transform = lambda name, value: \ - (name, 'matrix(' + ','.join([str(e) for e in value]) + ')') + (name, 'matrix(' + ','.join([str(e) for e in value[0]]) + ')') _translators = {'x': _passing, 'y': _passing, 'width': _passing, 'height': _passing, @@ -318,6 +318,14 @@ print >> out, '''\ + '''