mars3d 3.8.0 → 3.8.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 +2 -2
- package/dist/mars3d.d.ts +91 -15
- 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.8.
|
|
6
|
-
* 编译日期:2024-
|
|
5
|
+
* 版本信息:v3.8.2
|
|
6
|
+
* 编译日期:2024-09-10 17:55:20
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2024-08-01
|
|
9
9
|
*/
|
|
@@ -1450,6 +1450,14 @@ declare namespace MaterialType {
|
|
|
1450
1450
|
* @property [dashPattern = 255.0] - 指定的16位模式
|
|
1451
1451
|
*/
|
|
1452
1452
|
const PolylineDash: string;
|
|
1453
|
+
/**
|
|
1454
|
+
* 线:箭头虚线(等长度虚线间隔)
|
|
1455
|
+
* @property [color = Cesium.Color.WHITE] - 颜色
|
|
1456
|
+
* @property [gapColor = Cesium.Color.TRANSPARENT] - 虚线间隔颜色,默认为透明
|
|
1457
|
+
* @property [dashLength = 16.0] - 虚线间隔长度,以像素为单位
|
|
1458
|
+
* @property [dashPattern = 255.0] - 指定的16位模式
|
|
1459
|
+
*/
|
|
1460
|
+
const LineDashArrow: string;
|
|
1453
1461
|
/**
|
|
1454
1462
|
* 线:点划线虚线
|
|
1455
1463
|
* @property [color = Cesium.Color.WHITE] - 颜色
|
|
@@ -1932,7 +1940,7 @@ declare namespace Token {
|
|
|
1932
1940
|
function updateTianditu(item: string | string[]): void;
|
|
1933
1941
|
/**
|
|
1934
1942
|
* 高德key数组,
|
|
1935
|
-
* 官网: {@link https://console.amap.com/dev/key/app}
|
|
1943
|
+
* 官网: {@link https://console.amap.com/dev/key/app} (服务平台类型:Web服务)
|
|
1936
1944
|
*/
|
|
1937
1945
|
const gaodeArr: string[];
|
|
1938
1946
|
/**
|
|
@@ -4101,11 +4109,13 @@ declare namespace OutlineEffect {
|
|
|
4101
4109
|
* 对象轮廓描边效果
|
|
4102
4110
|
* @param [options] - 参数对象
|
|
4103
4111
|
* @param [options.eventType = "click"] - 高亮触发的事件类型,默认为单击。可选值:单击、鼠标移入,false时不内部控制
|
|
4112
|
+
* @param [options.closeOnClick = true] - 是否在单击Map地图时,自动关闭当前弹窗
|
|
4104
4113
|
* @param [options.enabled = true] - 对象的启用状态
|
|
4105
4114
|
*/
|
|
4106
4115
|
declare class OutlineEffect extends BaseEffect {
|
|
4107
4116
|
constructor(options?: {
|
|
4108
4117
|
eventType?: EventType | boolean;
|
|
4118
|
+
closeOnClick?: boolean;
|
|
4109
4119
|
enabled?: boolean;
|
|
4110
4120
|
});
|
|
4111
4121
|
/**
|
|
@@ -12889,7 +12899,7 @@ declare class PolylineEntity extends BasePolyEntity {
|
|
|
12889
12899
|
callback?: (...params: any[]) => any;
|
|
12890
12900
|
}): void;
|
|
12891
12901
|
/**
|
|
12892
|
-
* 停止
|
|
12902
|
+
* 停止 流动生长(贪吃蛇)动画
|
|
12893
12903
|
* @returns 无
|
|
12894
12904
|
*/
|
|
12895
12905
|
stopSnakeAnimation(): void;
|
|
@@ -26358,11 +26368,11 @@ declare class ImageLayer extends BaseTileLayer {
|
|
|
26358
26368
|
/**
|
|
26359
26369
|
* Mapbox地图服务
|
|
26360
26370
|
* @param [options] - 参数对象,包括以下:
|
|
26361
|
-
* @param
|
|
26362
|
-
* @param [options.username = 'marsgis'] - 地图帐户的用户名。
|
|
26371
|
+
* @param options.username - 地图帐户的用户名。
|
|
26363
26372
|
* @param options.styleId - Mapbox样式ID。
|
|
26364
|
-
* @param
|
|
26365
|
-
* @param [options.
|
|
26373
|
+
* @param options.token - 图像的Token公共访问令牌。
|
|
26374
|
+
* @param [options.accessToken] - 同token,别名
|
|
26375
|
+
* @param [options.url = 'https://api.mapbox.com/styles/v1/'] - Mapbox服务器网址。
|
|
26366
26376
|
* @param [options.tilesize = 512] - 图像块的大小。
|
|
26367
26377
|
* @param [options.scaleFactor = true] - 确定贴图是否以 @2x 比例因子渲染。
|
|
26368
26378
|
* @param [options.minimumLevel = 0] - 服务支持的最小层级,如果服务数据中没有第0层,该参数必须配置,当地图缩放小于该级别时,平台会请求minimumLevel级数据合并展示。
|
|
@@ -26422,11 +26432,11 @@ declare class ImageLayer extends BaseTileLayer {
|
|
|
26422
26432
|
*/
|
|
26423
26433
|
declare class MapboxLayer extends BaseTileLayer {
|
|
26424
26434
|
constructor(options?: {
|
|
26425
|
-
|
|
26426
|
-
username?: string;
|
|
26435
|
+
username: string;
|
|
26427
26436
|
styleId: string;
|
|
26437
|
+
token: string;
|
|
26428
26438
|
accessToken?: string;
|
|
26429
|
-
|
|
26439
|
+
url?: Cesium.Resource | string;
|
|
26430
26440
|
tilesize?: number;
|
|
26431
26441
|
scaleFactor?: boolean;
|
|
26432
26442
|
minimumLevel?: number;
|
|
@@ -29046,7 +29056,7 @@ declare namespace Map {
|
|
|
29046
29056
|
* @property [requestRenderMode = false] - 是否显式渲染,如果为真,渲染帧只会在需要时发生,这是由场景中的变化决定的。启用可以减少你的应用程序的CPU/GPU使用量,并且在移动设备上使用更少的电池,但是需要使用 {@link Scene#requestRender} 在这种模式下显式地渲染一个新帧。在许多情况下,在API的其他部分更改场景后,这是必要的。参见 {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
|
|
29047
29057
|
* @property [maximumRenderTimeChange = 0.0] - 如果requestRenderMode为true,这个值定义了在请求渲染之前允许的模拟时间的最大变化。参见 {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
|
|
29048
29058
|
* @property [depthPlaneEllipsoidOffset = 0.0] - 调整DepthPlane以处理椭球体零标高以下的渲染伪影。
|
|
29049
|
-
* @property [msaaSamples =
|
|
29059
|
+
* @property [msaaSamples = 4] - 如果提供,该值控制多样本抗混叠的速率。典型的多采样率是每像素2、4,有时是8个采样。更高的MSAA采样率可能会影响性能,以换取更好的视觉质量。这个值只适用于支持多样本渲染目标的WebGL2上下文。
|
|
29050
29060
|
*
|
|
29051
29061
|
* 以下是Cesium.Globe对象相关参数
|
|
29052
29062
|
* @property [globe] - globe地球相关参数
|
|
@@ -30103,6 +30113,58 @@ declare class LineCrossMaterialProperty extends BaseMaterialProperty {
|
|
|
30103
30113
|
equals(other?: Cesium.Property): boolean;
|
|
30104
30114
|
}
|
|
30105
30115
|
|
|
30116
|
+
/**
|
|
30117
|
+
* 箭头虚线(等长度虚线间隔) 材质
|
|
30118
|
+
* @param [options] - 参数对象,包括以下:
|
|
30119
|
+
* @param [options.color = Cesium.Color.WHITE] - 颜色
|
|
30120
|
+
* @param [options.gapColor = Cesium.Color.TRANSPARENT] - 虚线间隔颜色,默认为透明
|
|
30121
|
+
* @param [options.dashLength = 16.0] - 虚线间隔长度,以像素为单位
|
|
30122
|
+
* @param [options.dashPattern = 255.0] - 指定的16位模式
|
|
30123
|
+
*/
|
|
30124
|
+
declare class LineDashArrowMaterialProperty extends BaseMaterialProperty {
|
|
30125
|
+
constructor(options?: {
|
|
30126
|
+
color?: Cesium.Color;
|
|
30127
|
+
gapColor?: Cesium.Color;
|
|
30128
|
+
dashLength?: number;
|
|
30129
|
+
dashPattern?: number;
|
|
30130
|
+
});
|
|
30131
|
+
/**
|
|
30132
|
+
* 颜色
|
|
30133
|
+
*/
|
|
30134
|
+
color: Cesium.Color;
|
|
30135
|
+
/**
|
|
30136
|
+
* 虚线间隔颜色,默认为透明
|
|
30137
|
+
*/
|
|
30138
|
+
gapColor: Cesium.Color;
|
|
30139
|
+
/**
|
|
30140
|
+
* 虚线间隔长度,以像素为单位
|
|
30141
|
+
*/
|
|
30142
|
+
dashLength: number;
|
|
30143
|
+
/**
|
|
30144
|
+
* 指定的16位模式
|
|
30145
|
+
*/
|
|
30146
|
+
dashPattern: number;
|
|
30147
|
+
/**
|
|
30148
|
+
* 获取 材质名称
|
|
30149
|
+
* @param [time] - 检索值的时间。
|
|
30150
|
+
* @returns 材质名称
|
|
30151
|
+
*/
|
|
30152
|
+
getType(time?: Cesium.JulianDate): string;
|
|
30153
|
+
/**
|
|
30154
|
+
* 获取所提供时间的属性值。
|
|
30155
|
+
* @param [time] - 检索值的时间。
|
|
30156
|
+
* @param [result] - 用于存储值的对象,如果省略,则创建并返回一个新的实例。
|
|
30157
|
+
* @returns 修改的result参数或一个新的实例(如果没有提供result参数)。
|
|
30158
|
+
*/
|
|
30159
|
+
getValue(time?: Cesium.JulianDate, result?: any): any;
|
|
30160
|
+
/**
|
|
30161
|
+
* 将此属性与提供的属性进行比较并返回, 如果两者相等返回true,否则为false
|
|
30162
|
+
* @param [other] - 比较的对象
|
|
30163
|
+
* @returns 两者是同一个对象
|
|
30164
|
+
*/
|
|
30165
|
+
equals(other?: Cesium.Property): boolean;
|
|
30166
|
+
}
|
|
30167
|
+
|
|
30106
30168
|
/**
|
|
30107
30169
|
* 线状: 泛光线 材质
|
|
30108
30170
|
* @param [options] - 参数对象,包括以下:
|
|
@@ -32107,6 +32169,8 @@ declare namespace ConicSensor {
|
|
|
32107
32169
|
* @property [roll = 0] - 翻滚角(角度值 0-360)
|
|
32108
32170
|
* @property [color = Cesium.Color.YELLOW] - 颜色
|
|
32109
32171
|
* @property [opacity = 1.0] - 透明度, 取值范围:0.0-1.0
|
|
32172
|
+
* @property [slices = 36] - 周围的边数,数值调小可以优化效率
|
|
32173
|
+
* @property [slicesR = 1] - 半径方向的边数,数值调小可以优化效率
|
|
32110
32174
|
* @property [outline = false] - 是否显示边线
|
|
32111
32175
|
* @property [outlineColor = color] - 边线颜色
|
|
32112
32176
|
* @property [topShow = true] - 是否显示顶
|
|
@@ -32127,6 +32191,8 @@ declare namespace ConicSensor {
|
|
|
32127
32191
|
roll?: number;
|
|
32128
32192
|
color?: string | Cesium.Color;
|
|
32129
32193
|
opacity?: number;
|
|
32194
|
+
slices?: number;
|
|
32195
|
+
slicesR?: number;
|
|
32130
32196
|
outline?: boolean;
|
|
32131
32197
|
outlineColor?: string | Cesium.Color;
|
|
32132
32198
|
topShow?: boolean;
|
|
@@ -32472,6 +32538,7 @@ declare namespace RectSensor {
|
|
|
32472
32538
|
* @property [roll = 0] - 翻滚角(角度值 0-360)
|
|
32473
32539
|
* @property [color = Cesium.Color.YELLOW] - 颜色
|
|
32474
32540
|
* @property [opacity = 1.0] - 透明度, 取值范围:0.0-1.0
|
|
32541
|
+
* @property [slices = 1] - 周围的边数,数值调小可以优化效率
|
|
32475
32542
|
* @property [outline = false] - 是否显示边线
|
|
32476
32543
|
* @property [outlineColor = color] - 边线颜色
|
|
32477
32544
|
* @property [topShow = true] - 是否显示顶
|
|
@@ -32494,6 +32561,7 @@ declare namespace RectSensor {
|
|
|
32494
32561
|
roll?: number;
|
|
32495
32562
|
color?: string | Cesium.Color;
|
|
32496
32563
|
opacity?: number;
|
|
32564
|
+
slices?: number;
|
|
32497
32565
|
outline?: boolean;
|
|
32498
32566
|
outlineColor?: string | Cesium.Color;
|
|
32499
32567
|
topShow?: boolean;
|
|
@@ -32790,6 +32858,9 @@ declare namespace SatelliteSensor {
|
|
|
32790
32858
|
* @property [roll = 0] - 翻滚角(角度值 0-360)
|
|
32791
32859
|
* @property [color = "rgba(255,255,0,0.4)"] - 颜色
|
|
32792
32860
|
* @property [opacity = 1.0] - 透明度, 取值范围:0.0-1.0
|
|
32861
|
+
* @property [slices = 4] - 周围的边数,数值调小可以优化效率
|
|
32862
|
+
* @property [slicesC = 36] - 圆锥时,周围的边数,数值调小可以优化效率
|
|
32863
|
+
* @property [slicesR = 1] - 圆锥时,半径方向的边数,数值调小可以优化效率
|
|
32793
32864
|
* @property [outline = false] - 是否显示边线
|
|
32794
32865
|
* @property [outlineColor = color] - 边线颜色
|
|
32795
32866
|
* @property [rayEllipsoid = false] - 是否求交地球计算
|
|
@@ -32809,6 +32880,9 @@ declare namespace SatelliteSensor {
|
|
|
32809
32880
|
roll?: number;
|
|
32810
32881
|
color?: string | Cesium.Color;
|
|
32811
32882
|
opacity?: number;
|
|
32883
|
+
slices?: number;
|
|
32884
|
+
slicesC?: number;
|
|
32885
|
+
slicesR?: number;
|
|
32812
32886
|
outline?: boolean;
|
|
32813
32887
|
outlineColor?: string | Cesium.Color;
|
|
32814
32888
|
rayEllipsoid?: boolean;
|
|
@@ -37260,9 +37334,10 @@ declare namespace DrawUtil {
|
|
|
37260
37334
|
/**
|
|
37261
37335
|
* 根据类型获取编辑点样式
|
|
37262
37336
|
* @param [type = mars3d.EditPointType.Control] - 类型
|
|
37337
|
+
* @param [exStyle] - 覆盖样式
|
|
37263
37338
|
* @returns 样式对象
|
|
37264
37339
|
*/
|
|
37265
|
-
function getEditPointStyle(type?: EditPointType | number): PointPrimitive.StyleOptions | any | any;
|
|
37340
|
+
function getEditPointStyle(type?: EditPointType | number, exStyle?: PointPrimitive.StyleOptions | any | any): PointPrimitive.StyleOptions | any | any;
|
|
37266
37341
|
}
|
|
37267
37342
|
|
|
37268
37343
|
/**
|
|
@@ -37720,9 +37795,10 @@ declare namespace PointTrans {
|
|
|
37720
37795
|
/**
|
|
37721
37796
|
* 经度/纬度 十进制 转为 度分秒格式
|
|
37722
37797
|
* @param value - 经度或纬度值
|
|
37798
|
+
* @param [toFixedLen = 0] - 秒的小数位数
|
|
37723
37799
|
* @returns 度分秒对象,如: { degree:113, minute:24, second:40 }
|
|
37724
37800
|
*/
|
|
37725
|
-
function degree2dms(value: number): any;
|
|
37801
|
+
function degree2dms(value: number, toFixedLen?: number): any;
|
|
37726
37802
|
/**
|
|
37727
37803
|
* 经度/纬度 度分秒 转为 十进制
|
|
37728
37804
|
* @param degree - 度
|
|
@@ -39683,7 +39759,7 @@ declare namespace thing {
|
|
|
39683
39759
|
}
|
|
39684
39760
|
|
|
39685
39761
|
export {
|
|
39686
|
-
name, update, version, proj4, Tle,
|
|
39762
|
+
name, update, version, proj4, Tle, WindUtil,
|
|
39687
39763
|
BaseClass, BaseThing, LngLatPoint, LngLatArray, GroundSkyBox, MultipleSkyBox, LocalWorldTransform, CRS, ChinaCRS, EventType, State, Token, ColorRamp,
|
|
39688
39764
|
MaterialType, GraphicType, LayerType, ControlType, EffectType, ThingType, Lang, MoveType, ClipType, Icon, EditPointType,
|
|
39689
39765
|
DomUtil, MeasureUtil, PointUtil, PolyUtil, PointTrans, Util, Log, MaterialUtil, GraphicUtil, DrawUtil, LayerUtil, ControlUtil, EffectUtil, ThingUtil,
|