mars3d 3.7.6 → 3.7.7

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.6
5
- * 编译日期:2024-03-12 20:53:43
4
+ * 版本信息:v3.7.7
5
+ * 编译日期:2024-03-19 15:55:13
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.6
6
- * 编译日期:2024-03-12 20:53:43
5
+ * 版本信息:v3.7.7
6
+ * 编译日期:2024-03-19 15:55:13
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2024-01-15
9
9
  */
@@ -2080,7 +2080,6 @@ declare class ClockAnimate extends BaseControl {
2080
2080
  /**
2081
2081
  * 导航球控件
2082
2082
  * @param [options] - 参数对象,包括以下:
2083
- * @param [options.rotation = true] - 是否启用调整俯仰角(按中间区域往四周拖拽)
2084
2083
  * @param [options.top] - css定位top位置, 如 top: '10px'
2085
2084
  * @param [options.bottom] - css定位bottom位置,支持配置'toolbar'自动跟随cesium-viewer-toolbar
2086
2085
  * @param [options.left] - css定位left位置
@@ -2091,6 +2090,8 @@ declare class ClockAnimate extends BaseControl {
2091
2090
  * @param [options.outerSvg] - 外部圆环区域的SVG图片
2092
2091
  * @param [options.innerSvg] - 中心球区域的SVG图片
2093
2092
  * @param [options.rotationArcSvg] - rotation为true时,按中间区域往四周拖拽时,调整俯仰角的对外部圆环的半弧遮盖SVG图片
2093
+ * @param [options.rotation = true] - 是否启用调整俯仰角(按中间区域往四周拖拽)
2094
+ * @param [options.clickToNorth = true] - 是否启用双击外部圆环区域视角调整为正北
2094
2095
  * @param [options.id = createGuid()] - 对象的id标识
2095
2096
  * @param [options.enabled = true] - 对象的启用状态
2096
2097
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container
@@ -2099,7 +2100,6 @@ declare class ClockAnimate extends BaseControl {
2099
2100
  */
2100
2101
  declare class Compass extends BaseControl {
2101
2102
  constructor(options?: {
2102
- rotation?: boolean;
2103
2103
  top?: string;
2104
2104
  bottom?: string;
2105
2105
  left?: string;
@@ -2110,6 +2110,8 @@ declare class Compass extends BaseControl {
2110
2110
  outerSvg?: string;
2111
2111
  innerSvg?: string;
2112
2112
  rotationArcSvg?: string;
2113
+ rotation?: boolean;
2114
+ clickToNorth?: boolean;
2113
2115
  id?: string | number;
2114
2116
  enabled?: boolean;
2115
2117
  parentContainer?: HTMLElement;
@@ -22427,7 +22429,23 @@ declare namespace I3SLayer {
22427
22429
  * @param [options.traceFetches = false] - 调试选项。当为true时,每当获取I3S tile时记录一条消息。
22428
22430
  * @param [options.geoidTiledTerrainProvider] - arcgis地形服务。如果定义了,I3S模型将基于此地形服务的偏移量进行移位。需要将与重力相关高度的I3S数据集定位在正确的位置。
22429
22431
  *
22430
- * //以下是3dtiles图层参数
22432
+ * //以下是TilesetLayer图层参数
22433
+ * @param [options.position] - 自定义新的中心点位置(移动模型)
22434
+ * @param [options.position.lng] - 经度值, -180 至 180
22435
+ * @param [options.position.lat] - 纬度值, -90 至 90
22436
+ * @param [options.position.alt] - 高度值(单位:米)
22437
+ * @param [options.position.alt_offset] - 相对于模型本身高度的偏移值(单位:米) ,如果有alt时已alt优先。
22438
+ * @param [options.rotation] - 自定义旋转方向(旋转模型)
22439
+ * @param options.rotation.x - X方向,角度值0-360
22440
+ * @param options.rotation.y - Y方向,角度值0-360
22441
+ * @param options.rotation.z - 四周方向,角度值0-360
22442
+ * @param [options.scale = 1] - 自定义缩放比例,整体等比例缩放
22443
+ * @param [options.scaleX = 1] - 单独自定义缩放X轴方向比例
22444
+ * @param [options.scaleY = 1] - 单独自定义缩放Y轴方向比例
22445
+ * @param [options.scaleZ = 1] - 单独自定义缩放Z轴方向比例
22446
+ *
22447
+ *
22448
+ * //以下是Cesium3DTileset参数
22431
22449
  * @param [options.maximumScreenSpaceError = 16] - 用于驱动细化细节级别的最大屏幕空间错误。可以简单理解为:数值加大,能让最终成像变模糊。
22432
22450
  * @param [options.cacheBytes = 536870912] - 如果缓存包含当前视图不需要的块,则块缓存将被修剪到的大小(以字节为单位)。
22433
22451
  * @param [options.maximumCacheOverflowBytes = 536870912] - 如果当前视图需要超过{@link Cesium3DTileset#cacheBytes},则允许缓存净空的最大额外内存(以字节为单位)。
@@ -22499,6 +22517,21 @@ declare class I3SLayer extends BaseGraphicLayer {
22499
22517
  url: string | Cesium.Resource;
22500
22518
  traceFetches?: boolean;
22501
22519
  geoidTiledTerrainProvider?: any | Cesium.ArcGISTiledElevationTerrainProvider;
22520
+ position?: {
22521
+ lng?: number;
22522
+ lat?: number;
22523
+ alt?: number;
22524
+ alt_offset?: number;
22525
+ };
22526
+ rotation?: {
22527
+ x: number;
22528
+ y: number;
22529
+ z: number;
22530
+ };
22531
+ scale?: number;
22532
+ scaleX?: number;
22533
+ scaleY?: number;
22534
+ scaleZ?: number;
22502
22535
  maximumScreenSpaceError?: number;
22503
22536
  cacheBytes?: number;
22504
22537
  maximumCacheOverflowBytes?: number;
@@ -31677,7 +31710,8 @@ declare class ConicSensor extends BasePointPrimitive {
31677
31710
 
31678
31711
  declare namespace FixedJammingRadar {
31679
31712
  /**
31680
- * 内置固定算法的干扰雷达, 对应的干扰机参数
31713
+ * 内置固定算法的干扰雷达, 对应的干扰机参数,
31714
+ * 【需要引入 mars3d-space 插件库】
31681
31715
  * @property [id] - 唯一标识
31682
31716
  * @property [position] - [111, 41, 40000] 干扰机经纬度位置
31683
31717
  * @property [pji] - 干扰机发射功率
@@ -31834,7 +31868,8 @@ declare namespace JammingRadar {
31834
31868
  }
31835
31869
 
31836
31870
  /**
31837
- * 干扰雷达 矢量对象
31871
+ * 干扰雷达 矢量对象,
31872
+ * 【需要引入 mars3d-space 插件库】
31838
31873
  * @param options - 参数对象,包括以下:
31839
31874
  * @param [options.position] - 坐标位置
31840
31875
  * @param options.vertexs - 顶点位置信息二维数组,第1层为平面一圈,第2层为竖直方向各圈,其中值包括:平面上的方向(角度值) heading、垂直上的方向(角度值) pitch、 半径(单位:米)radius
@@ -33955,6 +33990,7 @@ declare namespace Shadows {
33955
33990
  /**
33956
33991
  * 日照分析
33957
33992
  * @param [options] - 参数对象,包括以下:
33993
+ * @param [options.darkness = 0.3] - 阴影透明度, 0-1,值越大越透明
33958
33994
  * @param [options.multiplier = 1600] - 时钟倍率,控制速度
33959
33995
  * @param [options.time] - 当前时间
33960
33996
  * @param [options.terrain = true] - 是否启用地形的阴影效果,在平原地区或无地形时可以关闭
@@ -33965,6 +34001,7 @@ declare namespace Shadows {
33965
34001
  */
33966
34002
  declare class Shadows extends BaseThing {
33967
34003
  constructor(options?: {
34004
+ darkness?: number;
33968
34005
  multiplier?: number;
33969
34006
  time?: Date;
33970
34007
  terrain?: boolean;
@@ -35126,6 +35163,11 @@ declare class TerrainEditBase extends BaseThing {
35126
35163
  };
35127
35164
  id?: number | string;
35128
35165
  }): any;
35166
+ /**
35167
+ * 转为Json简单对象,用于存储后再传参加载
35168
+ * @returns Json简单对象
35169
+ */
35170
+ toJSON(): any;
35129
35171
  }
35130
35172
 
35131
35173
  /**