Add a dumb renderer to get coordinates

FlatRenderer positions items on a single row, giving each a height and width of
1.

Added getBoundingClientRect to the DOMelement which, when requested for the
first time, will place the item in with the renderer.

The goal here is to give elements a fixed position and to make it easy to map
x,y coordinates onto an element. This should work, at least with puppeteer,
since it first requests the boundingClientRect before issuing a click.
This commit is contained in:
Karl Seguin
2025-04-01 17:51:33 +08:00
parent 647575261e
commit 0253de80de
10 changed files with 285 additions and 23 deletions