Merge pull request #603 from openseadragon/m2

Demos of alternates and details in non-Harvard version (m2)
This commit is contained in:
Ian Gilman 2015-02-16 10:47:23 -08:00
commit 4a3899e394

View File

@ -638,8 +638,7 @@
}); });
} }
var inputs = [ var highsmith = {
{
Image: { Image: {
xmlns: "http://schemas.microsoft.com/deepzoom/2008", xmlns: "http://schemas.microsoft.com/deepzoom/2008",
Url: "http://openseadragon.github.io/example-images/highsmith/highsmith_files/", Url: "http://openseadragon.github.io/example-images/highsmith/highsmith_files/",
@ -651,7 +650,9 @@
Height: "9221" Height: "9221"
} }
} }
}, { };
var duomo = {
Image: { Image: {
xmlns: "http://schemas.microsoft.com/deepzoom/2008", xmlns: "http://schemas.microsoft.com/deepzoom/2008",
Url: "http://openseadragon.github.io/example-images/duomo/duomo_files/", Url: "http://openseadragon.github.io/example-images/duomo/duomo_files/",
@ -663,31 +664,37 @@
Height: "10200" Height: "10200"
} }
} }
}, { };
// Image: {
// xmlns: "http://schemas.microsoft.com/deepzoom/2008", var tall = {
// Url: "../../data/tall_files/", Image: {
// Format: "jpg", xmlns: "http://schemas.microsoft.com/deepzoom/2008",
// Overlap: "1", Url: "../../data/tall_files/",
// TileSize: "254", Format: "jpg",
// Size: { Overlap: "1",
// Width: "500", TileSize: "254",
// Height: "2000" Size: {
// } Width: "500",
// } Height: "2000"
// }, { }
// Image: { }
// xmlns: "http://schemas.microsoft.com/deepzoom/2008", };
// Url: "../../data/wide_files/",
// Format: "jpg", var wide = {
// Overlap: "1", Image: {
// TileSize: "254", xmlns: "http://schemas.microsoft.com/deepzoom/2008",
// Size: { Url: "../../data/wide_files/",
// Width: "2000", Format: "jpg",
// Height: "500" Overlap: "1",
// } TileSize: "254",
// } Size: {
// }, { Width: "2000",
Height: "500"
}
}
};
var testpattern = {
Image: { Image: {
xmlns: "http://schemas.microsoft.com/deepzoom/2008", xmlns: "http://schemas.microsoft.com/deepzoom/2008",
Url: "../../data/testpattern_files/", Url: "../../data/testpattern_files/",
@ -699,10 +706,60 @@
Height: "1000" Height: "1000"
} }
} }
} };
];
var pages = []; var pages = [];
pages.push(new this.Page({
masterWidth: 7026,
masterHeight: 9221,
x: 0,
y: 0,
width: 1,
label: 'highsmith',
tileSource: highsmith,
alternates: [
{
x: 0,
y: 0.55,
width: 1,
label: 'duomo',
tileSource: duomo
},
{
x: 0.7,
y: 0,
width: 0.3,
label: 'tall',
tileSource: tall
}
]
}));
pages.push(new this.Page({
tileSource: highsmith,
details: [
{
x: 0.25,
y: 0.15,
width: 0.5,
tileSource: testpattern
},
{
x: 0.25,
y: 0.8,
width: 0.5,
tileSource: wide
}
]
}));
var inputs = [
highsmith,
duomo,
testpattern
];
for (var i = 0; i < this.maxImages; i++) { for (var i = 0; i < this.maxImages; i++) {
pages.push(new this.Page({ pages.push(new this.Page({
pageIndex: i, pageIndex: i,