diff --git a/src/viewport.js b/src/viewport.js index 916c05f5..31f658a4 100644 --- a/src/viewport.js +++ b/src/viewport.js @@ -676,7 +676,7 @@ $.Viewport.prototype = { /** - * Convert a delta (translation vector) from image pixels coordinates to viewport coordinates + * Convert a delta (translation vector) from pixels coordinates to viewport coordinates * @function * @param {Boolean} current - Pass true for the current location; defaults to false (target location). */ @@ -687,7 +687,7 @@ $.Viewport.prototype = { }, /** - * Convert a delta (translation vector) from viewport coordinates to image pixels coordinates. + * Convert a delta (translation vector) from viewport coordinates to pixels coordinates. * @function * @param {Boolean} current - Pass true for the current location; defaults to false (target location). */ @@ -836,7 +836,7 @@ $.Viewport.prototype = { }, /** - * Convert a pixel coordinates relative to the viewer element to image + * Convert pixel coordinates relative to the viewer element to image * coordinates. * @param {OpenSeadragon.Point} pixel * @returns {OpenSeadragon.Point} @@ -847,7 +847,7 @@ $.Viewport.prototype = { }, /** - * Convert a pixel coordinates relative to the image to + * Convert pixel coordinates relative to the image to * viewer element coordinates. * @param {OpenSeadragon.Point} point * @returns {OpenSeadragon.Point} @@ -858,7 +858,7 @@ $.Viewport.prototype = { }, /** - * Convert a pixel coordinates relative to the window to image coordinates. + * Convert pixel coordinates relative to the window to image coordinates. * @param {OpenSeadragon.Point} pixel * @returns {OpenSeadragon.Point} */ @@ -869,7 +869,7 @@ $.Viewport.prototype = { }, /** - * Convert an image coordinates to pixel coordinates relative to the window. + * Convert image coordinates to pixel coordinates relative to the window. * @param {OpenSeadragon.Point} pixel * @returns {OpenSeadragon.Point} */ @@ -880,7 +880,7 @@ $.Viewport.prototype = { }, /** - * Convert a pixel coordinates relative to the viewer element to viewport + * Convert pixel coordinates relative to the viewer element to viewport * coordinates. * @param {OpenSeadragon.Point} pixel * @returns {OpenSeadragon.Point} @@ -890,7 +890,7 @@ $.Viewport.prototype = { }, /** - * Convert viewport coordinates to a pixel coordinates relative to the + * Convert viewport coordinates to pixel coordinates relative to the * viewer element. * @param {OpenSeadragon.Point} point * @returns {OpenSeadragon.Point} @@ -900,7 +900,7 @@ $.Viewport.prototype = { }, /** - * Convert a pixel coordinates relative to the window to viewport coordinates. + * Convert pixel coordinates relative to the window to viewport coordinates. * @param {OpenSeadragon.Point} pixel * @returns {OpenSeadragon.Point} */ @@ -911,7 +911,7 @@ $.Viewport.prototype = { }, /** - * Convert viewport coordinates to a pixel coordinates relative to the window. + * Convert viewport coordinates to pixel coordinates relative to the window. * @param {OpenSeadragon.Point} point * @returns {OpenSeadragon.Point} */ diff --git a/test/demo/basic.html b/test/demo/basic.html index be8cbb4c..19572b86 100644 --- a/test/demo/basic.html +++ b/test/demo/basic.html @@ -18,24 +18,6 @@ Simple demo page to show a default OpenSeadragon viewer.
-
- - - - - - - - - - - - - - - -
Window (pixel)Container (pixel)Image (pixel)Viewport (point)
Cursor position
-
diff --git a/test/demo/coordinates.html b/test/demo/coordinates.html new file mode 100644 index 00000000..be8cbb4c --- /dev/null +++ b/test/demo/coordinates.html @@ -0,0 +1,77 @@ + + + + OpenSeadragon Basic Demo + + + + + +
+ Simple demo page to show a default OpenSeadragon viewer. +
+
+
+ + + + + + + + + + + + + + + +
Window (pixel)Container (pixel)Image (pixel)Viewport (point)
Cursor position
+
+ + + diff --git a/test/test.css b/test/test.css index a7693328..eb651b16 100644 --- a/test/test.css +++ b/test/test.css @@ -16,4 +16,4 @@ #unitsexample { height: 500px; width: 500px; -} \ No newline at end of file +} diff --git a/test/units.js b/test/units.js index eb2b70ac..1417b801 100644 --- a/test/units.js +++ b/test/units.js @@ -106,6 +106,7 @@ viewer.addHandler('animationfinish', zoomHandler); viewport.zoomTo(2); + start(); }); viewer.open('/test/data/testpattern.dzi');