yomichan/ext/js/dom
toasted-nutbread 75d3059451
TextSource* API updates (#2236)
* Move TextSourceRange static functions to DocumentUtil

getWritingMode is also simplified

* Update Google Docs range to be empty to match other range sources

* Rename imposterContainer to imposterElement

* Add static creation functions

* Add static creation function

* Remove unused collapse function

* Don't select imposter elements

* Refactor setEndOffset

* Adjust argument order for setEndOffset

* Update TextSourceRange constructor

* Remove unused isConnected

* Cache rects

* Fix test

* Remove unused getRect

* Revert "Fix test"

* Remove cachedRect

* Use the source element rect to handle scroll differences

* Writing mode update

* Remove _cachedRects update

This shouldn't be necessary as the imposter is usually detached
almost immediately after scanning, giving no time for the window
to be resized or scrolled.
2022-09-25 09:37:33 -04:00
..
sandbox Use \f rather than \x0C for whitespace form feed (#2158) 2022-05-22 13:11:38 -04:00
document-focus-controller.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
document-util.js TextSource* API updates (#2236) 2022-09-25 09:37:33 -04:00
dom-data-binder.js Add support for Anki API key (#2169) 2022-05-30 12:03:24 -04:00
dom-text-scanner.js New StringUtil (#2216) 2022-08-20 13:11:38 -04:00
html-template-collection.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
native-simple-dom-parser.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
panel-element.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
popup-menu.js Popup positioning improvements (#2135) 2022-05-16 21:45:22 -04:00
scroll-element.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
selector-observer.js ESlint JSdoc (#2148) 2022-05-20 10:28:38 -04:00
simple-dom-parser.js Use \f rather than \x0C for whitespace form feed (#2158) 2022-05-22 13:11:38 -04:00
text-source-element.js TextSource* API updates (#2236) 2022-09-25 09:37:33 -04:00
text-source-range.js TextSource* API updates (#2236) 2022-09-25 09:37:33 -04:00