naver / egjs-view360

360 integrated viewing solution
https://naver.github.io/egjs-view360/
MIT License
500 stars 90 forks source link

Frontend hotspot #414

Closed Roxcsas closed 1 year ago

Roxcsas commented 1 year ago

Hi, im using @egjs/ngx-view360: ^4.0.0-beta.5 and im trying to create an interface on front-end where the user can click and make an hotspot but im having problems on getting the position for the hotspot from the click on the canvas.

WoodNeck commented 1 year ago

Hello @Roxcsas

First of all, we don't provide API for adding hotspots at the moment, so creating such a feature might be tricky. But here's how to do it:

It requires module gl-matrix additionally, which is actually our dependency so you can just add that to your dependency (simply by installing it).

npm i --save gl-matrix
Roxcsas commented 1 year ago

It worked, thanks!