@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
@@ -88,7 +88,7 @@
88
88
 
89
89
 
90
90
  <div class="tag-source">
91
- engineExtensions/tools/TriangulationTool.js, line 3
91
+ engineExtensions/tools/TriangulationTool.js, line 8
92
92
  </div>
93
93
 
94
94
  </div>
@@ -99,7 +99,9 @@
99
99
 
100
100
 
101
101
  <div class="description">
102
- <p>三角测量工具</p>
102
+ <p>三角测量工具。</p>
103
+ <p>该工具负责在 Cesium 场景中管理三角高程量算流程,并封装连续绘制、
104
+ 标注提示与结果清理控制。</p>
103
105
  </div>
104
106
 
105
107
 
@@ -146,7 +148,7 @@
146
148
 
147
149
  <td class="description last">
148
150
 
149
- <p>视图</p></td>
151
+ <p>Cesium 视图对象。</p></td>
150
152
  </tr>
151
153
 
152
154
 
@@ -169,7 +171,7 @@
169
171
 
170
172
  <td class="description last">
171
173
 
172
- <p>包含以下属性的对象</p>
174
+ <p>三角测量配置项。</p>
173
175
 
174
176
 
175
177
  <table class="params">
@@ -223,7 +225,7 @@
223
225
 
224
226
 
225
227
 
226
- <p>回调函数</p></td>
228
+ <p>量算结束回调。</p></td>
227
229
  </tr>
228
230
 
229
231
 
@@ -259,7 +261,7 @@
259
261
 
260
262
 
261
263
 
262
- <p>测量完毕后提示框的回调函数,可以覆盖提示内容</p></td>
264
+ <p>标注内容回调,用于覆盖默认提示文字。</p></td>
263
265
  </tr>
264
266
 
265
267
 
@@ -295,7 +297,7 @@
295
297
 
296
298
 
297
299
 
298
- <p>只要小于这个距离深度检测就会失效,就会一直显示在最前面 不会被遮挡</p></td>
300
+ <p>小于该距离时禁用深度检测,使标注保持前置显示。</p></td>
299
301
  </tr>
300
302
 
301
303
 
@@ -329,7 +331,7 @@
329
331
 
330
332
 
331
333
 
332
- <p>线颜色</p></td>
334
+ <p>线颜色。</p></td>
333
335
  </tr>
334
336
 
335
337
 
@@ -363,7 +365,7 @@
363
365
 
364
366
 
365
367
 
366
- <p>点颜色</p></td>
368
+ <p>点颜色。</p></td>
367
369
  </tr>
368
370
 
369
371
 
@@ -397,7 +399,7 @@
397
399
 
398
400
 
399
401
 
400
- <p>线材质</p></td>
402
+ <p>线材质。</p></td>
401
403
  </tr>
402
404
 
403
405
 
@@ -433,7 +435,7 @@
433
435
 
434
436
 
435
437
 
436
- <p>label 文字的样式,支持填充、线框。填充和线框, FILL, OUTLINE, FILL_AND_OUTLINE</p></td>
438
+ <p>label 文字样式,支持 <code>FILL</code>、<code>OUTLINE</code>、<code>FILL_AND_OUTLINE</code>。</p></td>
437
439
  </tr>
438
440
 
439
441
 
@@ -469,7 +471,7 @@
469
471
 
470
472
 
471
473
 
472
- <p>label 的字体以及大小 @see <a href="https://html.spec.whatwg.org/multipage/canvas.html#text-styles">https://html.spec.whatwg.org/multipage/canvas.html#text-styles</a></p></td>
474
+ <p>label 字体与字号。</p></td>
473
475
  </tr>
474
476
 
475
477
 
@@ -505,7 +507,7 @@
505
507
 
506
508
 
507
509
 
508
- <p>label 的字体颜色</p></td>
510
+ <p>label 文字颜色。</p></td>
509
511
  </tr>
510
512
 
511
513
 
@@ -541,7 +543,7 @@
541
543
 
542
544
 
543
545
 
544
- <p>label 文字线框的颜色</p></td>
546
+ <p>label 描边颜色。</p></td>
545
547
  </tr>
546
548
 
547
549
 
@@ -577,7 +579,7 @@
577
579
 
578
580
 
579
581
 
580
- <p>label 的外轮廓边线</p></td>
582
+ <p>label 外轮廓宽度。</p></td>
581
583
  </tr>
