mars3d 3.4.19 → 3.4.21

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.4.19
5
- * 编译日期:2022-12-26 19:58:48
4
+ * 版本信息:v3.4.21
5
+ * 编译日期:2023-01-17 20:42:26
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2022-06-01
8
8
  */
package/dist/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.4.19
6
- * 编译日期:2022-12-26 19:58:48
5
+ * 版本信息:v3.4.21
6
+ * 编译日期:2023-01-17 20:42:26
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2022-06-01
9
9
  */
@@ -5225,6 +5225,7 @@ declare class ArcFrustum extends BasePointPrimitive {
5225
5225
  * @param [options.interpolationAlgorithm = Cesium.HermitePolynomialApproximation] - 当interpolation为true时,使用的插值算法,如:Cesium.HermitePolynomialApproximation、Cesium.LagrangePolynomialApproximation、Cesium.LinearApproximation
5226
5226
  * @param [options.interpolationDegree = 2] - 当interpolation为true时,使用的插值程度。
5227
5227
  * @param [options.showStop = true] - 是否在start前或stop后显示矢量对象
5228
+ * @param [options.updateClock = true] - 是否自动更新时钟,多个FixedRoute时或外部手动控制时钟时建议关闭
5228
5229
  * @param options.speed - 轨迹的 速度( 单位:千米/小时)
5229
5230
  * @param [options.timeField] - 当points数组中已有时间值,请传入该值的字段名称,同时speed将失效,已实际传入时间字段为准。
5230
5231
  * @param [options.startTime] - 轨迹的开始时间,默认当前时间
@@ -5283,6 +5284,7 @@ declare class FixedRoute extends Route {
5283
5284
  interpolationAlgorithm?: number;
5284
5285
  interpolationDegree?: Cesium.InterpolationAlgorithm | number;
5285
5286
  showStop?: boolean;
5287
+ updateClock?: boolean;
5286
5288
  speed: any[][] | number;
5287
5289
  timeField?: string;
5288
5290
  startTime?: string | Date | Cesium.JulianDate;
@@ -5618,6 +5620,8 @@ declare namespace Route {
5618
5620
  * @param [options.clampToTileset] - 是否进行贴模型。
5619
5621
  * @param [options.frameRateHeight = 30] - clampToTileset:true时,多少帧计算一次贴模型高度
5620
5622
  * @param [options.objectsToExclude] - clampToTileset:true时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
5623
+ * @param [options.maxHeight] - 限定最高高度,避免计算异常数据
5624
+ * @param [options.minHeight] - 限定最低高度,避免计算异常数据
5621
5625
  * @param [options.camera] - 视角模式设置,包括:
5622
5626
  * @param [options.camera.type] - 视角模式类型,包括:'':无、'gs':跟随视角、'dy':第一视角、'sd':上帝视角
5623
5627
  * @param [options.camera.radius] - 'gs'跟随视角时的 初始俯仰距离值(单位:米)
@@ -5661,6 +5665,8 @@ declare class Route extends BasePointPrimitive {
5661
5665
  clampToTileset?: boolean;
5662
5666
  frameRateHeight?: number;
5663
5667
  objectsToExclude?: any;
5668
+ maxHeight?: number;
5669
+ minHeight?: number;
5664
5670
  camera?: {
5665
5671
  type?: string;
5666
5672
  radius?: number;
@@ -5703,6 +5709,14 @@ declare class Route extends BasePointPrimitive {
5703
5709
  * 模型 子对象
5704
5710
  */
5705
5711
  model: ModelPrimitive;
5712
+ /**
5713
+ * 获取model模型子对象完成解析加载完成的Promise承诺
5714
+ * @example
5715
+ * route.readyPromise.then(function(graphic) {
5716
+ * console.log("load完成", graphic)
5717
+ * })
5718
+ */
5719
+ readonly readyPromise: Promise<ModelEntity | any>;
5706
5720
  /**
5707
5721
  * 圆 子对象
5708
5722
  */
@@ -5732,6 +5746,10 @@ declare class Route extends BasePointPrimitive {
5732
5746
  * 求当前位置射线与地球相交点
5733
5747
  */
5734
5748
  readonly groundPosition: Cesium.Cartesian3;
5749
+ /**
5750
+ * 当前海拔高度值
5751
+ */
5752
+ readonly alt: number;
5735
5753
  /**
5736
5754
  * 开始时间
5737
5755
  */
@@ -16966,6 +16984,7 @@ declare class CzmGeoJsonLayer extends BaseGraphicLayer {
16966
16984
  * @param [options] - 参数对象,包括以下:
16967
16985
  * @param [options.url] - CZML文件或服务url地址
16968
16986
  * @param [options.data] - CZML格式规范数据对象,与url二选一即可。
16987
+ * @param [options.updateClock = true] - 是否自动更新时钟,多个时或外部手动控制时钟时建议关闭
16969
16988
  * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。
16970
16989
  * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
16971
16990
  * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括:
@@ -17003,6 +17022,7 @@ declare class CzmlLayer extends CzmGeoJsonLayer {
17003
17022
  constructor(options?: {
17004
17023
  url?: string;
17005
17024
  data?: any;
17025
+ updateClock?: boolean;
17006
17026
  zIndex?: number;
17007
17027
  popup?: string | Globe.getTemplateHtml_template[] | ((...params: any[]) => any);
17008
17028
  popupOptions?: {
@@ -17040,6 +17060,16 @@ declare class CzmlLayer extends CzmGeoJsonLayer {
17040
17060
  flyTo?: boolean;
17041
17061
  flyToOptions?: any;
17042
17062
  });
17063
+ /**
17064
+ * 更新地图clock时钟 为 当前czml的起止时间
17065
+ * @returns 无
17066
+ */
17067
+ setCzmlTime(): void;
17068
+ /**
17069
+ * 更新地图clock时钟 为 当前时间(还原时间)
17070
+ * @returns 无
17071
+ */
17072
+ setNowTime(): void;
17043
17073
  /**
17044
17074
  * 加载新数据 或 刷新数据
17045
17075
  * @param [newOptions = {}] - 新设定的参数,会与类的构造参数合并。
@@ -18405,6 +18435,10 @@ declare class GraphicLayer extends BaseGraphicLayer {
18405
18435
  * 当加载 DivGraphic 数据的DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。
18406
18436
  */
18407
18437
  pointerEvents: boolean;
18438
+ /**
18439
+ * 获取当前图层中所有对象,用于贴模型分析时,排除的不进行贴模型计算的模型对象
18440
+ */
18441
+ readonly objectsToExclude: any | undefined;
18408
18442
  /**
18409
18443
  * 是否可以调整图层顺序(在同类型图层间)
18410
18444
  */
@@ -18414,6 +18448,16 @@ declare class GraphicLayer extends BaseGraphicLayer {
18414
18448
  * 只对 同类型(Entity/Primitive) + 贴地(clampToGround: true) 矢量对象间有效
18415
18449
  */
18416
18450
  zIndex: number;
18451
+ /**
18452
+ * 将当前图层在map中层级进行 置顶
18453
+ * @returns 无
18454
+ */
18455
+ toTop(): void;
18456
+ /**
18457
+ * 将当前图层在map中层级进行 置底
18458
+ * @returns 无
18459
+ */
18460
+ toBottom(): void;
18417
18461
  /**
18418
18462
  * 图层内的Graphic矢量数据个数
18419
18463
  */
@@ -19847,6 +19891,16 @@ declare class GroupLayer extends BaseGraphicLayer {
19847
19891
  * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象
19848
19892
  */
19849
19893
  getRectangle(isFormat?: boolean): Cesium.Rectangle | any;
19894
+ /**
19895
+ * 将当前图层在map中层级进行 置顶
19896
+ * @returns 无
19897
+ */
19898
+ toTop(): void;
19899
+ /**
19900
+ * 将当前图层在map中层级进行 置底
19901
+ * @returns 无
19902
+ */
19903
+ toBottom(): void;
19850
19904
  }
19851
19905
 
19852
19906
  /**
@@ -20750,6 +20804,16 @@ declare class BaseTileLayer extends BaseLayer {
20750
20804
  * @returns 无
20751
20805
  */
20752
20806
  setOpacity(value: number): void;
20807
+ /**
20808
+ * 将当前图层在map中层级进行 置顶
20809
+ * @returns 无
20810
+ */
20811
+ toTop(): void;
20812
+ /**
20813
+ * 将当前图层在map中层级进行 置底
20814
+ * @returns 无
20815
+ */
20816
+ toBottom(): void;
20753
20817
  /**
20754
20818
  * 绑定鼠标移入或单击后的 对象高亮
20755
20819
  * @param [options] - 高亮的样式,具体见各{@link GraphicType}矢量数据的style参数。
@@ -24080,9 +24144,10 @@ declare class Map extends BaseClass {
24080
24144
  /**
24081
24145
  * 重新设置basemps底图图层,对options.basemaps重新赋值
24082
24146
  * @param arr - 底图图层配置
24147
+ * @param [reload = true] - 是否重新构造
24083
24148
  * @returns 图层数组
24084
24149
  */
24085
- setBasemapsOptions(arr: Map.basemapOptions[]): BaseLayer[];
24150
+ setBasemapsOptions(arr: Map.basemapOptions[], reload?: boolean): BaseLayer[];
24086
24151
  /**
24087
24152
  * 重新设置layers图层,对options.layers重新赋值
24088
24153
  * @param arr - 可以叠加显示的图层配置
@@ -28221,7 +28286,7 @@ declare namespace BaseWidget {
28221
28286
  * @property [autoDisable = true] - 激活其他新插件时,是否自动释放本插件
28222
28287
  * @property [disableOther = true] - 激活本插件时,是否释放其它已激活的插件
28223
28288
  * @property [group] - 配置group后,同group下的widget互斥,打开任意一个会自动释放其他的
28224
- * @property [windowOptions] - 存在弹窗的插件的弹窗相关参数配置,更多参数请参考 [layer弹窗API]{@linkhttps://layui.gitee.io/v2/docs/modules/layer.html} 包括:
28289
+ * @property [windowOptions] - 存在弹窗的插件的弹窗相关参数配置,更多参数请参考 [layer弹窗API]{@link https://layui.gitee.io/v2/docs/modules/layer.html} 包括:
28225
28290
  * @property [windowOptions.width] - 窗口宽度,可以是 像素数字(像素值) 或者 字符串(屏幕宽度百分比),示例:200 或 "20%"
28226
28291
  * @property [windowOptions.height] - 窗口高度,可以是 像素数字(像素值) 或者 字符串(屏幕高度百分比),示例:600 或 "50%"
28227
28292
  * @property [windowOptions.position = 'auto'] - 窗口所在位置坐标,配置字符串可选值:auto垂直水平居中,t顶部,b底部,r右边缘,l左边缘,lt左上角,lb左下角,rt右上角,rb右下角;也可以配置对象: