mars3d 3.7.0 → 3.7.1
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 +7 -4
- package/dist/mars3d.d.ts +52 -11
- package/dist/mars3d.js +4 -4
- package/package.json +1 -1
package/dist/mars3d.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mars3D三维可视化平台 mars3d
|
|
3
3
|
*
|
|
4
|
-
* 版本信息:v3.7.
|
|
5
|
-
* 编译日期:2024-01-
|
|
4
|
+
* 版本信息:v3.7.1
|
|
5
|
+
* 编译日期:2024-01-23 21:36:32
|
|
6
6
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
7
|
-
* 使用单位:免费公开版 ,
|
|
7
|
+
* 使用单位:免费公开版 ,2024-01-15
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**地球容器div*/
|
|
@@ -847,7 +847,7 @@
|
|
|
847
847
|
.mars3d-popup-tip-container {
|
|
848
848
|
margin: 0 auto;
|
|
849
849
|
width: 40px;
|
|
850
|
-
height:
|
|
850
|
+
height: 17px;
|
|
851
851
|
position: relative;
|
|
852
852
|
overflow: hidden;
|
|
853
853
|
}
|
|
@@ -1016,3 +1016,6 @@
|
|
|
1016
1016
|
margin-left: -6px;
|
|
1017
1017
|
border-right-color: rgba(63, 72, 84, 0.9);
|
|
1018
1018
|
}
|
|
1019
|
+
.mars3d-divlayer-camera {
|
|
1020
|
+
backface-visibility: hidden;
|
|
1021
|
+
}
|
package/dist/mars3d.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.7.
|
|
6
|
-
* 编译日期:2024-01-
|
|
5
|
+
* 版本信息:v3.7.1
|
|
6
|
+
* 编译日期:2024-01-23 21:36:32
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
|
-
* 使用单位:免费公开版 ,
|
|
8
|
+
* 使用单位:免费公开版 ,2024-01-15
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import * as Cesium from "mars3d-cesium"
|
|
@@ -17562,6 +17562,28 @@ declare class ModelPrimitive extends BasePointPrimitive {
|
|
|
17562
17562
|
* @returns 无
|
|
17563
17563
|
*/
|
|
17564
17564
|
setOpacity(value: number): void;
|
|
17565
|
+
/**
|
|
17566
|
+
* 高亮闪烁
|
|
17567
|
+
* @param options - 参数
|
|
17568
|
+
* @param [options.time] - 闪烁的总时长(秒),未设置时不自动停止。
|
|
17569
|
+
* @param [options.step = 10] - 闪烁增量, 控制速度
|
|
17570
|
+
* @param [options.color] - 高亮的颜色
|
|
17571
|
+
* @param [options.maxAlpha = 0.3] - 闪烁的最大透明度,从 0 到 maxAlpha 渐变
|
|
17572
|
+
* @param [options.onEnd] - 播放完成后的回调方法
|
|
17573
|
+
* @returns 高亮闪烁控制 对象
|
|
17574
|
+
*/
|
|
17575
|
+
startFlicker(options: {
|
|
17576
|
+
time?: number;
|
|
17577
|
+
step?: number;
|
|
17578
|
+
color?: Cesium.Color | string;
|
|
17579
|
+
maxAlpha?: number;
|
|
17580
|
+
onEnd?: (...params: any[]) => any;
|
|
17581
|
+
}): FlickerEntity;
|
|
17582
|
+
/**
|
|
17583
|
+
* 停止高亮闪烁
|
|
17584
|
+
* @returns 无
|
|
17585
|
+
*/
|
|
17586
|
+
stopFlicker(): void;
|
|
17565
17587
|
}
|
|
17566
17588
|
|
|
17567
17589
|
declare namespace Pit {
|
|
@@ -21856,6 +21878,10 @@ declare class GraticuleLayer extends BaseLayer {
|
|
|
21856
21878
|
flyTo?: boolean;
|
|
21857
21879
|
flyToOptions?: any;
|
|
21858
21880
|
});
|
|
21881
|
+
/**
|
|
21882
|
+
* 网格数步长(度数)数组
|
|
21883
|
+
*/
|
|
21884
|
+
steps: number[];
|
|
21859
21885
|
/**
|
|
21860
21886
|
* 对象添加到地图前创建一些对象的钩子方法,
|
|
21861
21887
|
* 只会调用一次
|
|
@@ -23452,6 +23478,7 @@ declare class TerrainLayer extends BaseLayer {
|
|
|
23452
23478
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
23453
23479
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
23454
23480
|
* @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
23481
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数设置,不支持EPSG:3857坐标系。
|
|
23455
23482
|
* @param [options.id = createGuid()] - 图层id标识
|
|
23456
23483
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
23457
23484
|
* @param [options.name = ''] - 图层名称
|
|
@@ -23511,6 +23538,7 @@ declare class ArcGisCacheLayer extends BaseTileLayer {
|
|
|
23511
23538
|
tileWidth?: number;
|
|
23512
23539
|
tileHeight?: number;
|
|
23513
23540
|
customTags?: any;
|
|
23541
|
+
clampToTileset?: boolean;
|
|
23514
23542
|
id?: string | number;
|
|
23515
23543
|
pid?: string | number;
|
|
23516
23544
|
name?: string;
|
|
@@ -23546,14 +23574,14 @@ declare namespace ArcGisLayer {
|
|
|
23546
23574
|
* ArcGIS服务图层支持的{@link EventType}事件类型
|
|
23547
23575
|
* @example
|
|
23548
23576
|
* //绑定监听事件
|
|
23549
|
-
* layer.on(mars3d.EventType.
|
|
23550
|
-
* console.log('
|
|
23577
|
+
* layer.on(mars3d.EventType.load, function (event) {
|
|
23578
|
+
* console.log('load', event)
|
|
23551
23579
|
* })
|
|
23552
|
-
* @property
|
|
23580
|
+
* @property load - 加载完成事件
|
|
23553
23581
|
* @property click - 鼠标单击事件【enablePickFeatures:true时,支持单击获取对应的矢量对象】
|
|
23554
23582
|
*/
|
|
23555
23583
|
type EventType = {
|
|
23556
|
-
|
|
23584
|
+
load: string;
|
|
23557
23585
|
click: string;
|
|
23558
23586
|
};
|
|
23559
23587
|
}
|
|
@@ -23617,6 +23645,7 @@ declare namespace ArcGisLayer {
|
|
|
23617
23645
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
23618
23646
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
23619
23647
|
* @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
23648
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数设置,不支持EPSG:3857坐标系。
|
|
23620
23649
|
* @param [options.id = createGuid()] - 图层id标识
|
|
23621
23650
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
23622
23651
|
* @param [options.name = ''] - 图层名称
|
|
@@ -23693,6 +23722,7 @@ declare class ArcGisLayer extends BaseTileLayer {
|
|
|
23693
23722
|
tileWidth?: number;
|
|
23694
23723
|
tileHeight?: number;
|
|
23695
23724
|
customTags?: any;
|
|
23725
|
+
clampToTileset?: boolean;
|
|
23696
23726
|
id?: string | number;
|
|
23697
23727
|
pid?: string | number;
|
|
23698
23728
|
name?: string;
|
|
@@ -23803,6 +23833,7 @@ declare class ArcGisLayer extends BaseTileLayer {
|
|
|
23803
23833
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
23804
23834
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
23805
23835
|
* @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
23836
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数设置,不支持EPSG:3857坐标系。
|
|
23806
23837
|
* @param [options.id = createGuid()] - 图层id标识
|
|
23807
23838
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
23808
23839
|
* @param [options.name = ''] - 图层名称
|
|
@@ -23861,6 +23892,7 @@ declare class ArcGisTileLayer extends BaseTileLayer {
|
|
|
23861
23892
|
tileWidth?: number;
|
|
23862
23893
|
tileHeight?: number;
|
|
23863
23894
|
customTags?: any;
|
|
23895
|
+
clampToTileset?: boolean;
|
|
23864
23896
|
id?: string | number;
|
|
23865
23897
|
pid?: string | number;
|
|
23866
23898
|
name?: string;
|
|
@@ -24115,6 +24147,7 @@ declare namespace BaseTileLayer {
|
|
|
24115
24147
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
24116
24148
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
24117
24149
|
* @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
24150
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数设置,不支持EPSG:3857坐标系。
|
|
24118
24151
|
* @param [options.id = createGuid()] - 图层id标识
|
|
24119
24152
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
24120
24153
|
* @param [options.name = ''] - 图层名称
|
|
@@ -24175,6 +24208,7 @@ declare class BaseTileLayer extends BaseLayer {
|
|
|
24175
24208
|
tileWidth?: number;
|
|
24176
24209
|
tileHeight?: number;
|
|
24177
24210
|
customTags?: any;
|
|
24211
|
+
clampToTileset?: boolean;
|
|
24178
24212
|
id?: string | number;
|
|
24179
24213
|
pid?: string | number;
|
|
24180
24214
|
name?: string;
|
|
@@ -26231,6 +26265,7 @@ declare class TmsLayer extends BaseTileLayer {
|
|
|
26231
26265
|
* @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对
|
|
26232
26266
|
* @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'},
|
|
26233
26267
|
* @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' },
|
|
26268
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数设置,不支持EPSG:3857坐标系。
|
|
26234
26269
|
* @param [options.id = createGuid()] - 图层id标识
|
|
26235
26270
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
26236
26271
|
* @param [options.name = ''] - 图层名称
|
|
@@ -26314,6 +26349,7 @@ declare class WmsLayer extends BaseTileLayer {
|
|
|
26314
26349
|
templateValues?: any;
|
|
26315
26350
|
queryParameters?: any;
|
|
26316
26351
|
headers?: any;
|
|
26352
|
+
clampToTileset?: boolean;
|
|
26317
26353
|
id?: string | number;
|
|
26318
26354
|
pid?: string | number;
|
|
26319
26355
|
name?: string;
|
|
@@ -26420,6 +26456,7 @@ declare class WmsLayer extends BaseTileLayer {
|
|
|
26420
26456
|
* @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。
|
|
26421
26457
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
26422
26458
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
26459
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数设置,不支持EPSG:3857坐标系。
|
|
26423
26460
|
* @param [options.id = createGuid()] - 图层id标识
|
|
26424
26461
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
26425
26462
|
* @param [options.name = ''] - 图层名称
|
|
@@ -26490,6 +26527,7 @@ declare class WmtsLayer extends BaseTileLayer {
|
|
|
26490
26527
|
hasAlphaChannel?: boolean;
|
|
26491
26528
|
tileWidth?: number;
|
|
26492
26529
|
tileHeight?: number;
|
|
26530
|
+
clampToTileset?: boolean;
|
|
26493
26531
|
id?: string | number;
|
|
26494
26532
|
pid?: string | number;
|
|
26495
26533
|
name?: string;
|
|
@@ -26611,6 +26649,7 @@ declare class WmtsLayer extends BaseTileLayer {
|
|
|
26611
26649
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
26612
26650
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
26613
26651
|
* @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
26652
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数,不支持EPSG:3857坐标系。
|
|
26614
26653
|
* @param [options.id = createGuid()] - 图层id标识
|
|
26615
26654
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
26616
26655
|
* @param [options.name = ''] - 图层名称
|
|
@@ -26672,6 +26711,7 @@ declare class XyzLayer extends BaseTileLayer {
|
|
|
26672
26711
|
tileWidth?: number;
|
|
26673
26712
|
tileHeight?: number;
|
|
26674
26713
|
customTags?: any;
|
|
26714
|
+
clampToTileset?: boolean;
|
|
26675
26715
|
id?: string | number;
|
|
26676
26716
|
pid?: string | number;
|
|
26677
26717
|
name?: string;
|
|
@@ -26735,8 +26775,8 @@ declare class ContextMenu extends BaseControl {
|
|
|
26735
26775
|
* @param [options.moveStep = 10] - 平移步长 (米)
|
|
26736
26776
|
* @param [options.dirStep = 25] - 相机原地旋转步长,值越大步长越小。
|
|
26737
26777
|
* @param [options.rotateStep = 1.0] - 相机围绕目标点旋转速率,0.3 - 2.0
|
|
26738
|
-
* @param [options.minPitch =
|
|
26739
|
-
* @param [options.maxPitch =
|
|
26778
|
+
* @param [options.minPitch = -89] - 最小仰角(单位:度)
|
|
26779
|
+
* @param [options.maxPitch = 45] - 最大仰角(单位:度)
|
|
26740
26780
|
* @param [options.minHeight = 0] - 最低高度(单位:米)
|
|
26741
26781
|
* @param [options.id = createGuid()] - 对象的id标识
|
|
26742
26782
|
* @param [options.enabled = true] - 对象的启用状态
|
|
@@ -26773,7 +26813,7 @@ declare class KeyboardRoam extends BaseControl {
|
|
|
26773
26813
|
*/
|
|
26774
26814
|
rotateStep: number;
|
|
26775
26815
|
/**
|
|
26776
|
-
* 最小仰角
|
|
26816
|
+
* 最小仰角
|
|
26777
26817
|
*/
|
|
26778
26818
|
minPitch: number;
|
|
26779
26819
|
/**
|
|
@@ -26891,9 +26931,10 @@ declare class MouseEvent {
|
|
|
26891
26931
|
/**
|
|
26892
26932
|
* 瓦片图层上的矢量对象,动态获取
|
|
26893
26933
|
* @param position - 坐标
|
|
26934
|
+
* @param [clampToTileset] - 是否为贴模型的瓦片图层
|
|
26894
26935
|
* @returns 完成时承诺
|
|
26895
26936
|
*/
|
|
26896
|
-
pickImageryLayerFeatures(position: LngLatPoint | Cesium.Cartesian3 | any): Promise<any>;
|
|
26937
|
+
pickImageryLayerFeatures(position: LngLatPoint | Cesium.Cartesian3 | any, clampToTileset?: boolean): Promise<any>;
|
|
26897
26938
|
}
|
|
26898
26939
|
|
|
26899
26940
|
/**
|