@mapgis/webclient-cesium-plugin 17.8.1 → 17.10.10

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
@@ -90,7 +90,7 @@
90
90
 
91
91
 
92
92
  <div class="tag-source">
93
- engineExtensions/tools/TerrainExcavateTool.js, line 31
93
+ engineExtensions/tools/TerrainExcavateTool.js, line 32
94
94
  </div>
95
95
 
96
96
  </div>
@@ -605,6 +605,54 @@ terrainPlan.updateData(positions);</code></pre>
605
605
 
606
606
 
607
607
 
608
+
609
+ </dl>
610
+
611
+
612
+
613
+ </dd>
614
+
615
+
616
+
617
+ <dt>
618
+ <div class="nameContainer">
619
+ <h4 class="name" id="enableExtraction">enableExtraction<span class="type-signature type boolean">Boolean</span> </h4>
620
+ </div>
621
+
622
+
623
+ </dt>
624
+ <dd>
625
+
626
+ <div class="description">
627
+ <p>是否启用地形开挖抽出功能</p>
628
+ </div>
629
+
630
+
631
+
632
+ <dl class="details">
633
+
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+ <dt class="tag-default">Default Value:</dt>
649
+ false</li></ul></dd>
650
+
651
+
652
+
653
+
654
+
655
+
608
656
 
609
657
  </dl>
610
658
 
@@ -693,6 +741,54 @@ terrainPlan.updateData(positions);</code></pre>
693
741
 
694
742
 
695
743
 
744
+ <dt class="tag-default">Default Value:</dt>
745
+ 0</li></ul></dd>
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+ </dl>
754
+
755
+
756
+
757
+ </dd>
758
+
759
+
760
+
761
+ <dt>
762
+ <div class="nameContainer">
763
+ <h4 class="name" id="extractHeight">extractHeight<span class="type-signature type number">Number</span> </h4>
764
+ </div>
765
+
766
+
767
+ </dt>
768
+ <dd>
769
+
770
+ <div class="description">
771
+ <p>地形开挖抽出高度</p>
772
+ </div>
773
+
774
+
775
+
776
+ <dl class="details">
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
696
792
  <dt class="tag-default">Default Value:</dt>
697
793
  0</li></ul></dd>
698
794
 
@@ -967,7 +1063,7 @@ terrainPlan.updateData(positions);</code></pre>
967
1063
 
968
1064
 
969
1065
  <div class="tag-source">
970
- engineExtensions/tools/TerrainExcavateTool.js, line 77
1066
+ engineExtensions/tools/TerrainExcavateTool.js, line 76
971
1067
  </div>
972
1068
 
973
1069
  </div>
@@ -1109,7 +1205,7 @@ terrainPlan.updateData(positions);</code></pre>
1109
1205
 
1110
1206
 
1111
1207
  <footer>
1112
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Feb 06 2026 14:59:55 GMT+0800 (中国标准时间)
1208
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Sep 18 2026 14:59:31 GMT+0800 (中国标准时间)
1113
1209
  </footer>
1114
1210
  </div>
1115
1211
  </div>
@@ -71,8 +71,6 @@
71
71
 
72
72
  </h2>
73
73
 
74
- <div class="class-description"><p>TerrainProfile</p></div>
75
-
76
74
  </header>
77
75
 
78
76
  <article>
@@ -85,12 +83,12 @@
85
83
  <div class="nameContainer">
86
84
  <h4 class="name" id="TerrainProfile">
87
85
 
88
- new TerrainProfile<span class="signature">(viewer, <span class="optional">options</span>)</span>
86
+ new TerrainProfile<span class="signature">(viewer, options)</span>
89
87
  </h4>
90
88
 
91
89
 
92
90
  <div class="tag-source">
93
- engineExtensions/analysis/TerrainProfile.js, line 46
91
+ engineExtensions/analysis/TerrainProfile.js, line 10
94
92
  </div>
95
93
 
96
94
  </div>
@@ -100,6 +98,14 @@
100
98
  <dd>
101
99
 
102
100
 
101
+ <div class="description">
102
+ <p>三维地形剖面分析工具。</p>
103
+ <p><code>TerrainProfile</code> 用于沿一条折线对地形或场景进行高程采样,并将采样结果以场景剖切面、
104
+ 贴地线和 echart 剖面图的形式展示出来。适用于地形高程趋势查看、线路断面分析以及模型与地形的联合剖面展示等场景。</p>
105
+ <p>当未传入 <code>options.positions</code> 时,实例会通过内部绘制工具交互式获取剖面线;当传入 <code>options.positions</code> 时,
106
+ 调用 <code>profile</code> 后会直接使用给定坐标点集开始分析。若 <code>resultShowType</code> 为 <code>1</code> 或 <code>2</code>,则需要提前传入可用的 <code>options.echart</code> 图表对象。</p>
107
+ </div>
108
+
103
109
 
