@mapgis/webclient-cesium-plugin 17.8.1 → 17.10.9

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.
Files changed (227) hide show
  1. package/README.md +280 -482
  2. package/dist/esm/commonjsHelpers.js +1 -0
  3. package/dist/esm/s3m.js +1 -0
  4. package/dist/esm/webclient-cesium-plugin.js +1 -0
  5. package/dist/umd/webclient-cesium-plugin.min.js +1 -0
  6. package/{documention → documentation}/AlgorithmLib.html +169 -149
  7. package/{documention → documentation}/AngulationTool.html +85 -51
  8. package/{documention → documentation}/AnimationTool.html +30 -30
  9. package/{documention → documentation}/ArcGISMapServerImageryProvider.html +9 -13
  10. package/{documention → documentation}/ArcGISMapServerSingleImageryProvider.html +90 -30
  11. package/{documention → documentation}/ArcGISTileServerImageryProvider.html +17 -17
  12. package/{documention → documentation}/ArcGISVectorTileImageryProvider.html +21 -8
  13. package/{documention → documentation}/BaseImageryProvider.html +2 -2
  14. package/{documention → documentation}/Cesium.Material.html +2 -2
  15. package/{documention → documentation}/Cesium.Viewer.html +5 -5
  16. package/{documention → documentation}/Cesium3DTileset.html +43 -25
  17. package/{documention → documentation}/CesiumHeatmap.html +22 -19
  18. package/{documention/S3MTileset.html → documentation/CesiumNavigation.html} +52 -85
  19. package/{documention → documentation}/CesiumTerrainProvider.html +55 -15
  20. package/{documention/OpenWeatherImageryProvider.html → documentation/CircleWaveMaterialProperty.html} +75 -95
  21. package/{documention → documentation}/CollisionDetectionByRender.html +245 -88
  22. package/{documention → documentation}/CompatibleFunc.html +24 -33
  23. package/{documention → documentation}/CustomPrimitive.html +3 -5
  24. package/{documention → documentation}/CustomProjection.html +3 -3
  25. package/{documention → documentation}/CustomTilingScheme.html +35 -36
  26. package/{documention → documentation}/CutFillAnalysis.html +59 -27
  27. package/{documention → documentation}/CuttingTool.html +198 -103
  28. package/{documention → documentation}/Deferred.html +2 -2
  29. package/{documention → documentation}/DrawElement.html +418 -34
  30. package/{documention → documentation}/DrawTool.html +81 -29
  31. package/documentation/EditTool.html +2819 -0
  32. package/{documention → documentation}/FirstPersonPerspective.html +18 -10
  33. package/{documention → documentation}/FloodAnalysis.html +93 -23
  34. package/{documention → documentation}/FloodAnalysisReflection.html +18 -44
  35. package/documentation/FlowParticle.html +863 -0
  36. package/{documention → documentation}/Fluid.html +473 -74
  37. package/{documention → documentation}/FluidFoam.html +36 -16
  38. package/{documention → documentation}/FluidReflection.html +68 -15
  39. package/{documention → documentation}/FluidShadow.html +67 -14
  40. package/{documention → documentation}/FluidSourceCollection.html +14 -7
  41. package/{documention → documentation}/FluidSpecular.html +33 -14
  42. package/documentation/FluidSurfaceDistortion.html +682 -0
  43. package/documentation/FluidSurfaceFoam.html +1006 -0
  44. package/{documention → documentation}/FollowPerspective.html +15 -7
  45. package/{documention → documentation}/GeoJSONLayerUtil.html +38 -10
  46. package/documentation/GeoJSONLayerView.html +1353 -0
  47. package/{documention → documentation}/GlobeIndependentTranslucency.html +89 -6
  48. package/{documention → documentation}/GodPerspective.html +14 -6
  49. package/{documention → documentation}/Graphic.html +1053 -1042
  50. package/{documention → documentation}/GraphicTransformTool.html +65 -23
  51. package/{documention → documentation}/GraphicsLayer.html +359 -156
  52. package/{documention → documentation}/GraphicsLayerUtil.html +28 -10
  53. package/documentation/GraphicsLayerView.html +759 -0
  54. package/{documention/EditTool.html → documentation/HashMap.html} +253 -418
  55. package/{documention → documentation}/HeightLimited.html +54 -21
  56. package/documentation/IGSFeatureLayerUtil.html +840 -0
  57. package/documentation/IGSFeatureLayerView.html +1348 -0
  58. package/documentation/IGSMapImageLayerUtil.html +855 -0
  59. package/{documention/IGSFeatureLayerUtil.html → documentation/IGSMapImageLayerView.html} +68 -46
  60. package/documentation/IGSTileLayerView.html +658 -0
  61. package/{documention → documentation}/ISSceneLayerUtil.html +3 -3
  62. package/{documention → documentation}/KeyboardCameraController.html +54 -6
  63. package/documentation/LightningStorm.html +2073 -0
  64. package/documentation/MapGISClusterPrimitiveCollection.html +1050 -0
  65. package/{documention → documentation}/MapGISDynamicLabelCollection.html +370 -178
  66. package/{documention → documentation}/MapGISFeatureGridCollection.html +123 -89
  67. package/{documention → documentation}/MapGISImageServerImageryProvider.html +93 -71
  68. package/{documention → documentation}/MapGISImageServerSingleImageryProvider.html +140 -92
  69. package/{documention → documentation}/MapGISM3DSet.html +49 -33
  70. package/{documention → documentation}/MapGISMapServerImageryProvider.html +78 -87
  71. package/{documention → documentation}/MapGISMapServerSingleImageryProvider.html +111 -43
  72. package/{documention → documentation}/MapGISTerrainProvider.html +268 -208
  73. package/{documention → documentation}/MapGISTerrainService.html +124 -82
  74. package/{documention → documentation}/MapGISTileAvailability.html +104 -47
  75. package/{documention → documentation}/MapGISTileServerImageryProvider.html +76 -83
  76. package/{documention → documentation}/MapGISVectorTileImageryProvider.html +135 -115
  77. package/{documention → documentation}/MeasureAreaTool.html +53 -14
  78. package/{documention → documentation}/MeasureLengthTool.html +17 -14
  79. package/{documention → documentation}/MeasureSlopeTool.html +73 -34
  80. package/{documention/FlowParticle.html → documentation/ModelEditor.html} +132 -116
  81. package/{documention → documentation}/ModelFilterTool.html +27 -32
  82. package/{documention → documentation}/ModelTransformTool.html +195 -110
  83. package/{documention → documentation}/NavigationControl.html +25 -5
  84. package/{documention → documentation}/NavigationTool.html +36 -14
  85. package/{documention → documentation}/NormalPerspective.html +33 -7
  86. package/documentation/OpenWeatherImageryProvider.html +1133 -0
  87. package/{documention → documentation}/PointFluidSource.html +22 -13
  88. package/{documention → documentation}/PolylineTrailLinkMaterialProperty.html +104 -20
  89. package/{documention → documentation}/Popup.html +246 -63
  90. package/{documention/CesiumNavigation.html → documentation/PostProcessShaderBuilder.html} +10 -54
  91. package/{documention → documentation}/PostProcessStageLibrary.html +3127 -121
  92. package/{documention → documentation}/Promise.html +6 -6
  93. package/{documention → documentation}/ProviderBaseUrlRegExp.html +20 -4
  94. package/{documention → documentation}/Puddle.html +30 -9
  95. package/{documention → documentation}/RadarMaterialProperty.html +73 -18
  96. package/{documention → documentation}/ReImg.html +164 -15
  97. package/{documention → documentation}/RenderUtil.html +158 -6
  98. package/{documention → documentation}/ResetViewNavigationControl.html +28 -8
  99. package/{documention → documentation}/RiverGeometry.html +7 -7
  100. package/{documention → documentation}/RoamParticle.html +86 -79
  101. package/{documention → documentation}/RouteAnimationControl.html +37 -15
  102. package/{documention → documentation}/RouteAnimationLabel.html +39 -12
  103. package/{documention → documentation}/RouteAnimationModel.html +43 -16
  104. package/{documention → documentation}/RouteAnimationPath.html +156 -18
  105. package/{documention → documentation}/RouteAnimationPerspective.html +12 -3
  106. package/{documention → documentation}/RouteAnimationTool.html +244 -24
  107. package/documentation/S3MTileset.html +570 -0
  108. package/{documention → documentation}/SSR.html +20 -39
  109. package/{documention → documentation}/SceneView.html +615 -419
  110. package/documentation/SceneViewUtil.html +1253 -0
  111. package/documentation/Screenshot.html +964 -0
  112. package/{documention → documentation}/SelectTool.html +31 -77
  113. package/{documention → documentation}/ShadowRateAnalysis.html +236 -54
  114. package/{documention → documentation}/ShadowRateDrawCommand.html +18 -6
  115. package/{documention → documentation}/SingleImageryProvider.html +32 -10
  116. package/{documention → documentation}/SketchEditor.html +280 -127
  117. package/documentation/SkyLineAnalysis.html +576 -0
  118. package/{documention → documentation}/StableParticle.html +165 -46
  119. package/{documention → documentation}/Style.html +249 -249
  120. package/{documention → documentation}/TerrainAnalyse.html +391 -105
  121. package/{documention → documentation}/TerrainExcavateTool.html +99 -3
  122. package/{documention → documentation}/TerrainProfile.html +198 -56
  123. package/{documention → documentation}/ThemeManager.html +93 -42
  124. package/{documention → documentation}/Tooltip.html +35 -18
  125. package/documentation/TransformTool.html +1010 -0
  126. package/{documention → documentation}/TriangulationTool.html +122 -83
  127. package/documentation/UnderfluidCaustic.html +843 -0
  128. package/documentation/UnderfluidDistortion.html +600 -0
  129. package/documentation/UnderfluidFog.html +843 -0
  130. package/documentation/UnderfluidGodRay.html +843 -0
  131. package/documentation/UnderwaterCaustic.html +867 -0
  132. package/documentation/UnderwaterDistortion.html +578 -0
  133. package/documentation/UnderwaterFog.html +867 -0
  134. package/documentation/UnderwaterGodRay.html +821 -0
  135. package/{documention → documentation}/UrlTemplateImageryProvider.html +21 -9
  136. package/{documention → documentation}/UserInterfaceControl.html +28 -9
  137. package/documentation/VectorTileLayerUtil.html +1364 -0
  138. package/{documention → documentation}/VisiblityAnalysis.html +15 -12
  139. package/{documention → documentation}/VolumeCloud.html +113 -21
  140. package/{documention → documentation}/VolumeFluidSource.html +24 -8
  141. package/{documention → documentation}/WFSLayerUtil.html +39 -10
  142. package/documentation/WFSLayerView.html +1353 -0
  143. package/documentation/WMSLayerUtil.html +879 -0
  144. package/documentation/WMTSLayerUtil.html +877 -0
  145. package/documentation/WaterDepth.html +583 -0
  146. package/{documention → documentation}/WaterReflection.html +29 -26
  147. package/documentation/WaterSurface.html +2555 -0
  148. package/{documention/Underwater.html → documentation/WaterSurfaceDistortion.html} +79 -81
  149. package/documentation/WaterSurfaceFoam.html +1029 -0
  150. package/documentation/WaterSurfaceSSR.html +867 -0
  151. package/{documention → documentation}/WebMapServiceImageryProvider.html +8 -12
  152. package/{documention → documentation}/WebMapServiceSingleImageryProvider.html +94 -32
  153. package/{documention → documentation}/WebMapTileServiceImageryProvider.html +10 -15
  154. package/documentation/WebTileLayerUtil.html +877 -0
  155. package/{documention → documentation}/Wind3D.html +133 -54
  156. package/{documention → documentation}/ZoomNavigationControl.html +145 -9
  157. package/documentation/fonts/glyphicons-halflings-regular.svg +543 -0
  158. package/{documention → documentation}/global.html +14130 -2719
  159. package/{documention → documentation}/index.html +1 -1
  160. package/{documention → documentation}/initializeOptions.html +2 -2
  161. package/{documention → documentation}/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.EchartsLayer.html +96 -95
  162. package/{documention → documentation}/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapVLayer.html +47 -46
  163. package/{documention → documentation}/module.exports_module.exports.html +2 -2
  164. package/{documention → documentation}/nav.html +3267 -1392
  165. package/documentation/nav.json +320 -0
  166. package/documentation/styles/adminlte/AdminLTE.min.css +4966 -0
  167. package/documentation/styles/adminlte/skin-blue.min.css +135 -0
  168. package/documentation/styles/bootstrap.min.css +7005 -0
  169. package/documentation/styles/common.css +173 -0
  170. package/documentation/styles/examples.css +119 -0
  171. package/{documention → documentation}/styles/font-awesome.css +692 -687
  172. package/documentation/styles/header.css +558 -0
  173. package/documentation/styles/jaguar.css +551 -0
  174. package/{documention → documentation}/styles/prettify-tomorrow.css +59 -28
  175. package/{documention → documentation}/styles/style.customize.css +83 -99
  176. package/package.json +42 -22
  177. package/dist/es5/webclient-cesium-plugin.min.js +0 -77
  178. package/dist/es5/webclient-common.min.js +0 -159
  179. package/dist/webclient-cesium-plugin-es6.min.js +0 -77
  180. package/documention/CircleWaveMaterialProperty.html +0 -382
  181. package/documention/DynamicEntityVisualizer.html +0 -348
  182. package/documention/DynamicLabelLayer.html +0 -1841
  183. package/documention/GroundPrimitiveLayer.html +0 -1675
  184. package/documention/HashMap.html +0 -4197
  185. package/documention/ModelEditor.html +0 -374
  186. package/documention/SceneViewCesium.html +0 -5544
  187. package/documention/Screenshot.html +0 -773
  188. package/documention/SketchEditorCesium.html +0 -1571
  189. package/documention/createColorTexture.html +0 -369
  190. package/documention/fonts/glyphicons-halflings-regular.svg +0 -288
  191. package/documention/isCounterClockwise.html +0 -760
  192. package/documention/scripts/app.min.js +0 -1
  193. package/documention/scripts/jquery.min.map +0 -1
  194. package/documention/scripts/search.js +0 -20
  195. package/documention/scripts/sideBar.js +0 -228
  196. package/documention/scripts/underscore-min.map +0 -1
  197. package/documention/styles/adminlte/AdminLTE.min.css +0 -7
  198. package/documention/styles/adminlte/skin-blue.min.css +0 -1
  199. package/documention/styles/anchor.png +0 -0
  200. package/documention/styles/app.min.css +0 -1
  201. package/documention/styles/bootstrap.min.css +0 -6
  202. package/documention/styles/c.png +0 -0
  203. package/documention/styles/common.css +0 -175
  204. package/documention/styles/examples.css +0 -116
  205. package/documention/styles/header.css +0 -556
  206. package/documention/styles/iframe.css +0 -29
  207. package/documention/styles/jaguar.css +0 -553
  208. package/documention/styles/m.png +0 -0
  209. package/documention/styles/reset.css +0 -44
  210. package/documention/styles/up-arrow.png +0 -0
  211. package/documention/tutorial-1./345/277/253/351/200/237/345/205/245/351/227/250.html +0 -162
  212. /package/{documention → documentation}/fonts/fontawesome-webfont.woff2 +0 -0
  213. /package/{documention → documentation}/fonts/glyphicons-halflings-regular.eot +0 -0
  214. /package/{documention → documentation}/fonts/glyphicons-halflings-regular.ttf +0 -0
  215. /package/{documention → documentation}/fonts/glyphicons-halflings-regular.woff +0 -0
  216. /package/{documention → documentation}/fonts/glyphicons-halflings-regular.woff2 +0 -0
  217. /package/{documention → documentation}/scripts/adminlte/app.min.js +0 -0
  218. /package/{documention → documentation}/scripts/bootstrap.min.js +0 -0
  219. /package/{documention → documentation}/scripts/jquery.min.js +0 -0
  220. /package/{documention → documentation}/scripts/linenumber.js +0 -0
  221. /package/{documention → documentation}/scripts/main.js +0 -0
  222. /package/{documention → documentation}/scripts/prettify/Apache-License-2.0.txt +0 -0
  223. /package/{documention → documentation}/scripts/prettify/lang-css.js +0 -0
  224. /package/{documention → documentation}/scripts/prettify/prettify.js +0 -0
  225. /package/{documention → documentation}/scripts/underscore-min.js +0 -0
  226. /package/{documention → documentation}/styles/adminlte/font-awesome.min.css +0 -0
  227. /package/{documention → documentation}/styles/prettify-jsdoc.css +0 -0
