@mapgis/webclient-cesium-plugin 17.2.3 → 17.2.4
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 +8 -0
- package/dist/es5/webclient-cesium-plugin.min.js +7 -5
- package/dist/es5/webclient-common.min.js +2 -2
- package/dist/webclient-cesium-plugin-es6.min.js +7 -5
- package/documention/AlgorithmLib.html +7009 -0
- package/documention/AngulationTool.html +1068 -0
- package/documention/CesiumTerrainProvider.html +139 -0
- package/documention/CuttingTool.html +2910 -0
- package/documention/Deferred.html +139 -0
- package/documention/DrawElement.html +1643 -0
- package/documention/DrawTool.html +1275 -0
- package/documention/EditTool.html +1839 -0
- package/documention/FloodAnalysisReflection.html +1 -1
- package/documention/Graphic.html +4789 -0
- package/documention/GraphicsLayer.html +5071 -0
- package/documention/MeasureAreaTool.html +1182 -0
- package/documention/MeasureLengthTool.html +2306 -0
- package/documention/MeasureSlopeTool.html +1141 -0
- package/documention/ModelEditor.html +356 -0
- package/documention/PostProcessStageLibrary.html +3 -3
- package/documention/Promise.html +980 -0
- package/documention/RiverGeometry.html +2659 -0
- package/documention/S3MTileset.html +5 -5
- package/documention/SelectTool.html +784 -0
- package/documention/ShadowRateAnalysis.html +1827 -0
- package/documention/ShadowRateDrawCommand.html +917 -0
- package/documention/Style.html +14203 -0
- package/documention/Tooltip.html +877 -0
- package/documention/TriangulationTool.html +1721 -0
- package/documention/VisiblityAnalysis.html +1998 -0
- package/documention/WaterReflection.html +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
<header id="page-title" class="page-title">
|
|
2
|
+
|
|
3
|
+
<span class="page-title-main">类名</span>
|
|
4
|
+
<span class="page-title-sub">ModelEditor</span>
|
|
5
|
+
|
|
6
|
+
</header>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<section>
|
|
13
|
+
|
|
14
|
+
<article>
|
|
15
|
+
<div class="container-overview">
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
<div class='vertical-section'>
|
|
19
|
+
<div class="members">
|
|
20
|
+
<div class="member">
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<h4 class="name" id="ModelEditor">
|
|
26
|
+
<a class="href-link" href="#ModelEditor">#</a>
|
|
27
|
+
|
|
28
|
+
<span class="code-name" id="ModelEditor" style="font-size:30px">
|
|
29
|
+
|
|
30
|
+
new ModelEditor<span class="signature">(options, container, scene, transform, boundingSphere, originOffset)</span>
|
|
31
|
+
|
|
32
|
+
</span>
|
|
33
|
+
</h4>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<div class="description">
|
|
38
|
+
<p>模型矩阵编辑工具</p>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
<h4>参数</h4>
|
|
51
|
+
|
|
52
|
+
<div class="table-container">
|
|
53
|
+
<table class="params table">
|
|
54
|
+
<thead>
|
|
55
|
+
<tr>
|
|
56
|
+
|
|
57
|
+
<th>名称</th>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
<th>类型</th>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
<th class="last">描述</th>
|
|
65
|
+
</tr>
|
|
66
|
+
</thead>
|
|
67
|
+
|
|
68
|
+
<tbody>
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<tr class="deep-level-0">
|
|
73
|
+
|
|
74
|
+
<td class="name"><code>options</code></td>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
<td class="type">
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
<span class="param-type">
|
|
81
|
+
|
|
82
|
+
Object
|
|
83
|
+
|
|
84
|
+
</span>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</td>
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
<td class="description last"></td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
<tr class="deep-level-0">
|
|
102
|
+
|
|
103
|
+
<td class="name"><code>container</code></td>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<td class="type">
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
<span class="param-type">
|
|
110
|
+
|
|
111
|
+
Object
|
|
112
|
+
|
|
113
|
+
</span>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
</td>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
<td class="description last"><p>场景容器</p></td>
|
|
123
|
+
</tr>
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
<tr class="deep-level-0">
|
|
131
|
+
|
|
132
|
+
<td class="name"><code>scene</code></td>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
<td class="type">
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
<span class="param-type">
|
|
139
|
+
|
|
140
|
+
Object
|
|
141
|
+
|
|
142
|
+
</span>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
</td>
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
<td class="description last"><p>场景试视图</p></td>
|
|
152
|
+
</tr>
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
<tr class="deep-level-0">
|
|
160
|
+
|
|
161
|
+
<td class="name"><code>transform</code></td>
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
<td class="type">
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
<span class="param-type">
|
|
168
|
+
|
|
169
|
+
Object
|
|
170
|
+
|
|
171
|
+
</span>
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
</td>
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
<td class="description last"><p>要修改的模型矩阵</p></td>
|
|
181
|
+
</tr>
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
<tr class="deep-level-0">
|
|
189
|
+
|
|
190
|
+
<td class="name"><code>boundingSphere</code></td>
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
<td class="type">
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
<span class="param-type">
|
|
197
|
+
|
|
198
|
+
Object
|
|
199
|
+
|
|
200
|
+
</span>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
</td>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
<td class="description last"><p>模型的包围盒</p></td>
|
|
210
|
+
</tr>
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
<tr class="deep-level-0">
|
|
218
|
+
|
|
219
|
+
<td class="name"><code>originOffset</code></td>
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
<td class="type">
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
<span class="param-type">
|
|
226
|
+
|
|
227
|
+
Object
|
|
228
|
+
|
|
229
|
+
</span>
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
</td>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
<td class="description last"><p>编辑轴偏移值,默认Cartesian3.UNIT_X</p></td>
|
|
239
|
+
</tr>
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
</tbody>
|
|
245
|
+
</table>
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
<dl class="details">
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
</dl>
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
<h5>示例</h5>
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
<pre class="prettyprint"><code>var modelEditor = new Cesium.ModelEditor({
|
|
313
|
+
container: viewer.container,
|
|
314
|
+
scene: viewer.scene,
|
|
315
|
+
transform: model.modelMatrix,
|
|
316
|
+
boundingSphere: model.boundingSphere
|
|
317
|
+
});
|
|
318
|
+
//获取模型视图对象
|
|
319
|
+
viewModel = transformEditor.viewModel;
|
|
320
|
+
//设置模型视图平移
|
|
321
|
+
viewModel.setModeTranslation();
|
|
322
|
+
//激活平移工具
|
|
323
|
+
viewModel.activate();</code></pre>
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
</div>
|
|
329
|
+
</div>
|
|
330
|
+
</div>
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
</div>
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
</article>
|
|
355
|
+
|
|
356
|
+
</section>
|
|
@@ -318,7 +318,7 @@ import { PostProcessStageLibrary } from "@mapgis/webclient-cesium-plugin"</code>
|
|
|
318
318
|
|
|
319
319
|
<span class="param-type">
|
|
320
320
|
|
|
321
|
-
Cesium.Viewer
|
|
321
|
+
<a link="Cesium.Viewer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Cesium.Viewer" Cesium.Viewer.html>Cesium.Viewer</a>
|
|
322
322
|
|
|
323
323
|
</span>
|
|
324
324
|
|
|
@@ -617,7 +617,7 @@ fog.uniforms.alpha = 0.7 // 修改相关参数</code></pre>
|
|
|
617
617
|
|
|
618
618
|
<span class="param-type">
|
|
619
619
|
|
|
620
|
-
Cesium.Viewer
|
|
620
|
+
<a link="Cesium.Viewer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Cesium.Viewer" Cesium.Viewer.html>Cesium.Viewer</a>
|
|
621
621
|
|
|
622
622
|
</span>
|
|
623
623
|
|
|
@@ -1114,7 +1114,7 @@ rain.uniforms.speed = 20 // 修改相关参数</code></pre>
|
|
|
1114
1114
|
|
|
1115
1115
|
<span class="param-type">
|
|
1116
1116
|
|
|
1117
|
-
Cesium.Viewer
|
|
1117
|
+
<a link="Cesium.Viewer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Cesium.Viewer" Cesium.Viewer.html>Cesium.Viewer</a>
|
|
1118
1118
|
|
|
1119
1119
|
</span>
|
|
1120
1120
|
|