Feature Request: HTML Annotations #451
Labels
enhancement
New feature or request
v7
Issues related to Pixi React v7
v8
Issues related to Pixi React v8
Description
When using pixi-react to create Sprites, I would like to get the position of those sprites in order to place HTML annotations / hotspots on top of them.
By position, I am referring to the position from the top-left of the browser's viewport in px, not the position within the canvas element. Such that, I can then use those px values to position my HTML annotation element via CSS.
Does Pixi.js and/or pixi-react provide any functionality for this? I am looking for either a simple way to get the position of a sprite as described above, or - even better - an
<HTML>
Pixi Component that allows me to straightforwardly add HTML to a Sprite and that keeps the positions in sync when the Sprite or its Container or Viewport (plugin) is moved around.React-Three-Fibre offers this functionality in a very convenient way, see HTML Annotations: https://codesandbox.io/s/zu2wo
Could pixi-react do something similar?
The text was updated successfully, but these errors were encountered: