You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the three.js library has some missing functions in the externs file, but I´ve yet to understand the proper way to encode the functions that are missing in the externs file. Here is what I am experiencing:
I have the following Three.js code:
(let [r (THREE.WebGLRenderer. #js {"canvas" canvas-el
"antialias" true
"alpha" true})]
(.setClearColor r 0xffffff 0)
(.setSize r width height)
r)
This works fine in non-advanced compilation but fails when using :advanced.
I figured it out, there are indeed lots of functions and variables missing in the three.js externs file. I'll submit a pull request once I find a way to automatically identify the missing elements.
No. So probably didn't use the affected stuff. Three.js seems to be problematic for extern generators: issue Even if I didn't use that generator here. Maybe the missing stuff has to be added manually.
I think the three.js library has some missing functions in the externs file, but I´ve yet to understand the proper way to encode the functions that are missing in the externs file. Here is what I am experiencing:
I have the following Three.js code:
This works fine in non-advanced compilation but fails when using :advanced.
This is what is generated with :advanced
This is the error in the browser console:
The three.ext.js file contains the following:
The three.js file contains the following:
How is the externs file supposed to look like in order to keep the setClearColor function?
The text was updated successfully, but these errors were encountered: