Comments (1)
A quick response, as I (nor others, it seems) get around to look further at your issue. From your description it’s not clear to me what you mean. If you mean to create a TextPositionSelector, see the describeTextPosition. Best to get the position of the selection before highlighting it (if you do both), because the highlighter will modify the dom and thereby the selection.
If you mean position as in coordinates on the page, you can get those from the browser’s APIs, e.g. Range.getBoundingClientRect
. I hope that helps.
from incubator-annotator.
Related Issues (20)
- range.startContainer is undefined HOT 5
- TextQuoteSelector selector yielding an infinite number of matches HOT 2
- Can't use after installing via npm (without webpack or similar) HOT 10
- Can't build on windows HOT 5
- Turn AsyncGenerators into Generators HOT 5
- Monthly calls HOT 5
- Accumulation of mark elements because text nodes not cleaned up HOT 3
- Fragment selector for PDFs + PDF.js integration
- For some webpages when highlighting a text, the text is splitted HOT 3
- Don’t find/highlight text inside <textarea> elements (or other invalid parents for a <mark>). HOT 2
- Data Model validation as API HOT 1
- @apache-annotator/dom not updated on NPM HOT 3
- Betterlogzmax
- Update dependencies (0.3.0)
- Set up automated build using GitHub actions
- Include info on how to build in the README
- Provide template files for GitHub issues and PRs
- Drop yarn in favor of npm
- Drop the entanglement of dependency fetching as part of the build HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-annotator.