Shyamkumar Yadav
5baa8d3252
docs: change @return
-> @returns
2022-10-10 01:12:18 +05:30
Ian Gilman
d3ef767487
Merge pull request #2136 from jonasengelmann/master
...
Viewport rotation animation
2022-08-23 14:13:22 -07:00
altert
5829a9e892
fix closure for croppingPolygons in drawTile
2022-07-26 13:12:48 +05:30
Aiosa
bb1755613e
Merge branch 'master' of https://github.com/openseadragon/openseadragon into openseadragon-master
...
# Conflicts:
# src/tiledimage.js
2022-06-28 14:11:02 +02:00
Jirka
7b759558b1
Add tile reference to imagejob options.
2022-06-07 14:53:18 +02:00
Jirka
8a2c998cb9
Finish on image job now accepts request argument. Further comments cleanup. Deprecation message for image property in tile loaded event. Removal of downloadTileFinish(). More robust aborting that cleans up an image properties when aborted (not done until now).
2022-05-04 15:16:13 +02:00
Jirka
d82fd35323
Fix comments on #2148 : part 2. Better commens on the new TileSource API. Deprecation if 'tile-loaded' image event parameter. Unwrap ImageJob and add userData property.
2022-04-29 23:45:01 +02:00
Jirka
45a7a4aaf3
Fix comments on #2148 : hasTransparency as a property. Move '.image' tile property to be a getter instead. Rename 'ImageJob' data property from 'image' to 'data'. Repair comments related to #2148 .
2022-04-29 18:41:43 +02:00
Jirka
4f79f29238
Move cache creation, image downloading process and transparency deduction to the TileSource instance to allow custom data fetching, caching, processing.
2022-04-16 21:19:54 +02:00
Aiosa
29d16bd535
Merge branch 'openseadragon:master' into cache-key
2022-04-02 15:23:37 +02:00
jonasengelmann
eca51850e2
Merge branch 'master' of https://github.com/openseadragon/openseadragon
2022-04-01 11:14:55 +02:00
Jirka
38e91f1fa5
Change coverage methods on TiledImage to be member methods.
2022-03-30 13:27:23 +02:00
jonasengelmann
8519e30a3a
added viewport rotation animation
2022-03-29 16:50:18 +02:00
Jirka
2750100d24
Move cache-key generation to TileSource: user might need to override default behaviour in case of non-unique URL's (post data used).
2022-03-29 09:30:25 +02:00
Jirka
7f784835a7
Revert 'spacing change' for licence disclaimer (TiledImage), fix tests on drag-end event no longer firing when mouse does not move (PR #2064 )
2022-03-25 12:30:18 +01:00
Jirka
20594e5a51
Stupid typo, added 'static' methods to a wrong class...
2022-03-23 14:25:36 +01:00
Jirka
aa0119be45
Rewrite TiledImage closure functions to be private class members. Fix tests that expect error message to appear in 'log' instead of 'error'.
2022-03-23 14:05:58 +01:00
Ronny Valentin Vindenes
34fd856b4f
fix: avoid crash when setting useCanvas to false
2022-02-22 12:31:32 +01:00
Jirka
aacae1ca3f
Reverted .json configuration changes made by npm. Added tests for PUSH functionality, new flag 'allowPost' to explicitly enable POST data, remove (-1) in the URL splitting.
2022-01-12 22:31:13 +01:00
Aiosa
745a788d84
Merge branch 'openseadragon:master' into master
2022-01-06 10:56:43 +01:00
Ian Gilman
fab395dc02
Merge pull request #2075 from TanukiSharp/master
...
Extends the fix for seams in transparent images to any browsers
2021-12-23 11:43:11 -08:00
Sebastien ROBERT
12939d5bb9
Removed the animation state and isSubPixelRoundingRule* functions (except isSubPixelRoundingRuleUnknown), changed timing when animating is set to false
2021-12-23 12:15:09 +09:00
Sebastien ROBERT
458a16ce1f
Introduced animation state and testing it to determine rendering when at rest
2021-12-22 15:44:32 +09:00
Sebastien ROBERT
3fa67c317b
Moved _shouldRoundPositionAndSize Drawer class member to drawTile() function argument
2021-12-22 14:16:11 +09:00
Sebastien ROBERT
2aebdbd066
Renamed subPixelRounding to subPixelRoundingForTransparency, changed fallback to '*', introduced SUBPIXEL_ROUNDING_OCCURRENCES numbers, added support for simple mode
2021-12-22 14:16:11 +09:00
Sebastien ROBERT
e5b608d86a
Extends the fix for seams in transparent images to any browsers, making it configurable
2021-12-13 14:20:11 +09:00
Abhishek-90
200bd607d8
Changed Console.log in SRC
2021-12-10 19:12:14 +05:30
Aiosa
3782ea2284
Merge branch 'openseadragon:master' into master
2021-12-08 09:59:05 +01:00
Aiosa
a11b5ce602
Support for POST data in the ajax requests.
2021-12-08 09:54:14 +01:00
superbland
446382f5a1
Use correct method for imageToWindowCoordinates
2021-11-04 19:43:59 +00:00
superbland
92bcfa5416
Rename method, update logic
2021-11-04 19:35:46 +00:00
superbland
11ef3fcfbb
Add utility method for getting relative size
2021-10-09 16:25:53 +01:00
Alistair Buxton
e6725871b8
Make setFlip() update the navigator
...
Makes setFlip() raise a bounds change, and makes the navigator copy
the image flip in addition to the other properties, when receiving
the bounds signal.
2021-03-26 11:18:21 +00:00
Alistair Buxton
409620fa38
Tidy up the tile/image flip check
...
Don't need double negation and brackets here.
2021-03-23 02:26:06 +00:00
Alistair Buxton
7552806a47
Force reload tiles when the tile's flip doesn't match the image
...
Flipping an image changes the bounds of each tile. The existing
code assumes that cannot happen. getTile() calculates the tile
bounds the first time it is asked for a particular tile. It then
caches and returns the same time on every subsequent call.
getTile() has a check to test if a tile exists in the cache. If
it does not, the tile is created and inserted. In order to make
tiles be rebuilt after a flip, we only need to check if the tile's
flip matches the image's flip. If not, we can recreate the tile
as if it did not exist.
To make this a bit clearer, the tile's flipped flag is now set
in getTile() rather than positionTile().
This makes setFlip() work.
2021-03-22 06:45:26 +00:00
Alistair Buxton
3161808a9d
Add a basic setFlip method to TiledImage
...
This doesn't fully work - even raising a bounds-change doesn't seem
to be enough.
2021-03-19 17:16:25 +00:00
Alistair Buxton
b2b95e8556
Correctly set the rightmost tile property when flipped
...
This ensures that seams are not visible in Firefox and Safari when
the image is wrapped horizontally and also flipped.
2021-03-19 14:49:07 +00:00
Alistair Buxton
3c57063632
Render the flipped columns in reverse order
...
This completes the per-image flip implementation. Tile bounds are
re-positioned within the image. When rendering, the x ordinals are
remapped to the flipped ones.
To use, set "flipped" on the image instead of the viewer. The code
is compatible with rotations and wrapping.
Implements #1553
2021-03-19 14:49:07 +00:00
Alistair Buxton
afa8c2d1bd
Store the flipped state in each tile and render it as such
...
This will flip each individual tile on a per image bases. However
the tiles are now drawn in the wrong locations. Clipping etc works.
this is implemented for Canvas and HTML renderers.
2021-03-19 14:49:07 +00:00
Alistair Buxton
4b13cf32fd
Introduce getTileBounds method for tiledImage
...
This wraps the implementation in tileSource but provides support for
wrapping. It does not support getting the source bounds.
Using this function instead of the tileSource version allows the
viewport clipping optimization to work with wrapping.
2021-03-19 14:49:07 +00:00
Mark Salsbery
c4351f64e8
stricter linting
2020-06-25 16:01:14 -07:00
Kenan Christian Dimas
c20f95ba94
small doc fix
2020-05-12 23:37:37 +07:00
Takuma Kira
9998edb255
Move TileSource.destroy to the right place.
2020-04-17 14:29:19 +09:00
Ian Gilman
4c64042bac
JSDoc fixes
2020-03-05 10:29:08 -08:00
Jasper Staab
0c2c506d88
apply pixelDensityRatio after flip
2020-02-19 18:35:23 -10:00
YSH
4627d59609
Update tiledimage.js
2020-02-13 14:49:14 -08:00
zero41120
3ec9b66bc9
1540 Use OSD defined isArray
2020-02-11 11:34:53 -08:00
YSH
d8651bd268
1540 Update documentation with correct terminology
2020-02-11 11:30:37 -08:00
zero41120
ff70878bb9
1540 Update documentation for setCroppingPolygons
2020-02-10 16:19:09 -08:00
zero41120
9d0c7bd9c9
1540 Remove support for array for cropping
2020-02-10 16:16:19 -08:00