.htmlElementsData() and .htmlElement() causes an uncaught type error - missing definition?
divljikunic opened this issue · 2 comments
divljikunic commented
Using .htmlElementsData() and .htmlElement() causes a "Uncaught TypeError: ...is not a function"
Going to the definition in "three-globe.d.ts", nothing resembling those functions exists there. As per the docs, there are hexes, polygons, custom layers etc. but no html elements.
Steps to reproduce the behavior:
- initialize an instance of ThreeGlobe() and try using the .htmlElementsData() or .htmlElement()
vasturiano commented
@divljikunic thanks for reaching out.
The type definitions should be there:
Lines 264 to 276 in bc84922
Are you using a recent version of the package?
divljikunic commented
I did an 'npm update' and the error is indeed gone! Thank you.
I had installed the package just recently, so it didn't occur to me this could even be an issue.