104
110
 
105
111
 
@@ -134,7 +140,7 @@
134
140
  <td class="type">
135
141
 
136
142
 
137
- <span class="param-type">Viewer</span>
143
+ <span class="param-type"><a href="Cesium.Viewer.html">Cesium.Viewer</a></span>
138
144
 
139
145
 
140
146
 
@@ -144,12 +150,8 @@
144
150
 
145
151
  <td class="description last">
146
152
 
147
-
148
-
149
-
150
-
151
-
152
- <p>场景视图对象</p></td>
153
+ <p>Cesium 三维场景视图对象。通常可通过 <code>new Cesium.Viewer(...)</code> 创建获得,
154
+ 也可在 <code>SceneView</code>的'底层引擎视图对象创建完毕事件(innerView-created)'回调的event.innerView参数中获取。</p></td>
153
155
  </tr>
154
156
 
155
157
 
@@ -172,14 +174,7 @@
172
174
 
173
175
  <td class="description last">
174
176
 
175
-
176
- <span class="optional"> 可选</span>
177
-
178
-
179
-
180
-
181
-
182
- <p>包含以下属性的对象</p>
177
+ <p>初始化参数对象。可传入空对象 <code>{}</code> 以使用默认配置。</p>
183
178
 
184
179
 
185
180
  <table class="params">
@@ -231,7 +226,7 @@
231
226
 
232
227
 
233
228
 
234
- <p>echart图表对象,如果resultShowType设置为1和2,则这个值必须传入</p></td>
229
+ <p>echart 图表对象。当 <code>resultShowType</code> 为 <code>1</code> 或 <code>2</code> 时必须传入,用于展示剖面图并驱动图表与场景联动。</p></td>
235
230
  </tr>
236
231
 
237
232
 
@@ -267,7 +262,7 @@
267
262
 
268
263
 
269
264
 
270
- <p>垂直面颜色</p></td>
265
+ <p>剖切垂直面的颜色,仅在启用垂直面显示时生效。</p></td>
271
266
  </tr>
272
267
 
273
268
 
@@ -289,7 +284,7 @@
289
284
 
290
285
  <td class="default">
291
286
 
292
- 50
287
+ 500
293
288
 
294
289
  </td>
295
290
 
@@ -303,7 +298,7 @@
303
298
 
304
299
 
305
300
 
306
- <p>垂直面高度,相较于最大地形高程</p></td>
301
+ <p>剖切垂直面的附加高度,单位与场景高程一致,内部会在采样点高程基础上向上抬升该值。</p></td>
307
302
  </tr>
308
303
 
309
304
 
@@ -339,7 +334,7 @@
339
334
 
340
335
 
341
336
 
342
- <p>垂直线颜色</p></td>
337
+ <p>图表联动时场景中垂直指示线的颜色。</p></td>
343
338
  </tr>
344
339
 
345
340
 
@@ -375,7 +370,7 @@
375
370
 
376
371
 
377
372
 
378
- <p>贴地线颜色</p></td>
373
+ <p>场景中贴地剖面线的颜色。</p></td>
379
374
  </tr>
380
375
 
381
376
 
@@ -411,7 +406,7 @@
411
406
 
412
407
 
413
408
 
414
- <p>贴地点颜色</p></td>
409
+ <p>图表联动时场景中指示点的颜色。</p></td>
415
410
  </tr>
416
411
 
417
412
 
@@ -447,7 +442,7 @@
447
442
 
448
443
 
449
444
 
450
- <p>采样精度</p></td>
445
+ <p>插值采样精度。值越小,沿剖面线插入的采样点通常越密,分析耗时也可能更高。</p></td>
451
446
  </tr>
452
447
 
453
448
 
@@ -483,7 +478,7 @@
483
478
 
484
479
 
485
480
 
486
- <p>是否显示垂直面</p></td>
481
+ <p>是否在场景中显示剖切垂直面。</p></td>
487
482
  </tr>
488
483
 
489
484
 
@@ -519,7 +514,7 @@
519
514
 
520
515
 
521
516
 
522
- <p>分析类型.0代表地形,1代表地形和模型兼容</p></td>
517
+ <p>剖面分析类型。<code>0</code> 表示仅分析地形;<code>1</code> 表示对地形和模型场景进行兼容采样。</p></td>
523
518
  </tr>
