Add ink annotation type
This commit is contained in:
parent
4d1ff9e3c5
commit
7019544b48
2 changed files with 5 additions and 0 deletions
|
@ -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'],
|
||||
|
|
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue