Commit Graph

1322 Commits

Author SHA1 Message Date
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
Ian Gilman
525232c873 Merge pull request #1104 from dieend/navigator_constrainDuringPan
Navigator can pan outside boundary
2017-01-16 11:45:59 -08:00
Ian Gilman
855bfbe168 Merge pull request #1102 from avandecreme/sketch_canvas_size
Fix sketch canvas not resizing properly. Fix #973
2017-01-16 11:04:07 -08:00
Ian Gilman
86783a50b9 Merge pull request #1101 from avandecreme/optimize_tile_smoothing
Disable tile edge smoothing when only one tile is drawn. Fix #956
2017-01-16 10:57:31 -08:00
Adinata Thayib
4eb3864639 Fix navigator doesn't get constrained although viewer have constrainDuringPan options on 2017-01-11 20:11:43 -08:00
Antoine Vandecreme
43bd0e972f Fix sketch canvas not resizing properly. Fix #973 2017-01-08 11:13:32 +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
leesei
286ba36bf3 fix param for update()
Changes to be committed:
	modified:   src/overlay.js
2017-01-06 11:30:09 +08:00
Ian Gilman
6a3b2d52c5 Merge pull request #1074 from altert/smallfix
See #832, further fix for dzitilesource guessing of tilesUrl, for iii…
2016-12-22 09:59:09 -08:00
Ryan Lester
b4d0104206 Comments for some private functions in TiledImage. 2016-11-13 23:03:43 -05:00
Sean Nichols
e2c43d64db Fix incorrect call to getTileWidth and getTileHeight in getTileAtPoint 2016-11-08 16:20:12 -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
Alexey Tikhonov
870bb2a99a See #832, further fix for dzitilesource guessing of tilesUrl, for iiipserver configurations like /iiipsrv?DeepZoom=/path/my.dzi 2016-11-07 11:42:37 +03:00
Antoine Vandecreme
6370a6bafa Fix tests 2016-11-05 16:41:09 +01:00
thejohnhoffer
3eee34a0f2 count tiledImage._tilesLoading 2016-11-04 17:37:48 -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
Antoine Vandecreme
5ac1502ccd Take pixelDensityRatio into account when rotating 2016-10-24 22:03:31 +02:00
Antoine Vandecreme
b992d54572 Fix jshint error 2016-10-24 21:34:29 +02:00
Ian Gilman
73bea928c5 Merge pull request #1056 from awagner-mainz/awagner-mainz-no_prior_filetype_check
Update legacytilesource.js
2016-10-24 10:07:51 -07:00
Antoine Vandecreme
a9b60057ea Fix wrapping. 2016-10-23 22:25:16 +02:00
Antoine Vandecreme
77310b0229 Remove TODO 2016-10-23 18:25:14 +02:00
Antoine Vandecreme
5bfccec7a3 Disable tile edge smoothing with tiled image rotation 2016-10-23 17:45:39 +02:00
Ian Gilman
6878bc8771 Merge pull request #1041 from zakharov-aa/master
IE8 fix for tileSources type: 'image'
2016-10-21 09:34:56 -07:00
Andreas Wagner
e50beb435b Update legacytilesource.js
Remove check for filetype based on uri or mimetype strings (maybe the filetype is not known before actually downloading the resource).
2016-10-20 11:32:13 +02:00
Ian Gilman
5c538c0967 Merge pull request #1035 from adgoncal/patch-2
Fix IndexSizeError on IE and Edge #1033
2016-10-10 17:07:18 -07:00
Antoine Vandecreme
cca6b47fc0 Fix TileSource.getTileAtPoint 2016-10-09 14:05:22 +02:00
Antoine Vandecreme
2821c8f67b Partialy fix edge smoothing. 2016-10-06 22:18:32 +02:00
zakharov-aa
ffa4bbc8df IE8 naturalWidth and naturalHeight more clear fix 2016-09-28 10:39:20 +03:00
zakharov-aa
c5ad9b25bf IE8 fix for tileSources type: 'image' 2016-09-28 09:40:28 +03:00
A
e38c53ff31 Use canvas instead of sketchCanvas 2016-09-23 16:19:08 -04:00
A
c24e8ceedf Fix IndexSizeError on IE and Edge #1033
Internet Explorer and Microsoft Edge throw IndexSizeError when you call context.drawImage with negative x or y or width or height greater than the canvas width or height respectively.
2016-09-23 15:57:35 -04:00
Ryan Lester
861f4bdcd1 Comment fixes 2016-09-22 23:01:33 -04:00
Ryan Lester
0d4e17b627 Use the squared distance when comparing tiles.
This drops a Math.sqrt calculation from every tile iterated over while
drawing, improving performance.
2016-09-05 19:09:44 -04:00
Ian Gilman
52fd82d4be Changelog and tweak for #995 2016-09-01 10:02:42 -07:00
Ian Gilman
bde239d389 Merge pull request #995 from chrishonselaar/patch-1
this.tileSize undefined in this scope
2016-09-01 09:56:09 -07:00
Ian Gilman
192c0e5c36 Changelog and tweak for #863 2016-08-29 10:45:28 -07:00
Ian Gilman
1f75fb8d0a Merge pull request #863 from foobarable/master
Added first version of zoomifytilesource.js
2016-08-29 10:42:32 -07:00
Antoine Vandecreme
62c96ebad7 Add clip-change event. 2016-08-28 14:39:14 +02:00
Antoine Vandecreme
33332bf774 Set rotation around center and fix typo. 2016-08-28 13:39:26 +02:00
Antoine Vandecreme
eaddc1c33b Merge branch 'master' of https://github.com/openseadragon/openseadragon 2016-08-28 12:14:49 +02:00
Antoine Vandecreme
2e3f57401f Fix tiles missing with rotation + rotate around center 2016-08-28 12:10:35 +02:00
Simon Green
198e5b3461 Fix #1013
tiledImage. _needsDraw flag was only being set to true once the tile had been loaded which effectively made the initial tile loading sequential
2016-08-25 13:44:12 -06:00
Antoine Vandecreme
f0cb707ff2 Improve code readability 2016-08-21 19:24:40 +02:00
Antoine Vandecreme
9e69462405 Merge branch 'master' of https://github.com/openseadragon/openseadragon 2016-08-21 13:16:38 +02:00
Antoine Vandecreme
a9f5e7ec73 Add unit test and fix code review comments. 2016-08-21 12:54:33 +02:00
Antoine Vandecreme
65b59c08d6 First draft of tiled image rotation. 2016-08-17 15:43:08 +02:00
Ian Gilman
e7da167c4e Merge pull request #837 from openseadragon/loaded
Added "fully-loaded" event to TiledImage
2016-08-16 09:44:46 -07:00
Sebastian Öberg
77726a684f Use control anchor configuration for custom toolbar also 2016-08-15 13:54:10 +02:00
Rick Burgstaler
dde379ba12 Make tileSources option smarter about detecting when a json string or xml string has been passed in
The tileSources option was only using a test looking for the presence of a "{", "[", or "<" character to determine if a json string or xml string was passed in.  It is possible for a url to contain one of these characters as well which would break using the url as a tileSources parameter.  The following is an example of a breaking url:
http://myurl.org/{25fb14f0-a839-4c4d-8c97-dd1d67b2cb35}/MyImage.xml

