mars3d 3.4.2 → 3.4.3
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 +22 -11
- 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.4.
|
|
6
|
-
* 编译日期:2022-08-
|
|
5
|
+
* 版本信息:v3.4.3
|
|
6
|
+
* 编译日期:2022-08-09 14:06:55
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2022-06-01
|
|
9
9
|
*/
|
|
@@ -8978,8 +8978,9 @@ declare namespace FontBillboardEntity {
|
|
|
8978
8978
|
/**
|
|
8979
8979
|
* Font CSS字体点转图片后的图标点 Entity 支持的样式信息
|
|
8980
8980
|
* @property [iconClass = ""] - 字体css样式
|
|
8981
|
-
* @property [iconSize = 50] - 字体大小
|
|
8982
8981
|
* @property [color = '#ff0000'] - 字体颜色
|
|
8982
|
+
* @property [iconSize = 50] - 字体大小,单位:像素
|
|
8983
|
+
* @property [iconPadding = 10] - 字体DIV生成时div内的padding值
|
|
8983
8984
|
* @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
|
|
8984
8985
|
* @property [scale = 1] - 图像大小的比例
|
|
8985
8986
|
* @property [rotation = 0] - 旋转角度(弧度值),正北为0,逆时针旋转
|
|
@@ -9017,8 +9018,9 @@ declare namespace FontBillboardEntity {
|
|
|
9017
9018
|
*/
|
|
9018
9019
|
type StyleOptions = any | {
|
|
9019
9020
|
iconClass?: string;
|
|
9020
|
-
iconSize?: number;
|
|
9021
9021
|
color?: string;
|
|
9022
|
+
iconSize?: number;
|
|
9023
|
+
iconPadding?: number;
|
|
9022
9024
|
opacity?: number;
|
|
9023
9025
|
scale?: number;
|
|
9024
9026
|
rotation?: number;
|
|
@@ -9491,13 +9493,13 @@ declare class ModelEntity extends BasePointEntity {
|
|
|
9491
9493
|
* @param options.position - 指定目标位置的坐标
|
|
9492
9494
|
* @param [options.time = 5] - 移动的时长(单位 秒),控制速度
|
|
9493
9495
|
* @param [options.onEnd] - 移动完成的回调方法
|
|
9494
|
-
* @returns
|
|
9496
|
+
* @returns 绘制创建完成的Promise,等价于onEnd参数
|
|
9495
9497
|
*/
|
|
9496
9498
|
moveTo(options?: {
|
|
9497
9499
|
position: LngLatPoint | Cesium.Cartesian3 | number[];
|
|
9498
9500
|
time?: number;
|
|
9499
9501
|
onEnd?: (...params: any[]) => any;
|
|
9500
|
-
}):
|
|
9502
|
+
}): Promise<ModelEntity | any>;
|
|
9501
9503
|
/**
|
|
9502
9504
|
* 飞行定位至数据所在的视角
|
|
9503
9505
|
* @param [options = {}] - 参数对象:
|
|
@@ -10975,7 +10977,8 @@ declare class Video2D extends PolygonEntity {
|
|
|
10975
10977
|
declare namespace WallEntity {
|
|
10976
10978
|
/**
|
|
10977
10979
|
* 墙 支持的样式信息
|
|
10978
|
-
* @property [diffHeight = 100] -
|
|
10980
|
+
* @property [diffHeight = 100] - 墙高,
|
|
10981
|
+
* @property [fixedTop = false] - 墙顶部是否使用统一的水平高度值
|
|
10979
10982
|
* @property [minimumHeights] - 没有指定diffHeight时,可以指定用于墙壁底部而不是球体表面的高度数组。
|
|
10980
10983
|
* @property [maximumHeights] - 没有指定diffHeight时,可以指定用于墙顶的高度数组,而不是每个位置的高度。
|
|
10981
10984
|
* @property [fill = true] - 是否填充
|
|
@@ -11004,6 +11007,7 @@ declare namespace WallEntity {
|
|
|
11004
11007
|
*/
|
|
11005
11008
|
type StyleOptions = any | {
|
|
11006
11009
|
diffHeight?: number;
|
|
11010
|
+
fixedTop?: boolean;
|
|
11007
11011
|
minimumHeights?: number[];
|
|
11008
11012
|
maximumHeights?: number[];
|
|
11009
11013
|
fill?: boolean;
|
|
@@ -11696,14 +11700,14 @@ declare class Regular extends PolygonEntity {
|
|
|
11696
11700
|
readonly EditClass: EditRegular;
|
|
11697
11701
|
/**
|
|
11698
11702
|
* 计算当前矢量对象的边界坐标点
|
|
11699
|
-
* @param
|
|
11703
|
+
* @param center - 坐标位置
|
|
11700
11704
|
* @param options - 控制参数
|
|
11701
11705
|
* @param [options.border = 3] - 边数量
|
|
11702
11706
|
* @param options.radius - 区域的半径(单位:米)
|
|
11703
11707
|
* @param [options.startAngle = 0] - 区域的开始角度(正东方向为0,顺时针到360度)
|
|
11704
11708
|
* @returns 边界坐标点
|
|
11705
11709
|
*/
|
|
11706
|
-
static getOutlinePositions(
|
|
11710
|
+
static getOutlinePositions(center: Cesium.Cartesian3, options: {
|
|
11707
11711
|
border?: number;
|
|
11708
11712
|
radius: number;
|
|
11709
11713
|
startAngle?: number;
|
|
@@ -11772,14 +11776,14 @@ declare class Sector extends PolygonEntity {
|
|
|
11772
11776
|
readonly EditClass: EditSector;
|
|
11773
11777
|
/**
|
|
11774
11778
|
* 计算当前矢量对象的边界坐标点
|
|
11775
|
-
* @param
|
|
11779
|
+
* @param center - 中心点坐标位置
|
|
11776
11780
|
* @param options - 控制参数
|
|
11777
11781
|
* @param options.radius - 扇形区域的半径(单位:米)
|
|
11778
11782
|
* @param options.startAngle - 扇形区域的开始角度(正东方向为0,顺时针到360度)
|
|
11779
11783
|
* @param options.endAngle - 扇形区域的结束角度(正东方向为0,顺时针到360度)
|
|
11780
11784
|
* @returns 边界坐标点
|
|
11781
11785
|
*/
|
|
11782
|
-
static getOutlinePositions(
|
|
11786
|
+
static getOutlinePositions(center: Cesium.Cartesian3, options: {
|
|
11783
11787
|
radius: number;
|
|
11784
11788
|
startAngle: number;
|
|
11785
11789
|
endAngle: number;
|
|
@@ -32417,6 +32421,13 @@ declare namespace PointUtil {
|
|
|
32417
32421
|
}): number;
|
|
32418
32422
|
/**
|
|
32419
32423
|
* 异步精确计算坐标的 贴地(或贴模型)高度
|
|
32424
|
+
* @example
|
|
32425
|
+
* const position = graphic.position
|
|
32426
|
+
* mars3d.PointUtil.getSurfaceHeight(map.scene, graphic.position, { has3dtiles: true }).then((result) => {
|
|
32427
|
+
* console.log("原始高度为:" + result.height_original.toFixed(2) + ",贴地高度:" + result.height.toFixed(2))
|
|
32428
|
+
*
|
|
32429
|
+
* graphic.position = result.position
|
|
32430
|
+
* })
|
|
32420
32431
|
* @param scene - 三维地图场景对象,一般用map.scene或viewer.scene
|
|
32421
32432
|
* @param position - 坐标
|
|
32422
32433
|
* @param [options = {}] - 参数对象:
|