@@ -83,12 +83,12 @@
83
83
  <div class="nameContainer">
84
84
  <h4 class="name" id="SketchEditor">
85
85
 
86
- new SketchEditor<span class="signature">(options)</span>
86
+ new SketchEditor<span class="signature">(<span class="optional">options</span>)</span>
87
87
  </h4>
88
88
 
89
89
 
90
90
  <div class="tag-source">
91
- sketchEditor/SketchEditor.js, line 15
91
+ sketchEditor/SketchEditor.js, line 34
92
92
  </div>
93
93
 
94
94
  </div>
@@ -99,12 +99,8 @@
99
99
 
100
100
 
101
101
  <div class="description">
102
- <p>Cesium引擎草图编辑类<br/>
103
- 继承自<a href='http://10.10.130.72:8086/static/modules/common/api/common-mapgis/SketchEditor3D.html' target='_blank'>zondy.SketchEditor3D</a><br/>
104
- <br>[ES5引入方式]:<br/>
105
- const { SketchEditor } = zondy.tool.sketch <br/>
106
- [ES6引入方式]:<br/>
107
- import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/></p>
102
+ <p>Cesium 引擎草图编辑类,用于在三维场景中创建、选中、编辑、分割和转换草图几何。
103
+ 继承自 <a href='http://10.10.130.72:8086/static/modules/common/api/common-mapgis/SketchEditor3D.html' target='_blank'>zondy.SketchEditor3D</a>。</p>
108
104
  </div>
