yomichan/ext/js/display
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
..
sandbox Ignore DOMExceptions thrown by assigning an invalid dataset property (#2133) 2022-05-14 18:16:13 -04:00
display-anki.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
display-audio.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
display-content-manager.js Structured content links (#2089) 2022-03-17 19:01:59 -04:00
display-generator.js Structured content auto language (#2131) 2022-05-14 18:12:57 -04:00
display-history.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
display-notification.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
display-profile-selection.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
display-resizer.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
display.js Popup positioning improvements (#2135) 2022-05-16 21:45:22 -04:00
element-overflow-controller.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
option-toggle-hotkey-handler.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
popup-main.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
query-parser.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
search-action-popup-controller.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
search-display-controller.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
search-main.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
search-persistent-state-controller.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00