Commit Graph

2587 Commits

Author SHA1 Message Date
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
Francesco Cretti
44ca4a79b8 trailing spaces removed 2018-03-07 11:07:29 +01:00
Francesco Cretti
34f691df28 Event name and documentation 2018-03-07 10:32:31 +01:00
Francesco Cretti
2b878cbdbf keyboard handlers patch 2018-03-06 15:51:22 +01:00
Ian Gilman
784f470744 Changelog for #1401 2018-02-26 13:37:08 -08:00
Ian Gilman
23ec3284b9
Merge pull request #1401 from hyperknot/master
Fixed IIIF options.maxLevel calculation
2018-02-26 11:59:18 -08:00
Zsolt Ero
59f15508b9 removed old files from test 2018-02-16 21:17:52 +01:00
Zsolt Ero
d44e907910 added tests for scaleFactors [1] 2018-02-16 21:14:28 +01:00
Zsolt Ero
8e06e5eb39 fixed IIIF options.maxLevel 2018-02-16 21:09:56 +01:00
Ian Gilman
01408a4744
Merge pull request #1374 from nein09/bug-1331
Bug 1331
2018-01-23 09:23:46 -08:00
nein09
3a0e01479f Call equalsWithVariance correctly 2018-01-19 14:39:17 -08:00
nein09
fd81da2f7d Adjust timeout downward 2018-01-19 14:38:56 -08:00
nein09
c53bd18290 Revert timeout changes 2018-01-18 10:45:56 -08:00
nein09
ac013513a2 Comment out failing tests (opened a bug) 2018-01-04 08:35:40 -08:00
nein09
aaec7c9526 Implement code coverage without grunt-qunit-istanbul 2018-01-02 08:32:45 -08:00
nein09
80e8065e2f More work on navigator tests 2018-01-02 08:32:45 -08:00
nein09
b8a28ce838 Navigator tests 2018-01-02 08:32:45 -08:00
nein09
6f789e7e88 Everything but the navigator tests 2018-01-02 08:32:45 -08:00
nein09
b096e369d0 Controls and viewport 2018-01-02 08:32:45 -08:00
nein09
52a275808f Multi-image and overlays tests 2018-01-02 08:32:45 -08:00
nein09
76669f8a65 Update units 2018-01-02 08:32:45 -08:00
nein09
9f39f7bf03 Convert events tests 2018-01-02 08:32:45 -08:00
nein09
b4b1ec8825 Make timeWatcher args make more sense, add utils tests 2018-01-02 08:32:45 -08:00
nein09
73be93b995 Formats tests 2018-01-02 08:32:45 -08:00
nein09
c29715cbe8 Update QUnit syntax in strings tests 2018-01-02 08:32:45 -08:00
nein09
2af7db43a4 Update test helpers, basic tests, and polyfill tests 2018-01-02 08:32:45 -08:00
nein09
bfb00656cc Fix up QUnit syntax for ajax-tiles 2018-01-02 08:32:45 -08:00