diff --git a/README.md b/README.md
index bd0895c..0efda9a 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-# ⚡ vite-plugin-ice-mars3d
+# ⚡ vite-plugin-earth
-Easily set up a [`Cesium`] project in [`Vite`].
+Easily set up a [`Cesium`] & [`mars3d`] project in [`Vite`].
[`cesium`]: https://github.com/CesiumGS/cesium
[`mars3d`]: https://mars3d.cn/
@@ -8,8 +8,8 @@ Easily set up a [`Cesium`] project in [`Vite`].
## Install
```bash
-npm i cesium vite-plugin-ice-mars3d vite -D
-# yarn add cesium vite-plugin-ice-mars3d vite -D
+npm i cesium vite-plugin-earth vite -D
+# yarn add cesium vite-plugin-earth vite -D
```
## Usage
@@ -18,9 +18,9 @@ add this plugin to `vite.config.js`
```js
import { defineConfig } from 'vite';
-import mars3dPlugin from 'vite-plugin-ice-mars3d';
+import earthPlugin from 'vite-plugin-earth';
export default defineConfig({
- plugins: [mars3dPlugin()]
+ plugins: [earthPlugin()]
});
```
@@ -48,10 +48,10 @@ Default copy min cesium file to dist. if `true` will rebuild cesium from source.
```js
import { defineConfig } from 'vite';
-import mars3dPlugin from 'vite-plugin-ice-mars3d';
+import earthPlugin from 'vite-plugin-earth';
export default defineConfig({
plugins: [
- mars3dPlugin({
+ earthPlugin({
rebuildCesium: true
})
]
diff --git a/demo/index.html b/demo/index.html
deleted file mode 100644
index 3aac827..0000000
--- a/demo/index.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
- cesium-vite
-
-
-
-
-
-
-
diff --git a/demo/package.json b/demo/package.json
deleted file mode 100644
index 0817f60..0000000
--- a/demo/package.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "cesium-demo",
- "version": "1.0.0",
- "license": "MIT",
- "scripts": {
- "dev": "vite",
- "build": "vite build",
- "serve": "vite build && vite preview"
- },
- "devDependencies": {
- "cesium": "^1.88.0",
- "vite": "^2.7.1",
- "vite-plugin-cesium": "^1.2.13"
- }
-}
diff --git a/demo/src/css/main.css b/demo/src/css/main.css
deleted file mode 100644
index 902b715..0000000
--- a/demo/src/css/main.css
+++ /dev/null
@@ -1,7 +0,0 @@
-html, body, #cesiumContainer {
- width: 100%;
- height: 100%;
- margin: 0;
- padding: 0;
- overflow: hidden;
-}
\ No newline at end of file
diff --git a/demo/src/index.js b/demo/src/index.js
deleted file mode 100644
index 391e1ab..0000000
--- a/demo/src/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * You can also import Cesium Object like this
- *
- * import * as Cesium from 'cesium';
- * const viewer = new Cesium.Viewer('cesiumContainer');
- */
-
-import { Viewer } from 'cesium';
-import './css/main.css';
-
-const viewer = new Viewer('cesiumContainer');
diff --git a/demo/vite.config.js b/demo/vite.config.js
deleted file mode 100644
index 3a93255..0000000
--- a/demo/vite.config.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import { defineConfig } from 'vite';
-import cesium from 'vite-plugin-cesium';
-export default defineConfig({
- plugins: [cesium()]
-});
diff --git a/package.json b/package.json
index 90a9006..1d825c7 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
- "name": "vite-plugin-ice-mars3d",
- "version": "1.0.10",
- "description": "mars3d library plugin for Vite",
+ "name": "vite-plugin-earth",
+ "version": "1.0.0",
+ "description": "mars3d&cesium library plugin for Vite",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
@@ -41,6 +41,7 @@
"vite": "^2.7.1"
},
"peerDependencies": {
- "mars3d-cesium": "^1.88.0"
+ "mars3d-cesium": "^1.90.0",
+ "mars3d": "^3.2.0"
}
}