diff --git a/test/demo/flipping.html b/test/demo/flipping.html
index f31b8ebc..3d3eb99e 100644
--- a/test/demo/flipping.html
+++ b/test/demo/flipping.html
@@ -20,8 +20,6 @@
margin: 0.3em;
}
-
-
@@ -57,6 +55,7 @@
+ Viewport
@@ -73,21 +72,25 @@
// debugMode: true,
id: "contentDiv",
prefixUrl: "../../build/openseadragon/images/",
- showNavigator:true
+ showNavigator:true,
+ tileSources: [
+ {
+ tileSource: "../data/testpattern.dzi",
+ x: 0,
+ y: 0,
+ flipped: document.getElementById("ffirst").checked,
+ degrees: document.getElementById("rfirst").checked * 45,
+ }, {
+ tileSource: "../data/testpattern.dzi",
+ x: 1,
+ y: 0,
+ flipped: document.getElementById("fsecond").checked,
+ degrees: document.getElementById("rsecond").checked * 45,
+ }
+ ]
});
- var first = viewer.addTiledImage({
- tileSource: "../data/testpattern.dzi",
- x: 0,
- y: 0,
- });
-
- var second = viewer.addTiledImage({
- tileSource: "../data/testpattern.dzi",
- x: 1,
- y: 0,
- flipped: true,
- });
+ viewer.viewport.setFlip(document.getElementById("fview").checked);
function debug(v) {
viewer.setDebugMode(v);