Mercurial > hg > digilib-old
changeset 673:6ca57779e740 jquery
better comment
author | robcast |
---|---|
date | Tue, 25 Jan 2011 17:50:27 +0100 |
parents | 7f7536a5b6d9 |
children | 6c869c851c9a ca37fb4b1e72 |
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);