Commit Graph

3514 Commits

Author SHA1 Message Date
Ian Gilman
cd0a4aee16 Changelog for #1441 2018-06-07 09:50:52 -07:00
Ian Gilman
e01e36794d
Merge pull request #1441 from nelsonn3c/feature/flip
Adds flip/mirror slides feature.
2018-06-07 09:48:59 -07:00
Nelson Campos
0023ae9801 Put flip tests out from the original tests in their own test cases 2018-06-07 11:41:45 +01:00
Peter
532b0b95af Merge branch 'master' of https://github.com/openseadragon/openseadragon 2018-06-06 15:19:12 -04:00
Ian Gilman
8f0711e26e Changelog #1470 2018-06-06 11:51:18 -07:00
Nelson Campos
6a2cd1ff84 Adds some more tests 2018-06-06 17:56:37 +01:00
Nelson Campos
3615ad412f Adds some more tests and tries to solve some code bugs.
A new variance parameter was added to assertPointsEquals function.

Variance value was set on loopingTestHelper function (1e-15).

The following tests were modified to execute tests on flipped viewport:
* 'panBy'
* 'panTo'
* 'zoomBy with ref point'
2018-06-06 17:03:40 +01:00
Ian Gilman
c3b9293036
Merge pull request #1470 from Dvidan/bug/overlap_transparent
Transparent image overlap when using Overlap=0 in dzi
2018-06-04 16:01:57 -07:00
Torbjörn Kvist
bbe34e0816 Remove offset for transparent tile. 2018-06-04 11:16:23 +02:00
Peter
e2d2215374 Merge branch 'master' of https://github.com/openseadragon/openseadragon 2018-06-01 08:51:10 -04:00
Torbjörn Kvist
f509f43472 Change offset of clearRect. 2018-05-18 07:42:24 +02:00
Ian Gilman
541c7c5fe5
Merge pull request #1466 from openseadragon/update
Updated to latest packages (and fixed lint errors)
2018-05-15 10:10:28 -07:00
Ian Gilman
ee1ed31d8c Security audit 2018-05-14 11:59:20 -07:00
Ian Gilman
24be785bbd Updated to latest packages (and fixed lint errors) 2018-05-11 10:53:16 -07:00
Peter
4ca7a94daa Merge branch 'master' of https://github.com/openseadragon/openseadragon 2018-04-29 13:34:49 -04:00
Ian Gilman
ceb828dd06
Merge pull request #1429 from openseadragon/ig-square
Fixed issue with square tile code on IE
2018-04-25 09:35:11 -07:00
Nelson Campos
a31587df2f Adds tests about flip methods 2018-04-17 16:23:21 +01:00
Nelson Campos
43d3949dd1 Refactored 90 degrees rotation button's actions. 2018-04-17 11:19:15 +01:00
Peter
576d0eb317 Merge branch 'master' of https://github.com/openseadragon/openseadragon 2018-04-16 19:10:05 -04:00
Ian Gilman
26ec933d7d Changelog for #1370 2018-04-16 09:47:15 -07:00
Ian Gilman
b63c77fdb9
Merge pull request #1370 from avandecreme/tile_at_point
Fix getTileAtPoint epsilon precision
2018-04-16 09:44:25 -07:00
Nelson Campos
ec0f55098a Simplifies viewport setFlip function. 2018-04-13 17:51:43 +01:00
Nelson Campos
c2fd5322e2 Code cleaning and function calls reorganization 2018-04-12 18:24:11 +01:00
Nelson Campos
b7badc7d32 Documentation comments fix 2018-04-12 10:39:37 +01:00
Nelson Campos
194d1c0606 Documentation comments 2018-04-12 10:36:34 +01:00
Nelson Campos
84dc60632c code simplification and impro^Cments on toggleFlip function 2018-04-11 18:24:01 +01:00
Nelson Campos
b8a4f7e7a0 Reorganizes code to match standard calls of viewport object methods.
A new viewport function was created (toggleFlip()) to change viewport's flip state and demand new viewers drawing.

The onFlip function exists on openseadragon to handle flip control button press and demand viewport toggle flip.
2018-04-11 11:25:46 +01:00
Nelson Campos
6e2c1258df Comments on functions 2018-04-10 12:04:58 +01:00
Nelson Campos
7e5c9e1897 Changes flip store object from viewer to viewport.
More than changing the store object of flip state, the code was simplified and the onFlip function from openseadragon was changed to receive a viewer argument.
TiledImage had a flipped variable wrongly stored.

From now on, flipped state must be read from the viewport object.
2018-04-10 11:51:06 +01:00
Nelson Campos
7c7d714839 Changes back default state values 2018-04-09 15:09:29 +01:00
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
Ian Gilman
4b36e27875 Added demo/temp folder to gitignore 2018-04-04 10:13:37 -07: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
02a397638c Fixed test errors 2018-04-02 11:09:23 -07:00
Ian Gilman
7ba516b30a Fixed issue with square tile code on IE 2018-03-27 09:48:18 -07:00
Ian Gilman
e5355abafe Changelog for #1426 2018-03-23 09:22:45 -07:00
Ian Gilman
49fe216447
Merge pull request #1426 from openseadragon/ig-square
Now supporting square edge tiles that are padded rather than cropped
2018-03-23 09:20:15 -07:00
Ian Gilman
075a37ce8c Now supporting square edge tiles with padding 2018-03-21 14:07:00 -07:00
Peter
00f9acf5e4 Merge remote-tracking branch 'refs/remotes/openseadragon/master' 2018-03-20 06:58:12 -04:00
Ian Gilman
dccd038f6c Changelog for #1423 2018-03-19 10:21:19 -07:00
Ian Gilman
053332e282
Merge pull request #1423 from jetic83/master
Added optional zoom in the middle of the image instead of pointer position.
2018-03-19 10:19:27 -07: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
schueffp@mskcc.org
251ab23cc0 Merge remote-tracking branch 'refs/remotes/openseadragon/master' 2018-03-16 08:37:23 +01:00
Francesco Cretti
57654cf1cf raise event for navigator click 2018-03-11 13:24:29 +01:00
Francesco Cretti
12be95c8c3 getCenter fixed when clicking on minimap 2018-03-11 13:05:19 +01:00
Ian Gilman
c915a5966f Changelog for #1414 plus documentation tweak 2018-03-07 09:28:20 -08:00
Ian Gilman
6c7fcb1063
Merge pull request #1414 from francescocretti/hotfix/keyboardPatch
keyboard handlers patch
2018-03-07 09:23:45 -08:00
Francesco Cretti
027dac0d8e navigato minimap onClick vertical/horizontal pan fix 2018-03-07 11:25:33 +01:00