mars3d 3.7.23 → 3.7.25

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 CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D三维可视化平台 mars3d
3
3
  *
4
- * 版本信息:v3.7.23
5
- * 编译日期:2024-07-23 21:10:10
4
+ * 版本信息:v3.7.25
5
+ * 编译日期:2024-08-16 09:41:21
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2024-01-15
8
8
  */
package/dist/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.7.23
6
- * 编译日期:2024-07-23 21:10:10
5
+ * 版本信息:v3.7.25
6
+ * 编译日期:2024-08-16 09:41:20
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2024-01-15
9
9
  */
@@ -6577,6 +6577,7 @@ declare namespace ParticleSystem {
6577
6577
  * @property [transX = 0] - 粒子在X轴方向上的偏离距离(单位:米)
6578
6578
  * @property [transY = 0] - 粒子在Y轴方向上的偏离距离(单位:米)
6579
6579
  * @property [transZ = 0] - 粒子离地高度(单位:米),粒子在Z轴方向上的偏离距离
6580
+ * @property [maxHeight] - 最大视角高度(单位:米),超出该高度不显示粒子
6580
6581
  * @property [particleSize = 25] - 粒子大小(px),粒子图片的Size大小(单位:像素)
6581
6582
  * @property [imageSize] - 粒子图片的Size大小,可以设置高宽不同(单位:像素),与particleSize二选一
6582
6583
  * @property [minimumImageSize] - 最小大小,设置最小边界,宽度和高度,在此之上随机缩放粒子图像的像素尺寸
@@ -6600,7 +6601,10 @@ declare namespace ParticleSystem {
6600
6601
  * @property [bursts] - 周期性发射粒子爆发数组
6601
6602
  * @property [sizeInMeters] - 大小模式,设置粒子的大小是米还是像素。true以米为单位设置粒子的大小;否则,大小以像素为单位。
6602
6603
  * @property [lifetime = number.MAX_VALUE] - 释放粒子的时间(秒)
6603
- * @property [maxHeight] - 最大视角高度(单位:米),超出该高度不显示粒子
6604
+ *
6605
+ * //以下是Billboard参数(ParticleSystem底层是很多Billboard构成)
6606
+ * @property [visibleDepth = true] - 是否被遮挡
6607
+ * @property [disableDepthTestDistance] - 指定从相机到禁用深度测试的距离。
6604
6608
  */
6605
6609
  type StyleOptions = any | {
6606
6610
  image?: string;
@@ -6613,6 +6617,7 @@ declare namespace ParticleSystem {
6613
6617
  transX?: number;
6614
6618
  transY?: number;
6615
6619
  transZ?: number;
6620
+ maxHeight?: number;
6616
6621
  particleSize?: number;
6617
6622
  imageSize?: Cesium.Cartesian2;
6618
6623
  minimumImageSize?: Cesium.Cartesian2;
@@ -6636,7 +6641,8 @@ declare namespace ParticleSystem {
6636
6641
  bursts?: Cesium.ParticleBurst[];
6637
6642
  sizeInMeters?: boolean;
6638
6643
  lifetime?: number;
6639
- maxHeight?: number;
6644
+ visibleDepth?: boolean;
6645
+ disableDepthTestDistance?: number;
6640
6646
  };
6641
6647
  }
6642
6648
 
@@ -12699,6 +12705,7 @@ declare namespace PolylineEntity {
12699
12705
  * @property [depthFail] - 是否显示遮挡
12700
12706
  * @property [depthFailColor] - 遮挡处颜色
12701
12707
  * @property [depthFailOpacity] - 遮挡处透明度
12708
+ * @property [snakeAnimation] - 执行贪吃蛇动画的时长秒数,内部执行startSnakeAnimation方法
12702
12709
  * @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定此框将显示在与摄像机的多大距离。
12703
12710
  * @property [distanceDisplayCondition_far = number.MAX_VALUE] - 最大距离
12704
12711
  * @property [distanceDisplayCondition_near = 0] - 最小距离
@@ -12735,6 +12742,7 @@ declare namespace PolylineEntity {
12735
12742
  depthFail?: boolean;
12736
12743
  depthFailColor?: string;
12737
12744
  depthFailOpacity?: number;
12745
+ snakeAnimation?: number;
12738
12746
  distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
12739
12747
  distanceDisplayCondition_far?: number;
12740
12748
  distanceDisplayCondition_near?: number;
@@ -12825,6 +12833,21 @@ declare class PolylineEntity extends BasePolyEntity {
12825
12833
  * 矢量数据对应的 Cesium内部对象的具体类型对象
12826
12834
  */
12827
12835
  readonly entityGraphic: Cesium.PolylineGraphics;
12836
+ /**
12837
+ * 开始播放 流动生长动画
12838
+ * @param options - 参数
12839
+ * @param [opts.duration = 8] - 总时长(秒)
12840
+ * @param [options.callback] - 完成后动画
12841
+ * @returns 无
12842
+ */
12843
+ startSnakeAnimation(options: {
12844
+ callback?: (...params: any[]) => any;
12845
+ }): void;
12846
+ /**
12847
+ * 停止 流动生长动画
12848
+ * @returns 无
12849
+ */
12850
+ stopSnakeAnimation(): void;
12828
12851
  }
12829
12852
 
12830
12853
  declare namespace PolylineVolumeEntity {
@@ -18604,6 +18627,7 @@ declare namespace PointPrimitive {
18604
18627
  * @property [disableDepthTestDistance] - 指定从相机到禁用深度测试的距离。
18605
18628
  * @property [translucencyByDistance] - 用于基于与相机的距离设置半透明度。
18606
18629
  * @property [clampToGround = false] - 是否贴地, 仅限普通坐标. 提示:Cesium默认不支持贴地,是内部计算了贴地高度值。【大量数据时可能卡死,注意大数据下不用为ture】
18630
+ * @property [clampToGroundExact = false] - clampToGround的贴地高度,是否进行精确计算
18607
18631
  * @property [setHeight] - 指定坐标高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
18608
18632
  * @property [addHeight] - 在现有坐标基础上增加的高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
18609
18633
  * @property [label] - 支持附带文字的显示
@@ -18628,6 +18652,7 @@ declare namespace PointPrimitive {
18628
18652
  disableDepthTestDistance?: number;
18629
18653
  translucencyByDistance?: Cesium.NearFarScalar;
18630
18654
  clampToGround?: boolean;
18655
+ clampToGroundExact?: boolean;
18631
18656
  setHeight?: number | string;
18632
18657
  addHeight?: number | string;
18633
18658
  label?: LabelEntity.StyleOptions | any;
@@ -19686,6 +19711,7 @@ declare namespace VideoPrimitive {
19686
19711
  * @param options.positions - 坐标位置
19687
19712
  * @param options.style - 样式信息
19688
19713
  * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
19714
+ * @param [options.positions_grid] - 历史编辑的网格坐标点,用于json导出导入
19689
19715
  * @param [options.appearance] - [cesium原生]用于渲染图元的外观。
19690
19716
  * @param [options.attributes] - [cesium原生]每个实例的属性。
19691
19717
  * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。
@@ -19717,6 +19743,7 @@ declare class VideoPrimitive extends BasePolyPrimitive {
19717
19743
  positions: LngLatPoint[] | Cesium.Cartesian3[] | any[];
19718
19744
  style: VideoPrimitive.StyleOptions | any;
19719
19745
  attr?: any | BaseGraphic.AjaxAttr;
19746
+ positions_grid?: Cesium.Cartesian3[];
19720
19747
  appearance?: Cesium.Appearance;
19721
19748
  attributes?: Cesium.Appearance;
19722
19749
  depthFailAppearance?: Cesium.Appearance;
@@ -22666,6 +22693,14 @@ declare class GraphicLayer extends BaseGraphicLayer {
22666
22693
  * @returns 当前对象本身,可以链式调用
22667
22694
  */
22668
22695
  stopEditing(): GraphicLayer;
22696
+ /**
22697
+ * 获取图层完成解析加载完成的Promise承诺, 等价于load事件(区别在于load事件必须在load完成前绑定才能监听)。
22698
+ * @example
22699
+ * tiles3dLayer.readyPromise.then(function(layer) {
22700
+ * console.log("load完成", layer)
22701
+ * })
22702
+ */
22703
+ readonly readyPromise: Promise<BaseLayer | any>;
22669
22704
  }
22670
22705
 
22671
22706
  /**
@@ -31597,9 +31632,10 @@ declare class Tle {
31597
31632
  * @param tle1 - 卫星TLE的第一行
31598
31633
  * @param tle2 - 卫星TLE的第二行
31599
31634
  * @param datetime - 指定的时间
31635
+ * @param [isFixed] - 是否返回Cesium.ReferenceFrame.FIXED地固系坐标
31600
31636
  * @returns 卫星当前经纬度位置
31601
31637
  */
31602
- static getPoint(tle1: string, tle2: string, datetime: Date | Cesium.JulianDate | number): LngLatPoint | undefined;
31638
+ static getPoint(tle1: string, tle2: string, datetime: Date | Cesium.JulianDate | number, isFixed?: boolean): LngLatPoint | undefined;
31603
31639
  /**
31604
31640
  * 获取卫星指定时间所在的 ECI地固系坐标
31605
31641
  * @param tle1 - 卫星TLE的第一行
@@ -34781,31 +34817,37 @@ declare namespace MatrixMove {
34781
34817
  change: string;
34782
34818
  stop: string;
34783
34819
  };
34784
- }
34785
-
34786
- /**
34787
- * 坐标点按XYZ轴平移图上编辑处理类
34788
- * @param [options] - 参数对象,包括以下:
34789
- * @param [options.position] - 坐标位置
34790
- * @param [options.radius = 200] - 半径
34791
- * @param [options.onChange] - 编辑移动了坐标后的回调方法
34792
- * @param [options.id = createGuid()] - 对象的id标识
34793
- * @param [options.enabled = true] - 对象的启用状态
34794
- * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
34795
- * @param [options.pid = -1] - 量算对应的图层父级的id,一般图层管理中使用
34796
- * @param [options.name = ''] - 量算对应的图层名称
34797
- */
34798
- declare class MatrixMove extends BaseThing {
34799
- constructor(options?: {
34820
+ /**
34821
+ * 按轴平移类 构造参数
34822
+ * @property [position] - 坐标位置
34823
+ * @property [radius = 200] - 半径
34824
+ * @property [onChange] - 编辑移动了坐标后的回调方法
34825
+ * @property [hasMiddle = true] - 是否绑定中键单击事件进行修改坐标位置
34826
+ * @property [id = createGuid()] - 对象的id标识
34827
+ * @property [enabled = true] - 对象的启用状态
34828
+ * @property [eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
34829
+ * @property [pid = -1] - 对应的图层父级的id,一般图层管理中使用
34830
+ * @property [name = ''] - 对应的图层名称
34831
+ */
34832
+ type Options = {
34800
34833
  position?: LngLatPoint | Cesium.Cartesian3 | number[];
34801
34834
  radius?: number;
34802
34835
  onChange?: (...params: any[]) => any;
34836
+ hasMiddle?: boolean;
34803
34837
  id?: string | number;
34804
34838
  enabled?: boolean;
34805
34839
  eventParent?: BaseClass | boolean;
34806
34840
  pid?: string | number;
34807
34841
  name?: string;
34808
- });
34842
+ };
34843
+ }
34844
+
34845
+ /**
34846
+ * 按轴平移 坐标点编辑处理类
34847
+ * @param [options] - 参数对象
34848
+ */
34849
+ declare class MatrixMove extends BaseThing {
34850
+ constructor(options?: MatrixMove.Options);
34809
34851
  /**
34810
34852
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
34811
34853
  */
@@ -34825,8 +34867,8 @@ declare class MatrixMove extends BaseThing {
34825
34867
  * @param [options.id = createGuid()] - 对象的id标识
34826
34868
  * @param [options.enabled = true] - 对象的启用状态
34827
34869
  * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
34828
- * @param [options.pid = -1] - 量算对应的图层父级的id,一般图层管理中使用
34829
- * @param [options.name = ''] - 量算对应的图层名称
34870
+ * @param [options.pid = -1] - 对应的图层父级的id,一般图层管理中使用
34871
+ * @param [options.name = ''] - 对应的图层名称
34830
34872
  */
34831
34873
  declare class MatrixMove2 extends BaseThing {
34832
34874
  constructor(options?: {
@@ -34853,23 +34895,22 @@ declare class MatrixMove2 extends BaseThing {
34853
34895
  readonly isMoveing: boolean;
34854
34896
  }
34855
34897
 
34856
- /**
34857
- * 按XYZ轴旋转方向图上编辑处理类
34858
- * @param [options] - 参数对象,包括以下:
34859
- * @param [options.position] - 坐标位置
34860
- * @param [options.heading = 0] - 方向角 (度数值,0-360度)
34861
- * @param [options.pitch = 0] - 俯仰角(度数值,0-360度)
34862
- * @param [options.roll = 0] - 翻滚角(度数值,0-360度)
34863
- * @param [options.radius = 200] - 半径
34864
- * @param [options.onChange] - 旋转了方向后的回调方法
34865
- * @param [options.id = createGuid()] - 对象的id标识
34866
- * @param [options.enabled = true] - 对象的启用状态
34867
- * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
34868
- * @param [options.pid = -1] - 量算对应的图层父级的id,一般图层管理中使用
34869
- * @param [options.name = ''] - 量算对应的图层名称
34870
- */
34871
- declare class MatrixRotate extends MatrixMove {
34872
- constructor(options?: {
34898
+ declare namespace MatrixRotate {
34899
+ /**
34900
+ * 按轴轴旋类 构造参数
34901
+ * @property [position] - 坐标位置
34902
+ * @property [heading = 0] - 方向角 (度数值,0-360度)
34903
+ * @property [pitch = 0] - 俯仰角(度数值,0-360度)
34904
+ * @property [roll = 0] - 翻滚角(度数值,0-360度)
34905
+ * @property [radius = 200] - 半径
34906
+ * @property [onChange] - 旋转了方向后的回调方法
34907
+ * @property [id = createGuid()] - 对象的id标识
34908
+ * @property [enabled = true] - 对象的启用状态
34909
+ * @property [eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
34910
+ * @property [pid = -1] - 对应的图层父级的id,一般图层管理中使用
34911
+ * @property [name = ''] - 对应的图层名称
34912
+ */
34913
+ type Options = {
34873
34914
  position?: LngLatPoint | Cesium.Cartesian3 | number[];
34874
34915
  heading?: number;
34875
34916
  pitch?: number;
@@ -34881,7 +34922,15 @@ declare class MatrixRotate extends MatrixMove {
34881
34922
  eventParent?: BaseClass | boolean;
34882
34923
  pid?: string | number;
34883
34924
  name?: string;
34884
- });
34925
+ };
34926
+ }
34927
+
34928
+ /**
34929
+ * 按轴轴旋 坐标点编辑处理类
34930
+ * @param [options] - 参数对象
34931
+ */
34932
+ declare class MatrixRotate extends MatrixMove {
34933
+ constructor(options?: MatrixRotate.Options);
34885
34934
  /**
34886
34935
  * 四周方向角,0-360度角度值
34887
34936
  */