Mercurial > hg > digilib-old
comparison client/digitallibrary/jquery/jquery.digilib.js @ 673:6ca57779e740 jquery
better comment
author | robcast |
---|---|
date | Tue, 25 Jan 2011 17:50:27 +0100 |
parents | 7f7536a5b6d9 |
children | 6c869c851c9a ca37fb4b1e72 |
comparison
equal
deleted
inserted
replaced
672:7f7536a5b6d9 | 673:6ca57779e740 |
---|---|
791 var trafo = geom.transform(); | 791 var trafo = geom.transform(); |
792 // zoom area offset | 792 // zoom area offset |
793 trafo.concat(trafo.getTranslation(geom.position(-area.x, -area.y))); | 793 trafo.concat(trafo.getTranslation(geom.position(-area.x, -area.y))); |
794 // zoom area size | 794 // zoom area size |
795 trafo.concat(trafo.getScale(geom.size(1/area.width, 1/area.height))); | 795 trafo.concat(trafo.getScale(geom.size(1/area.width, 1/area.height))); |
796 // rotate | 796 // rotate (around transformed image center i.e. [0.5,0.5]) |
797 if (data) { | 797 if (data) { |
798 /* var rot = trafo.getRotationAround(parseFloat(data.settings.rot), | |
799 geom.position(0.5 * area.width + area.x, 0.5 * area.height + area.y)); */ | |
800 var rot = trafo.getRotationAround(parseFloat(data.settings.rot), | 798 var rot = trafo.getRotationAround(parseFloat(data.settings.rot), |
801 geom.position(0.5, 0.5)); | 799 geom.position(0.5, 0.5)); |
802 trafo.concat(rot); | 800 trafo.concat(rot); |
803 } | 801 } |
804 // scale to screen position and size | 802 // scale to screen position and size |