hi, i'm so lucky to find this 3d-force-graph, it quite a help for my usecase, but i'm a noob of js, can i get some help to a primary problem when using this lib?
i wish to devide js code from html, how should i organize the the project to rightly import third party libs besides 3d-force-graph?
the above index.html could work directly in browser.
i wish to devide the js code from html for a better extending, and tried different kinds of import writings, but cannot make it works.
below is one of my attempts
hi, i'm so lucky to find this
3d-force-graph
, it quite a help for my usecase, but i'm a noob ofjs
, can i get some help to a primary problem when using this lib?i wish to devide js code from html, how should i organize the the project to rightly import third party libs besides
3d-force-graph
?i modified the official demo https://github.com/vasturiano/3d-force-graph/blob/master/example/bloom-effect/index.html
to the following
index.html
the above
index.html
could work directly in browser.i wish to devide the
js
code fromhtml
for a better extending, and tried different kinds ofimport
writings, but cannot make it works. below is one of my attemptsand corresponding
js
and i tried moving the
import
parts different places and found no clue to make it works. can i get some advice? thanks