mars3d 3.10.12 → 3.11.0
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/mars3d.css +3 -3
- package/mars3d.d.ts +23 -3
- package/mars3d.js +4 -4
- package/package.json +1 -1
package/mars3d.css
CHANGED
package/mars3d.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.
|
|
6
|
-
* 编译日期:2026-
|
|
5
|
+
* 版本信息:v3.11.0
|
|
6
|
+
* 编译日期:2026-02-14 19:28
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
|
-
* 使用单位:火星科技免费公开版 ,
|
|
8
|
+
* 使用单位:火星科技免费公开版 ,2026-02-01
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import * as Cesium from "mars3d-cesium"
|
|
@@ -5391,12 +5391,14 @@ declare class BaseGraphic extends BaseClass {
|
|
|
5391
5391
|
* 将矢量数据导出为GeoJSON格式规范对象。
|
|
5392
5392
|
* @param [options] - 参数对象:
|
|
5393
5393
|
* @param [options.noAlt] - 不导出高度值
|
|
5394
|
+
* @param [options.closure] - 是否闭合,true时增加第1个点 【仅对Polygon类型有效】
|
|
5394
5395
|
* @param [options.noStyle] - 不导出style样式,后期使用时在图层配置symbol
|
|
5395
5396
|
* @param [options.standard] - 不导出options等mars3d属性,仅导出坐标和attr属性的标准简洁GeoJSON
|
|
5396
5397
|
* @returns GeoJSON格式规范对象
|
|
5397
5398
|
*/
|
|
5398
5399
|
toGeoJSON(options?: {
|
|
5399
5400
|
noAlt?: boolean;
|
|
5401
|
+
closure?: boolean;
|
|
5400
5402
|
noStyle?: boolean;
|
|
5401
5403
|
standard?: boolean;
|
|
5402
5404
|
}): any;
|
|
@@ -16044,12 +16046,14 @@ declare class GroupGraphic extends BaseGraphic {
|
|
|
16044
16046
|
* 将矢量数据导出为GeoJSON格式规范对象。
|
|
16045
16047
|
* @param [options] - 参数对象:
|
|
16046
16048
|
* @param [options.noAlt] - 不导出高度值
|
|
16049
|
+
* @param [options.closure] - 是否闭合,true时增加第1个点 【仅对Polygon类型有效】
|
|
16047
16050
|
* @param [options.noStyle] - 不导出style样式,后期使用时在图层配置symbol
|
|
16048
16051
|
* @param [options.standard] - 不导出options等mars3d属性,仅导出坐标和attr属性的标准简洁GeoJSON
|
|
16049
16052
|
* @returns GeoJSON格式规范对象
|
|
16050
16053
|
*/
|
|
16051
16054
|
toGeoJSON(options?: {
|
|
16052
16055
|
noAlt?: boolean;
|
|
16056
|
+
closure?: boolean;
|
|
16053
16057
|
noStyle?: boolean;
|
|
16054
16058
|
standard?: boolean;
|
|
16055
16059
|
}): any;
|
|
@@ -24054,6 +24058,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
24054
24058
|
* 将图层数据导出为GeoJSON格式规范对象。
|
|
24055
24059
|
* @param [options] - 参数对象:
|
|
24056
24060
|
* @param [options.noAlt] - 不导出高度值
|
|
24061
|
+
* @param [options.closure] - 是否闭合,true时增加第1个点 【仅对Polygon类型有效】
|
|
24057
24062
|
* @param [options.noStyle] - 不导出style样式,后期使用时在图层配置symbol
|
|
24058
24063
|
* @param [options.standard] - 不导出options等mars3d属性,仅导出坐标和attr属性的标准简洁GeoJSON
|
|
24059
24064
|
* @param [options.stopEdit = false] - 是否停止绘制或编辑
|
|
@@ -24061,6 +24066,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
24061
24066
|
*/
|
|
24062
24067
|
toGeoJSON(options?: {
|
|
24063
24068
|
noAlt?: boolean;
|
|
24069
|
+
closure?: boolean;
|
|
24064
24070
|
noStyle?: boolean;
|
|
24065
24071
|
standard?: boolean;
|
|
24066
24072
|
stopEdit?: boolean;
|
|
@@ -41806,6 +41812,7 @@ declare namespace PolyUtil {
|
|
|
41806
41812
|
function updateVolume(resultInter: VolumeResult, cutHeight: number): VolumeResult;
|
|
41807
41813
|
/**
|
|
41808
41814
|
* 获取 圆(或椭圆)边线上的坐标点数组
|
|
41815
|
+
* (依赖cesium内部算法:Cesium.EllipseGeometryLibrary.computeEllipsePositions)
|
|
41809
41816
|
* @param options - 参数对象:
|
|
41810
41817
|
* @param options.position - 圆的中心坐标
|
|
41811
41818
|
* @param [options.radius] - 如是圆时,半径(单位:米)
|
|
@@ -41825,6 +41832,19 @@ declare namespace PolyUtil {
|
|
|
41825
41832
|
granularity?: number;
|
|
41826
41833
|
rotation?: number;
|
|
41827
41834
|
}): Cesium.Cartesian3[];
|
|
41835
|
+
/**
|
|
41836
|
+
* 获取 圆 边线上的坐标点数组
|
|
41837
|
+
* @param options - 参数对象:
|
|
41838
|
+
* @param options.position - 圆的中心坐标
|
|
41839
|
+
* @param [options.radius] - 半径(单位:米)
|
|
41840
|
+
* @param [options.count = 60] - 分割返回的点数量
|
|
41841
|
+
* @returns 边线上的坐标点数组
|
|
41842
|
+
*/
|
|
41843
|
+
function getCircleOuterPositions(options: {
|
|
41844
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
41845
|
+
radius?: number;
|
|
41846
|
+
count?: number;
|
|
41847
|
+
}): Cesium.Cartesian3[];
|
|
41828
41848
|
/**
|
|
41829
41849
|
* 提取 地球视野 的中心点坐标
|
|
41830
41850
|
* @param scene - 三维地图场景对象,一般用map.scene或viewer.scene
|