Playground
Edit the code of an example and see the result.
Try your own code
Edit the code in the HTML, JavaScript and CSS tabs, and the result updates after a short pause.
Reset restores the example, and Copy copies the code of the open tab. Examples
import the library as @tlindig/position-calculator; the same build that is documented on these pages
runs here. The panel Calculated values shows the result of the last calculate() call
of the example.
Try this: Move the pointer over the dashed box, or touch it with a finger: a speech bubble follows. Go towards the right or bottom edge: the bubble jumps to the other side and its tail changes the corner. The Calculated values show the placement (itemAt). In the JavaScript tab, remove flip and stick and try again.
Calculated values