Skip to content

v4.1.0

Compare
Choose a tag to compare
@iangilman iangilman released this 25 May 20:57
· 265 commits to master since this release
  • NEW BEHAVIOR: When navigatorRotate is false, while the navigator image doesn't rotate, the red outline now does (#2356 @lcl45)
  • The viewer no longer emits canvas-key events for both keydown and keypress events; canvas-key is now just for keydown, and the new canvas-key-press is for keypress (#2270 @hrghauri)
  • You can now specify a priority when calling addHandler, to control when your event handler gets called relative to others (#2273 @Aiosa)
  • Added tileRetryMax and tileRetryDelay options, so the viewer can retry loading failed tiles (#2238 @Ughuuu @paaddyy, #2334 @Ughuuu @Titan21)
  • All of the viewers keyboard handling is now in response to keydown events (it used to be split between keydown and keypress) (#2291 @MohitBansal321)
  • Added canvas-focus and canvas-blur events to Viewer (#2301 @MohitBansal321)
  • You can now more easily add custom buttons to the viewer (#2306 @MohitBansal321)
  • The fitBounds function now takes zoom constraints into account (#2293 @pearcetm)
  • The viewer now has an after-resize event what happens after the viewport bounds have been updated, to complement the resize event which happens before (#2317 @pearcetm)
  • IIIFTileSource now uses resolution level dimensions provided in the info.json "sizes" field for more accurate tile requests (#2337 @ruven)
  • Added setAjaxHeaders method to Viewer and TiledImage (#2346 @uschmidt83)
  • Improved documentation (#2297 @KevinBritten)
  • Fixed: The tile-loaded event's completionCallback could be called more than once in some circumstances (#2282 @Aiosa, @pearcetm)
  • Fixed: Navigator display rectangle was off if the page had box-sizing: border-box (#2276 @ambujsahu81)
  • Fixed: Code that required identifying functions would fail for async functions (#2273 @Aiosa)
  • Fixed: Reference strip click detection was not accurate for long reference strips (#2280 @damonsson)
  • Fixed: Translation problems in some circumstances with cropping polygons enabled (#2316 @pearcetm)
  • Fixed: The navigator area rectangle would grow larger when you zoom in very far (#2318 @donotloveshampo)
  • Fixed: JSON with embedded XML was being incorrectly identified as XML (#2328 @craigberry)
  • Fixed: Touch/pinch rotate was not working properly on some platforms (#2324 @rsimon, @pearcetm)
  • Fixed: Navigator rotation didn't honor immediately parameter (#2333 @robertjcolley)
  • Fixed: The navigator didn't update for its new size in certain circumstances (#2347 @pearcetm)