From 7019544b483525ce93cdbca1519ed646b93039ae Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 26 Aug 2021 01:21:08 -0400 Subject: [PATCH] Add ink annotation type --- chrome/content/zotero/xpcom/annotations.js | 1 + chrome/content/zotero/xpcom/data/items.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/chrome/content/zotero/xpcom/annotations.js b/chrome/content/zotero/xpcom/annotations.js index ee27952576..2ce739932e 100644 --- a/chrome/content/zotero/xpcom/annotations.js +++ b/chrome/content/zotero/xpcom/annotations.js @@ -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'], diff --git a/chrome/content/zotero/xpcom/data/items.js b/chrome/content/zotero/xpcom/data/items.js index 05749b0f89..c4e4a0cd69 100644 --- a/chrome/content/zotero/xpcom/data/items.js +++ b/chrome/content/zotero/xpcom/data/items.js @@ -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}`); }