524
519
 
525
520
 
@@ -555,7 +550,7 @@
555
550
 
556
551
 
557
552
 
558
- <p>地形采样级别.0代表采最精细级别,1-20为自定义采样级别,数值越大,越精细</p></td>
553
+ <p>地形采样级别。<code>0</code> 表示尽可能使用最精细级别;<code>1-20</code> 为自定义采样级别,数值越大通常越精细。</p></td>
559
554
  </tr>
560
555
 
561
556
 
@@ -591,7 +586,7 @@
591
586
 
592
587
 
593
588
 
594
- <p>是否对场景进行最精细的高程采样,默认为false,仅对当前场景深度进行采样,当值为true时,要求采样区域的模型缓存的叶子结点的数据不能全为空</p></td>
589
+ <p>在 <code>profileType</code> 为场景采样时,是否对场景执行最精细高程采样。设为 <code>true</code> 时要求采样区域对应模型缓存叶子节点数据可用。</p></td>
595
590
  </tr>
596
591
 
597
592
 
@@ -627,7 +622,7 @@
627
622
 
628
623
 
629
624
 
630
- <p>结果展示形式.0代表仅场景中展示结果(直接在地形上绘制结果),1表示仅echart图表中展示结果,2表示场景和图表都展示结果</p></td>
625
+ <p>结果展示方式。<code>0</code> 表示仅在场景中绘制结果;<code>1</code> 表示仅在 echart 图表中展示结果;<code>2</code> 表示同时在场景和图表中展示结果。</p></td>
631
626
  </tr>
632
627
 
633
628
 
@@ -640,7 +635,7 @@
640
635
  <td class="type">
641
636
 
642
637
 
643
- <span class="param-type">Array</span>
638
+ <span class="param-type">Array.&lt;Cesium.Cartesian3></span>
644
639
 
645
640
 
646
641
 
@@ -661,7 +656,7 @@
661
656
 
662
657
 
663
658
 
664
- <p>可选,Cartesian3数组,需要分析的坐标点集,数组内至少要有两个点.如果未传入positions,则接口内部调用绘制的接口,进行绘制获取点集</p></td>
659
+ <p>预设的剖面折线坐标数组,至少需要两个点。未传入时,<code>profile</code> 会启动交互绘制以获取坐标点集。</p></td>
665
660
  </tr>
666
661
 
667
662
 
@@ -697,7 +692,7 @@
697
692
 
698
693
 
699
694
 
700
- <p>可选,分析过程超时时间设置,超时后会调用分析失败函数,默认值为60,单位秒</p></td>
695
+ <p>单次分析超时时间,单位为秒。超时后会调用 <code>profile</code> 传入的失败回调,并屏蔽后续异步分析结果处理。</p></td>
701
696
  </tr>
702
697
 
703
698
 
@@ -750,21 +745,28 @@
750
745
 
751
746
  <h5>Example</h5>
752
747
 
748
+ <p class="code-caption">交互式地形剖面分析</p>
749
+
753
750
 
754
751
 
755
- <pre class="prettyprint"><code>// ES5引入方式
752
+ <pre class="prettyprint"><code>// ES5 引入方式
756
753
  const { TerrainProfile } = zondy.cesium
757
- // ES6引入方式
754
+
755
+ // ES6 引入方式
758
756
  import { TerrainProfile } from "@mapgis/webclient-cesium-plugin"
759
757
 
760
758
  const webGlobe = new Cesium.WebSceneControl('cesiumContainer', {});
761
759
  const viewer = webGlobe.viewer;
762
- const terrainProfile
763
- if(!Cesium.defined(terrainProfile)){
764
- terrainProfile = new TerrainProfile(viewer,{polygonColor:Cesium.Color.RED.withAlpha(0.5),polygonHeight:0,polyLineColor:Cesium.Color.BLUE.withAlpha(1)});
760
+ let terrainProfile
761
+ if (!Cesium.defined(terrainProfile)) {
762
+ terrainProfile = new TerrainProfile(viewer, {
763
+ polygonColor: Cesium.Color.RED.withAlpha(0.5),
764
+ polygonHeight: 0,
765
+ polyLineColor: Cesium.Color.BLUE.withAlpha(1),
766
+ resultShowType: 0
767
+ })
765
768
  }
766
- terrainProfile.profile();
767
- }</code></pre>
769
+ terrainProfile.profile()</code></pre>
768
770
 
769
771
 
770
772
 