582
584
 
583
585
 
@@ -613,7 +615,7 @@
613
615
 
614
616
 
615
617
 
616
- <p>label 的摆放位置</p></td>
618
+ <p>label 摆放位置。</p></td>
617
619
  </tr>
618
620
 
619
621
 
@@ -649,7 +651,7 @@
649
651
 
650
652
 
651
653
 
652
- <p>是否显示 label 的背景</p></td>
654
+ <p>是否显示 label 背景。</p></td>
653
655
  </tr>
654
656
 
655
657
 
@@ -685,7 +687,7 @@
685
687
 
686
688
 
687
689
 
688
- <p>lable 背景的颜色</p></td>
690
+ <p>label 背景色。</p></td>
689
691
  </tr>
690
692
 
691
693
 
@@ -721,7 +723,7 @@
721
723
 
722
724
 
723
725
 
724
- <p>label 相对于设定点的偏移位置</p></td>
726
+ <p>label 相对锚点的屏幕偏移。</p></td>
725
727
  </tr>
726
728
 
727
729
 
@@ -757,7 +759,7 @@
757
759
 
758
760
 
759
761
 
760
- <p>是否显示详细信息。默认显示。</p></td>
762
+ <p>是否显示详细量算信息。</p></td>
761
763
  </tr>
762
764
 
763
765
 
@@ -793,7 +795,7 @@
793
795
 
794
796
 
795
797
 
796
- <p>展示信息时是否使用绝对值。默认不使用。</p></td>
798
+ <p>展示信息时是否使用绝对值。</p></td>
797
799
  </tr>
798
800
 
799
801
 
@@ -829,7 +831,7 @@
829
831
 
830
832
 
831
833
 
832
- <p>是否启用标签随视角高度缩放功能</p></td>
834
+ <p>是否启用标签随视角高度缩放。</p></td>
833
835
  </tr>
834
836
 
835
837
 
@@ -865,7 +867,7 @@
865
867
 
866
868
 
867
869
 
868
- <p>标签大小随视角高度缩放函数,用户可自定义,不传则使用默认函数,会传入一个当前的相机视角高度,返回一个NearFarScale函数对象,详见下方示例</p></td>
870
+ <p>标签随视角高度缩放的自定义函数。</p></td>
869
871
  </tr>
870
872
 
871
873
 
@@ -901,7 +903,7 @@
901
903
 
902
904
 
903
905
 
904
- <p>是否连续绘制,true:是,false:否</p></td>
906
+ <p>是否连续绘制。</p></td>
905
907
  </tr>
906
908
 
907
909
 
@@ -937,7 +939,43 @@
937
939
 
938
940
 
939
941
 
940
- <p>是否显示多个测量结果,true:是,false:否</p></td>
942
+ <p>是否显示多个量算结果。</p></td>
943
+ </tr>
944
+
945
+
946
+
947
+ <tr>
948
+
949
+ <td class="name"><code>enableAvoidance</code></td>
950
+
951
+
952
+ <td class="type">
953
+
954
+
955
+ <span class="param-type">Boolean</span>
956
+
957
+
958
+
959
+ </td>
960
+
961
+
962
+ <td class="default">
963
+
964
+ false
965
+
966
+ </td>
967
+
968
+
969
+ <td class="description last">
970
+
971
+
972
+ <span class="optional"> 可选</span>
973
+
974
+
975
+
976
+
977
+
978
+ <p>是否开启量算结果标签避让。</p></td>
941
979
  </tr>
942
980
 
943
981
 
@@ -1001,61 +1039,62 @@
1001
1039
 
1002
1040
  <pre class="prettyprint"><code>// ES5引入方式
1003
1041
  const { TriangulationTool } = zondy.cesium
1042
+
1004
1043
  // ES6引入方式
1005
1044
  import { TriangulationTool } from "@mapgis/webclient-cesium-plugin"
1006
1045
 
