Releases: annotorious/annotorious-openseadragon
Releases · annotorious/annotorious-openseadragon
Version 2.1.3
- Support for formatter functions
- Editable shapes
Version 2.1.2
- Proper handling of multi-line comments in the Comment Widget
- Added
createSelection
event - Localized text labels for time expressions ("2 minutes ago"), when using
authInfo
- Added missing Spanish labels for 'Edit' and 'Delete'
- Turkish UI translation
- Fixes a bug that caused mis-placed editor popup for polygons
Version 2.1.1
- Image ID is now automatically inserted into the annotation target for IIIF images
- Dim mask now also available for the polygon drawing tool
- Czech UI translation
- Tag widget: fixed broken autosuggest behavior
- Editor plugins: config params are now properly forwarded to plugin args
Version 2.1.0
This is a minor version upgrade which introduces a number of backwards compatible bugfixes and additions, but also includes some minimal changes to how Annotorious is configured.
Important: CSS styles are no longer embedded in the JavaScript file, but now have to be imported separately:
<link rel="annotorious.min.css" href="styles.css">
Important: editor widgets are becoming more flexible. This release is the first to include beta support for a plugin API.
As a consequence, this version introduces a minimal change to how the tag widget is configured with a controlled vocabulary.
// Previously
var anno = Annotorious.init({
image: 'hallstatt',
tagVocabulary: ['Animal', 'Building', 'Vegetation', 'Waterbody']
});
// From this version onwards
var anno = Annotorious.init({
image: 'hallstatt',
widgets: [
'COMMENT',
{ widget: 'TAG', vocabulary: ['Animal', 'Building', 'Vegetation', 'Waterbody'] }
]
});
Further additions include:
- Editor behavior
- Comment text element & tag input element now extend to the full size of the parent, resolving the issue that
clicking inside the widget sometimes didn't focus - Comment field now gets focus automatically after popup opens
- Comment text element & tag input element now extend to the full size of the parent, resolving the issue that
- Tag widget
- Style bugfixes for IE11
- When adding a tag, it's no longer required to press Enter to save it
- Comment widget
- The comment widget now has an additional
editable
config option so you can switch (separately from the global setting) between
editable (editable: true
), not editable (editable: false
) and editable, but don't allow editing other users' contributions
(editable: 'MINE_ONLY
).
- The comment widget now has an additional
- Rectangle selection
- There is now an SVG mask element you can use to dim the area outside the selection while drawing
- General
- Added support for server-generated annotation IDs, using the same API as in RecogitoJS
Environment
is no longer a global object, meaning that it is now safe to use multiple Recogito/Annotorious instances on the same page- All CSS classes are now properly prefixed to avoid clashes with other styles on the page (either with
a9s
for Annotorious-specific elements orr6o
for elements imported from Recogito core) - Imports are now pulled from
@recogito/annotorious/src
for easier development
Version 2.0.8
- IE11 compatibility fixes
- Bugfixes concerning the behavior of the tag autosuggest component
- Bugfixes concerning drawing behavior
- Security updates on various dependencies
Version 2.0.7
- Adds
setDrawingEnabled
API method.
Version 2.0.6
- Beta support for rendering any SVG shape contained in W3C Web Annotations
- Beta support for polygon drawing
- Various bugfixes
- Portuguese UI translation
- Tag widget: controlled vocabulary autosuggest
- Reduced build size by ~150kB
Version 2.0.5
Bugfix release which makes the OpenSeadragon plugin importable via NPM.
npm install --save @recogito/annotorious-openseadragon
import OpenSeadragon from 'openseadragon';
import * as Annotorious from '@recogito/annotorious-openseadragon';
const viewer = OpenSeadragon({
id: "openseadragon",
tileSources: {
type: "image",
url: "1280px-Hallstatt.jpg"
}
});
const anno = Annotorious(viewer, { locale: 'auto' });
Version 2.0.2
Maintenance release that fixes broken NPM import.
Version 2.0.1
- Bugfixes
readonly
display mode- API additions:
selectAnnotation
methodpanTo
andfitBounds
methoddestroy
methodmouseEnterAnnotation
andmouseLeaveAnnotation
events
- Added support for internationalization
- Ability to handle user information for UI display and when creating/updating annotations
- Ability to add
created
andmodified
timestamps, with an option for the host application to sync with the server time