This patch resolves this issue.
2016-08-10 14:30:10 -05:00
Ian Gilman
23b955c6b4 Updated with improved API 2016-08-10 10:35:08 -07:00
Ian Gilman
03b2a86a9d Merge branch 'master' into loaded 2016-08-10 09:49:59 -07:00
Chris Honselaar
0b28b5f152 this.tileSize undefined in this scope 2016-08-04 16:02:48 +02:00
Ralph Krimmel
0d9e2e8b96 Adding a comment describing the format 2016-08-01 09:39:54 +02:00
VoidVolker
41c82c88a9 [-] remove ref to getTileAtPoint - becasue this are subclass of TileSource 2016-07-29 20:45:57 +03:00
VoidVolker
eb799bdc70 [=] fix for image source type image and in legacytilesource 2016-07-29 20:36:05 +03:00
VoidVolker
ecebc3305f [=] Dropped useless calculations 2016-07-29 12:41:25 +03:00
VoidVolker
2bcc1aa0f4 [=] Wrap fix for #555
1. Fix for horizontal and vertical wrap. Problem was in
`getTileAtPoint`: it was working only for points inside viewer - thanks
to @avandecreme for finding this.
2. Was small bug in not rendering top row and left column - after scroll
there are empty space and need some time for rendering.
2016-07-29 01:33:48 +03:00
Ian Gilman
469341094d Merge pull request #981 from LarissaSmith/master
Added an option to addTiledImage to change the crossOriginPolicy.
2016-07-28 10:15:25 -07:00
Larissa Smith
4ccabe78de Passed options.crossOriginPolicy into getTileSource. Also changed checks on crossOriginPolicy to compare to undefined, and added tests for the addTiledImage crossOriginPolicy api. 2016-07-28 09:35:43 -06:00
Artem Kozlov
9ef153ca53 Add support for commonjs. 2016-07-25 20:35:49 +02:00
Larissa Smith
1e0ddcedc1 Added an option to addTiledImage to change the crossOriginPolicy. addTiledImage will also check the tileSource for crossOriginPolicy. 2016-07-21 10:26:02 -06: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
Ralph Krimmel
7bf79eac77 Merge branch 'master' of https://github.com/openseadragon/openseadragon 2016-06-17 08:26:34 +02:00
Victor Rodriguez Gil
36264c44ef simplified constraint code 2016-06-14 17:31:21 +00:00
Victor Rodriguez Gil
c91039b545 Code that fixes #890, new test passes. Events.js test needed fixing with good value, unrelated to actual test. 2016-06-13 23:07:17 +00:00
A
033b650c29 Fix #946
Fix for https://github.com/openseadragon/openseadragon/issues/946
2016-05-26 13:24:03 -04:00
Ralph Krimmel
96a4de7b87 Merge remote-tracking branch 'upstream/master' 2016-05-24 08:59:28 +02:00
Ian Gilman
bd743d688a Merge pull request #939 from avandecreme/perf
Avoid loading clipped out tiles. Fix #889.
2016-05-19 09:46:33 -07:00
Antoine Vandecreme
8951ac3f5b Fix fitBounds with extreme zoom values. 2016-05-17 14:27:28 -04:00
Ian Gilman
436ff0d086 Merge pull request #930 from dlukez/master
Handle simultaneous touch events
2016-05-17 10:44:46 -07:00
Ian Gilman
ebf7cbf918 Merge pull request #940 from avandecreme/fullpage
Enforce html element width and height to 100% when going full page.
2016-05-17 09:51:08 -07:00
Antoine Vandecreme
32f993f862 Enforce html element width and height to 100% when going full page. 2016-05-16 13:08:17 -04:00
Ian Gilman
ea32e1b090 Merge pull request #935 from leesei/master
feat(navigator): add option autoFade
2016-05-16 09:40:23 -07:00
Daniel Zimmermann
c25bf0a239 Correctly handle touch PointerEvents
`onPointerDown/Up` may call `capture/releasePointer`
with `"touch"` as the pointerType, which would result
in a bug as `touchCount` would be `undefined`.

