mars3d 3.3.10 → 3.3.11

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.3.10
5
- * 编译日期:2022-05-23 18:16:48
4
+ * 版本信息:v3.3.11
5
+ * 编译日期:2022-05-29 09:12:31
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2022-02-01
8
8
  */
@@ -24,7 +24,7 @@
24
24
  }
25
25
  /**隐藏的div对象,如 DivBillboardEntity、HeatLayer 等*/
26
26
  .mars3d-hideDiv {
27
- z-index: -1;
27
+ z-index: -99;
28
28
  position: absolute !important;
29
29
  top: 0;
30
30
  left: 0;
@@ -881,9 +881,6 @@
881
881
  transform: scale(1, 1);
882
882
  }
883
883
  }
884
- .mars3d-popup-background {
885
- background: rgba(41, 84, 141, 0.9) !important;
886
- }
887
884
  .mars3d-popup-btn {
888
885
  padding: 3px 10px;
889
886
  border: 1px solid #209ffd;
package/dist/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.3.10
6
- * 编译日期:2022-05-23 18:16:48
5
+ * 版本信息:v3.3.11
6
+ * 编译日期:2022-05-29 09:12:31
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2022-02-01
9
9
  */
@@ -187,6 +187,10 @@ declare enum EventType {
187
187
  * 更新了对象
188
188
  */
189
189
  update = "update",
190
+ /**
191
+ * 更新了坐标位置
192
+ */
193
+ updatePosition = "updatePosition",
190
194
  /**
191
195
  * 更新了style对象
192
196
  */
@@ -1081,7 +1085,7 @@ declare enum LayerType {
1081
1085
  * width: 5,
1082
1086
  * material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineFlow, {
1083
1087
  * color: '#00ff00',
1084
- * image: 'img/textures/LinkPulse.png',
1088
+ * image: 'img/textures/line-pulse.png',
1085
1089
  * speed: 5,
1086
1090
  * }),
1087
1091
  * },
@@ -1098,7 +1102,7 @@ declare enum LayerType {
1098
1102
  * width: 5,
1099
1103
  * material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
1100
1104
  * color: '#1a9850',
1101
- * image: 'img/textures/ArrowOpacity.png',
1105
+ * image: 'img/textures/line-arrow.png',
1102
1106
  * speed: 10,
1103
1107
  * }),
1104
1108
  * },
@@ -5936,6 +5940,10 @@ declare class Popup extends DivGraphic {
5936
5940
  * @returns DIV点对象
5937
5941
  */
5938
5942
  static fromDraw(layer: GraphicLayer, options: any): DivGraphic;
5943
+ /**
5944
+ * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
5945
+ */
5946
+ position: Cesium.Cartesian3;
5939
5947
  }
5940
5948
 
5941
5949
  declare namespace Tooltip {
@@ -6402,8 +6410,9 @@ declare class BasePointEntity extends BaseEntity {
6402
6410
  /**
6403
6411
  * 按Cesium.CallbackProperty的方式 更新坐标(更加平滑)
6404
6412
  * @param position - 坐标
6413
+ * @returns 当前坐标
6405
6414
  */
6406
- setCallbackPosition(position: string | any[] | any | Cesium.Cartesian3 | any): void;
6415
+ setCallbackPosition(position: string | any[] | any | Cesium.Cartesian3 | any): Cesium.Cartesian3;
6407
6416
  /**
6408
6417
  * 显示隐藏状态
6409
6418
  */
@@ -6544,8 +6553,9 @@ declare class BasePolyEntity extends BaseEntity {
6544
6553
  /**
6545
6554
  * 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
6546
6555
  * @param positions - 坐标数组
6556
+ * @returns 当前坐标集合
6547
6557
  */
6548
- setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]): void;
6558
+ setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]): Cesium.Cartesian3[];
6549
6559
  }
6550
6560
 
6551
6561
  declare namespace BillboardEntity {
@@ -9519,8 +9529,9 @@ declare class PolygonEntity extends BasePolyEntity {
9519
9529
  /**
9520
9530
  * 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
9521
9531
  * @param positions - 坐标数组
9532
+ * @returns 当前坐标集合
9522
9533
  */
9523
- setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]): void;
9534
+ setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]): Cesium.Cartesian3[];
9524
9535
  }
9525
9536
 
9526
9537
  declare namespace PolylineEntity {
@@ -15899,7 +15910,6 @@ declare namespace DynamicRoamLine {
15899
15910
  * @param options - 参数对象,包括以下:
15900
15911
  * @param [options.model] - 设置是否显示 gltf模型 和对应的样式, 还额外包括:<br />
15901
15912
  * // * @param {Boolean} [options.model.noPitchRoll] 设置为true时,可以设置模型只动态更改方向,内部固定模型的Pitch和Roll方向值为0
15902
- * @param [options.model] - 设置是否显示 gltf模型 和对应的样式
15903
15913
  * @param [options.label] - 设置是否显示 文本 和对应的样式
15904
15914
  * @param [options.billboard] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。
15905
15915
  * @param [options.point] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。
@@ -15944,7 +15954,6 @@ declare namespace DynamicRoamLine {
15944
15954
  */
15945
15955
  declare class DynamicRoamLine extends BaseRoamLine {
15946
15956
  constructor(options: {
15947
- model?: ModelEntity.StyleOptions | any;
15948
15957
  model?: ModelEntity.StyleOptions | any;
15949
15958
  label?: LabelEntity.StyleOptions | any;
15950
15959
  billboard?: BillboardEntity.StyleOptions | any;
@@ -27646,6 +27655,9 @@ declare namespace widget {
27646
27655
  * uri: "widgets/bookmark/widget.js",
27647
27656
  * autoDisable: true,
27648
27657
  * testdata:'测试数据1987', //传数据进widget内部,widget内部使用this.config.testdata获取到传的数据
27658
+ * success:function(thisWidget){
27659
+ * //创建完成的回调方法
27660
+ * }
27649
27661
  * });
27650
27662
  * @param item - 指widget模块的uri 或 指模块的配置参数,当有配置参数时,参数优先级是:
27651
27663
  * 【activate方法传入的配置 > init方法传入的配置(widget.json) > widget.js内部配置的】