Skip to content

Commit

Permalink
Merge tag '1.3.0' into develop
Browse files Browse the repository at this point in the history
Line-level annotation grouping, etag/if-match
  • Loading branch information
blms committed Apr 24, 2024
2 parents 4202b2d + 50e4ca9 commit e7c23bc
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 156 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.3.0

### Features

- Support grouping and editing of line-level annotations using textGranularity
- Support ETag/If-Match headers to prevent mid-air collisions

## 1.2.0

Support for polygonal annotation.
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ const storageSettings = {
// (primary is "sc:supplementing"). If supplied, will also
// attempt to filter annotation endpoint on this motivation.
sourceUri, // Optional "dc:source" URI attribute for annotations
lineMode, // Boolean to enable "line mode", which allows grouping
// and editing of line-level annotations with the
// "textGranularity" property
};
const storagePlugin = AnnotationServerStorage(client, storageSettings);

Expand Down Expand Up @@ -88,6 +91,8 @@ This plugin exposes the following CSS classes that can be used to style its elem
- `.tahqiq-label-editor`: Editable `h3` elements for block labels
- `.tahqiq-body-display`: `div` element displaying the content of an annotation body
- `.tahqiq-body-editor`: `div` element containing the TinyMCE editor for editing an annotation body
- `.tahqiq-line-group`: `div` element grouping multiple line-level annotations
- `.tahqiq-line-group-label`: `h3` element labeling a group of multiple line-level annotations
- Buttons and inputs
- `.tahqiq-button`: All buttons (save, delete, cancel)
- `.tahqiq-save-button`: Save button
Expand Down
Loading

0 comments on commit e7c23bc

Please sign in to comment.