mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
Set rotation around center and fix typo.
This commit is contained in:
parent
eaddc1c33b
commit
33332bf774
@ -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
1707
src/tiledimage.js.orig
Normal file
File diff suppressed because it is too large
Load Diff
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user