Craig A. Berry
bff93af17e
Handle XML embedded in tilesource JSON
...
The existing check for whether the tilesource data is XML or JSON
looks for a tag anywhere in the response content, which incorrectly
flags the content as XML in the case where it is really JSON with
XML embedded in it.
This commit corrects that problem by requiring the tag to occur as
the first non-whitespace part of the content. This is basically a
poor person's well-formedness check since well-formed XML cannot
have non-whitespace content outside of the root node.
N.B. While malformed XML content with non-whitespace characters
before the first element has been getting identified as XML, it
has not been getting parsed correctly. With current parsing
infrastructure, the content has been getting replaced by a parsing
error message. With more up-to-date parsing infrastructure, it
will throw an error. Either way we're not losing anything by failing
to identify malformed XML as XML.
Addresses issue #2325 .
2023-03-30 16:38:35 -05:00
Ian Gilman
c93df98363
JSDoc fixes
2022-12-16 14:14:40 -08:00
John Reagan
601160e9fb
Add support for dynamic urls from tile source. Fixes #1970
2022-11-30 15:38:57 -05:00
Shyamkumar Yadav
5baa8d3252
docs: change @return
-> @returns
2022-10-10 01:12:18 +05:30
Aiosa
61c77a3440
Fix hash tile generation by checking the validity of URL input parameter and fallback to level, x, y variables.
2022-08-21 10:09:36 +02:00
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
Ian Gilman
334e8fbc67
Merge pull request #2142 from Aiosa/master
...
Delegate error printing to the ajax caller.
2022-04-15 14:12:39 -07:00
Jirka
ec430779f4
Move open-failed error message to the handler, adjust test for the new message style. Add 'numberOfHandlers()' method for events.
2022-04-15 10:32:08 +02:00
Jirka
3a84b9369b
Clarify documentation on cache-key creation.
2022-04-13 10:47:48 +02:00
Jirka
ee2404afe3
Update Tile.prototype.getTileHashKey() documentation. Provide deprecation warning for cacheKey property - now it must be passed through Tile constructor.
2022-04-07 14:48:26 +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
68126a82dc
Update docs on POST data to reflect more accurately the behaviour.
...
Fix bug & implement propositions ~ issue #2094 .
2022-03-23 10:22:13 +01:00
Ian Gilman
51e3ea7fa0
Changelog for #2072 and minor comment style change
2022-01-21 11:57:14 -08:00
Jirka
63ecaafa51
Update documentation to be more explicit about post data string parameter format.
2022-01-20 18:03:08 +01:00
Jirka
bd6ec09458
Remove warning because loadTilesWithAjax
flag is not passed to the TileSource
2022-01-13 10:05:37 +01:00
Jirka
e236ff0ea8
Forgot one 'allowPost' rename
2022-01-12 22:37:59 +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
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
Sanghoon Kim
7686812336
Fix maxLevel typo
2021-12-01 10:01:18 +09:00
Sanghoon Kim
24d5d98548
Add the description of setMaxLevel
2021-11-30 13:23:30 +09:00
Sanghoon Kim
f8c97143e8
Modify the TileSource constructor and _memoizeLevelScale
2021-11-30 11:40:06 +09:00
Sanghoon Kim
de39597c14
Add setMaxLevel to initialize getLevelScale memoization
2021-11-23 16:58:00 +09:00
Sanghoon Kim
91793ce752
Revert "Merge pull request #2059 from kim-sanghoon/fix/getLevelScale"
...
This reverts commit 1454ac791a0a2d538a58678374b7829f7c3f1fbb, reversing
changes made to fcca75c57e9707be8a552bb824c8b6f5f899ee75.
2021-11-23 16:22:41 +09:00
Sanghoon Kim
63a4f87716
Fix getLevelScale to use image dimensions
2021-11-09 21:56:01 +09:00
ronnymikalsen
47802c0bd7
refactor: use pixelDensityRatio in getPixelRatio()
2021-03-26 12:08:50 +01:00
Mark Salsbery
f20b7e738c
Stricter linting fixes part 1
2020-06-30 10:25:38 -07:00
Mark Salsbery
c4351f64e8
stricter linting
2020-06-25 16:01:14 -07:00
Stefan Weil
3227a152eb
Add missing space between sentences in error message
...
This fixes an issue reported by LGTM:
This string appears to be missing a space after 'deprecated.'.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-10-28 22:02:45 +01:00
Stefan Weil
0e2f5d49ef
Fix some typos in comments (found by codespell)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-09-01 10:59:20 +02:00
Ian Gilman
24be785bbd
Updated to latest packages (and fixed lint errors)
2018-05-11 10:53:16 -07: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
Ian Gilman
b63c77fdb9
Merge pull request #1370 from avandecreme/tile_at_point
...
Fix getTileAtPoint epsilon precision
2018-04-16 09:44:25 -07: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
075a37ce8c
Now supporting square edge tiles with padding
2018-03-21 14:07:00 -07:00
Antoine Vandecreme
517e1feae8
Fix getTileAtPoint epsilon precision
...
Fix #1362
2017-12-24 10:57:57 +01:00
Antoine Vandecreme
cd4c4d38ed
Fix getTileAtPoint floating point computation error
2017-08-06 15:00:50 +02:00
Ian Gilman
fd502dbdab
Changelog for #1241
2017-07-11 11:53:41 -07:00
Robert Saric
57103a5dd4
fix for #1209 (Reference strip using "thumbs") additional changes
2017-07-10 20:19:13 +02:00
Ian Gilman
82b1b3e599
getClosestLevel refinement
2017-05-19 11:12:01 -07:00
Ian Gilman
1a60238c61
Improved best first level calculation
2017-05-16 13:49:59 -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
Sean Nichols
6fdf81f266
Ignore falsy header values and improve ajaxHeaders documentation
2017-05-05 15:37:33 -04:00