Skip to content

Version 2.6.1

Choose a tag to compare

@rsimon rsimon released this 31 Dec 08:31
· 1048 commits to main since this release

Behavior/feature additions

  • New API method .getImageSnippetById(annotationId) that returns
    • a DOM Canvas element with the given annotation's image snippet
    • a coordinate transform function that translates X/Y coordinates in the snippet coordinate space back to the coordinate space of the full image
  • New formatters init config parameter that allows setting a single formatter function as well as an array of formatters. The old formatter option is still available, but deprecated! (#159)
  • New formatters instance field that allows dynamic adding/removing of formatter functions (#159)

Bugfixes

  • Fixed a bug that caused formatter elements (e.g. labels added through the ShapeLabels plugin to be scaled down from their desired size when the image is resized
  • Fixed a regression bug that broke getSelectedImageSnippet
  • Calling .addAnnotation no longer breaks the current active selection, if any
  • Improved handling of lazy-loaded images, including support for lazy-loading annotations that use percent-encoded Fragment Selectors.