Commit Graph

178 Commits

Author SHA1 Message Date
Nelson Campos
f65dbd3a39 Changes back showFlipControl and showNavigator variables to false default state 2018-04-09 15:06:29 +01:00
Nelson Campos
6e4012976b Adds two helpers for style formating and updates onCanvasKeyPress method.
There were created a new helper method "setDisplayTransform" to change navigator styling.
Also, a new general function "setElementTransform" was created to help on element styling.

For this commit, I also made some changes on viewer onCanvasKeyPress method:
- r is rotating the image clockwise;
- R is rotating the image counter clockwise;
- Freed "F" keycode to other purposes (like filters or others).
2018-04-06 11:52:10 +01:00
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
Ian Gilman
075a37ce8c Now supporting square edge tiles with padding 2018-03-21 14:07:00 -07:00
Rob Hicks
d59e237dda more doc tweaks 2017-10-25 14:55:28 -06:00
Rob Hicks
12e1869f99 add clarifications to api docs for TiledImage 2017-10-25 14:51:17 -06:00
Peter
44b108f00e changed conditional if to else in draw function 2017-10-05 14:44:56 -04:00
Peter
f64388b038 Solves issue #1318 : transparent tiledImages get _needsDraw = false in the draw function. 2017-10-04 16:11:08 -04:00
Ian Gilman
a49bbbcb06 Addressing seams that appear in wrap mode on Safari and Firefox 2017-09-08 14:03:40 -07:00
Mutlu Koesem
8a4ef0cc2e Fix placeholderFillStyle on tiledImage has no effect 2017-08-09 11:39:17 +02:00
Ian Gilman
ca4550d76e Doc comment fixes 2017-07-18 16:22:26 -07:00
Ian Gilman
d2c58c43aa Removed Boolean constructor from pre-load patch 2017-07-13 16:56:09 -07:00
Ian Gilman
e8971b2940 Merge branch 'master' of https://github.com/thejohnhoffer/openseadragon into thejohnhoffer-master 2017-07-13 16:53:43 -07:00
Ian Gilman
6600aca3e4 Removing debug code 2017-07-11 13:41:40 -07:00
Ian Gilman
2419a0111a Merge branch 'master' into ig-loading 2017-07-06 10:06:07 -07:00
Sean Nichols
e4393cc4dc Use TileSource.getClosestLevel to set TileCache release cutoff 2017-06-06 15:30:14 -04:00
Ian Gilman
8d782e1003 Merge branch 'master' into ig-loading 2017-05-31 10:00:46 -07:00
Sean Nichols
1fb25f3e41 Add documentation for opacity-change and composite-operation-change
- Add early exit to setOpacity/setCompositeOperation when new value is
   the same as current
2017-05-30 14:52:45 -04:00
John Hoffer
1ae3a9b961 Merge branch 'master' into master 2017-05-30 12:58:05 -04:00
thejohnhoffer
7a4fda37b5 setPreload correctly treats both Primatives and Objects as Boolean Primatives 2017-05-30 12:00:43 -05:00
Sean Nichols
035f35a26a Synchronize opacity and composite operation of TiledImages in navigator 2017-05-25 12:26:30 -04:00
Ian Gilman
326e7f3e36 Merge branch 'master' into ig-loading 2017-05-22 10:19:57 -07:00
Ian Gilman
283b2974dd Debugging code 2017-05-18 11:19:06 -07:00
Ian Gilman
1a60238c61 Improved best first level calculation 2017-05-16 13:49:59 -07:00
Ian Gilman
03e43998eb Fixed problem with subsequent zooms not loading tiles 2017-05-15 10:51:17 -07:00
Ian Gilman
300ebbfe82 Tracking tile loading separately from tile drawing 2017-05-11 11:49:18 -07:00
Sean Nichols
b909caaf45 Add some tests for AJAX tile loading 2017-05-08 11:14:26 -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
63a8a2ffa6 Allow tiled image rotation outside the 0 to 360 range 2017-01-21 20:13:32 +01:00
Antoine Vandecreme
fc69c6568d Animate rotation 2017-01-21 19:40:21 +01:00
Antoine Vandecreme
de25b68b43 Add eslint and hound 2017-01-16 21:41:07 +01:00
Antoine Vandecreme
a23a709fb1 Disable tile edge smoothing when only one tile is drawn. Fix #956 2017-01-07 19:56:37 +01:00
Ryan Lester
b4d0104206 Comments for some private functions in TiledImage. 2016-11-13 23:03:43 -05:00
Ian Gilman
ec46f85024 Merge pull request #1066 from avandecreme/wrapping
Remove reliance on getTileAtPoint for wrapping
2016-11-07 13:38:58 -08:00
thejohnhoffer
3eee34a0f2 count tiledImage._tilesLoading 2016-11-04 17:37:48 -04:00
thejohnhoffer
cf5825d1fa better underscores in preload term handling 2016-11-04 10:03:41 -04:00
thejohnhoffer
2915ee09c5 correct logic for call to _updateViewport 2016-11-04 09:26:34 -04:00
thejohnhoffer
9548ad6a27 using the strict === comparison 2016-11-04 09:24:08 -04:00
thejohnhoffer
171591a7a3 new opacity flag 2016-11-04 09:21:04 -04:00
thejohnhoffer
c402a7bfdd underscores to preload 2016-11-04 09:11:46 -04:00
thejohnhoffer
0a44585457 documentation of opacity and preload relations 2016-11-03 22:39:00 -04:00
thejohnhoffer
3fc1948a44 setting booleans the shortest way 2016-11-03 17:12:44 -04:00
thejohnhoffer
1baf086e1b setting booleans the easy way 2016-11-03 17:11:22 -04:00
thejohnhoffer
bac2cab8e9 document tiledImage.preload 2016-11-02 20:45:33 -04:00
Antoine Vandecreme
10dd723637 Remove reliance on getTileAtPoint for wrapping 2016-11-01 21:43:50 +01:00
Edminsson
04eafa9275 Edge smoothing and IE8 #1063 2016-10-31 09:25:13 +01:00
Ian Gilman
eb8b9ccd50 Merge pull request #1006 from avandecreme/master
Tiled image rotation
2016-10-26 09:58:12 -07:00
Antoine Vandecreme
4b48717010 Rollback sketchCanvas scaling when tiled image rotated 2016-10-25 21:41:42 +02:00