-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
155 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
Language: [English](README.md) | [中文简体](README-ZH.md) | ||
|
||
<p align="center"> | ||
<img width="192" src="https://tva1.sinaimg.cn/large/008i3skNly1gy3q3h2ufrj308103gmx4.jpg" alt="axios mapper"> | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/3d-earth"> | ||
<img src="https://img.shields.io/npm/v/3d-earth?color=blue" alt="npm"> | ||
</a> | ||
<a href="https://github.com/RainManGO/3d-earth"> | ||
<img src="https://img.shields.io/npm/types/3d-earth" alt="Types"> | ||
</a> | ||
<a href="https://github.com/RainManGO/axios-mapper/blob/main/LICENSE"> | ||
<img src="https://img.shields.io/npm/l/axios-mapper" alt="License"> | ||
</a> | ||
</p> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
3d-earth 是一个漂亮的,基于threejs 的组件 | ||
|
||
|
||
|
||
## Install | ||
|
||
```shell | ||
npm install 3d-earth | ||
``` | ||
|
||
or | ||
|
||
```shell | ||
yarn add 3d-earth | ||
``` | ||
|
||
## Features | ||
|
||
- [x] 星空背景 | ||
- [x] 云层 | ||
- [x] 城市位置涟漪 | ||
- [x] 光晕 | ||
- [x] 世界地图边界 | ||
- [x] 飞线效果 | ||
- [x] 地球自转动画 | ||
- [x] 自动缩放中国动画 | ||
|
||
|
||
## Usage | ||
|
||
|
||
|
||
已打包esm 文件,如有其他需求自行打包。支持vue/react/html 简单嵌入 | ||
|
||
| ||
|
||
config | ||
|
||
```js | ||
//地球是否旋转 | ||
autoRotate: boolean; | ||
//是否缩放到中国,之后再放大动画 | ||
zoomChina: boolean; | ||
//是否显示星空背景 | ||
starBackground: boolean | ||
``` | ||
|
||
|
||
|
||
|
||
### Dependency | ||
|
||
- ThreeJS | ||
- TweenJS | ||
|
||
|
||
|
||
## License | ||
|
||
3d-earth is open-sourced software licensed under the [MIT license](./LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,76 @@ | ||
# 🚀 Welcome to your new awesome project! | ||
Language: [English](README.md) | [中文简体](README-ZH.md) | ||
|
||
<p align="center"> | ||
<img width="192" src="https://tva1.sinaimg.cn/large/008i3skNly1gy3q3h2ufrj308103gmx4.jpg" alt="axios mapper"> | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/3d-earth"> | ||
<img src="https://img.shields.io/npm/v/3d-earth?color=blue" alt="npm"> | ||
</a> | ||
<a href="https://github.com/RainManGO/3d-earth"> | ||
<img src="https://img.shields.io/npm/types/3d-earth" alt="Types"> | ||
</a> | ||
<a href="https://github.com/RainManGO/axios-mapper/blob/main/LICENSE"> | ||
<img src="https://img.shields.io/npm/l/axios-mapper" alt="License"> | ||
</a> | ||
</p> | ||
|
||
|
||
|
||
|
||
This project has been created using **webpack-cli**, you can now run | ||
|
||
``` | ||
npm run build | ||
``` | ||
|
||
|
||
3D Earth is a beautiful component of earth flying line based on threejs | ||
|
||
|
||
|
||
## Install | ||
```shell | ||
npm install 3d-earth | ||
``` | ||
or | ||
|
||
```shell | ||
yarn add 3d-earth | ||
``` | ||
yarn build | ||
## Features | ||
|
||
- [x] star background | ||
- [x] cloud | ||
- [x] city wave | ||
- [x] glow sprite | ||
- [x] world polygon | ||
- [x] flyLine | ||
- [x] earth roate and zoom animate | ||
|
||
|
||
## Usage | ||
|
||
|
||
build esm , support html/vue/react you can look at example | ||
|
||
| ||
|
||
config | ||
|
||
```js | ||
//earth auto Roate | ||
autoRotate: boolean; | ||
zoomChina: boolean; | ||
starBackground: boolean | ||
``` | ||
|
||
to bundle your application | ||
# 3d-earth | ||
|
||
|
||
|
||
### Dependency | ||
|
||
- ThreeJS | ||
- TweenJS | ||
|
||
|
||
|
||
## License | ||
3d-earth is open-sourced software licensed under the [MIT license](./LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters