Fixed: Try renaming to something more descriptive

This commit is contained in:
Richard Benjamin Allen 2024-07-16 08:38:39 +01:00
parent 2c5d2eb7c6
commit c1c1d480dd
4 changed files with 25 additions and 25 deletions

View File

@ -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]
* *
@ -1342,7 +1342,7 @@ function OpenSeadragon( options ){
// INITIAL FLIP STATE // INITIAL FLIP STATE
flipped: false, flipped: false,
overlayFlipReversal: true, overlayPreserveContentDirection: true,
// APPEARANCE // APPEARANCE
opacity: 1, opacity: 1,

View File

@ -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;

View File

@ -397,7 +397,7 @@ $.Viewer = function( options ) {
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,

View File

@ -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) {