yomichan/ext/js/dom
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 Regex optimizations (#2132) 2022-05-14 18:13:04 -04:00
document-focus-controller.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
document-util.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
dom-data-binder.js Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
dom-text-scanner.js Update copyright date (#2062) 2022-02-02 20:43:10 -05: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 Update copyright date (#2062) 2022-02-02 20:43:10 -05:00
simple-dom-parser.js Regex optimizations (#2132) 2022-05-14 18:13:04 -04:00
text-source-element.js Popup positioning improvements (#2135) 2022-05-16 21:45:22 -04:00
text-source-range.js Popup positioning improvements (#2135) 2022-05-16 21:45:22 -04:00