109
105
 
110
106
 
@@ -125,6 +121,8 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
125
121
  <th>Type</th>
126
122
 
127
123
 
124
+ <th>Default</th>
125
+
128
126
 
129
127
  <th class="last">Description</th>
130
128
  </tr>
@@ -148,10 +146,23 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
148
146
  </td>
149
147
 
150
148
 
149
+ <td class="default">
150
+
151
+ {}
152
+
153
+ </td>
154
+
151
155
 
152
156
  <td class="description last">
153
157
 
154
- <p>构造参数</p>
158
+
159
+ <span class="optional"> 可选</span>
160
+
161
+
162
+
163
+
164
+
165
+ <p>构造参数。</p>
155
166
 
156
167
 
157
168
  <table class="params">
@@ -182,7 +193,7 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
182
193
  <td class="type">
183
194
 
184
195
 
185
- <span class="param-type"><a href="MapView.html">MapView</a></span>
196
+ <span class="param-type">MapView</span>
186
197
  |
187
198
 
188
199
  <span class="param-type"><a href="SceneView.html">SceneView</a></span>
@@ -206,7 +217,7 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
206
217
 
207
218
 
208
219
 
209
- <p>地图视图对象</p></td>
220
+ <p>Cesium 三维场景视图对象。</p></td>
210
221
  </tr>
