yomichan/ext/js
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
..
accessibility TextSource* API updates (#2236) 2022-09-25 09:37:33 -04:00
app TextSource* API updates (#2236) 2022-09-25 09:37:33 -04:00
background API loadExtensionScripts (#2233) 2022-09-24 16:41:21 -04:00
comm API loadExtensionScripts (#2233) 2022-09-24 16:41:21 -04:00
data Exclude documentElement from zoom calculation (#2227) 2022-09-20 21:06:39 -04:00
debug Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
display DocumentUtil static (#2232) 2022-09-24 16:05:19 -04:00
dom TextSource* API updates (#2236) 2022-09-25 09:37:33 -04:00
extension HTML page script refactoring (#2162) 2022-05-28 21:57:25 -04:00
general ESlint JSdoc (#2148) 2022-05-20 10:28:38 -04:00
input ESlint JSdoc (#2148) 2022-05-20 10:28:38 -04:00
language TextSource* API updates (#2236) 2022-09-25 09:37:33 -04:00
media ArrayBufferUtil (#2215) 2022-08-20 12:53:22 -04:00
pages TextSource* API updates (#2236) 2022-09-25 09:37:33 -04:00
script Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
templates ESlint JSdoc (#2148) 2022-05-20 10:28:38 -04:00
core.js ESlint JSdoc (#2148) 2022-05-20 10:28:38 -04:00
yomichan.js ESlint JSdoc (#2148) 2022-05-20 10:28:38 -04:00