Set rotation around center and fix typo.

This commit is contained in:
Antoine Vandecreme 2016-08-28 13:39:26 +02:00
parent eaddc1c33b
commit 33332bf774
3 changed files with 1709 additions and 2 deletions

View File

@ -799,7 +799,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
* @returns {OpenSeadragon.Point}
*/
_getRotationPoint: function(current) {
return this.getBoundsNoRotate(current).getTopLeft();
return this.getBoundsNoRotate(current).getCenter();
},
/**

1707
src/tiledimage.js.orig Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1229,7 +1229,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
* browsers that support the HTML5 canvas.
* @param {Number} [options.opacity] Opacity the tiled image should be drawn at by default.
* @param {Number} [options.degrees=0] Initial rotation of the tiled image around
* it top left corner in degrees.
* its top left corner in degrees.
* @param {String} [options.compositeOperation] How the image is composited onto other images.
* @param {String} [options.crossOriginPolicy] The crossOriginPolicy for this specific image,
* overriding viewer.crossOriginPolicy.