Skip to content

Commit

Permalink
docs: updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Oct 11, 2021
1 parent d6897b2 commit ab7ce46
Show file tree
Hide file tree
Showing 22 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _2021-10-10_
- Making the project more clear via reorganizing the code. Better organizable code. Make the publish bundle more legit and clear. Because that this breaking change mainly impact publish bundle, if you were using the full bundled style file, you will going to change the resource path in your project:

```js
--- import 'vue-cesium/lib/theme-default/index.css'
--- import 'vue-cesium/dist/index.css'
+++ import 'vue-cesium/dist/index.css'
```

Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _2021-10-10_
- 通过重新组织代码使项目更加清晰,更好地组织代码,让打包产物更加清晰,由于本次改动最大的影响是对打包产物的重新组织,所以如果你以前是全量引入样式文件的话,你需要更改样式文件所在的地址:

```js
--- import 'vue-cesium/lib/theme-default/index.css'
--- import 'vue-cesium/dist/index.css'
+++ import 'vue-cesium/dist/index.css'
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,5 @@ describe('VcDatasourceKml', () => {
await testVm.load?.()
datasource = testVm.getCesiumObject?.() as Cesium.KmlDataSource
expect(datasource).toBeDefined()
}, 10000)
}, 15000)
})
8 changes: 4 additions & 4 deletions website/components/demo-block.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,16 @@ ${this.codepen.style}
const { script, html, style } = this.codepen
const resourcesTpl =
'<scr' +
'ipt src="//unpkg.com/vue@next"></scr' +
'ipt src="//cdn.jsdelivr.net/npm/vue@next"></scr' +
'ipt>' +
'\n<scr' +
`ipt src="//unpkg.com/element-plus"></scr` +
`ipt src="//cdn.jsdelivr.net/npm/element-plus"></scr` +
'ipt>' +
'\n<scr' +
`ipt src="//unpkg.com/vue-cesium@next/lib/index.full.js"></scr` +
`ipt src="//cdn.jsdelivr.net/npm/vue-cesium@next"></scr` +
'ipt>'
let htmlTpl = `${resourcesTpl}\n<div id="app">\n${html.trim()}\n</div>`
let cssTpl = `@import url("//unpkg.com/element-plus/dist/index.css");\n${(style || '').trim()}\n@import url("//unpkg.com/vue-cesium@next/lib/theme-default/index.css");\n${(style || '').trim()}\n`
let cssTpl = `@import url("//cdn.jsdelivr.net/npm/element-plus/dist/index.css");\n${(style || '').trim()}\n@import url("//cdn.jsdelivr.net/npm/vue-cesium@next/dist/index.css");\n${(style || '').trim()}\n`
cssTpl += `
.demo-viewer .el-row:last-child {
margin-bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/controls/vc-navigation-sm.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The navigation component that mimics the supermap. It is composed of `vc-compass-sm` and `vc-zoom-control-sm`.

**Note:** Style files need to be imported: `import'vue-cesium/lib/theme-default/index.css';`
**Note:** Style files need to be imported: `import 'vue-cesium/dist/index.css';`

### Basic usage

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/controls/vc-navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Navigation components, including compass, zoom, other floating buttons, position and distance scale toolbar controls. It is composed of `vc-compass`, `vc-zoom-control`, `vc-print`, `vc-mylocation`, `vc-status-bar`, and `vc-distance-legend`.

**Note:** Style files need to be imported: `import'vue-cesium/lib/theme-default/index.css';`
**Note:** Style files need to be imported: `import 'vue-cesium/dist/index.css';`

:::tip

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/overlays/vc-overlay-html.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Load HTML element overlays by geographic location.

**Note:** Style files need to be imported: `import'vue-cesium/lib/theme-default/index.css';`
**Note:** Style files need to be imported: `import 'vue-cesium/dist/index.css';`

### Basic usage

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/platforms/vc-demo-dc-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ When vue-cesium uses dc-sdk to develop, you only need to specify the dc-sdk libr
```javascript
import { createApp } from 'vue'
import VueCesium from 'vue-cesium'
import 'vue-cesium/lib/theme-default/index.css'
import 'vue-cesium/dist/index.css'
import App from './App.vue'

const app = createApp(App)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/platforms/vc-demo-earth-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```javascript
import { createApp } from 'vue'
import VueCesium from 'vue-cesium'
import 'vue-cesium/lib/theme-default/index.css'
import 'vue-cesium/dist/index.css'
import App from './App.vue'

const app = createApp(App)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/platforms/vc-demo-mars3d.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ When vue-cesium uses Mars3D of Mars Technology to develop, you only need to spec
```javascript
import { createApp } from 'vue'
import VueCesium from 'vue-cesium'
import 'vue-cesium/lib/theme-default/index.css'
import 'vue-cesium/dist/index.css'
import App from './App.vue'

const app = createApp(App)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/platforms/vc-demo-supermap.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ When vue-cesium uses SuperMap iClient3D for WebGL to develop, you only need to s
```javascript
import { createApp } from 'vue'
import VueCesium from 'vue-cesium'
import 'vue-cesium/lib/theme-default/index.css'
import 'vue-cesium/dist/index.css'
import App from './App.vue'

const app = createApp(App)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/tools/vc-drawings.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Load the drawing tool components, which currently include point, polyline, and polygon drawing tools, and others will be added later.

**Note:** Style files need to be imported: `import'vue-cesium/lib/theme-default/index.css';`
**Note:** Style files need to be imported: `import 'vue-cesium/dist/index.css';`

:::tip

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/tools/vc-measurements.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Load measurement tool components, including distance measurement, component distance measurement, polyline distance measurement, horizontal distance measurement, vertical distance measurement, height measurement, area measurement, and point coordinate measurement.

**Note:** Style files need to be imported: `import'vue-cesium/lib/theme-default/index.css';`
**Note:** Style files need to be imported: `import 'vue-cesium/dist/index.css';`

:::tip

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh-CN/controls/vc-navigation-sm.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

导航组件 —— 高仿超图样式。由 `vc-compass-sm``vc-zoom-control-sm` 组合而成。

**注意:** 需要引入样式文件: `import 'vue-cesium/lib/theme-default/index.css';`
**注意:** 需要引入样式文件: `import 'vue-cesium/default/index.css';`

### 基础用法

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh-CN/controls/vc-navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

导航组件,包括罗盘、缩放、其他悬浮按钮,位置和距离比例尺工具栏控件。由 `vc-compass``vc-zoom-control``vc-print``vc-mylocation``vc-status-bar``vc-distance-legend` 组合而成。

**注意:** 需要引入样式文件: `import 'vue-cesium/lib/theme-default/index.css';`
**注意:** 需要引入样式文件: `import 'vue-cesium/default/index.css';`

:::tip

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh-CN/overlays/vc-overlay-html.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

按地理位置加载 HTML 元素覆盖物。

**注意:** 需要引入样式文件: `import 'vue-cesium/lib/theme-default/index.css';`
**注意:** 需要引入样式文件: `import 'vue-cesium/default/index.css';`

### 基础用法

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh-CN/platforms/vc-demo-dc-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ vue-cesium 使用数字视觉的 dc-sdk 开发时只需要在引入 VueCesium
```javascript
import { createApp } from 'vue'
import VueCesium from 'vue-cesium'
import 'vue-cesium/lib/theme-default/index.css'
import 'vue-cesium/dist/index.css'
import App from './App.vue'

const app = createApp(App)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh-CN/platforms/vc-demo-earth-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```javascript
import { createApp } from 'vue'
import VueCesium from 'vue-cesium'
import 'vue-cesium/lib/theme-default/index.css'
import 'vue-cesium/dist/index.css'
import App from './App.vue'

const app = createApp(App)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh-CN/platforms/vc-demo-mars3d.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ vue-cesium 使用火星科技的 [Mars3D](http://mars3d.cn/) 开发时只需要
```javascript
import { createApp } from 'vue'
import VueCesium from 'vue-cesium'
import 'vue-cesium/lib/theme-default/index.css'
import 'vue-cesium/dist/index.css'
import App from './App.vue'

const app = createApp(App)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh-CN/platforms/vc-demo-supermap.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ vue-cesium 使用 SuperMap iClient3D for WebGL 开发时只需要在引入 VueCe
```javascript
import { createApp } from 'vue'
import VueCesium from 'vue-cesium'
import 'vue-cesium/lib/theme-default/index.css'
import 'vue-cesium/dist/index.css'
import App from './App.vue'

const app = createApp(App)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh-CN/tools/vc-drawings.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

加载绘制工具组件,目前包含点、线、面绘制工具,其他的后续再增加。

**注意:** 需要引入样式文件: `import 'vue-cesium/lib/theme-default/index.css';`
**注意:** 需要引入样式文件: `import 'vue-cesium/default/index.css';`

:::tip

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh-CN/tools/vc-measurements.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

加载量算工具组件,包含距离量算、三角量算、折线距离量算、水平距离量算、垂直距离量算、高度量算、面积量算、坐标量算。

**注意:** 需要引入样式文件: `import 'vue-cesium/lib/theme-default/index.css';`
**注意:** 需要引入样式文件: `import 'vue-cesium/default/index.css';`

:::tip

Expand Down

0 comments on commit ab7ce46

Please sign in to comment.