Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Feb 12, 2023
1 parent e3edcfc commit f317b53
Show file tree
Hide file tree
Showing 445 changed files with 1,180,719 additions and 589,670 deletions.
6 changes: 3 additions & 3 deletions website/components/demo-block.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,21 +247,21 @@ ${this.codepen.style}
const { script, html, style } = this.codepen
let resourcesTpl =
'<scr' +
'ipt src="//unpkg.com/vue@next"></scr' +
'ipt src="//unpkg.com/vue"></scr' +
'ipt>' +
'\n<scr' +
`ipt src="//unpkg.com/element-plus"></scr` +
'ipt>' +
'\n<scr' +
`ipt src="//unpkg.com/vue-cesium@next"></scr` +
`ipt src="//unpkg.com/vue-cesium"></scr` +
'ipt>'
if (this.blockClass.includes('demo-vc-overlay-echarts')) {
resourcesTpl += '\n<scr' + `ipt src="//unpkg.com/echarts"></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/dist/index.css");\n${(style || '').trim()}\n`
).trim()}\n@import url("//unpkg.com/vue-cesium/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/components/right-nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</el-link>
</div>
<app-link href="https://xn--4gq62f52gdss.com/#/register?code=hbv1fTgZ" style="position: absolute">
<span style="padding-left: 10px; line-height: 120px">{{ otherAd }}<el-tag effect="dark" type="success">jlz6Frzz</el-tag></span>
<span style="padding-left: 10px; line-height: 120px">{{ otherAd }}<el-tag effect="dark" type="success">hbv1fTgZ</el-tag></span>
</app-link>
</el-scrollbar>

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ If you are using VueCesium via CDN, then you need to do this, let's again take
unpkg as an example
```html
<script src="//unpkg.com/vue-cesium@next/dist/locale/zh-cn">
<script src="//unpkg.com/vue-cesium/dist/locale/zh-cn">
app.use(VueCesium, {
locale: VueCesium.lang.zh
})
Expand Down
18 changes: 9 additions & 9 deletions website/docs/en-US/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ so that you can utilize bundlers like [Vite](https://vitejs.dev) and
# Choose a package manager you like.

# NPM
$ npm install vue-cesium@next --save
$ npm install vue-cesium --save

# Yarn
$ yarn add vue-cesium@next
$ yarn add vue-cesium

# pnpm
$ pnpm install vue-cesium@next
$ pnpm install vue-cesium
```

If your network environment is not good, it is recommended to use a mirror registry [cnpm](https://github.com/cnpm/cnpm) or [Alibaba](https://registry.npmmirror.com/).
Expand All @@ -55,11 +55,11 @@ You can also use other **CDN** providers.
```html
<head>
<!-- Introduce style -->
<link rel="stylesheet" href="//unpkg.com/vue-cesium@next/dist/index.css" />
<link rel="stylesheet" href="//unpkg.com/vue-cesium/dist/index.css" />
<!-- Introduce Vue -->
<script src="//unpkg.com/vue@next"></script>
<script src="//unpkg.com/vue"></script>
<!-- Introduce component library -->
<script src="//unpkg.com/vue-cesium@next"></script>
<script src="//unpkg.com/vue-cesium"></script>
</head>
```

Expand All @@ -68,11 +68,11 @@ You can also use other **CDN** providers.
```html
<head>
<!-- Introduce style -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/vue-cesium@next/dist/index.css" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/vue-cesium/dist/index.css" />
<!-- Introduce Vue -->
<script src="//cdn.jsdelivr.net/npm/vue@next"></script>
<script src="//cdn.jsdelivr.net/npm/vue"></script>
<!-- Introduce component library -->
<script src="//cdn.jsdelivr.net/npm/vue-cesium@next"></script>
<script src="//cdn.jsdelivr.net/npm/vue-cesium"></script>
</head>
```

Expand Down
6 changes: 3 additions & 3 deletions website/docs/en-US/platforms/vc-demo-dc-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ Use VueCesium to load dc-sdk
<el-row ref="viewerContainer" class="demo-viewer">
<vc-viewer
ref="vcViewer"
:cesiumPath="cesiumPath"
:cesium-path="cesiumPath"
:animation="animation"
:timeline="timeline"
:fullscreenButton="fullscreenButton"
:fullscreenElement="fullscreenElement"
:fullscreen-element="fullscreenElement"
@ready="onViewerReady"
@leftClick="onLeftClick"
@left-click="onLeftClick"
>
<vc-navigation :offset="offset" @compass-evt="onNavigationEvt" :otherOpts="otherOpts" @zoom-evt="onNavigationEvt"></vc-navigation>
<vc-entity v-model:billboard="billboard" ref="entity" @click="onEntityClick" :position="{lng: 108, lat: 32}" :point="point" :label="label">
Expand Down
6 changes: 3 additions & 3 deletions website/docs/en-US/platforms/vc-demo-earth-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ Use VueCesium to load EarthSDK
<el-row ref="viewerContainer" class="demo-viewer">
<vc-viewer
ref="vcViewer"
:cesiumPath="cesiumPath"
:cesium-path="cesiumPath"
:animation="animation"
:timeline="timeline"
:fullscreenButton="fullscreenButton"
:fullscreenElement="fullscreenElement"
:fullscreen-element="fullscreenElement"
@ready="onViewerReady"
@leftClick="onLeftClick"
@left-click="onLeftClick"
>
<vc-navigation :offset="offset" @compass-evt="onNavigationEvt" :otherOpts="otherOpts" @zoom-evt="onNavigationEvt"></vc-navigation>
<vc-entity v-model:billboard="billboard" ref="entity" @click="onEntityClick" :position="{lng: 108, lat: 32}" :point="point" :label="label">
Expand Down
4 changes: 2 additions & 2 deletions website/docs/en-US/platforms/vc-demo-mars3d.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ Use VueCesium to load Mars Technology Mars3D
:animation="animation"
:timeline="timeline"
:fullscreenButton="fullscreenButton"
:fullscreenElement="fullscreenElement"
:fullscreen-element="fullscreenElement"
@ready="onViewerReady"
@leftClick="onLeftClick"
@left-click="onLeftClick"
>
<vc-navigation :offset="offset" @compass-evt="onNavigationEvt" :otherOpts="otherOpts" @zoom-evt="onNavigationEvt"></vc-navigation>
<vc-entity v-model:billboard="billboard" ref="entity" @click="onEntityClick" :position="{lng: 108, lat: 32}" :point="point" :label="label">
Expand Down
6 changes: 3 additions & 3 deletions website/docs/en-US/platforms/vc-demo-supermap.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Use VueCesium to load SuperMap iClient3D for WebGL
<el-row ref="viewerContainer" class="demo-viewer">
<vc-viewer
ref="vcViewer"
:cesiumPath="cesiumPath"
:cesium-path="cesiumPath"
:animation="animation"
:timeline="timeline"
:fullscreenButton="fullscreenButton"
:fullscreenElement="fullscreenElement"
:fullscreen-element="fullscreenElement"
@ready="onViewerReady"
@leftClick="onLeftClick"
@left-click="onLeftClick"
>
<vc-navigation :offset="offset" @compass-evt="onNavigationEvt" :otherOpts="otherOpts" @zoom-evt="onNavigationEvt"></vc-navigation>
<vc-entity v-model:billboard="billboard" ref="entity" @click="onEntityClick" :position="{lng: 108, lat: 32}" :point="point" :label="label">
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en-US/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Import via HTML `head` tag.
```html
<!-- index.html -->
<head>
<link rel="stylesheet" href="//unpkg.com/vue-cesium@next/dist/index.css" />
<link rel="stylesheet" href="//unpkg.com/vue-cesium/dist/index.css" />
</head>
```

Expand Down
4 changes: 2 additions & 2 deletions website/docs/zh-CN/i18n.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-10-27 15:54:11
* @LastEditTime: 2022-12-08 22:05:17
* @LastEditTime: 2023-02-13 01:37:02
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\website\docs\zh-CN\i18n.md
Expand Down Expand Up @@ -66,7 +66,7 @@ Vue for Cesium 还提供了一个 Vue 组件 [VcConfigProvider](/#/zh-CN/compone
如果你是使用 CDN 引入的 VueCesium,那你将需要这样做,以 unpkg 举例
```html
<script src="//unpkg.com/vue-cesium@next">
<script src="//unpkg.com/vue-cesium">
app.use(VueCesium, {
locale: VueCesium.lang.zh
})
Expand Down
14 changes: 7 additions & 7 deletions website/docs/zh-CN/installation.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-04-06 09:21:03
* @LastEditTime: 2022-12-08 22:05:37
* @LastEditTime: 2023-02-13 01:37:31
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\website\docs\zh-CN\installation.md
Expand All @@ -27,13 +27,13 @@ Vue for Cesium 可以在支持 [ES2018](https://caniuse.com/?feats=mdn-javascrip
# 选择一个你喜欢的包管理器

# npm
$ npm install vue-cesium@next --save
$ npm install vue-cesium --save

# yarn
$ yarn add vue-cesium@next
$ yarn add vue-cesium

# pnpm
$ pnpm add vue-cesium@next
$ pnpm add vue-cesium
```

如果您的网络环境不好,建议使用 `nrm` 切换所用的包管理器的资源地址,或直接手动更改。
Expand All @@ -53,11 +53,11 @@ Vue for Cesium 支持 CDN 方式引入 Vue for Cesium,这样在 window 上下
```html
<head>
<!-- 引入样式 -->
<link rel="stylesheet" href="//unpkg.com/vue-cesium@next/dist/index.css" />
<link rel="stylesheet" href="//unpkg.com/vue-cesium/dist/index.css" />
<!-- 引入 Vue3 -->
<script src="//unpkg.com/vue"></script>
<!-- 引入组件库 -->
<script src="//unpkg.com/vue-cesium@next"></script>
<script src="//unpkg.com/vue-cesium"></script>
</head>
```

Expand All @@ -66,7 +66,7 @@ Vue for Cesium 支持 CDN 方式引入 Vue for Cesium,这样在 window 上下
```html
<head>
<!-- 引入样式 -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/vue-cesium@next/dist/index.css" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/vue-cesium/dist/index.css" />
<!-- 引入 Vue -->
<script src="//cdn.jsdelivr.net/npm/vue"></script>
<!-- 引入组件库 -->
Expand Down
6 changes: 3 additions & 3 deletions website/docs/zh-CN/platforms/vc-demo-dc-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ app.mount('#app')
<el-row ref="viewerContainer" class="demo-viewer">
<vc-viewer
ref="vcViewer"
:cesiumPath="cesiumPath"
:cesium-path="cesiumPath"
:animation="animation"
:timeline="timeline"
:fullscreenButton="fullscreenButton"
:fullscreenElement="fullscreenElement"
:fullscreen-element="fullscreenElement"
@ready="onViewerReady"
@leftClick="onLeftClick"
@left-click="onLeftClick"
>
<vc-navigation :offset="offset" @compass-evt="onNavigationEvt" :otherOpts="otherOpts" @zoom-evt="onNavigationEvt"></vc-navigation>
<vc-entity v-model:billboard="billboard" ref="entity" @click="onEntityClick" :position="{lng: 108, lat: 32}" :point="point" :label="label">
Expand Down
8 changes: 4 additions & 4 deletions website/docs/zh-CN/platforms/vc-demo-earth-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ app.mount('#app')
<el-row ref="viewerContainer" class="demo-viewer">
<vc-viewer
ref="vcViewer"
:cesiumPath="cesiumPath"
:cesium-path="cesiumPath"
:animation="animation"
:timeline="timeline"
:fullscreenButton="fullscreenButton"
:fullscreenElement="fullscreenElement"
:fullscreen-button="fullscreenButton"
:fullscreen-element="fullscreenElement"
@ready="onViewerReady"
@leftClick="onLeftClick"
@left-click="onLeftClick"
>
<vc-navigation :offset="offset" @compass-evt="onNavigationEvt" :otherOpts="otherOpts" @zoom-evt="onNavigationEvt"></vc-navigation>
<vc-entity v-model:billboard="billboard" ref="entity" @click="onEntityClick" :position="{lng: 108, lat: 32}" :point="point" :label="label">
Expand Down
4 changes: 2 additions & 2 deletions website/docs/zh-CN/platforms/vc-demo-mars3d.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ app.mount('#app')
:animation="animation"
:timeline="timeline"
:fullscreenButton="fullscreenButton"
:fullscreenElement="fullscreenElement"
:fullscreen-element="fullscreenElement"
@ready="onViewerReady"
@leftClick="onLeftClick"
@left-click="onLeftClick"
>
<vc-navigation :offset="offset" @compass-evt="onNavigationEvt" :otherOpts="otherOpts" @zoom-evt="onNavigationEvt"></vc-navigation>
<vc-entity v-model:billboard="billboard" ref="entity" @click="onEntityClick" :position="{lng: 108, lat: 32}" :point="point" :label="label">
Expand Down
6 changes: 3 additions & 3 deletions website/docs/zh-CN/platforms/vc-demo-supermap.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ app.mount('#app')
<el-row ref="viewerContainer" class="demo-viewer">
<vc-viewer
ref="vcViewer"
:cesiumPath="cesiumPath"
:cesium-path="cesiumPath"
:animation="animation"
:timeline="timeline"
:fullscreenButton="fullscreenButton"
:fullscreenElement="fullscreenElement"
:fullscreen-element="fullscreenElement"
@ready="onViewerReady"
@leftClick="onLeftClick"
@left-click="onLeftClick"
>
<vc-navigation :offset="offset" @compass-evt="onNavigationEvt" :otherOpts="otherOpts" @zoom-evt="onNavigationEvt"></vc-navigation>
<vc-entity v-model:billboard="billboard" ref="entity" @click="onEntityClick" :position="{lng: 108, lat: 32}" :point="point" :label="label">
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh-CN/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ import 'vue-cesium/dist/index.css'
```html
<!-- index.html -->
<head>
<link rel="stylesheet" href="//unpkg.com/vue-cesium@next/dist/index.css" />
<link rel="stylesheet" href="//unpkg.com/vue-cesium/dist/index.css" />
</head>
```

Expand Down
Loading

0 comments on commit f317b53

Please sign in to comment.