mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-23 13:46:09 +03:00
Fixed: Try renaming to something more descriptive
This commit is contained in:
parent
2c5d2eb7c6
commit
c1c1d480dd
@ -230,10 +230,10 @@
|
|||||||
* @property {Boolean} [flipped=false]
|
* @property {Boolean} [flipped=false]
|
||||||
* Initial flip state.
|
* Initial flip state.
|
||||||
*
|
*
|
||||||
* @property {Boolean} [overlayFlipReversal=true]
|
* @property {Boolean} [overlayPreserveContentDirection=true]
|
||||||
* When the viewport is flipped (by pressing 'f'), the overlay is flipped using ScaleX.
|
* When the viewport is flipped (by pressing 'f'), the overlay is flipped using ScaleX.
|
||||||
* Normally, this setting (default true) keeps the overlay's content readable by flipping it back.
|
* Normally, this setting (default true) keeps the overlay's content readable by flipping it back.
|
||||||
* To make the content flip with the overlay, set overlayFlipReversal to false.
|
* To make the content flip with the overlay, set overlayPreserveContentDirection to false.
|
||||||
*
|
*
|
||||||
* @property {Number} [minZoomLevel=null]
|
* @property {Number} [minZoomLevel=null]
|
||||||
*
|
*
|
||||||
@ -1341,8 +1341,8 @@ function OpenSeadragon( options ){
|
|||||||
degrees: 0,
|
degrees: 0,
|
||||||
|
|
||||||
// INITIAL FLIP STATE
|
// INITIAL FLIP STATE
|
||||||
flipped: false,
|
flipped: false,
|
||||||
overlayFlipReversal: true,
|
overlayPreserveContentDirection: true,
|
||||||
|
|
||||||
// APPEARANCE
|
// APPEARANCE
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
|
@ -259,7 +259,7 @@
|
|||||||
var position = positionAndSize.position;
|
var position = positionAndSize.position;
|
||||||
var size = this.size = positionAndSize.size;
|
var size = this.size = positionAndSize.size;
|
||||||
var outerScale = "";
|
var outerScale = "";
|
||||||
if (viewport.overlayContentFlipped) {
|
if (viewport.overlayPreserveContentDirection) {
|
||||||
outerScale = viewport.flipped ? " scaleX(-1)" : " scaleX(1)";
|
outerScale = viewport.flipped ? " scaleX(-1)" : " scaleX(1)";
|
||||||
}
|
}
|
||||||
var rotate = viewport.flipped ? -positionAndSize.rotate : positionAndSize.rotate;
|
var rotate = viewport.flipped ? -positionAndSize.rotate : positionAndSize.rotate;
|
||||||
|
@ -383,25 +383,25 @@ $.Viewer = function( options ) {
|
|||||||
|
|
||||||
// Create the viewport
|
// Create the viewport
|
||||||
this.viewport = new $.Viewport({
|
this.viewport = new $.Viewport({
|
||||||
containerSize: THIS[ this.hash ].prevContainerSize,
|
containerSize: THIS[ this.hash ].prevContainerSize,
|
||||||
springStiffness: this.springStiffness,
|
springStiffness: this.springStiffness,
|
||||||
animationTime: this.animationTime,
|
animationTime: this.animationTime,
|
||||||
minZoomImageRatio: this.minZoomImageRatio,
|
minZoomImageRatio: this.minZoomImageRatio,
|
||||||
maxZoomPixelRatio: this.maxZoomPixelRatio,
|
maxZoomPixelRatio: this.maxZoomPixelRatio,
|
||||||
visibilityRatio: this.visibilityRatio,
|
visibilityRatio: this.visibilityRatio,
|
||||||
wrapHorizontal: this.wrapHorizontal,
|
wrapHorizontal: this.wrapHorizontal,
|
||||||
wrapVertical: this.wrapVertical,
|
wrapVertical: this.wrapVertical,
|
||||||
defaultZoomLevel: this.defaultZoomLevel,
|
defaultZoomLevel: this.defaultZoomLevel,
|
||||||
minZoomLevel: this.minZoomLevel,
|
minZoomLevel: this.minZoomLevel,
|
||||||
maxZoomLevel: this.maxZoomLevel,
|
maxZoomLevel: this.maxZoomLevel,
|
||||||
viewer: this,
|
viewer: this,
|
||||||
degrees: this.degrees,
|
degrees: this.degrees,
|
||||||
flipped: this.flipped,
|
flipped: this.flipped,
|
||||||
overlayContentFlipped: this.overlayContentFlipped,
|
overlayPreserveContentDirection: this.overlayPreserveContentDirection,
|
||||||
navigatorRotate: this.navigatorRotate,
|
navigatorRotate: this.navigatorRotate,
|
||||||
homeFillsViewer: this.homeFillsViewer,
|
homeFillsViewer: this.homeFillsViewer,
|
||||||
margins: this.viewportMargins,
|
margins: this.viewportMargins,
|
||||||
silenceMultiImageWarnings: this.silenceMultiImageWarnings
|
silenceMultiImageWarnings: this.silenceMultiImageWarnings
|
||||||
});
|
});
|
||||||
|
|
||||||
this.viewport._setContentBounds(this.world.getHomeBounds(), this.world.getContentFactor());
|
this.viewport._setContentBounds(this.world.getHomeBounds(), this.world.getContentFactor());
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
tileSources: "../data/testpattern.dzi",
|
tileSources: "../data/testpattern.dzi",
|
||||||
minZoomImageRatio: 0,
|
minZoomImageRatio: 0,
|
||||||
maxZoomPixelRatio: 10,
|
maxZoomPixelRatio: 10,
|
||||||
overlayContentFlipped: true // change this to true to test overlay content flipping
|
overlayPreserveContentDirection: true // change this to true to test overlay content flipping
|
||||||
});
|
});
|
||||||
|
|
||||||
viewer.addHandler("open", function(event) {
|
viewer.addHandler("open", function(event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user