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.
* origin/master: (249 commits)
Fixed test issues
Changelog for #837
Changelog for #1004
Use control anchor configuration for custom toolbar also
changelog for #999
Fix tests on Firefox.
Make tileSources option smarter about detecting when a json string or xml string has been passed in
Updated with improved API
Changelog for #987
[-] remove ref to getTileAtPoint - becasue this are subclass of TileSource
[=] fix for image source type image and in legacytilesource
[=] Dropped useless calculations
[=] Wrap fix for #555
Changelog for #981
Passed options.crossOriginPolicy into getTileSource. Also changed checks on crossOriginPolicy to compare to undefined, and added tests for the addTiledImage crossOriginPolicy api.
Changelog for #984
Add support for commonjs.
Added an option to addTiledImage to change the crossOriginPolicy. addTiledImage will also check the tileSource for crossOriginPolicy.
Changelog for #967
Moved setting of withCredentials to after the request is opened to fix IE 10 bug.
...
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.
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.