cesium_dev_kit 1.0.72 → 1.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/dist/index.js +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
## 安装
|
|
34
34
|
|
|
35
35
|
```shell
|
|
36
|
-
|
|
36
|
+
npm install cesium_dev_kit
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## 引入
|
|
40
40
|
|
|
41
41
|
```
|
|
42
|
-
|
|
42
|
+
import { initCesium } from 'cesium_dev_kit'
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
## 使用
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
| attackArrowObj | Object | 标绘(攻击) |
|
|
79
79
|
| straightArrowObj | Object | 标绘(直击) |
|
|
80
80
|
| pincerArrowObj | Object | 标绘(钳击) |
|
|
81
|
+
| ThreeJs | Object | 集成 ThreeJS 扩展对象 |
|
|
81
82
|
|
|
82
83
|
### 1.3 使用案例
|
|
83
84
|
|
|
@@ -138,7 +139,7 @@ export default {
|
|
|
138
139
|
可根据功能需求导出单一扩展类,减少代码冗余
|
|
139
140
|
|
|
140
141
|
```javaScript
|
|
141
|
-
import {Graphics, Material,Primitive,Draw,Analysis,CustomCesiumPlugin,PassEffect,Plugin} from 'cesium_dev_kit'
|
|
142
|
+
import {Graphics, Material,Primitive,Draw,Analysis,CustomCesiumPlugin,PassEffect,Plugin,ThreeJs} from 'cesium_dev_kit'
|
|
142
143
|
```
|
|
143
144
|
|
|
144
145
|
### 2.1 扩展类:
|
|
@@ -151,6 +152,7 @@ export default {
|
|
|
151
152
|
- CustomCesiumPlugin: 自定义相控扩展
|
|
152
153
|
- PassEffect: 后期特效对象
|
|
153
154
|
- Plugin: 各种扩展功能
|
|
155
|
+
- ThreeJs: 集成 ThreeJS 扩展对象
|
|
154
156
|
|
|
155
157
|
### 2.2 Draw 使用案例:
|
|
156
158
|
|
|
@@ -220,13 +222,13 @@ export default {
|
|
|
220
222
|
- html 中直接引入 index.umd.js
|
|
221
223
|
|
|
222
224
|
```javaScript
|
|
223
|
-
|
|
225
|
+
<script type="text/javascript" src="index.umd.js"></script>
|
|
224
226
|
```
|
|
225
227
|
|
|
226
228
|
- 初始化对象
|
|
227
229
|
|
|
228
230
|
```javaScript
|
|
229
|
-
|
|
231
|
+
new cesium_dev_kit.initCesium({...})
|
|
230
232
|
```
|
|
231
233
|
|
|
232
234
|
## 使用范例
|