211
222
 
212
223
 
@@ -240,7 +251,7 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
240
251
 
241
252
 
242
253
 
243
- <p>草图图层管对象</p></td>
254
+ <p>草图图层对象,用于承载绘制完成的草图要素。</p></td>
244
255
  </tr>
245
256
 
246
257
 
@@ -274,7 +285,7 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
274
285
 
275
286
 
276
287
 
277
- <p>草图符号</p></td>
288
+ <p>草图符号样式。</p></td>
278
289
  </tr>
279
290
 
280
291
 
@@ -308,7 +319,43 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
308
319
 
309
320
 
310
321
 
311
- <p>草图捕获配置项</p></td>
322
+ <p>草图捕获配置项。</p></td>
323
+ </tr>
324
+
325
+
326
+
327
+ <tr>
328
+
329
+ <td class="name"><code>snapAndReferFeatures</code></td>
330
+
331
+
332
+ <td class="type">
333
+
334
+
335
+ <span class="param-type">Array.&lt;Feature></span>
336
+
337
+
338
+
339
+ </td>
340
+
341
+
342
+ <td class="default">
343
+
344
+ []
345
+
346
+ </td>
347
+
348
+
349
+ <td class="description last">
350
+
351
+
352
+ <span class="optional"> 可选</span>
353
+
354
+
355
+
356
+
357
+
358
+ <p>捕获和线造区边界参考要素集合。</p></td>
312
359
  </tr>
