aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-04-17 18:02:23 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-04-17 18:02:23 -0400
commit5fdd55e5e293835f6902b0f3c2cbcb054dc27747 (patch)
tree1414c8725f35b986f5f3132bebc0cf521153d8e7 /src/new_fields
parent0736662068dbeb02a8a9dda84bc0ac523650d8c6 (diff)
added more annotation ability to web pages. need a mode switch to follow links/select text now.
Diffstat (limited to 'src/new_fields')
-rw-r--r--src/new_fields/documentSchemas.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/new_fields/documentSchemas.ts b/src/new_fields/documentSchemas.ts
index bc63e9df8..61b185e5c 100644
--- a/src/new_fields/documentSchemas.ts
+++ b/src/new_fields/documentSchemas.ts
@@ -57,6 +57,8 @@ export const documentSchema = createSchema({
isLinkButton: "boolean", // whether document functions as a link follow button to follow the first link on the document when clicked
ignoreClick: "boolean", // whether documents ignores input clicks (but does not ignore manipulation and other events)
scrollToLinkID: "string", // id of link being traversed. allows this doc to scroll/highlight/etc its link anchor. scrollToLinkID should be set to undefined by this doc after it sets up its scroll,etc.
+ scrollY: "number", // "command" to scroll a document to a position on load (the value will be reset to 0 after that )
+ scrollTop: "number", // scroll position of a scrollable document (pdf, text, web)
strokeWidth: "number",
fontSize: "string",
fitToBox: "boolean", // whether freeform view contents should be zoomed/panned to fill the area of the document view