mars3d 3.7.21 → 3.7.23
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 +104 -85
- 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-07-
|
|
5
|
+
* 版本信息:v3.7.23
|
|
6
|
+
* 编译日期:2024-07-23 21:10:10
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2024-01-15
|
|
9
9
|
*/
|
|
@@ -2076,7 +2076,8 @@ declare class BaseControl extends BaseThing {
|
|
|
2076
2076
|
}
|
|
2077
2077
|
|
|
2078
2078
|
/**
|
|
2079
|
-
*
|
|
2079
|
+
* 时钟及其动画的管理控制,
|
|
2080
|
+
* 控件界面的相关值取自 map.clock 下相关属性值。
|
|
2080
2081
|
* @param [options] - 参数对象,包括以下:
|
|
2081
2082
|
* @param [options.format = "yyyy-MM-dd HH:mm:ss"] - 当前时间格式化字符串
|
|
2082
2083
|
* @param [options.className] - 样式名称,可以外部自定义样式。
|
|
@@ -4599,7 +4600,8 @@ declare class BaseGraphic extends BaseClass {
|
|
|
4599
4600
|
*/
|
|
4600
4601
|
setStyle(newStyle: any): BaseGraphic | any;
|
|
4601
4602
|
/**
|
|
4602
|
-
*
|
|
4603
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
4604
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
4603
4605
|
* @param value - 透明度
|
|
4604
4606
|
* @returns 无
|
|
4605
4607
|
*/
|
|
@@ -5587,7 +5589,8 @@ declare class FlatBillboard extends BaseCombine {
|
|
|
5587
5589
|
*/
|
|
5588
5590
|
clear(): void;
|
|
5589
5591
|
/**
|
|
5590
|
-
*
|
|
5592
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
5593
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
5591
5594
|
* @param value - 透明度
|
|
5592
5595
|
* @returns 无
|
|
5593
5596
|
*/
|
|
@@ -7390,7 +7393,8 @@ declare class Tetrahedron extends BasePointPrimitive {
|
|
|
7390
7393
|
*/
|
|
7391
7394
|
readonly modelMatrix: Cesium.Matrix4;
|
|
7392
7395
|
/**
|
|
7393
|
-
*
|
|
7396
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
7397
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
7394
7398
|
* @param value - 透明度
|
|
7395
7399
|
* @returns 无
|
|
7396
7400
|
*/
|
|
@@ -7403,8 +7407,8 @@ declare namespace Video3D {
|
|
|
7403
7407
|
* @property [container] - video视频DOM容器
|
|
7404
7408
|
* @property [url] - 视频的URL路径,与DOM二选一
|
|
7405
7409
|
* @property [maskImage] - 遮盖融合的图片url地址,可以用于视频的四周羽化效果。
|
|
7406
|
-
* @property angle - 水平张角(度数)
|
|
7407
|
-
* @property angle2 - 垂直张角(度数)
|
|
7410
|
+
* @property angle - 水平张角(度数),半场角度
|
|
7411
|
+
* @property angle2 - 垂直张角(度数),半场角度
|
|
7408
7412
|
* @property [distance] - 投射最远距离,单位:米
|
|
7409
7413
|
* @property [heading = 0] - 方向角 (度数值,0-360度)
|
|
7410
7414
|
* @property [pitch = 0] - 俯仰角(度数值,0-360度)
|
|
@@ -7414,6 +7418,9 @@ declare namespace Video3D {
|
|
|
7414
7418
|
* @property [flipy = false] - 是否Y方向翻转图片
|
|
7415
7419
|
* @property [hiddenAreaColor = new Cesium.Color(0, 0, 0, 0.5)] - 无视频投影区域的颜色
|
|
7416
7420
|
* @property [showFrustum = false] - 是否显示视椎体框线
|
|
7421
|
+
* @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定此框将显示在与摄像机的多大距离。
|
|
7422
|
+
* @property [distanceDisplayCondition_far = number.MAX_VALUE] - 最大距离
|
|
7423
|
+
* @property [distanceDisplayCondition_near = 0] - 最小距离
|
|
7417
7424
|
*/
|
|
7418
7425
|
type StyleOptions = any | {
|
|
7419
7426
|
container?: HTMLVideoElement;
|
|
@@ -7430,6 +7437,9 @@ declare namespace Video3D {
|
|
|
7430
7437
|
flipy?: boolean;
|
|
7431
7438
|
hiddenAreaColor?: Cesium.Color | string;
|
|
7432
7439
|
showFrustum?: boolean;
|
|
7440
|
+
distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
|
|
7441
|
+
distanceDisplayCondition_far?: number;
|
|
7442
|
+
distanceDisplayCondition_near?: number;
|
|
7433
7443
|
};
|
|
7434
7444
|
}
|
|
7435
7445
|
|
|
@@ -7536,7 +7546,8 @@ declare class ViewDome extends BasePointPrimitive {
|
|
|
7536
7546
|
*/
|
|
7537
7547
|
hiddenColor: string | Cesium.Color;
|
|
7538
7548
|
/**
|
|
7539
|
-
*
|
|
7549
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
7550
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
7540
7551
|
* @param value - 透明度
|
|
7541
7552
|
* @returns 无
|
|
7542
7553
|
*/
|
|
@@ -7546,8 +7557,8 @@ declare class ViewDome extends BasePointPrimitive {
|
|
|
7546
7557
|
declare namespace ViewShed {
|
|
7547
7558
|
/**
|
|
7548
7559
|
* 可视域矢量对象 支持的样式信息
|
|
7549
|
-
* @property [angle = 60] - 水平张角(度数)
|
|
7550
|
-
* @property [angle2 = 45] - 垂直张角(度数)
|
|
7560
|
+
* @property [angle = 60] - 水平张角(度数),半场角度,取值范围 0-60
|
|
7561
|
+
* @property [angle2 = 45] - 垂直张角(度数),半场角度,取值范围 0-45
|
|
7551
7562
|
* @property [distance] - 投射最远距离,单位:米
|
|
7552
7563
|
* @property [heading = 0] - 方向角 (度数值,0-360度)
|
|
7553
7564
|
* @property [pitch = 0] - 俯仰角(度数值,0-360度)
|
|
@@ -7650,7 +7661,8 @@ declare class ViewShed extends BasePointPrimitive {
|
|
|
7650
7661
|
*/
|
|
7651
7662
|
setView(): void;
|
|
7652
7663
|
/**
|
|
7653
|
-
*
|
|
7664
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
7665
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
7654
7666
|
* @param value - 透明度
|
|
7655
7667
|
* @returns 无
|
|
7656
7668
|
*/
|
|
@@ -8039,7 +8051,8 @@ declare class DivGraphic extends BaseGraphic {
|
|
|
8039
8051
|
*/
|
|
8040
8052
|
html: string | HTMLDivElement;
|
|
8041
8053
|
/**
|
|
8042
|
-
*
|
|
8054
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
8055
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
8043
8056
|
* @param value - 透明度
|
|
8044
8057
|
* @returns 无
|
|
8045
8058
|
*/
|
|
@@ -8525,6 +8538,16 @@ declare class EditDivGraphic extends EditBase {
|
|
|
8525
8538
|
* @returns 当前对象本身,可以链式调用
|
|
8526
8539
|
*/
|
|
8527
8540
|
disable(): EditBase;
|
|
8541
|
+
/**
|
|
8542
|
+
* 开启 平移矩阵
|
|
8543
|
+
* @param [graphic] - 矢量对象
|
|
8544
|
+
* @param [eventRM] - 事件对象,仅用于传递
|
|
8545
|
+
*/
|
|
8546
|
+
startMoveMatrix(graphic?: BaseGraphic, eventRM?: any): void;
|
|
8547
|
+
/**
|
|
8548
|
+
* 停止 平移矩阵
|
|
8549
|
+
*/
|
|
8550
|
+
stopMoveMatrix(): void;
|
|
8528
8551
|
}
|
|
8529
8552
|
|
|
8530
8553
|
declare namespace Popup {
|
|
@@ -8843,7 +8866,8 @@ declare class BaseEntity extends BaseGraphic {
|
|
|
8843
8866
|
*/
|
|
8844
8867
|
closeHighlight(): void;
|
|
8845
8868
|
/**
|
|
8846
|
-
*
|
|
8869
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
8870
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
8847
8871
|
* @param value - 透明度
|
|
8848
8872
|
* @returns 无
|
|
8849
8873
|
*/
|
|
@@ -9456,7 +9480,8 @@ declare class BillboardEntity extends BasePointEntity {
|
|
|
9456
9480
|
*/
|
|
9457
9481
|
image: string | HTMLCanvasElement;
|
|
9458
9482
|
/**
|
|
9459
|
-
*
|
|
9483
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
9484
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
9460
9485
|
* @param value - 透明度
|
|
9461
9486
|
* @returns 无
|
|
9462
9487
|
*/
|
|
@@ -11573,7 +11598,8 @@ declare class LabelEntity {
|
|
|
11573
11598
|
*/
|
|
11574
11599
|
stopBounce(): void;
|
|
11575
11600
|
/**
|
|
11576
|
-
*
|
|
11601
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
11602
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
11577
11603
|
* @param value - 透明度
|
|
11578
11604
|
* @returns 无
|
|
11579
11605
|
*/
|
|
@@ -11824,48 +11850,8 @@ declare class ModelEntity extends BasePointEntity {
|
|
|
11824
11850
|
*/
|
|
11825
11851
|
cancelMoveTo(): void;
|
|
11826
11852
|
/**
|
|
11827
|
-
*
|
|
11828
|
-
*
|
|
11829
|
-
* @param [options.scale = 1.2] - 缩放比例,可以根据控制视角比模型大小略大一些,这样效果更友好。
|
|
11830
|
-
* @param options.radius - 相机距离目标点的距离(单位:米),与scale二选一
|
|
11831
|
-
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
11832
|
-
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
11833
|
-
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
11834
|
-
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
11835
|
-
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度,-90至90
|
|
11836
|
-
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
11837
|
-
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
11838
|
-
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
11839
|
-
* @param [options.endTransform] - 变换矩阵表示飞行结束时相机所处的参照系。
|
|
11840
|
-
* @param [options.maximumHeight] - 飞行高峰时的最大高度。
|
|
11841
|
-
* @param [options.pitchAdjustHeight] - 如果相机飞得比这个值高,在飞行过程中调整俯仰以向下看,并保持地球在视口。
|
|
11842
|
-
* @param [options.flyOverLongitude] - 地球上的两点之间总有两条路。这个选项迫使相机选择战斗方向飞过那个经度。
|
|
11843
|
-
* @param [options.flyOverLongitudeWeight] - 仅在通过flyOverLongitude指定的lon上空飞行,只要该方式的时间不超过flyOverLongitudeWeight的短途时间。
|
|
11844
|
-
* @param [options.convert = true] - 是否将目的地从世界坐标转换为场景坐标(仅在不使用3D时相关)。
|
|
11845
|
-
* @param [options.easingFunction] - 控制在飞行过程中如何插值时间。
|
|
11846
|
-
* @returns 如果飞行成功则解析为true的承诺,如果当前未在场景中可视化目标或取消飞行,则为false的Promise
|
|
11847
|
-
*/
|
|
11848
|
-
flyTo(options?: {
|
|
11849
|
-
scale?: number;
|
|
11850
|
-
radius: number;
|
|
11851
|
-
minHeight?: number;
|
|
11852
|
-
maxHeight?: number;
|
|
11853
|
-
heading?: number;
|
|
11854
|
-
pitch?: number;
|
|
11855
|
-
roll?: number;
|
|
11856
|
-
duration?: number;
|
|
11857
|
-
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
11858
|
-
cancel?: Cesium.Camera.FlightCancelledCallback;
|
|
11859
|
-
endTransform?: Cesium.Matrix4;
|
|
11860
|
-
maximumHeight?: number;
|
|
11861
|
-
pitchAdjustHeight?: number;
|
|
11862
|
-
flyOverLongitude?: number;
|
|
11863
|
-
flyOverLongitudeWeight?: number;
|
|
11864
|
-
convert?: boolean;
|
|
11865
|
-
easingFunction?: Cesium.EasingFunction.Callback;
|
|
11866
|
-
}): Promise<boolean>;
|
|
11867
|
-
/**
|
|
11868
|
-
* 设置透明度
|
|
11853
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
11854
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
11869
11855
|
* @param value - 透明度
|
|
11870
11856
|
* @returns 无
|
|
11871
11857
|
*/
|
|
@@ -13546,7 +13532,8 @@ declare class Video2D extends PolygonEntity {
|
|
|
13546
13532
|
*/
|
|
13547
13533
|
play: boolean;
|
|
13548
13534
|
/**
|
|
13549
|
-
*
|
|
13535
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
13536
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
13550
13537
|
* @param value - 透明度
|
|
13551
13538
|
* @returns 无
|
|
13552
13539
|
*/
|
|
@@ -15445,8 +15432,8 @@ declare class VolumeDepthMeasure extends AreaMeasure {
|
|
|
15445
15432
|
*/
|
|
15446
15433
|
minHeight: number;
|
|
15447
15434
|
/**
|
|
15448
|
-
*
|
|
15449
|
-
*
|
|
15435
|
+
* 最高高度,
|
|
15436
|
+
* 会影响 挖方量:高于“最高高度”的挖方被忽略
|
|
15450
15437
|
*/
|
|
15451
15438
|
maxHeight: number;
|
|
15452
15439
|
/**
|
|
@@ -16025,7 +16012,8 @@ declare class BasePrimitive extends BaseGraphic {
|
|
|
16025
16012
|
*/
|
|
16026
16013
|
setOffsetHeight(height?: number, index?: number | undefined): void;
|
|
16027
16014
|
/**
|
|
16028
|
-
*
|
|
16015
|
+
* 设置整体透明度(globalAlpha值) , 非全部矢量数据都支持,具体需要对应Graphic支持才有效
|
|
16016
|
+
* 对象本身透明度请修改 graphic.setStyle({ opacity: value })
|
|
16029
16017
|
* @param value - 透明度
|
|
16030
16018
|
* @returns 无
|
|
16031
16019
|
*/
|
|
@@ -16145,7 +16133,8 @@ declare class BillboardPrimitive extends BasePointPrimitive {
|
|
|
16145
16133
|
*/
|
|
16146
16134
|
image: string | HTMLCanvasElement;
|
|
16147
16135
|
/**
|
|
16148
|
-
*
|
|
16136
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
16137
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
16149
16138
|
* @param value - 透明度
|
|
16150
16139
|
* @returns 无
|
|
16151
16140
|
*/
|
|
@@ -17537,7 +17526,8 @@ declare class DynamicRiver extends BasePolyPrimitive {
|
|
|
17537
17526
|
*/
|
|
17538
17527
|
setOffsetHeight(height: number, time: number): void;
|
|
17539
17528
|
/**
|
|
17540
|
-
*
|
|
17529
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
17530
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
17541
17531
|
* @param value - 透明度
|
|
17542
17532
|
* @returns 无
|
|
17543
17533
|
*/
|
|
@@ -17927,7 +17917,8 @@ declare class LabelPrimitive extends BasePointPrimitive {
|
|
|
17927
17917
|
*/
|
|
17928
17918
|
readonly text: string;
|
|
17929
17919
|
/**
|
|
17930
|
-
*
|
|
17920
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
17921
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
17931
17922
|
* @param value - 透明度
|
|
17932
17923
|
* @returns 无
|
|
17933
17924
|
*/
|
|
@@ -17998,7 +17989,8 @@ declare class LightCone extends BasePointPrimitive {
|
|
|
17998
17989
|
*/
|
|
17999
17990
|
color: Cesium.Color;
|
|
18000
17991
|
/**
|
|
18001
|
-
*
|
|
17992
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
17993
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
18002
17994
|
* @param value - 透明度
|
|
18003
17995
|
* @returns 无
|
|
18004
17996
|
*/
|
|
@@ -18333,7 +18325,8 @@ declare class ModelPrimitive extends BasePointPrimitive {
|
|
|
18333
18325
|
*/
|
|
18334
18326
|
readonly readyPromise: Promise<Cesium.Model>;
|
|
18335
18327
|
/**
|
|
18336
|
-
*
|
|
18328
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
18329
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
18337
18330
|
* @param value - 透明度
|
|
18338
18331
|
* @returns 无
|
|
18339
18332
|
*/
|
|
@@ -20789,7 +20782,8 @@ declare class CzmGeoJsonLayer extends BaseGraphicLayer {
|
|
|
20789
20782
|
*/
|
|
20790
20783
|
lblAddFun(position: Cesium.Cartesian3 | Cesium.SampledPositionProperty | any, labelattr: any, attr: any): Cesium.Label;
|
|
20791
20784
|
/**
|
|
20792
|
-
*
|
|
20785
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
20786
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
20793
20787
|
* @param value - 透明度
|
|
20794
20788
|
* @returns 无
|
|
20795
20789
|
*/
|
|
@@ -22487,7 +22481,8 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
22487
22481
|
*/
|
|
22488
22482
|
getClusterList(): any[];
|
|
22489
22483
|
/**
|
|
22490
|
-
*
|
|
22484
|
+
* 设置整体透明度(globalAlpha值) , 非全部矢量数据都支持,具体需要对应Graphic支持才有效
|
|
22485
|
+
* 对象本身透明度请修改 graphic.setStyle({ opacity: value })
|
|
22491
22486
|
* @param value - 透明度
|
|
22492
22487
|
* @returns 无
|
|
22493
22488
|
*/
|
|
@@ -31177,9 +31172,7 @@ declare class EchartsLayer extends BaseLayer {
|
|
|
31177
31172
|
* @param [options.style.arcBlurScale = 1.5] - 曲面热力图时,blur扩大比例
|
|
31178
31173
|
* @param [options.style.arcDirection = 1] - 曲面热力图时,凹陷的方向,1向上,-1向下,0双面
|
|
31179
31174
|
* @param [options.style.diffHeight] - 曲面热力图时,曲面的起伏差值高,默认根据数据范围的比例自动计算。
|
|
31180
|
-
* @param [options.
|
|
31181
|
-
* @param [options.minCanvasSize = 700] - Canvas最小尺寸(单位:像素)
|
|
31182
|
-
* @param [options.delayTime = 2] - 显示数据时的过渡动画时长(单位:秒)
|
|
31175
|
+
* @param [options.canvasWidth = document.body.clientWidth] - Canvas的宽度尺寸(单位:像素),调大精度更高,但过大容易内存溢出
|
|
31183
31176
|
* @param [options.id = mars3d.Util.createGuid()] - 图层id标识
|
|
31184
31177
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
31185
31178
|
* @param [options.name = ''] - 图层名称
|
|
@@ -31225,9 +31218,7 @@ declare class HeatLayer extends BaseLayer {
|
|
|
31225
31218
|
arcDirection?: number;
|
|
31226
31219
|
diffHeight?: number;
|
|
31227
31220
|
};
|
|
31228
|
-
|
|
31229
|
-
minCanvasSize?: number;
|
|
31230
|
-
delayTime?: number;
|
|
31221
|
+
canvasWidth?: number;
|
|
31231
31222
|
id?: string | number;
|
|
31232
31223
|
pid?: string | number;
|
|
31233
31224
|
name?: string;
|
|
@@ -31272,17 +31263,15 @@ declare class HeatLayer extends BaseLayer {
|
|
|
31272
31263
|
/**
|
|
31273
31264
|
* 添加新的坐标点(含热力值)
|
|
31274
31265
|
* @param item - 坐标点(含热力值),示例: {lat:31.123,lng:103.568,value:1.2}
|
|
31275
|
-
* @param [isGD] - 是否固定区域坐标,true时可以平滑更新
|
|
31276
31266
|
* @returns 无
|
|
31277
31267
|
*/
|
|
31278
|
-
addPosition(item: Cesium.Cartesian3 | LngLatPoint
|
|
31268
|
+
addPosition(item: Cesium.Cartesian3 | LngLatPoint): void;
|
|
31279
31269
|
/**
|
|
31280
31270
|
* 更新所有坐标点(含热力值)数据
|
|
31281
31271
|
* @param arr - 坐标点(含热力值),示例:[{lat:31.123,lng:103.568,value:1.2},{lat:31.233,lng:103.938,value:2.3}]
|
|
31282
|
-
* @param [isGD] - 是否固定区域坐标,true时可以平滑更新
|
|
31283
31272
|
* @returns 无
|
|
31284
31273
|
*/
|
|
31285
|
-
setPositions(arr: Cesium.Cartesian3[] | LngLatPoint[]
|
|
31274
|
+
setPositions(arr: Cesium.Cartesian3[] | LngLatPoint[]): void;
|
|
31286
31275
|
/**
|
|
31287
31276
|
* 清除矢量对象
|
|
31288
31277
|
* @returns 无
|
|
@@ -31297,6 +31286,12 @@ declare class HeatLayer extends BaseLayer {
|
|
|
31297
31286
|
getRectangle(options?: {
|
|
31298
31287
|
isFormat?: boolean;
|
|
31299
31288
|
}): Cesium.Rectangle | any;
|
|
31289
|
+
/**
|
|
31290
|
+
* 按新的radius进行渲染
|
|
31291
|
+
* @param radius - 每个数据点将具有的半径
|
|
31292
|
+
* @returns 无
|
|
31293
|
+
*/
|
|
31294
|
+
updateRadius(radius: number): void;
|
|
31300
31295
|
/**
|
|
31301
31296
|
* 根据坐标点获取其对应的value值和颜色值
|
|
31302
31297
|
* @param item - 坐标点
|
|
@@ -31769,7 +31764,8 @@ declare class CamberRadar extends BasePointPrimitive {
|
|
|
31769
31764
|
*/
|
|
31770
31765
|
color: Cesium.Color;
|
|
31771
31766
|
/**
|
|
31772
|
-
*
|
|
31767
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
31768
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
31773
31769
|
* @param value - 透明度
|
|
31774
31770
|
* @returns 无
|
|
31775
31771
|
*/
|
|
@@ -31929,7 +31925,8 @@ declare class ConicSensor extends BasePointPrimitive {
|
|
|
31929
31925
|
*/
|
|
31930
31926
|
readonly intersectEllipsoid: boolean;
|
|
31931
31927
|
/**
|
|
31932
|
-
*
|
|
31928
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
31929
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
31933
31930
|
* @param value - 透明度
|
|
31934
31931
|
* @returns 无
|
|
31935
31932
|
*/
|
|
@@ -32299,7 +32296,8 @@ declare class RectSensor extends BasePointPrimitive {
|
|
|
32299
32296
|
*/
|
|
32300
32297
|
readonly intersectEllipsoid: boolean;
|
|
32301
32298
|
/**
|
|
32302
|
-
*
|
|
32299
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
32300
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
32303
32301
|
* @param value - 透明度
|
|
32304
32302
|
* @returns 无
|
|
32305
32303
|
*/
|
|
@@ -32475,7 +32473,7 @@ declare namespace SatelliteSensor {
|
|
|
32475
32473
|
* @property [angle1 = 5] - 圆锥的角度或者四棱锥的第一个角度,半场角度,取值范围 0.1-89.9
|
|
32476
32474
|
* @property [angle2 = 5] - 四棱锥的第二个角度,半场角度,取值范围 0.1-89.9
|
|
32477
32475
|
* @property [angle = 5] - 夹角1和夹角2相同时,可以传入angle一个属性
|
|
32478
|
-
* @property [length] -
|
|
32476
|
+
* @property [length] - 默认按与地球相交的距离展示,传值时按传入值的半径长度显示(米)
|
|
32479
32477
|
* @property [heading = 0] - 方向角 (角度值 0-360)
|
|
32480
32478
|
* @property [pitch = 0] - 俯仰角(角度值 0-360)
|
|
32481
32479
|
* @property [roll = 0] - 翻滚角(角度值 0-360)
|
|
@@ -32607,7 +32605,8 @@ declare class SatelliteSensor extends BasePointPrimitive {
|
|
|
32607
32605
|
*/
|
|
32608
32606
|
readonly intersectEllipsoid: number;
|
|
32609
32607
|
/**
|
|
32610
|
-
*
|
|
32608
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
32609
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
32611
32610
|
* @param value - 透明度
|
|
32612
32611
|
* @returns 无
|
|
32613
32612
|
*/
|
|
@@ -34400,10 +34399,14 @@ declare class Sightline extends BaseThing {
|
|
|
34400
34399
|
* @param target - 终点(目标点位置)
|
|
34401
34400
|
* @param [options = {}] - 控制参数,包括:
|
|
34402
34401
|
* @param [options.offsetHeight = 0] - 在起点增加的高度值,比如加上人的身高
|
|
34402
|
+
* @param [options.objectsToExclude] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features,也可以传入图层的 graphicLayer.objectsToExclude
|
|
34403
|
+
* @param [options.width = 0.1] - 分析的交叉处体的宽度,单位为米
|
|
34403
34404
|
* @returns 分析结果
|
|
34404
34405
|
*/
|
|
34405
34406
|
add(origin: Cesium.Cartesian3, target: Cesium.Cartesian3, options?: {
|
|
34406
34407
|
offsetHeight?: number;
|
|
34408
|
+
objectsToExclude?: any;
|
|
34409
|
+
width?: number;
|
|
34407
34410
|
}): any;
|
|
34408
34411
|
/**
|
|
34409
34412
|
* 添加通视分析,插值异步分析
|
|
@@ -37429,7 +37432,15 @@ declare namespace PointTrans {
|
|
|
37429
37432
|
* @param [toProjParams = 'EPSG:4326'] - 转为返回的结果坐标系
|
|
37430
37433
|
* @returns 返回结果坐标系的对应坐标数组,示例:[[115.866936, 35.062583],[115.866923, 35.062565]]
|
|
37431
37434
|
*/
|
|
37432
|
-
function proj4TransArr(coords: number[], fromProjParams: string, toProjParams?: string): number[];
|
|
37435
|
+
function proj4TransArr(coords: number[], fromProjParams: string | CRS, toProjParams?: string | CRS): number[];
|
|
37436
|
+
/**
|
|
37437
|
+
* 笛卡尔坐标 转 当前屏幕像素坐标
|
|
37438
|
+
* @param scene - 场景对象,传入map.scene
|
|
37439
|
+
* @param position - 笛卡尔坐标
|
|
37440
|
+
* @param [result] - 用于返回转换后的当前屏幕像素坐标,可以提高效率(避免多次实例化)
|
|
37441
|
+
* @returns 当前屏幕像素坐标
|
|
37442
|
+
*/
|
|
37443
|
+
function toWindowCoordinates(scene: Cesium.Scene, position: Cesium.Cartesian3, result?: Cesium.Cartesian2): Cesium.Cartesian2;
|
|
37433
37444
|
/**
|
|
37434
37445
|
* Cesium笛卡尔空间坐标 转 经纬度坐标 ,等价于 LngLatPoint.toArray
|
|
37435
37446
|
* 常用于转换geojson
|
|
@@ -37714,6 +37725,14 @@ declare namespace PointUtil {
|
|
|
37714
37725
|
* @returns 计算得到的新坐标
|
|
37715
37726
|
*/
|
|
37716
37727
|
function getOnLinePointByLen(p1: Cesium.Cartesian3, p2: Cesium.Cartesian3, len: number, addBS?: boolean): Cesium.Cartesian3;
|
|
37728
|
+
/**
|
|
37729
|
+
* 求 p1指向p2方向线上,距离p1指定比例的 新的点
|
|
37730
|
+
* @param p1 - 起点坐标
|
|
37731
|
+
* @param p2 - 终点坐标
|
|
37732
|
+
* @param ratio - 指定的比例,0-1的时候在P1-P2之间,大于1在P2后面
|
|
37733
|
+
* @returns 计算得到的新坐标
|
|
37734
|
+
*/
|
|
37735
|
+
function getOnLinePointByRatio(p1: Cesium.Cartesian3, p2: Cesium.Cartesian3, ratio: number): Cesium.Cartesian3;
|
|
37717
37736
|
/**
|
|
37718
37737
|
* 根据 坐标位置、hpr方向、偏移距离,计算目标点坐标
|
|
37719
37738
|
* @param position - 坐标位置
|