mars3d 3.7.21 → 3.7.22
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 +62 -28
- 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.22
|
|
6
|
+
* 编译日期:2024-07-16 21:25:18
|
|
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
|
*/
|
|
@@ -7536,7 +7540,8 @@ declare class ViewDome extends BasePointPrimitive {
|
|
|
7536
7540
|
*/
|
|
7537
7541
|
hiddenColor: string | Cesium.Color;
|
|
7538
7542
|
/**
|
|
7539
|
-
*
|
|
7543
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
7544
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
7540
7545
|
* @param value - 透明度
|
|
7541
7546
|
* @returns 无
|
|
7542
7547
|
*/
|
|
@@ -7650,7 +7655,8 @@ declare class ViewShed extends BasePointPrimitive {
|
|
|
7650
7655
|
*/
|
|
7651
7656
|
setView(): void;
|
|
7652
7657
|
/**
|
|
7653
|
-
*
|
|
7658
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
7659
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
7654
7660
|
* @param value - 透明度
|
|
7655
7661
|
* @returns 无
|
|
7656
7662
|
*/
|
|
@@ -8039,7 +8045,8 @@ declare class DivGraphic extends BaseGraphic {
|
|
|
8039
8045
|
*/
|
|
8040
8046
|
html: string | HTMLDivElement;
|
|
8041
8047
|
/**
|
|
8042
|
-
*
|
|
8048
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
8049
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
8043
8050
|
* @param value - 透明度
|
|
8044
8051
|
* @returns 无
|
|
8045
8052
|
*/
|
|
@@ -8525,6 +8532,16 @@ declare class EditDivGraphic extends EditBase {
|
|
|
8525
8532
|
* @returns 当前对象本身,可以链式调用
|
|
8526
8533
|
*/
|
|
8527
8534
|
disable(): EditBase;
|
|
8535
|
+
/**
|
|
8536
|
+
* 开启 平移矩阵
|
|
8537
|
+
* @param [graphic] - 矢量对象
|
|
8538
|
+
* @param [eventRM] - 事件对象,仅用于传递
|
|
8539
|
+
*/
|
|
8540
|
+
startMoveMatrix(graphic?: BaseGraphic, eventRM?: any): void;
|
|
8541
|
+
/**
|
|
8542
|
+
* 停止 平移矩阵
|
|
8543
|
+
*/
|
|
8544
|
+
stopMoveMatrix(): void;
|
|
8528
8545
|
}
|
|
8529
8546
|
|
|
8530
8547
|
declare namespace Popup {
|
|
@@ -8843,7 +8860,8 @@ declare class BaseEntity extends BaseGraphic {
|
|
|
8843
8860
|
*/
|
|
8844
8861
|
closeHighlight(): void;
|
|
8845
8862
|
/**
|
|
8846
|
-
*
|
|
8863
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
8864
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
8847
8865
|
* @param value - 透明度
|
|
8848
8866
|
* @returns 无
|
|
8849
8867
|
*/
|
|
@@ -9456,7 +9474,8 @@ declare class BillboardEntity extends BasePointEntity {
|
|
|
9456
9474
|
*/
|
|
9457
9475
|
image: string | HTMLCanvasElement;
|
|
9458
9476
|
/**
|
|
9459
|
-
*
|
|
9477
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
9478
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
9460
9479
|
* @param value - 透明度
|
|
9461
9480
|
* @returns 无
|
|
9462
9481
|
*/
|
|
@@ -11573,7 +11592,8 @@ declare class LabelEntity {
|
|
|
11573
11592
|
*/
|
|
11574
11593
|
stopBounce(): void;
|
|
11575
11594
|
/**
|
|
11576
|
-
*
|
|
11595
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
11596
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
11577
11597
|
* @param value - 透明度
|
|
11578
11598
|
* @returns 无
|
|
11579
11599
|
*/
|
|
@@ -11865,7 +11885,8 @@ declare class ModelEntity extends BasePointEntity {
|
|
|
11865
11885
|
easingFunction?: Cesium.EasingFunction.Callback;
|
|
11866
11886
|
}): Promise<boolean>;
|
|
11867
11887
|
/**
|
|
11868
|
-
*
|
|
11888
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
11889
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
11869
11890
|
* @param value - 透明度
|
|
11870
11891
|
* @returns 无
|
|
11871
11892
|
*/
|
|
@@ -13546,7 +13567,8 @@ declare class Video2D extends PolygonEntity {
|
|
|
13546
13567
|
*/
|
|
13547
13568
|
play: boolean;
|
|
13548
13569
|
/**
|
|
13549
|
-
*
|
|
13570
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
13571
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
13550
13572
|
* @param value - 透明度
|
|
13551
13573
|
* @returns 无
|
|
13552
13574
|
*/
|
|
@@ -16025,7 +16047,8 @@ declare class BasePrimitive extends BaseGraphic {
|
|
|
16025
16047
|
*/
|
|
16026
16048
|
setOffsetHeight(height?: number, index?: number | undefined): void;
|
|
16027
16049
|
/**
|
|
16028
|
-
*
|
|
16050
|
+
* 设置整体透明度(globalAlpha值) , 非全部矢量数据都支持,具体需要对应Graphic支持才有效
|
|
16051
|
+
* 对象本身透明度请修改 graphic.setStyle({ opacity: value })
|
|
16029
16052
|
* @param value - 透明度
|
|
16030
16053
|
* @returns 无
|
|
16031
16054
|
*/
|
|
@@ -16145,7 +16168,8 @@ declare class BillboardPrimitive extends BasePointPrimitive {
|
|
|
16145
16168
|
*/
|
|
16146
16169
|
image: string | HTMLCanvasElement;
|
|
16147
16170
|
/**
|
|
16148
|
-
*
|
|
16171
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
16172
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
16149
16173
|
* @param value - 透明度
|
|
16150
16174
|
* @returns 无
|
|
16151
16175
|
*/
|
|
@@ -17537,7 +17561,8 @@ declare class DynamicRiver extends BasePolyPrimitive {
|
|
|
17537
17561
|
*/
|
|
17538
17562
|
setOffsetHeight(height: number, time: number): void;
|
|
17539
17563
|
/**
|
|
17540
|
-
*
|
|
17564
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
17565
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
17541
17566
|
* @param value - 透明度
|
|
17542
17567
|
* @returns 无
|
|
17543
17568
|
*/
|
|
@@ -17927,7 +17952,8 @@ declare class LabelPrimitive extends BasePointPrimitive {
|
|
|
17927
17952
|
*/
|
|
17928
17953
|
readonly text: string;
|
|
17929
17954
|
/**
|
|
17930
|
-
*
|
|
17955
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
17956
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
17931
17957
|
* @param value - 透明度
|
|
17932
17958
|
* @returns 无
|
|
17933
17959
|
*/
|
|
@@ -17998,7 +18024,8 @@ declare class LightCone extends BasePointPrimitive {
|
|
|
17998
18024
|
*/
|
|
17999
18025
|
color: Cesium.Color;
|
|
18000
18026
|
/**
|
|
18001
|
-
*
|
|
18027
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
18028
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
18002
18029
|
* @param value - 透明度
|
|
18003
18030
|
* @returns 无
|
|
18004
18031
|
*/
|
|
@@ -18333,7 +18360,8 @@ declare class ModelPrimitive extends BasePointPrimitive {
|
|
|
18333
18360
|
*/
|
|
18334
18361
|
readonly readyPromise: Promise<Cesium.Model>;
|
|
18335
18362
|
/**
|
|
18336
|
-
*
|
|
18363
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
18364
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
18337
18365
|
* @param value - 透明度
|
|
18338
18366
|
* @returns 无
|
|
18339
18367
|
*/
|
|
@@ -20789,7 +20817,8 @@ declare class CzmGeoJsonLayer extends BaseGraphicLayer {
|
|
|
20789
20817
|
*/
|
|
20790
20818
|
lblAddFun(position: Cesium.Cartesian3 | Cesium.SampledPositionProperty | any, labelattr: any, attr: any): Cesium.Label;
|
|
20791
20819
|
/**
|
|
20792
|
-
*
|
|
20820
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
20821
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
20793
20822
|
* @param value - 透明度
|
|
20794
20823
|
* @returns 无
|
|
20795
20824
|
*/
|
|
@@ -22487,7 +22516,8 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
22487
22516
|
*/
|
|
22488
22517
|
getClusterList(): any[];
|
|
22489
22518
|
/**
|
|
22490
|
-
*
|
|
22519
|
+
* 设置整体透明度(globalAlpha值) , 非全部矢量数据都支持,具体需要对应Graphic支持才有效
|
|
22520
|
+
* 对象本身透明度请修改 graphic.setStyle({ opacity: value })
|
|
22491
22521
|
* @param value - 透明度
|
|
22492
22522
|
* @returns 无
|
|
22493
22523
|
*/
|
|
@@ -31769,7 +31799,8 @@ declare class CamberRadar extends BasePointPrimitive {
|
|
|
31769
31799
|
*/
|
|
31770
31800
|
color: Cesium.Color;
|
|
31771
31801
|
/**
|
|
31772
|
-
*
|
|
31802
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
31803
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
31773
31804
|
* @param value - 透明度
|
|
31774
31805
|
* @returns 无
|
|
31775
31806
|
*/
|
|
@@ -31929,7 +31960,8 @@ declare class ConicSensor extends BasePointPrimitive {
|
|
|
31929
31960
|
*/
|
|
31930
31961
|
readonly intersectEllipsoid: boolean;
|
|
31931
31962
|
/**
|
|
31932
|
-
*
|
|
31963
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
31964
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
31933
31965
|
* @param value - 透明度
|
|
31934
31966
|
* @returns 无
|
|
31935
31967
|
*/
|
|
@@ -32299,7 +32331,8 @@ declare class RectSensor extends BasePointPrimitive {
|
|
|
32299
32331
|
*/
|
|
32300
32332
|
readonly intersectEllipsoid: boolean;
|
|
32301
32333
|
/**
|
|
32302
|
-
*
|
|
32334
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
32335
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
32303
32336
|
* @param value - 透明度
|
|
32304
32337
|
* @returns 无
|
|
32305
32338
|
*/
|
|
@@ -32475,7 +32508,7 @@ declare namespace SatelliteSensor {
|
|
|
32475
32508
|
* @property [angle1 = 5] - 圆锥的角度或者四棱锥的第一个角度,半场角度,取值范围 0.1-89.9
|
|
32476
32509
|
* @property [angle2 = 5] - 四棱锥的第二个角度,半场角度,取值范围 0.1-89.9
|
|
32477
32510
|
* @property [angle = 5] - 夹角1和夹角2相同时,可以传入angle一个属性
|
|
32478
|
-
* @property [length] -
|
|
32511
|
+
* @property [length] - 默认按与地球相交的距离展示,传值时按传入值的半径长度显示(米)
|
|
32479
32512
|
* @property [heading = 0] - 方向角 (角度值 0-360)
|
|
32480
32513
|
* @property [pitch = 0] - 俯仰角(角度值 0-360)
|
|
32481
32514
|
* @property [roll = 0] - 翻滚角(角度值 0-360)
|
|
@@ -32607,7 +32640,8 @@ declare class SatelliteSensor extends BasePointPrimitive {
|
|
|
32607
32640
|
*/
|
|
32608
32641
|
readonly intersectEllipsoid: number;
|
|
32609
32642
|
/**
|
|
32610
|
-
*
|
|
32643
|
+
* 设置整体透明度(globalAlpha值), 不是所有类型均支持,主要看数据类型和材质类型决定。
|
|
32644
|
+
* 对象本身透明度请用 graphic.setStyle({ opacity: value })
|
|
32611
32645
|
* @param value - 透明度
|
|
32612
32646
|
* @returns 无
|
|
32613
32647
|
*/
|
|
@@ -37429,7 +37463,7 @@ declare namespace PointTrans {
|
|
|
37429
37463
|
* @param [toProjParams = 'EPSG:4326'] - 转为返回的结果坐标系
|
|
37430
37464
|
* @returns 返回结果坐标系的对应坐标数组,示例:[[115.866936, 35.062583],[115.866923, 35.062565]]
|
|
37431
37465
|
*/
|
|
37432
|
-
function proj4TransArr(coords: number[], fromProjParams: string, toProjParams?: string): number[];
|
|
37466
|
+
function proj4TransArr(coords: number[], fromProjParams: string | CRS, toProjParams?: string | CRS): number[];
|
|
37433
37467
|
/**
|
|
37434
37468
|
* Cesium笛卡尔空间坐标 转 经纬度坐标 ,等价于 LngLatPoint.toArray
|
|
37435
37469
|
* 常用于转换geojson
|