# giojs **Repository Path**: webglset/giojs ## Basic Information - **Project Name**: giojs - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-03 - **Last Updated**: 2021-03-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
English | 中文
React Version: react-giojs
Wechat minigame: wechat usage
**Gio.js** is an open source library for web 3D globe data visualization built with Three.js. What makes Gio.js different is that it is **simple** to use Gio.js to **customize** a 3D data visualization model in a declarative way, add your own data, and integrate it into your own **modern** web application.
##
## API List
**[➡ `configure`(json)](http://giojs.org/html/docs/configureAPI.html)**
Configure the controller.
**[➡ `setInitCountry(ISOCode, default: 'CN')`](http://giojs.org/html/docs/designInitCountry.html)**
Set the country initially selected.
**[➡ `lightenMentioned(boolean, default: 'false')`](http://giojs.org/html/docs/designLightenMen.html)**
Makes the mentioned country brighter than those not mentioned in the input dataset.
**[➡ `disableUnmentioned(boolean, default: 'false')`](http://giojs.org/html/docs/designDisableUnmen.html)**
Disables an unmentioned country and makes it unselectable.
**[➡ `showInOnly(boolean, default: 'false')`](http://giojs.org/html/docs/designShowOnly.html)**
Displays only the line with data flowing into the selected country.
**[➡ `showOutOnly(boolean, default: 'false')`](http://giojs.org/html/docs/designShowOnly.html)**
Displays only the line with data flowing out of the selected country.
**[➡ `addHalo(string)`](http://giojs.org/html/docs/designHalo.html)**
Enables the halo around the earth. When enabling halo, the color of halo also can be specified.
**[➡ `removeHalo()`](http://giojs.org/html/docs/designHalo.html)**
Disables the halo around the earth.
**[➡ `enableStats()`](http://giojs.org/html/docs/designStats.html)**
Displays stats on the upper-left corner of the scene.
**[➡ `disableStats()`](http://giojs.org/html/docs/designStats.html)**
Hides stats on the upper-left corner of the scene.
**[➡ `setTransparentBackground()`](http://giojs.org/html/docs/designTransparent.html)**
Make default background transparent.
**[➡ `setAutoRotation()`](https://giojs.org/html/docs/designRotation.html)**
Make globe rotate automatically.
**[➡ `setStyle(string)`](http://giojs.org/html/docs/colorStyle.html)**
Sets the color scheme of the 3D globe by name.
**[➡ `setSurfaceColor(string, default: '#ffffff')`](http://giojs.org/html/docs/colorSurface.html)**
Sets the color of the surface the 3D globe.
**[➡ `setSelectedColor(string, default: '#ffffff')`](http://giojs.org/html/docs/colorSelected.html)**
Sets color of the country in selected state.
**[➡ `setExportColor(string, default: '#DD380C')`](http://giojs.org/html/docs/colorExport.html)**
Sets the color of out line.
**[➡ `setImportColor(string, default: '#154492')`](http://giojs.org/html/docs/colorImport.html)**
Sets the color of in line.
**[➡ `setHaloColor(string, default: '#ffffff')`](http://giojs.org/html/docs/colorHalo.html)**
Sets the color of the Halo.
**[➡ `setBackgroundColor(string, default: '#000000')`](http://giojs.org/html/docs/colorBackground.html)**
Sets the color of the background.
**[➡ `adjustOceanBrightness(float, default: 0.5)`](http://giojs.org/html/docs/colorOceanBr.html)**
Sets the brightness of the ocean.
**[➡ `adjustRelatedBrightness(float, default: 0.5)`](http://giojs.org/html/docs/colorRelatedBr.html)**
Sets the brightness of the related country.
**[➡ `adjustMentionedBrightness(float, default: 0.5)`](http://giojs.org/html/docs/colorMenBr.html)**
Sets the brightness of the mentioned country.
**[➡ `addData(json)`](http://giojs.org/html/docs/dataAdd.html)**
Loads data to the controller of Gio and overrides previous data synchronously.
**[➡ `clearData()`](http://giojs.org/html/docs/dataClear.html)**
Clear data in the globe, and remove spline system and moving particle.
**[➡ `switchDataSet()`](http://giojs.org/html/docs/dataSwitchSet.html)**
switch data set when a data group is added.
**[➡ `addDataAsync(url, callback)`](http://giojs.org/html/docs/dataAddAsync.html)**
Loads data to the controller of Gio and overrides previous data asynchronously.
**[➡ `liveLoad(url, callback, duration)`](http://giojs.org/html/docs/dataLiveLoad.html)**
Loads data to the controller periodically.
**[➡ `closeLiveLoader()`](http://giojs.org/html/docs/dataLiveLoad.html)**
Close live load function.
**[➡ `getScene()`](http://giojs.org/html/docs/interfaceThree.html)**
Get the reference of three.js scene object.
**[➡ `getStatsObject()`](http://giojs.org/html/docs/interfaceStats.html)**
Get the reference of Stats.js panel object.
**[➡ `onCountryPicked(callback)`](http://giojs.org/html/docs/callbackPicked.html)**
Fired when selected country changes.
**[➡ `switchCountry(IsoCode)`](http://giojs.org/html/docs/advancedSwitch.html)**
Change currently selected country.
## Documentation
- For quick start, checkout [Getting Started](https://github.com/syt123450/Gio.js/blob/master/docs/en/Getting_Started.md)
- To learn more about the [Basic Elements](https://github.com/syt123450/Gio.js/blob/master/docs/en/Basic_Elements.md)
- To see the full API document in Markdown format, checkout [APIs](https://github.com/syt123450/Gio.js/blob/master/docs/en/APIs.md)
- To contribute to Gio.js's code base, read [Developer Guide](https://github.com/syt123450/Gio.js/blob/master/docs/en/Developer_Guide.md)
- Checkout Gio's official website [giojs.org](http://giojs.org) for everything above and plus lots of live examples
[screenshot-url]: http://via.placeholder.com/400x300
[npm-badge]: https://img.shields.io/badge/npm-v0.0.5-orange.svg
[npm-badge-url]: https://www.npmjs.com/package/giojs
[license-badge]: https://img.shields.io/badge/license-MIT-brightgreen.svg
[license-badge-url]: https://github.com/syt123450/Gio.js/blob/master/LICENSE
[dependencies-badge]: https://img.shields.io/badge/dependencies-Three.js-brightgreen.svg
[dependencies-badge-url]: https://github.com/mrdoob/three.js/
## Contributors
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
| [