mars3d 3.6.13 → 3.6.15

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.6.13
5
- * 编译日期:2023-11-21 09:41:28
4
+ * 版本信息:v3.6.15
5
+ * 编译日期:2023-12-05 19:26:47
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2023-03-17
8
8
  */
package/dist/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.6.13
6
- * 编译日期:2023-11-21 09:41:28
5
+ * 版本信息:v3.6.15
6
+ * 编译日期:2023-12-05 19:26:47
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2023-03-17
9
9
  */
@@ -120,6 +120,36 @@ declare enum CRS {
120
120
  CGCS2000_GK_CM_6 = "CGCS2000_GK_CM_6"
121
121
  }
122
122
 
123
+ /**
124
+ * 矢量对象编辑时 拖拽点类型
125
+ */
126
+ declare enum EditPointType {
127
+ /**
128
+ * 位置控制
129
+ */
130
+ Control = 1,
131
+ /**
132
+ * 整体平移(如线面)
133
+ */
134
+ MoveAll = 2,
135
+ /**
136
+ * 辅助增加新点
137
+ */
138
+ AddMidPoint = 3,
139
+ /**
140
+ * 上下移动高度
141
+ */
142
+ MoveHeight = 4,
143
+ /**
144
+ * 辅助修改属性(如半径)
145
+ */
146
+ EditAttr = 5,
147
+ /**
148
+ * 旋转角度修改
149
+ */
150
+ EditRotation = 6
151
+ }
152
+
123
153
  /**
124
154
  * 特效类型
125
155
  */