1007
- function callBack(arg){
1046
+ function callBack(arg) {
1008
1047
  }
1009
- var triangulationToolMul = new TriangulationTool(viewer,{
1010
- callBack:callBack,
1011
- scaleByDistance: function(height) {
1012
- if (height < 30) {
1013
- return new NearFarScalar(30, 3, 180, 0);
1014
- } else if (height < 60) {
1015
- return new NearFarScalar(60, 3, 360, 0);
1016
- } else if (height < 120) {
1017
- return new NearFarScalar(120, 3, 720, 0);
1018
- } else if (height < 240) {
1019
- return new NearFarScalar(240, 2, 1200, 0);
1020
- } else if (height < 480) {
1021
- return new NearFarScalar(480, 2, 2400, 0);
1022
- } else if (height < 960) {
1023
- return new NearFarScalar(960, 2, 4800, 0);
1024
- } else if (height < 1920) {
1025
- return new NearFarScalar(1920, 2, 9600, 0);
1026
- } else if (height < 3840) {
1027
- return new NearFarScalar(3840, 2, 19200, 0);
1028
- } else if (height < 7680) {
1029
- return new NearFarScalar(7680, 2, 38400, 0);
1030
- } else if (height < 15360) {
1031
- return new NearFarScalar(15360, 2, 76800, 0);
1032
- } else if (height < 30720) {
1033
- return new NearFarScalar(30720, 2, 153600, 0);
1034
- } else if (height < 61440) {
1035
- return new NearFarScalar(61440, 2, 307200, 0);
1036
- } else if (height < 122880) {
1037
- return new NearFarScalar(122880, 2, 614400, 0);
1038
- } else if (height < 245760) {
1039
- return new NearFarScalar(245760, 2, 1228800, 0);
1040
- } else if (height < 491520) {
1041
- return new NearFarScalar(491520, 2, 2457600, 0);
1042
- } else if (height < 983040) {
1043
- return new NearFarScalar(983040, 2, 4915200, 0);
1044
- } else if (height < 1966080) {
1045
- return new NearFarScalar(1966080, 2, 9830400, 0);
1046
- } else if (height < 3932160) {
1047
- return new NearFarScalar(3932160, 1, 19660800, 0);
1048
- } else if (height < 7864320) {
1049
- return new NearFarScalar(7864320, 1, 39321600, 0);
1050
- } else if (height < 15728640) {
1051
- return new NearFarScalar(15728640, 1, 78643200, 0);
1052
- }
1053
- return new NearFarScalar(15728640, 1, 78643200, 0);
1048
+ var triangulationToolMul = new TriangulationTool(viewer, {
1049
+ callBack: callBack,
1050
+ scaleByDistance: function(height) {
1051
+ if (height < 30) {
1052
+ return new NearFarScalar(30, 3, 180, 0)
1053
+ } else if (height < 60) {
1054
+ return new NearFarScalar(60, 3, 360, 0)
1055
+ } else if (height < 120) {
1056
+ return new NearFarScalar(120, 3, 720, 0)
1057
+ } else if (height < 240) {
1058
+ return new NearFarScalar(240, 2, 1200, 0)
1059
+ } else if (height < 480) {
1060
+ return new NearFarScalar(480, 2, 2400, 0)
1061
+ } else if (height < 960) {
1062
+ return new NearFarScalar(960, 2, 4800, 0)
1063
+ } else if (height < 1920) {
1064
+ return new NearFarScalar(1920, 2, 9600, 0)
1065
+ } else if (height < 3840) {
1066
+ return new NearFarScalar(3840, 2, 19200, 0)
1067
+ } else if (height < 7680) {
1068
+ return new NearFarScalar(7680, 2, 38400, 0)
1069
+ } else if (height < 15360) {
1070
+ return new NearFarScalar(15360, 2, 76800, 0)
1071
+ } else if (height < 30720) {
1072
+ return new NearFarScalar(30720, 2, 153600, 0)
1073
+ } else if (height < 61440) {
1074
+ return new NearFarScalar(61440, 2, 307200, 0)
1075
+ } else if (height < 122880) {
1076
+ return new NearFarScalar(122880, 2, 614400, 0)
1077
+ } else if (height < 245760) {
1078
+ return new NearFarScalar(245760, 2, 1228800, 0)
1079
+ } else if (height < 491520) {
1080
+ return new NearFarScalar(491520, 2, 2457600, 0)
1081
+ } else if (height < 983040) {
1082
+ return new NearFarScalar(983040, 2, 4915200, 0)
1083
+ } else if (height < 1966080) {
1084
+ return new NearFarScalar(1966080, 2, 9830400, 0)
1085
+ } else if (height < 3932160) {
1086
+ return new NearFarScalar(3932160, 1, 19660800, 0)
1087
+ } else if (height < 7864320) {
1088
+ return new NearFarScalar(7864320, 1, 39321600, 0)
1089
+ } else if (height < 15728640) {
1090
+ return new NearFarScalar(15728640, 1, 78643200, 0)
1054
1091
  }
1055
- });
1056
- triangulationToolMul.startTool(); //开始测量
1057
- //triangulationToolMul.stopTool(); //结束测量
1058
- scene.camera.enableTerrainAdjustmentWhenLoading = false;</code></pre>
1092
+ return new NearFarScalar(15728640, 1, 78643200, 0)
1093
+ }
1094
+ })
1095
+ triangulationToolMul.startTool()
1096
+ // triangulationToolMul.stopTool()
1097
+ scene.camera.enableTerrainAdjustmentWhenLoading = false</code></pre>
1059
1098
 
1060
1099
 
1061
1100
 
@@ -1092,7 +1131,7 @@ scene.camera.enableTerrainAdjustmentWhenLoading = false;</code></pre>
1092
1131
 
1093
1132
 
1094
1133
  <div class="tag-source">
1095
- engineExtensions/tools/TriangulationTool.js, line 223
1134
+ engineExtensions/tools/TriangulationTool.js, line 234
1096
1135
  </div>
1097
1136
 
1098
1137
  </div>
@@ -1103,7 +1142,7 @@ scene.camera.enableTerrainAdjustmentWhenLoading = false;</code></pre>
1103
1142
 
1104
1143
 
1105
1144
  <div class="description">
1106
- <p>清除所有测量结果,仍可绘制(绘制事件仍然是激活状态)</p>
1145
+ <p>清除全部三角测量结果,并在允许连续绘制时重新进入激活状态。</p>
1107
1146
  </div>
1108
1147
 
1109
1148
 
@@ -1163,7 +1202,7 @@ scene.camera.enableTerrainAdjustmentWhenLoading = false;</code></pre>
1163
1202
 
1164
1203
 
1165
1204
  <div class="tag-source">
1166
- engineExtensions/tools/TriangulationTool.js, line 113
1205
+ engineExtensions/tools/TriangulationTool.js, line 123
1167
1206
  </div>
1168
1207
 
1169
1208
  </div>
@@ -1174,7 +1213,7 @@ scene.camera.enableTerrainAdjustmentWhenLoading = false;</code></pre>
1174
1213
 
1175
1214
 
1176
1215
  <div class="description">
1177
- <p>开始测量</p>
1216
+ <p>激活三角测量流程并创建当前绘制工具。</p>
1178
1217
  </div>
1179
1218
 
1180
1219
 
@@ -1234,7 +1273,7 @@ scene.camera.enableTerrainAdjustmentWhenLoading = false;</code></pre>
1234
1273
 
1235
1274
 
1236
1275
  <div class="tag-source">
1237
- engineExtensions/tools/TriangulationTool.js, line 204
1276
+ engineExtensions/tools/TriangulationTool.js, line 215
1238
1277
  </div>
1239
1278
 
1240
1279
  </div>
@@ -1245,7 +1284,7 @@ scene.camera.enableTerrainAdjustmentWhenLoading = false;</code></pre>
1245
1284
 
1246
1285
 
1247
1286
  <div class="description">
1248
- <p>结束测量,测量工具处于不能绘制(不激活状态)</p>
1287
+ <p>停止三角测量。</p>
1249
1288
  </div>
1250
1289
 
1251
1290
 
@@ -1307,7 +1346,7 @@ scene.camera.enableTerrainAdjustmentWhenLoading = false;</code></pre>
1307
1346
 
1308
1347
 
1309
1348
 
1310
- <p>是否保留测量结果。默认为false不保留测量结果</p></td>
1349
+ <p>是否保留当前量算结果;默认 <code>false</code>,会同时清理结果与交互状态。</p></td>
1311
1350
  </tr>
1312
1351
 
1313
1352
 
@@ -1368,7 +1407,7 @@ scene.camera.enableTerrainAdjustmentWhenLoading = false;</code></pre>
1368
1407
 
1369
1408
 
1370
1409
  <footer>
1371
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Feb 06 2026 14:59:55 GMT+0800 (中国标准时间)
1410
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Sep 18 2026 14:59:31 GMT+0800 (中国标准时间)
1372
1411
  </footer>
1373
1412
  </div>
1374
1413
  </div>