Add ink annotation type

This commit is contained in:
Dan Stillman 2021-08-26 01:21:08 -04:00 committed by Martynas Bagdonas
parent 4d1ff9e3c5
commit 7019544b48
2 changed files with 5 additions and 0 deletions

View file

@ -30,6 +30,7 @@ Zotero.Annotations = new function () {
Zotero.defineProperty(this, 'ANNOTATION_TYPE_HIGHLIGHT', { value: 1 });
Zotero.defineProperty(this, 'ANNOTATION_TYPE_NOTE', { value: 2 });
Zotero.defineProperty(this, 'ANNOTATION_TYPE_IMAGE', { value: 3 });
Zotero.defineProperty(this, 'ANNOTATION_TYPE_INK', { value: 4 });
Zotero.defineProperty(this, 'PROPS', {
value: ['type', 'text', 'comment', 'color', 'pageLabel', 'sortIndex', 'position'],

View file

@ -529,6 +529,10 @@ Zotero.Items = function() {
type = 'image';
break;
case Zotero.Annotations.ANNOTATION_TYPE_INK:
type = 'ink';
break;
default:
throw new Error(`Unknown annotation type id ${typeID}`);
}