mars3d 3.7.0 → 3.7.2
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 +80 -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.2
|
|
5
|
+
* 编译日期:2024-01-29 17:16:43
|
|
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.2
|
|
6
|
+
* 编译日期:2024-01-29 17:16:43
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
|
-
* 使用单位:免费公开版 ,
|
|
8
|
+
* 使用单位:免费公开版 ,2024-01-15
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import * as Cesium from "mars3d-cesium"
|
|
@@ -7812,6 +7812,20 @@ declare class DivGraphic extends BaseGraphic {
|
|
|
7812
7812
|
getRectangle(options?: {
|
|
7813
7813
|
isFormat?: boolean;
|
|
7814
7814
|
}): Cesium.Rectangle | any;
|
|
7815
|
+
/**
|
|
7816
|
+
* 添加指定的className的calss样式
|
|
7817
|
+
* @param className - class样式名称
|
|
7818
|
+
* @param [isParent] - 多个子节点时,是否在根节点添加
|
|
7819
|
+
* @returns 无
|
|
7820
|
+
*/
|
|
7821
|
+
addClass(className: string, isParent?: boolean): void;
|
|
7822
|
+
/**
|
|
7823
|
+
* 移除指定的className的calss样式
|
|
7824
|
+
* @param className - class样式名称
|
|
7825
|
+
* @param [isParent] - 多个子节点时,是否在根节点移除
|
|
7826
|
+
* @returns 无
|
|
7827
|
+
*/
|
|
7828
|
+
removeClass(className: string, isParent?: boolean): void;
|
|
7815
7829
|
/**
|
|
7816
7830
|
* 开始绘制创建矢量数据,绘制的数据会加载在layer图层。
|
|
7817
7831
|
* @param layer - 图层
|
|
@@ -15415,6 +15429,10 @@ declare class BasePrimitive extends BaseGraphic {
|
|
|
15415
15429
|
* 当加载primitive数据的内部Cesium容器
|
|
15416
15430
|
*/
|
|
15417
15431
|
readonly primitiveCollection: Cesium.PrimitiveCollection | Cesium.LabelCollection | Cesium.BillboardCollection | Cesium.PointPrimitiveCollection | Cesium.CloudCollection;
|
|
15432
|
+
/**
|
|
15433
|
+
* 当加载贴地primitive数据的内部Cesium容器
|
|
15434
|
+
*/
|
|
15435
|
+
readonly groundPrimitiveCollection: Cesium.PrimitiveCollection;
|
|
15418
15436
|
/**
|
|
15419
15437
|
* 矢量数据对应的 Cesium内部对象
|
|
15420
15438
|
*/
|
|
@@ -17562,6 +17580,28 @@ declare class ModelPrimitive extends BasePointPrimitive {
|
|
|
17562
17580
|
* @returns 无
|
|
17563
17581
|
*/
|
|
17564
17582
|
setOpacity(value: number): void;
|
|
17583
|
+
/**
|
|
17584
|
+
* 高亮闪烁
|
|
17585
|
+
* @param options - 参数
|
|
17586
|
+
* @param [options.time] - 闪烁的总时长(秒),未设置时不自动停止。
|
|
17587
|
+
* @param [options.step = 10] - 闪烁增量, 控制速度
|
|
17588
|
+
* @param [options.color] - 高亮的颜色
|
|
17589
|
+
* @param [options.maxAlpha = 0.3] - 闪烁的最大透明度,从 0 到 maxAlpha 渐变
|
|
17590
|
+
* @param [options.onEnd] - 播放完成后的回调方法
|
|
17591
|
+
* @returns 高亮闪烁控制 对象
|
|
17592
|
+
*/
|
|
17593
|
+
startFlicker(options: {
|
|
17594
|
+
time?: number;
|
|
17595
|
+
step?: number;
|
|
17596
|
+
color?: Cesium.Color | string;
|
|
17597
|
+
maxAlpha?: number;
|
|
17598
|
+
onEnd?: (...params: any[]) => any;
|
|
17599
|
+
}): FlickerEntity;
|
|
17600
|
+
/**
|
|
17601
|
+
* 停止高亮闪烁
|
|
17602
|
+
* @returns 无
|
|
17603
|
+
*/
|
|
17604
|
+
stopFlicker(): void;
|
|
17565
17605
|
}
|
|
17566
17606
|
|
|
17567
17607
|
declare namespace Pit {
|
|
@@ -21496,6 +21536,10 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
21496
21536
|
* 当加载普通 primitive类型数据的内部Cesium容器 {@link BasePrimitive}
|
|
21497
21537
|
*/
|
|
21498
21538
|
primitiveCollection: Cesium.PrimitiveCollection;
|
|
21539
|
+
/**
|
|
21540
|
+
* 当加载普通 贴地的 primitive类型数据的内部Cesium容器 {@link BasePrimitive}
|
|
21541
|
+
*/
|
|
21542
|
+
groundPrimitiveCollection: Cesium.PrimitiveCollection;
|
|
21499
21543
|
/**
|
|
21500
21544
|
* 当加载 DivGraphic 数据的内部DOM容器 {@link DivGraphic}
|
|
21501
21545
|
*/
|
|
@@ -21856,6 +21900,10 @@ declare class GraticuleLayer extends BaseLayer {
|
|
|
21856
21900
|
flyTo?: boolean;
|
|
21857
21901
|
flyToOptions?: any;
|
|
21858
21902
|
});
|
|
21903
|
+
/**
|
|
21904
|
+
* 网格数步长(度数)数组
|
|
21905
|
+
*/
|
|
21906
|
+
steps: number[];
|
|
21859
21907
|
/**
|
|
21860
21908
|
* 对象添加到地图前创建一些对象的钩子方法,
|
|
21861
21909
|
* 只会调用一次
|
|
@@ -23452,6 +23500,7 @@ declare class TerrainLayer extends BaseLayer {
|
|
|
23452
23500
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
23453
23501
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
23454
23502
|
* @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
23503
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数设置,不支持EPSG:3857坐标系。
|
|
23455
23504
|
* @param [options.id = createGuid()] - 图层id标识
|
|
23456
23505
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
23457
23506
|
* @param [options.name = ''] - 图层名称
|
|
@@ -23511,6 +23560,7 @@ declare class ArcGisCacheLayer extends BaseTileLayer {
|
|
|
23511
23560
|
tileWidth?: number;
|
|
23512
23561
|
tileHeight?: number;
|
|
23513
23562
|
customTags?: any;
|
|
23563
|
+
clampToTileset?: boolean;
|
|
23514
23564
|
id?: string | number;
|
|
23515
23565
|
pid?: string | number;
|
|
23516
23566
|
name?: string;
|
|
@@ -23546,14 +23596,14 @@ declare namespace ArcGisLayer {
|
|
|
23546
23596
|
* ArcGIS服务图层支持的{@link EventType}事件类型
|
|
23547
23597
|
* @example
|
|
23548
23598
|
* //绑定监听事件
|
|
23549
|
-
* layer.on(mars3d.EventType.
|
|
23550
|
-
* console.log('
|
|
23599
|
+
* layer.on(mars3d.EventType.load, function (event) {
|
|
23600
|
+
* console.log('load', event)
|
|
23551
23601
|
* })
|
|
23552
|
-
* @property
|
|
23602
|
+
* @property load - 加载完成事件
|
|
23553
23603
|
* @property click - 鼠标单击事件【enablePickFeatures:true时,支持单击获取对应的矢量对象】
|
|
23554
23604
|
*/
|
|
23555
23605
|
type EventType = {
|
|
23556
|
-
|
|
23606
|
+
load: string;
|
|
23557
23607
|
click: string;
|
|
23558
23608
|
};
|
|
23559
23609
|
}
|
|
@@ -23617,6 +23667,7 @@ declare namespace ArcGisLayer {
|
|
|
23617
23667
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
23618
23668
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
23619
23669
|
* @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
23670
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数设置,不支持EPSG:3857坐标系。
|
|
23620
23671
|
* @param [options.id = createGuid()] - 图层id标识
|
|
23621
23672
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
23622
23673
|
* @param [options.name = ''] - 图层名称
|
|
@@ -23693,6 +23744,7 @@ declare class ArcGisLayer extends BaseTileLayer {
|
|
|
23693
23744
|
tileWidth?: number;
|
|
23694
23745
|
tileHeight?: number;
|
|
23695
23746
|
customTags?: any;
|
|
23747
|
+
clampToTileset?: boolean;
|
|
23696
23748
|
id?: string | number;
|
|
23697
23749
|
pid?: string | number;
|
|
23698
23750
|
name?: string;
|
|
@@ -23803,6 +23855,7 @@ declare class ArcGisLayer extends BaseTileLayer {
|
|
|
23803
23855
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
23804
23856
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
23805
23857
|
* @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
23858
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数设置,不支持EPSG:3857坐标系。
|
|
23806
23859
|
* @param [options.id = createGuid()] - 图层id标识
|
|
23807
23860
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
23808
23861
|
* @param [options.name = ''] - 图层名称
|
|
@@ -23861,6 +23914,7 @@ declare class ArcGisTileLayer extends BaseTileLayer {
|
|
|
23861
23914
|
tileWidth?: number;
|
|
23862
23915
|
tileHeight?: number;
|
|
23863
23916
|
customTags?: any;
|
|
23917
|
+
clampToTileset?: boolean;
|
|
23864
23918
|
id?: string | number;
|
|
23865
23919
|
pid?: string | number;
|
|
23866
23920
|
name?: string;
|
|
@@ -24115,6 +24169,7 @@ declare namespace BaseTileLayer {
|
|
|
24115
24169
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
24116
24170
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
24117
24171
|
* @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
24172
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数设置,不支持EPSG:3857坐标系。
|
|
24118
24173
|
* @param [options.id = createGuid()] - 图层id标识
|
|
24119
24174
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
24120
24175
|
* @param [options.name = ''] - 图层名称
|
|
@@ -24175,6 +24230,7 @@ declare class BaseTileLayer extends BaseLayer {
|
|
|
24175
24230
|
tileWidth?: number;
|
|
24176
24231
|
tileHeight?: number;
|
|
24177
24232
|
customTags?: any;
|
|
24233
|
+
clampToTileset?: boolean;
|
|
24178
24234
|
id?: string | number;
|
|
24179
24235
|
pid?: string | number;
|
|
24180
24236
|
name?: string;
|
|
@@ -26231,6 +26287,7 @@ declare class TmsLayer extends BaseTileLayer {
|
|
|
26231
26287
|
* @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对
|
|
26232
26288
|
* @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'},
|
|
26233
26289
|
* @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' },
|
|
26290
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数设置,不支持EPSG:3857坐标系。
|
|
26234
26291
|
* @param [options.id = createGuid()] - 图层id标识
|
|
26235
26292
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
26236
26293
|
* @param [options.name = ''] - 图层名称
|
|
@@ -26314,6 +26371,7 @@ declare class WmsLayer extends BaseTileLayer {
|
|
|
26314
26371
|
templateValues?: any;
|
|
26315
26372
|
queryParameters?: any;
|
|
26316
26373
|
headers?: any;
|
|
26374
|
+
clampToTileset?: boolean;
|
|
26317
26375
|
id?: string | number;
|
|
26318
26376
|
pid?: string | number;
|
|
26319
26377
|
name?: string;
|
|
@@ -26420,6 +26478,7 @@ declare class WmsLayer extends BaseTileLayer {
|
|
|
26420
26478
|
* @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。
|
|
26421
26479
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
26422
26480
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
26481
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数设置,不支持EPSG:3857坐标系。
|
|
26423
26482
|
* @param [options.id = createGuid()] - 图层id标识
|
|
26424
26483
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
26425
26484
|
* @param [options.name = ''] - 图层名称
|
|
@@ -26490,6 +26549,7 @@ declare class WmtsLayer extends BaseTileLayer {
|
|
|
26490
26549
|
hasAlphaChannel?: boolean;
|
|
26491
26550
|
tileWidth?: number;
|
|
26492
26551
|
tileHeight?: number;
|
|
26552
|
+
clampToTileset?: boolean;
|
|
26493
26553
|
id?: string | number;
|
|
26494
26554
|
pid?: string | number;
|
|
26495
26555
|
name?: string;
|
|
@@ -26611,6 +26671,7 @@ declare class WmtsLayer extends BaseTileLayer {
|
|
|
26611
26671
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
26612
26672
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
26613
26673
|
* @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
26674
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数,不支持EPSG:3857坐标系。
|
|
26614
26675
|
* @param [options.id = createGuid()] - 图层id标识
|
|
26615
26676
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
26616
26677
|
* @param [options.name = ''] - 图层名称
|
|
@@ -26672,6 +26733,7 @@ declare class XyzLayer extends BaseTileLayer {
|
|
|
26672
26733
|
tileWidth?: number;
|
|
26673
26734
|
tileHeight?: number;
|
|
26674
26735
|
customTags?: any;
|
|
26736
|
+
clampToTileset?: boolean;
|
|
26675
26737
|
id?: string | number;
|
|
26676
26738
|
pid?: string | number;
|
|
26677
26739
|
name?: string;
|
|
@@ -26735,8 +26797,8 @@ declare class ContextMenu extends BaseControl {
|
|
|
26735
26797
|
* @param [options.moveStep = 10] - 平移步长 (米)
|
|
26736
26798
|
* @param [options.dirStep = 25] - 相机原地旋转步长,值越大步长越小。
|
|
26737
26799
|
* @param [options.rotateStep = 1.0] - 相机围绕目标点旋转速率,0.3 - 2.0
|
|
26738
|
-
* @param [options.minPitch =
|
|
26739
|
-
* @param [options.maxPitch =
|
|
26800
|
+
* @param [options.minPitch = -89] - 最小仰角(单位:度)
|
|
26801
|
+
* @param [options.maxPitch = 45] - 最大仰角(单位:度)
|
|
26740
26802
|
* @param [options.minHeight = 0] - 最低高度(单位:米)
|
|
26741
26803
|
* @param [options.id = createGuid()] - 对象的id标识
|
|
26742
26804
|
* @param [options.enabled = true] - 对象的启用状态
|
|
@@ -26773,7 +26835,7 @@ declare class KeyboardRoam extends BaseControl {
|
|
|
26773
26835
|
*/
|
|
26774
26836
|
rotateStep: number;
|
|
26775
26837
|
/**
|
|
26776
|
-
* 最小仰角
|
|
26838
|
+
* 最小仰角
|
|
26777
26839
|
*/
|
|
26778
26840
|
minPitch: number;
|
|
26779
26841
|
/**
|
|
@@ -26891,9 +26953,10 @@ declare class MouseEvent {
|
|
|
26891
26953
|
/**
|
|
26892
26954
|
* 瓦片图层上的矢量对象,动态获取
|
|
26893
26955
|
* @param position - 坐标
|
|
26956
|
+
* @param [clampToTileset] - 是否为贴模型的瓦片图层
|
|
26894
26957
|
* @returns 完成时承诺
|
|
26895
26958
|
*/
|
|
26896
|
-
pickImageryLayerFeatures(position: LngLatPoint | Cesium.Cartesian3 | any): Promise<any>;
|
|
26959
|
+
pickImageryLayerFeatures(position: LngLatPoint | Cesium.Cartesian3 | any, clampToTileset?: boolean): Promise<any>;
|
|
26897
26960
|
}
|
|
26898
26961
|
|
|
26899
26962
|
/**
|
|
@@ -36925,6 +36988,12 @@ declare namespace PolyUtil {
|
|
|
36925
36988
|
granularity?: number;
|
|
36926
36989
|
rotation?: number;
|
|
36927
36990
|
}): Cesium.Cartesian3[];
|
|
36991
|
+
/**
|
|
36992
|
+
* 获取地图视角四个顶点边界坐标点数组
|
|
36993
|
+
* @param scene - 三维地图场景对象,一般用map.scene或viewer.scene
|
|
36994
|
+
* @returns 边线上的坐标点数组
|
|
36995
|
+
*/
|
|
36996
|
+
function getMapExtentPositions(scene: Cesium.Scene): Cesium.Cartesian3[];
|
|
36928
36997
|
/**
|
|
36929
36998
|
* 格式化Rectangle矩形对象,返回经纬度值
|
|
36930
36999
|
* @param rectangle - 矩形对象
|