Commit Graph

313 Commits

Author SHA1 Message Date
Nelson Campos
71fd747051 Adds flip/mirror slides feature.
This commit adds full support for a new OpenSeaDragon(OSD) feature - Mirror/Flip.
In order to fully support this new feature, the following OSD objects had to be modified:
        - drawer.js:
        - navigator
        - openseadragon
        - strings
        - tiledImage
	- viewer

Additionally, a new flip button was created (similar to the existing ones).

Flip Logic
        Whenever the state is flip button is pressed, flip state is toogled, inverting all the controls and displays (the rotation direction is inverted as well).
        This means that all viewer coordinates (including user inputs) must me inverted too.

Summary of modifications
        - drawer.js: modified _offsetForRotation to invert rotation angle on flipped state. Added a _flip method to scale/mirror canvas context.
        - navigator.js: adds full flip support and inverts nagivator inputs.
        - openseadragon.js: new buttons, flip state variable and showFlipControl variable.
        - strings.js: flip tool help tips.
        - tiledImage.js: flips the actual drawing canvas.
	- viewer.js: Added keyboardshortcuts to rotate 90degrees (r/R) and flip image (f/F). flip button state is stored here and flip order is set.

The flipped state is stored on viewer object.
2018-04-04 16:08:13 +01:00
schueffp@mskcc.org
4889d63534 removed trailing spaces error 2018-03-16 11:44:42 +01:00
schueffp@mskcc.org
85d8d9ee32 Added option zoomToRefPoint for all gestureSettings
This is an option for different applications or user preferences:
If zoomToRefPoint in a gesture setting is true (default), the zoom is
centered at the pointer position. Otherwise, the zoom is centered at the
canvas center.
2018-03-16 11:29:16 +01:00
Jan Hudecek
5ddcfa438e Added option pixelsPerArrowPress that sets the speed of movement by arrow keys 2017-12-14 17:10:10 +01:00
Peter
f268607b54 more colors for the default case and added documentation. 2017-07-31 17:36:25 -04:00
Peter
6265d389b9 remove BOM 2017-07-31 17:05:18 -04:00
Peter
175463a0f6 different colors for different tiled images in debug mode.
If there are multiple tiled images as overlay, it might be important to
see how they are loaded. Different colors in the debug mode for the
different tiledImages visualize that. DebugGridColors have to be given
as a sting array with a color for each tiledImage. However, shorter
arrays will be recycled without error. Also, single strings are treated
as single entry arrays, for backwards compatibility.
2017-07-26 10:57:17 -04:00
Ian Gilman
b0ed8444c1 Removed Doc comment for OpenSeadragon function 2017-07-18 16:39:43 -07:00
John Hoffer
1ae3a9b961 Merge branch 'master' into master 2017-05-30 12:58:05 -04:00
Ian Gilman
52525f6697 Changelog for #1200 and comment tweak 2017-05-19 10:06:48 -07:00
Ian Gilman
8fe682f966 Merge pull request #1200 from LarissaSmith/master
Clamp device pixel ratio to a minimum of 1 for calculating pixelDensi…
2017-05-19 10:02:50 -07:00
larissasmith
23cba35ea0 Clamp device pixel ratio to a minimum of 1 for calculating pixelDensityRatio.
A lower value can cause tile drawing issues.
2017-05-18 15:17:02 -06:00
Mark Allen Matney, Jr
77da306397 Enable configuration of ImageJob timeout 2017-05-11 21:36:27 -07:00
Sean Nichols
11157999eb Remove use of Object.keys and Array.prototype.forEach for IE8 compatibility 2017-05-05 15:37:33 -04:00
Sean Nichols
6fdf81f266 Ignore falsy header values and improve ajaxHeaders documentation 2017-05-05 15:37:33 -04:00
Sean Nichols
15fe35a589 Improve documentation and option/argument names 2017-05-05 15:37:33 -04:00
Sean Nichols
ddab768696 Add options for loading tiles via AJAX and custom AJAX request headers. 2017-05-05 15:37:33 -04:00
Antoine Vandecreme
de25b68b43 Add eslint and hound 2017-01-16 21:41:07 +01:00
thejohnhoffer
0a44585457 documentation of opacity and preload relations 2016-11-03 22:39:00 -04:00
thejohnhoffer
bac2cab8e9 document tiledImage.preload 2016-11-02 20:45:33 -04:00
Antoine Vandecreme
65b59c08d6 First draft of tiled image rotation. 2016-08-17 15:43:08 +02:00
Artem Kozlov
9ef153ca53 Add support for commonjs. 2016-07-25 20:35:49 +02:00
Sebastian Öberg
fb5e628add Moved setting of withCredentials to after the request is opened to fix IE 10 bug. 2016-06-22 14:34:21 +02:00
plougsgaard
e9a0bbc8d9 Document effect on smoothTileEdgesMinZoom referencing #952. 2016-06-17 19:16:08 +02:00
plougsgaard
b3a10aca3b Introduce variable iOSDevice that disables 8c4fcc9 when running on an iOS device. 2016-06-17 16:37:30 +02:00
leesei
7ea8733e5b feat(navigator): add option autoFade 2016-05-07 17:16:59 +08:00
Ian Gilman
766e2b0e1f Merge pull request #902 from avandecreme/dead-code
Remove dead code.
2016-04-15 16:55:57 -07:00
Antoine Vandecreme
55e0811294 Merge remote-tracking branch 'upstream/master' into doc 2016-04-10 18:37:11 -04:00
Antoine Vandecreme
4fa7ed1590 Adapt doc to new version of JSDoc. 2016-04-09 10:15:02 -04:00
Antoine Vandecreme
bd4cabaec2 Fix JSDoc. 2016-04-05 20:00:35 -04:00
Antoine Vandecreme
55dfc146c9 Remove dead code. 2016-04-03 07:59:10 -04:00
Antoine Vandecreme
ffbb8b2cfe Add support of overlays rotation on IE9. 2016-03-30 11:16:29 -04:00
Antoine Vandecreme
9c461824b3 Update OpenSeadragon.Placement to be serializable. 2016-03-22 15:50:48 -04:00
Mei-Hui Su
c214e2f0c4 change option compositeOperation default to null instead of 'source-over' 2016-01-19 14:17:52 -08:00
Mei-Hui Su
3cfe8ecac2 Merge https://github.com/openseadragon/openseadragon 2016-01-14 12:32:54 -08:00
Mei-Hui Su
087507c823 1) update according to comments from openseadragon's 2016-01-07 12:47:17 -08:00
Mei-Hui Su
ea833a780c Update to allow setting of globalCompositeOperation when
html <canvas> is used to process multiple tiledImages to blend
is a specific way.
(special handling,
   when compositeOperation is 'source-over' and opacity is 1,
   useSketch is false, otherwise useSketch is true
)
Valid values are 'source-atop', 'source-in', 'source-out',
  'destination-over', 'destination-atop', 'destination-in',
  'destination-out', 'lighter', 'copy' or 'xor'
