mars3d 3.10.12 → 3.11.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/README.md CHANGED
@@ -34,7 +34,7 @@ Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
34
34
 
35
35
  ## 平台介绍
36
36
 
37
- `Mars3D平台` 是[火星科技](http://marsgis.cn/)研发的一款基于 WebGL 技术实现的三维客户端开发平台,基于[Cesium](https://cesium.com/cesiumjs/)优化提升与B/S架构设计,支持多行业扩展的轻量级高效能GIS开发平台,能够免安装、无插件地在浏览器中高效运行,并可快速接入与使用多种GIS数据和三维模型,呈现三维空间的可视化,完成平台在不同行业的灵活应用。
37
+ `Mars3D平台` 是一款基于 WebGL 技术实现的三维客户端开发平台,基于[Cesium](https://cesium.com/cesiumjs/)优化提升与B/S架构设计,支持多行业扩展的轻量级高效能GIS开发平台,能够免安装、无插件地在浏览器中高效运行,并可快速接入与使用多种GIS数据和三维模型,呈现三维空间的可视化,完成平台在不同行业的灵活应用。
38
38
 
39
39
 
40
40
 
@@ -143,6 +143,6 @@ Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
143
143
 
144
144
 
145
145
  ## 版权说明
146
- 1. Mars3D平台由[火星科技](http://marsgis.cn/)自主研发,拥有所有权利。
146
+ 1. Mars3D平台由[mars3d团队](http://mars3d.cn/)自主研发,拥有所有权利。
147
147
  2. 任何个人或组织可以在遵守相关要求下可以免费无限制使用。
148
148
 
package/mars3d.css CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * Mars3D三维可视化平台 mars3d
3
3
  *
4
- * 版本信息:v3.10.12
5
- * 编译日期:2026-01-21 13:09
6
- * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
- * 使用单位:火星科技免费公开版2025-07-01
4
+ * 版本信息:v3.11.1
5
+ * 编译日期:2026-03-17 19:22
6
+ * 版权所有:Copyright by http://mars3d.cn
7
+ * 使用单位:免费公开版2026-02-01
8
8
  */
9
9
 
10
10
  /**地球容器div*/
package/mars3d.d.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.10.12
6
- * 编译日期:2026-01-21 13:09
7
- * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
- * 使用单位:火星科技免费公开版2025-07-01
5
+ * 版本信息:v3.11.1
6
+ * 编译日期:2026-03-17 19:22
7
+ * 版权所有:Copyright by http://mars3d.cn
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;
@@ -12756,7 +12758,7 @@ declare namespace ModelEntity {
12756
12758
  * @property [incrementallyLoadTextures = true] - 确定模型加载后纹理是否会继续流进来。
12757
12759
  * @property [runAnimations = true] - 指定模型中指定的glTF动画是否应该启动。
12758
12760
  * @property [clampAnimations = true] - 指定在没有关键帧的情况下,glTF动画是否应该保持最后一个姿势。
12759
- * @property [lightColor] - 在为模型着色时指定光的颜色的属性。当undefined场景的浅色被使用代替。
12761
+ * @property [lightColor] - 控制模型自身接收的光源颜色的参数,核心作用是为模型的光照计算指定一个 “滤镜色”—— 所有照射到该模型上的光源(定向光、环境光、太阳光等)都会先与这个颜色相乘,最终改变模型呈现的整体色调和亮度。
12760
12762
  * @property [nodeTransformations] - 一个对象,其中键是节点的名称,值是{@link TranslationRotationScale}属性,描述要应用到该节点的转换。该转换是在节点的现有转换之后(如glTF中指定的那样)应用的,并且不会替换节点的现有转换。
12761
12763
  * @property [articulations] - An object, where keys are composed of an articulation name, a single space, and a stage name, and the values are numeric properties.
12762
12764
  * @property [clippingPlanes] - 用于裁剪模型的Plane平面集合
@@ -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;
@@ -19402,8 +19406,8 @@ declare class EllipsoidPrimitive extends BasePointPrimitive {
19402
19406
  declare namespace FrustumPrimitive {
19403
19407
  /**
19404
19408
  * 四棱锥体 支持的样式信息
19405
- * @property [angle] - 四棱锥体张角(角度值,取值范围 0.01-89.99
19406
- * @property [angle2 = angle] - 四棱锥体张角2,(角度值,取值范围 0.01-89.99
19409
+ * @property [angle] - 四棱锥体张角,竖直角(角度值,取值范围 0.01-89.99)。 已知问题:垂直角建议小于10°-80°,超出这个范围会出现明显的透视畸变。
19410
+ * @property [angle2 = angle] - 四棱锥体张角2,水平角(角度值,取值范围 0.01-89.99), 水平角计算为aspectRatio宽高比传给视锥体对象,如果你的宽高比必须匹配画布(避免画面拉伸),就不能同时强制匹配水平角 —— 二者只能选其一,这是透视投影的数学特性;
19407
19411
  * @property [heading = 0] - 方向角 (度数值,0至360度),没有指定targetPosition时有效
19408
19412
  * @property [pitch = 0] - 俯仰角(度数值,0至360度),没有指定targetPosition时有效
19409
19413
  * @property [roll = 0] - 翻滚角(度数值,0至360度),没有指定targetPosition时有效
@@ -19830,7 +19834,7 @@ declare namespace ModelPrimitive {
19830
19834
  * @property [runAnimations = true] - 指定模型中指定的glTF动画是否应该启动。
19831
19835
  * @property [clampAnimations = true] - 指定在没有关键帧的情况下,glTF动画是否应该保持最后一个姿势。
19832
19836
  * @property [releaseGltfJson = false] - When true, the glTF JSON is released once the glTF is loaded. This is is especially useful for cases like 3D Tiles, where each .gltf model is unique and caching the glTF JSON is not effective.
19833
- * @property [lightColor] - 在为模型着色时指定光的颜色的属性。当undefined场景的浅色被使用代替。
19837
+ * @property [lightColor] - 控制模型自身接收的光源颜色的参数,核心作用是为模型的光照计算指定一个 “滤镜色”—— 所有照射到该模型上的光源(定向光、环境光、太阳光等)都会先与这个颜色相乘,最终改变模型呈现的整体色调和亮度。
19834
19838
  * @property [imageBasedLighting] - The properties for managing image-based lighting on this model.
19835
19839
  * @property [nodeTransformations] - 一个对象,其中键是节点的名称,值是{@link TranslationRotationScale}属性,描述要应用到该节点的转换。该转换是在节点的现有转换之后(如glTF中指定的那样)应用的,并且不会替换节点的现有转换。
19836
19840
  * @property [articulations] - An object, where keys are composed of an articulation name, a single space, and a stage name, and the values are numeric properties.
@@ -19910,7 +19914,7 @@ declare namespace ModelPrimitive {
19910
19914
  runAnimations?: boolean;
19911
19915
  clampAnimations?: boolean;
19912
19916
  releaseGltfJson?: boolean;
19913
- lightColor?: Cesium.Color;
19917
+ lightColor?: Cesium.Color | number;
19914
19918
  imageBasedLighting?: Cesium.ImageBasedLighting;
19915
19919
  nodeTransformations?: Cesium.PropertyBag | {
19916
19920
  [key: string]: Cesium.TranslationRotationScale;
@@ -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;
@@ -33798,7 +33804,7 @@ declare class CylinderWaveMaterial extends Cesium.Material {
33798
33804
  * style: {
33799
33805
  * diffHeight: 5,
33800
33806
  * material: new mars3d.material.TextMaterial({
33801
- * text: "火星科技",
33807
+ * text: "欢迎使用Mars3D平台",
33802
33808
  * color: "#3388cc",
33803
33809
  * outlineWidth: 4,
33804
33810
  * }),
@@ -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
@@ -42296,8 +42316,8 @@ declare namespace Util {
42296
42316
  /**
42297
42317
  * 根据数据和格式化字符串模板,返回字符串
42298
42318
  * @example
42299
- * let str = mars3d.Util.template("<div>名称:{name}</div>", { name:"火星科技", date:"2017-8-25"} );
42300
- * //str结果为 : "<div>名称:火星科技</div>"
42319
+ * let str = mars3d.Util.template("<div>名称:{name}</div>", { name:"欢迎使用Mars3D平台", date:"2017-8-25"} );
42320
+ * //str结果为 : "<div>名称:欢迎使用Mars3D平台</div>"
42301
42321
  * @param str - 格式化字符串模版,属性字段为大括号,如 {name}
42302
42322
  * @param data - 数据对象
42303
42323
  * @param [toEmpty = false] - 是否将模板中未匹配项转为空值