mars3d 3.7.12 → 3.7.13
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/dist/mars3d.css +2 -2
- package/dist/mars3d.d.ts +38 -17
- package/dist/mars3d.js +3 -3
- package/package.json +1 -1
package/dist/mars3d.css
CHANGED
package/dist/mars3d.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.7.
|
|
6
|
-
* 编译日期:2024-05-
|
|
5
|
+
* 版本信息:v3.7.13
|
|
6
|
+
* 编译日期:2024-05-14 21:00:16
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2024-01-15
|
|
9
9
|
*/
|
|
@@ -2372,6 +2372,8 @@ declare class HomeButton extends BaseCzmControl {
|
|
|
2372
2372
|
* 帮助按钮 控件 (Cesium原生)
|
|
2373
2373
|
* @param [options] - 参数对象,包括以下:
|
|
2374
2374
|
* @param [options.icon] - 按钮图标,可以是:图片url路径、base64字符串、svg字符串、字体图标class名
|
|
2375
|
+
* @param [options.firstOpen = true] - 是否首次自动弹出帮助信息面板
|
|
2376
|
+
* @param [options.localStorageName = "cesium-hasSeenNavHelp"] - 首次加载页面后执行:window.localStorage.setItem(localStorageName, "true")
|
|
2375
2377
|
* @param [options.id = createGuid()] - 对象的id标识
|
|
2376
2378
|
* @param [options.enabled = true] - 对象的启用状态
|
|
2377
2379
|
* @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.toolbar
|
|
@@ -2381,6 +2383,8 @@ declare class HomeButton extends BaseCzmControl {
|
|
|
2381
2383
|
declare class NavigationHelpButton extends BaseCzmControl {
|
|
2382
2384
|
constructor(options?: {
|
|
2383
2385
|
icon?: string;
|
|
2386
|
+
firstOpen?: string;
|
|
2387
|
+
localStorageName?: string;
|
|
2384
2388
|
id?: string | number;
|
|
2385
2389
|
enabled?: boolean;
|
|
2386
2390
|
parentContainer?: HTMLElement;
|
|
@@ -3178,10 +3182,17 @@ declare class ColorRamp {
|
|
|
3178
3182
|
/**
|
|
3179
3183
|
* 获取对应值的色带上的颜色值
|
|
3180
3184
|
* @param val - 数值
|
|
3181
|
-
* @param [
|
|
3185
|
+
* @param [alphaDef = 0.8] - 颜色的透明度
|
|
3182
3186
|
* @returns 该值在色带上对应的颜色值,比如 "rgba(256, 0, 0, 0.8)"
|
|
3183
3187
|
*/
|
|
3184
|
-
getColor(val: number,
|
|
3188
|
+
getColor(val: number, alphaDef?: number): string;
|
|
3189
|
+
/**
|
|
3190
|
+
* 获取对应值的色带上的颜色值
|
|
3191
|
+
* @param val - 数值
|
|
3192
|
+
* @param [alphaDef = 0.8] - 颜色的透明度
|
|
3193
|
+
* @returns 该值在色带上对应的颜色值
|
|
3194
|
+
*/
|
|
3195
|
+
getCesiumColor(val: number, alphaDef?: number): Cesium.Color;
|
|
3185
3196
|
}
|
|
3186
3197
|
|
|
3187
3198
|
/**
|
|
@@ -4002,11 +4013,11 @@ declare class DepthOfFieldEffect extends BaseEffect {
|
|
|
4002
4013
|
* 雾场景效果
|
|
4003
4014
|
* @param [options] - 参数对象,包括以下:
|
|
4004
4015
|
* @param [options.enabled = true] - 对象的启用状态
|
|
4005
|
-
* @param [options.fogByDistance = new Cesium.Cartesian4(10, 0.0, 1000, 0.9)] -
|
|
4016
|
+
* @param [options.fogByDistance = new Cesium.Cartesian4(10, 0.0, 1000, 0.9)] - 雾强度,4个数字代表:最近距离,强度值,最远距离,强度值(0.0-1.0)
|
|
4006
4017
|
* @param [options.fogByDistance_near] - 最近距离,可以与fogByDistance二选一
|
|
4007
|
-
* @param [options.fogByDistance_nearValue] -
|
|
4018
|
+
* @param [options.fogByDistance_nearValue] - 最近强度(0.0-1.0),可以与fogByDistance二选一
|
|
4008
4019
|
* @param [options.fogByDistance_far] - 最远距离,可以与fogByDistance二选一
|
|
4009
|
-
* @param [options.fogByDistance_farValue] -
|
|
4020
|
+
* @param [options.fogByDistance_farValue] - 最远强度(0.0-1.0),可以与fogByDistance二选一
|
|
4010
4021
|
* @param [options.color = Cesium.Color.WHITE] - 雾颜色
|
|
4011
4022
|
* @param [options.maxHeight = 9000] - 最大高度,限定超出该高度不显示雾场景效果
|
|
4012
4023
|
*/
|
|
@@ -4022,7 +4033,7 @@ declare class FogEffect extends BaseEffect {
|
|
|
4022
4033
|
maxHeight?: number;
|
|
4023
4034
|
});
|
|
4024
4035
|
/**
|
|
4025
|
-
*
|
|
4036
|
+
* 雾强度,4个数字代表:最近距离,强度值,最远距离,强度值(0.0-1.0)
|
|
4026
4037
|
*/
|
|
4027
4038
|
fogByDistance: Cesium.Cartesian4;
|
|
4028
4039
|
/**
|
|
@@ -4539,7 +4550,7 @@ declare class BaseGraphic extends BaseClass {
|
|
|
4539
4550
|
addTo(layer: GraphicLayer): BaseGraphic | any;
|
|
4540
4551
|
/**
|
|
4541
4552
|
* 从图层上移除,同 layer.removeGraphic
|
|
4542
|
-
* @param [hasDestroy] - 是否调用destroy释放
|
|
4553
|
+
* @param [hasDestroy = true] - 是否调用destroy释放
|
|
4543
4554
|
* @returns 无
|
|
4544
4555
|
*/
|
|
4545
4556
|
remove(hasDestroy?: boolean): void;
|
|
@@ -21812,7 +21823,7 @@ declare class GraphicGroupLayer extends GroupLayer {
|
|
|
21812
21823
|
eachGraphic(method: (...params: any[]) => any, context?: any): GraphicGroupLayer;
|
|
21813
21824
|
/**
|
|
21814
21825
|
* 清除图层内所有矢量数据
|
|
21815
|
-
* @param [hasDestroy =
|
|
21826
|
+
* @param [hasDestroy = true] - 是否释放矢量对象
|
|
21816
21827
|
* @returns 无
|
|
21817
21828
|
*/
|
|
21818
21829
|
clear(hasDestroy?: boolean): void;
|
|
@@ -22271,7 +22282,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
22271
22282
|
/**
|
|
22272
22283
|
* 移除Graphic矢量数据
|
|
22273
22284
|
* @param graphic - 矢量数据
|
|
22274
|
-
* @param [hasDestroy =
|
|
22285
|
+
* @param [hasDestroy = true] - 是否释放矢量对象
|
|
22275
22286
|
* @returns 当前对象本身,可以链式调用
|
|
22276
22287
|
*/
|
|
22277
22288
|
removeGraphic(graphic: BaseGraphic | any, hasDestroy?: boolean): GraphicLayer;
|
|
@@ -23007,7 +23018,7 @@ declare class LodGraphicLayer extends GraphicLayer {
|
|
|
23007
23018
|
updateGraphic(graphic: BaseGraphic | any, attr: any): void;
|
|
23008
23019
|
/**
|
|
23009
23020
|
* 清除图层内所有矢量数据
|
|
23010
|
-
* @param [hasDestroy =
|
|
23021
|
+
* @param [hasDestroy = true] - 是否释放矢量对象
|
|
23011
23022
|
* @returns 无
|
|
23012
23023
|
*/
|
|
23013
23024
|
clear(hasDestroy?: boolean): void;
|
|
@@ -25581,7 +25592,7 @@ declare class GeeLayer extends BaseTileLayer {
|
|
|
25581
25592
|
|
|
25582
25593
|
/**
|
|
25583
25594
|
* 谷歌地图,
|
|
25584
|
-
* 【如果谷歌地址被封时,img_d
|
|
25595
|
+
* 【如果谷歌地址被封时,img_d图层时会自动改用高德等其他地图进行显示】
|
|
25585
25596
|
* @param [options] - 参数对象,包括以下:
|
|
25586
25597
|
* @param [options.layer] - 图层类型,以及以下内容:<br />
|
|
25587
25598
|
* <ul>
|
|
@@ -27582,6 +27593,14 @@ declare class Map extends BaseClass {
|
|
|
27582
27593
|
* 获取 CesiumWidget
|
|
27583
27594
|
*/
|
|
27584
27595
|
readonly cesiumWidget: Cesium.CesiumWidget;
|
|
27596
|
+
/**
|
|
27597
|
+
* 获取地图完成解析加载完成的Promise承诺, 等价于load事件(区别在于load事件必须在load完成前绑定才能监听)。
|
|
27598
|
+
* @example
|
|
27599
|
+
* map.readyPromise.then(function(map) {
|
|
27600
|
+
* console.log("load完成", map)
|
|
27601
|
+
* })
|
|
27602
|
+
*/
|
|
27603
|
+
readonly readyPromise: Promise<BaseLayer | any>;
|
|
27585
27604
|
/**
|
|
27586
27605
|
* 获取或设置相机当前正在跟踪的Entity实例。
|
|
27587
27606
|
*/
|
|
@@ -27830,7 +27849,7 @@ declare class Map extends BaseClass {
|
|
|
27830
27849
|
/**
|
|
27831
27850
|
* 移除图层
|
|
27832
27851
|
* @param layer - 需要移除的图层
|
|
27833
|
-
* @param [hasDestroy] - 是否释放 destroy
|
|
27852
|
+
* @param [hasDestroy = false] - 是否释放 destroy
|
|
27834
27853
|
* @returns 当前对象本身,可以链式调用
|
|
27835
27854
|
*/
|
|
27836
27855
|
removeLayer(layer: BaseLayer, hasDestroy?: boolean): Map;
|
|
@@ -27909,7 +27928,7 @@ declare class Map extends BaseClass {
|
|
|
27909
27928
|
/**
|
|
27910
27929
|
* 移除控件
|
|
27911
27930
|
* @param control - 需要移除的控件
|
|
27912
|
-
* @param [hasDestroy] - 是否释放
|
|
27931
|
+
* @param [hasDestroy = false] - 是否释放
|
|
27913
27932
|
* @returns 当前对象本身,可以链式调用
|
|
27914
27933
|
*/
|
|
27915
27934
|
removeControl(control: BaseControl, hasDestroy?: boolean): Map;
|
|
@@ -27943,7 +27962,7 @@ declare class Map extends BaseClass {
|
|
|
27943
27962
|
/**
|
|
27944
27963
|
* 移除特效对象
|
|
27945
27964
|
* @param effect - 需要移除的特效对象
|
|
27946
|
-
* @param [hasDestroy] - 是否释放
|
|
27965
|
+
* @param [hasDestroy = false] - 是否释放
|
|
27947
27966
|
* @returns 当前对象本身,可以链式调用
|
|
27948
27967
|
*/
|
|
27949
27968
|
removeEffect(effect: BaseEffect, hasDestroy?: boolean): Map;
|
|
@@ -27963,7 +27982,7 @@ declare class Map extends BaseClass {
|
|
|
27963
27982
|
/**
|
|
27964
27983
|
* 移除Thing对象
|
|
27965
27984
|
* @param item - 需要移除的Thing对象
|
|
27966
|
-
* @param [hasDestroy] - 是否释放
|
|
27985
|
+
* @param [hasDestroy = false] - 是否释放
|
|
27967
27986
|
* @returns 当前对象本身,可以链式调用
|
|
27968
27987
|
*/
|
|
27969
27988
|
removeThing(item: BaseThing, hasDestroy?: boolean): Map;
|
|
@@ -35179,6 +35198,7 @@ declare type getSlope_endItem = (event: {
|
|
|
35179
35198
|
* @param [options.imageBottom] - 当显示开挖区域的井时,井底面贴图URL
|
|
35180
35199
|
* @param [options.diffHeight] - 当显示开挖区域的井时,设置所有区域的挖掘深度(单位:米)
|
|
35181
35200
|
* @param [options.splitNum = 30] - 当显示开挖区域的井时,井墙面每两点之间插值个数(概略值,有经纬网网格来插值)
|
|
35201
|
+
* @param [options.czm = true] - true:使用cesium原生clippingPolygons接口来操作,false:使用mars3d自定义方式操作
|
|
35182
35202
|
* @param [options.id = createGuid()] - 对象的id标识
|
|
35183
35203
|
* @param [options.enabled = true] - 对象的启用状态
|
|
35184
35204
|
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
|
|
@@ -35191,6 +35211,7 @@ declare class TerrainClip extends TerrainEditBase {
|
|
|
35191
35211
|
imageBottom?: string;
|
|
35192
35212
|
diffHeight?: number;
|
|
35193
35213
|
splitNum?: number;
|
|
35214
|
+
czm?: boolean;
|
|
35194
35215
|
id?: string | number;
|
|
35195
35216
|
enabled?: boolean;
|
|
35196
35217
|
eventParent?: BaseClass | boolean;
|