mars3d 3.7.13 → 3.7.15
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 +33 -12
- 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.15
|
|
6
|
+
* 编译日期:2024-05-21 21:44:06
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2024-01-15
|
|
9
9
|
*/
|
|
@@ -11732,6 +11732,10 @@ declare class ModelEntity extends BasePointEntity {
|
|
|
11732
11732
|
* 模型整体的缩放比例
|
|
11733
11733
|
*/
|
|
11734
11734
|
scale: number;
|
|
11735
|
+
/**
|
|
11736
|
+
* 卷帘对比时,设置所在的屏幕,NONE时不分屏
|
|
11737
|
+
*/
|
|
11738
|
+
splitDirection: Cesium.SplitDirection;
|
|
11735
11739
|
/**
|
|
11736
11740
|
* 获取模型完成解析加载完成的Promise承诺, 等价于load事件(区别在于load事件必须在load完成前绑定才能监听)。
|
|
11737
11741
|
* @example
|
|
@@ -12796,10 +12800,6 @@ declare class PolylineEntity extends BasePolyEntity {
|
|
|
12796
12800
|
* 矢量数据对应的 Cesium内部对象的具体类型对象
|
|
12797
12801
|
*/
|
|
12798
12802
|
readonly entityGraphic: Cesium.PolylineGraphics;
|
|
12799
|
-
/**
|
|
12800
|
-
* 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象
|
|
12801
|
-
*/
|
|
12802
|
-
positions: Cesium.Cartesian3[];
|
|
12803
12803
|
}
|
|
12804
12804
|
|
|
12805
12805
|
declare namespace PolylineVolumeEntity {
|
|
@@ -15004,6 +15004,7 @@ declare class DistanceSurfaceMeasure extends DistanceMeasure {
|
|
|
15004
15004
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
15005
15005
|
* @param [options.label] - 测量结果文本的样式
|
|
15006
15006
|
* @param [options.decimal = 2] - 显示的 距离和高度值 文本中保留的小数位
|
|
15007
|
+
* @param [options.hasAbs] - 显示的 高度值 是否取绝对值,默认时:高度下降为负数、上升是正数。
|
|
15007
15008
|
* @param [options.availability] - 指定时间范围内显示该对象
|
|
15008
15009
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
15009
15010
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -15037,6 +15038,7 @@ declare class HeightMeasure extends PolylineEntity {
|
|
|
15037
15038
|
attr?: any | BaseGraphic.AjaxAttr;
|
|
15038
15039
|
label?: LabelEntity.StyleOptions | any;
|
|
15039
15040
|
decimal?: number;
|
|
15041
|
+
hasAbs?: boolean;
|
|
15040
15042
|
availability?: Cesium.TimeIntervalCollection | Cesium.TimeInterval | any[] | any;
|
|
15041
15043
|
description?: Cesium.Property | string;
|
|
15042
15044
|
viewFrom?: Cesium.Property;
|
|
@@ -18121,6 +18123,10 @@ declare class ModelPrimitive extends BasePointPrimitive {
|
|
|
18121
18123
|
* Z轴方向缩放比例
|
|
18122
18124
|
*/
|
|
18123
18125
|
scaleZ: number;
|
|
18126
|
+
/**
|
|
18127
|
+
* 卷帘对比时,设置所在的屏幕,NONE时不分屏
|
|
18128
|
+
*/
|
|
18129
|
+
splitDirection: Cesium.SplitDirection;
|
|
18124
18130
|
/**
|
|
18125
18131
|
* 获取模型完成解析加载完成的Promise承诺, 等价于load事件(区别在于load事件必须在load完成前绑定才能监听)。
|
|
18126
18132
|
*/
|
|
@@ -21538,6 +21544,7 @@ declare namespace GeoJsonLayer {
|
|
|
21538
21544
|
* @param [options.chinaCRS] - 标识数据的国内坐标系(用于自动纠偏或加偏)
|
|
21539
21545
|
* @param [options.format] - 可以对加载的geojson数据进行格式化或转换操作
|
|
21540
21546
|
* @param [options.onCreateGraphic] - 解析geojson后,外部自定义方法来创建Graphic对象
|
|
21547
|
+
* @param [options.filter] - 数据筛选方法,方法体内返回false时排除数据 filter:function(feature){return true}
|
|
21541
21548
|
* @param [options.mask] - 标识是否绘制区域边界的反选遮罩层,也可以传入object配置范围: { xmin: 73.0, xmax: 136.0, ymin: 3.0, ymax: 59.0 }
|
|
21542
21549
|
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
21543
21550
|
* @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0
|
|
@@ -21618,6 +21625,7 @@ declare class GeoJsonLayer extends GraphicLayer {
|
|
|
21618
21625
|
chinaCRS?: ChinaCRS;
|
|
21619
21626
|
format?: (...params: any[]) => any;
|
|
21620
21627
|
onCreateGraphic?: (...params: any[]) => any;
|
|
21628
|
+
filter?: (...params: any[]) => any;
|
|
21621
21629
|
mask?: boolean | any;
|
|
21622
21630
|
allowDrillPick?: boolean | ((...params: any[]) => any);
|
|
21623
21631
|
opacity?: number;
|
|
@@ -22198,6 +22206,10 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
22198
22206
|
* 是否允许鼠标穿透拾取
|
|
22199
22207
|
*/
|
|
22200
22208
|
allowDrillPick: boolean | ((...params: any[]) => any);
|
|
22209
|
+
/**
|
|
22210
|
+
* 卷帘对比时,设置所在的屏幕,NONE时不分屏[仅对Model小模型矢量数据有效]
|
|
22211
|
+
*/
|
|
22212
|
+
splitDirection: Cesium.SplitDirection;
|
|
22201
22213
|
/**
|
|
22202
22214
|
* 对象从地图上移除的创建钩子方法,
|
|
22203
22215
|
* 每次remove时都会调用
|
|
@@ -22247,6 +22259,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
22247
22259
|
* @param [options.simplify.highQuality = true] - 是否花更多的时间用不同的算法创建更高质量的简化
|
|
22248
22260
|
* @param [options.simplify.mutate = true] - 是否允许对输入进行变异(如果为true,则显著提高性能)
|
|
22249
22261
|
* @param [options.onEachFeature] - 创建每个Graphic前的回调
|
|
22262
|
+
* @param [options.filter] - 数据筛选方法,方法体内返回false时排除数据 filter:function(feature){return true}
|
|
22250
22263
|
* @returns 转换后的Graphic对象数组
|
|
22251
22264
|
*/
|
|
22252
22265
|
loadGeoJSON(geojson: string | any, options?: {
|
|
@@ -22261,6 +22274,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
22261
22274
|
mutate?: boolean;
|
|
22262
22275
|
};
|
|
22263
22276
|
onEachFeature?: (...params: any[]) => any;
|
|
22277
|
+
filter?: (...params: any[]) => any;
|
|
22264
22278
|
}): BaseGraphic[];
|
|
22265
22279
|
/**
|
|
22266
22280
|
* 获取当前图层聚合点列表
|
|
@@ -23465,7 +23479,7 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
23465
23479
|
};
|
|
23466
23480
|
flyTo?: boolean;
|
|
23467
23481
|
flyToOptions?: any;
|
|
23468
|
-
}, clippingPolygons?:
|
|
23482
|
+
}, clippingPolygons?: any);
|
|
23469
23483
|
/**
|
|
23470
23484
|
* 原始的旋转角度,示例:{ x: 0, y: 0, z: 0 }
|
|
23471
23485
|
*/
|
|
@@ -27138,8 +27152,8 @@ declare class WmtsLayer extends BaseTileLayer {
|
|
|
27138
27152
|
* <li><code>{x}</code>:切片方案中的图块X坐标,其中0是最西端的图块。</li>
|
|
27139
27153
|
* <li><code>{y}</code>: 切片方案中的图块Y坐标,其中0是最北的图块。</li>
|
|
27140
27154
|
* <li><code>{s}</code>:可用的子域之一,用于克服浏览器对每个主机的并发请求数的限制。</li>
|
|
27155
|
+
* <li><code>{reverseY}</code>:切片方案中的图块Y坐标,其中0是最南端的图块,是y的翻转值, 用于TMS服务。</li>
|
|
27141
27156
|
* <li><code>{reverseX}</code>: 切片方案中的图块X坐标,其中0是最东的图块。</li>
|
|
27142
|
-
* <li><code>{reverseY}</code>:切片方案中的图块Y坐标,其中0是最南端的图块,用于TMS服务。</li>
|
|
27143
27157
|
* <li><code>{reverseZ}</code>:在切片方案中切片的级别,其中级别0是四叉树金字塔的最大级别。为了使用reverseZ,必须定义maximumLevel。</li>
|
|
27144
27158
|
* <li><code>{westDegrees}</code>: 瓦片图块在测地角度上的西边缘。</li>
|
|
27145
27159
|
* <li><code>{southDegrees}</code>:瓦片图块在测地角度上的南边缘。</li>
|
|
@@ -27687,7 +27701,7 @@ declare class Map extends BaseClass {
|
|
|
27687
27701
|
*/
|
|
27688
27702
|
lang: Lang | any;
|
|
27689
27703
|
/**
|
|
27690
|
-
*
|
|
27704
|
+
* 鼠标滚轮缩放的步长比例,
|
|
27691
27705
|
* 初始化时可传参 scene.cameraController.zoomFactor
|
|
27692
27706
|
*/
|
|
27693
27707
|
zoomFactor: number;
|
|
@@ -28677,7 +28691,7 @@ declare namespace Map {
|
|
|
28677
28691
|
* @property [cameraController] - 相机操作相关参数
|
|
28678
28692
|
* @property [cameraController.minimumZoomDistance = 1.0] - 相机最近视距,变焦时相机位置的最小量级(以米为单位),默认为1。该值是相机与地表(含地形)的相对距离。
|
|
28679
28693
|
* @property [cameraController.maximumZoomDistance = 50000000.0] - 相机最远视距,变焦时相机位置的最大值(以米为单位)。该值是相机与地表(含地形)的相对距离。
|
|
28680
|
-
* @property [cameraController.zoomFactor = 3.0] -
|
|
28694
|
+
* @property [cameraController.zoomFactor = 3.0] - 鼠标滚轮缩放的步长比例
|
|
28681
28695
|
* @property [cameraController.minimumCollisionTerrainHeight = 80000] - 最小碰撞高度,低于此高度时绕鼠标键绕圈,大于时绕视图中心点绕圈。
|
|
28682
28696
|
* @property [cameraController.constrainedAxis = true] - 南北极绕轴心旋转,为false时 解除在南北极区域鼠标操作限制
|
|
28683
28697
|
* @property [cameraController.enableRotate = true] - 2D和3D视图下,是否允许用户旋转相机
|
|
@@ -34031,6 +34045,7 @@ declare class Measure extends BaseThing {
|
|
|
34031
34045
|
* @param [options.label] - 测量结果文本的样式
|
|
34032
34046
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
34033
34047
|
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
34048
|
+
* @param [options.hasAbs] - 显示的 高度值 是否取绝对值,默认时:高度下降为负数、上升是正数。
|
|
34034
34049
|
* @returns 绘制创建完成的Promise,返回 高度测量 对象
|
|
34035
34050
|
*/
|
|
34036
34051
|
height(options?: {
|
|
@@ -34038,6 +34053,7 @@ declare class Measure extends BaseThing {
|
|
|
34038
34053
|
label?: LabelEntity.StyleOptions | any | any;
|
|
34039
34054
|
unit?: string;
|
|
34040
34055
|
decimal?: number;
|
|
34056
|
+
hasAbs?: boolean;
|
|
34041
34057
|
}): Promise<HeightMeasure | any>;
|
|
34042
34058
|
/**
|
|
34043
34059
|
* 三角高度测量,
|
|
@@ -35965,7 +35981,7 @@ declare class TilesetPlanClip extends BaseThing {
|
|
|
35965
35981
|
/**
|
|
35966
35982
|
* 裁剪多边形面集合
|
|
35967
35983
|
*/
|
|
35968
|
-
readonly polygons:
|
|
35984
|
+
readonly polygons: any;
|
|
35969
35985
|
/**
|
|
35970
35986
|
* 获取当前转换计算模型逆矩阵,
|
|
35971
35987
|
* 用于 局部坐标系 与 世界坐标系 的转换。
|
|
@@ -38461,6 +38477,7 @@ declare namespace Util {
|
|
|
38461
38477
|
* @param [symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
|
|
38462
38478
|
* @param [symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
|
|
38463
38479
|
* @param [attr] - 数据属性对象
|
|
38480
|
+
* @param [callbackResult] - callback时的第3个回调参数
|
|
38464
38481
|
* @returns style样式
|
|
38465
38482
|
*/
|
|
38466
38483
|
function getSymbolStyle(symbol: {
|
|
@@ -38468,7 +38485,7 @@ declare namespace Util {
|
|
|
38468
38485
|
styleField?: string;
|
|
38469
38486
|
styleFieldOptions?: any;
|
|
38470
38487
|
callback?: (...params: any[]) => any;
|
|
38471
|
-
}, attr?: any): any;
|
|
38488
|
+
}, attr?: any, callbackResult?: any): any;
|
|
38472
38489
|
/**
|
|
38473
38490
|
* geojson格式 转 arcgis服务的json格式
|
|
38474
38491
|
* @param geojson - geojson格式
|
|
@@ -38511,6 +38528,7 @@ declare namespace Util {
|
|
|
38511
38528
|
* @param [options.simplify.highQuality = true] - 是否花更多的时间用不同的算法创建更高质量的简化
|
|
38512
38529
|
* @param [options.simplify.mutate = true] - 是否允许对输入进行变异(如果为true,则显著提高性能)
|
|
38513
38530
|
* @param [options.onPointTrans] - 坐标转换方法,可用于对每个坐标做额外转换处理,比如坐标纠偏 onPointTrans: mars3d.PointUtil.getTransFun(mars3d.ChinaCRS.GCJ02, map.chinaCRS)
|
|
38531
|
+
* @param [options.filter] - 数据筛选方法,方法体内返回false时排除数据 filter:function(feature){return true}
|
|
38514
38532
|
* @returns Graphic构造参数数组(用于创建{@link BaseGraphic}),其中多面的最大一个面会有isMultiMax为true的属性
|
|
38515
38533
|
*/
|
|
38516
38534
|
function geoJsonToGraphics(geojson: any, options?: {
|
|
@@ -38531,6 +38549,7 @@ declare namespace Util {
|
|
|
38531
38549
|
mutate?: boolean;
|
|
38532
38550
|
};
|
|
38533
38551
|
onPointTrans?: (...params: any[]) => any;
|
|
38552
|
+
filter?: (...params: any[]) => any;
|
|
38534
38553
|
}): any;
|
|
38535
38554
|
/**
|
|
38536
38555
|
* GeoJSON格式的Feature单个对象转为 Graphic构造参数(用于创建{@link BaseGraphic})
|
|
@@ -38545,6 +38564,7 @@ declare namespace Util {
|
|
|
38545
38564
|
* @param [options.simplify.highQuality = true] - 是否花更多的时间用不同的算法创建更高质量的简化
|
|
38546
38565
|
* @param [options.simplify.mutate = true] - 是否允许对输入进行变异(如果为true,则显著提高性能)
|
|
38547
38566
|
* @param [options.onPointTrans] - 坐标转换方法,可用于对每个坐标做额外转换处理
|
|
38567
|
+
* @param [options.filter] - 数据筛选方法,方法体内返回false时排除数据 filter:function(feature){return true}
|
|
38548
38568
|
* @returns Graphic构造参数(用于创建{@link BaseGraphic}),其中多面的最大一个面会有isMultiMax为true的属性
|
|
38549
38569
|
*/
|
|
38550
38570
|
function featureToGraphic(feature: any, options?: {
|
|
@@ -38557,6 +38577,7 @@ declare namespace Util {
|
|
|
38557
38577
|
mutate?: boolean;
|
|
38558
38578
|
};
|
|
38559
38579
|
onPointTrans?: (...params: any[]) => any;
|
|
38580
|
+
filter?: (...params: any[]) => any;
|
|
38560
38581
|
}): any;
|
|
38561
38582
|
/**
|
|
38562
38583
|
* 根据当前高度获取地图层级
|