mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 08:36:10 +03:00
correction for recent change which computed a highestLevel for drawer with max instead of min operation
This commit is contained in:
parent
26f83e283a
commit
3f20018c75
@ -6,7 +6,7 @@
|
||||
PROJECT: openseadragon
|
||||
BUILD_MAJOR: 0
|
||||
BUILD_MINOR: 9
|
||||
BUILD_ID: 101
|
||||
BUILD_ID: 102
|
||||
BUILD: ${PROJECT}.${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
|
||||
VERSION: ${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*globals OpenSeadragon */
|
||||
|
||||
/**
|
||||
* @version OpenSeadragon 0.9.101
|
||||
* @version OpenSeadragon 0.9.102
|
||||
*
|
||||
* @fileOverview
|
||||
* <h2>
|
||||
@ -8840,7 +8840,7 @@ function updateViewport( drawer ) {
|
||||
Math.log( 2 )
|
||||
)
|
||||
),
|
||||
highestLevel = Math.max(
|
||||
highestLevel = Math.min(
|
||||
Math.abs(drawer.source.maxLevel),
|
||||
Math.abs(Math.floor(
|
||||
Math.log( zeroRatioC / drawer.minPixelRatio ) /
|
||||
|
@ -365,7 +365,7 @@ function updateViewport( drawer ) {
|
||||
Math.log( 2 )
|
||||
)
|
||||
),
|
||||
highestLevel = Math.max(
|
||||
highestLevel = Math.min(
|
||||
Math.abs(drawer.source.maxLevel),
|
||||
Math.abs(Math.floor(
|
||||
Math.log( zeroRatioC / drawer.minPixelRatio ) /
|
||||
|
@ -100,6 +100,7 @@ OpenSeadragon({
|
||||
...
|
||||
});</pre>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var viewer = OpenSeadragon({
|
||||
id: "example-2row-tilesource-collection",
|
||||
@ -111,6 +112,7 @@ OpenSeadragon({
|
||||
collectionTileSize: 1024,
|
||||
collectionTileMargin: 256,
|
||||
|
||||
|
||||
//collectionLayout: 'vertical',
|
||||
//panVertical: false,
|
||||
//panHorizontal: false,
|
||||
@ -166,6 +168,7 @@ OpenSeadragon({
|
||||
...
|
||||
});</pre>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var viewer = OpenSeadragon({
|
||||
id: "example-2column-tilesource-collection",
|
||||
@ -175,13 +178,15 @@ OpenSeadragon({
|
||||
collectionMode: true,
|
||||
collectionRows: 2,
|
||||
collectionTileSize: 1024,
|
||||
collectionTileMargin: 512,
|
||||
collectionTileMargin: 256,
|
||||
collectionLayout: 'vertical',
|
||||
|
||||
|
||||
//panVertical: false,
|
||||
//panHorizontal: false,
|
||||
//defaultZoomLevel: 1,
|
||||
|
||||
|
||||
/*The wrap options can be fun to give a sense of infinite results*/
|
||||
//wrapHorizontal: true,
|
||||
//wrapVertical: true,
|
||||
|
Loading…
Reference in New Issue
Block a user