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
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
Ian Gilman
c915a5966f
Changelog for #1414 plus documentation tweak
2018-03-07 09:28:20 -08: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
Jan Hudecek
5ddcfa438e
Added option pixelsPerArrowPress that sets the speed of movement by arrow keys
2017-12-14 17:10:10 +01:00
Ian Gilman
854086a62f
Merge pull request #1330 from ncmikkelsen/master
...
Fix for #1085 - goToPage : event sent before updating the index
2017-10-30 09:17:42 -07:00
Nikolaj Mikkelsen
a7cc7bbfba
Refactor: move the documentation comment down with the event
2017-10-26 22:36:19 +02:00
Rob Hicks
2db5cfeebd
move TiledImage instance instructions to function description
2017-10-26 12:36:30 -06: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
Nikolaj Mikkelsen
1a6aac578b
Fix for #1085 - goToPage : event sent before updating the index
2017-10-24 16:14:20 +02:00
Oeystein Lygre
d1ea179296
manage preventDefaultAction flag in canvas-double-click viewer event
...
Trigger the canvas-double-click event before default double tap to zoom happens on the viewer
2017-08-22 23:11:12 +02:00
Ian Gilman
49ee98bbb0
Fixed a problem with preventDefaultAction for the canvas-drag event
2017-08-03 10:47:35 -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
Gehan Gonsalkorale
76f5a0ed33
Fix for #1232 - constrainDuringPan causes jitter on mobile
2017-07-11 22:39:01 +01:00
Jose
aabfa32595
Merge conflict resolved
2017-07-10 23:01:04 +02:00
Ian Gilman
f0a943281b
Changelog for #1213
2017-07-05 09:42:10 -07:00
Ian Gilman
818d445ec9
Merge pull request #1213 from VipSaran/master
...
fix for #1210 (Dinamically show ReferenceStrip)
2017-07-05 09:38:29 -07:00
Robert Saric
51cf6201cf
fix for #1210 (Dinamically show ReferenceStrip) yet additional changes
2017-07-01 09:57:36 +02:00
Robert Saric
ec7e5e5419
fix for #1210 (Dinamically show ReferenceStrip) additional changes
2017-06-24 17:58:19 +02:00
endevea
101a734aaf
process ready items always even if others fail
2017-06-22 13:43:34 +08:00
John Perdue
bfa0ac0137
Added setDebugMode function to Viewer.
...
Added SetDebugMode tests.
Update in respose to PR review.
2017-06-19 21:29:41 +01:00
Robert Saric
a783edc76f
fix for #1210 (Dinamically show ReferenceStrip)
2017-06-06 18:21:14 +02:00
Robert Saric
6f3b0a6d75
fix for #1165 (Reference strip not updated for initially set page)
2017-06-03 16:10:57 +02: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
Ian Gilman
29f973029f
Changelog for #1196 and doc tweaks
2017-05-15 10:13:34 -07:00
Ian Gilman
bf1b5fd793
Merge pull request #1196 from VipSaran/master
...
fix for #1191 (extension of Viewer.open() function with initialPage argument)
2017-05-15 10:07:58 -07:00
Robert Saric
bb68755699
fix for #1191 (extension of Viewer.open() function with initialPage argument)
2017-05-14 15:56:21 +02:00
Ian Gilman
dc70acec55
Merge pull request #1192 from UCLALibrary/timeout-configuration
...
Enable configuration of ImageJob timeout
2017-05-12 10:28:39 -07:00
Mark Allen Matney, Jr
77da306397
Enable configuration of ImageJob timeout
2017-05-11 21:36:27 -07:00
Ian Gilman
e55c5beb1c
Merge pull request #1189 from lastlegion/master
...
[FIX #1188 ] added fix for supporting weird filenames that look like JSONs
2017-05-11 10:01:07 -07:00
Ganesh Iyer
ce1360f5cb
using try/catch $.parseJSON to check for JSONs
2017-05-10 17:51:59 -04:00
Ganesh Iyer
2a251b219a
added fix for supporting weird filenames that look like JSONs
2017-05-09 14:55:23 -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
superbland
bb229c24d3
Only apply constraints during an actual drag
2017-04-24 22:47:40 +01:00
jonw-cogapp
ab6cdf102e
prevent unnecessary panBy on canvas-drag in viewer
2017-04-21 18:19:11 +01:00
Ian Gilman
2f7ebc2d67
Merge pull request #1149 from sickrandir/preventDefault-canvas-drag
...
Manage preventDefaultAction flag inside the canvas-drag viewer event
2017-04-21 09:51:24 -07:00
kinto
741745433d
manage preventDefaultAction flag inside the canvas-drag viewer event. Trigger the canvas-drag event before default drag happens on the viewer
2017-03-15 09:51:44 +01:00
kinto
bc5e235822
Add comment instructions for using preventDefaultAction parameter in canvas-click event
2017-03-14 19:23:07 +01:00
kinto
d5031835da
manage preventDefaultAction flag inside the canvas-click viewer event. Trigger the canvas-click event before default click zoom happens on the viewer
2017-03-14 16:08:52 +01:00
Jose
fba70355cd
In-iframe check added before resetting all active mousetrackers
2017-02-23 19:15:29 +01:00
Jose
70bdc8839e
Some issues solved
2017-02-20 20:23:25 +01:00
Jose
d5b62aabcd
Patch to fix issue #697 , also contains improvements when panning under certain constrains
2017-02-19 17:36:53 +01:00