mars3d 3.10.4 → 3.10.5

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 CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D三维可视化平台 mars3d
3
3
  *
4
- * 版本信息:v3.10.4
5
- * 编译日期:2025-09-05 17:45
4
+ * 版本信息:v3.10.5
5
+ * 编译日期:2025-09-17 20:56
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:火星科技免费公开版 ,2025-07-01
8
8
  */
package/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.10.4
6
- * 编译日期:2025-09-05 17:45
5
+ * 版本信息:v3.10.5
6
+ * 编译日期:2025-09-17 20:56
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:火星科技免费公开版 ,2025-07-01
9
9
  */
@@ -4861,7 +4861,7 @@ declare namespace BaseGraphic {
4861
4861
  /**
4862
4862
  * 【时序的动态线面坐标】,说明:仅部分Entity对象有效
4863
4863
  * @property type - 固定传入:"time", 用于内部区分类型
4864
- * @property list - 时序列表
4864
+ * @property list - 时序列表,定义每个time时间对应的positions坐标位置
4865
4865
  * @property [timeField = "time"] - list数组中已有时间值的对应字段名称
4866
4866
  * @property [referenceFrame = Cesium.ReferenceFrame.FIXED] - 被定义的参考系
4867
4867
  * @property [numberOfDerivatives = 0] - 每个位置的导数的数量;即速度、加速度等
@@ -4885,12 +4885,12 @@ declare namespace BaseGraphic {
4885
4885
  };
4886
4886
  /**
4887
4887
  * 【时序的动态线面坐标 单个时序对应值】
4888
- * @property time - 时间
4888
+ * @property time - 时间, 数字时代表相对于开始时间的第几秒
4889
4889
  * @property positions - 坐标位置
4890
4890
  * @property [pauseTime = 0] - 当前时刻停留时长(单位:秒)
4891
4891
  */
4892
4892
  type TimePolyPositionsItem = {
4893
- time: Cesium.JulianDate | Date | string;
4893
+ time: Cesium.JulianDate | Date | string | number;
4894
4894
  positions: LngLatPoint[] | Cesium.Cartesian3[] | any[] | any;
4895
4895
  pauseTime?: number | ((...params: any[]) => any);
4896
4896
  };
@@ -5410,7 +5410,7 @@ declare class BaseGraphic extends BaseClass {
5410
5410
  /**
5411
5411
  * 绑定鼠标单击对象后的弹窗。
5412
5412
  * @param content - 弹窗内容html字符串,或者回调方法。
5413
- * @param [options] - 控制参数
5413
+ * @param [options] - 控制参数, 另外支持传入open:true自动打开
5414
5414
  * @returns 当前对象本身,可以链式调用
5415
5415
  */
5416
5416
  bindPopup(content: string | ((...params: any[]) => any), options?: Popup.StyleOptions | any): BaseGraphic | any;
@@ -7111,6 +7111,9 @@ declare class ConeVisibility extends PointVisibility {
7111
7111
  * @param [options.updateClock = true] - 是否自动更新时钟,多个FixedRoute时或外部手动控制时钟时建议关闭
7112
7112
  * @param [options.clockRange] - 设定全局时钟播放的模式,可以设置到达终点后停止或循环播放
7113
7113
  * @param [options.clockLoop] - 是否循环播放,与 clockRange: Cesium.ClockRange.LOOP_STOP 效果类似,但不改变全局时钟时间
7114
+ * @param [options.autoStart] - 是否加入后就自动启动播放
7115
+ * @param [options.autoStart.enabled = true] - 是否启用
7116
+ * @param [options.autoStart.delay = 0] - 延迟多少秒开始播放
7114
7117
  * @param [options.autoStop] - 是否自动停止
7115
7118
  * @param [options.frameRate = 1] - 多少帧获取一次数据。用于控制效率,如果卡顿就把该数值调大一些。
7116
7119
  * @param [options.maxCacheCount = 1000] - 保留的坐标点数量, 当为-1时保留所有
@@ -7174,6 +7177,10 @@ declare class FixedRoute extends Route {
7174
7177
  updateClock?: boolean;
7175
7178
  clockRange?: Cesium.ClockRange;
7176
7179
  clockLoop?: boolean;
7180
+ autoStart?: {
7181
+ enabled?: boolean;
7182
+ delay?: number;
7183
+ };
7177
7184
  autoStop?: boolean;
7178
7185
  frameRate?: number;
7179
7186
  maxCacheCount?: number;
@@ -22935,7 +22942,7 @@ declare class ArcGisWfsLayer extends LodGraphicLayer {
22935
22942
  };
22936
22943
  bbox?: number[];
22937
22944
  debuggerTileInfo?: boolean;
22938
- maxCacheCount?: boolean;
22945
+ maxCacheCount?: number;
22939
22946
  opacity?: number;
22940
22947
  zIndex?: number;
22941
22948
  symbol?: {
@@ -23651,6 +23658,8 @@ declare namespace GraphicLayer {
23651
23658
  * @param [options] - 参数对象,包括以下:
23652
23659
  * @param [options.data] - 需要自动加载的数据,内部自动生成Graphic对象。{@link GraphicUtil#.create}, 内部自动调用loadJSON方法
23653
23660
  * @param [options.url] - 需要自动加载的数据对应存放的json路径,内部自动调用loadJSON方法
23661
+ * @param [options.onEachFeature] - url或data加载时,创建每个Graphic前的回调
23662
+ * @param [options.filter] - url或data加载时,数据筛选方法,方法时,方法体内返回false时排除数据 filter:function(item,attr){return true};支持字符串基于attr属性进行筛选的JS语句字符串,比如: attr.name=='安徽省' || attr.code=='340000' 。
23654
23663
  * @param [options.isAutoEditing = false] - 是否自动激活编辑,完成标绘时是否自动启动编辑,单击对象自动激活编辑
23655
23664
  * @param [options.isContinued = false] - 是否连续标绘,连续标绘状态下无法编辑已有对象,且不支持获取startDraw方法的返回值(是内部自动调用的,如果要获取请drawCreated事件中获取或外部手动进行startDraw)。
23656
23665
  * @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。
@@ -23717,6 +23726,8 @@ declare class GraphicLayer extends BaseGraphicLayer {
23717
23726
  constructor(options?: {
23718
23727
  data?: any | any;
23719
23728
  url?: string;
23729
+ onEachFeature?: (...params: any[]) => any;
23730
+ filter?: ((...params: any[]) => any) | string;
23720
23731
  isAutoEditing?: boolean;
23721
23732
  isContinued?: boolean;
23722
23733
  isRestorePositions?: boolean;
@@ -24670,7 +24681,7 @@ declare class LodGraphicLayer extends GraphicLayer {
24670
24681
  };
24671
24682
  bbox?: number[];
24672
24683
  debuggerTileInfo?: boolean;
24673
- maxCacheCount?: boolean;
24684
+ maxCacheCount?: number;
24674
24685
  opacity?: number;
24675
24686
  zIndex?: number;
24676
24687
  symbol?: {
@@ -25851,7 +25862,7 @@ declare class WfsLayer extends LodGraphicLayer {
25851
25862
  };
25852
25863
  bbox?: number[];
25853
25864
  debuggerTileInfo?: boolean;
25854
- maxCacheCount?: boolean;
25865
+ maxCacheCount?: number;
25855
25866
  zIndex?: number;
25856
25867
  symbol?: {
25857
25868
  type?: GraphicType | string;
@@ -39974,7 +39985,7 @@ declare namespace DrawUtil {
39974
39985
  * @example
39975
39986
  * mars3d.DrawUtil.setEditPointStyle(mars3d.EditPointType.Control, {
39976
39987
  * type: mars3d.GraphicType.billboardP, // 支持设置type指定编辑点类型
39977
- * image: "https://data.mars3d.cn/img/marker/move.png",
39988
+ * image: "https://data.mars3d.cn/img/marker/dg.png",
39978
39989
  * horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
39979
39990
  * verticalOrigin: Cesium.VerticalOrigin.CENTER
39980
39991
  * })
@@ -39985,6 +39996,13 @@ declare namespace DrawUtil {
39985
39996
  function setEditPointStyle(type: EditPointType | number, newStyle: PointPrimitive.StyleOptions | any | any): void;
39986
39997
  /**
39987
39998
  * 更新所有编辑点的样式
39999
+ * @example
40000
+ * mars3d.DrawUtil.setAllEditPointStyle({
40001
+ * type: mars3d.GraphicType.billboardP, // 支持设置type指定编辑点类型
40002
+ * image: "https://data.mars3d.cn/img/marker/point.png",
40003
+ * horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
40004
+ * verticalOrigin: Cesium.VerticalOrigin.CENTER
40005
+ * })
39988
40006
  * @param style - 样式
39989
40007
  * @returns 无
39990
40008
  */