mars3d 3.7.13 → 3.7.14

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.13
5
- * 编译日期:2024-05-14 21:00:16
4
+ * 版本信息:v3.7.14
5
+ * 编译日期:2024-05-16 17:30:26
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.13
6
- * 编译日期:2024-05-14 21:00:16
5
+ * 版本信息:v3.7.14
6
+ * 编译日期:2024-05-16 17:30:26
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2024-01-15
9
9
  */
@@ -11732,6 +11732,10 @@ declare class ModelEntity extends BasePointEntity {
11732
11732
  * 模型整体的缩放比例
11733
11733
  */
11734
11734
  scale: number;
11735
+ /**
11736
+ * 卷帘对比时,设置所在的屏幕,NONE时不分屏
11737
+ */
11738
+ splitDirection: Cesium.SplitDirection;
11735
11739
  /**
11736
11740
  * 获取模型完成解析加载完成的Promise承诺, 等价于load事件(区别在于load事件必须在load完成前绑定才能监听)。
11737
11741
  * @example
@@ -12796,10 +12800,6 @@ declare class PolylineEntity extends BasePolyEntity {
12796
12800
  * 矢量数据对应的 Cesium内部对象的具体类型对象
12797
12801
  */
12798
12802
  readonly entityGraphic: Cesium.PolylineGraphics;
12799
- /**
12800
- * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象
12801
- */
12802
- positions: Cesium.Cartesian3[];
12803
12803
  }
12804
12804
 
