jeromeetienne / threex.domevents

three.js extension which provide dom events inside your 3d scene.

Home Page:http://jeromeetienne.github.io/threex.domevents/examples/demo.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use THREEx in an Angular Project

liuzzom opened this issue · comments

Hi.
I'm trying to use this library in an Angular project (you can find the code here ). I installed the library using npm install --save threex.domevents but I can't import in my .ts file. I tried to use import {THREEx} from 'threex.domevents' but it does not work.

I also tried to download the threex.domevents.js file from this repository and use it. I can do the import but it seems that the event listeners that I add don't work.

How can I import and use the library into the project? Thanks

Did you solve this problem?

I have same issue, Do any one solved this problem?