mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-20 01:31:45 +03:00
Fixed navigator resize
- Added navigatorMinZoomImageRatio with default of 1
This commit is contained in:
parent
6d3b582e58
commit
c825438339
@ -241,7 +241,7 @@
|
|||||||
* @property {Number} [minZoomImageRatio=0.9]
|
* @property {Number} [minZoomImageRatio=0.9]
|
||||||
* The minimum percentage ( expressed as a number between 0 and 1 ) of
|
* The minimum percentage ( expressed as a number between 0 and 1 ) of
|
||||||
* the viewport height or width at which the zoom out will be constrained.
|
* the viewport height or width at which the zoom out will be constrained.
|
||||||
* Setting it to 0, for example will allow you to zoom out infinitly.
|
* Setting it to 0, for example will allow you to zoom out infinitely.
|
||||||
*
|
*
|
||||||
* @property {Number} [maxZoomPixelRatio=1.1]
|
* @property {Number} [maxZoomPixelRatio=1.1]
|
||||||
* The maximum ratio to allow a zoom-in to affect the highest level pixel
|
* The maximum ratio to allow a zoom-in to affect the highest level pixel
|
||||||
@ -356,7 +356,7 @@
|
|||||||
* @property {Boolean} [showNavigator=false]
|
* @property {Boolean} [showNavigator=false]
|
||||||
* Set to true to make the navigator minimap appear.
|
* Set to true to make the navigator minimap appear.
|
||||||
*
|
*
|
||||||
* @property {Boolean} [navigatorId=navigator-GENERATED DATE]
|
* @property {String} [navigatorId=navigator-GENERATED DATE]
|
||||||
* The ID of a div to hold the navigator minimap.
|
* The ID of a div to hold the navigator minimap.
|
||||||
* If an ID is specified, the navigatorPosition, navigatorSizeRatio, navigatorMaintainSizeRatio, and navigatorTop|Left|Height|Width options will be ignored.
|
* If an ID is specified, the navigatorPosition, navigatorSizeRatio, navigatorMaintainSizeRatio, and navigatorTop|Left|Height|Width options will be ignored.
|
||||||
* If an ID is not specified, a div element will be generated and placed on top of the main image.
|
* If an ID is not specified, a div element will be generated and placed on top of the main image.
|
||||||
@ -393,6 +393,12 @@
|
|||||||
* @property {Boolean} [navigatorRotate=true]
|
* @property {Boolean} [navigatorRotate=true]
|
||||||
* If true, the navigator will be rotated together with the viewer.
|
* If true, the navigator will be rotated together with the viewer.
|
||||||
*
|
*
|
||||||
|
* @property {Number} [navigatorMinZoomImageRatio=1.0]
|
||||||
|
* The minimum percentage ( expressed as a number between 0 and 1 ) of
|
||||||
|
* the navigator's image height or width at which the zoom out will be
|
||||||
|
* constrained during resize. Setting it to 0, for example will allow you
|
||||||
|
* to zoom out infinitely. Only applies when navigatorId is specified.
|
||||||
|
*
|
||||||
* @property {Number} [controlsFadeDelay=2000]
|
* @property {Number} [controlsFadeDelay=2000]
|
||||||
* The number of milliseconds to wait once the user has stopped interacting
|
* The number of milliseconds to wait once the user has stopped interacting
|
||||||
* with the interface before begining to fade the controls. Assumes
|
* with the interface before begining to fade the controls. Assumes
|
||||||
@ -1024,6 +1030,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
navigatorWidth: null,
|
navigatorWidth: null,
|
||||||
navigatorAutoResize: true,
|
navigatorAutoResize: true,
|
||||||
navigatorRotate: true,
|
navigatorRotate: true,
|
||||||
|
navigatorMinZoomImageRatio: 1.0,
|
||||||
|
|
||||||
// INITIAL ROTATION
|
// INITIAL ROTATION
|
||||||
degrees: 0,
|
degrees: 0,
|
||||||
|
@ -411,7 +411,8 @@ $.Viewer = function( options ) {
|
|||||||
prefixUrl: this.prefixUrl,
|
prefixUrl: this.prefixUrl,
|
||||||
viewer: this,
|
viewer: this,
|
||||||
navigatorRotate: this.navigatorRotate,
|
navigatorRotate: this.navigatorRotate,
|
||||||
crossOriginPolicy: this.crossOriginPolicy
|
crossOriginPolicy: this.crossOriginPolicy,
|
||||||
|
minZoomImageRatio: this.navigatorMinZoomImageRatio
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user