Skip to content

Version 2.5.8

Compare
Choose a tag to compare
@rsimon rsimon released this 24 Oct 08:02
· 165 commits to main since this release

Architecture

This version introduces a new rendering implementation that supports more annotations. Previous versions became sluggish
after adding about 300 annotations. The new implementation should be good up to around 3.000.

Editor

  • Cosmetic fixes to draggable surfaces: move cursor no longer shows on non-draggable surfaces + no more move cursor when editor is configured to fixed (=non-detachable) mode (#85)
  • Cosmetic tweaks to editor auto-position behavior to avoid the jump when dragging the editor from the upwards-oriented position.
  • When the editor is configured as draggable, text comment fields are no longer drag surfaces. This way, it's possible to select (and copy) text from comment fields
  • Comment widget: the purpose selection dropdown is no longer obscured by tags

Bugfixes

  • Fixed a bug that caused an error when calling selectAnnotation in headless mode (#95)

Widget API

  • Breaking change! onRemoveAndAppend was dropped in favour of the more flexible onBatchModify. To upgrade, replace code like this:
const bodiesToRemove = [...];
const bodiesToAppend = [...];

const saveImmediately = true;

props.onRemoveAndAppend(bodiesToRemove, bodiesToAppend, saveImmediately);

with the following:

const changes = [
  { 'action': 'remove', body: bodyToRemove },
  { 'action': 'remove', body: anotherBodyToRemove },
  { 'action': 'append', body: bodyToAppend }
]);

props.onBatchModify(changes);

Other

  • Replaced deprecated @babel/polyfill (#86)