313
360
 
314
361
 
@@ -344,15 +391,14 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
344
391
 
345
392
 
346
393
 
347
- <p>草图图形弧线类型<br>
394
+ <p>草图图形弧线类型。绘制线、区、矩形时生效;贴地和贴场景模式下 <code>ArcType.none</code> 会按大地线处理。
348
395
  可选类型为:<br>
349
396
  1、ArcType.none:不考虑弧度<br>
350
397
  2、ArcType.geodesic:大地线(或称为大圆线)<br>
351
398
  3、ArcType.rhumb:等角航线<br>
352
399
  目前绘制线、区、矩形时,该属性生效<br>
353
400
  请注意当绘制几何的高程模式设置为OnTheGround(贴地)和OnTheScene(贴场景)时,arcType支持设置为ArcType.geodesic和ArcType.rhumb,
354
- 当设置为ArcType.none时,内部会将该属性设置为ArcType.geodesic
355
- *</p></td>
401
+ 当设置为ArcType.none时,内部会将该属性设置为ArcType.geodesic</p></td>
356
402
  </tr>
357
403
 
358
404
 
@@ -393,13 +439,6 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
393
439
 
394
440
 
395
441
 
396
- <h5>Fires</h5>
397
- <ul>
398
- <li>SketchEditor#event:草图绘制完成事件</li>
399
-
400
- <li>SketchEditor#event:草图被选中事件</li>
401
- </ul>
402
-
403
442
 
404
443
 
405
444
 
@@ -410,6 +449,25 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
410
449
 
411
450
 
412
451
 
452
+ <h5>Example</h5>
453
+
454
+ <p class="code-caption">创建 Cesium 草图编辑器</p>
455
+
456
+
457
+
458
+ <pre class="prettyprint"><code>// ES5 引入方式
459
+ const { SketchEditor } = zondy.cesium.tool.sketch
460
+
461
+ // ES6 引入方式
462
+ import { SketchEditor, SceneView } from '@mapgis/webclient-cesium-plugin'
463
+
464
+ const sketchEditor = new SketchEditor({
465
+ view: sceneView,
466
+ layer: graphicsLayer
467
+ })</code></pre>
468
+
469
+
470
+
413
471
  </dd>
414
472
 
415
473
 
@@ -506,7 +564,7 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
506
564
 
507
565
 
508
566
  <div class="tag-source">
509
- sketchEditor/SketchEditor.js, line 59
567
+ sketchEditor/SketchEditor.js, line 81
510
568
  </div>
511
569
 
512
570
  </div>
@@ -517,7 +575,8 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
517
575
 
518
576
 
519
577
  <div class="description">
