You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2020/09/10 15:18:22 UTC

[incubator-annotator] 01/01: Merge pull request #88 from apache/range-as-dom-scope

This is an automated email from the ASF dual-hosted git repository.

randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit 267bbcba60264efc6de28f0c67427931ba8bb2b5
Merge: 0121bd2 1d8ca69
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu Sep 10 08:18:14 2020 -0700

    Merge pull request #88 from apache/range-as-dom-scope
    
    Restrict DOM scopes to be instances of Range

 .eslintrc.js                                       |  1 -
 packages/dom/src/css.ts                            | 19 +++++--
 packages/dom/src/highlight-range.ts                |  6 +--
 packages/dom/src/{types.ts => owner-document.ts}   | 10 ++--
 packages/dom/src/range/match.ts                    | 17 +++---
 packages/dom/src/scope.ts                          | 39 --------------
 packages/dom/src/text-quote/describe.ts            | 62 ++++++++++------------
 packages/dom/src/text-quote/match.ts               | 20 ++++---
 .../test/highlight-range/highlight-range.test.ts   |  2 +-
 packages/dom/test/text-quote/describe.test.ts      |  8 ++-
 packages/dom/test/text-quote/match.test.ts         | 35 +++++++++---
 web/demo/index.js                                  |  5 +-
 12 files changed, 105 insertions(+), 119 deletions(-)