@@ -3873,12 +3903,14 @@ declare class SnowCoverEffect extends BaseEffect {
3873
3903
  * @param [options] - 参数对象,包括以下:
3874
3904
  * @param [options.enabled = true] - 对象的启用状态
3875
3905
  * @param [options.speed = 10] - 速度
3906
+ * @param [options.scale = 10.0] - 粒子大小
3876
3907
  * @param [options.maxHeight = 9000] - 最大高度,限定超出该高度不显示积雪效果
3877
3908
  */
3878
3909
  declare class SnowEffect extends BaseEffect {
3879
3910
  constructor(options?: {
3880
3911
  enabled?: boolean;
3881
3912
  speed?: number;
3913
+ scale?: number;
3882
3914
  maxHeight?: number;
3883
3915
  });
3884
3916
  /**
@@ -3889,6 +3921,10 @@ declare class SnowEffect extends BaseEffect {
3889
3921
  * 速度
3890
3922
  */
3891
3923
  speed: number;
3924
+ /**
3925
+ * 粒子大小
3926
+ */
3927
+ scale: number;
3892
3928
  }
3893
3929
 
3894
3930
  /**
@@ -4513,7 +4549,7 @@ declare class BaseCombine extends BasePrimitive {
4513
4549
  noAlt?: boolean;
4514
4550
  }): any;
4515
4551
  /**
4516
- * 更新颜色, 只对纯色材质有效,其他材质无法单独更新,需要setStle方法调用(全部更新渲染)。
4552
+ * 更新颜色, 只对纯色材质有效,其他材质无法单独更新,需要setStyle方法调用(全部更新渲染)。
4517
4553
  * @param style - 样式信息
4518
4554
  * @param [style.color = "#ffffff"] - 颜色
4519
4555
  * @param [style.opacity = 1.0] - 透明度,取值范围:0.0-1.0
@@ -8065,7 +8101,7 @@ declare namespace Popup {
8065
8101
  * @property [clampToGround = false] - 是否贴地
8066
8102
  * @property [css_transform_origin = 'left bottom 0'] - DIV的 transform-origin css值
8067
8103
  * @property [timeRender] - 是否实时刷新全部HTML,此时需要绑定html需传入回调方法。
8068
- * @property [autoCenter] - 当气泡窗口有部分在地图之外时是否自动进行居中 (目前仅俯视时准确定位)
8104
+ * @property [autoCenter] - 当气泡窗口有部分在地图之外时是否自动将地图进行居中 (目前仅俯视时准确定位)
8069
8105
  * @property [maxWidth = 700] - 弹窗的最大宽度,单位为像素
8070
8106
  * @property [minWidth = 50] - 弹窗的最小宽度,单位为像素
8071
8107
  * @property [maxHeight = 550] - 如果设置,如果内容超过此高度时,则在弹出窗口中显示滚动条。
@@ -30275,7 +30311,7 @@ declare class MapVLayer extends BaseLayer {
30275
30311
  }
30276
30312
 
30277
30313
  /**
30278
- * 视锥体的类型
30314
+ * 视椎体的类型
30279
30315
  */
30280
30316
  declare enum SensorType {
30281
30317
  /**
@@ -30751,7 +30787,7 @@ declare class ConicSensor extends BasePointPrimitive {
30751
30787
  */
30752
30788
  readonly matrix: Cesium.Matrix4;
30753
30789
  /**
30754
- * 获取视锥体射出length半径长度后的点坐标
30790
+ * 获取视椎体射出length半径长度后的点坐标
30755
30791
  */
30756
30792
  readonly rayPosition: Cesium.Cartesian3;
30757
30793
  /**
@@ -30933,7 +30969,7 @@ declare class RectSensor extends BasePointPrimitive {
30933
30969
  */
30934
30970
  readonly matrix: Cesium.Matrix4;
30935
30971
  /**
30936
- * 获取视锥体射出length半径长度后的点坐标
30972
+ * 获取视椎体射出length半径长度后的点坐标
30937
30973
  */
30938
30974
  readonly rayPosition: Cesium.Cartesian3;
30939
30975
  /**
@@ -30982,7 +31018,7 @@ declare namespace Satellite {
30982
31018
  }
30983
31019
 
30984
31020
  /**
30985
- * 卫星综合体 对象类【统一管理卫星模型、轨道、视锥体】,
31021
+ * 卫星综合体 对象类【统一管理卫星模型、轨道、视椎体】,
30986
31022
  * 【需要引入 mars3d-space 插件库】
30987
31023
  * @param options - 参数对象,包括以下:
30988
31024
  * @param [options.tle1] - 卫星两行轨道数(TLE) 的tle1, 示例:'1 39150U 13018A 18309.20646405 .00000034 00000-0 12253-4 0 9993'
@@ -30996,7 +31032,7 @@ declare namespace Satellite {
30996
31032
  * @param [options.label] - 设置是否显示 文本 和对应的样式
30997
31033
  * @param [options.billboard] - 设置是否显示 图标点 和对应的样式
30998
31034
  * @param [options.point] - 设置是否显示 像素点 和对应的样式
30999
- * @param [options.cone] - 设置是否显示 卫星视锥体 和对应的样式
31035
+ * @param [options.cone] - 设置是否显示 卫星视椎体 和对应的样式
31000
31036
  * @param [options.path] - 设置是否显示 卫星轨迹路线 和对应的样式,属性还包含:<br />
31001
31037
  * // * @param {boolean} [options.path.closure=false] 是否闭合轨道圆
31002
31038
  * @param [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,创建Graphic后也可以openHighlight、closeHighlight方法来手动调用
@@ -31004,7 +31040,7 @@ declare namespace Satellite {
31004
31040
  * @param [highlight.label] - 设置是否显示 文本 和对应的样式
31005
31041
  * @param [highlight.billboard] - 设置是否显示 图标点 和对应的样式
31006
31042
  * @param [highlight.point] - 设置是否显示 像素点 和对应的样式
31007
- * @param [highlight.cone] - 设置是否显示 卫星视锥体 和对应的样式
31043
+ * @param [highlight.cone] - 设置是否显示 卫星视椎体 和对应的样式
31008
31044
  * @param [highlight.path] - 设置是否显示 卫星轨迹路线 和对应的样式
31009
31045
  * @param [options.frameRate = 1] - 多少帧获取一次数据。用于控制效率,如果卡顿就把该数值调大一些。
31010
31046
  * @param [options.id = createGuid()] - 矢量数据id标识
@@ -31047,7 +31083,7 @@ declare class Satellite extends Route {
31047
31083
  */
31048
31084
  readonly timeRange: any;
31049
31085
  /**
31050
- * 卫星视锥体(圆锥或四凌锥) 子对象
31086
+ * 卫星视椎体(圆锥或四凌锥) 子对象
31051
31087
  */
31052
31088
  cone: SatelliteSensor | SatelliteSensor[] | any;
31053
31089
  /**
@@ -31059,7 +31095,7 @@ declare class Satellite extends Route {
31059
31095
  */
31060
31096
  angle2: number;
31061
31097
  /**
31062
- * 是否显示视锥体
31098
+ * 是否显示视椎体
31063
31099
  */
31064
31100
  coneShow: boolean;
31065
31101
  /**
@@ -31109,7 +31145,7 @@ declare class Satellite extends Route {
31109
31145
 
31110
31146
  declare namespace SatelliteSensor {
31111
31147
  /**
31112
- * 卫星视锥体(圆锥或四凌锥) 支持的样式信息
31148
+ * 卫星视椎体(圆锥或四凌锥) 支持的样式信息
31113
31149
  * @property [sensorType = SatelliteSensor.Type.Rect] - 视锥类型
31114
31150
  * @property [angle1 = 5] - 圆锥的角度或者四棱锥的第一个角度,半场角度,取值范围 0.1-89.9
31115
31151
  * @property [angle2 = 5] - 四棱锥的第二个角度,半场角度,取值范围 0.1-89.9
@@ -31118,7 +31154,7 @@ declare namespace SatelliteSensor {
31118
31154
  * @property [heading = 0] - 方向角 (角度值 0-360)
31119
31155
  * @property [pitch = 0] - 俯仰角(角度值 0-360)
31120
31156
  * @property [roll = 0] - 翻滚角(角度值 0-360)
31121
- * @property [color = Cesium.Color.YELLOW] - 颜色
31157
+ * @property [color = "rgba(255,255,0,0.4)"] - 颜色
31122
31158
  * @property [opacity = 1.0] - 透明度, 取值范围:0.0-1.0
31123
31159
  * @property [outline = false] - 是否显示边线
31124
31160
  * @property [outlineColor = color] - 边线颜色
@@ -31148,7 +31184,7 @@ declare namespace SatelliteSensor {
31148
31184
  closed?: boolean;
31149
31185
  };
31150
31186
  /**
31151
- * 视锥体类型
31187
+ * 视椎体类型
31152
31188
  */
31153
31189
  enum Type {
31154
31190
  Conic,
@@ -31233,7 +31269,7 @@ declare class SatelliteSensor extends BasePointPrimitive {
31233
31269
  */
31234
31270
  readonly matrix: Cesium.Matrix4;
31235
31271
  /**
31236
- * 获取视锥体方向中心射线与地球相交点
31272
+ * 获取视椎体方向中心射线与地球相交点
31237
31273
  */
31238
31274
  readonly groundPosition: Cesium.Cartesian3;
31239
31275
  /**
@@ -34300,7 +34336,7 @@ declare class TilesetBoxClip extends BaseThing {
34300
34336
  * @param options.layer - 需要裁剪的对象(3dtiles图层)
34301
34337
  * @param [options.area] - 多区域数组对象, 示例: [{ positions: [[108.959062, 34.220134, 397], [108.959802, 34.220147, 397], [108.959106, 34.21953, 398]] }]
34302
34338
  * @param [options.clipOutSide = false] - 是否外裁剪
34303
- * @param [options.precise = false] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重
34339
+ * @param [options.precise = true] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重
34304
34340
  * @param [options.id = createGuid()] - 对象的id标识
34305
34341
  * @param [options.enabled = true] - 对象的启用状态
34306
34342
  * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
@@ -34322,7 +34358,7 @@ declare class TilesetClip extends TilesetEditBase {
34322
34358
  * @param [options] - 参数对象,包括以下:
34323
34359
  * @param options.layer - 需要模型分析的对象(3dtiles图层)
34324
34360
  * @param [options.area] - 多区域数组对象, 示例: [{ positions: [[108.959062, 34.220134, 397], [108.959802, 34.220147, 397], [108.959106, 34.21953, 398]] }]
34325
- * @param [options.precise = false] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重
34361
+ * @param [options.precise = true] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重
34326
34362
  * @param [options.id = createGuid()] - 对象的id标识
34327
34363
  * @param [options.enabled = true] - 对象的启用状态
34328
34364
  * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
@@ -34418,7 +34454,7 @@ declare class TilesetEditBase extends BaseThing {
34418
34454
  * @param [options.area] - 多区域数组对象, 示例: [{ positions: [[108.959062, 34.220134, 397], [108.959802, 34.220147, 397], [108.959106, 34.21953, 398]] }]
34419
34455
  * @param [options.editHeight] - 模型基准高度(单位:米),基于压平/淹没区域最低点高度的纠偏,也支持定义在模型图层中
34420
34456
  * @param [options.raise = true] - 是否开启区域抬高
34421
- * @param [options.precise = false] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重
34457
+ * @param [options.precise = true] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重
34422
34458
  * @param [options.id = createGuid()] - 对象的id标识
34423
34459
  * @param [options.enabled = true] - 对象的启用状态
34424
34460
  * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
@@ -34491,7 +34527,7 @@ declare namespace TilesetFlood {
34491
34527
  * @param [options.color = new Cesium.Color(0.15, 0.7, 0.95, 0.5)] - 淹没颜色
34492
34528
  * @param [options.floodAll] - 是否对整个模型进行分析
34493
34529
  * @param [options.limitMin = false] - 显示效果中是否不显示最低高度以下的部分颜色
34494
- * @param [options.precise = false] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重
34530
+ * @param [options.precise = true] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重
34495
34531
  * @param [options.id = createGuid()] - 对象的id标识
34496
34532
  * @param [options.enabled = true] - 对象的启用状态
34497
34533
  * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
@@ -35360,25 +35396,31 @@ declare namespace DomUtil {
35360
35396
  */
35361
35397
  declare namespace DrawUtil {
35362
35398
  /**
35363
- * 拖拽点分类
35364
- */
35365
- const PointType: number;
35366
- /**
35367
- * 拖拽点颜色
35399
+ * 根据类型设置编辑点的样式
35368
35400
  * @example
35369
- * mars3d.DrawUtil.PointColor.Control = '#1c197d' //位置控制拖拽点
35370
- * mars3d.DrawUtil.PointColor.MoveAll = '#8c003a' //整体平移(如线面)拖拽点
35371
- * mars3d.DrawUtil.PointColor.MoveHeight = '#9500eb' //上下移动高度的拖拽点
35372
- * mars3d.DrawUtil.PointColor.EditAttr = '#f73163' //辅助修改属性(如半径)的拖拽点
35373
- * mars3d.DrawUtil.PointColor.AddMidPoint = 'rgba(4,194,201,0.3)' //增加新点,辅助拖拽点
35401
+ * mars3d.DrawUtil.setEditPointStyle(mars3d.EditPointType.Control, {
35402
+ * type: mars3d.GraphicType.billboardP, // 支持设置type指定编辑点类型
35403
+ * image: "img/icon/move.png",
35404
+ * horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
35405
+ * verticalOrigin: Cesium.VerticalOrigin.CENTER
35406
+ * })
35407
+ * @param type - 类型
35408
+ * @param newStyle - 样式
35409
+ * @returns 无
35374
35410
  */
35375
- const PointColor: Cesium.Color;
35411
+ function setEditPointStyle(type: EditPointType | number, newStyle: PointPrimitive.StyleOptions | any | any): void;
35376
35412
  /**
35377
- * 设置编辑点的样式(color颜色除外)
35378
- * @param value - 像素
35413
+ * 更新所有编辑点的样式
35414
+ * @param style - 样式
35379
35415
  * @returns 无
35380
35416
  */
35381
- function setPointStyle(value: PointPrimitive.StyleOptions | any): void;
35417
+ function setAllEditPointStyle(style: PointPrimitive.StyleOptions | any | any): void;
35418
+ /**
35419
+ * 根据类型获取编辑点样式
35420
+ * @param [type = mars3d.EditPointType.Control] - 类型
35421
+ * @returns 样式对象
35422
+ */
35423
+ function getEditPointStyle(type?: EditPointType | number): PointPrimitive.StyleOptions | any | any;
35382
35424
  }
35383
35425
 
35384
35426
  /**
@@ -37701,7 +37743,7 @@ declare namespace thing {
37701
37743
 
37702
37744
  export {
37703
37745
  name, update, version, proj4, Tle,
37704
- BaseClass, BaseThing, LngLatPoint, LngLatArray, GroundSkyBox, MultipleSkyBox, LocalWorldTransform, CRS, ChinaCRS, EventType, State, Token, ColorRamp, MaterialType, GraphicType, LayerType, ControlType, EffectType, Lang, MoveType, ClipType, Icon,
37746
+ BaseClass, BaseThing, LngLatPoint, LngLatArray, GroundSkyBox, MultipleSkyBox, LocalWorldTransform, CRS, ChinaCRS, EventType, State, Token, ColorRamp, MaterialType, GraphicType, LayerType, ControlType, EffectType, Lang, MoveType, ClipType, Icon, EditPointType,
37705
37747
  DomUtil, MeasureUtil, PointUtil, PolyUtil, PointTrans, Util, Log, MaterialUtil, GraphicUtil, DrawUtil, LayerUtil, ControlUtil, EffectUtil,
37706
37748
  BaseMaterialConver, BaseStyleConver, BillboardStyleConver, CloudStyleConver, BoxStyleConver, CircleStyleConver, CorridorStyleConver, CylinderStyleConver, DivGraphicStyleConver, EllipsoidStyleConver, LabelStyleConver, ModelStyleConver, PathStyleConver, PlaneStyleConver, PointStyleConver, PolygonStyleConver, PolylineStyleConver, PolylineVolumeStyleConver, RectangleStyleConver, RectangularSensorStyleConver, WallStyleConver,
37707
37749
  material, graphic, edit, provider, layer, thing, effect, control, query,