520
- <p>向当前线或区草图中插入新的顶点<a id='addVertex'></a></p>
578
+ <p>向当前线或区草图中插入新的顶点。</p>
579
+ <p>在 Cesium 三维场景中,如果编辑器提供当前绘制高度,会先将该高度写入新增点的 Z 坐标。</p>
521
580
  </div>
522
581
 
523
582
 
@@ -564,7 +623,7 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
564
623
 
565
624
  <td class="description last">
566
625
 
567
- <p>新增/插入顶点</p></td>
626
+ <p>新增或插入的顶点。</p></td>
568
627
  </tr>
569
628
 
570
629
 
@@ -587,7 +646,7 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
587
646
 
588
647
  <td class="description last">
589
648
 
590
- <p>新增点的索引值,索引值从0开始</p></td>
649
+ <p>新增顶点的索引值,索引值从 0 开始。</p></td>
591
650
  </tr>
592
651
 
593
652
 
@@ -652,7 +711,7 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
652
711
 
653
712
 
654
713
  </td>
655
- <td class="description last">改变后的图形几何</td>
714
+ <td class="description last">更新后的草图几何。</td>
656
715
  </tr>
657
716
 
658
717
  </tbody>
@@ -674,7 +733,7 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
674
733
 
675
734
 
676
735
  <div class="tag-source">
677
- sketchEditor/SketchEditor.js, line 210
736
+ sketchEditor/SketchEditor.js, line 164
678
737
  </div>
679
738
 
680
739
  </div>
@@ -685,7 +744,7 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
685
744
 
686
745
 
687
746
  <div class="description">
688
- <p>线拓扑造区<a id='drawPolylineToPolygon'></a></p>
747
+ <p>启动线拓扑造区流程。</p>
689
748
  </div>
690
749
 
691
750
 
@@ -732,7 +791,7 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
732
791
 
733
792
  <td class="description last">
734
793
 
735
- <p>捕获参考几何对象数组</p></td>
794
+ <p>捕获参考几何对象数组。</p></td>
736
795
  </tr>
737
796
 
738
797
 
@@ -783,71 +842,29 @@ import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/><
783
842
 
784
843
 
785
844
 
786
- <pre class="prettyprint"><code>// [ES5引入方式]:
787
- const { Polygon, LineString } = zondy.geometry
788
- const { SceneView} = zondy.cesium
845
+ <pre class="prettyprint"><code>// ES5引入方式
846
+ const { Polygon } = zondy.geometry
847
+ const { SceneView } = zondy.cesium
789
848
  const { SketchEditor } = zondy.cesium.tool.sketch
849
+
790
850
  [ES6引入方式]:
