mars3d 3.4.8 → 3.4.9
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 +72 -8
- package/dist/mars3d.js +3 -3
- package/package.json +2 -2
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.4.
|
|
6
|
-
* 编译日期:2022-
|
|
5
|
+
* 版本信息:v3.4.9
|
|
6
|
+
* 编译日期:2022-10-10 17:11:33
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2022-06-01
|
|
9
9
|
*/
|
|
@@ -3024,6 +3024,7 @@ declare class BloomEffect extends BaseEffect {
|
|
|
3024
3024
|
* @param [options.ratio = 2.0] - 亮度增强比例
|
|
3025
3025
|
* @param [options.threshold = 0.0] - 亮度阈值
|
|
3026
3026
|
* @param [options.smoothWidth = 0.01] - 亮度光滑的宽度
|
|
3027
|
+
* @param [options.objectsToExclude] - 排除不拾取的对象,支持TilesetLayer或Graphic对象
|
|
3027
3028
|
* @param [options.enabled = true] - 对象的启用状态
|
|
3028
3029
|
*/
|
|
3029
3030
|
declare class BloomTargetEffect extends BaseEffect {
|
|
@@ -3039,6 +3040,7 @@ declare class BloomTargetEffect extends BaseEffect {
|
|
|
3039
3040
|
ratio?: number;
|
|
3040
3041
|
threshold?: number;
|
|
3041
3042
|
smoothWidth?: number;
|
|
3043
|
+
objectsToExclude?: any[];
|
|
3042
3044
|
enabled?: boolean;
|
|
3043
3045
|
});
|
|
3044
3046
|
/**
|
|
@@ -5142,7 +5144,8 @@ declare class ArcFrustum extends BasePointPrimitive {
|
|
|
5142
5144
|
* @param options - 参数对象,包括以下:
|
|
5143
5145
|
* @param options.positions - 轨迹的 坐标数组
|
|
5144
5146
|
* @param [options.offsetHeight = 0] - 轨迹偏移增加的高度
|
|
5145
|
-
* @param [options.interpolation] -
|
|
5147
|
+
* @param [options.interpolation] - 是否使用插值算法
|
|
5148
|
+
* @param [options.interpolationAlgorithm = Cesium.HermitePolynomialApproximation] - 当interpolation为true时,使用的插值算法,如:Cesium.HermitePolynomialApproximation、Cesium.LagrangePolynomialApproximation、Cesium.LinearApproximation
|
|
5146
5149
|
* @param [options.interpolationDegree = 2] - 当interpolation为true时,使用的插值程度。
|
|
5147
5150
|
* @param [options.showStop = true] - 是否在start前或stop后显示矢量对象
|
|
5148
5151
|
* @param options.speed - 轨迹的 速度( 单位:千米/小时)
|
|
@@ -5197,7 +5200,8 @@ declare class FixedRoute extends Route {
|
|
|
5197
5200
|
positions: any[][] | LngLatPoint[];
|
|
5198
5201
|
offsetHeight?: number;
|
|
5199
5202
|
interpolation?: boolean;
|
|
5200
|
-
|
|
5203
|
+
interpolationAlgorithm?: number;
|
|
5204
|
+
interpolationDegree?: Cesium.InterpolationAlgorithm | number;
|
|
5201
5205
|
showStop?: boolean;
|
|
5202
5206
|
speed: any[][] | number;
|
|
5203
5207
|
timeField?: string;
|
|
@@ -16411,6 +16415,11 @@ declare class BaseLayer extends BaseClass {
|
|
|
16411
16415
|
* @param [options = {}] - 参数对象:
|
|
16412
16416
|
* @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
|
|
16413
16417
|
* @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
16418
|
+
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
16419
|
+
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
16420
|
+
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
16421
|
+
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
16422
|
+
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
16414
16423
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
16415
16424
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
16416
16425
|
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
@@ -16426,6 +16435,11 @@ declare class BaseLayer extends BaseClass {
|
|
|
16426
16435
|
flyTo(options?: {
|
|
16427
16436
|
radius?: number;
|
|
16428
16437
|
scale?: number;
|
|
16438
|
+
minHeight?: number;
|
|
16439
|
+
maxHeight?: number;
|
|
16440
|
+
heading?: number;
|
|
16441
|
+
pitch?: number;
|
|
16442
|
+
roll?: number;
|
|
16429
16443
|
duration?: number;
|
|
16430
16444
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
16431
16445
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|
|
@@ -16681,6 +16695,11 @@ declare class CzmGeoJsonLayer extends BaseGraphicLayer {
|
|
|
16681
16695
|
* @param [options = {}] - 参数对象:
|
|
16682
16696
|
* @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
|
|
16683
16697
|
* @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
16698
|
+
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
16699
|
+
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
16700
|
+
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
16701
|
+
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
16702
|
+
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
16684
16703
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
16685
16704
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
16686
16705
|
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
@@ -16696,6 +16715,11 @@ declare class CzmGeoJsonLayer extends BaseGraphicLayer {
|
|
|
16696
16715
|
flyTo(options?: {
|
|
16697
16716
|
radius?: number;
|
|
16698
16717
|
scale?: number;
|
|
16718
|
+
minHeight?: number;
|
|
16719
|
+
maxHeight?: number;
|
|
16720
|
+
heading?: number;
|
|
16721
|
+
pitch?: number;
|
|
16722
|
+
roll?: number;
|
|
16699
16723
|
duration?: number;
|
|
16700
16724
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
16701
16725
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|
|
@@ -19208,6 +19232,11 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
19208
19232
|
* @param [options = {}] - 参数对象:
|
|
19209
19233
|
* @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
|
|
19210
19234
|
* @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
19235
|
+
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
19236
|
+
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
19237
|
+
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
19238
|
+
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
19239
|
+
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
19211
19240
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
19212
19241
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
19213
19242
|
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
@@ -19223,6 +19252,11 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
19223
19252
|
flyTo(options?: {
|
|
19224
19253
|
radius?: number;
|
|
19225
19254
|
scale?: number;
|
|
19255
|
+
minHeight?: number;
|
|
19256
|
+
maxHeight?: number;
|
|
19257
|
+
heading?: number;
|
|
19258
|
+
pitch?: number;
|
|
19259
|
+
roll?: number;
|
|
19226
19260
|
duration?: number;
|
|
19227
19261
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
19228
19262
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|
|
@@ -20472,6 +20506,11 @@ declare class BaseTileLayer extends BaseLayer {
|
|
|
20472
20506
|
* @param [options = {}] - 参数对象:
|
|
20473
20507
|
* @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
|
|
20474
20508
|
* @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
20509
|
+
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
20510
|
+
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
20511
|
+
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
20512
|
+
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
20513
|
+
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
20475
20514
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
20476
20515
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
20477
20516
|
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
@@ -20487,6 +20526,11 @@ declare class BaseTileLayer extends BaseLayer {
|
|
|
20487
20526
|
flyTo(options?: {
|
|
20488
20527
|
radius?: number;
|
|
20489
20528
|
scale?: number;
|
|
20529
|
+
minHeight?: number;
|
|
20530
|
+
maxHeight?: number;
|
|
20531
|
+
heading?: number;
|
|
20532
|
+
pitch?: number;
|
|
20533
|
+
roll?: number;
|
|
20490
20534
|
duration?: number;
|
|
20491
20535
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
20492
20536
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|
|
@@ -23300,7 +23344,7 @@ declare namespace Map {
|
|
|
23300
23344
|
* @property [多个参数] - 每种不同type都有自己的不同属性,具体参考{@link LayerType}找到type对应的BaseTileLayer子类图层类,查看其构造参数
|
|
23301
23345
|
*/
|
|
23302
23346
|
type basemapOptions = {
|
|
23303
|
-
type: string;
|
|
23347
|
+
type: string | LayerType;
|
|
23304
23348
|
多个参数?: any;
|
|
23305
23349
|
};
|
|
23306
23350
|
/**
|
|
@@ -23318,7 +23362,7 @@ declare namespace Map {
|
|
|
23318
23362
|
* @property [多个参数] - 每种type都有自己的不同属性,具体参考{@link LayerType}找到type对应的图层类,查看其构造参数
|
|
23319
23363
|
*/
|
|
23320
23364
|
type layerOptions = {
|
|
23321
|
-
type: string;
|
|
23365
|
+
type: string | LayerType;
|
|
23322
23366
|
id?: string | number;
|
|
23323
23367
|
pid?: string | number;
|
|
23324
23368
|
name?: string;
|
|
@@ -23987,9 +24031,9 @@ declare class Map extends BaseClass {
|
|
|
23987
24031
|
* 为了兼容老版本用户习惯和center参数名称一致而用的别名方法。
|
|
23988
24032
|
* @param cameraView - 飞行参数,同 setCameraView 方法
|
|
23989
24033
|
* @param [options = {}] - 参数对象,同 setCameraView 方法
|
|
23990
|
-
* @returns
|
|
24034
|
+
* @returns 如果飞行成功则解析为true的承诺,如果当前未在场景中可视化目标或取消飞行,则为false的Promise
|
|
23991
24035
|
*/
|
|
23992
|
-
centerAt(cameraView: any, options?: any):
|
|
24036
|
+
centerAt(cameraView: any, options?: any): Promise<boolean>;
|
|
23993
24037
|
/**
|
|
23994
24038
|
* 飞行到默认视角,
|
|
23995
24039
|
* 一般为config.json中的center参数配置的视角。
|
|
@@ -27367,6 +27411,11 @@ declare class S3MLayer extends BaseLayer {
|
|
|
27367
27411
|
* @param [options = {}] - 参数对象:
|
|
27368
27412
|
* @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
|
|
27369
27413
|
* @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
27414
|
+
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
27415
|
+
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
27416
|
+
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
27417
|
+
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
27418
|
+
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
27370
27419
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
27371
27420
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
27372
27421
|
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
@@ -27382,6 +27431,11 @@ declare class S3MLayer extends BaseLayer {
|
|
|
27382
27431
|
flyTo(options?: {
|
|
27383
27432
|
radius?: number;
|
|
27384
27433
|
scale?: number;
|
|
27434
|
+
minHeight?: number;
|
|
27435
|
+
maxHeight?: number;
|
|
27436
|
+
heading?: number;
|
|
27437
|
+
pitch?: number;
|
|
27438
|
+
roll?: number;
|
|
27385
27439
|
duration?: number;
|
|
27386
27440
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
27387
27441
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|
|
@@ -27600,6 +27654,11 @@ declare class SmMvtLayer extends BaseLayer {
|
|
|
27600
27654
|
* @param [options = {}] - 参数对象:
|
|
27601
27655
|
* @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
|
|
27602
27656
|
* @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
27657
|
+
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
27658
|
+
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
27659
|
+
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
27660
|
+
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
27661
|
+
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
27603
27662
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
27604
27663
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
27605
27664
|
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
@@ -27615,6 +27674,11 @@ declare class SmMvtLayer extends BaseLayer {
|
|
|
27615
27674
|
flyTo(options?: {
|
|
27616
27675
|
radius?: number;
|
|
27617
27676
|
scale?: number;
|
|
27677
|
+
minHeight?: number;
|
|
27678
|
+
maxHeight?: number;
|
|
27679
|
+
heading?: number;
|
|
27680
|
+
pitch?: number;
|
|
27681
|
+
roll?: number;
|
|
27618
27682
|
duration?: number;
|
|
27619
27683
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
27620
27684
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|