`capture/releasePointer` should just default to a
count of `1` if not specified. This properly retains
the existing behaviour for non-TouchEvent handling.
2016-05-16 06:26:52 +10:00
Daniel Zimmermann
a4dbae0754 Handle simultaneous touch events
Found and tested on an iPhone 5s w/ iOS 9.2.
Not sure about other devices.

Fixes #877
2016-05-16 06:26:52 +10:00
Antoine Vandecreme
b11edddf68 Fix jshint. 2016-05-13 15:35:33 -04:00
Antoine Vandecreme
352bfbc3a5 Avoid loading clipped out tiles. Fix #889. 2016-05-13 15:18:37 -04:00
Ian Gilman
c5fc9a6922 Merge pull request #934 from avandecreme/fitBounds
Take rotation into account in viewport getBounds and fitBounds methods
2016-05-13 11:21:40 -07:00
Antoine Vandecreme
1014d5767c Fix resize handling. 2016-05-12 19:23:09 -04:00
Antoine Vandecreme
14069a64e1 Fix applyConstraints with rotation. 2016-05-12 18:47:35 -04:00
Antoine Vandecreme
07d66ce655 Restore applyConstraints to avoid panning when clicking at max zoom. 2016-05-12 18:01:18 -04:00
Antoine Vandecreme
e4c29d649b Remove code duplication in Viewport.applyConstraints. 2016-05-10 18:49:55 -04:00
leesei
7ea8733e5b feat(navigator): add option autoFade 2016-05-07 17:16:59 +08:00
Antoine Vandecreme
521e020b9a Viewport getBounds and fitBounds methods now take rotation into account. Fix #924 2016-05-04 22:26:33 -04:00
Antoine Vandecreme
cac7052bf8 Take pixelDensityRatio into account. 2016-04-28 11:26:09 -04:00
Antoine Vandecreme
684029bc79 Optimize sketch canvas clearing and blending. 2016-04-27 11:08:44 -04:00
Ian Gilman
66ffa03132 Merge pull request #923 from avandecreme/fitbounds
Fix Viewport.update with zoomPoint.
2016-04-22 11:10:34 -07:00
Ian Gilman
5785d10cbb Merge pull request #910 from avandecreme/home-clip
Fix home bounds with clipping. Fix #891
2016-04-22 11:01:05 -07:00
Antoine Vandecreme
79977b09a0 Fix Viewport.update with zoomPoint. 2016-04-21 16:06:07 -04:00
Antoine Vandecreme
65a95d4a49 Add asserts on this.viewer. 2016-04-21 10:57:39 -04:00
Antoine Vandecreme
f8de9b33b0 Fix getScaleForEdgeSmoothing with image tile source. 2016-04-21 10:31:49 -04:00
Antoine Vandecreme
3775a877e2 Remove trailing spaces. 2016-04-21 10:02:02 -04:00
Antoine Vandecreme
b1a0abd104 Add this.viewer test. 2016-04-19 18:13:12 -04:00
Ian Gilman
766e2b0e1f Merge pull request #902 from avandecreme/dead-code
Remove dead code.
2016-04-15 16:55:57 -07:00