791
- import { SceneView, SketchEditor } from "@mapgis/webclient-cesium-plugin" <br/>
792
- import { Polygon, LineString } from "@mapgis/webclient-common" <br/>
793
- var map = new Map()
794
- var sceneView = new SceneView({
795
- viewId: "mapgis-3d-viewer",
796
- map: map,
851
+ import { SceneView, SketchEditor } from '@mapgis/webclient-cesium-plugin'
852
+ import { Polygon } from '@mapgis/webclient-common'
853
+
854
+ const map = new Map()
855
+ const sceneView = new SceneView({
856
+ viewId: 'mapgis-3d-viewer',
857
+ map
797
858
  })
798
- var testGeometries = [
799
- new Polygon({
800
- coordinates: [
801
- [
802
- [114.0, 29.0],
803
- [117.0, 29.0],
804
- [117.0, 35.0],
805
- [114.0, 35.0],
806
- [114.0, 29.0]
807
- ]
808
- ]
809
- }),
810
- new Polygon({
811
- coordinates: [
812
- [
813
- [113.0, 29.0],
814
- [116.0, 29.0],
815
- [116.0, 35.0],
816
- [113.0, 35.0],
817
- [113.0, 29.0]
818
- ]
819
- ]
820
- })
821
- ]
822
- testFeatures = [
823
- new Feature({
824
- id: '11114',
825
- geometry: this.testGeometries[0],
826
- symbol: new SimpleFillSymbol({
827
- color: new Color(0, 255, 255, 0.5),
828
- outline: new SimpleLineSymbol({
829
- color: new Color(0, 255, 255, 0.8),
830
- width: 2
831
- })
832
- })
833
- }),
834
- new Feature({
835
- id: '11115',
836
- geometry: this.testGeometries[1],
837
- symbol: new SimpleFillSymbol({
838
- color: new Color(0, 255, 255, 0.5),
839
- outline: new SimpleLineSymbol({
840
- color: new Color(0, 255, 255, 0.8),
841
- width: 2
842
- })
843
- })
859
+ const testGeometries = [
860
+ new Polygon({
861
+ coordinates: [[[114.0, 29.0], [117.0, 29.0], [117.0, 35.0], [114.0, 35.0], [114.0, 29.0]]]
844
862
  }),
863
+ new Polygon({
864
+ coordinates: [[[113.0, 29.0], [116.0, 29.0], [116.0, 35.0], [113.0, 35.0], [113.0, 29.0]]]
865
+ })
845
866
  ]
846
- var testLayer = new GraphicsLayer({
847
- graphics: this.testFeatures
848
- })
849
- map.add(testLayer)
850
- var sketchEditor = new SketchEditor({
867
+ const sketchEditor = new SketchEditor({
851
868
  view: sceneView,
852
869
  layer: new GraphicsLayer()
853
870
  })
@@ -868,7 +885,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
868
885
 
869
886
 
870
887
  <div class="tag-source">
871
- sketchEditor/SketchEditor.js, line 86
888
+ sketchEditor/SketchEditor.js, line 117
872
889
  </div>
873
890
 
874
891
  </div>
@@ -879,7 +896,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
879
896
 
880
897
 
881
898
  <div class="description">
882
- <p>移除草图图形的某个顶点<a id='removeVertex'></a></p>
899
+ <p>移除当前草图图形的指定顶点。</p>
883
900
  </div>
884
901
 
885
902
 
@@ -926,7 +943,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
926
943
 
927
944
  <td class="description last">
928
945
 
929
- <p>需移除的顶点的索引值,索引值从0开始</p></td>
946
+ <p>需要移除的顶点索引值,索引值从 0 开始。</p></td>
930
947
  </tr>
931
948
 
932
949
 
@@ -991,7 +1008,152 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
991
1008
 
992
1009
 
993
1010
  </td>
994
- <td class="description last">改变后的图形几何</td>
1011
+ <td class="description last">更新后的草图几何。</td>
1012
+ </tr>
1013
+
1014
+ </tbody>
1015
+ </table>
1016
+
1017
+
1018
+
1019
+
1020
+ </dd>
1021
+
1022
+
1023
+
1024
+ <dt>
1025
+ <div class="nameContainer">
1026
+ <h4 class="name" id="setSnapAndReferFeatures">
1027
+
1028
+ setSnapAndReferFeatures<span class="signature">(features)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{void}</span>
1029
+ </h4>
1030
+
1031
+
1032
+ <div class="tag-source">
1033
+ sketchEditor/SketchEditor.js, line 202
1034
+ </div>
1035
+
1036
+ </div>
1037
+
1038
+
1039
+ </dt>
1040
+ <dd>
1041
+
1042
+
1043
+ <div class="description">
1044
+ <p>设置捕获和线造区边界参考几何要素集合。</p>
1045
+ </div>
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+ <table class="params">
1056
+ <thead>
1057
+ <tr>
1058
+
1059
+ <th>Name</th>
1060
+
1061
+
1062
+ <th>Type</th>
1063
+
1064
+
1065
+
1066
+ <th class="last">Description</th>
1067
+ </tr>
1068
+ </thead>
1069
+
1070
+ <tbody>
1071
+
1072
+
1073
+ <tr>
1074
+
1075
+ <td class="name"><code>features</code></td>
1076
+
1077
+
1078
+ <td class="type">
1079
+
1080
+
1081
+ <span class="param-type">Array.&lt;Feature></span>
1082
+
1083
+
1084
+
1085
+ </td>
1086
+
1087
+
1088
+
1089
+ <td class="description last">
1090
+
1091
+ <p>参考要素集合。传入非数组时不会更新当前配置。</p></td>
1092
+ </tr>
1093
+
1094
+
1095
+ </tbody>
1096
+ </table>
1097
+
1098
+
1099
+
1100
+ <dl class="details">
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+
1122
+ </dl>
1123
+
1124
+
1125
+
1126
+
1127
+
1128
+
1129
+
1130
+
1131
+
1132
+
1133
+
1134
+ <h5>Returns:</h5>
1135
+
1136
+
1137
+
1138
+ <table class="params">
1139
+ <thead>
1140
+ <tr>
1141
+
1142
+ <th>Type</th>
1143
+ <th class="last">Description</th>
1144
+ </tr>
1145
+ </thead>
1146
+ <tbody>
1147
+
1148
+ <tr>
1149
+
1150
+ <td class="type">
1151
+
1152
+ void
1153
+
1154
+
1155
+ </td>
1156
+ <td class="description last"></td>
995
1157
  </tr>
996
1158
 
997
1159
  </tbody>
@@ -1013,7 +1175,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
1013
1175
 
1014
1176
 
1015
1177
  <div class="tag-source">
1016
- sketchEditor/SketchEditor.js, line 132
1178
+ sketchEditor/SketchEditor.js, line 160
1017
1179
  </div>
1018
1180
 
1019
1181
  </div>
@@ -1024,7 +1186,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
1024
1186
 
1025
1187
 
1026
1188
  <div class="description">
1027
- <p>分割草图对象或区几何对象<a id='split'></a></p>
1189
+ <p>分割草图对象或区几何对象。</p>
1028
1190
  </div>
1029
1191
 
1030
1192
 
@@ -1177,40 +1339,30 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
1177
1339
 
1178
1340
 
1179
1341
 
1180
- <pre class="prettyprint"><code>// [ES5引入方式]:
1342
+ <pre class="prettyprint"><code>// ES5引入方式
1181
1343
  const { Polygon, LineString } = zondy.geometry
1182
- const { SceneView} = zondy.cesium
1344
+ const { SceneView } = zondy.cesium
1183
1345
  const { SketchEditor } = zondy.cesium.tool.sketch
1184
1346
  [ES6引入方式]:
1185
- import { SceneView, SketchEditor } from "@mapgis/webclient-cesium-plugin" <br/>
1186
- import { Polygon, LineString } from "@mapgis/webclient-common" <br/>
1187
- var map = new Map()
1188
- var sceneView = new SceneView({
1189
- viewId: "mapgis-3d-viewer",
1190
- map: map,
1347
+ import { SceneView, SketchEditor } from '@mapgis/webclient-cesium-plugin'
1348
+ import { Polygon, LineString } from '@mapgis/webclient-common'
1349
+
1350
+ const map = new Map()
1351
+ const sceneView = new SceneView({
1352
+ viewId: 'mapgis-3d-viewer',
1353
+ map
1191
1354
  })
1192
- var SketchEditor = new SketchEditor({
1355
+ const sketchEditor = new SketchEditor({
1193
1356
  view: sceneView,
1194
1357
  layer: new GraphicsLayer()
1195
1358
  })
1196
1359
  const polygon = new Polygon({
1197
- coordinates: [
1198
- [
1199
- [108, 29],
1200
- [116, 29],
1201
- [116, 33],
1202
- [108, 33],
1203
- [108, 29]
1204
- ]
1205
- ]
1360
+ coordinates: [[[108, 29], [116, 29], [116, 33], [108, 33], [108, 29]]]
1206
1361
  })
1207
1362
  const polyline = new LineString({
1208
- coordinates: [
1209
- [100, 30],
1210
- [120, 30]
1211
- ]
1363
+ coordinates: [[100, 30], [120, 30]]
1212
1364
  })
1213
- const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
1365
+ const polygons = sketchEditor.split(polygon, polyline)</code></pre>
1214
1366
 
1215
1367
 
1216
1368
 
@@ -1227,7 +1379,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
1227
1379
 
1228
1380
 
1229
1381
  <div class="tag-source">
1230
- sketchEditor/SketchEditor.js, line 73
1382
+ sketchEditor/SketchEditor.js, line 99
1231
1383
  </div>
1232
1384
 
1233
1385
  </div>
@@ -1238,7 +1390,8 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
1238
1390
 
1239
1391
 
1240
1392
  <div class="description">
1241
- <p>更新当前选中或区草图图形的某个顶点<a id='updateVertex'></a></p>
1393
+ <p>更新当前线或区草图的指定顶点。</p>
1394
+ <p>在 Cesium 三维场景中,如果编辑器提供当前绘制高度,会先将该高度写入新顶点的 Z 坐标。</p>
1242
1395
  </div>
1243
1396
 
1244
1397
 
@@ -1285,7 +1438,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
1285
1438
 
1286
1439
  <td class="description last">
1287
1440
 
1288
- <p>新的顶点</p></td>
1441
+ <p>新的顶点。</p></td>
1289
1442
  </tr>
1290
1443
 
1291
1444
 
@@ -1308,7 +1461,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
1308
1461
 
1309
1462
  <td class="description last">
1310
1463
 
1311
- <p>需更新的顶点的索引值,索引值从0开始</p></td>
1464
+ <p>需要更新的顶点索引值,索引值从 0 开始。</p></td>
1312
1465
  </tr>
1313
1466
 
1314
1467
 
@@ -1373,7 +1526,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
1373
1526
 
1374
1527
 
1375
1528
  </td>
1376
- <td class="description last">改变后的图形几何</td>
1529
+ <td class="description last">更新后的草图几何。</td>
1377
1530
  </tr>
1378
1531
 
1379
1532
  </tbody>
@@ -1398,7 +1551,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
1398
1551
 
1399
1552
 
1400
1553
  <footer>
1401
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Feb 06 2026 14:59:55 GMT+0800 (中国标准时间)
1554
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Sat Sep 12 2026 11:55:59 GMT+0800 (中国标准时间)
1402
1555
  </footer>
1403
1556
  </div>
1404
1557
  </div>