This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//prefix is image path of viewer | |
var prefix = opts.prefixUrl; | |
//create button to add to viewer | |
var previousButton = new OpenSeadragon.Button({ | |
tooltip: 'previous Image', | |
srcRest: prefix + 'previous_rest.png', | |
srcGroup: prefix + 'previous_grouphover.png', | |
srcHover: prefix + 'previous_hover.png', | |
srcDown: prefix + 'previous_pressed.png', | |
onRelease: function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//prefix is image path of viewer | |
var prefix = opts.prefixUrl; | |
//create button to add to viewer | |
var previousButton = new OpenSeadragon.Button({ | |
tooltip: 'previous Image', | |
srcRest: prefix + 'previous_rest.png', | |
srcGroup: prefix + 'previous_grouphover.png', | |
srcHover: prefix + 'previous_hover.png', | |
srcDown: prefix + 'previous_pressed.png', | |
onRelease: function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ViewerService.createZoomifyTilesource = function (images) { | |
if (typeof(images) !== 'undefined' && images.length>0) { | |
var tilesources = []; | |
for(var i=0;i<images.length;i++) { | |
var tilesource = { | |
type:"zoomifytileservice", | |
width: images[i].dimx, | |
height: images[i].dimy,] | |
x: 2*i, | |
y: 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ViewerService.createZoomifyTilesource = function (images) { | |
if (images) { | |
console.log(images); | |
var tilesources = []; | |
for(var i=0;i<images.length;i++) { | |
var tilesource = { | |
type:"zoomifytileservice", | |
width: images[i].dimx, | |
height: images[i].dimy, | |
tileSize:256, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( $ ){ | |
/** | |
* @class ZoomifyTileSource | |
* @classdesc A tilesource implementation for the zoomify format. | |
* | |
* @memberof OpenSeadragon | |
* @extends OpenSeadragon.TileSource | |
* @param {Number} width - the pixel width of the image. | |
* @param {Number} height |