yomichan/ext/js
toasted-nutbread 63d37c872b
Popup positioning improvements (#2135)
* Rename elementRect to sourceRect

* Add getRects function to TextSourceElement and TextSourceRange

* Add jsdocs

* Remove unnecessary valid parameter

* Remove default parameter

* Make optionsContext optional

* Remove unnecessary checks

* Update sourceRect to use left/right rather than x/y

* Update the return type of Popup*.getFrameRect

* Rename some unrelated rect vars for disambiguation

* Disambiguate between Popup.Rect and Popup.ValidRect

* Move sourceRect destructuring

* Pass multiple source rects

* Simplify

* Change Rect to use right/bottom rather than width/height

* Update how popup offset is applied

* Simplify frame offset

* Remove _applyFrameOffset

* Use right/bottom rather than width/height

* Simplify some positioning settings

* Update parameter names for clarity

* Fix typos

* Refactor data type for _getPosition* functions

* Support using multiple source rects

* Combine _getPosition functions

* Refactor

* Expose after dataset value

* Consistently use this's property

* Add jsdoc
2022-05-16 21:45:22 -04:00
..
accessibility Workaround for Google Docs canvas rendering updates (#2096) 2022-04-02 09:38:40 -04:00
app Popup positioning improvements (#2135) 2022-05-16 21:45:22 -04:00
background Improve Anki storeMediaFile (#2084) 2022-03-13 21:17:41 -04:00
comm Update ClipboardReader.getImage implementation (#2085) 2022-03-13 21:17:48 -04:00
data Hide popup on cursor exit (#2109) 2022-04-03 22:52:53 -04:00
debug Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
display Popup positioning improvements (#2135) 2022-05-16 21:45:22 -04:00
dom Popup positioning improvements (#2135) 2022-05-16 21:45:22 -04:00
general Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
input Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
language Text scanner event capture (#2101) 2022-04-02 13:10:39 -04:00
media Rename MediaLoader to DisplayContentManager (#2087) 2022-03-14 21:42:33 -04:00
pages Add additional Anki card marker aliases (#2083) 2022-03-13 21:17:35 -04:00
script Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
templates Structured content auto language (#2131) 2022-05-14 18:12:57 -04:00
core.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
yomichan.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00