Closed oleksandr-danylchenko closed 1 month ago
PR looks good. There's one tiny issue: timestamps are optional in the data model, so this would currently crash the sorting.
That's trivial to resolve though. Another issue: I realized that underneath the hood, Annotorious doesn't yet revive timestamps when loading Annotations from JSON. The W3C adapter does. But if you use Annotorious without adapter, you'll be dealing with strings as created
, updated
values. So this needs fixing first. Creating an issue here:
https://github.com/annotorious/annotorious/issues/440
With the recent updates, this should now work as intended.
With the recent updates, this should now work as intended.
Thanks, it works great now ✅
Issue
When working with the
SPANS
renderer I noticed that the newer annotations can appear below the older ones in a seemingly random way. That has already been observed in theCANVAS
renderer in https://github.com/recogito/text-annotator-js/issues/94 🔍Example
The bluish highlight was added last to the annotator and it should be rendered over the rest of the existing highlights. However, the application and overlapping order seems to be random from selection to selection:
Possible Solution
Add highlights sorting in the similar manner I did for the
CANVAS
renderer - https://github.com/recogito/text-annotator-js/pull/96