Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
01431523
Commit
01431523
authored
Mar 09, 2022
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments explaining purpose of selector types
parent
08fd737c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
api.js
src/types/api.js
+11
-0
No files found.
src/types/api.js
View file @
01431523
...
...
@@ -22,6 +22,9 @@
*/
/**
* Selector which identifies a document region using the selected text plus
* the surrounding context.
*
* @typedef TextQuoteSelector
* @prop {'TextQuoteSelector'} type
* @prop {string} exact
...
...
@@ -30,6 +33,9 @@
*/
/**
* Selector which identifies a document region using UTF-16 character offsets
* in the document body's `textContent`.
*
* @typedef TextPositionSelector
* @prop {'TextPositionSelector'} type
* @prop {number} start
...
...
@@ -37,6 +43,8 @@
*/
/**
* Selector which identifies a document region using XPaths and character offsets.
*
* @typedef RangeSelector
* @prop {'RangeSelector'} type
* @prop {string} startContainer
...
...
@@ -46,6 +54,9 @@
*/
/**
* Serialized representation of a region of a document which an annotation
* pertains to.
*
* @typedef {TextQuoteSelector | TextPositionSelector | RangeSelector} Selector
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment