changeset 666:1e9d7d92135c jquery

better comment
author robcast
date Tue, 25 Jan 2011 17:50:27 +0100
parents 0d3d9517e448
children e944d132a6e2 9f8056d6c289
files client/digitallibrary/jquery/jquery.digilib.js
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/client/digitallibrary/jquery/jquery.digilib.js	Tue Jan 25 17:47:36 2011 +0100
+++ b/client/digitallibrary/jquery/jquery.digilib.js	Tue Jan 25 17:50:27 2011 +0100
@@ -793,10 +793,8 @@
         trafo.concat(trafo.getTranslation(geom.position(-area.x, -area.y)));
         // zoom area size
         trafo.concat(trafo.getScale(geom.size(1/area.width, 1/area.height)));
-        // rotate
+        // rotate (around transformed image center i.e. [0.5,0.5])
         if (data) {
-            /* var rot = trafo.getRotationAround(parseFloat(data.settings.rot), 
-                    geom.position(0.5 * area.width + area.x, 0.5 * area.height + area.y)); */
             var rot = trafo.getRotationAround(parseFloat(data.settings.rot), 
                     geom.position(0.5, 0.5));
             trafo.concat(rot);