http://www.w3schools.com/tags/canvas_globalcompositeoperation.asp
2016-01-06 07:58:36 -08:00
Petar Petrov
7406727090 Merge branch 'master' of https://github.com/openseadragon/openseadragon 2015-11-16 16:44:31 +02:00
Ian Gilman
b3b1a32717 Merge pull request #760 from avandecreme/imagetilesource
Add ImageTileSource. Fix #467
2015-11-11 10:32:09 -08:00
Petar Petrov
515c15bf98 various fixes for edge smoothing - #755 2015-11-05 16:19:56 +02:00
Petar Petrov
8c4fcc9ca9 tile edge smoothing at high zoom - #755 2015-11-04 17:04:50 +02:00
Antoine Vandecreme
14a83e1154 Add IE8 support in ImageTileSource. 2015-11-02 18:35:11 -05:00
Grant Echols
40edbd7a1c Updates as per code review requests 2015-10-28 17:07:51 -06:00
Grant Echols
ad4bbb9daf Changed name of config parameter to include 'MS' to suggest milliseconds. 2015-10-27 15:33:39 -06:00
Grant Echols
19c6179533 Added a patch to help slow down the scroll devices that fire too fast. This new code reduces the number of 'canvas-scroll' events that fire and slows down the zoom process. 2015-10-27 14:00:45 -06:00
Larissa Smith
fc8b4db796 Fix for Chrome (v 45) issue that key is sometimes undefined outside of the for-in loop. 2015-09-17 15:45:39 -06:00
Ian Gilman
b07e4b200a Merge pull request #719 from Emigre/umd
registers an AMD module if possible
2015-09-14 13:54:27 -07:00
Ian Gilman
9f2a2f361d Changelog for #711 2015-09-03 09:24:15 -07:00
Gaspar Rey
f799a1fe86 Add 'define' as a global in JSHint 2015-09-03 00:35:43 +01:00
Gaspar Rey
00459189b1 Define as an AMD module if available 2015-09-02 00:10:53 +01:00