Mercurial > hg > digilib
comparison client/digitallibrary/jquery/jquery.digilib.js @ 666:1e9d7d92135c jquery
better comment
| author | robcast |
|---|---|
| date | Tue, 25 Jan 2011 17:50:27 +0100 |
| parents | 0d3d9517e448 |
| children | e944d132a6e2 9f8056d6c289 |
comparison
equal
deleted
inserted
replaced
| 665:0d3d9517e448 | 666:1e9d7d92135c |
|---|---|
| 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 |
