Comments (5)
Now I found that I can import and use three js through npm in this way:
npm install three
in js file:
var THREE = require('three');
var scene = new THREE.Scene();
console.log(scene);
from giojs.
from giojs.
- Cool. I'm glad you finally agreed on managing THREE with npm.
- You probably want to try "stats.js" by using
npm install stats.js
to check if the stats.js still work. - I'll try something on my local branch.
from giojs.
Well, though the method work for creating new THREE to the new file, the previous existed THREE or THREE related objects do not work in the module.
i.e. after running the script to build the module, it still has the THREE is not defined error.
Further more, I tried to import three in the "src/Gio.js" file as import {} from "three"
, but it still doesn't work.
from giojs.
using roll to generate module.js now.
from giojs.
Related Issues (20)
- Hello, can I rotate automatically? HOT 2
- How to change giojs to transparent background HOT 6
- Line connect should use in and out longitude and latitude instead of country
- Performs really well, but doesn't look better than Googles webgl-globe 10 years ago! HOT 3
- Globe not showing up for examples
- Change color of ocean HOT 3
- expand between provinces within one country
- Want to change the mentioned brightness by different country.
- Expose CountryData
- Trigger onCountryPicked() when switchCountry() is called HOT 1
- Smooth rotation in mobile view
- Rotate globe on web HOT 2
- 有vue版吗 HOT 1
- Error: Element ref was specified as a string (container) but no owner was set.
- Error on Setup HOT 1
- Please Update the Source Code HOT 5
- Different color for mentioned countries
- Error on `npm start`
- Cannot read property 'center' of undefined HOT 1
- Cannot use v2 functions (i.e. Transparent Background)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from giojs.