@mapgis/webclient-cesium-plugin 17.2.6 → 17.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/es5/webclient-cesium-plugin.min.js +1 -1
- package/dist/es5/webclient-common.min.js +2 -2
- package/dist/webclient-cesium-plugin-es6.min.js +1 -1
- package/documention/AlgorithmLib.html +410 -1282
- package/documention/AngulationTool.html +244 -194
- package/documention/AnimationTool.html +398 -1376
- package/documention/CesiumHeatmap.html +307 -560
- package/documention/CesiumTerrainProvider.html +226 -8
- package/documention/CircleWaveMaterialProperty.html +231 -38
- package/documention/CollisionDetectionByRender.html +263 -422
- package/documention/CuttingTool.html +292 -461
- package/documention/Deferred.html +226 -8
- package/documention/DrawElement.html +252 -190
- package/documention/DrawTool.html +253 -191
- package/documention/EditTool.html +247 -249
- package/documention/FloodAnalysisReflection.html +243 -229
- package/documention/GlobeIndependentTranslucency.html +236 -246
- package/documention/Graphic.html +300 -939
- package/documention/GraphicsLayer.html +332 -832
- package/documention/HeightLimited.html +237 -134
- package/documention/ISSceneLayerUtil.html +246 -149
- package/documention/KeyboardCameraController.html +244 -285
- package/documention/MeasureAreaTool.html +256 -188
- package/documention/MeasureLengthTool.html +278 -421
- package/documention/MeasureSlopeTool.html +246 -206
- package/documention/ModelEditor.html +232 -44
- package/documention/ModelFilterTool.html +242 -130
- package/documention/ModelTransformTool.html +310 -504
- package/documention/PolylineTrailLinkMaterialProperty.html +233 -50
- package/documention/PostProcessStageLibrary.html +255 -218
- package/documention/Promise.html +246 -173
- package/documention/RadarMaterialProperty.html +229 -26
- package/documention/ReImg.html +230 -58
- package/documention/RiverGeometry.html +287 -462
- package/documention/RoamParticle.html +276 -746
- package/documention/S3MTileset.html +229 -26
- package/documention/SelectTool.html +238 -101
- package/documention/ShadowRateAnalysis.html +250 -366
- package/documention/ShadowRateDrawCommand.html +241 -178
- package/documention/SkyLineAnalysis.html +232 -96
- package/documention/StableParticle.html +278 -812
- package/documention/Style.html +525 -2037
- package/documention/TerrainAnalyse.html +287 -415
- package/documention/TerrainProfile.html +246 -156
- package/documention/Tooltip.html +240 -113
- package/documention/TriangulationTool.html +257 -308
- package/documention/VisiblityAnalysis.html +257 -411
- package/documention/WaterReflection.html +250 -310
- package/documention/Wind3D.html +255 -345
- package/package.json +1 -1
package/documention/Promise.html
CHANGED
|
@@ -1,10 +1,190 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
|
|
6
|
+
<meta charset="utf-8">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
+
<title> Promise</title>
|
|
9
|
+
<!--[if lt IE 9]>
|
|
10
|
+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
11
|
+
<![endif]-->
|
|
12
|
+
<link type="text/css" rel="stylesheet" href="styles/app.min.css">
|
|
13
|
+
<link type="text/css" rel="stylesheet" href="styles/iframe.css">
|
|
14
|
+
<link type="text/css" rel="stylesheet" href="">
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<body class="layout small-header">
|
|
22
|
+
<div id="stickyNavbarOverlay"></div>
|
|
5
23
|
|
|
6
|
-
</header>
|
|
7
24
|
|
|
25
|
+
<div class="top-nav">
|
|
26
|
+
<div class="inner">
|
|
27
|
+
<a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
|
|
28
|
+
<span aria-hidden="true"></span>
|
|
29
|
+
<span aria-hidden="true"></span>
|
|
30
|
+
<span aria-hidden="true"></span>
|
|
31
|
+
</a>
|
|
32
|
+
<div class="logo">
|
|
33
|
+
|
|
34
|
+
<h1> MapGIS Client for JavaScript API</h1>
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
</div>
|
|
38
|
+
<div class="menu">
|
|
39
|
+
|
|
40
|
+
<div class="navigation">
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
<a
|
|
44
|
+
class="link user-link "
|
|
45
|
+
href="/static/modules/common/api/common-mapgis/index.html"
|
|
46
|
+
>
|
|
47
|
+
Common
|
|
48
|
+
</a>
|
|
49
|
+
|
|
50
|
+
<a
|
|
51
|
+
class="link user-link "
|
|
52
|
+
href="/static/modules/cesium/api/cesium-mapgis/index.html"
|
|
53
|
+
>
|
|
54
|
+
Cesium-Plugin
|
|
55
|
+
</a>
|
|
56
|
+
|
|
57
|
+
<a
|
|
58
|
+
class="link user-link "
|
|
59
|
+
href="/static/modules/mapboxgl/api/mapboxgl-mapgis/index.html"
|
|
60
|
+
>
|
|
61
|
+
MapboxGL-Plugin
|
|
62
|
+
</a>
|
|
63
|
+
|
|
64
|
+
<a
|
|
65
|
+
class="link user-link "
|
|
66
|
+
href="/static/modules/leaflet/api/leaflet-mapgis/index.html"
|
|
67
|
+
>
|
|
68
|
+
Leaflet-Plugin
|
|
69
|
+
</a>
|
|
70
|
+
|
|
71
|
+
<a
|
|
72
|
+
class="link user-link "
|
|
73
|
+
href="/static/modules/openlayers/api/openLayers-mapgis/index.html"
|
|
74
|
+
>
|
|
75
|
+
OpenLayers-Plugin
|
|
76
|
+
</a>
|
|
77
|
+
|
|
78
|
+
<a
|
|
79
|
+
class="link user-link "
|
|
80
|
+
href="/static/modules/video/api/video-mapgis/index.html"
|
|
81
|
+
>
|
|
82
|
+
Video-Plugin
|
|
83
|
+
</a>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div id="main">
|
|
93
|
+
<div
|
|
94
|
+
class="sidebar "
|
|
95
|
+
id="sidebarNav"
|
|
96
|
+
>
|
|
97
|
+
<div>
|
|
98
|
+
<span class="mapgis-api-document-span"><a href="index.html">API文档</a></span>
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<div class="search-wrapper">
|
|
102
|
+
<input id="search" type="text" placeholder="搜索文档..." class="input">
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
<nav>
|
|
106
|
+
|
|
107
|
+
<div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">扩展模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="AnimationTool" AnimationTool.html>AnimationTool</a><span style="display: none;"><p>场景漫游工具</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="ArcGISMapServerImageryProvider" ArcGISMapServerImageryProvider.html>ArcGISMapServerImageryProvider</a><span style="display: none;"><p>ArcGIS地图服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="ArcGISTileServerImageryProvider" ArcGISTileServerImageryProvider.html>ArcGISTileServerImageryProvider</a><span style="display: none;"><p>ArcGIS瓦片图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="ArcGISVectorTileImageryProvider" ArcGISVectorTileImageryProvider.html>ArcGISVectorTileImageryProvider</a><span style="display: none;"><p>通过ArcGIS矢量瓦片服务的url获取VectorTileImageryProvider对象</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="CesiumHeatmap" CesiumHeatmap.html>CesiumHeatmap</a><span style="display: none;"><p>热力图</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="CustomTilingScheme" CustomTilingScheme.html>CustomTilingScheme</a><span style="display: none;"><p>自定义瓦片平铺方案,在使用时有如下限制:</p>
|
|
108
|
+
<ol>
|
|
109
|
+
<li>裁图原点必须在地图范围的左上角区域;</li>
|
|
110
|
+
<li>仅支持如同谷歌地图的瓦片组织方式,即Y轴编号从上到下递增,X轴编号从左到右递增;</li>
|
|
111
|
+
</ol></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="FloodAnalysisReflection" FloodAnalysisReflection.html>FloodAnalysisReflection</a><span style="display: none;"><p>创建反射水面淹没分析的实例化对象</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="GlobeIndependentTranslucency" GlobeIndependentTranslucency.html>GlobeIndependentTranslucency</a><span style="display: none;"><p>单独控制地表透明度和影像图层的透明度,能够在开启地表透明后使部分影像图层不受地表透明的影响。</p>
|
|
112
|
+
<p>实例化该类的对象同时也能够使用原生的地表透明参数,能够直接在实例化对象上修改 <code>GlobeTranslucency</code> 的参数(原生的
|
|
113
|
+
viewer.scene.globe.translucency依然能够使用,但两者同时使用时会造成相互干扰,推荐仅使用GlobeIndependentTranslucency来实现地表透明),
|
|
114
|
+
使用原生的地表透明方式还是该类的地表透明方式由 <a class="mapgis-link-name" title="GlobeIndependentTranslucency#imageryLayers" GlobeIndependentTranslucency.html#imageryLayers><code>GlobeIndependentTranslucency#imageryLayers</code></a> 数组是否为空来区分。</p>
|
|
115
|
+
<p>1. 当 <a class="mapgis-link-name" title="GlobeIndependentTranslucency#imageryLayers" GlobeIndependentTranslucency.html#imageryLayers><code>GlobeIndependentTranslucency#imageryLayers</code></a> 不为空数组时,使用该类的地表透明方式,此时能够设置并生效的地表透明参数如下:</p>
|
|
116
|
+
<ul>
|
|
117
|
+
<li><code>globeFaceAlpha</code>:地表的透明度,若设置该参数则<code>globeFaceAlphaByDistance</code>不生效;</li>
|
|
118
|
+
<li><code>globeFaceAlphaByDistance</code>:地表的透明度根据视点距离的变化范围,当<code>globeFaceAlpha</code>为<code>undefined</code>时生效;</li>
|
|
119
|
+
</ul>
|
|
120
|
+
<p>2. 当 <a class="mapgis-link-name" title="GlobeIndependentTranslucency#imageryLayers" GlobeIndependentTranslucency.html#imageryLayers><code>GlobeIndependentTranslucency#imageryLayers</code></a> 为空数组时,使用原生的地表透明方式,此时能够设置并生效的地表透明参数如下:</p>
|
|
121
|
+
<ul>
|
|
122
|
+
<li><code>frontFaceAlpha</code>:地表正面的透明度;</li>
|
|
123
|
+
<li><code>frontFaceAlphaByDistance </code>:地表正面的透明度根据视点距离的变化范围;</li>
|
|
124
|
+
<li><code>backFaceAlpha</code>:地表背面的透明度;</li>
|
|
125
|
+
<li><code>backFaceAlphaByDistance</code>:地表背面的透明度根据视点距离的变化范围;</li>
|
|
126
|
+
<li><code>rectangle</code>:将地表透明的区域限制在一个矩形范围内。</li>
|
|
127
|
+
</ul></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="HeightLimited" HeightLimited.html>HeightLimited</a><span style="display: none;"><p>限高分析</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="KeyboardCameraController" KeyboardCameraController.html>KeyboardCameraController</a><span style="display: none;"><p>场景相机漫游工具,可以实现沉浸式的鼠标键盘漫游功能,具体操作方法如下:</p>
|
|
128
|
+
<p>1. 相机平移操作,这类操作不会改变相机的朝向,只会改变相机的位置:</p>
|
|
129
|
+
<ul>
|
|
130
|
+
<li><code>W</code>:相机位置向前移动</li>
|
|
131
|
+
<li><code>S</code>:相机位置向后移动</li>
|
|
132
|
+
<li><code>A</code>:相机位置向左移动</li>
|
|
133
|
+
<li><code>D</code>:相机位置向右移动</li>
|
|
134
|
+
<li><code>Q</code>:相机位置升高</li>
|
|
135
|
+
<li><code>E</code>:相机位置降低</li>
|
|
136
|
+
</ul>
|
|
137
|
+
<p>2. 相对于相机视点操作,其中<code>U</code>,<code>O</code>,<code>J</code>,<code>L</code>操作会改变相机的位置,也会改变相机的朝向,而<code>I</code>,<code>K</code>操作只会改变相机相较视点的距离(在执行<code>U</code>,<code>O</code>,<code>J</code>,<code>L</code>操作时请勿同时执行其他按键操作):</p>
|
|
138
|
+
<ul>
|
|
139
|
+
<li><code>I</code>:相机视角靠近屏幕中心点</li>
|
|
140
|
+
<li><code>K</code>:相机视角远离屏幕中心点</li>
|
|
141
|
+
<li><code>J</code>:绕屏幕中心点向左旋转</li>
|
|
142
|
+
<li><code>L</code>:绕屏幕中心点向右旋转</li>
|
|
143
|
+
<li><code>U</code>:绕屏幕中心点向上旋转</li>
|
|
144
|
+
<li><code>O</code>:绕屏幕中心点向下旋转</li>
|
|
145
|
+
</ul>
|
|
146
|
+
<p>3. 相机自身操作,这类操作不会改变相机的位置,只会改变相机的朝向(在全屏状态下可使用鼠标调整相机视角):</p>
|
|
147
|
+
<ul>
|
|
148
|
+
<li><code>↑</code>:向上抬高视角</li>
|
|
149
|
+
<li><code>↓</code>:向下降低视角</li>
|
|
150
|
+
<li><code>←</code>:向左移动视角</li>
|
|
151
|
+
<li><code>→</code>:向右移动视角</li>
|
|
152
|
+
</ul>
|
|
153
|
+
<p>4. 鼠标操作:</p>
|
|
154
|
+
<ul>
|
|
155
|
+
<li>开启鼠标操作功能后,页面将进入全屏模式,此时相机视角可通过鼠标移动进行操作</li>
|
|
156
|
+
</ul>
|
|
157
|
+
<p>5. 辅助操作:</p>
|
|
158
|
+
<ul>
|
|
159
|
+
<li><code>Shift</code>:加速相机平移操作,调整移动步长为原来的两倍</li>
|
|
160
|
+
<li><code>R</code>:重置视角到初始视角,仅在参数<code>initView</code>定义时有效</li>
|
|
161
|
+
</ul></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="MapGISMapServerImageryProvider" MapGISMapServerImageryProvider.html>MapGISMapServerImageryProvider</a><span style="display: none;"><p>MapGIS地图服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="MapGISTerrainProvider" MapGISTerrainProvider.html>MapGISTerrainProvider</a><span style="display: none;">undefined</span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="MapGISTileServerImageryProvider" MapGISTileServerImageryProvider.html>MapGISTileServerImageryProvider</a><span style="display: none;"><p>MapGIS瓦片服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="MapGISVectorTileImageryProvider" MapGISVectorTileImageryProvider.html>MapGISVectorTileImageryProvider</a><span style="display: none;"><p>MapGIS矢量瓦片服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="ModelFilterTool" ModelFilterTool.html>ModelFilterTool</a><span style="display: none;"><p>模型空间过滤工具</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="PostProcessStageLibrary" PostProcessStageLibrary.html>PostProcessStageLibrary</a><span style="display: none;"><p>用于创建后处理特效的扩展库</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="S3MTileset" S3MTileset.html>S3MTileset</a><span style="display: none;"><p>S3MTileSet类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="UrlTemplateImageryProvider" UrlTemplateImageryProvider.html>UrlTemplateImageryProvider</a><span style="display: none;"><p>UrlTemplateImageryProvider对象,详细API参考Cesium的UrlTemplateImageryProvider的API文档</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="WaterReflection" WaterReflection.html>WaterReflection</a><span style="display: none;"><p>创建反射水面的实例化对象</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="WebMapServiceImageryProvider" WebMapServiceImageryProvider.html>WebMapServiceImageryProvider</a><span style="display: none;"><p>WMS地图图层,具体API请参考Cesium的WebMapServiceImageryProvider</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="WebMapTileServiceImageryProvider" WebMapTileServiceImageryProvider.html>WebMapTileServiceImageryProvider</a><span style="display: none;"><p>WMTS地图图层,具体API请参考Cesium的WebMapTileServiceImageryProvider</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">工具类模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="GeoJSONLayerUtil" GeoJSONLayerUtil.html>GeoJSONLayerUtil</a><span style="display: none;"><p>GeoJSON图层的工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="GraphicsLayerUtil" GraphicsLayerUtil.html>GraphicsLayerUtil</a><span style="display: none;"><p>几何图层的工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="IGSFeatureLayerUtil" IGSFeatureLayerUtil.html>IGSFeatureLayerUtil</a><span style="display: none;"><p>IGSFeature图层的工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="WFSLayerUtil" WFSLayerUtil.html>WFSLayerUtil</a><span style="display: none;"><p>WFS图层的工具类</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">视图模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="ISSceneLayerUtil" ISSceneLayerUtil.html>ISSceneLayerUtil</a><span style="display: none;"><p>IS场景图层的工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="Popup" Popup.html>Popup</a><span style="display: none;"><p>场景信息弹窗(cesium引擎)
|
|
162
|
+
参考示例:
|
|
163
|
+
<a href='#SceneView'>[初始化三维场景视图]</a>
|
|
164
|
+
<br>[ES5引入方式]:<br/>
|
|
165
|
+
zondy.cesium.SceneView() <br/>
|
|
166
|
+
[ES6引入方式]:<br/>
|
|
167
|
+
import { SceneView } from '@mapgis/webclient-cesium-plugin' <br/>
|
|
168
|
+
自定义样式说明:<br/>
|
|
169
|
+
zondy-popup__content 弹窗容器样式<br/>
|
|
170
|
+
zondy-popup__tip 弹窗对话框箭头样式<br/>
|
|
171
|
+
zondy-popup__header 弹窗头部样式<br/>
|
|
172
|
+
zondy-popup__content 弹窗主体样式<br/>
|
|
173
|
+
zondy-popup__footer 弹窗底部样式<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="SceneViewCesium" SceneViewCesium.html>SceneViewCesium</a><span style="display: none;"><p>视图类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="Screenshot" Screenshot.html>Screenshot</a><span style="display: none;"><p>屏幕打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" title="SketchEditorCesium" SketchEditorCesium.html>SketchEditorCesium</a><span style="display: none;"><p>Cesium引擎草图编辑类<br/>
|
|
174
|
+
<br>[ES5引入方式]:<br/>
|
|
175
|
+
const { SketchEditor } = zondy.tool.sketch <br/>
|
|
176
|
+
[ES6引入方式]:<br/>
|
|
177
|
+
import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/></p></span></li></ul></div>
|
|
178
|
+
|
|
179
|
+
</nav>
|
|
180
|
+
</div>
|
|
181
|
+
<div class="core" id="main-content-wrapper">
|
|
182
|
+
<div class="content">
|
|
183
|
+
<header id="page-title" class="page-title">
|
|
184
|
+
<span class="page-title-main">类名</span>
|
|
185
|
+
<span class="page-title-sub">Promise</span>
|
|
186
|
+
</header>
|
|
187
|
+
|
|
8
188
|
|
|
9
189
|
|
|
10
190
|
|
|
@@ -25,7 +205,7 @@
|
|
|
25
205
|
<h4 class="name" id="Promise">
|
|
26
206
|
<a class="href-link" href="#Promise">#</a>
|
|
27
207
|
|
|
28
|
-
<span class="code-name"
|
|
208
|
+
<span class="code-name" style="font-size:30px">
|
|
29
209
|
|
|
30
210
|
new Promise<span class="signature">()</span>
|
|
31
211
|
|
|
@@ -134,107 +314,7 @@ untrusted.</p>
|
|
|
134
314
|
|
|
135
315
|
<div class='vertical-section'>
|
|
136
316
|
<h3 id='function'>方法</h3>
|
|
137
|
-
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
|
|
138
317
|
<div class="members">
|
|
139
|
-
<div class="table-container">
|
|
140
|
-
<table class="params table">
|
|
141
|
-
<thead>
|
|
142
|
-
<tr>
|
|
143
|
-
<th>名称</th>
|
|
144
|
-
<th>返回值类型</th>
|
|
145
|
-
<th>描述</th>
|
|
146
|
-
</tr>
|
|
147
|
-
</thead>
|
|
148
|
-
<tbody>
|
|
149
|
-
|
|
150
|
-
<tr class="deep-level-0">
|
|
151
|
-
<td class="name"><code><a href="#always">always</a></code></td>
|
|
152
|
-
<td class="name">
|
|
153
|
-
<code>
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
<span class="param-type">
|
|
157
|
-
|
|
158
|
-
<a link="Promise.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Promise" Promise.html>Promise</a>
|
|
159
|
-
|
|
160
|
-
</span>
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
</code>
|
|
166
|
-
</td>
|
|
167
|
-
<td class="name"><code><p>Register a callback that will be called when a promise is
|
|
168
|
-
fulfilled or rejected. Optionally also register a progress handler.
|
|
169
|
-
Shortcut for .then(onFulfilledOrRejected, onFulfilledOrRejected, onProgress)</p></code></td>
|
|
170
|
-
</tr>
|
|
171
|
-
|
|
172
|
-
<tr class="deep-level-0">
|
|
173
|
-
<td class="name"><code><a href="#otherwise">otherwise</a></code></td>
|
|
174
|
-
<td class="name">
|
|
175
|
-
<code>
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
<span class="param-type">
|
|
179
|
-
|
|
180
|
-
<a link="Promise.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Promise" Promise.html>Promise</a>
|
|
181
|
-
|
|
182
|
-
</span>
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
</code>
|
|
188
|
-
</td>
|
|
189
|
-
<td class="name"><code><p>Register a rejection handler. Shortcut for .then(undefined, onRejected)</p></code></td>
|
|
190
|
-
</tr>
|
|
191
|
-
|
|
192
|
-
<tr class="deep-level-0">
|
|
193
|
-
<td class="name"><code><a href="#spread">spread</a></code></td>
|
|
194
|
-
<td class="name">
|
|
195
|
-
<code>
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
<span class="param-type">
|
|
199
|
-
|
|
200
|
-
<a link="Promise.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Promise" Promise.html>Promise</a>
|
|
201
|
-
|
|
202
|
-
</span>
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
</code>
|
|
208
|
-
</td>
|
|
209
|
-
<td class="name"><code><p>Assumes that this promise will fulfill with an array, and arranges
|
|
210
|
-
for the onFulfilled to be called with the array as its argument list
|
|
211
|
-
i.e. onFulfilled.spread(undefined, array).</p></code></td>
|
|
212
|
-
</tr>
|
|
213
|
-
|
|
214
|
-
<tr class="deep-level-0">
|
|
215
|
-
<td class="name"><code><a href="#yield">yield</a></code></td>
|
|
216
|
-
<td class="name">
|
|
217
|
-
<code>
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
<span class="param-type">
|
|
221
|
-
|
|
222
|
-
<a link="Promise.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Promise" Promise.html>Promise</a>
|
|
223
|
-
|
|
224
|
-
</span>
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
</code>
|
|
230
|
-
</td>
|
|
231
|
-
<td class="name"><code><p>Shortcut for .then(function() { return value; })</p></code></td>
|
|
232
|
-
</tr>
|
|
233
|
-
|
|
234
|
-
</tbody>
|
|
235
|
-
</table>
|
|
236
|
-
</div>
|
|
237
|
-
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
|
|
238
318
|
|
|
239
319
|
<div class="member">
|
|
240
320
|
|
|
@@ -243,7 +323,7 @@ i.e. onFulfilled.spread(undefined, array).</p></code></td>
|
|
|
243
323
|
<h4 class="name" id="always">
|
|
244
324
|
<a class="href-link" href="#always">#</a>
|
|
245
325
|
|
|
246
|
-
<span class="code-name"
|
|
326
|
+
<span class="code-name" style="font-size:30px">
|
|
247
327
|
|
|
248
328
|
always<span class="signature">(onFulfilledOrRejected<span class="signature-attributes">opt, nullable</span>, onProgress<span class="signature-attributes">opt, nullable</span>)</span>
|
|
249
329
|
|
|
@@ -267,7 +347,7 @@ Shortcut for .then(onFulfilledOrRejected, onFulfilledOrRejected, onProgress)</p>
|
|
|
267
347
|
|
|
268
348
|
|
|
269
349
|
|
|
270
|
-
<h4
|
|
350
|
+
<h4>参数:</h4>
|
|
271
351
|
|
|
272
352
|
<div class="table-container">
|
|
273
353
|
<table class="params table">
|
|
@@ -297,12 +377,7 @@ Shortcut for .then(onFulfilledOrRejected, onFulfilledOrRejected, onProgress)</p>
|
|
|
297
377
|
<td class="type">
|
|
298
378
|
|
|
299
379
|
|
|
300
|
-
<span class="param-type">
|
|
301
|
-
|
|
302
|
-
function
|
|
303
|
-
|
|
304
|
-
</span>
|
|
305
|
-
|
|
380
|
+
<span class="param-type">function</span>
|
|
306
381
|
|
|
307
382
|
|
|
308
383
|
|
|
@@ -326,12 +401,7 @@ Shortcut for .then(onFulfilledOrRejected, onFulfilledOrRejected, onProgress)</p>
|
|
|
326
401
|
<td class="type">
|
|
327
402
|
|
|
328
403
|
|
|
329
|
-
<span class="param-type">
|
|
330
|
-
|
|
331
|
-
function
|
|
332
|
-
|
|
333
|
-
</span>
|
|
334
|
-
|
|
404
|
+
<span class="param-type">function</span>
|
|
335
405
|
|
|
336
406
|
|
|
337
407
|
|
|
@@ -406,7 +476,7 @@ Shortcut for .then(onFulfilledOrRejected, onFulfilledOrRejected, onProgress)</p>
|
|
|
406
476
|
|
|
407
477
|
|
|
408
478
|
<div class='columns method-parameter'>
|
|
409
|
-
<div class="column is-2"><label
|
|
479
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
410
480
|
<div class="column is-10">
|
|
411
481
|
|
|
412
482
|
|
|
@@ -417,12 +487,7 @@ Shortcut for .then(onFulfilledOrRejected, onFulfilledOrRejected, onProgress)</p>
|
|
|
417
487
|
<div class='column is-5 has-text-left'>
|
|
418
488
|
<label>类型: </label>
|
|
419
489
|
|
|
420
|
-
<span class="param-type">
|
|
421
|
-
|
|
422
|
-
<a link="Promise.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Promise" Promise.html>Promise</a>
|
|
423
|
-
|
|
424
|
-
</span>
|
|
425
|
-
|
|
490
|
+
<span class="param-type"><a class="mapgis-link-name" title="Promise" Promise.html>Promise</a></span>
|
|
426
491
|
|
|
427
492
|
|
|
428
493
|
</div>
|
|
@@ -447,7 +512,7 @@ Shortcut for .then(onFulfilledOrRejected, onFulfilledOrRejected, onProgress)</p>
|
|
|
447
512
|
<h4 class="name" id="otherwise">
|
|
448
513
|
<a class="href-link" href="#otherwise">#</a>
|
|
449
514
|
|
|
450
|
-
<span class="code-name"
|
|
515
|
+
<span class="code-name" style="font-size:30px">
|
|
451
516
|
|
|
452
517
|
otherwise<span class="signature">(onRejected<span class="signature-attributes">nullable</span>)</span>
|
|
453
518
|
|
|
@@ -469,7 +534,7 @@ Shortcut for .then(onFulfilledOrRejected, onFulfilledOrRejected, onProgress)</p>
|
|
|
469
534
|
|
|
470
535
|
|
|
471
536
|
|
|
472
|
-
<h4
|
|
537
|
+
<h4>参数:</h4>
|
|
473
538
|
|
|
474
539
|
<div class="table-container">
|
|
475
540
|
<table class="params table">
|
|
@@ -499,12 +564,7 @@ Shortcut for .then(onFulfilledOrRejected, onFulfilledOrRejected, onProgress)</p>
|
|
|
499
564
|
<td class="type">
|
|
500
565
|
|
|
501
566
|
|
|
502
|
-
<span class="param-type">
|
|
503
|
-
|
|
504
|
-
function
|
|
505
|
-
|
|
506
|
-
</span>
|
|
507
|
-
|
|
567
|
+
<span class="param-type">function</span>
|
|
508
568
|
|
|
509
569
|
|
|
510
570
|
|
|
@@ -579,7 +639,7 @@ Shortcut for .then(onFulfilledOrRejected, onFulfilledOrRejected, onProgress)</p>
|
|
|
579
639
|
|
|
580
640
|
|
|
581
641
|
<div class='columns method-parameter'>
|
|
582
|
-
<div class="column is-2"><label
|
|
642
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
583
643
|
<div class="column is-10">
|
|
584
644
|
|
|
585
645
|
|
|
@@ -590,12 +650,7 @@ Shortcut for .then(onFulfilledOrRejected, onFulfilledOrRejected, onProgress)</p>
|
|
|
590
650
|
<div class='column is-5 has-text-left'>
|
|
591
651
|
<label>类型: </label>
|
|
592
652
|
|
|
593
|
-
<span class="param-type">
|
|
594
|
-
|
|
595
|
-
<a link="Promise.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Promise" Promise.html>Promise</a>
|
|
596
|
-
|
|
597
|
-
</span>
|
|
598
|
-
|
|
653
|
+
<span class="param-type"><a class="mapgis-link-name" title="Promise" Promise.html>Promise</a></span>
|
|
599
654
|
|
|
600
655
|
|
|
601
656
|
</div>
|
|
@@ -620,7 +675,7 @@ Shortcut for .then(onFulfilledOrRejected, onFulfilledOrRejected, onProgress)</p>
|
|
|
620
675
|
<h4 class="name" id="spread">
|
|
621
676
|
<a class="href-link" href="#spread">#</a>
|
|
622
677
|
|
|
623
|
-
<span class="code-name"
|
|
678
|
+
<span class="code-name" style="font-size:30px">
|
|
624
679
|
|
|
625
680
|
spread<span class="signature">(onFulfilled)</span>
|
|
626
681
|
|
|
@@ -644,7 +699,7 @@ i.e. onFulfilled.spread(undefined, array).</p>
|
|
|
644
699
|
|
|
645
700
|
|
|
646
701
|
|
|
647
|
-
<h4
|
|
702
|
+
<h4>参数:</h4>
|
|
648
703
|
|
|
649
704
|
<div class="table-container">
|
|
650
705
|
<table class="params table">
|
|
@@ -674,12 +729,7 @@ i.e. onFulfilled.spread(undefined, array).</p>
|
|
|
674
729
|
<td class="type">
|
|
675
730
|
|
|
676
731
|
|
|
677
|
-
<span class="param-type">
|
|
678
|
-
|
|
679
|
-
function
|
|
680
|
-
|
|
681
|
-
</span>
|
|
682
|
-
|
|
732
|
+
<span class="param-type">function</span>
|
|
683
733
|
|
|
684
734
|
|
|
685
735
|
|
|
@@ -754,7 +804,7 @@ i.e. onFulfilled.spread(undefined, array).</p>
|
|
|
754
804
|
|
|
755
805
|
|
|
756
806
|
<div class='columns method-parameter'>
|
|
757
|
-
<div class="column is-2"><label
|
|
807
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
758
808
|
<div class="column is-10">
|
|
759
809
|
|
|
760
810
|
|
|
@@ -765,12 +815,7 @@ i.e. onFulfilled.spread(undefined, array).</p>
|
|
|
765
815
|
<div class='column is-5 has-text-left'>
|
|
766
816
|
<label>类型: </label>
|
|
767
817
|
|
|
768
|
-
<span class="param-type">
|
|
769
|
-
|
|
770
|
-
<a link="Promise.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Promise" Promise.html>Promise</a>
|
|
771
|
-
|
|
772
|
-
</span>
|
|
773
|
-
|
|
818
|
+
<span class="param-type"><a class="mapgis-link-name" title="Promise" Promise.html>Promise</a></span>
|
|
774
819
|
|
|
775
820
|
|
|
776
821
|
</div>
|
|
@@ -795,7 +840,7 @@ i.e. onFulfilled.spread(undefined, array).</p>
|
|
|
795
840
|
<h4 class="name" id="yield">
|
|
796
841
|
<a class="href-link" href="#yield">#</a>
|
|
797
842
|
|
|
798
|
-
<span class="code-name"
|
|
843
|
+
<span class="code-name" style="font-size:30px">
|
|
799
844
|
|
|
800
845
|
yield<span class="signature">(value)</span>
|
|
801
846
|
|
|
@@ -817,7 +862,7 @@ i.e. onFulfilled.spread(undefined, array).</p>
|
|
|
817
862
|
|
|
818
863
|
|
|
819
864
|
|
|
820
|
-
<h4
|
|
865
|
+
<h4>参数:</h4>
|
|
821
866
|
|
|
822
867
|
<div class="table-container">
|
|
823
868
|
<table class="params table">
|
|
@@ -847,12 +892,7 @@ i.e. onFulfilled.spread(undefined, array).</p>
|
|
|
847
892
|
<td class="type">
|
|
848
893
|
|
|
849
894
|
|
|
850
|
-
<span class="param-type">
|
|
851
|
-
|
|
852
|
-
*
|
|
853
|
-
|
|
854
|
-
</span>
|
|
855
|
-
|
|
895
|
+
<span class="param-type">*</span>
|
|
856
896
|
|
|
857
897
|
|
|
858
898
|
|
|
@@ -927,7 +967,7 @@ i.e. onFulfilled.spread(undefined, array).</p>
|
|
|
927
967
|
|
|
928
968
|
|
|
929
969
|
<div class='columns method-parameter'>
|
|
930
|
-
<div class="column is-2"><label
|
|
970
|
+
<div class="column is-2"><label>返回值:</label></div>
|
|
931
971
|
<div class="column is-10">
|
|
932
972
|
|
|
933
973
|
|
|
@@ -945,12 +985,7 @@ with its reason.</li>
|
|
|
945
985
|
<div class='column is-5 has-text-left'>
|
|
946
986
|
<label>类型: </label>
|
|
947
987
|
|
|
948
|
-
<span class="param-type">
|
|
949
|
-
|
|
950
|
-
<a link="Promise.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Promise" Promise.html>Promise</a>
|
|
951
|
-
|
|
952
|
-
</span>
|
|
953
|
-
|
|
988
|
+
<span class="param-type"><a class="mapgis-link-name" title="Promise" Promise.html>Promise</a></span>
|
|
954
989
|
|
|
955
990
|
|
|
956
991
|
</div>
|
|
@@ -977,4 +1012,42 @@ with its reason.</li>
|
|
|
977
1012
|
|
|
978
1013
|
</article>
|
|
979
1014
|
|
|
980
|
-
</section>
|
|
1015
|
+
</section>
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
</div>
|
|
1021
|
+
|
|
1022
|
+
<footer class="footer">
|
|
1023
|
+
<div class="content has-text-centered">
|
|
1024
|
+
<p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 17.1.1</a></p>
|
|
1025
|
+
<p class="sidebar-created-by">
|
|
1026
|
+
<a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
|
|
1027
|
+
<a href="http://webclient.smaryun.com:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
|
|
1028
|
+
</p>
|
|
1029
|
+
</div>
|
|
1030
|
+
</footer>
|
|
1031
|
+
|
|
1032
|
+
</div>
|
|
1033
|
+
<div id="side-nav" class="side-nav">
|
|
1034
|
+
<div style="margin-bottom: 10px;">
|
|
1035
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
|
|
1036
|
+
</div>
|
|
1037
|
+
<div style="margin-bottom: 10px;">
|
|
1038
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
|
|
1039
|
+
</div>
|
|
1040
|
+
<div style="margin-bottom: 10px;">
|
|
1041
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
|
|
1042
|
+
</div>
|
|
1043
|
+
<div>
|
|
1044
|
+
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
|
|
1045
|
+
</div>
|
|
1046
|
+
</div>
|
|
1047
|
+
</div>
|
|
1048
|
+
<script src="scripts/linenumber.js"> </script>
|
|
1049
|
+
|
|
1050
|
+
<script src="scripts/search.js"> </script>
|
|
1051
|
+
|
|
1052
|
+
</body>
|
|
1053
|
+
</html>
|