12805
12805
  declare namespace PolylineVolumeEntity {
@@ -18121,6 +18121,10 @@ declare class ModelPrimitive extends BasePointPrimitive {
18121
18121
  * Z轴方向缩放比例
18122
18122
  */
18123
18123
  scaleZ: number;
18124
+ /**
18125
+ * 卷帘对比时,设置所在的屏幕,NONE时不分屏
18126
+ */
18127
+ splitDirection: Cesium.SplitDirection;
18124
18128
  /**
18125
18129
  * 获取模型完成解析加载完成的Promise承诺, 等价于load事件(区别在于load事件必须在load完成前绑定才能监听)。
18126
18130
  */
@@ -21538,6 +21542,7 @@ declare namespace GeoJsonLayer {
21538
21542
  * @param [options.chinaCRS] - 标识数据的国内坐标系(用于自动纠偏或加偏)
21539
21543
  * @param [options.format] - 可以对加载的geojson数据进行格式化或转换操作
21540
21544
  * @param [options.onCreateGraphic] - 解析geojson后,外部自定义方法来创建Graphic对象
21545
+ * @param [options.filter] - 数据筛选方法,方法体内返回false时排除数据 filter:function(feature){return true}
21541
21546
  * @param [options.mask] - 标识是否绘制区域边界的反选遮罩层,也可以传入object配置范围: { xmin: 73.0, xmax: 136.0, ymin: 3.0, ymax: 59.0 }
21542
21547
  * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
21543
21548
  * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0
@@ -21618,6 +21623,7 @@ declare class GeoJsonLayer extends GraphicLayer {
21618
21623
  chinaCRS?: ChinaCRS;
21619
21624
  format?: (...params: any[]) => any;
21620
21625
  onCreateGraphic?: (...params: any[]) => any;
21626
+ filter?: (...params: any[]) => any;
21621
21627
  mask?: boolean | any;
21622
21628
  allowDrillPick?: boolean | ((...params: any[]) => any);
21623
21629
  opacity?: number;
@@ -22198,6 +22204,10 @@ declare class GraphicLayer extends BaseGraphicLayer {
22198
22204
  * 是否允许鼠标穿透拾取
22199
22205
  */
22200
22206
  allowDrillPick: boolean | ((...params: any[]) => any);
22207
+ /**
22208
+ * 卷帘对比时,设置所在的屏幕,NONE时不分屏[仅对Model小模型矢量数据有效]
22209
+ */
22210
+ splitDirection: Cesium.SplitDirection;
22201
22211
  /**
22202
22212
  * 对象从地图上移除的创建钩子方法,
22203
22213
  * 每次remove时都会调用
@@ -22247,6 +22257,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
22247
22257
  * @param [options.simplify.highQuality = true] - 是否花更多的时间用不同的算法创建更高质量的简化
22248
22258
  * @param [options.simplify.mutate = true] - 是否允许对输入进行变异(如果为true,则显著提高性能)
22249
22259
  * @param [options.onEachFeature] - 创建每个Graphic前的回调
22260
+ * @param [options.filter] - 数据筛选方法,方法体内返回false时排除数据 filter:function(feature){return true}
22250
22261
  * @returns 转换后的Graphic对象数组
22251
22262
  */
22252
22263
  loadGeoJSON(geojson: string | any, options?: {
@@ -22261,6 +22272,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
22261
22272
  mutate?: boolean;
22262
22273
  };
22263
22274
  onEachFeature?: (...params: any[]) => any;
22275
+ filter?: (...params: any[]) => any;
22264
22276
  }): BaseGraphic[];
22265
22277
  /**
22266
22278
  * 获取当前图层聚合点列表
@@ -27138,8 +27150,8 @@ declare class WmtsLayer extends BaseTileLayer {
27138
27150
  * <li><code>{x}</code>:切片方案中的图块X坐标,其中0是最西端的图块。</li>
27139
27151
  * <li><code>{y}</code>: 切片方案中的图块Y坐标,其中0是最北的图块。</li>
27140
27152
  * <li><code>{s}</code>:可用的子域之一,用于克服浏览器对每个主机的并发请求数的限制。</li>
27153
+ * <li><code>{reverseY}</code>:切片方案中的图块Y坐标,其中0是最南端的图块,是y的翻转值, 用于TMS服务。</li>
27141
27154
  * <li><code>{reverseX}</code>: 切片方案中的图块X坐标,其中0是最东的图块。</li>
27142
- * <li><code>{reverseY}</code>:切片方案中的图块Y坐标,其中0是最南端的图块,用于TMS服务。</li>
27143
27155
  * <li><code>{reverseZ}</code>:在切片方案中切片的级别,其中级别0是四叉树金字塔的最大级别。为了使用reverseZ,必须定义maximumLevel。</li>
27144
27156
  * <li><code>{westDegrees}</code>: 瓦片图块在测地角度上的西边缘。</li>
27145
27157
  * <li><code>{southDegrees}</code>:瓦片图块在测地角度上的南边缘。</li>
@@ -27687,7 +27699,7 @@ declare class Map extends BaseClass {
27687
27699
  */
27688
27700
  lang: Lang | any;
27689
27701
  /**
27690
- * 鼠标滚轮放大的步长比例,
27702
+ * 鼠标滚轮缩放的步长比例,
27691
27703
  * 初始化时可传参 scene.cameraController.zoomFactor
27692
27704
  */
27693
27705
  zoomFactor: number;
@@ -28677,7 +28689,7 @@ declare namespace Map {
28677
28689
  * @property [cameraController] - 相机操作相关参数
28678
28690
  * @property [cameraController.minimumZoomDistance = 1.0] - 相机最近视距,变焦时相机位置的最小量级(以米为单位),默认为1。该值是相机与地表(含地形)的相对距离。
28679
28691
  * @property [cameraController.maximumZoomDistance = 50000000.0] - 相机最远视距,变焦时相机位置的最大值(以米为单位)。该值是相机与地表(含地形)的相对距离。
28680
- * @property [cameraController.zoomFactor = 3.0] - 滚轮放大倍数,控制鼠标滚轮操作的步长
28692
+ * @property [cameraController.zoomFactor = 3.0] - 鼠标滚轮缩放的步长比例
28681
28693
  * @property [cameraController.minimumCollisionTerrainHeight = 80000] - 最小碰撞高度,低于此高度时绕鼠标键绕圈,大于时绕视图中心点绕圈。
28682
28694
  * @property [cameraController.constrainedAxis = true] - 南北极绕轴心旋转,为false时 解除在南北极区域鼠标操作限制
28683
28695
  * @property [cameraController.enableRotate = true] - 2D和3D视图下,是否允许用户旋转相机
@@ -38511,6 +38523,7 @@ declare namespace Util {
38511
38523
  * @param [options.simplify.highQuality = true] - 是否花更多的时间用不同的算法创建更高质量的简化
38512
38524
  * @param [options.simplify.mutate = true] - 是否允许对输入进行变异(如果为true,则显著提高性能)
38513
38525
  * @param [options.onPointTrans] - 坐标转换方法,可用于对每个坐标做额外转换处理,比如坐标纠偏 onPointTrans: mars3d.PointUtil.getTransFun(mars3d.ChinaCRS.GCJ02, map.chinaCRS)
38526
+ * @param [options.filter] - 数据筛选方法,方法体内返回false时排除数据 filter:function(feature){return true}
38514
38527
  * @returns Graphic构造参数数组(用于创建{@link BaseGraphic}),其中多面的最大一个面会有isMultiMax为true的属性
38515
38528
  */
38516
38529
  function geoJsonToGraphics(geojson: any, options?: {
@@ -38531,6 +38544,7 @@ declare namespace Util {
38531
38544
  mutate?: boolean;
38532
38545
  };
38533
38546
  onPointTrans?: (...params: any[]) => any;
38547
+ filter?: (...params: any[]) => any;
38534
38548
  }): any;
38535
38549
  /**
38536
38550
  * GeoJSON格式的Feature单个对象转为 Graphic构造参数(用于创建{@link BaseGraphic})
@@ -38545,6 +38559,7 @@ declare namespace Util {
38545
38559
  * @param [options.simplify.highQuality = true] - 是否花更多的时间用不同的算法创建更高质量的简化
38546
38560
  * @param [options.simplify.mutate = true] - 是否允许对输入进行变异(如果为true,则显著提高性能)
38547
38561
  * @param [options.onPointTrans] - 坐标转换方法,可用于对每个坐标做额外转换处理
38562
+ * @param [options.filter] - 数据筛选方法,方法体内返回false时排除数据 filter:function(feature){return true}
38548
38563
  * @returns Graphic构造参数(用于创建{@link BaseGraphic}),其中多面的最大一个面会有isMultiMax为true的属性
38549
38564
  */
38550
38565
  function featureToGraphic(feature: any, options?: {
@@ -38557,6 +38572,7 @@ declare namespace Util {
38557
38572
  mutate?: boolean;
38558
38573
  };
38559
38574
  onPointTrans?: (...params: any[]) => any;
38575
+ filter?: (...params: any[]) => any;
38560
38576
  }): any;
38561
38577
  /**
38562
38578
  * 根据当前高度获取地图层级