You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by bi...@apache.org on 2023/10/01 20:23:47 UTC
[incubator-annotator-website] branch asf-site updated: Republish website (update `content/`)
This is an automated email from the ASF dual-hosted git repository.
bigbluehat pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-annotator-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 22890d5 Republish website (update `content/`)
22890d5 is described below
commit 22890d54ec12e945a03d30412843d9d1efe63339
Author: BigBlueHat <by...@bigbluehat.com>
AuthorDate: Sun Oct 1 16:22:53 2023 -0400
Republish website (update `content/`)
Symlinks and bash on Windows do not work as they should...
...alas.
---
content/docs/api/index.html | 201 +++++-
content/docs/api/interfaces/selector.chunk.html | 351 +++++++++-
content/docs/api/interfaces/selector.chunker.html | 416 ++++++++++-
.../docs/api/interfaces/selector.chunkrange.html | 340 ++++++++-
.../docs/api/interfaces/selector.cssselector.html | 332 ++++++++-
.../selector.describetextquoteoptions.html | 329 ++++++++-
content/docs/api/interfaces/selector.matcher.html | 305 +++++++-
.../api/interfaces/selector.rangeselector.html | 343 ++++++++-
.../docs/api/interfaces/selector.selector-1.html | 318 ++++++++-
.../interfaces/selector.textpositionselector.html | 343 ++++++++-
.../api/interfaces/selector.textquoteselector.html | 354 +++++++++-
content/docs/api/modules/dom.html | 777 ++++++++++++++++++++-
content/docs/api/modules/selector.html | 716 ++++++++++++++++++-
13 files changed, 5112 insertions(+), 13 deletions(-)
diff --git a/content/docs/api/index.html b/content/docs/api/index.html
index 4c5a7fc..3d6e836 100644
--- a/content/docs/api/index.html
+++ b/content/docs/api/index.html
@@ -1 +1,200 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="assets/js/search.js" id="search-script"></script>
+ <script defer src="assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="assets/js/search.json" data-base=".">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <h1>apache-annotator</h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel-group tsd-index-group">
+ <h2>Index</h2>
+ <section class="tsd-panel tsd-index-panel">
+ <div class="tsd-index-content">
+ <section class="tsd-index-section ">
+ <h3>Modules</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-module"><a href="modules/dom.html" class="tsd-kind-icon">dom</a></li>
+ <li class="tsd-kind-module"><a href="modules/selector.html" class="tsd-kind-icon">selector</a></li>
+ </ul>
+ </section>
+ </div>
+ </section>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class="current ">
+ <a href="index.html">Exports</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="modules/dom.html">dom</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="modules/selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/api/interfaces/selector.chunk.html b/content/docs/api/interfaces/selector.chunk.html
index 4c5a7fc..3690997 100644
--- a/content/docs/api/interfaces/selector.chunk.html
+++ b/content/docs/api/interfaces/selector.chunk.html
@@ -1 +1,350 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="../assets/js/search.js" id="search-script"></script>
+ <script defer src="../assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <ul class="tsd-breadcrumb">
+ <li>
+ <a href="../index.html">apache-annotator</a>
+ </li>
+ <li>
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ <li>
+ <a href="selector.chunk.html">Chunk</a>
+ </li>
+ </ul>
+ <h1>Interface Chunk<TData></h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel tsd-comment">
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Represents a piece of text in any kind of ‘file’.</p>
+ </div>
+ <p>Its purpose is to enable generic algorithms to deal with text content of any
+ type of ‘file’ that consists of many pieces of text (e.g. a DOM, PDF, …).
+ Each Chunk represents one piece of text (<a href="selector.chunk.html#data">Chunk.data</a>). An object
+ implementing this interface would typically have other attributes as well to
+ map the chunk back to its position in the file (e.g. a Text node in the DOM).</p>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-type-parameters">
+ <h3>Type parameters</h3>
+ <ul class="tsd-type-parameters">
+ <li>
+ <h4>TData</h4>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Piece of text, typically <code>string</code></p>
+ </div>
+ </div>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-hierarchy">
+ <h3>Hierarchy</h3>
+ <ul class="tsd-hierarchy">
+ <li>
+ <span class="target">Chunk</span>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel-group tsd-index-group">
+ <h2>Index</h2>
+ <section class="tsd-panel tsd-index-panel">
+ <div class="tsd-index-content">
+ <section class="tsd-index-section ">
+ <h3>Properties</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.chunk.html#data" class="tsd-kind-icon">data</a></li>
+ </ul>
+ </section>
+ <section class="tsd-index-section ">
+ <h3>Methods</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-method tsd-parent-kind-interface"><a href="selector.chunk.html#equals" class="tsd-kind-icon">equals</a></li>
+ </ul>
+ </section>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Properties</h2>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="data" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> data</h3>
+ <div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">TData</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>The piece of text this chunk represents.</p>
+ </div>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Methods</h2>
+ <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
+ <a name="equals" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagOptional">Optional</span> equals</h3>
+ <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
+ <li class="tsd-signature tsd-kind-icon">equals<span class="tsd-signature-symbol">(</span>otherChunk<span class="tsd-signature-symbol">: </span><a href="selector.chunk.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunk</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TData</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>otherChunk: <a href="selector.chunk.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunk</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TData</span><span class="tsd-signature-symbol">></span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
+ </li>
+ </ul>
+ </section>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class=" ">
+ <a href="../index.html">Exports</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="../modules/dom.html">dom</a>
+ </li>
+ <li class="current tsd-kind-module">
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ </ul>
+ <ul class="current">
+ <li class="current tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunk.html" class="tsd-kind-icon">Chunk</a>
+ <ul>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.chunk.html#data" class="tsd-kind-icon">data</a>
+ </li>
+ <li class=" tsd-kind-method tsd-parent-kind-interface">
+ <a href="selector.chunk.html#equals" class="tsd-kind-icon">equals</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="after-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunkrange.html" class="tsd-kind-icon">Chunk<wbr>Range</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunker.html" class="tsd-kind-icon">Chunker</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.cssselector.html" class="tsd-kind-icon">Css<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.describetextquoteoptions.html" class="tsd-kind-icon">Describe<wbr>Text<wbr>Quote<wbr>Options</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.matcher.html" class="tsd-kind-icon">Matcher</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.rangeselector.html" class="tsd-kind-icon">Range<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.selector-1.html" class="tsd-kind-icon">Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textpositionselector.html" class="tsd-kind-icon">Text<wbr>Position<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textquoteselector.html" class="tsd-kind-icon">Text<wbr>Quote<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkequals" class="tsd-kind-icon">chunk<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkrangeequals" class="tsd-kind-icon">chunk<wbr>Range<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#makerefinable" class="tsd-kind-icon">make<wbr>Refinable</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textpositionselectormatcher" class="tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textquoteselectormatcher" class="tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher</a>
+ </li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/api/interfaces/selector.chunker.html b/content/docs/api/interfaces/selector.chunker.html
index 4c5a7fc..ac65ac1 100644
--- a/content/docs/api/interfaces/selector.chunker.html
+++ b/content/docs/api/interfaces/selector.chunker.html
@@ -1 +1,415 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="../assets/js/search.js" id="search-script"></script>
+ <script defer src="../assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <ul class="tsd-breadcrumb">
+ <li>
+ <a href="../index.html">apache-annotator</a>
+ </li>
+ <li>
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ <li>
+ <a href="selector.chunker.html">Chunker</a>
+ </li>
+ </ul>
+ <h1>Interface Chunker<TChunk></h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel tsd-comment">
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Presents the pieces of text contained in some underlying ‘file’ as a sequence
+ of <a href="selector.chunk.html">Chunk</a>s.</p>
+ </div>
+ <p>Rather than presenting a list of all pieces, the <code>Chunker</code> provides methods
+ to walk through the file piece by piece. This permits implementations to read
+ and convert the file to <code>Chunk</code>s lazily.</p>
+ <p>For those familiar with the DOM APIs, it is similar to a NodeIterator (but
+ unlike NodeIterator, it has no concept of being ‘before’ or ‘after’ a chunk).</p>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-type-parameters">
+ <h3>Type parameters</h3>
+ <ul class="tsd-type-parameters">
+ <li>
+ <h4>TChunk<span class="tsd-signature-symbol">: </span><a href="selector.chunk.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunk</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>(sub)type of <code>Chunk</code> being used.</p>
+ </div>
+ </div>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-hierarchy">
+ <h3>Hierarchy</h3>
+ <ul class="tsd-hierarchy">
+ <li>
+ <span class="target">Chunker</span>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel-group tsd-index-group">
+ <h2>Index</h2>
+ <section class="tsd-panel tsd-index-panel">
+ <div class="tsd-index-content">
+ <section class="tsd-index-section ">
+ <h3>Properties</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.chunker.html#currentchunk" class="tsd-kind-icon">current<wbr>Chunk</a></li>
+ </ul>
+ </section>
+ <section class="tsd-index-section ">
+ <h3>Methods</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-method tsd-parent-kind-interface"><a href="selector.chunker.html#nextchunk" class="tsd-kind-icon">next<wbr>Chunk</a></li>
+ <li class="tsd-kind-method tsd-parent-kind-interface"><a href="selector.chunker.html#precedescurrentchunk" class="tsd-kind-icon">precedes<wbr>Current<wbr>Chunk</a></li>
+ <li class="tsd-kind-method tsd-parent-kind-interface"><a href="selector.chunker.html#previouschunk" class="tsd-kind-icon">previous<wbr>Chunk</a></li>
+ </ul>
+ </section>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Properties</h2>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="currentchunk" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> current<wbr>Chunk</h3>
+ <div class="tsd-signature tsd-kind-icon">current<wbr>Chunk<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">TChunk</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>The chunk currently being pointed at.</p>
+ </div>
+ <p>Initially, this should normally be the first chunk in the file.</p>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Methods</h2>
+ <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
+ <a name="nextchunk" class="tsd-anchor"></a>
+ <h3>next<wbr>Chunk</h3>
+ <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
+ <li class="tsd-signature tsd-kind-icon">next<wbr>Chunk<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">TChunk</span></li>
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Point <a href="selector.chunker.html#currentchunk">currentChunk</a> at the chunk following it, and return that chunk.
+ If there are no chunks following it, keep <code>currentChunk</code> unchanged and
+ return null.</p>
+ </div>
+ </div>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">TChunk</span></h4>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
+ <a name="precedescurrentchunk" class="tsd-anchor"></a>
+ <h3>precedes<wbr>Current<wbr>Chunk</h3>
+ <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
+ <li class="tsd-signature tsd-kind-icon">precedes<wbr>Current<wbr>Chunk<span class="tsd-signature-symbol">(</span>chunk<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Test if a given <code>chunk</code> is before the <a href="selector.chunker.html#currentchunk">current chunk</a>.</p>
+ </div>
+ <p>Returns true if <code>chunk</code> is before <code>this.currentChunk</code>, false otherwise
+ (i.e. if <code>chunk</code> follows it or is the current chunk).</p>
+ <p>The given <code>chunk</code> need not necessarily be obtained from the same <code>Chunker</code>,
+ but the chunkers would need to represent the same file. Otherwise behaviour
+ is unspecified (an implementation might throw or just return <code>false</code>).</p>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>chunk: <span class="tsd-signature-type">TChunk</span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>A chunk, typically obtained from the same <code>Chunker</code>.</p>
+ </div>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
+ <a name="previouschunk" class="tsd-anchor"></a>
+ <h3>previous<wbr>Chunk</h3>
+ <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
+ <li class="tsd-signature tsd-kind-icon">previous<wbr>Chunk<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">TChunk</span></li>
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Point <a href="selector.chunker.html#currentchunk">currentChunk</a> at the chunk preceding it, and return that chunk.
+ If there are no chunks preceding it, keep <code>currentChunk</code> unchanged and
+ return null.</p>
+ </div>
+ </div>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">TChunk</span></h4>
+ </li>
+ </ul>
+ </section>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class=" ">
+ <a href="../index.html">Exports</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="../modules/dom.html">dom</a>
+ </li>
+ <li class="current tsd-kind-module">
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunk.html" class="tsd-kind-icon">Chunk</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunkrange.html" class="tsd-kind-icon">Chunk<wbr>Range</a>
+ </li>
+ </ul>
+ <ul class="current">
+ <li class="current tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunker.html" class="tsd-kind-icon">Chunker</a>
+ <ul>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.chunker.html#currentchunk" class="tsd-kind-icon">current<wbr>Chunk</a>
+ </li>
+ <li class=" tsd-kind-method tsd-parent-kind-interface">
+ <a href="selector.chunker.html#nextchunk" class="tsd-kind-icon">next<wbr>Chunk</a>
+ </li>
+ <li class=" tsd-kind-method tsd-parent-kind-interface">
+ <a href="selector.chunker.html#precedescurrentchunk" class="tsd-kind-icon">precedes<wbr>Current<wbr>Chunk</a>
+ </li>
+ <li class=" tsd-kind-method tsd-parent-kind-interface">
+ <a href="selector.chunker.html#previouschunk" class="tsd-kind-icon">previous<wbr>Chunk</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="after-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.cssselector.html" class="tsd-kind-icon">Css<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.describetextquoteoptions.html" class="tsd-kind-icon">Describe<wbr>Text<wbr>Quote<wbr>Options</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.matcher.html" class="tsd-kind-icon">Matcher</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.rangeselector.html" class="tsd-kind-icon">Range<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.selector-1.html" class="tsd-kind-icon">Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textpositionselector.html" class="tsd-kind-icon">Text<wbr>Position<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textquoteselector.html" class="tsd-kind-icon">Text<wbr>Quote<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkequals" class="tsd-kind-icon">chunk<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkrangeequals" class="tsd-kind-icon">chunk<wbr>Range<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#makerefinable" class="tsd-kind-icon">make<wbr>Refinable</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textpositionselectormatcher" class="tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textquoteselectormatcher" class="tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher</a>
+ </li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/api/interfaces/selector.chunkrange.html b/content/docs/api/interfaces/selector.chunkrange.html
index 4c5a7fc..df3f805 100644
--- a/content/docs/api/interfaces/selector.chunkrange.html
+++ b/content/docs/api/interfaces/selector.chunkrange.html
@@ -1 +1,339 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="../assets/js/search.js" id="search-script"></script>
+ <script defer src="../assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <ul class="tsd-breadcrumb">
+ <li>
+ <a href="../index.html">apache-annotator</a>
+ </li>
+ <li>
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ <li>
+ <a href="selector.chunkrange.html">ChunkRange</a>
+ </li>
+ </ul>
+ <h1>Interface ChunkRange<TChunk></h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel tsd-comment">
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Points at a range of characters between two points inside <a href="selector.chunk.html">Chunk</a>s.</p>
+ </div>
+ <p>Analogous to the DOM’s (<a href="https://developer.mozilla.org/en-US/docs/Web/API/AbstractRange" class="external">Abstract</a>)<a href="https://developer.mozilla.org/en-US/docs/Web/API/Range" class="external">Range</a>. Each index expresses an offset inside the value of the corresponding
+ <a href="selector.chunk.html#data">Chunk.data</a>, and can equal the length of that data in order to point
+ to the position right after the chunk’s last character.</p>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-type-parameters">
+ <h3>Type parameters</h3>
+ <ul class="tsd-type-parameters">
+ <li>
+ <h4>TChunk<span class="tsd-signature-symbol">: </span><a href="selector.chunk.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunk</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-hierarchy">
+ <h3>Hierarchy</h3>
+ <ul class="tsd-hierarchy">
+ <li>
+ <span class="target">ChunkRange</span>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel-group tsd-index-group">
+ <h2>Index</h2>
+ <section class="tsd-panel tsd-index-panel">
+ <div class="tsd-index-content">
+ <section class="tsd-index-section ">
+ <h3>Properties</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.chunkrange.html#endchunk" class="tsd-kind-icon">end<wbr>Chunk</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.chunkrange.html#endindex" class="tsd-kind-icon">end<wbr>Index</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.chunkrange.html#startchunk" class="tsd-kind-icon">start<wbr>Chunk</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.chunkrange.html#startindex" class="tsd-kind-icon">start<wbr>Index</a></li>
+ </ul>
+ </section>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Properties</h2>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="endchunk" class="tsd-anchor"></a>
+ <h3>end<wbr>Chunk</h3>
+ <div class="tsd-signature tsd-kind-icon">end<wbr>Chunk<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">TChunk</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="endindex" class="tsd-anchor"></a>
+ <h3>end<wbr>Index</h3>
+ <div class="tsd-signature tsd-kind-icon">end<wbr>Index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="startchunk" class="tsd-anchor"></a>
+ <h3>start<wbr>Chunk</h3>
+ <div class="tsd-signature tsd-kind-icon">start<wbr>Chunk<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">TChunk</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="startindex" class="tsd-anchor"></a>
+ <h3>start<wbr>Index</h3>
+ <div class="tsd-signature tsd-kind-icon">start<wbr>Index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class=" ">
+ <a href="../index.html">Exports</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="../modules/dom.html">dom</a>
+ </li>
+ <li class="current tsd-kind-module">
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunk.html" class="tsd-kind-icon">Chunk</a>
+ </li>
+ </ul>
+ <ul class="current">
+ <li class="current tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunkrange.html" class="tsd-kind-icon">Chunk<wbr>Range</a>
+ <ul>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.chunkrange.html#endchunk" class="tsd-kind-icon">end<wbr>Chunk</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.chunkrange.html#endindex" class="tsd-kind-icon">end<wbr>Index</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.chunkrange.html#startchunk" class="tsd-kind-icon">start<wbr>Chunk</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.chunkrange.html#startindex" class="tsd-kind-icon">start<wbr>Index</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="after-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunker.html" class="tsd-kind-icon">Chunker</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.cssselector.html" class="tsd-kind-icon">Css<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.describetextquoteoptions.html" class="tsd-kind-icon">Describe<wbr>Text<wbr>Quote<wbr>Options</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.matcher.html" class="tsd-kind-icon">Matcher</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.rangeselector.html" class="tsd-kind-icon">Range<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.selector-1.html" class="tsd-kind-icon">Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textpositionselector.html" class="tsd-kind-icon">Text<wbr>Position<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textquoteselector.html" class="tsd-kind-icon">Text<wbr>Quote<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkequals" class="tsd-kind-icon">chunk<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkrangeequals" class="tsd-kind-icon">chunk<wbr>Range<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#makerefinable" class="tsd-kind-icon">make<wbr>Refinable</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textpositionselectormatcher" class="tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textquoteselectormatcher" class="tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher</a>
+ </li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/api/interfaces/selector.cssselector.html b/content/docs/api/interfaces/selector.cssselector.html
index 4c5a7fc..ce3d216 100644
--- a/content/docs/api/interfaces/selector.cssselector.html
+++ b/content/docs/api/interfaces/selector.cssselector.html
@@ -1 +1,331 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="../assets/js/search.js" id="search-script"></script>
+ <script defer src="../assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <ul class="tsd-breadcrumb">
+ <li>
+ <a href="../index.html">apache-annotator</a>
+ </li>
+ <li>
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ <li>
+ <a href="selector.cssselector.html">CssSelector</a>
+ </li>
+ </ul>
+ <h1>Interface CssSelector</h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel tsd-comment">
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>The <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#css-selector" class="external">CssSelector</a> of the Web Annotation Data Model.</p>
+ </div>
+ <p>Corresponds to RDF class <a href="http://www.w3.org/ns/oa#CssSelector" class="external">http://www.w3.org/ns/oa#CssSelector</a></p>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-hierarchy">
+ <h3>Hierarchy</h3>
+ <ul class="tsd-hierarchy">
+ <li>
+ <a href="selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a>
+ <ul class="tsd-hierarchy">
+ <li>
+ <span class="target">CssSelector</span>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel-group tsd-index-group">
+ <h2>Index</h2>
+ <section class="tsd-panel tsd-index-panel">
+ <div class="tsd-index-content">
+ <section class="tsd-index-section ">
+ <h3>Properties</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="selector.cssselector.html#refinedby" class="tsd-kind-icon">refined<wbr>By</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.cssselector.html#type" class="tsd-kind-icon">type</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.cssselector.html#value" class="tsd-kind-icon">value</a></li>
+ </ul>
+ </section>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Properties</h2>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
+ <a name="refinedby" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagOptional">Optional</span> refined<wbr>By</h3>
+ <div class="tsd-signature tsd-kind-icon">refined<wbr>By<span class="tsd-signature-symbol">:</span> <a href="selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a></div>
+ <aside class="tsd-sources">
+ <p>Inherited from <a href="selector.selector-1.html">Selector</a>.<a href="selector.selector-1.html#refinedby">refinedBy</a></p>
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>A Selector can be refined by another Selector.</p>
+ </div>
+ <p>See <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#refinement-of-selection" class="external">§4.2.9 Refinement of Selection</a> in the Web Annotation Data Model.</p>
+ <p>Corresponds to RDF property <a href="http://www.w3.org/ns/oa#refinedBy" class="external">http://www.w3.org/ns/oa#refinedBy</a></p>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="type" class="tsd-anchor"></a>
+ <h3>type</h3>
+ <div class="tsd-signature tsd-kind-icon">type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"CssSelector"</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="value" class="tsd-anchor"></a>
+ <h3>value</h3>
+ <div class="tsd-signature tsd-kind-icon">value<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class=" ">
+ <a href="../index.html">Exports</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="../modules/dom.html">dom</a>
+ </li>
+ <li class="current tsd-kind-module">
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunk.html" class="tsd-kind-icon">Chunk</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunkrange.html" class="tsd-kind-icon">Chunk<wbr>Range</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunker.html" class="tsd-kind-icon">Chunker</a>
+ </li>
+ </ul>
+ <ul class="current">
+ <li class="current tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.cssselector.html" class="tsd-kind-icon">Css<wbr>Selector</a>
+ <ul>
+ <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
+ <a href="selector.cssselector.html#refinedby" class="tsd-kind-icon">refined<wbr>By</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.cssselector.html#type" class="tsd-kind-icon">type</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.cssselector.html#value" class="tsd-kind-icon">value</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="after-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.describetextquoteoptions.html" class="tsd-kind-icon">Describe<wbr>Text<wbr>Quote<wbr>Options</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.matcher.html" class="tsd-kind-icon">Matcher</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.rangeselector.html" class="tsd-kind-icon">Range<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.selector-1.html" class="tsd-kind-icon">Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textpositionselector.html" class="tsd-kind-icon">Text<wbr>Position<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textquoteselector.html" class="tsd-kind-icon">Text<wbr>Quote<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkequals" class="tsd-kind-icon">chunk<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkrangeequals" class="tsd-kind-icon">chunk<wbr>Range<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#makerefinable" class="tsd-kind-icon">make<wbr>Refinable</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textpositionselectormatcher" class="tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textquoteselectormatcher" class="tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher</a>
+ </li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/api/interfaces/selector.describetextquoteoptions.html b/content/docs/api/interfaces/selector.describetextquoteoptions.html
index 4c5a7fc..e539b83 100644
--- a/content/docs/api/interfaces/selector.describetextquoteoptions.html
+++ b/content/docs/api/interfaces/selector.describetextquoteoptions.html
@@ -1 +1,328 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="../assets/js/search.js" id="search-script"></script>
+ <script defer src="../assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <ul class="tsd-breadcrumb">
+ <li>
+ <a href="../index.html">apache-annotator</a>
+ </li>
+ <li>
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ <li>
+ <a href="selector.describetextquoteoptions.html">DescribeTextQuoteOptions</a>
+ </li>
+ </ul>
+ <h1>Interface DescribeTextQuoteOptions</h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel tsd-hierarchy">
+ <h3>Hierarchy</h3>
+ <ul class="tsd-hierarchy">
+ <li>
+ <span class="target">DescribeTextQuoteOptions</span>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel-group tsd-index-group">
+ <h2>Index</h2>
+ <section class="tsd-panel tsd-index-panel">
+ <div class="tsd-index-content">
+ <section class="tsd-index-section ">
+ <h3>Properties</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.describetextquoteoptions.html#maxwordlength" class="tsd-kind-icon">max<wbr>Word<wbr>Length</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.describetextquoteoptions.html#minimalcontext" class="tsd-kind-icon">minimal<wbr>Context</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.describetextquoteoptions.html#minimumquotelength" class="tsd-kind-icon">minimum<wbr>Quote<wbr>Length</a></li>
+ </ul>
+ </section>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Properties</h2>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="maxwordlength" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagOptional">Optional</span> max<wbr>Word<wbr>Length</h3>
+ <div class="tsd-signature tsd-kind-icon">max<wbr>Word<wbr>Length<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>When attempting to find a whitespace to make the prefix/suffix start/end
+ (resp.) at a word boundary, give up after this number of characters.</p>
+ </div>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="minimalcontext" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagOptional">Optional</span> minimal<wbr>Context</h3>
+ <div class="tsd-signature tsd-kind-icon">minimal<wbr>Context<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Keep prefix and suffix to the minimum that is necessary to disambiguate
+ the quote. Use only if robustness against text variations is not required.</p>
+ </div>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="minimumquotelength" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagOptional">Optional</span> minimum<wbr>Quote<wbr>Length</h3>
+ <div class="tsd-signature tsd-kind-icon">minimum<wbr>Quote<wbr>Length<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Add prefix and suffix to quotes below this length, such that the total of
+ <code>prefix + exact + suffix</code> is at least this length.</p>
+ </div>
+ </div>
+ </section>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class=" ">
+ <a href="../index.html">Exports</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="../modules/dom.html">dom</a>
+ </li>
+ <li class="current tsd-kind-module">
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunk.html" class="tsd-kind-icon">Chunk</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunkrange.html" class="tsd-kind-icon">Chunk<wbr>Range</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunker.html" class="tsd-kind-icon">Chunker</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.cssselector.html" class="tsd-kind-icon">Css<wbr>Selector</a>
+ </li>
+ </ul>
+ <ul class="current">
+ <li class="current tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.describetextquoteoptions.html" class="tsd-kind-icon">Describe<wbr>Text<wbr>Quote<wbr>Options</a>
+ <ul>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.describetextquoteoptions.html#maxwordlength" class="tsd-kind-icon">max<wbr>Word<wbr>Length</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.describetextquoteoptions.html#minimalcontext" class="tsd-kind-icon">minimal<wbr>Context</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.describetextquoteoptions.html#minimumquotelength" class="tsd-kind-icon">minimum<wbr>Quote<wbr>Length</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="after-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.matcher.html" class="tsd-kind-icon">Matcher</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.rangeselector.html" class="tsd-kind-icon">Range<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.selector-1.html" class="tsd-kind-icon">Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textpositionselector.html" class="tsd-kind-icon">Text<wbr>Position<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textquoteselector.html" class="tsd-kind-icon">Text<wbr>Quote<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkequals" class="tsd-kind-icon">chunk<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkrangeequals" class="tsd-kind-icon">chunk<wbr>Range<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#makerefinable" class="tsd-kind-icon">make<wbr>Refinable</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textpositionselectormatcher" class="tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textquoteselectormatcher" class="tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher</a>
+ </li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/api/interfaces/selector.matcher.html b/content/docs/api/interfaces/selector.matcher.html
index 4c5a7fc..4789746 100644
--- a/content/docs/api/interfaces/selector.matcher.html
+++ b/content/docs/api/interfaces/selector.matcher.html
@@ -1 +1,304 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="../assets/js/search.js" id="search-script"></script>
+ <script defer src="../assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <ul class="tsd-breadcrumb">
+ <li>
+ <a href="../index.html">apache-annotator</a>
+ </li>
+ <li>
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ <li>
+ <a href="selector.matcher.html">Matcher</a>
+ </li>
+ </ul>
+ <h1>Interface Matcher<TScope, TMatch></h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel tsd-comment">
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>A function that finds the match(es) in the given (sub)document (the ‘scope’)
+ corresponding to some (prespecified) selector(s).</p>
+ </div>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-type-parameters">
+ <h3>Type parameters</h3>
+ <ul class="tsd-type-parameters">
+ <li>
+ <h4>TScope</h4>
+ </li>
+ <li>
+ <h4>TMatch</h4>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-hierarchy">
+ <h3>Hierarchy</h3>
+ <ul class="tsd-hierarchy">
+ <li>
+ <span class="target">Matcher</span>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel">
+ <h3 class="tsd-before-signature">Callable</h3>
+ <ul class="tsd-signatures tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <li class="tsd-signature tsd-kind-icon">Matcher<span class="tsd-signature-symbol">(</span>scope<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TScope</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AsyncGenerator</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TMatch</span><span class="tsd-signature-symbol">, </span><span class="tsd-signatu [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>A function that finds the match(es) in the given (sub)document (the ‘scope’)
+ corresponding to some (prespecified) selector(s).</p>
+ </div>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>scope: <span class="tsd-signature-type">TScope</span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">AsyncGenerator</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TMatch</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
+ </li>
+ </ul>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class=" ">
+ <a href="../index.html">Exports</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="../modules/dom.html">dom</a>
+ </li>
+ <li class="current tsd-kind-module">
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunk.html" class="tsd-kind-icon">Chunk</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunkrange.html" class="tsd-kind-icon">Chunk<wbr>Range</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunker.html" class="tsd-kind-icon">Chunker</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.cssselector.html" class="tsd-kind-icon">Css<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.describetextquoteoptions.html" class="tsd-kind-icon">Describe<wbr>Text<wbr>Quote<wbr>Options</a>
+ </li>
+ </ul>
+ <ul class="current">
+ <li class="current tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.matcher.html" class="tsd-kind-icon">Matcher</a>
+ </li>
+ </ul>
+ <ul class="after-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.rangeselector.html" class="tsd-kind-icon">Range<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.selector-1.html" class="tsd-kind-icon">Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textpositionselector.html" class="tsd-kind-icon">Text<wbr>Position<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textquoteselector.html" class="tsd-kind-icon">Text<wbr>Quote<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkequals" class="tsd-kind-icon">chunk<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkrangeequals" class="tsd-kind-icon">chunk<wbr>Range<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#makerefinable" class="tsd-kind-icon">make<wbr>Refinable</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textpositionselectormatcher" class="tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textquoteselectormatcher" class="tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher</a>
+ </li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/api/interfaces/selector.rangeselector.html b/content/docs/api/interfaces/selector.rangeselector.html
index 4c5a7fc..52d4d32 100644
--- a/content/docs/api/interfaces/selector.rangeselector.html
+++ b/content/docs/api/interfaces/selector.rangeselector.html
@@ -1 +1,342 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="../assets/js/search.js" id="search-script"></script>
+ <script defer src="../assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <ul class="tsd-breadcrumb">
+ <li>
+ <a href="../index.html">apache-annotator</a>
+ </li>
+ <li>
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ <li>
+ <a href="selector.rangeselector.html">RangeSelector</a>
+ </li>
+ </ul>
+ <h1>Interface RangeSelector</h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel tsd-comment">
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>The <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#range-selector" class="external">RangeSelector</a> of the Web Annotation Data Model.</p>
+ </div>
+ <p>Corresponds to RDF class <a href="http://www.w3.org/ns/oa#RangeSelector" class="external">http://www.w3.org/ns/oa#RangeSelector</a></p>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-hierarchy">
+ <h3>Hierarchy</h3>
+ <ul class="tsd-hierarchy">
+ <li>
+ <a href="selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a>
+ <ul class="tsd-hierarchy">
+ <li>
+ <span class="target">RangeSelector</span>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel-group tsd-index-group">
+ <h2>Index</h2>
+ <section class="tsd-panel tsd-index-panel">
+ <div class="tsd-index-content">
+ <section class="tsd-index-section ">
+ <h3>Properties</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.rangeselector.html#endselector" class="tsd-kind-icon">end<wbr>Selector</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="selector.rangeselector.html#refinedby" class="tsd-kind-icon">refined<wbr>By</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.rangeselector.html#startselector" class="tsd-kind-icon">start<wbr>Selector</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.rangeselector.html#type" class="tsd-kind-icon">type</a></li>
+ </ul>
+ </section>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Properties</h2>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="endselector" class="tsd-anchor"></a>
+ <h3>end<wbr>Selector</h3>
+ <div class="tsd-signature tsd-kind-icon">end<wbr>Selector<span class="tsd-signature-symbol">:</span> <a href="selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
+ <a name="refinedby" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagOptional">Optional</span> refined<wbr>By</h3>
+ <div class="tsd-signature tsd-kind-icon">refined<wbr>By<span class="tsd-signature-symbol">:</span> <a href="selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a></div>
+ <aside class="tsd-sources">
+ <p>Inherited from <a href="selector.selector-1.html">Selector</a>.<a href="selector.selector-1.html#refinedby">refinedBy</a></p>
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>A Selector can be refined by another Selector.</p>
+ </div>
+ <p>See <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#refinement-of-selection" class="external">§4.2.9 Refinement of Selection</a> in the Web Annotation Data Model.</p>
+ <p>Corresponds to RDF property <a href="http://www.w3.org/ns/oa#refinedBy" class="external">http://www.w3.org/ns/oa#refinedBy</a></p>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="startselector" class="tsd-anchor"></a>
+ <h3>start<wbr>Selector</h3>
+ <div class="tsd-signature tsd-kind-icon">start<wbr>Selector<span class="tsd-signature-symbol">:</span> <a href="selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="type" class="tsd-anchor"></a>
+ <h3>type</h3>
+ <div class="tsd-signature tsd-kind-icon">type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"RangeSelector"</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class=" ">
+ <a href="../index.html">Exports</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="../modules/dom.html">dom</a>
+ </li>
+ <li class="current tsd-kind-module">
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunk.html" class="tsd-kind-icon">Chunk</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunkrange.html" class="tsd-kind-icon">Chunk<wbr>Range</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunker.html" class="tsd-kind-icon">Chunker</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.cssselector.html" class="tsd-kind-icon">Css<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.describetextquoteoptions.html" class="tsd-kind-icon">Describe<wbr>Text<wbr>Quote<wbr>Options</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.matcher.html" class="tsd-kind-icon">Matcher</a>
+ </li>
+ </ul>
+ <ul class="current">
+ <li class="current tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.rangeselector.html" class="tsd-kind-icon">Range<wbr>Selector</a>
+ <ul>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.rangeselector.html#endselector" class="tsd-kind-icon">end<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
+ <a href="selector.rangeselector.html#refinedby" class="tsd-kind-icon">refined<wbr>By</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.rangeselector.html#startselector" class="tsd-kind-icon">start<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.rangeselector.html#type" class="tsd-kind-icon">type</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="after-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.selector-1.html" class="tsd-kind-icon">Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textpositionselector.html" class="tsd-kind-icon">Text<wbr>Position<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textquoteselector.html" class="tsd-kind-icon">Text<wbr>Quote<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkequals" class="tsd-kind-icon">chunk<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkrangeequals" class="tsd-kind-icon">chunk<wbr>Range<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#makerefinable" class="tsd-kind-icon">make<wbr>Refinable</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textpositionselectormatcher" class="tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textquoteselectormatcher" class="tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher</a>
+ </li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/api/interfaces/selector.selector-1.html b/content/docs/api/interfaces/selector.selector-1.html
index 4c5a7fc..093085d 100644
--- a/content/docs/api/interfaces/selector.selector-1.html
+++ b/content/docs/api/interfaces/selector.selector-1.html
@@ -1 +1,317 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="../assets/js/search.js" id="search-script"></script>
+ <script defer src="../assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <ul class="tsd-breadcrumb">
+ <li>
+ <a href="../index.html">apache-annotator</a>
+ </li>
+ <li>
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ <li>
+ <a href="selector.selector-1.html">Selector</a>
+ </li>
+ </ul>
+ <h1>Interface Selector</h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel tsd-comment">
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>A <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#selectors" class="external">Selector</a> object of the Web Annotation Data Model.</p>
+ </div>
+ <p>Corresponds to RDF class <a href="http://www.w3.org/ns/oa#Selector" class="external">http://www.w3.org/ns/oa#Selector</a></p>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-hierarchy">
+ <h3>Hierarchy</h3>
+ <ul class="tsd-hierarchy">
+ <li>
+ <span class="target">Selector</span>
+ <ul class="tsd-hierarchy">
+ <li>
+ <a href="selector.cssselector.html" class="tsd-signature-type" data-tsd-kind="Interface">CssSelector</a>
+ </li>
+ <li>
+ <a href="selector.rangeselector.html" class="tsd-signature-type" data-tsd-kind="Interface">RangeSelector</a>
+ </li>
+ <li>
+ <a href="selector.textpositionselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextPositionSelector</a>
+ </li>
+ <li>
+ <a href="selector.textquoteselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextQuoteSelector</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel-group tsd-index-group">
+ <h2>Index</h2>
+ <section class="tsd-panel tsd-index-panel">
+ <div class="tsd-index-content">
+ <section class="tsd-index-section ">
+ <h3>Properties</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.selector-1.html#refinedby" class="tsd-kind-icon">refined<wbr>By</a></li>
+ </ul>
+ </section>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Properties</h2>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="refinedby" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagOptional">Optional</span> refined<wbr>By</h3>
+ <div class="tsd-signature tsd-kind-icon">refined<wbr>By<span class="tsd-signature-symbol">:</span> <a href="selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a></div>
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>A Selector can be refined by another Selector.</p>
+ </div>
+ <p>See <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#refinement-of-selection" class="external">§4.2.9 Refinement of Selection</a> in the Web Annotation Data Model.</p>
+ <p>Corresponds to RDF property <a href="http://www.w3.org/ns/oa#refinedBy" class="external">http://www.w3.org/ns/oa#refinedBy</a></p>
+ </div>
+ </section>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class=" ">
+ <a href="../index.html">Exports</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="../modules/dom.html">dom</a>
+ </li>
+ <li class="current tsd-kind-module">
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunk.html" class="tsd-kind-icon">Chunk</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunkrange.html" class="tsd-kind-icon">Chunk<wbr>Range</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunker.html" class="tsd-kind-icon">Chunker</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.cssselector.html" class="tsd-kind-icon">Css<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.describetextquoteoptions.html" class="tsd-kind-icon">Describe<wbr>Text<wbr>Quote<wbr>Options</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.matcher.html" class="tsd-kind-icon">Matcher</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.rangeselector.html" class="tsd-kind-icon">Range<wbr>Selector</a>
+ </li>
+ </ul>
+ <ul class="current">
+ <li class="current tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.selector-1.html" class="tsd-kind-icon">Selector</a>
+ <ul>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.selector-1.html#refinedby" class="tsd-kind-icon">refined<wbr>By</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="after-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textpositionselector.html" class="tsd-kind-icon">Text<wbr>Position<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textquoteselector.html" class="tsd-kind-icon">Text<wbr>Quote<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkequals" class="tsd-kind-icon">chunk<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkrangeequals" class="tsd-kind-icon">chunk<wbr>Range<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#makerefinable" class="tsd-kind-icon">make<wbr>Refinable</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textpositionselectormatcher" class="tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textquoteselectormatcher" class="tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher</a>
+ </li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/api/interfaces/selector.textpositionselector.html b/content/docs/api/interfaces/selector.textpositionselector.html
index 4c5a7fc..389eb92 100644
--- a/content/docs/api/interfaces/selector.textpositionselector.html
+++ b/content/docs/api/interfaces/selector.textpositionselector.html
@@ -1 +1,342 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="../assets/js/search.js" id="search-script"></script>
+ <script defer src="../assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <ul class="tsd-breadcrumb">
+ <li>
+ <a href="../index.html">apache-annotator</a>
+ </li>
+ <li>
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ <li>
+ <a href="selector.textpositionselector.html">TextPositionSelector</a>
+ </li>
+ </ul>
+ <h1>Interface TextPositionSelector</h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel tsd-comment">
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>The <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#text-position-selector" class="external">TextPositionSelector</a> of the Web Annotation Data Model.</p>
+ </div>
+ <p>Corresponds to RDF class <a href="http://www.w3.org/ns/oa#TextPositionSelector" class="external">http://www.w3.org/ns/oa#TextPositionSelector</a></p>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-hierarchy">
+ <h3>Hierarchy</h3>
+ <ul class="tsd-hierarchy">
+ <li>
+ <a href="selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a>
+ <ul class="tsd-hierarchy">
+ <li>
+ <span class="target">TextPositionSelector</span>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel-group tsd-index-group">
+ <h2>Index</h2>
+ <section class="tsd-panel tsd-index-panel">
+ <div class="tsd-index-content">
+ <section class="tsd-index-section ">
+ <h3>Properties</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.textpositionselector.html#end" class="tsd-kind-icon">end</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="selector.textpositionselector.html#refinedby" class="tsd-kind-icon">refined<wbr>By</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.textpositionselector.html#start" class="tsd-kind-icon">start</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.textpositionselector.html#type" class="tsd-kind-icon">type</a></li>
+ </ul>
+ </section>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Properties</h2>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="end" class="tsd-anchor"></a>
+ <h3>end</h3>
+ <div class="tsd-signature tsd-kind-icon">end<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
+ <a name="refinedby" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagOptional">Optional</span> refined<wbr>By</h3>
+ <div class="tsd-signature tsd-kind-icon">refined<wbr>By<span class="tsd-signature-symbol">:</span> <a href="selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a></div>
+ <aside class="tsd-sources">
+ <p>Inherited from <a href="selector.selector-1.html">Selector</a>.<a href="selector.selector-1.html#refinedby">refinedBy</a></p>
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>A Selector can be refined by another Selector.</p>
+ </div>
+ <p>See <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#refinement-of-selection" class="external">§4.2.9 Refinement of Selection</a> in the Web Annotation Data Model.</p>
+ <p>Corresponds to RDF property <a href="http://www.w3.org/ns/oa#refinedBy" class="external">http://www.w3.org/ns/oa#refinedBy</a></p>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="start" class="tsd-anchor"></a>
+ <h3>start</h3>
+ <div class="tsd-signature tsd-kind-icon">start<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="type" class="tsd-anchor"></a>
+ <h3>type</h3>
+ <div class="tsd-signature tsd-kind-icon">type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"TextPositionSelector"</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class=" ">
+ <a href="../index.html">Exports</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="../modules/dom.html">dom</a>
+ </li>
+ <li class="current tsd-kind-module">
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunk.html" class="tsd-kind-icon">Chunk</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunkrange.html" class="tsd-kind-icon">Chunk<wbr>Range</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunker.html" class="tsd-kind-icon">Chunker</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.cssselector.html" class="tsd-kind-icon">Css<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.describetextquoteoptions.html" class="tsd-kind-icon">Describe<wbr>Text<wbr>Quote<wbr>Options</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.matcher.html" class="tsd-kind-icon">Matcher</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.rangeselector.html" class="tsd-kind-icon">Range<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.selector-1.html" class="tsd-kind-icon">Selector</a>
+ </li>
+ </ul>
+ <ul class="current">
+ <li class="current tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textpositionselector.html" class="tsd-kind-icon">Text<wbr>Position<wbr>Selector</a>
+ <ul>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.textpositionselector.html#end" class="tsd-kind-icon">end</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
+ <a href="selector.textpositionselector.html#refinedby" class="tsd-kind-icon">refined<wbr>By</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.textpositionselector.html#start" class="tsd-kind-icon">start</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.textpositionselector.html#type" class="tsd-kind-icon">type</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="after-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textquoteselector.html" class="tsd-kind-icon">Text<wbr>Quote<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkequals" class="tsd-kind-icon">chunk<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkrangeequals" class="tsd-kind-icon">chunk<wbr>Range<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#makerefinable" class="tsd-kind-icon">make<wbr>Refinable</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textpositionselectormatcher" class="tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textquoteselectormatcher" class="tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher</a>
+ </li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/api/interfaces/selector.textquoteselector.html b/content/docs/api/interfaces/selector.textquoteselector.html
index 4c5a7fc..a2e63d1 100644
--- a/content/docs/api/interfaces/selector.textquoteselector.html
+++ b/content/docs/api/interfaces/selector.textquoteselector.html
@@ -1 +1,353 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="../assets/js/search.js" id="search-script"></script>
+ <script defer src="../assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <ul class="tsd-breadcrumb">
+ <li>
+ <a href="../index.html">apache-annotator</a>
+ </li>
+ <li>
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ <li>
+ <a href="selector.textquoteselector.html">TextQuoteSelector</a>
+ </li>
+ </ul>
+ <h1>Interface TextQuoteSelector</h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel tsd-comment">
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>The <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#text-quote-selector" class="external">TextQuoteSelector</a> of the Web Annotation Data Model.</p>
+ </div>
+ <p>Corresponds to RDF class <a href="http://www.w3.org/ns/oa#TextQuoteSelector" class="external">http://www.w3.org/ns/oa#TextQuoteSelector</a></p>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-hierarchy">
+ <h3>Hierarchy</h3>
+ <ul class="tsd-hierarchy">
+ <li>
+ <a href="selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a>
+ <ul class="tsd-hierarchy">
+ <li>
+ <span class="target">TextQuoteSelector</span>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel-group tsd-index-group">
+ <h2>Index</h2>
+ <section class="tsd-panel tsd-index-panel">
+ <div class="tsd-index-content">
+ <section class="tsd-index-section ">
+ <h3>Properties</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.textquoteselector.html#exact" class="tsd-kind-icon">exact</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.textquoteselector.html#prefix" class="tsd-kind-icon">prefix</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="selector.textquoteselector.html#refinedby" class="tsd-kind-icon">refined<wbr>By</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.textquoteselector.html#suffix" class="tsd-kind-icon">suffix</a></li>
+ <li class="tsd-kind-property tsd-parent-kind-interface"><a href="selector.textquoteselector.html#type" class="tsd-kind-icon">type</a></li>
+ </ul>
+ </section>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Properties</h2>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="exact" class="tsd-anchor"></a>
+ <h3>exact</h3>
+ <div class="tsd-signature tsd-kind-icon">exact<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="prefix" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagOptional">Optional</span> prefix</h3>
+ <div class="tsd-signature tsd-kind-icon">prefix<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
+ <a name="refinedby" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagOptional">Optional</span> refined<wbr>By</h3>
+ <div class="tsd-signature tsd-kind-icon">refined<wbr>By<span class="tsd-signature-symbol">:</span> <a href="selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a></div>
+ <aside class="tsd-sources">
+ <p>Inherited from <a href="selector.selector-1.html">Selector</a>.<a href="selector.selector-1.html#refinedby">refinedBy</a></p>
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>A Selector can be refined by another Selector.</p>
+ </div>
+ <p>See <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#refinement-of-selection" class="external">§4.2.9 Refinement of Selection</a> in the Web Annotation Data Model.</p>
+ <p>Corresponds to RDF property <a href="http://www.w3.org/ns/oa#refinedBy" class="external">http://www.w3.org/ns/oa#refinedBy</a></p>
+ </div>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="suffix" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagOptional">Optional</span> suffix</h3>
+ <div class="tsd-signature tsd-kind-icon">suffix<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+ <a name="type" class="tsd-anchor"></a>
+ <h3>type</h3>
+ <div class="tsd-signature tsd-kind-icon">type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"TextQuoteSelector"</span></div>
+ <aside class="tsd-sources">
+ </aside>
+ </section>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class=" ">
+ <a href="../index.html">Exports</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="../modules/dom.html">dom</a>
+ </li>
+ <li class="current tsd-kind-module">
+ <a href="../modules/selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunk.html" class="tsd-kind-icon">Chunk</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunkrange.html" class="tsd-kind-icon">Chunk<wbr>Range</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.chunker.html" class="tsd-kind-icon">Chunker</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.cssselector.html" class="tsd-kind-icon">Css<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.describetextquoteoptions.html" class="tsd-kind-icon">Describe<wbr>Text<wbr>Quote<wbr>Options</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.matcher.html" class="tsd-kind-icon">Matcher</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.rangeselector.html" class="tsd-kind-icon">Range<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.selector-1.html" class="tsd-kind-icon">Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textpositionselector.html" class="tsd-kind-icon">Text<wbr>Position<wbr>Selector</a>
+ </li>
+ </ul>
+ <ul class="current">
+ <li class="current tsd-kind-interface tsd-parent-kind-module">
+ <a href="selector.textquoteselector.html" class="tsd-kind-icon">Text<wbr>Quote<wbr>Selector</a>
+ <ul>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.textquoteselector.html#exact" class="tsd-kind-icon">exact</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.textquoteselector.html#prefix" class="tsd-kind-icon">prefix</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
+ <a href="selector.textquoteselector.html#refinedby" class="tsd-kind-icon">refined<wbr>By</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.textquoteselector.html#suffix" class="tsd-kind-icon">suffix</a>
+ </li>
+ <li class=" tsd-kind-property tsd-parent-kind-interface">
+ <a href="selector.textquoteselector.html#type" class="tsd-kind-icon">type</a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="after-current">
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkequals" class="tsd-kind-icon">chunk<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#chunkrangeequals" class="tsd-kind-icon">chunk<wbr>Range<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../modules/selector.html#makerefinable" class="tsd-kind-icon">make<wbr>Refinable</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textpositionselectormatcher" class="tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="../modules/selector.html#textquoteselectormatcher" class="tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher</a>
+ </li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/api/modules/dom.html b/content/docs/api/modules/dom.html
index 4c5a7fc..3f865ef 100644
--- a/content/docs/api/modules/dom.html
+++ b/content/docs/api/modules/dom.html
@@ -1 +1,776 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="../assets/js/search.js" id="search-script"></script>
+ <script defer src="../assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <ul class="tsd-breadcrumb">
+ <li>
+ <a href="../index.html">apache-annotator</a>
+ </li>
+ <li>
+ <a href="dom.html">dom</a>
+ </li>
+ </ul>
+ <h1>Module dom</h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel tsd-comment">
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>This module provides functions for handling annotations in the context of an
+ HTML DOM; in other words, a web page.</p>
+ </div>
+ <p>The module’s main functionality is <em>matching</em> (or <em>‘anchoring’</em>) a <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#selectors" class="external">Selector</a> to the DOM, i.e. finding which piece of a web page it refers to;
+ and, vice versa, <em>describing</em> a selection of the page as a Selector.</p>
+ </div>
+ </section>
+ <section class="tsd-panel-group tsd-index-group">
+ <h2>Index</h2>
+ <section class="tsd-panel tsd-index-panel">
+ <div class="tsd-index-content">
+ <section class="tsd-index-section ">
+ <h3>Functions</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="dom.html#createcssselectormatcher" class="tsd-kind-icon">create<wbr>Css<wbr>Selector<wbr>Matcher</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="dom.html#createtextpositionselectormatcher" class="tsd-kind-icon">create<wbr>Text<wbr>Position<wbr>Selector<wbr>Matcher</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="dom.html#createtextquoteselectormatcher" class="tsd-kind-icon">create<wbr>Text<wbr>Quote<wbr>Selector<wbr>Matcher</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="dom.html#describecss" class="tsd-kind-icon">describe<wbr>Css</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="dom.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="dom.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="dom.html#highlighttext" class="tsd-kind-icon">highlight<wbr>Text</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="dom.html#makecreaterangeselectormatcher" class="tsd-kind-icon">make<wbr>Create<wbr>Range<wbr>Selector<wbr>Matcher</a></li>
+ </ul>
+ </section>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Functions</h2>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
+ <a name="createcssselectormatcher" class="tsd-anchor"></a>
+ <h3>create<wbr>Css<wbr>Selector<wbr>Matcher</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
+ <li class="tsd-signature tsd-kind-icon">create<wbr>Css<wbr>Selector<wbr>Matcher<span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.cssselector.html" class="tsd-signature-type" data-tsd-kind="Interface">CssSelector</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Find the elements corresponding to the given <a href="../interfaces/selector.cssselector.html">CssSelector</a>.</p>
+ </div>
+ <p>The given CssSelector returns all elements within <code>scope</code> that it matches.</p>
+ <p>The function is curried, taking first the selector and then the scope.</p>
+ <p>As there may be multiple matches for a given selector, the matcher will
+ return an (async) iterable that produces each match in the order they are
+ found in the document.</p>
+ <p>Note that the Web Annotation specification does not mention whether an
+ ‘ambiguous’ CssSelector should indeed match all elements that match the
+ selector value, or perhaps only the first. This implementation returns all
+ matches to give users the freedom to follow either interpretation. This is
+ also in line with more clearly defined behaviour of the TextQuoteSelector:</p>
+ <blockquote>
+ <p>“If […] the user agent discovers multiple matching text sequences, then the
+ selection SHOULD be treated as matching all of the matches.”</p>
+ </blockquote>
+ <p>Note that if <code>scope</code> is <em>not</em> a Document, the <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#css-selector">Web Annotation Data Model</a>
+ leaves the behaviour undefined. This implementation will, in such a case,
+ evaluate the selector relative to the document containing the scope, but only
+ return those matches that are fully enclosed within the scope. There might be
+ edge cases where this is not a perfect inverse of <a href="dom.html#describecss">describeCss</a>.</p>
+ <dl class="tsd-comment-tags">
+ <dt>example</dt>
+ <dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">matches</span><span style="color: #000000"> = </span><span style="color: #795E26">createCssSelectorMatcher</span><span style="color: #000000">({</span>
+<span style="color: #000000"> </span><span style="color: #001080">type:</span><span style="color: #000000"> </span><span style="color: #A31515">'CssSelector'</span><span style="color: #000000">,</span>
+<span style="color: #000000"> </span><span style="color: #001080">value:</span><span style="color: #000000"> </span><span style="color: #A31515">'#target'</span><span style="color: #000000">,</span>
+<span style="color: #000000">});</span>
+<span style="color: #AF00DB">for</span><span style="color: #000000"> </span><span style="color: #AF00DB">await</span><span style="color: #000000"> (</span><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">match</span><span style="color: #000000"> </span><span style="color: #0000FF">of</span><span style="color: #000000"> </span><span style="color: #001080">matches</span><span style="color: #000000">) {</span>
+<span style="color: #000000"> </span><span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #001080">match</span><span style="color: #000000">);</span>
+<span style="color: #000000">}</span>
+<span style="color: #008000">// <div id="target" …></span>
+</code></pre>
+ </dd>
+ </dl>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>selector: <a href="../interfaces/selector.cssselector.html" class="tsd-signature-type" data-tsd-kind="Interface">CssSelector</a></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The <a href="../interfaces/selector.cssselector.html">CssSelector</a> to be anchored.</p>
+ </div>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Range</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Element</span><span class="tsd-signature-symbol">></span></h4>
+ <p>A <a href="../interfaces/selector.matcher.html">Matcher</a> function that applies <code>selector</code> to a given
+ <code>scope</code>.</p>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
+ <a name="createtextpositionselectormatcher" class="tsd-anchor"></a>
+ <h3>create<wbr>Text<wbr>Position<wbr>Selector<wbr>Matcher</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
+ <li class="tsd-signature tsd-kind-icon">create<wbr>Text<wbr>Position<wbr>Selector<wbr>Matcher<span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.textpositionselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextPositionSelector</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.matcher.html" class="tsd-signature-type" d [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Find the range of text corresponding to the given <a href="../interfaces/selector.textpositionselector.html">TextPositionSelector</a>.</p>
+ </div>
+ <p>The start and end positions are measured relative to the first text character
+ in the given scope.</p>
+ <p>The function is curried, taking first the selector and then the scope.</p>
+ <p>Its end result is an (async) generator producing a single <a href="https://developer.mozilla.org/en-US/docs/Web/API/Range" class="external">Range</a> to represent the match (unlike e.g. a <a href="../interfaces/selector.textquoteselector.html">TextQuoteSelector</a>, a
+ TextPositionSelector cannot have multiple matches).</p>
+ <dl class="tsd-comment-tags">
+ <dt>example</dt>
+ <dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">selector</span><span style="color: #000000"> = { </span><span style="color: #001080">type:</span><span style="color: #000000"> </span><span style="color: #A31515">'TextPositionSelector'</span><span style="color: #000000">, </span><span style="color: #001080">start:</span><span style="color: #000000"> </span><span style="color: #098658">702</span><s [...]
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">scope</span><span style="color: #000000"> = </span><span style="color: #001080">document</span><span style="color: #000000">.</span><span style="color: #001080">body</span><span style="color: #000000">;</span>
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">matches</span><span style="color: #000000"> = </span><span style="color: #795E26">textQuoteSelectorMatcher</span><span style="color: #000000">(</span><span style="color: #001080">selector</span><span style="color: #000000">)(</span><span style="color: #001080">scope</span><span style="color: #000000">);</span>
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">match</span><span style="color: #000000"> = (</span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #001080">matches</span><span style="color: #000000">.</span><span style="color: #795E26">next</span><span style="color: #000000">()).</span><span style="color: #001080">value</span><span style="color: #000000">;</span>
+<span style="color: #008000">// ⇒ Range { startContainer: #text, startOffset: 64, endContainer: #text,</span>
+<span style="color: #008000">// endOffset: 98, … }</span>
+</code></pre>
+ </dd>
+ </dl>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>selector: <a href="../interfaces/selector.textpositionselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextPositionSelector</a></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The <a href="../interfaces/selector.textpositionselector.html">TextPositionSelector</a> to be anchored.</p>
+ </div>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Range</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Range</span><span class="tsd-signature-symbol">></span></h4>
+ <p>A <a href="../interfaces/selector.matcher.html">Matcher</a> function that applies <code>selector</code> within a given
+ <code>scope</code>.</p>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
+ <a name="createtextquoteselectormatcher" class="tsd-anchor"></a>
+ <h3>create<wbr>Text<wbr>Quote<wbr>Selector<wbr>Matcher</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
+ <li class="tsd-signature tsd-kind-icon">create<wbr>Text<wbr>Quote<wbr>Selector<wbr>Matcher<span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.textquoteselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextQuoteSelector</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-k [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Find occurrences in a text matching the given <a href="../interfaces/selector.textquoteselector.html">TextQuoteSelector</a>.</p>
+ </div>
+ <p>This performs an exact search for the selector’s quote (including prefix and
+ suffix) within the text contained in the given scope (a <a href="https://developer.mozilla.org/en-US/docs/Web/API/Range" class="external">Range</a>).</p>
+ <p>Note the match is based on strict character-by-character equivalence, i.e.
+ it is sensitive to whitespace, capitalisation, etc.</p>
+ <p>The function is curried, taking first the selector and then the scope.</p>
+ <p>As there may be multiple matches for a given selector (when its prefix and
+ suffix attributes are not sufficient to disambiguate it), the matcher will
+ return an (async) generator that produces each match in the order they are
+ found in the text.</p>
+ <p><em>XXX Modifying the DOM (e.g. to highlight the text) while the search is still
+ running can mess up and result in an error or an infinite loop. See <a href="https://github.com/apache/incubator-annotator/issues/112">issue
+ #112</a>.</em></p>
+ <dl class="tsd-comment-tags">
+ <dt>example</dt>
+ <dd><pre><code><span style="color: #008000">// Find the word ‘banana’.</span>
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">selector</span><span style="color: #000000"> = { </span><span style="color: #001080">type:</span><span style="color: #000000"> </span><span style="color: #A31515">'TextQuoteSelector'</span><span style="color: #000000">, </span><span style="color: #001080">exact:</span><span style="color: #000000"> </span><span style="color: #A31515">'banana'</span><span style="co [...]
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">scope</span><span style="color: #000000"> = </span><span style="color: #001080">document</span><span style="color: #000000">.</span><span style="color: #001080">body</span><span style="color: #000000">;</span>
+
+<span style="color: #008000">// Read all matches.</span>
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">matches</span><span style="color: #000000"> = </span><span style="color: #795E26">textQuoteSelectorMatcher</span><span style="color: #000000">(</span><span style="color: #001080">selector</span><span style="color: #000000">)(</span><span style="color: #001080">scope</span><span style="color: #000000">);</span>
+<span style="color: #AF00DB">for</span><span style="color: #000000"> </span><span style="color: #AF00DB">await</span><span style="color: #000000"> (</span><span style="color: #001080">match</span><span style="color: #000000"> </span><span style="color: #0000FF">of</span><span style="color: #000000"> </span><span style="color: #001080">matches</span><span style="color: #000000">) </span><span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #79 [...]
+<span style="color: #008000">// ⇒ Range { startContainer: #text, startOffset: 187, endContainer: #text,</span>
+<span style="color: #008000">// endOffset: 193, … }</span>
+<span style="color: #008000">// ⇒ Range { startContainer: #text, startOffset: 631, endContainer: #text,</span>
+<span style="color: #008000">// endOffset: 637, … }</span>
+</code></pre>
+ </dd>
+ </dl>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>selector: <a href="../interfaces/selector.textquoteselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextQuoteSelector</a></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The <a href="../interfaces/selector.textquoteselector.html">TextQuoteSelector</a> to be anchored.</p>
+ </div>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Range</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Range</span><span class="tsd-signature-symbol">></span></h4>
+ <p>A <a href="../interfaces/selector.matcher.html">Matcher</a> function that applies <code>selector</code> within a given
+ <code>scope</code>.</p>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
+ <a name="describecss" class="tsd-anchor"></a>
+ <h3>describe<wbr>Css</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
+ <li class="tsd-signature tsd-kind-icon">describe<wbr>Css<span class="tsd-signature-symbol">(</span>element<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HTMLElement</span>, scope<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Element</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a hr [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Returns a <a href="../interfaces/selector.cssselector.html">CssSelector</a> that unambiguously describes the given
+ element, within the given scope.</p>
+ </div>
+ <dl class="tsd-comment-tags">
+ <dt>example</dt>
+ <dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">target</span><span style="color: #000000"> = </span><span style="color: #001080">document</span><span style="color: #000000">.</span><span style="color: #795E26">getElementById</span><span style="color: #000000">(</span><span style="color: #A31515">'targetelement'</span><span style="color: #000000">).</span><span style="color: #001080">firstElement [...]
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">selector</span><span style="color: #000000"> = </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #795E26">describeCss</span><span style="color: #000000">(</span><span style="color: #001080">target</span><span style="color: #000000">);</span>
+<span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #001080">selector</span><span style="color: #000000">);</span>
+<span style="color: #008000">// {</span>
+<span style="color: #008000">// type: 'CssSelector',</span>
+<span style="color: #008000">// value: '#targetelement > :nth-child(1)'</span>
+<span style="color: #008000">// }</span>
+</code></pre>
+ </dd>
+ </dl>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>element: <span class="tsd-signature-type">HTMLElement</span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The element that the selector should describe.</p>
+ </div>
+ </li>
+ <li>
+ <h5><span class="tsd-flag ts-flagOptional">Optional</span> scope: <span class="tsd-signature-type">Element</span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The node that serves as the ‘document’ for purposes of finding
+ an unambiguous selector. Defaults to the Document that contains <code>element</code>.</p>
+ </div>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/selector.cssselector.html" class="tsd-signature-type" data-tsd-kind="Interface">CssSelector</a><span class="tsd-signature-symbol">></span></h4>
+ <p>The selector unambiguously describing <code>element</code> within <code>scope</code>.</p>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
+ <a name="describetextposition" class="tsd-anchor"></a>
+ <h3>describe<wbr>Text<wbr>Position</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
+ <li class="tsd-signature tsd-kind-icon">describe<wbr>Text<wbr>Position<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Range</span>, scope<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Range</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Returns a <a href="../interfaces/selector.textpositionselector.html">TextPositionSelector</a> that points at the target text within
+ the given scope.</p>
+ </div>
+ <p>When no scope is given, the position is described relative to the document
+ as a whole. Note this means all the characters in all Text nodes are counted
+ to determine the target’s position, including those in the <code><head></code> and
+ whitespace, hence even a minor modification could make the selector point to
+ a different text than its original target.</p>
+ <dl class="tsd-comment-tags">
+ <dt>example</dt>
+ <dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">target</span><span style="color: #000000"> = </span><span style="color: #001080">window</span><span style="color: #000000">.</span><span style="color: #795E26">getSelection</span><span style="color: #000000">().</span><span style="color: #795E26">getRangeAt</span><span style="color: #000000">(</span><span style="color: #098658">0</span><span style="color: #0 [...]
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">selector</span><span style="color: #000000"> = </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #795E26">describeTextPosition</span><span style="color: #000000">(</span><span style="color: #001080">target</span><span style="color: #000000">);</span>
+<span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #001080">selector</span><span style="color: #000000">);</span>
+<span style="color: #008000">// {</span>
+<span style="color: #008000">// type: 'TextPositionSelector',</span>
+<span style="color: #008000">// start: 702,</span>
+<span style="color: #008000">// end: 736</span>
+<span style="color: #008000">// }</span>
+</code></pre>
+ </dd>
+ </dl>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>range: <span class="tsd-signature-type">Range</span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The <a href="https://developer.mozilla.org/en-US/docs/Web/API/Range" class="external">Range</a> whose text content will be described.</p>
+ </div>
+ </li>
+ <li>
+ <h5><span class="tsd-flag ts-flagOptional">Optional</span> scope: <span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Range</span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>A Node or Range that serves as the ‘document’ for purposes of
+ finding occurrences and determining prefix and suffix. Defaults to the full
+ Document that contains <code>range</code>.</p>
+ </div>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/selector.textpositionselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextPositionSelector</a><span class="tsd-signature-symbol">></span></h4>
+ <p>The selector describing <code>range</code> within <code>scope</code>.</p>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
+ <a name="describetextquote" class="tsd-anchor"></a>
+ <h3>describe<wbr>Text<wbr>Quote</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
+ <li class="tsd-signature tsd-kind-icon">describe<wbr>Text<wbr>Quote<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Range</span>, scope<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Range</span>, options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/selector.describet [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Returns a <a href="../interfaces/selector.textquoteselector.html">TextQuoteSelector</a> that unambiguously describes the given
+ range of text, within the given scope.</p>
+ </div>
+ <p>The selector will contain the <em>exact</em> target quote, and in case this quote
+ appears multiple times in the text, sufficient context around the quote will
+ be included in the selector’s <em>prefix</em> and <em>suffix</em> attributes to
+ disambiguate. By default, more prefix and suffix are included than strictly
+ required; both in order to be robust against slight modifications, and in an
+ attempt to not end halfway a word (mainly for the sake of human readability).</p>
+ <dl class="tsd-comment-tags">
+ <dt>example</dt>
+ <dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">target</span><span style="color: #000000"> = </span><span style="color: #001080">window</span><span style="color: #000000">.</span><span style="color: #795E26">getSelection</span><span style="color: #000000">().</span><span style="color: #795E26">getRangeAt</span><span style="color: #000000">(</span><span style="color: #098658">0</span><span style="color: #0 [...]
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">selector</span><span style="color: #000000"> = </span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #795E26">describeTextQuote</span><span style="color: #000000">(</span><span style="color: #001080">target</span><span style="color: #000000">);</span>
+<span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #001080">selector</span><span style="color: #000000">);</span>
+<span style="color: #008000">// {</span>
+<span style="color: #008000">// type: 'TextQuoteSelector',</span>
+<span style="color: #008000">// exact: 'ipsum',</span>
+<span style="color: #008000">// prefix: 'Lorem ',</span>
+<span style="color: #008000">// suffix: ' dolor'</span>
+<span style="color: #008000">// }</span>
+</code></pre>
+ </dd>
+ </dl>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>range: <span class="tsd-signature-type">Range</span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The <a href="https://developer.mozilla.org/en-US/docs/Web/API/Range" class="external">Range</a> whose text content will be described</p>
+ </div>
+ </li>
+ <li>
+ <h5><span class="tsd-flag ts-flagOptional">Optional</span> scope: <span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Range</span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>A Node or Range that serves as the ‘document’ for purposes of
+ finding occurrences and determining prefix and suffix. Defaults to the full
+ Document that contains <code>range</code>.</p>
+ </div>
+ </li>
+ <li>
+ <h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../interfaces/selector.describetextquoteoptions.html" class="tsd-signature-type" data-tsd-kind="Interface">DescribeTextQuoteOptions</a></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>Options to fine-tune the function’s behaviour.</p>
+ </div>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/selector.textquoteselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextQuoteSelector</a><span class="tsd-signature-symbol">></span></h4>
+ <p>The selector unambiguously describing <code>range</code> within <code>scope</code>.</p>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
+ <a name="highlighttext" class="tsd-anchor"></a>
+ <h3>highlight<wbr>Text</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
+ <li class="tsd-signature tsd-kind-icon">highlight<wbr>Text<span class="tsd-signature-symbol">(</span>target<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Range</span>, tagName<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, attributes<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Record</sp [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Wrap each text node in a given Node or Range with a <code><mark></code> or other
+ element.</p>
+ </div>
+ <p>If a Range is given that starts and/or ends within a Text node, that node
+ will be split in order to only wrap the contained part in the mark element.</p>
+ <p>The highlight can be removed again by calling the function that cleans up the
+ wrapper elements. Note that this might not perfectly restore the DOM to its
+ previous state: text nodes that were split are not merged again. One could
+ consider running <code>range.commonAncestorContainer.normalize()</code> afterwards to
+ join all adjacent text nodes.</p>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>target: <span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Range</span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The Node/Range containing the text. If it is a Range, note
+ that as highlighting modifies the DOM, the Range may be unusable afterwards.</p>
+ </div>
+ </li>
+ <li>
+ <h5><span class="tsd-flag ts-flagOptional">Optional</span> tagName: <span class="tsd-signature-type">string</span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The element used to wrap text nodes. Defaults to <code>'mark'</code>.</p>
+ </div>
+ </li>
+ <li>
+ <h5><span class="tsd-flag ts-flagOptional">Optional</span> attributes: <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>An object defining any attributes to be set on the
+ wrapper elements, e.g. its <code>class</code>.</p>
+ </div>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h4>
+ <p>A function that removes the created highlight.</p>
+ <ul class="tsd-parameters">
+ <li class="tsd-parameter-signature">
+ <ul class="tsd-signatures tsd-kind-type-literal">
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
+ <a name="makecreaterangeselectormatcher" class="tsd-anchor"></a>
+ <h3>make<wbr>Create<wbr>Range<wbr>Selector<wbr>Matcher</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
+ <li class="tsd-signature tsd-kind-icon">make<wbr>Create<wbr>Range<wbr>Selector<wbr>Matcher<span class="tsd-signature-symbol">(</span>createMatcher<span class="tsd-signature-symbol">: </span><T, TMatch><span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><a href="../interfaces/selector.matcher.html" clas [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Find the range(s) corresponding to the given <a href="../interfaces/selector.rangeselector.html">RangeSelector</a>.</p>
+ </div>
+ <p>As a RangeSelector itself nests two further selectors, one needs to pass a
+ <code>createMatcher</code> function that will be used to process those nested selectors.</p>
+ <p>The function is curried, taking first the <code>createMatcher</code> function, then the
+ selector, and then the scope.</p>
+ <p>As there may be multiple matches for the start & end selectors, the resulting
+ matcher will return an (async) iterable, that produces a match for each
+ possible pair of matches of the nested selectors (except those where its end
+ would precede its start). <em>(Note that this behaviour is a rather free
+ interpretation of the Web Annotation Data Model spec, which is silent about
+ the possibility of multiple matches for RangeSelectors)</em></p>
+ <dl class="tsd-comment-tags">
+ <dt>example</dt>
+ <dd><p>By using a matcher for <a href="../interfaces/selector.textquoteselector.html">TextQuoteSelector</a>s, one
+ could create a matcher for text quotes with ellipsis to select a phrase
+ “ipsum … amet,”:</p>
+ <pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">selector</span><span style="color: #000000"> = {</span>
+<span style="color: #000000"> </span><span style="color: #001080">type:</span><span style="color: #000000"> </span><span style="color: #A31515">'RangeSelector'</span><span style="color: #000000">,</span>
+<span style="color: #000000"> </span><span style="color: #001080">startSelector:</span><span style="color: #000000"> {</span>
+<span style="color: #000000"> </span><span style="color: #001080">type:</span><span style="color: #000000"> </span><span style="color: #A31515">'TextQuoteSelector'</span><span style="color: #000000">,</span>
+<span style="color: #000000"> </span><span style="color: #001080">exact:</span><span style="color: #000000"> </span><span style="color: #A31515">'ipsum '</span><span style="color: #000000">,</span>
+<span style="color: #000000"> },</span>
+<span style="color: #000000"> </span><span style="color: #001080">endSelector:</span><span style="color: #000000"> {</span>
+<span style="color: #000000"> </span><span style="color: #001080">type:</span><span style="color: #000000"> </span><span style="color: #A31515">'TextQuoteSelector'</span><span style="color: #000000">,</span>
+<span style="color: #000000"> </span><span style="color: #008000">// Because the end of a RangeSelector is *exclusive*, we will present the</span>
+<span style="color: #000000"> </span><span style="color: #008000">// latter part of the quote as the *prefix* so it will be part of the</span>
+<span style="color: #000000"> </span><span style="color: #008000">// match.</span>
+<span style="color: #000000"> </span><span style="color: #001080">exact:</span><span style="color: #000000"> </span><span style="color: #A31515">''</span><span style="color: #000000">,</span>
+<span style="color: #000000"> </span><span style="color: #001080">prefix:</span><span style="color: #000000"> </span><span style="color: #A31515">' amet,'</span><span style="color: #000000">,</span>
+<span style="color: #000000"> }</span>
+<span style="color: #000000">};</span>
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">createRangeSelectorMatcher</span><span style="color: #000000"> =</span>
+<span style="color: #000000"> </span><span style="color: #795E26">makeCreateRangeSelectorMatcher</span><span style="color: #000000">(</span><span style="color: #001080">createTextQuoteMatcher</span><span style="color: #000000">);</span>
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">match</span><span style="color: #000000"> = </span><span style="color: #795E26">createRangeSelectorMatcher</span><span style="color: #000000">(</span><span style="color: #001080">selector</span><span style="color: #000000">)(</span><span style="color: #001080">document</span><span style="color: #000000">.</span><span style="color: #001080">body</span><span style="color: #000000">);</span>
+<span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #001080">match</span><span style="color: #000000">)</span>
+<span style="color: #008000">// ⇒ Range { startContainer: #text, startOffset: 6, endContainer: #text,</span>
+<span style="color: #008000">// endOffset: 27, … }</span>
+</code></pre>
+ </dd>
+ <dt>example</dt>
+ <dd><p>To support RangeSelectors that might themselves contain RangeSelectors,
+ recursion can be created by supplying the resulting matcher creator function
+ as the <code>createMatcher</code> parameter:</p>
+ <pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #795E26">createWhicheverMatcher</span><span style="color: #000000"> = (</span><span style="color: #001080">selector</span><span style="color: #000000">) </span><span style="color: #0000FF">=></span><span style="color: #000000"> {</span>
+<span style="color: #000000"> </span><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">innerCreateMatcher</span><span style="color: #000000"> = {</span>
+<span style="color: #000000"> </span><span style="color: #001080">TextQuoteSelector:</span><span style="color: #000000"> </span><span style="color: #001080">createTextQuoteSelectorMatcher</span><span style="color: #000000">,</span>
+<span style="color: #000000"> </span><span style="color: #001080">TextPositionSelector:</span><span style="color: #000000"> </span><span style="color: #001080">createTextPositionSelectorMatcher</span><span style="color: #000000">,</span>
+<span style="color: #000000"> </span><span style="color: #001080">RangeSelector:</span><span style="color: #000000"> </span><span style="color: #795E26">makeCreateRangeSelectorMatcher</span><span style="color: #000000">(</span><span style="color: #001080">createWhicheverMatcher</span><span style="color: #000000">),</span>
+<span style="color: #000000"> }[</span><span style="color: #001080">selector</span><span style="color: #000000">.</span><span style="color: #001080">type</span><span style="color: #000000">];</span>
+<span style="color: #000000"> </span><span style="color: #AF00DB">return</span><span style="color: #000000"> </span><span style="color: #795E26">innerCreateMatcher</span><span style="color: #000000">(</span><span style="color: #001080">selector</span><span style="color: #000000">);</span>
+<span style="color: #000000">});</span>
+</code></pre>
+ </dd>
+ </dl>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>createMatcher: <T, TMatch><span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Node</span><span class="tsd-s [...]
+ <div class="tsd-comment tsd-typography">
+ <p>The function used to process nested selectors.</p>
+ </div>
+ <ul class="tsd-parameters">
+ <li class="tsd-parameter-signature">
+ <ul class="tsd-signatures tsd-kind-type-literal tsd-has-type-parameter">
+ <li class="tsd-signature tsd-kind-icon"><T, TMatch><span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Node</span [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <h4 class="tsd-type-parameters-title">Type parameters</h4>
+ <ul class="tsd-type-parameters">
+ <li>
+ <h4>T<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a></h4>
+ </li>
+ <li>
+ <h4>TMatch<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Range</span></h4>
+ </li>
+ </ul>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>selector: <span class="tsd-signature-type">T</span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Range</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">TMatch</span><span class="tsd-signature-symbol">></span></h4>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.rangeselector.html" class="tsd-signature-type" data-tsd-kind="Interface">RangeSelector</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature- [...]
+ <p>A function that, given a RangeSelector <code>selector</code>, creates a <a href="../interfaces/selector.matcher.html">Matcher</a> function that can apply it to a given <code>scope</code>.</p>
+ <ul class="tsd-parameters">
+ <li class="tsd-parameter-signature">
+ <ul class="tsd-signatures tsd-kind-type-literal">
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.rangeselector.html" class="tsd-signature-type" data-tsd-kind="Interface">RangeSelector</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature- [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>selector: <a href="../interfaces/selector.rangeselector.html" class="tsd-signature-type" data-tsd-kind="Interface">RangeSelector</a></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Node</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Range</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Range</span><span class="tsd-signature-symbol">></span></h4>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </section>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class=" ">
+ <a href="../index.html">Exports</a>
+ </li>
+ <li class="current tsd-kind-module">
+ <a href="dom.html">dom</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="dom.html#createcssselectormatcher" class="tsd-kind-icon">create<wbr>Css<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="dom.html#createtextpositionselectormatcher" class="tsd-kind-icon">create<wbr>Text<wbr>Position<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="dom.html#createtextquoteselectormatcher" class="tsd-kind-icon">create<wbr>Text<wbr>Quote<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="dom.html#describecss" class="tsd-kind-icon">describe<wbr>Css</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="dom.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="dom.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="dom.html#highlighttext" class="tsd-kind-icon">highlight<wbr>Text</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="dom.html#makecreaterangeselectormatcher" class="tsd-kind-icon">make<wbr>Create<wbr>Range<wbr>Selector<wbr>Matcher</a>
+ </li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file
diff --git a/content/docs/api/modules/selector.html b/content/docs/api/modules/selector.html
index 4c5a7fc..a6ca813 100644
--- a/content/docs/api/modules/selector.html
+++ b/content/docs/api/modules/selector.html
@@ -1 +1,715 @@
-../../src/_layouts/default.hbs
\ No newline at end of file
+<!DOCTYPE html>
+<html prefix="og: http://ogp.me/ns#" class="default">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
+ <title>Apache Annotator (incubating)</title>
+ <meta property="og:title" content="Apache Annotator" />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://annotator.apache.org/" />
+ <meta property="og:image:url" content="https://annotator.apache.org/images/annotator-logo.svg" />
+ <meta property="og:image:alt" content="Apache Annotator (incubating) logo" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="alternate" title="DOAP" href="doap.rdf" type="application/rdf+xml" />
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <style>
+ /* Avoid TypeDoc style messing up the page around it. Why oh why did scoped CSS die? */
+ .ui.container {
+ padding: unset;
+ }
+ </style>
+ <script async src="../assets/js/search.js" id="search-script"></script>
+ <script defer src="../assets/js/main.js"></script>
+ <link rel="stylesheet" href="/css/semantic.min.css" />
+ <link rel="stylesheet" href="/css/prism-vs.css" />
+ <style>
+ html {
+ font-size: 17px;
+ }
+
+ p, pre[class*="language-"] {
+ margin: .8em 0 1.25em;
+ }
+ </style>
+</head>
+<body>
+<div class="ui borderless stackable top attached main menu">
+ <div class="ui container">
+ <a class="item" href="/" style="color: rgba(0,0,0,.87);">
+ <img class="ui small image" src="/images/annotator-logo.svg" alt="Apache Annotator (incubating)" />
+ </a>
+ <nav class="right menu">
+ <a class="item" href="/">Home</a>
+ <a class="item" href="/demo/"><span class="ui positive button">Demo!</span></a>
+ <a class="active item" href="/docs/">Documentation</a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator">Code <i class="small external icon"></i></a>
+ <a class="item" rel="external" href="https://github.com/apache/incubator-annotator/issues">Issue tracker <i class="small external icon"></i></a>
+ </nav>
+ </div>
+</div>
+<div class="ui basic segment container">
+ <nav class="ui secondary stackable pointing menu" style="justify-content: center;">
+ <div class="ui simple dropdown item">
+ Latest release (v0.2)
+ <i class="dropdown icon"></i>
+ <div class="menu" style="margin-top: -1px;">
+ <a class="item" href=".">
+ v0.2
+ </a>
+ </div>
+ </div>
+ <div class="item" style="flex-grow: 1;"></div>
+ <a href="/docs/" class="item">Overview</a>
+ <a href="/docs/getting-started/" class="item">Getting Started</a>
+ <a href="/docs/develop/" class="item">Develop</a>
+ <a href="/docs/api/" class="active item">API reference</a>
+ </nav>
+ <div class="ui basic segment container">
+ <div class="ui stackable grid">
+ <div class="eight wide column">
+ <h1>
+ API reference
+ </h1>
+ </div>
+ <div class="eight wide column">
+ <aside>
+ <style>
+ #tsd-search {
+ position: relative;
+ text-align: right;
+ }
+ #tsd-search input {
+ border: 1px solid grey;
+ border-radius: 4px;
+ padding: 0.4em;
+ }
+ #tsd-search label,
+ #tsd-search label::before,
+ #tsd-search input {
+ vertical-align: middle;
+ }
+ #tsd-search .results {
+ z-index: 1;
+ position: absolute;
+ box-shadow: 0px 20px 20px #00000066;
+ }
+ </style>
+ <div id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+ <div>
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+ <input id="tsd-search-field" type="text" />
+ </div>
+ <ul class="results">
+ <li class="state loading">Preparing search index...</li>
+ <li class="state failure">The search index is not available</li>
+ </ul>
+ </div>
+ </aside>
+ </div>
+ </div>
+ <header style="margin: 2em 0;" id="typedoc-title">
+ <style>
+ #typedoc-title h1 {
+ margin-top: 0;
+ }
+ </style>
+ <ul class="tsd-breadcrumb">
+ <li>
+ <a href="../index.html">apache-annotator</a>
+ </li>
+ <li>
+ <a href="selector.html">selector</a>
+ </li>
+ </ul>
+ <h1>Module selector</h1>
+ </header>
+ <div class="row">
+ <div class="col-8 col-content">
+ <section class="tsd-panel tsd-comment">
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>This module provides types and generic functions for handling <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#selectors" class="external">Selector</a>s.</p>
+ </div>
+ <p>Annotation tool developers should not need most of the functions contained
+ in this module, but would instead mainly use the module made for the specific
+ context (document type) they are dealing with. See <a href="dom.html">dom</a>, currently the
+ only such module.</p>
+ </div>
+ </section>
+ <section class="tsd-panel-group tsd-index-group">
+ <h2>Index</h2>
+ <section class="tsd-panel tsd-index-panel">
+ <div class="tsd-index-content">
+ <section class="tsd-index-section ">
+ <h3>Interfaces</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter"><a href="../interfaces/selector.chunk.html" class="tsd-kind-icon">Chunk</a></li>
+ <li class="tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter"><a href="../interfaces/selector.chunkrange.html" class="tsd-kind-icon">Chunk<wbr>Range</a></li>
+ <li class="tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter"><a href="../interfaces/selector.chunker.html" class="tsd-kind-icon">Chunker</a></li>
+ <li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/selector.cssselector.html" class="tsd-kind-icon">Css<wbr>Selector</a></li>
+ <li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/selector.describetextquoteoptions.html" class="tsd-kind-icon">Describe<wbr>Text<wbr>Quote<wbr>Options</a></li>
+ <li class="tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter"><a href="../interfaces/selector.matcher.html" class="tsd-kind-icon">Matcher</a></li>
+ <li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/selector.rangeselector.html" class="tsd-kind-icon">Range<wbr>Selector</a></li>
+ <li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/selector.selector-1.html" class="tsd-kind-icon">Selector</a></li>
+ <li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/selector.textpositionselector.html" class="tsd-kind-icon">Text<wbr>Position<wbr>Selector</a></li>
+ <li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/selector.textquoteselector.html" class="tsd-kind-icon">Text<wbr>Quote<wbr>Selector</a></li>
+ </ul>
+ </section>
+ <section class="tsd-index-section ">
+ <h3>Functions</h3>
+ <ul class="tsd-index-list">
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="selector.html#chunkequals" class="tsd-kind-icon">chunk<wbr>Equals</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="selector.html#chunkrangeequals" class="tsd-kind-icon">chunk<wbr>Range<wbr>Equals</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter"><a href="selector.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter"><a href="selector.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter"><a href="selector.html#makerefinable" class="tsd-kind-icon">make<wbr>Refinable</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="selector.html#textpositionselectormatcher" class="tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="selector.html#textquoteselectormatcher" class="tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher</a></li>
+ </ul>
+ </section>
+ </div>
+ </section>
+ </section>
+ <section class="tsd-panel-group tsd-member-group ">
+ <h2>Functions</h2>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
+ <a name="chunkequals" class="tsd-anchor"></a>
+ <h3>chunk<wbr>Equals</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
+ <li class="tsd-signature tsd-kind-icon">chunk<wbr>Equals<span class="tsd-signature-symbol">(</span>chunk1<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunk.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunk</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span>, chunk2<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunk.html" [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Test two <a href="../interfaces/selector.chunk.html">Chunk</a>s for equality.</p>
+ </div>
+ <p>Equality here means that both represent the same piece of text (i.e. at the
+ same position) in the file. It compares using the custom <a href="../interfaces/selector.chunk.html#equals">Chunk.equals</a>
+ method if either chunk defines one, and falls back to checking the objects’
+ identity (i.e. <code>chunk1 === chunk2</code>).</p>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>chunk1: <a href="../interfaces/selector.chunk.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunk</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h5>
+ </li>
+ <li>
+ <h5>chunk2: <a href="../interfaces/selector.chunk.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunk</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
+ <a name="chunkrangeequals" class="tsd-anchor"></a>
+ <h3>chunk<wbr>Range<wbr>Equals</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
+ <li class="tsd-signature tsd-kind-icon">chunk<wbr>Range<wbr>Equals<span class="tsd-signature-symbol">(</span>range1<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunkrange.html" class="tsd-signature-type" data-tsd-kind="Interface">ChunkRange</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span>, range2<span class="tsd-signature-symbol">: </span><a href="../interfaces/ [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Test two <a href="../interfaces/selector.chunkrange.html">ChunkRange</a>s for equality.</p>
+ </div>
+ <p>Equality here means equality of each of their four properties (i.e.
+ <a href="../interfaces/selector.chunkrange.html#startchunk">startChunk</a>, <a href="../interfaces/selector.chunkrange.html#startindex">startIndex</a>,
+ <a href="../interfaces/selector.chunkrange.html#endchunk">endChunk</a>, and <a href="../interfaces/selector.chunkrange.html#endindex">endIndex</a>).
+ For the <code>startChunk</code>s and <code>endChunk</code>s, this function uses the custom
+ <a href="../interfaces/selector.chunk.html#equals">Chunk.equals</a> method if defined.</p>
+ <p>Note that if the start/end of one range points at the end of a chunk, and the
+ other to the start of a subsequent chunk, they are not considered equal, even
+ though semantically they may be representing the same range of characters. To
+ test for such semantic equivalence, ensure that both inputs are normalised:
+ typically this means the range is shrunk to its narrowest equivalent, and (if
+ it is empty) positioned at its first equivalent.</p>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>range1: <a href="../interfaces/selector.chunkrange.html" class="tsd-signature-type" data-tsd-kind="Interface">ChunkRange</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h5>
+ </li>
+ <li>
+ <h5>range2: <a href="../interfaces/selector.chunkrange.html" class="tsd-signature-type" data-tsd-kind="Interface">ChunkRange</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a name="describetextposition" class="tsd-anchor"></a>
+ <h3>describe<wbr>Text<wbr>Position</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <li class="tsd-signature tsd-kind-icon">describe<wbr>Text<wbr>Position<TChunk><span class="tsd-signature-symbol">(</span>target<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunkrange.html" class="tsd-signature-type" data-tsd-kind="Interface">ChunkRange</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span>, scope<span class="tsd-signature-symbol">: </span><a [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Returns a <a href="../interfaces/selector.textpositionselector.html">TextPositionSelector</a> that points at the target text within
+ the given scope.</p>
+ </div>
+ <p>This is an abstract implementation of the function’s logic, which expects a
+ generic <a href="../interfaces/selector.chunker.html">Chunker</a> to represent the text, and a <a href="../interfaces/selector.chunkrange.html">ChunkRange</a> to
+ represent the target.</p>
+ <p>See <a href="dom.html#describetextposition">dom.describeTextPosition</a> for a wrapper around
+ this implementation which applies it to the text of an HTML DOM.</p>
+ </div>
+ <h4 class="tsd-type-parameters-title">Type parameters</h4>
+ <ul class="tsd-type-parameters">
+ <li>
+ <h4>TChunk<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunk.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunk</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span></h4>
+ </li>
+ </ul>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>target: <a href="../interfaces/selector.chunkrange.html" class="tsd-signature-type" data-tsd-kind="Interface">ChunkRange</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The range of characters that the selector should describe</p>
+ </div>
+ </li>
+ <li>
+ <h5>scope: <a href="../interfaces/selector.chunker.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunker</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The text, presented as a <a href="../interfaces/selector.chunker.html">Chunker</a>, which contains the
+ target range, and relative to which its position will be measured</p>
+ </div>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/selector.textpositionselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextPositionSelector</a><span class="tsd-signature-symbol">></span></h4>
+ <p>The <a href="../interfaces/selector.textpositionselector.html">TextPositionSelector</a> that describes <code>target</code> relative
+ to <code>scope</code></p>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a name="describetextquote" class="tsd-anchor"></a>
+ <h3>describe<wbr>Text<wbr>Quote</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <li class="tsd-signature tsd-kind-icon">describe<wbr>Text<wbr>Quote<TChunk><span class="tsd-signature-symbol">(</span>target<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunkrange.html" class="tsd-signature-type" data-tsd-kind="Interface">ChunkRange</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span>, scope<span class="tsd-signature-symbol">: </span><span [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Returns a <a href="../interfaces/selector.textquoteselector.html">TextQuoteSelector</a> that points at the target quote in the
+ given text.</p>
+ </div>
+ <p>The selector will contain the exact target quote. In case this quote appears
+ multiple times in the text, sufficient context around the quote will be
+ included in the selector’s <code>prefix</code> and <code>suffix</code> attributes to disambiguate.
+ By default, more prefix and suffix are included than strictly required; both
+ in order to be robust against slight modifications, and in an attempt to not
+ end halfway a word (mainly for human readability).</p>
+ <p>This is an abstract implementation of the function’s logic, which expects a
+ generic <a href="../interfaces/selector.chunker.html">Chunker</a> to represent the text, and a <a href="../interfaces/selector.chunkrange.html">ChunkRange</a> to
+ represent the target.</p>
+ <p>See <a href="dom.html#describetextquote">dom.describeTextQuote</a> for a wrapper around this
+ implementation which applies it to the text of an HTML DOM.</p>
+ </div>
+ <h4 class="tsd-type-parameters-title">Type parameters</h4>
+ <ul class="tsd-type-parameters">
+ <li>
+ <h4>TChunk<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunk.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunk</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span></h4>
+ </li>
+ </ul>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>target: <a href="../interfaces/selector.chunkrange.html" class="tsd-signature-type" data-tsd-kind="Interface">ChunkRange</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The range of characters that the selector should describe</p>
+ </div>
+ </li>
+ <li>
+ <h5>scope: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><a href="../interfaces/selector.chunker.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunker</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The text containing the target range; or, more accurately, a
+ function that produces <a href="../interfaces/selector.chunker.html">Chunker</a>s corresponding to this text.</p>
+ </div>
+ <ul class="tsd-parameters">
+ <li class="tsd-parameter-signature">
+ <ul class="tsd-signatures tsd-kind-type-literal">
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunker.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunker</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span></li>
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <h4 class="tsd-returns-title">Returns <a href="../interfaces/selector.chunker.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunker</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span></h4>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ <li>
+ <h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../interfaces/selector.describetextquoteoptions.html" class="tsd-signature-type" data-tsd-kind="Interface">DescribeTextQuoteOptions</a></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>Options to fine-tune the function’s behaviour.</p>
+ </div>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/selector.textquoteselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextQuoteSelector</a><span class="tsd-signature-symbol">></span></h4>
+ <p>The <a href="../interfaces/selector.textquoteselector.html">TextQuoteSelector</a> that describes <code>target</code>.</p>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a name="makerefinable" class="tsd-anchor"></a>
+ <h3>make<wbr>Refinable</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <li class="tsd-signature tsd-kind-icon">make<wbr>Refinable<TSelector, TScope, TMatch><span class="tsd-signature-symbol">(</span>matcherCreator<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TSelector</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><a href="../interfaces/selector.matcher.html" class="tsd- [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Wrap a matcher creation function so that it supports refinement of selection.</p>
+ </div>
+ <p>See <a href="https://www.w3.org/TR/2017/REC-annotation-model-20170223/#refinement-of-selection" class="external">§4.2.9 Refinement of Selection</a> in the Web Annotation Data Model.</p>
+ </div>
+ <h4 class="tsd-type-parameters-title">Type parameters</h4>
+ <ul class="tsd-type-parameters">
+ <li>
+ <h4>TSelector<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.selector-1.html" class="tsd-signature-type" data-tsd-kind="Interface">Selector</a><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-symbol">{ </span>refinedBy<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">TSelector</span><span class="tsd-signature-symbol"> }</span></h4>
+ </li>
+ <li>
+ <h4>TScope</h4>
+ </li>
+ <li>
+ <h4>TMatch</h4>
+ </li>
+ </ul>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>matcherCreator: <span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TSelector</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TScope</span><span class="tsd-signatu [...]
+ <div class="tsd-comment tsd-typography">
+ <p>The function to wrap; it will be executed both for
+ <a href="../interfaces/selector.selector-1.html">Selector</a>s passed to the returned wrapper function, and for any
+ refining Selector those might contain (and any refinement of that, etc.).</p>
+ </div>
+ <ul class="tsd-parameters">
+ <li class="tsd-parameter-signature">
+ <ul class="tsd-signatures tsd-kind-type-literal">
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TSelector</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TScope</span><span [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>selector: <span class="tsd-signature-type">TSelector</span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TScope</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">TMatch</span><span class="tsd-signature-symbol">></span></h4>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TSelector</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TScope</span><span cl [...]
+ <ul class="tsd-parameters">
+ <li class="tsd-parameter-signature">
+ <ul class="tsd-signatures tsd-kind-type-literal">
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TSelector</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TScope</span><span cl [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>selector: <span class="tsd-signature-type">TSelector</span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <a href="../interfaces/selector.matcher.html" class="tsd-signature-type" data-tsd-kind="Interface">Matcher</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TScope</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">TMatch</span><span class="tsd-signature-symbol">></span></h4>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
+ <a name="textpositionselectormatcher" class="tsd-anchor"></a>
+ <h3>text<wbr>Position<wbr>Selector<wbr>Matcher</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
+ <li class="tsd-signature tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher<span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.textpositionselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextPositionSelector</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><TChunk><span class="tsd-signature-symbol">(</span>scope<span class="tsd-signat [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Find the range of text corresponding to the given <a href="../interfaces/selector.textpositionselector.html">TextPositionSelector</a>.</p>
+ </div>
+ <p>This is an abstract implementation of the function’s logic, which expects a
+ generic <a href="../interfaces/selector.chunker.html">Chunker</a> to represent the text, and returns an (async)
+ generator producing a single <a href="../interfaces/selector.chunkrange.html">ChunkRange</a> to represent the match.
+ (unlike e.g. TextQuoteSelector, it cannot result in multiple matches).</p>
+ <p>See <a href="dom.html#createtextpositionselectormatcher">dom.createTextPositionSelectorMatcher</a> for a
+ wrapper around this implementation which applies it to the text of an HTML
+ DOM.</p>
+ <p>The function is curried, taking first the selector and then the text.</p>
+ <dl class="tsd-comment-tags">
+ <dt>example</dt>
+ <dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">selector</span><span style="color: #000000"> = { </span><span style="color: #001080">type:</span><span style="color: #000000"> </span><span style="color: #A31515">'TextPositionSelector'</span><span style="color: #000000">, </span><span style="color: #001080">start:</span><span style="color: #000000"> </span><span style="color: #098658">702</span><s [...]
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">matches</span><span style="color: #000000"> = </span><span style="color: #795E26">textPositionSelectorMatcher</span><span style="color: #000000">(</span><span style="color: #001080">selector</span><span style="color: #000000">)(</span><span style="color: #001080">textChunks</span><span style="color: #000000">);</span>
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">match</span><span style="color: #000000"> = (</span><span style="color: #AF00DB">await</span><span style="color: #000000"> </span><span style="color: #001080">matches</span><span style="color: #000000">.</span><span style="color: #795E26">next</span><span style="color: #000000">()).</span><span style="color: #001080">value</span><span style="color: #000000">;</span>
+<span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #001080">match</span><span style="color: #000000">);</span>
+<span style="color: #008000">// ⇒ { startChunk: { … }, startIndex: 64, endChunk: { … }, endIndex: 98 }</span>
+</code></pre>
+ </dd>
+ </dl>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>selector: <a href="../interfaces/selector.textpositionselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextPositionSelector</a></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>the <a href="../interfaces/selector.textpositionselector.html">TextPositionSelector</a> to be anchored</p>
+ </div>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <TChunk><span class="tsd-signature-symbol">(</span>scope<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunker.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunker</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span> [...]
+ <p>a <a href="../interfaces/selector.matcher.html">Matcher</a> function that applies <code>selector</code> to a given text</p>
+ <ul class="tsd-parameters">
+ <li class="tsd-parameter-signature">
+ <ul class="tsd-signatures tsd-kind-type-literal tsd-has-type-parameter">
+ <li class="tsd-signature tsd-kind-icon"><TChunk><span class="tsd-signature-symbol">(</span>scope<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunker.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunker</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span> [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <h4 class="tsd-type-parameters-title">Type parameters</h4>
+ <ul class="tsd-type-parameters">
+ <li>
+ <h4>TChunk<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunk.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunk</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
+ </li>
+ </ul>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>scope: <a href="../interfaces/selector.chunker.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunker</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">AsyncGenerator</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/selector.chunkrange.html" class="tsd-signature-type" data-tsd-kind="Interface">ChunkRange</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">void</span> [...]
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module">
+ <a name="textquoteselectormatcher" class="tsd-anchor"></a>
+ <h3>text<wbr>Quote<wbr>Selector<wbr>Matcher</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
+ <li class="tsd-signature tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher<span class="tsd-signature-symbol">(</span>selector<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.textquoteselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextQuoteSelector</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><TChunk><span class="tsd-signature-symbol">(</span>scope<span class="tsd-signature-symbo [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Find occurrences in a text matching the given <a href="../interfaces/selector.textquoteselector.html">TextQuoteSelector</a>.</p>
+ </div>
+ <p>This performs an exact search the selector’s quote (including prefix and
+ suffix) within the given text.</p>
+ <p>Note the match is based on strict character-by-character equivalence, i.e.
+ it is sensitive to whitespace, capitalisation, etc.</p>
+ <p>This is an abstract implementation of the function’s logic, which expects a
+ generic <a href="../interfaces/selector.chunker.html">Chunker</a> to represent the text, and returns an (async)
+ generator of <a href="../interfaces/selector.chunkrange.html">ChunkRange</a>s to represent the matches.</p>
+ <p>See <a href="dom.html#createtextquoteselectormatcher">dom.createTextQuoteSelectorMatcher</a> for a
+ wrapper around this implementation which applies it to the text of an HTML
+ DOM.</p>
+ <p>The function is curried, taking first the selector and then the text.</p>
+ <p>As there may be multiple matches for a given selector (when its prefix and
+ suffix attributes are not sufficient to disambiguate it), the matcher will
+ return an (async) generator that produces each match in the order they are
+ found in the text.</p>
+ <p><em>XXX Modifying the Chunks while the search is still running can mess up and
+ result in an error or an infinite loop. See <a href="https://github.com/apache/incubator-annotator/issues/112">issue #112</a>.</em></p>
+ <dl class="tsd-comment-tags">
+ <dt>example</dt>
+ <dd><pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">selector</span><span style="color: #000000"> = { </span><span style="color: #001080">type:</span><span style="color: #000000"> </span><span style="color: #A31515">'TextQuoteSelector'</span><span style="color: #000000">, </span><span style="color: #001080">exact:</span><span style="color: #000000"> </span><span style="color: #A31515">'banana� [...]
+<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">matches</span><span style="color: #000000"> = </span><span style="color: #795E26">textQuoteSelectorMatcher</span><span style="color: #000000">(</span><span style="color: #001080">selector</span><span style="color: #000000">)(</span><span style="color: #001080">textChunks</span><span style="color: #000000">);</span>
+<span style="color: #AF00DB">for</span><span style="color: #000000"> </span><span style="color: #AF00DB">await</span><span style="color: #000000"> (</span><span style="color: #001080">match</span><span style="color: #000000"> </span><span style="color: #0000FF">of</span><span style="color: #000000"> </span><span style="color: #001080">matches</span><span style="color: #000000">) </span><span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #79 [...]
+<span style="color: #008000">// ⇒ { startChunk: { … }, startIndex: 187, endChunk: { … }, endIndex: 193 }</span>
+<span style="color: #008000">// ⇒ { startChunk: { … }, startIndex: 631, endChunk: { … }, endIndex: 637 }</span>
+</code></pre>
+ </dd>
+ </dl>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>selector: <a href="../interfaces/selector.textquoteselector.html" class="tsd-signature-type" data-tsd-kind="Interface">TextQuoteSelector</a></h5>
+ <div class="tsd-comment tsd-typography">
+ <p>The <a href="../interfaces/selector.textquoteselector.html">TextQuoteSelector</a> to be anchored</p>
+ </div>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <TChunk><span class="tsd-signature-symbol">(</span>scope<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunker.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunker</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span> [...]
+ <p>a <a href="../interfaces/selector.matcher.html">Matcher</a> function that applies <code>selector</code> to a given text</p>
+ <ul class="tsd-parameters">
+ <li class="tsd-parameter-signature">
+ <ul class="tsd-signatures tsd-kind-type-literal tsd-has-type-parameter">
+ <li class="tsd-signature tsd-kind-icon"><TChunk><span class="tsd-signature-symbol">(</span>scope<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunker.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunker</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span> [...]
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <h4 class="tsd-type-parameters-title">Type parameters</h4>
+ <ul class="tsd-type-parameters">
+ <li>
+ <h4>TChunk<span class="tsd-signature-symbol">: </span><a href="../interfaces/selector.chunk.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunk</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
+ </li>
+ </ul>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>scope: <a href="../interfaces/selector.chunker.html" class="tsd-signature-type" data-tsd-kind="Interface">Chunker</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">AsyncGenerator</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/selector.chunkrange.html" class="tsd-signature-type" data-tsd-kind="Interface">ChunkRange</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TChunk</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">void</span> [...]
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </section>
+ </section>
+ </div>
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+ <nav class="tsd-navigation primary">
+ <ul>
+ <li class=" ">
+ <a href="../index.html">Exports</a>
+ </li>
+ <li class=" tsd-kind-module">
+ <a href="dom.html">dom</a>
+ </li>
+ <li class="current tsd-kind-module">
+ <a href="selector.html">selector</a>
+ </li>
+ </ul>
+ </nav>
+ <nav class="tsd-navigation secondary menu-sticky">
+ <ul class="before-current">
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../interfaces/selector.chunk.html" class="tsd-kind-icon">Chunk</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../interfaces/selector.chunkrange.html" class="tsd-kind-icon">Chunk<wbr>Range</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../interfaces/selector.chunker.html" class="tsd-kind-icon">Chunker</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="../interfaces/selector.cssselector.html" class="tsd-kind-icon">Css<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="../interfaces/selector.describetextquoteoptions.html" class="tsd-kind-icon">Describe<wbr>Text<wbr>Quote<wbr>Options</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="../interfaces/selector.matcher.html" class="tsd-kind-icon">Matcher</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="../interfaces/selector.rangeselector.html" class="tsd-kind-icon">Range<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="../interfaces/selector.selector-1.html" class="tsd-kind-icon">Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="../interfaces/selector.textpositionselector.html" class="tsd-kind-icon">Text<wbr>Position<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-interface tsd-parent-kind-module">
+ <a href="../interfaces/selector.textquoteselector.html" class="tsd-kind-icon">Text<wbr>Quote<wbr>Selector</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="selector.html#chunkequals" class="tsd-kind-icon">chunk<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="selector.html#chunkrangeequals" class="tsd-kind-icon">chunk<wbr>Range<wbr>Equals</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.html#describetextposition" class="tsd-kind-icon">describe<wbr>Text<wbr>Position</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.html#describetextquote" class="tsd-kind-icon">describe<wbr>Text<wbr>Quote</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter">
+ <a href="selector.html#makerefinable" class="tsd-kind-icon">make<wbr>Refinable</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="selector.html#textpositionselectormatcher" class="tsd-kind-icon">text<wbr>Position<wbr>Selector<wbr>Matcher</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-module">
+ <a href="selector.html#textquoteselectormatcher" class="tsd-kind-icon">text<wbr>Quote<wbr>Selector<wbr>Matcher</a>
+ </li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </div>
+</div>
+<footer class="ui bottom attached segment">
+ <div class="ui container">
+ <div class="ui equal height divided stackable grid">
+ <div class="four wide column">
+ <a class="ui left floated medium image" href="https://apache.org/" target="_blank">
+ <img src="https://incubator.apache.org/images/incubator_feather_egg_logo_sm.png" alt="logo of the Apache Incubator" />
+ </a>
+ <p>
+ <em>Copyright © 2016-2018 The Apache Software Foundation, Licensed under
+ the <a href="https://www.apache.org/licenses/LICENSE-2.0" rel="license external">Apache License, Version 2.0</a>.
+ |
+ <a rel="external" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy</a>
+ </em>
+ </p>
+ </div>
+ <div class="nine wide column">
+ <p>
+ <em>Apache Annotator is an effort undergoing incubation at <a target="_blank" href="https://apache.org/">The Apache Software Foundation (ASF)</a> sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completen [...]
+ <p><em>Apache®, the names of Apache projects, and the feather logo are either <a rel="external" href="https://www.apache.org/foundation/marks/list/">registered trademarks or trademarks</a> of the Apache Software Foundation in the United States and/or other countries.</em></p>
+ </div>
+ <div class="three wide column">
+ <h4 class="header">The <abbr title="Apache Software Foundation">ASF</abbr></h4>
+ <div class="ui link list">
+ <a class="item" rel="external" href="https://incubator.apache.org/">Apache Incubator</a>
+ <a class="item" rel="external" href="https://www.apache.org/">About the ASF</a>
+ <a class="item" rel="external" href="https://www.apache.org/events/current-event">Events</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
+ <a class="item" rel="external" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+ <a class="item" rel="external" href="https://www.apache.org/security/">Security</a>
+ <a class="item" rel="external" href="https://www.apache.org/licenses/">License</a>
+ </div>
+ </div>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
\ No newline at end of file