@@ -796,12 +798,12 @@ if(!Cesium.defined(terrainProfile)){
796
798
  <div class="nameContainer">
797
799
  <h4 class="name" id="destroy">
798
800
 
799
- destroy<span class="signature">()</span>
801
+ destroy<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{void}</span>
800
802
  </h4>
801
803
 
802
804
 
803
805
  <div class="tag-source">
804
- engineExtensions/analysis/TerrainProfile.js, line 750
806
+ engineExtensions/analysis/TerrainProfile.js, line 724
805
807
  </div>
806
808
 
807
809
  </div>
@@ -812,7 +814,10 @@ if(!Cesium.defined(terrainProfile)){
812
814
 
813
815
 
814
816
  <div class="description">
815
- <p>结束剖面分析,清除场景对象</p>
817
+ <p>销毁剖面分析实例并清理关联资源。</p>
818
+ <p>该方法会销毁绘制句柄、提示框并移除场景中的贴地线;若当前实例配置了 echart,
819
+ 还会同步注销图表联动事件、隐藏图表容器,并清理图表联动指示线及相关分析实体。调用后当前实例会被标记为已销毁,
820
+ 后续异步采样返回时也不会再继续执行结果绘制逻辑。</p>
816
821
  </div>
817
822
 
818
823
 
@@ -857,6 +862,35 @@ if(!Cesium.defined(terrainProfile)){
857
862
 
858
863
 
859
864
 
865
+ <h5>Returns:</h5>
866
+
867
+
868
+
869
+ <table class="params">
870
+ <thead>
871
+ <tr>
872
+
873
+ <th>Type</th>
874
+ <th class="last">Description</th>
875
+ </tr>
876
+ </thead>
877
+ <tbody>
878
+
879
+ <tr>
880
+
881
+ <td class="type">
882
+
883
+ void
884
+
885
+
886
+ </td>
887
+ <td class="description last"></td>
888
+ </tr>
889
+
890
+ </tbody>
891
+ </table>
892
+
893
+
860
894
 
861
895
 
862
896
  </dd>
@@ -867,12 +901,12 @@ if(!Cesium.defined(terrainProfile)){
867
901
  <div class="nameContainer">
868
902
  <h4 class="name" id="profile">
869
903
 
870
- profile<span class="signature">(start, success, fail)</span>
904
+ profile<span class="signature">(<span class="optional">start</span>, <span class="optional">success</span>, <span class="optional">fail</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{void}</span>
871
905
  </h4>
872
906
 
873
907
 
874
908
  <div class="tag-source">
875
- engineExtensions/analysis/TerrainProfile.js, line 284
909
+ engineExtensions/analysis/TerrainProfile.js, line 270
876
910
  </div>
877
911
 
878
912
  </div>
@@ -883,7 +917,10 @@ if(!Cesium.defined(terrainProfile)){
883
917
 
884
918
 
885
919
  <div class="description">
886
- <p>开启地形剖切功能接口,左键画线,右键停止</p>
920
+ <p>启动一次剖面分析。</p>
921
+ <p>当初始化时未传入 <code>options.positions</code> 或点数不足两个时,该方法会先启动交互绘制以获取剖面线;
922
+ 否则会直接对预设坐标点集执行插值和高程采样。分析完成后可按配置在场景中绘制贴地线、垂直面,
923
+ 并在 echart 中展示剖面曲线;当采样超过 <code>options.timeout</code> 指定时长时,会触发失败回调。</p>
887
924
  </div>
888
925
 
889
926
 
@@ -930,7 +967,14 @@ if(!Cesium.defined(terrainProfile)){
930
967
 
931
968
  <td class="description last">
932
969
 
933
- <p>开始分析的回调函数</p></td>
970
+
971
+ <span class="optional"> 可选</span>
972
+
973
+
974
+
975
+
976
+
977
+ <p>开始分析前的回调函数。通常可用于更新界面状态或提示用户当前正在进行采样。</p></td>
934
978
  </tr>
935
979
 
936
980
 
@@ -953,7 +997,14 @@ if(!Cesium.defined(terrainProfile)){
953
997
 
954
998
  <td class="description last">
955
999
 
956
- <p>分析成功的回调函数</p></td>
1000
+
1001
+ <span class="optional"> 可选</span>
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+ <p>分析成功后的回调函数。在采样完成且结果绘制结束后触发。</p></td>
957
1008
  </tr>
958
1009
 
959
1010
 
@@ -976,7 +1027,14 @@ if(!Cesium.defined(terrainProfile)){
976
1027
 
977
1028
  <td class="description last">
978
1029
 
979
- <p>分析失败的回调函数,分析超时后会调用</p></td>
1030
+
1031
+ <span class="optional"> 可选</span>
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+ <p>分析失败回调函数。当前主要在分析超时时触发,建议在启用超时控制时始终传入。</p></td>
980
1038
  </tr>
981
1039
 
982
1040
 
@@ -1019,7 +1077,61 @@ if(!Cesium.defined(terrainProfile)){
1019
1077
 
1020
1078
 
1021
1079
 
1080
+ <h5>Returns:</h5>
1081
+
1082
+
1083
+
1084
+ <table class="params">
1085
+ <thead>
1086
+ <tr>
1087
+
1088
+ <th>Type</th>
1089
+ <th class="last">Description</th>
1090
+ </tr>
1091
+ </thead>
1092
+ <tbody>
1093
+
1094
+ <tr>
1095
+
1096
+ <td class="type">
1097
+
1098
+ void
1099
+
1100
+
1101
+ </td>
1102
+ <td class="description last"></td>
1103
+ </tr>
1104
+
1105
+ </tbody>
1106
+ </table>
1107
+
1108
+
1109
+
1110
+
1111
+ <h5>Example</h5>
1112
+
1113
+ <p class="code-caption">直接传入坐标点执行剖面分析</p>
1114
+
1115
+
1116
+
1117
+ <pre class="prettyprint"><code>const terrainProfile = new TerrainProfile(viewer, {
1118
+ positions,
1119
+ resultShowType: 0
1120
+ })
1121
+
1122
+ terrainProfile.profile(
1123
+ () => {
1124
+ console.log('开始分析')
1125
+ },
1126
+ () => {
1127
+ console.log('分析完成')
1128
+ },
1129
+ () => {
1130
+ console.warn('分析超时')
1131
+ }
1132
+ )</code></pre>
1022
1133
 
1134
+
1023
1135
 
1024
1136
  </dd>
1025
1137
 
@@ -1029,12 +1141,12 @@ if(!Cesium.defined(terrainProfile)){
1029
1141
  <div class="nameContainer">
1030
1142
  <h4 class="name" id="stopDrawing">
1031
1143
 
1032
- stopDrawing<span class="signature">()</span>
1144
+ stopDrawing<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{void}</span>
1033
1145
  </h4>
1034
1146
 
1035
1147
 
1036
1148
  <div class="tag-source">
1037
- engineExtensions/analysis/TerrainProfile.js, line 265
1149
+ engineExtensions/analysis/TerrainProfile.js, line 248
1038
1150
  </div>
1039
1151
 
1040
1152
  </div>
@@ -1045,8 +1157,9 @@ if(!Cesium.defined(terrainProfile)){
1045
1157
 
1046
1158
 
1047
1159
  <div class="description">
1048
- <p>停止绘制
1049
- 解决绘制一半后需要停止绘制问题</p>
1160
+ <p>停止当前剖面线绘制交互。</p>
1161
+ <p>当 <code>profile</code> 处于交互绘制阶段且尚未完成采样时,可调用该方法主动中断绘制流程。
1162
+ 该方法只会清理当前绘制事件和提示框,不会销毁已经创建的分析实例,也不会清除已完成的剖面结果。</p>
1050
1163
  </div>
1051
1164
 
1052
1165
 
@@ -1091,6 +1204,35 @@ if(!Cesium.defined(terrainProfile)){
1091
1204
 
1092
1205
 
1093
1206
 
1207
+ <h5>Returns:</h5>
1208
+
1209
+
1210
+
1211
+ <table class="params">
1212
+ <thead>
1213
+ <tr>
1214
+
1215
+ <th>Type</th>
1216
+ <th class="last">Description</th>
1217
+ </tr>
1218
+ </thead>
1219
+ <tbody>
1220
+
1221
+ <tr>
1222
+
1223
+ <td class="type">
1224
+
1225
+ void
1226
+
1227
+
1228
+ </td>
1229
+ <td class="description last"></td>
1230
+ </tr>
1231
+
1232
+ </tbody>
1233
+ </table>
1234
+
1235
+
1094
1236
 
1095
1237
 
1096
1238
  </dd>
@@ -1109,7 +1251,7 @@ if(!Cesium.defined(terrainProfile)){
1109
1251
 
1110
1252
 
1111
1253
  <footer>
1112
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Feb 06 2026 14:59:55 GMT+0800 (中国标准时间)
1254
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Sep 18 2026 14:59:31 GMT+0800 (中国标准时间)
1113
1255
  </footer>
1114
1256
  </div>
1115
1257
  </div>