@mapgis/webclient-common 17.0.7 → 17.2.1
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 +12 -37
- package/dist/es5/webclient-common.min.js +15 -4
- package/dist/webclient-common-es6.min.js +16 -5
- package/documention/AddressServer.html +12 -12
- package/documention/ArcGISFeatureServer.html +10 -10
- package/documention/ArcGISGeometryServer.html +10 -10
- package/documention/ArcGISMapImageLayer.html +10 -10
- package/documention/ArcGISMapImageSubLayer.html +311 -7
- package/documention/ArcGISMapServer.html +414 -10
- package/documention/ArcGISTileLayer.html +121 -13
- package/documention/ArcGISVectorTileLayer.html +7 -7
- package/documention/ArcGISVectorTileServer.html +10 -10
- package/documention/BaseRenderer.html +239 -0
- package/documention/BaseServer.html +11 -11
- package/documention/BaseView.html +458 -3
- package/documention/Basemap.html +3 -3
- package/documention/Callout3D.html +107 -0
- package/documention/Cesium3DTilesCacheLayer.html +149 -177
- package/documention/Cesium3DTilesServer.html +11 -11
- package/documention/Circle.html +110 -7
- package/documention/ClassBreakInfo.html +0 -217
- package/documention/ClassBreakRenderer.html +413 -23
- package/documention/ClusterRenderer.html +247 -7
- package/documention/Config.html +4 -4
- package/documention/Extent.html +118 -15
- package/documention/ExtrudeSymbol3DLayer.html +109 -2
- package/documention/Feature.html +7 -7
- package/documention/FeatureLayer.html +116 -8
- package/documention/FeatureServer.html +27 -27
- package/documention/FeatureSet.html +7 -7
- package/documention/FillSymbol.html +107 -0
- package/documention/FillSymbol3DLayer.html +109 -2
- package/documention/Font.html +4 -4
- package/documention/GeoJSONLayer.html +142 -34
- package/documention/Geometry.html +138 -7
- package/documention/GeometryEngine.html +79 -79
- package/documention/GeometryServer.html +30 -30
- package/documention/GraphicsLayer.html +147 -39
- package/documention/GroupLayer.html +120 -12
- package/documention/HeatmapRenderer.html +107 -0
- package/documention/IGSFeatureLayer.html +25 -25
- package/documention/IGSMapImageLayer.html +46 -46
- package/documention/IGSMapImageSubLayer.html +307 -3
- package/documention/IGSSceneLayer.html +11 -11
- package/documention/IGSSceneSubLayer.html +213 -33
- package/documention/IGSTileLayer.html +126 -19
- package/documention/IGSVectorTileLayer.html +230 -43
- package/documention/IGSVectorTileSubLayer.html +5 -4
- package/documention/IconSymbol3DLayer.html +111 -4
- package/documention/ImageServer.html +11 -11
- package/documention/LabelClass.html +10 -5
- package/documention/LabelSymbol3D.html +2 -2
- package/documention/Layer.html +244 -9
- package/documention/LineCallout3D.html +107 -0
- package/documention/LineString.html +113 -10
- package/documention/LineSymbol.html +107 -0
- package/documention/LineSymbol3D.html +2 -2
- package/documention/LineSymbol3DLayer.html +109 -2
- package/documention/M3DModelCacheLayer.html +133 -79
- package/documention/M3DServer.html +12 -12
- package/documention/Map.html +32 -5
- package/documention/MapGISTextSymbol.html +110 -3
- package/documention/MapImageLayer.html +527 -16
- package/documention/MapServer.html +14 -14
- package/documention/MapView.html +204 -3
- package/documention/MarkerSymbol.html +107 -0
- package/documention/MultiLineString.html +116 -13
- package/documention/MultiPoint.html +113 -10
- package/documention/MultiPolygon.html +112 -9
- package/documention/OGCLayer.html +116 -8
- package/documention/ObjectSymbol3DLayer.html +111 -4
- package/documention/OutStatistic.html +1 -1
- package/documention/OverlayLayer.html +116 -8
- package/documention/PathSymbol3DLayer.html +109 -2
- package/documention/PictureFillSymbol.html +169 -8
- package/documention/PictureMarkerSymbol.html +3 -3
- package/documention/PlotServer.html +10 -10
- package/documention/PoiServer.html +12 -12
- package/documention/Point.html +115 -12
- package/documention/PointSymbol3D.html +3 -3
- package/documention/Polygon.html +117 -14
- package/documention/PolygonSymbol3D.html +2 -2
- package/documention/Projection.html +429 -8
- package/documention/RandomRenderer.html +108 -1
- package/documention/RankRenderer.html +109 -2
- package/documention/ResourceServer.html +150 -150
- package/documention/RootServer.html +12 -12
- package/documention/SceneLayer.html +116 -8
- package/documention/SceneServer.html +16 -16
- package/documention/SceneView.html +10164 -130
- package/documention/SecurityServer.html +12 -12
- package/documention/SimpleFillSymbol.html +110 -3
- package/documention/SimpleLineSymbol.html +3 -3
- package/documention/SimpleMarkerSymbol.html +3 -3
- package/documention/SimpleRenderer.html +116 -9
- package/documention/SizeVariable.html +1 -1
- package/documention/SketchBaseDrawTool.html +181 -3
- package/documention/SketchCircleDrawTool.html +159 -3
- package/documention/SketchEditor.html +2 -2
- package/documention/SketchEditorCesium.html +1 -1
- package/documention/SketchEditorVideo.html +2 -2
- package/documention/SketchEditorVideoBase.html +3 -3
- package/documention/SketchExtentDrawTool.html +159 -3
- package/documention/SketchFreehandPolygonDrawTool.html +159 -3
- package/documention/SketchFreehandPolylineDrawTool.html +159 -3
- package/documention/SketchPointDrawTool.html +159 -3
- package/documention/SketchPolygonDrawTool.html +318 -6
- package/documention/SketchPolylineDrawTool.html +318 -6
- package/documention/SpatialReference.html +1 -1
- package/documention/SubLayer.html +296 -26
- package/documention/Symbol.html +134 -1
- package/documention/Symbol3DLayer.html +107 -0
- package/documention/Symbol3DVerticalOffset.html +107 -0
- package/documention/TerrainCacheLayer.html +133 -165
- package/documention/TerrainServer.html +11 -11
- package/documention/TextSymbol.html +111 -4
- package/documention/TextSymbol3DLayer.html +109 -2
- package/documention/ThemeServer.html +13 -13
- package/documention/TileLayer.html +116 -8
- package/documention/TileServer.html +12 -12
- package/documention/UniqueValueInfo.html +0 -217
- package/documention/UniqueValueRenderer.html +125 -18
- package/documention/UnknownLayer.html +116 -8
- package/documention/VectorTileLayer.html +117 -9
- package/documention/VectorTileServer.html +11 -11
- package/documention/VectorTileSubLayer.html +304 -0
- package/documention/VideoMapView.html +4 -4
- package/documention/WCSServer.html +10 -10
- package/documention/WFSLayer.html +140 -32
- package/documention/WFSServer.html +11 -11
- package/documention/WMSLayer.html +131 -23
- package/documention/WMSServer.html +12 -12
- package/documention/WMSSubLayer.html +218 -7
- package/documention/WMTSLayer.html +126 -18
- package/documention/WMTSServer.html +12 -12
- package/documention/WMTSSubLayer.html +116 -8
- package/documention/WPSServer.html +10 -10
- package/documention/WaterSymbol3DLayer.html +107 -0
- package/documention/WebTileLayer.html +121 -13
- package/documention/WorkFlowServer.html +12 -12
- package/documention/WorkFlowServer600227.html +12 -12
- package/documention/WorkFlowServer600228.html +13 -13
- package/documention/WorkFlowServer600229.html +12 -12
- package/documention/WorkFlowServer600230.html +12 -12
- package/documention/WorkFlowServer600231.html +12 -12
- package/documention/WorkFlowServer600232.html +13 -13
- package/documention/WorkFlowServer600233.html +14 -14
- package/documention/WorkFlowServer600235.html +12 -12
- package/documention/WorkFlowServer600237.html +13 -13
- package/documention/WorkFlowServer600238.html +15 -15
- package/documention/WorkFlowServer600239.html +16 -16
- package/documention/WorkFlowServer600307.html +14 -14
- package/documention/WorkFlowServer600308.html +2 -2
- package/documention/WorkFlowServer600309.html +12 -12
- package/documention/WorkFlowServer600314.html +12 -12
- package/documention/WorkFlowServer600334.html +12 -12
- package/documention/WorkFlowServer600336.html +12 -12
- package/documention/WorkFlowServer600340.html +12 -12
- package/documention/WorkFlowServer600354.html +12 -12
- package/documention/WorkFlowServer600368.html +12 -12
- package/documention/WorkFlowServer600369.html +12 -12
- package/documention/WorkFlowServer600370.html +12 -12
- package/documention/global.html +1024 -1874
- package/documention/index.html +84 -78
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAllOtherDataItemInfoSource.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAnnInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartLabelFormat.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartTheme.html +4 -4
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeRepresentInfo.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartType.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CDotDensityTheme.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CFourColorTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CGraduatedSymbolTheme.html +7 -7
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CLinInfo.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CMultiClassTheme.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CPntInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRandomTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeTheme.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRegInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CSimpleTheme.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CThemeInfo.html +7 -7
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueTheme.html +4 -4
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ExpInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfo.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfoAttribute.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ItemValue.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ThemesInfo.html +2 -2
- package/documention/scripts/sideBar.js +16 -2
- package/documention/tutorial-/346/270/262/346/237/223/345/231/250.html +5 -1
- package/documention/tutorial-/347/254/246/345/217/267.html +52 -6
- package/documention/tutorial-/350/241/250/350/276/276/345/274/217.html +293 -1
- package/package.json +14 -13
|
@@ -61,7 +61,7 @@ function getTypeHTML(e) {
|
|
|
61
61
|
break
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
const _baseUrl = window.location.href.split('
|
|
64
|
+
const _baseUrl = window.location.href.split('#')[0]
|
|
65
65
|
fetch(_baseUrl + '/' + link, {
|
|
66
66
|
method: 'GET',
|
|
67
67
|
})
|
|
@@ -111,7 +111,21 @@ function getLinkName(url) {
|
|
|
111
111
|
targets.forEach(function (_target) {
|
|
112
112
|
_target.addEventListener('click', function (e) {
|
|
113
113
|
const _baseUrl = getBaseUrl(window.location.href)
|
|
114
|
-
|
|
114
|
+
let isGlobe = false, globePath
|
|
115
|
+
for (let i = 0; i < e.target.attributes.length; i++) {
|
|
116
|
+
if(e.target.attributes[i].name.indexOf('global.html') > -1) {
|
|
117
|
+
isGlobe = true
|
|
118
|
+
globePath = e.target.attributes[i].name
|
|
119
|
+
break
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
let path
|
|
123
|
+
if (isGlobe) {
|
|
124
|
+
path = '/' + globePath
|
|
125
|
+
} else {
|
|
126
|
+
path = e.target.attributes[1].value
|
|
127
|
+
}
|
|
128
|
+
fetch(_baseUrl + path, {
|
|
115
129
|
method: 'GET',
|
|
116
130
|
})
|
|
117
131
|
.then(response => response.text())
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
</tbody>
|
|
194
194
|
</table>
|
|
195
195
|
<h3>2.限制</h3>
|
|
196
|
-
<h4>MapViewLeaflet
|
|
196
|
+
<h4>MapViewLeaflet视图上</h4>
|
|
197
197
|
<table>
|
|
198
198
|
<thead>
|
|
199
199
|
<tr>
|
|
@@ -204,8 +204,8 @@
|
|
|
204
204
|
</thead>
|
|
205
205
|
<tbody>
|
|
206
206
|
<tr>
|
|
207
|
-
<td
|
|
208
|
-
<td>SimpleMarkerSymbol,PictureMarkerSymbol
|
|
207
|
+
<td>点</td>
|
|
208
|
+
<td>SimpleMarkerSymbol,PictureMarkerSymbol</td>
|
|
209
209
|
<td></td>
|
|
210
210
|
</tr>
|
|
211
211
|
<tr>
|
|
@@ -218,9 +218,14 @@
|
|
|
218
218
|
<td>SimpleFillSymbol,PictureFillSymbol,TextSymbol,SimpleMarkerSymbol,PictureMarkerSymbol</td>
|
|
219
219
|
<td></td>
|
|
220
220
|
</tr>
|
|
221
|
+
<tr>
|
|
222
|
+
<td>注记</td>
|
|
223
|
+
<td>TextSymbol</td>
|
|
224
|
+
<td></td>
|
|
225
|
+
</tr>
|
|
221
226
|
</tbody>
|
|
222
227
|
</table>
|
|
223
|
-
<h4>
|
|
228
|
+
<h4>MapViewMapboxgl视图上</h4>
|
|
224
229
|
<table>
|
|
225
230
|
<thead>
|
|
226
231
|
<tr>
|
|
@@ -231,8 +236,44 @@
|
|
|
231
236
|
</thead>
|
|
232
237
|
<tbody>
|
|
233
238
|
<tr>
|
|
234
|
-
<td
|
|
235
|
-
<td>SimpleMarkerSymbol,PictureMarkerSymbol
|
|
239
|
+
<td>点</td>
|
|
240
|
+
<td>SimpleMarkerSymbol,PictureMarkerSymbol</td>
|
|
241
|
+
<td></td>
|
|
242
|
+
</tr>
|
|
243
|
+
<tr>
|
|
244
|
+
<td>线</td>
|
|
245
|
+
<td>SimpleLineSymbol</td>
|
|
246
|
+
<td></td>
|
|
247
|
+
</tr>
|
|
248
|
+
<tr>
|
|
249
|
+
<td>区</td>
|
|
250
|
+
<td>SimpleFillSymbol,PictureFillSymbol,TextSymbol,SimpleMarkerSymbol,PictureMarkerSymbol</td>
|
|
251
|
+
<td></td>
|
|
252
|
+
</tr>
|
|
253
|
+
<tr>
|
|
254
|
+
<td>注记</td>
|
|
255
|
+
<td>TextSymbol</td>
|
|
256
|
+
<td></td>
|
|
257
|
+
</tr>
|
|
258
|
+
</tbody>
|
|
259
|
+
</table>
|
|
260
|
+
<ul>
|
|
261
|
+
<li>mapboxgl引擎限制,目前图片资源仅支持 png, webp, or jpg format传入</li>
|
|
262
|
+
<li>mapboxgl引擎限制,几何图元图层使用PictureFillSymbol时,无法设置填充图片的(xscale,yscale,width,height)</li>
|
|
263
|
+
</ul>
|
|
264
|
+
<h4>SceneViewCesium视图上</h4>
|
|
265
|
+
<table>
|
|
266
|
+
<thead>
|
|
267
|
+
<tr>
|
|
268
|
+
<th>图元类型</th>
|
|
269
|
+
<th>支持的符号类型</th>
|
|
270
|
+
<th></th>
|
|
271
|
+
</tr>
|
|
272
|
+
</thead>
|
|
273
|
+
<tbody>
|
|
274
|
+
<tr>
|
|
275
|
+
<td>点</td>
|
|
276
|
+
<td>SimpleMarkerSymbol,PictureMarkerSymbol</td>
|
|
236
277
|
<td></td>
|
|
237
278
|
</tr>
|
|
238
279
|
<tr>
|
|
@@ -245,6 +286,11 @@
|
|
|
245
286
|
<td>SimpleFillSymbol,PictureFillSymbol,TextSymbol,MapGISTextSymbol,SimpleMarkerSymbol,PictureMarkerSymbol</td>
|
|
246
287
|
<td></td>
|
|
247
288
|
</tr>
|
|
289
|
+
<tr>
|
|
290
|
+
<td>注记</td>
|
|
291
|
+
<td>TextSymbol,MapGISTextSymbol</td>
|
|
292
|
+
<td></td>
|
|
293
|
+
</tr>
|
|
248
294
|
</tbody>
|
|
249
295
|
</table>
|
|
250
296
|
<h4>各符号属性在引擎上的限制</h4>
|
|
@@ -37,9 +37,301 @@
|
|
|
37
37
|
</code></pre>
|
|
38
38
|
<h4><strong>条件运算</strong></h4>
|
|
39
39
|
<p><strong>example</strong></p>
|
|
40
|
-
<p>支持 || &
|
|
40
|
+
<p>支持 || and or >= <=等</p>
|
|
41
41
|
<pre class="prettyprint source"><code>$feature.ISAREA || $feature.ISRIVER
|
|
42
42
|
</code></pre>
|
|
43
|
+
<h3>后续拟支持的表达式运算符和内置函数</h3>
|
|
44
|
+
<h4>Operator Precedence</h4>
|
|
45
|
+
<table>
|
|
46
|
+
<thead>
|
|
47
|
+
<tr>
|
|
48
|
+
<th style="text-align:left">Operator</th>
|
|
49
|
+
<th style="text-align:left">Associativity</th>
|
|
50
|
+
<th style="text-align:left">Description</th>
|
|
51
|
+
</tr>
|
|
52
|
+
</thead>
|
|
53
|
+
<tbody>
|
|
54
|
+
<tr>
|
|
55
|
+
<td style="text-align:left">(...)</td>
|
|
56
|
+
<td style="text-align:left">None</td>
|
|
57
|
+
<td style="text-align:left">Grouping</td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td style="text-align:left">f(), x.y, a[i]</td>
|
|
61
|
+
<td style="text-align:left">Left</td>
|
|
62
|
+
<td style="text-align:left">Function call, property access, array indexing</td>
|
|
63
|
+
</tr>
|
|
64
|
+
<tr>
|
|
65
|
+
<td style="text-align:left">!</td>
|
|
66
|
+
<td style="text-align:left">Left</td>
|
|
67
|
+
<td style="text-align:left">Factorial</td>
|
|
68
|
+
</tr>
|
|
69
|
+
<tr>
|
|
70
|
+
<td style="text-align:left">^</td>
|
|
71
|
+
<td style="text-align:left">Right</td>
|
|
72
|
+
<td style="text-align:left">Exponentiation</td>
|
|
73
|
+
</tr>
|
|
74
|
+
<tr>
|
|
75
|
+
<td style="text-align:left">+, -, not, sqrt, etc.</td>
|
|
76
|
+
<td style="text-align:left">Right</td>
|
|
77
|
+
<td style="text-align:left">Unary prefix operators (see below for the full list)</td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td style="text-align:left">*, /, %</td>
|
|
81
|
+
<td style="text-align:left">Left</td>
|
|
82
|
+
<td style="text-align:left">Multiplication, division, remainder</td>
|
|
83
|
+
</tr>
|
|
84
|
+
<tr>
|
|
85
|
+
<td style="text-align:left">+, -, ||</td>
|
|
86
|
+
<td style="text-align:left">Left</td>
|
|
87
|
+
<td style="text-align:left">Addition, subtraction, array/list concatenation</td>
|
|
88
|
+
</tr>
|
|
89
|
+
<tr>
|
|
90
|
+
<td style="text-align:left">==, !=, >=, <=, >, <, in</td>
|
|
91
|
+
<td style="text-align:left">Left</td>
|
|
92
|
+
<td style="text-align:left">Equals, not equals, etc. "in" means "is the left operand included in the right array operand?"</td>
|
|
93
|
+
</tr>
|
|
94
|
+
<tr>
|
|
95
|
+
<td style="text-align:left">and</td>
|
|
96
|
+
<td style="text-align:left">Left</td>
|
|
97
|
+
<td style="text-align:left">Logical AND</td>
|
|
98
|
+
</tr>
|
|
99
|
+
<tr>
|
|
100
|
+
<td style="text-align:left">or</td>
|
|
101
|
+
<td style="text-align:left">Left</td>
|
|
102
|
+
<td style="text-align:left">Logical OR</td>
|
|
103
|
+
</tr>
|
|
104
|
+
<tr>
|
|
105
|
+
<td style="text-align:left">x ? y : z</td>
|
|
106
|
+
<td style="text-align:left">Right</td>
|
|
107
|
+
<td style="text-align:left">Ternary conditional (if x then y else z)</td>
|
|
108
|
+
</tr>
|
|
109
|
+
<tr>
|
|
110
|
+
<td style="text-align:left">=</td>
|
|
111
|
+
<td style="text-align:left">Right</td>
|
|
112
|
+
<td style="text-align:left">Variable assignment</td>
|
|
113
|
+
</tr>
|
|
114
|
+
<tr>
|
|
115
|
+
<td style="text-align:left">;</td>
|
|
116
|
+
<td style="text-align:left">Left</td>
|
|
117
|
+
<td style="text-align:left">Expression separator</td>
|
|
118
|
+
</tr>
|
|
119
|
+
</tbody>
|
|
120
|
+
</table>
|
|
121
|
+
<h4>Unary operators</h4>
|
|
122
|
+
<table>
|
|
123
|
+
<thead>
|
|
124
|
+
<tr>
|
|
125
|
+
<th style="text-align:left">Operator</th>
|
|
126
|
+
<th style="text-align:left">Description</th>
|
|
127
|
+
</tr>
|
|
128
|
+
</thead>
|
|
129
|
+
<tbody>
|
|
130
|
+
<tr>
|
|
131
|
+
<td style="text-align:left">-x</td>
|
|
132
|
+
<td style="text-align:left">Negation</td>
|
|
133
|
+
</tr>
|
|
134
|
+
<tr>
|
|
135
|
+
<td style="text-align:left">+x</td>
|
|
136
|
+
<td style="text-align:left">Unary plus. This converts it's operand to a number, but has no other effect.</td>
|
|
137
|
+
</tr>
|
|
138
|
+
<tr>
|
|
139
|
+
<td style="text-align:left">x!</td>
|
|
140
|
+
<td style="text-align:left">Factorial (x * (x-1) * (x-2) * … * 2 * 1). gamma(x + 1) for non-integers.</td>
|
|
141
|
+
</tr>
|
|
142
|
+
<tr>
|
|
143
|
+
<td style="text-align:left">abs x</td>
|
|
144
|
+
<td style="text-align:left">Absolute value (magnitude) of x</td>
|
|
145
|
+
</tr>
|
|
146
|
+
<tr>
|
|
147
|
+
<td style="text-align:left">acos x</td>
|
|
148
|
+
<td style="text-align:left">Arc cosine of x (in radians)</td>
|
|
149
|
+
</tr>
|
|
150
|
+
<tr>
|
|
151
|
+
<td style="text-align:left">acosh x</td>
|
|
152
|
+
<td style="text-align:left">Hyperbolic arc cosine of x (in radians)</td>
|
|
153
|
+
</tr>
|
|
154
|
+
<tr>
|
|
155
|
+
<td style="text-align:left">asin x</td>
|
|
156
|
+
<td style="text-align:left">Arc sine of x (in radians)</td>
|
|
157
|
+
</tr>
|
|
158
|
+
<tr>
|
|
159
|
+
<td style="text-align:left">asinh x</td>
|
|
160
|
+
<td style="text-align:left">Hyperbolic arc sine of x (in radians)</td>
|
|
161
|
+
</tr>
|
|
162
|
+
<tr>
|
|
163
|
+
<td style="text-align:left">atan x</td>
|
|
164
|
+
<td style="text-align:left">Arc tangent of x (in radians)</td>
|
|
165
|
+
</tr>
|
|
166
|
+
<tr>
|
|
167
|
+
<td style="text-align:left">atanh x</td>
|
|
168
|
+
<td style="text-align:left">Hyperbolic arc tangent of x (in radians)</td>
|
|
169
|
+
</tr>
|
|
170
|
+
<tr>
|
|
171
|
+
<td style="text-align:left">cbrt x</td>
|
|
172
|
+
<td style="text-align:left">Cube root of x</td>
|
|
173
|
+
</tr>
|
|
174
|
+
<tr>
|
|
175
|
+
<td style="text-align:left">ceil x</td>
|
|
176
|
+
<td style="text-align:left">Ceiling of x — the smallest integer that’s >= x</td>
|
|
177
|
+
</tr>
|
|
178
|
+
<tr>
|
|
179
|
+
<td style="text-align:left">cos x</td>
|
|
180
|
+
<td style="text-align:left">Cosine of x (x is in radians)</td>
|
|
181
|
+
</tr>
|
|
182
|
+
<tr>
|
|
183
|
+
<td style="text-align:left">cosh x</td>
|
|
184
|
+
<td style="text-align:left">Hyperbolic cosine of x (x is in radians)</td>
|
|
185
|
+
</tr>
|
|
186
|
+
<tr>
|
|
187
|
+
<td style="text-align:left">exp x</td>
|
|
188
|
+
<td style="text-align:left">e^x (exponential/antilogarithm function with base e)</td>
|
|
189
|
+
</tr>
|
|
190
|
+
<tr>
|
|
191
|
+
<td style="text-align:left">expm1 x</td>
|
|
192
|
+
<td style="text-align:left">e^x - 1</td>
|
|
193
|
+
</tr>
|
|
194
|
+
<tr>
|
|
195
|
+
<td style="text-align:left">floor x</td>
|
|
196
|
+
<td style="text-align:left">Floor of x — the largest integer that’s <= x</td>
|
|
197
|
+
</tr>
|
|
198
|
+
<tr>
|
|
199
|
+
<td style="text-align:left">length x</td>
|
|
200
|
+
<td style="text-align:left">String length of x</td>
|
|
201
|
+
</tr>
|
|
202
|
+
<tr>
|
|
203
|
+
<td style="text-align:left">ln x</td>
|
|
204
|
+
<td style="text-align:left">Natural logarithm of x</td>
|
|
205
|
+
</tr>
|
|
206
|
+
<tr>
|
|
207
|
+
<td style="text-align:left">log x</td>
|
|
208
|
+
<td style="text-align:left">Natural logarithm of x (synonym for ln, not base-10)</td>
|
|
209
|
+
</tr>
|
|
210
|
+
<tr>
|
|
211
|
+
<td style="text-align:left">log10 x</td>
|
|
212
|
+
<td style="text-align:left">Base-10 logarithm of x</td>
|
|
213
|
+
</tr>
|
|
214
|
+
<tr>
|
|
215
|
+
<td style="text-align:left">log2 x</td>
|
|
216
|
+
<td style="text-align:left">Base-2 logarithm of x</td>
|
|
217
|
+
</tr>
|
|
218
|
+
<tr>
|
|
219
|
+
<td style="text-align:left">log1p x</td>
|
|
220
|
+
<td style="text-align:left">Natural logarithm of (1 + x)</td>
|
|
221
|
+
</tr>
|
|
222
|
+
<tr>
|
|
223
|
+
<td style="text-align:left">not x</td>
|
|
224
|
+
<td style="text-align:left">Logical NOT operator</td>
|
|
225
|
+
</tr>
|
|
226
|
+
<tr>
|
|
227
|
+
<td style="text-align:left">round x</td>
|
|
228
|
+
<td style="text-align:left">X, rounded to the nearest integer, using "grade-school rounding"</td>
|
|
229
|
+
</tr>
|
|
230
|
+
<tr>
|
|
231
|
+
<td style="text-align:left">sign x</td>
|
|
232
|
+
<td style="text-align:left">Sign of x (-1, 0, or 1 for negative, zero, or positive respectively)</td>
|
|
233
|
+
</tr>
|
|
234
|
+
<tr>
|
|
235
|
+
<td style="text-align:left">sin x</td>
|
|
236
|
+
<td style="text-align:left">Sine of x (x is in radians)</td>
|
|
237
|
+
</tr>
|
|
238
|
+
<tr>
|
|
239
|
+
<td style="text-align:left">sinh x</td>
|
|
240
|
+
<td style="text-align:left">Hyperbolic sine of x (x is in radians)</td>
|
|
241
|
+
</tr>
|
|
242
|
+
<tr>
|
|
243
|
+
<td style="text-align:left">sqrt x</td>
|
|
244
|
+
<td style="text-align:left">Square root of x. Result is NaN (Not a Number) if x is negative.</td>
|
|
245
|
+
</tr>
|
|
246
|
+
<tr>
|
|
247
|
+
<td style="text-align:left">tan x</td>
|
|
248
|
+
<td style="text-align:left">Tangent of x (x is in radians)</td>
|
|
249
|
+
</tr>
|
|
250
|
+
<tr>
|
|
251
|
+
<td style="text-align:left">tanh x</td>
|
|
252
|
+
<td style="text-align:left">Hyperbolic tangent of x (x is in radians)</td>
|
|
253
|
+
</tr>
|
|
254
|
+
<tr>
|
|
255
|
+
<td style="text-align:left">trunc x</td>
|
|
256
|
+
<td style="text-align:left">Integral part of a X, looks like floor(x) unless for negative number</td>
|
|
257
|
+
</tr>
|
|
258
|
+
</tbody>
|
|
259
|
+
</table>
|
|
260
|
+
<h4>Pre-defined functions</h4>
|
|
261
|
+
<table>
|
|
262
|
+
<thead>
|
|
263
|
+
<tr>
|
|
264
|
+
<th style="text-align:left">Function</th>
|
|
265
|
+
<th style="text-align:left">Description</th>
|
|
266
|
+
</tr>
|
|
267
|
+
</thead>
|
|
268
|
+
<tbody>
|
|
269
|
+
<tr>
|
|
270
|
+
<td style="text-align:left">random(n)</td>
|
|
271
|
+
<td style="text-align:left">Get a random number in the range [0, n). If n is zero, or not provided, it defaults to 1.</td>
|
|
272
|
+
</tr>
|
|
273
|
+
<tr>
|
|
274
|
+
<td style="text-align:left">fac(n)</td>
|
|
275
|
+
<td style="text-align:left">n! (factorial of n: "n * (n-1) * (n-2) * … * 2 * 1") Deprecated. Use the ! operator instead.</td>
|
|
276
|
+
</tr>
|
|
277
|
+
<tr>
|
|
278
|
+
<td style="text-align:left">min(a,b,…)</td>
|
|
279
|
+
<td style="text-align:left">Get the smallest (minimum) number in the list.</td>
|
|
280
|
+
</tr>
|
|
281
|
+
<tr>
|
|
282
|
+
<td style="text-align:left">max(a,b,…)</td>
|
|
283
|
+
<td style="text-align:left">Get the largest (maximum) number in the list.</td>
|
|
284
|
+
</tr>
|
|
285
|
+
<tr>
|
|
286
|
+
<td style="text-align:left">hypot(a,b)</td>
|
|
287
|
+
<td style="text-align:left">Hypotenuse, i.e. the square root of the sum of squares of its arguments.</td>
|
|
288
|
+
</tr>
|
|
289
|
+
<tr>
|
|
290
|
+
<td style="text-align:left">pyt(a, b)</td>
|
|
291
|
+
<td style="text-align:left">Alias for hypot.</td>
|
|
292
|
+
</tr>
|
|
293
|
+
<tr>
|
|
294
|
+
<td style="text-align:left">pow(x, y)</td>
|
|
295
|
+
<td style="text-align:left">Equivalent to x^y. For consistency with JavaScript's Math object.</td>
|
|
296
|
+
</tr>
|
|
297
|
+
<tr>
|
|
298
|
+
<td style="text-align:left">atan2(y, x)</td>
|
|
299
|
+
<td style="text-align:left">Arc tangent of x/y. i.e. the angle between (0, 0) and (x, y) in radians.</td>
|
|
300
|
+
</tr>
|
|
301
|
+
<tr>
|
|
302
|
+
<td style="text-align:left">roundTo(x, n)</td>
|
|
303
|
+
<td style="text-align:left">Rounds x to n places after the decimal point.</td>
|
|
304
|
+
</tr>
|
|
305
|
+
<tr>
|
|
306
|
+
<td style="text-align:left">map(f, a)</td>
|
|
307
|
+
<td style="text-align:left">Array map: Pass each element of <code>a</code> the function <code>f</code>, and return an array of the results.</td>
|
|
308
|
+
</tr>
|
|
309
|
+
<tr>
|
|
310
|
+
<td style="text-align:left">fold(f, y, a)</td>
|
|
311
|
+
<td style="text-align:left">Array fold: Fold/reduce array <code>a</code> into a single value, <code>y</code> by setting <code>y = f(y, x, index)</code> for each element <code>x</code> of the array.</td>
|
|
312
|
+
</tr>
|
|
313
|
+
<tr>
|
|
314
|
+
<td style="text-align:left">filter(f, a)</td>
|
|
315
|
+
<td style="text-align:left">Array filter: Return an array containing only the values from <code>a</code> where <code>f(x, index)</code> is <code>true</code>.</td>
|
|
316
|
+
</tr>
|
|
317
|
+
<tr>
|
|
318
|
+
<td style="text-align:left">indexOf(x, a)</td>
|
|
319
|
+
<td style="text-align:left">Return the first index of string or array <code>a</code> matching the value <code>x</code>, or <code>-1</code> if not found.</td>
|
|
320
|
+
</tr>
|
|
321
|
+
<tr>
|
|
322
|
+
<td style="text-align:left">join(sep, a)</td>
|
|
323
|
+
<td style="text-align:left">Concatenate the elements of <code>a</code>, separated by <code>sep</code>.</td>
|
|
324
|
+
</tr>
|
|
325
|
+
<tr>
|
|
326
|
+
<td style="text-align:left">if(c, a, b)</td>
|
|
327
|
+
<td style="text-align:left">Function form of c ? a : b. Note: This always evaluates both <code>a</code> and <code>b</code>, regardless of whether <code>c</code> is <code>true</code> or not. Use <code>c ? a : b</code> instead if there are side effects, or if evaluating the branches could be expensive.</td>
|
|
328
|
+
</tr>
|
|
329
|
+
<tr>
|
|
330
|
+
<td style="text-align:left">when(case,value,case,value,defaultValue)</td>
|
|
331
|
+
<td style="text-align:left">条件语句</td>
|
|
332
|
+
</tr>
|
|
333
|
+
</tbody>
|
|
334
|
+
</table>
|
|
43
335
|
</article>
|
|
44
336
|
|
|
45
337
|
</section>
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
"version":"17.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"name": "@mapgis/webclient-common",
|
|
3
|
+
"version":"17.2.1",
|
|
4
|
+
"description": "mapgis ES6 format for igserver",
|
|
5
|
+
"main": "dist/webclient-common-es6.min.js",
|
|
6
|
+
"scripts": {},
|
|
7
|
+
"author": "Wuhan Zondy Cyber Science&Technology Co.Ltd.",
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@turf/turf": "^6.5.0",
|
|
11
|
+
"expr-eval": "^2.0.2",
|
|
12
|
+
"proj4": "2.9.0",
|
|
13
|
+
"proj4leaflet": "1.0.2"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {}
|
|
15
16
|
}
|