mars3d 3.3.11 → 3.3.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.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.3.11
6
- * 编译日期:2022-05-29 09:12:31
5
+ * 版本信息:v3.3.14
6
+ * 编译日期:2022-06-14 10:26:40
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2022-02-01
9
9
  */
@@ -2520,7 +2520,7 @@ declare class LngLatPoint {
2520
2520
  * 复制一份对象
2521
2521
  * @returns 无
2522
2522
  */
2523
- clone(): void;
2523
+ clone(): LngLatPoint;
2524
2524
  /**
2525
2525
  * 格式化对象内的经纬度的小数位为6位,高度小数位为1位。
2526
2526
  * @returns 当前对象本身,可以链式调用
@@ -2776,6 +2776,14 @@ declare class BaseEffect extends BaseThing {
2776
2776
  * @returns 无
2777
2777
  */
2778
2778
  remove(destroy?: boolean): void;
2779
+ /**
2780
+ * 触发指定类型的事件。
2781
+ * @param type - 事件类型
2782
+ * @param [data] - 传输的数据或对象,可在事件回调方法中event对象中获取进行使用
2783
+ * @param [propagate = null] - 将事件传播给父类 (用addEventParent设置)
2784
+ * @returns 当前对象本身,可以链式调用
2785
+ */
2786
+ fire(type: EventType | string, data?: any, propagate?: BaseClass): BaseClass;
2779
2787
  }
2780
2788
 
2781
2789
  /**
@@ -3556,6 +3564,14 @@ declare class BaseGraphic extends BaseClass {
3556
3564
  * @returns 无
3557
3565
  */
3558
3566
  destroy(noDel?: boolean): void;
3567
+ /**
3568
+ * 触发指定类型的事件。
3569
+ * @param type - 事件类型
3570
+ * @param [data] - 传输的数据或对象,可在事件回调方法中event对象中获取进行使用
3571
+ * @param [propagate = null] - 将事件传播给父类 (用addEventParent设置)
3572
+ * @returns 当前对象本身,可以链式调用
3573
+ */
3574
+ fire(type: EventType | string, data?: any, propagate?: BaseClass): BaseClass;
3559
3575
  }
3560
3576
 
3561
3577
  /**
@@ -3674,7 +3690,7 @@ declare class BasePolyCombine extends BaseCombine {
3674
3690
  */
3675
3691
  openHighlight(highlightStyle?: any, closeLast?: boolean): void;
3676
3692
  /**
3677
- * 清除已选中的高亮
3693
+ * 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
3678
3694
  * @returns 无
3679
3695
  */
3680
3696
  closeHighlight(): void;
@@ -4023,13 +4039,13 @@ declare class EllipsoidCombine extends BasePolyCombine {
4023
4039
  declare namespace FlatBillboard {
4024
4040
  /**
4025
4041
  * 平放的图标 单个数据对象
4026
- * @property image - 图标URL
4027
4042
  * @property position - 位置坐标
4043
+ * @property image - 图标URL
4028
4044
  * @property [angle = 0] - 图标的角度(角度值,0-360)
4029
4045
  */
4030
4046
  type DataOptions = {
4047
+ position: Cesium.Cartesian3 | LngLatPoint;
4031
4048
  image: string;
4032
- position: Cesium.Cartesian3;
4033
4049
  angle?: number;
4034
4050
  };
4035
4051
  }
@@ -4222,9 +4238,6 @@ declare namespace ModelCombine {
4222
4238
  * @param [options.shadows = ShadowMode.ENABLED] - 指定模型是投射还是接收来自光源的阴影。
4223
4239
  * @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - 指定来自基于图像的漫反射和镜面照明的贡献。
4224
4240
  * @param [options.lightColor] - 光的颜色当遮光模型。当undefined场景的浅色被使用代替。
4225
- * @param [options.luminanceAtZenith = 0.2] - 太阳在天顶的亮度,单位是千坎德拉每平方米,用于这个模型的程序环境地图。
4226
- * @param [options.sphericalHarmonicCoefficients] - 三阶球面调和系数用于基于图像的漫射色彩照明。
4227
- * @param [options.specularEnvironmentMaps] - 一个KTX文件的URL,该文件包含高光照明的立方体映射和复杂的高光mipmaps。
4228
4241
  * @param [options.backFaceCulling = true] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;当为false时,禁用背面剔除。
4229
4242
  * @param [options.debugShowBoundingVolume = false] - 仅供调试。查看模型的包围边界球。
4230
4243
  * @param [options.debugWireframe = false] - 仅供调试。查看模型的三角网线框图。
@@ -4262,9 +4275,6 @@ declare class ModelCombine extends BaseCombine {
4262
4275
  shadows?: Cesium.ShadowMode;
4263
4276
  imageBasedLightingFactor?: Cesium.Cartesian2;
4264
4277
  lightColor?: Cesium.Cartesian3;
4265
- luminanceAtZenith?: number;
4266
- sphericalHarmonicCoefficients?: Cesium.Cartesian3[];
4267
- specularEnvironmentMaps?: string;
4268
4278
  backFaceCulling?: boolean;
4269
4279
  debugShowBoundingVolume?: boolean;
4270
4280
  debugWireframe?: boolean;
@@ -4878,7 +4888,7 @@ declare namespace ParticleSystem {
4878
4888
  }
4879
4889
 
4880
4890
  /**
4881
- * 粒子效果 对象
4891
+ * 粒子效果 对象,该对象暂不支持鼠标交互和拾取
4882
4892
  * @param options - 参数对象,包括以下:
4883
4893
  * @param options.position - 坐标位置
4884
4894
  * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。
@@ -4965,7 +4975,7 @@ declare namespace Tetrahedron {
4965
4975
  }
4966
4976
 
4967
4977
  /**
4968
- * 四面体(顶部正方形+倒立的三角椎体)
4978
+ * 四面体(顶部正方形+倒立的三角椎体),该对象暂不支持鼠标交互和拾取
4969
4979
  * @param options - 参数对象,包括以下:
4970
4980
  * @param options.position - 坐标位置
4971
4981
  * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。
@@ -5030,7 +5040,7 @@ declare namespace Video3D {
5030
5040
  }
5031
5041
 
5032
5042
  /**
5033
- * 视频融合(投射3D,贴物体表面)
5043
+ * 视频融合(投射3D,贴物体表面),该对象暂不支持鼠标交互和拾取
5034
5044
  * @param options - 参数对象,包括以下:
5035
5045
  * @param options.position - 相机位置
5036
5046
  * @param [options.targetPosition] - 目标视点位置,可以替代style中的相机heading\pitch\roll方向和distance距离参数
@@ -5104,7 +5114,7 @@ declare namespace ViewShed {
5104
5114
  }
5105
5115
 
5106
5116
  /**
5107
- * 可视域 矢量对象
5117
+ * 可视域 矢量对象,该对象暂不支持鼠标交互和拾取
5108
5118
  * @param options - 参数对象,包括以下:
5109
5119
  * @param options.position - 相机位置
5110
5120
  * @param [options.targetPosition] - 目标视点位置,可以替代style中的相机heading\pitch\roll方向和distance距离参数
@@ -5163,7 +5173,7 @@ declare class ViewShed extends BasePointPrimitive {
5163
5173
  /**
5164
5174
  * 目标点位置(笛卡尔坐标)
5165
5175
  */
5166
- targetPosition: Cesium.Cartesian3;
5176
+ targetPosition: Cesium.Cartesian3 | LngLatPoint;
5167
5177
  /**
5168
5178
  * 定位至相机的第一视角
5169
5179
  * @returns 无
@@ -5190,7 +5200,7 @@ declare class ViewShed extends BasePointPrimitive {
5190
5200
  /**
5191
5201
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
5192
5202
  */
5193
- position: Cesium.Cartesian3;
5203
+ position: Cesium.Cartesian3 | LngLatPoint;
5194
5204
  }
5195
5205
 
5196
5206
  declare namespace DivBoderLabel {
@@ -5463,7 +5473,7 @@ declare class DivGraphic extends BaseGraphic {
5463
5473
  /**
5464
5474
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
5465
5475
  */
5466
- position: Cesium.Cartesian3;
5476
+ position: Cesium.Cartesian3 | LngLatPoint;
5467
5477
  /**
5468
5478
  * 位置坐标 (笛卡尔坐标)
5469
5479
  */
@@ -5516,6 +5526,12 @@ declare class DivGraphic extends BaseGraphic {
5516
5526
  * 设置或获取当前对象对应的Html
5517
5527
  */
5518
5528
  html: string | HTMLDivElement;
5529
+ /**
5530
+ * 设置透明度
5531
+ * @param value - 透明度
5532
+ * @returns 无
5533
+ */
5534
+ setOpacity(value: number): void;
5519
5535
  /**
5520
5536
  * 更新刷新下DIV的位置,可以外部主动驱动来更新。
5521
5537
  * @returns 当前对象本身,可以链式调用
@@ -5547,7 +5563,7 @@ declare class DivGraphic extends BaseGraphic {
5547
5563
  */
5548
5564
  openHighlight(highlightStyle?: any, closeLast?: boolean): void;
5549
5565
  /**
5550
- * 清除已选中的高亮
5566
+ * 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
5551
5567
  * @returns 无
5552
5568
  */
5553
5569
  closeHighlight(): void;
@@ -5564,6 +5580,15 @@ declare class DivGraphic extends BaseGraphic {
5564
5580
  objectsToExclude?: any;
5565
5581
  callback: Globe.getSurfaceHeight_callback;
5566
5582
  }): BasePointEntity;
5583
+ /**
5584
+ * 获取数据的矩形边界
5585
+ * @param [options] - 控制参数
5586
+ * @param [options.isFormat = false] - 是否格式化,格式化时示例: { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
5587
+ * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象
5588
+ */
5589
+ getRectangle(options?: {
5590
+ isFormat?: boolean;
5591
+ }): Cesium.Rectangle | any;
5567
5592
  /**
5568
5593
  * 开始绘制创建矢量数据,绘制的数据会加载在layer图层。
5569
5594
  * @param layer - 图层
@@ -5943,7 +5968,7 @@ declare class Popup extends DivGraphic {
5943
5968
  /**
5944
5969
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
5945
5970
  */
5946
- position: Cesium.Cartesian3;
5971
+ position: Cesium.Cartesian3 | LngLatPoint;
5947
5972
  }
5948
5973
 
5949
5974
  declare namespace Tooltip {
@@ -6176,7 +6201,7 @@ declare class BaseEntity extends BaseGraphic {
6176
6201
  */
6177
6202
  openHighlight(highlightStyle?: any, closeLast?: boolean): void;
6178
6203
  /**
6179
- * 清除已选中的高亮
6204
+ * 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
6180
6205
  * @returns 无
6181
6206
  */
6182
6207
  closeHighlight(): void;
@@ -6318,7 +6343,7 @@ declare class BasePointEntity extends BaseEntity {
6318
6343
  /**
6319
6344
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
6320
6345
  */
6321
- position: Cesium.Cartesian3;
6346
+ position: Cesium.Cartesian3 | LngLatPoint;
6322
6347
  /**
6323
6348
  * 位置坐标
6324
6349
  */
@@ -7216,7 +7241,7 @@ declare class CircleEntity extends BasePointEntity {
7216
7241
  /**
7217
7242
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
7218
7243
  */
7219
- position: Cesium.Cartesian3;
7244
+ position: Cesium.Cartesian3 | LngLatPoint;
7220
7245
  /**
7221
7246
  * 飞行定位至 数据所在的视角
7222
7247
  * @param [options = {}] - 参数对象:
@@ -7743,7 +7768,7 @@ declare class CylinderEntity extends BasePointEntity {
7743
7768
  /**
7744
7769
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
7745
7770
  */
7746
- position: Cesium.Cartesian3;
7771
+ position: Cesium.Cartesian3 | LngLatPoint;
7747
7772
  }
7748
7773
 
7749
7774
  declare namespace DivBillboardEntity {
@@ -8229,7 +8254,7 @@ declare namespace EllipsoidEntity {
8229
8254
  * @param options.style - 样式信息
8230
8255
  * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
8231
8256
  * @param [options.orientation] - 实体方向
8232
- * @param options.scanPlane - 动态扫描面
8257
+ * @param [options.scanPlane] - 动态扫描面
8233
8258
  * @param [options.availability] - 与该对象关联的可用性(如果有的话)。
8234
8259
  * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
8235
8260
  * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
@@ -8253,7 +8278,7 @@ declare class EllipsoidEntity extends BasePointEntity {
8253
8278
  style: EllipsoidEntity.StyleOptions | any;
8254
8279
  attr?: any;
8255
8280
  orientation?: Cesium.Property;
8256
- scanPlane: EllipsoidEntity.ScanPlaneOptions | EllipsoidEntity.ScanPlaneOptions[];
8281
+ scanPlane?: EllipsoidEntity.ScanPlaneOptions | EllipsoidEntity.ScanPlaneOptions[];
8257
8282
  availability?: Cesium.TimeIntervalCollection;
8258
8283
  description?: Cesium.Property | string;
8259
8284
  viewFrom?: Cesium.Property;
@@ -8306,7 +8331,7 @@ declare class EllipsoidEntity extends BasePointEntity {
8306
8331
  /**
8307
8332
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
8308
8333
  */
8309
- position: Cesium.Cartesian3;
8334
+ position: Cesium.Cartesian3 | LngLatPoint;
8310
8335
  }
8311
8336
 
8312
8337
  declare namespace FontBillboardEntity {
@@ -8653,7 +8678,6 @@ declare namespace ModelEntity {
8653
8678
  * @property [incrementallyLoadTextures = true] - 确定模型加载后纹理是否会继续流进来。
8654
8679
  * @property [runAnimations = true] - 指定模型中指定的glTF动画是否应该启动。
8655
8680
  * @property [clampAnimations = true] - 指定在没有关键帧的情况下,glTF动画是否应该保持最后一个姿势。
8656
- * @property [imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - 指定来自基于图像的漫反射和镜面照明的贡献。
8657
8681
  * @property [lightColor] - 在为模型着色时指定光的颜色的属性。当undefined场景的浅色被使用代替。
8658
8682
  * @property [nodeTransformations] - 一个对象,其中键是节点的名称,值是{@link TranslationRotationScale}属性,描述要应用到该节点的转换。该转换是在节点的现有转换之后(如glTF中指定的那样)应用的,并且不会替换节点的现有转换。
8659
8683
  * @property [articulations] - An object, where keys are composed of an articulation name, a single space, and a stage name, and the values are numeric properties.
@@ -8694,7 +8718,6 @@ declare namespace ModelEntity {
8694
8718
  incrementallyLoadTextures?: boolean;
8695
8719
  runAnimations?: boolean;
8696
8720
  clampAnimations?: boolean;
8697
- imageBasedLightingFactor?: Cesium.Cartesian2;
8698
8721
  lightColor?: Cesium.Color;
8699
8722
  nodeTransformations?: Cesium.PropertyBag | {
8700
8723
  [key: string]: Cesium.TranslationRotationScale;
@@ -8922,7 +8945,11 @@ declare class ModelEntity extends BasePointEntity {
8922
8945
  /**
8923
8946
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
8924
8947
  */
8925
- position: Cesium.Cartesian3;
8948
+ position: Cesium.Cartesian3 | LngLatPoint;
8949
+ /**
8950
+ * 四周方向角,0-360度角度值
8951
+ */
8952
+ heading: number;
8926
8953
  }
8927
8954
 
8928
8955
  declare namespace PathEntity {
@@ -9072,7 +9099,7 @@ declare class PathEntity extends BasePointEntity {
9072
9099
  /**
9073
9100
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
9074
9101
  */
9075
- position: Cesium.Cartesian3;
9102
+ position: Cesium.Cartesian3 | LngLatPoint;
9076
9103
  }
9077
9104
 
9078
9105
  declare namespace PlaneEntity {
@@ -9484,6 +9511,10 @@ declare class PolygonEntity extends BasePolyEntity {
9484
9511
  * 编辑处理类
9485
9512
  */
9486
9513
  readonly EditClass: EditPolygon;
9514
+ /**
9515
+ * 周长 距离(单位:米)
9516
+ */
9517
+ readonly distance: number;
9487
9518
  /**
9488
9519
  * 对应的Cesium面entity内部位置对象
9489
9520
  */
@@ -9946,6 +9977,10 @@ declare class RectangleEntity extends BasePolyEntity {
9946
9977
  * 坐标数据对应的矩形边界对象
9947
9978
  */
9948
9979
  rectangle: Cesium.Rectangle;
9980
+ /**
9981
+ * 周长 距离(单位:米)
9982
+ */
9983
+ readonly distance: number;
9949
9984
  /**
9950
9985
  * 将矢量数据导出为GeoJSON格式规范对象。
9951
9986
  * @param [options] - 参数对象:
@@ -9998,10 +10033,6 @@ declare class RectangleEntity extends BasePolyEntity {
9998
10033
  * 中心点坐标 (笛卡尔坐标)
9999
10034
  */
10000
10035
  readonly center: Cesium.Cartesian3;
10001
- /**
10002
- * 距离(单位:米)
10003
- */
10004
- readonly distance: number;
10005
10036
  /**
10006
10037
  * 面积(单位:平方米)
10007
10038
  */
@@ -12152,7 +12183,7 @@ declare class BasePointPrimitive extends BasePrimitive {
12152
12183
  /**
12153
12184
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
12154
12185
  */
12155
- position: Cesium.Cartesian3;
12186
+ position: Cesium.Cartesian3 | LngLatPoint;
12156
12187
  /**
12157
12188
  * 同 positions只是为了兼容entity的同名属性
12158
12189
  */
@@ -12508,7 +12539,7 @@ declare class BasePrimitive extends BaseGraphic {
12508
12539
  */
12509
12540
  openHighlight(highlightStyle?: any, closeLast?: boolean): void;
12510
12541
  /**
12511
- * 清除已选中的高亮
12542
+ * 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
12512
12543
  * @returns 无
12513
12544
  */
12514
12545
  closeHighlight(): void;
@@ -12585,7 +12616,7 @@ declare namespace BoxPrimitive {
12585
12616
  * @property [flat = false] - 当true时,在片段着色器中使用平面着色,不考虑光照。
12586
12617
  * @property [faceForward = !closed] - 当true时,片段着色器根据需要翻转表面的法线,以确保法线面向查看器以避免黑点。
12587
12618
  * @property [translucent = true] - 当true时,几何图形将显示为半透明,因此{@link Cesium.PerInstanceColorAppearance#renderState}将启用alpha混合。
12588
- * @property [closed = false] - 当true时,几何图形将被关闭,因此{@link Cesium.PerInstanceColorAppearance#renderState}启用了背面剔除。
12619
+ * @property [closed = true] - 当true时,几何图形将被关闭,因此{@link Cesium.PerInstanceColorAppearance#renderState}启用了背面剔除。
12589
12620
  * @property [vertexShaderSource] - 可选的GLSL顶点着色器源,覆盖默认的顶点着色器。
12590
12621
  * @property [fragmentShaderSource] - 可选的GLSL片段着色器源覆盖默认的片段着色器。
12591
12622
  * @property [renderState] - 可选渲染状态,以覆盖默认渲染状态。
@@ -13438,6 +13469,7 @@ declare namespace DiffuseWall {
13438
13469
  * @property [color = "#3388ff"] - 颜色
13439
13470
  * @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
13440
13471
  * @property [speed = 10] - 扩散的速度,值越大越快
13472
+ * @property [maxScale = 1] - 扩散的最大比例
13441
13473
  * @property [shadows = Cesium.ShadowMode.DISABLED] - 指定对象是投射还是接收来自光源的阴影。
13442
13474
  */
13443
13475
  type StyleOptions = any | {
@@ -13445,6 +13477,7 @@ declare namespace DiffuseWall {
13445
13477
  color?: string | Cesium.Color;
13446
13478
  opacity?: number;
13447
13479
  speed?: number;
13480
+ maxScale?: number;
13448
13481
  shadows?: Cesium.ShadowMode;
13449
13482
  };
13450
13483
  }
@@ -13625,7 +13658,7 @@ declare namespace EllipsoidPrimitive {
13625
13658
  * @property [flat = false] - 当true时,在片段着色器中使用平面着色,不考虑光照。
13626
13659
  * @property [faceForward = !closed] - 当true时,片段着色器根据需要翻转表面的法线,以确保法线面向查看器以避免黑点。
13627
13660
  * @property [translucent = true] - 当true时,几何图形将显示为半透明,因此{@link Cesium.PerInstanceColorAppearance#renderState}将启用alpha混合。
13628
- * @property [closed = false] - 当true时,几何图形将被关闭,因此{@link Cesium.PerInstanceColorAppearance#renderState}启用了背面剔除。
13661
+ * @property [closed = true] - 当true时,几何图形将被关闭,因此{@link Cesium.PerInstanceColorAppearance#renderState}启用了背面剔除。
13629
13662
  * @property [vertexShaderSource] - 可选的GLSL顶点着色器源,覆盖默认的顶点着色器。
13630
13663
  * @property [fragmentShaderSource] - 可选的GLSL片段着色器源覆盖默认的片段着色器。
13631
13664
  * @property [renderState] - 可选渲染状态,以覆盖默认渲染状态。
@@ -13754,7 +13787,7 @@ declare namespace FrustumPrimitive {
13754
13787
  * @property [flat = false] - 当true时,在片段着色器中使用平面着色,不考虑光照。
13755
13788
  * @property [faceForward = !closed] - 当true时,片段着色器根据需要翻转表面的法线,以确保法线面向查看器以避免黑点。
13756
13789
  * @property [translucent = true] - 当true时,几何图形将显示为半透明,因此{@link Cesium.PerInstanceColorAppearance#renderState}将启用alpha混合。
13757
- * @property [closed = false] - 当true时,几何图形将被关闭,因此{@link Cesium.PerInstanceColorAppearance#renderState}启用了背面剔除。
13790
+ * @property [closed = true] - 当true时,几何图形将被关闭,因此{@link Cesium.PerInstanceColorAppearance#renderState}启用了背面剔除。
13758
13791
  * @property [vertexShaderSource] - 可选的GLSL顶点着色器源,覆盖默认的顶点着色器。
13759
13792
  * @property [fragmentShaderSource] - 可选的GLSL片段着色器源覆盖默认的片段着色器。
13760
13793
  * @property [renderState] - 可选渲染状态,以覆盖默认渲染状态。
@@ -13851,7 +13884,7 @@ declare class FrustumPrimitive extends BasePointPrimitive {
13851
13884
  /**
13852
13885
  * 圆锥追踪的目标(确定了方向和距离)
13853
13886
  */
13854
- targetPosition: Cesium.Cartesian3;
13887
+ targetPosition: Cesium.Cartesian3 | LngLatPoint;
13855
13888
  /**
13856
13889
  * 圆锥追踪的目标位置坐标
13857
13890
  */
@@ -14037,7 +14070,6 @@ declare namespace ModelPrimitive {
14037
14070
  * @property [incrementallyLoadTextures = true] - 确定模型加载后纹理是否会继续流进来。
14038
14071
  * @property [runAnimations = true] - 指定模型中指定的glTF动画是否应该启动。
14039
14072
  * @property [clampAnimations = true] - 指定在没有关键帧的情况下,glTF动画是否应该保持最后一个姿势。
14040
- * @property [imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - 指定来自基于图像的漫反射和镜面照明的贡献。
14041
14073
  * @property [lightColor] - 在为模型着色时指定光的颜色的属性。当undefined场景的浅色被使用代替。
14042
14074
  * @property [nodeTransformations] - 一个对象,其中键是节点的名称,值是{@link TranslationRotationScale}属性,描述要应用到该节点的转换。该转换是在节点的现有转换之后(如glTF中指定的那样)应用的,并且不会替换节点的现有转换。
14043
14075
  * @property [articulations] - An object, where keys are composed of an articulation name, a single space, and a stage name, and the values are numeric properties.
@@ -14096,7 +14128,6 @@ declare namespace ModelPrimitive {
14096
14128
  incrementallyLoadTextures?: boolean;
14097
14129
  runAnimations?: boolean;
14098
14130
  clampAnimations?: boolean;
14099
- imageBasedLightingFactor?: Cesium.Cartesian2;
14100
14131
  lightColor?: Cesium.Color;
14101
14132
  nodeTransformations?: Cesium.PropertyBag | {
14102
14133
  [key: string]: Cesium.TranslationRotationScale;
@@ -14175,9 +14206,11 @@ declare namespace ModelPrimitive {
14175
14206
  * gltf小模型 Primitive图元矢量对象
14176
14207
  * @param options - 参数对象,包括以下:
14177
14208
  * @param options.position - 坐标位置
14209
+ * @param [options.orientation] - 实体方向,仅position是回调属性时有效
14178
14210
  * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。
14179
14211
  * @param options.style - 样式信息
14180
14212
  * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
14213
+ * @param [options.frameRate = 1] - 当postion为CallbackProperty时,多少帧获取一次数据。用于控制效率,如果卡顿就把该数值调大一些。
14181
14214
  * @param [options.appearance] - [cesium原生]用于渲染图元的外观。
14182
14215
  * @param [options.attributes] - [cesium原生]每个实例的属性。
14183
14216
  * @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量
@@ -14199,10 +14232,12 @@ declare namespace ModelPrimitive {
14199
14232
  */
14200
14233
  declare class ModelPrimitive extends BasePointPrimitive {
14201
14234
  constructor(options: {
14202
- position: LngLatPoint | Cesium.Cartesian3 | number[];
14235
+ position: LngLatPoint | Cesium.Cartesian3 | number[] | Cesium.PositionProperty;
14236
+ orientation?: Cesium.Property;
14203
14237
  modelMatrix?: Cesium.Matrix4;
14204
14238
  style: ModelPrimitive.StyleOptions | any;
14205
14239
  attr?: any;
14240
+ frameRate?: number;
14206
14241
  appearance?: Cesium.Appearance;
14207
14242
  attributes?: Cesium.Appearance;
14208
14243
  maxCacheCount?: number;
@@ -14689,6 +14724,10 @@ declare class PolygonPrimitive extends BasePolyPrimitive {
14689
14724
  eventParent?: BaseClass | boolean;
14690
14725
  allowDrillPick?: boolean | ((...params: any[]) => any);
14691
14726
  });
14727
+ /**
14728
+ * 周长 距离(单位:米)
14729
+ */
14730
+ readonly distance: number;
14692
14731
  /**
14693
14732
  * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象
14694
14733
  */
@@ -15111,6 +15150,10 @@ declare class RectanglePrimitive extends BasePolyPrimitive {
15111
15150
  * 坐标数据对应的矩形边界对象
15112
15151
  */
15113
15152
  rectangle: Cesium.Rectangle;
15153
+ /**
15154
+ * 周长 距离(单位:米)
15155
+ */
15156
+ readonly distance: number;
15114
15157
  /**
15115
15158
  * 获取数据的矩形边界
15116
15159
  * @param [options] - 控制参数
@@ -15126,6 +15169,10 @@ declare class RectanglePrimitive extends BasePolyPrimitive {
15126
15169
  * @returns 是否在矩形内
15127
15170
  */
15128
15171
  isInPoly(position: Cesium.Cartesian3 | LngLatPoint): boolean;
15172
+ /**
15173
+ * 中心点坐标 (笛卡尔坐标)
15174
+ */
15175
+ readonly center: Cesium.Cartesian3;
15129
15176
  /**
15130
15177
  * 面积(单位:平方米)
15131
15178
  */
@@ -15639,18 +15686,6 @@ declare class BaseRoamLine extends BaseGraphic {
15639
15686
  y: number;
15640
15687
  z: number;
15641
15688
  }): Cesium.Matrix4;
15642
- /**
15643
- * 重新赋值参数,同构造方法参数一致。
15644
- * @param options - 参数,与类的构造方法参数相同
15645
- * @returns 当前对象本身,可以链式调用
15646
- */
15647
- setOptions(options: any): BaseRoamLine | any;
15648
- /**
15649
- * 设置 样式信息 的钩子方法
15650
- * @param newStyle - 本次更新的部分样式信息,内部会合并属性
15651
- * @returns 当前对象本身,可以链式调用
15652
- */
15653
- setStyle(newStyle: any): BaseGraphic | any;
15654
15689
  /**
15655
15690
  * 高亮对象。
15656
15691
  * @param [highlightStyle] - 高亮的样式,具体见各{@link GraphicType}矢量数据的style参数。
@@ -15659,7 +15694,7 @@ declare class BaseRoamLine extends BaseGraphic {
15659
15694
  */
15660
15695
  openHighlight(highlightStyle?: any, closeLast?: boolean): void;
15661
15696
  /**
15662
- * 清除已选中的高亮
15697
+ * 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
15663
15698
  * @returns 无
15664
15699
  */
15665
15700
  closeHighlight(): void;
@@ -15846,14 +15881,6 @@ declare class BaseRoamLine extends BaseGraphic {
15846
15881
  * 矢量数据对应的 Cesium内部对象 (不同子类中实现)
15847
15882
  */
15848
15883
  readonly czmObject: Cesium.Entity | Cesium.Primitive | Cesium.GroundPrimitive | Cesium.ClassificationPrimitive | any;
15849
- /**
15850
- * 显示隐藏状态
15851
- */
15852
- show: boolean;
15853
- /**
15854
- * 名称
15855
- */
15856
- name: string;
15857
15884
  /**
15858
15885
  * 当前类的构造参数
15859
15886
  */
@@ -15915,6 +15942,10 @@ declare namespace DynamicRoamLine {
15915
15942
  * @param [options.point] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。
15916
15943
  * @param [options.circle] - 设置是否显示 圆对象 和对应的样式
15917
15944
  * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。
15945
+ * @param [options.availability] - 与该对象关联的可用性。
15946
+ * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
15947
+ * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
15948
+ * @param [options.parent] - 要与此实体关联的父实体。
15918
15949
  * @param [options.hasCache = true] - 是否记录缓存,提高效率
15919
15950
  * @param [options.maxCacheCount = 50] - 保留的坐标点数量,当为-1时保留所有
15920
15951
  * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。
@@ -15924,7 +15955,7 @@ declare namespace DynamicRoamLine {
15924
15955
  * //以下是 clampToGround中使用的
15925
15956
  * @param [options.clampToTileset = false] - 是否贴3dtiles模型上(贴模型效率较慢,按需开启)
15926
15957
  * @param [options.frameRateHeight = 30] - 当clampToTileset:true时,控制贴模型的效率,多少帧计算一次贴模型高度,
15927
- * @param [options.objectsToExclude = null] - 贴模型分析时,排除的不进行贴模型计算的模型对象,默认是当前本身,可以是: primitives, entities, 或 3D Tiles features
15958
+ * @param [options.objectsToExclude] - 贴模型分析时,排除的不进行贴模型计算的模型对象,默认是当前本身,可以是: primitives, entities, 或 3D Tiles features
15928
15959
  * @param [options.shadow] - 设置投影或附加的对象,支持类型:
15929
15960
  * @param [options.shadow.wall] - wall类型所支持的参数
15930
15961
  * @param [options.shadow.cylinder] - cylinder类型所支持的参数
@@ -15960,6 +15991,10 @@ declare class DynamicRoamLine extends BaseRoamLine {
15960
15991
  point?: PointEntity.StyleOptions | any;
15961
15992
  circle?: CircleEntity.StyleOptions | any;
15962
15993
  attr?: any;
15994
+ availability?: Cesium.TimeIntervalCollection;
15995
+ description?: Cesium.Property | string;
15996
+ viewFrom?: Cesium.Property;
15997
+ parent?: Cesium.Entity;
15963
15998
  hasCache?: boolean;
15964
15999
  maxCacheCount?: number;
15965
16000
  forwardExtrapolationType?: Cesium.ExtrapolationType;
@@ -16098,6 +16133,10 @@ declare namespace RoamLine {
16098
16133
  * @param [options.path] - 设置是否显示 轨迹路线 和对应的样式
16099
16134
  * @param [options.circle] - 设置是否显示 圆对象 和对应的样式
16100
16135
  * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。
16136
+ * @param [options.availability] - 与该对象关联的可用性。
16137
+ * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
16138
+ * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
16139
+ * @param [options.parent] - 要与此实体关联的父实体。
16101
16140
  * @param [options.offsetHeight = 0] - 轨迹偏移增加的高度
16102
16141
  * @param [options.startTime = clock.currentTime] - 轨迹的开始时间
16103
16142
  * @param [options.pauseTime = 0] - 每个点的停留时长(单位:秒)
@@ -16155,6 +16194,10 @@ declare class RoamLine extends BaseRoamLine {
16155
16194
  path?: PathEntity.StyleOptions | any | any;
16156
16195
  circle?: CircleEntity.StyleOptions | any | any;
16157
16196
  attr?: any;
16197
+ availability?: Cesium.TimeIntervalCollection;
16198
+ description?: Cesium.Property | string;
16199
+ viewFrom?: Cesium.Property;
16200
+ parent?: Cesium.Entity;
16158
16201
  offsetHeight?: number;
16159
16202
  startTime?: string | Date | Cesium.JulianDate;
16160
16203
  pauseTime?: number | ((...params: any[]) => any);
@@ -16497,7 +16540,7 @@ declare class BaseGraphicLayer extends BaseLayer {
16497
16540
  * callback: function (e) {
16498
16541
  * let graphic = e.graphic
16499
16542
  * let strDis = mars3d.MeasureUtil.formatDistance(graphic.distance)
16500
- * haoutil.alert('该对象的长度为:' + strDis)
16543
+ * alert('该对象的长度为:' + strDis)
16501
16544
  * },
16502
16545
  * },
16503
16546
  * ])
@@ -16742,6 +16785,14 @@ declare class BaseLayer extends BaseClass {
16742
16785
  * @returns 无
16743
16786
  */
16744
16787
  destroy(noDel?: boolean): void;
16788
+ /**
16789
+ * 触发指定类型的事件。
16790
+ * @param type - 事件类型
16791
+ * @param [data] - 传输的数据或对象,可在事件回调方法中event对象中获取进行使用
16792
+ * @param [propagate = null] - 将事件传播给父类 (用addEventParent设置)
16793
+ * @returns 当前对象本身,可以链式调用
16794
+ */
16795
+ fire(type: EventType | string, data?: any, propagate?: BaseClass): BaseClass;
16745
16796
  }
16746
16797
 
16747
16798
  declare namespace CzmGeoJsonLayer {
@@ -17232,6 +17283,9 @@ declare class KmlLayer extends CzmGeoJsonLayer {
17232
17283
  * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
17233
17284
  * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。
17234
17285
  * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
17286
+ * @param [options.graphicOptions] - 默认的graphic的构造参数,每种不同类型数据都有不同的属性,具体见各{@link GraphicType}矢量数据的构造参数。
17287
+ * @param [options.chinaCRS] - 标识数据的国内坐标系(用于自动纠偏或加偏)
17288
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
17235
17289
  * @param [options.buildings] - 标识当前图层为建筑物白膜类型数据
17236
17290
  * @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight})
17237
17291
  * @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn
@@ -17300,6 +17354,9 @@ declare class ArcGisWfsLayer extends LodGraphicLayer {
17300
17354
  merge?: boolean;
17301
17355
  callback?: (...params: any[]) => any;
17302
17356
  };
17357
+ graphicOptions?: any;
17358
+ chinaCRS?: ChinaCRS;
17359
+ allowDrillPick?: boolean | ((...params: any[]) => any);
17303
17360
  buildings?: {
17304
17361
  bottomHeight?: string;
17305
17362
  cloumn?: string;
@@ -17366,6 +17423,7 @@ declare class ArcGisWfsLayer extends LodGraphicLayer {
17366
17423
  * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。
17367
17424
  * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
17368
17425
  * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, entity, styleOpt){ return { color: "#ff0000" }; }
17426
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
17369
17427
  * @param [options.buildings] - 标识当前图层为建筑物白膜类型数据
17370
17428
  * @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight})
17371
17429
  * @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn
@@ -17415,6 +17473,7 @@ declare class ArcGisWfsSingleLayer extends GeoJsonLayer {
17415
17473
  styleFieldOptions?: any;
17416
17474
  callback?: (...params: any[]) => any;
17417
17475
  };
17476
+ allowDrillPick?: boolean | ((...params: any[]) => any);
17418
17477
  buildings?: {
17419
17478
  bottomHeight?: string;
17420
17479
  cloumn?: string;
@@ -17657,10 +17716,11 @@ declare namespace GeoJsonLayer {
17657
17716
  * @param [options.url] - geojson文件或服务url地址
17658
17717
  * @param [options.data] - geojson格式规范数据对象,与url二选一即可。
17659
17718
  * @param [options.crs] - 原始数据的坐标系,如'EPSG:3857'
17719
+ * @param [options.chinaCRS] - 标识数据的国内坐标系(用于自动纠偏或加偏)
17660
17720
  * @param [options.format] - 可以对加载的geojson数据进行格式化或转换操作
17661
17721
  * @param [options.onCreateGraphic] - 解析geojson后,外部自定义方法来创建Graphic对象
17662
17722
  * @param [options.mask] - 标识是否绘制区域边界的反选遮罩层,也可以传入object配置范围: { xmin: 73.0, xmax: 136.0, ymin: 3.0, ymax: 59.0 }
17663
- * @param [options.graphicOptions] - 默认的graphic的构造参数,每种不同类型数据都有不同的属性,具体见各{@link GraphicType}矢量数据的构造参数。
17723
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
17664
17724
  * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0
17665
17725
  * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。
17666
17726
  * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature)
@@ -17670,6 +17730,7 @@ declare namespace GeoJsonLayer {
17670
17730
  * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
17671
17731
  * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。
17672
17732
  * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
17733
+ * @param [options.graphicOptions] - 默认的graphic的构造参数,每种不同类型数据都有不同的属性,具体见各{@link GraphicType}矢量数据的构造参数。
17673
17734
  * @param [options.buildings] - 标识当前图层为建筑物白膜类型数据
17674
17735
  * @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight})
17675
17736
  * @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn
@@ -17714,10 +17775,11 @@ declare class GeoJsonLayer extends GraphicLayer {
17714
17775
  url?: string;
17715
17776
  data?: any;
17716
17777
  crs?: string;
17778
+ chinaCRS?: ChinaCRS;
17717
17779
  format?: (...params: any[]) => any;
17718
17780
  onCreateGraphic?: (...params: any[]) => any;
17719
17781
  mask?: boolean | any;
17720
- graphicOptions?: any;
17782
+ allowDrillPick?: boolean | ((...params: any[]) => any);
17721
17783
  opacity?: number;
17722
17784
  zIndex?: number;
17723
17785
  symbol?: {
@@ -17728,6 +17790,7 @@ declare class GeoJsonLayer extends GraphicLayer {
17728
17790
  merge?: boolean;
17729
17791
  callback?: (...params: any[]) => any;
17730
17792
  };
17793
+ graphicOptions?: any;
17731
17794
  buildings?: {
17732
17795
  bottomHeight?: string;
17733
17796
  cloumn?: string;
@@ -18046,7 +18109,6 @@ declare namespace GraphicLayer {
18046
18109
  * @param [options.isAutoEditing = true] - 完成标绘时是否自动启动编辑(需要hasEdit:true时)
18047
18110
  * @param [options.isContinued = false] - 是否连续标绘,联系标绘状态下无法编辑已有对象。
18048
18111
  * @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。
18049
- * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
18050
18112
  * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效,且只有贴地对象有效)。
18051
18113
  * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature)
18052
18114
  * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon
@@ -18054,6 +18116,7 @@ declare namespace GraphicLayer {
18054
18116
  * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。
18055
18117
  * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
18056
18118
  * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
18119
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
18057
18120
  * @param [options.clustering] - Entity点数据时,设置聚合相关参数:
18058
18121
  * @param [options.clustering.enabled = false] - 是否开启聚合
18059
18122
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
@@ -18104,7 +18167,6 @@ declare class GraphicLayer extends BaseGraphicLayer {
18104
18167
  isAutoEditing?: boolean;
18105
18168
  isContinued?: boolean;
18106
18169
  isRestorePositions?: boolean;
18107
- allowDrillPick?: boolean | ((...params: any[]) => any);
18108
18170
  zIndex?: number;
18109
18171
  symbol?: {
18110
18172
  type?: GraphicType | string;
@@ -18113,6 +18175,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
18113
18175
  styleFieldOptions?: any;
18114
18176
  callback?: (...params: any[]) => any;
18115
18177
  };
18178
+ allowDrillPick?: boolean | ((...params: any[]) => any);
18116
18179
  clustering?: {
18117
18180
  enabled?: boolean;
18118
18181
  pixelRange?: number;
@@ -18283,14 +18346,21 @@ declare class GraphicLayer extends BaseGraphicLayer {
18283
18346
  * @param attrVal - 属性值
18284
18347
  * @returns 矢量数据对象
18285
18348
  */
18286
- getGraphicByAttr(attrName: any | string | number, attrVal: string): BaseGraphic | any;
18349
+ getGraphicByAttr(attrName: string, attrVal: string | number | boolean | any): BaseGraphic | any;
18287
18350
  /**
18288
18351
  * 根据 指定属性 获取 矢量数据对象 数组
18289
18352
  * @param attrName - 属性名称值(如id、name等)
18290
18353
  * @param attrVal - 属性值
18291
18354
  * @returns 矢量数据对象
18292
18355
  */
18293
- getGraphicsByAttr(attrName: any | string | number, attrVal: string): BaseGraphic[];
18356
+ getGraphicsByAttr(attrName: string, attrVal: string | number | boolean | any): BaseGraphic[];
18357
+ /**
18358
+ * 根据 指定style样式 获取 矢量数据对象 数组
18359
+ * @param styleName - style内的字段名称
18360
+ * @param styleVal - 属性值
18361
+ * @returns 矢量数据对象
18362
+ */
18363
+ getGraphicsByStyle(styleName: string, styleVal: string | number | boolean | any): BaseGraphic[];
18294
18364
  /**
18295
18365
  * 遍历所有矢量数据并将其作为参数传递给回调函数
18296
18366
  * @param method - 回调方法
@@ -19075,11 +19145,7 @@ declare namespace TilesetLayer {
19075
19145
  * @param [options.clippingPlanes] - {@link Cesium.ClippingPlaneCollection}用于选择性地禁用tile集的渲染。
19076
19146
  * @param [options.classificationType] - 确定地形、3D贴图或两者都将被这个贴图集分类。有关限制和限制的详细信息,请参阅{@link cesium3dtilesset #classificationType}。
19077
19147
  * @param [options.pointCloudShading] - 基于几何误差和光照构造一个{@link Cesium.PointCloudShading}对象来控制点衰减的选项。
19078
- * @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - 缩放来自地球、天空、大气和星星天空盒的漫反射和高光图像照明。
19079
19148
  * @param [options.lightColor] - 光的颜色当遮光模型。当undefined场景的浅色被使用代替。
19080
- * @param [options.luminanceAtZenith = 0.2] - 太阳在天顶的亮度,单位是千坎德拉每平方米,用于这个模型的程序环境地图。
19081
- * @param [options.sphericalHarmonicCoefficients] - 三阶球面调和系数用于基于图像的漫射色彩照明。
19082
- * @param [options.specularEnvironmentMaps] - 一个KTX文件的URL,该文件包含高光照明的立方体映射和复杂的高光mipmaps。
19083
19149
  * @param [options.backFaceCulling = true] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;当为false时,禁用背面剔除。
19084
19150
  * @param [options.debugHeatmapTilePropertyName] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;作为热图着色的tile变量。所有渲染的贴图都将相对于其他指定的变量值着色。
19085
19151
  * @param [options.pickPrimitive] - 要在拾取过程中呈现的原语,而不是tile集合。
@@ -19166,11 +19232,7 @@ declare class TilesetLayer extends BaseGraphicLayer {
19166
19232
  clippingPlanes?: Cesium.ClippingPlaneCollection;
19167
19233
  classificationType?: Cesium.ClassificationType;
19168
19234
  pointCloudShading?: any;
19169
- imageBasedLightingFactor?: Cesium.Cartesian2;
19170
19235
  lightColor?: Cesium.Cartesian3;
19171
- luminanceAtZenith?: number;
19172
- sphericalHarmonicCoefficients?: Cesium.Cartesian3[];
19173
- specularEnvironmentMaps?: string;
19174
19236
  backFaceCulling?: boolean;
19175
19237
  debugHeatmapTilePropertyName?: string;
19176
19238
  pickPrimitive?: any;
@@ -19345,7 +19407,7 @@ declare class TilesetLayer extends BaseGraphicLayer {
19345
19407
  */
19346
19408
  openHighlight(highlightStyle?: any, closeLast?: boolean, feature?: Cesium.Cesium3DTileFeature): void;
19347
19409
  /**
19348
- * 清除已选中的高亮
19410
+ * 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
19349
19411
  * @returns 无
19350
19412
  */
19351
19413
  closeHighlight(): void;
@@ -19371,6 +19433,10 @@ declare class TilesetLayer extends BaseGraphicLayer {
19371
19433
  * @returns 当前对象本身,可以链式调用
19372
19434
  */
19373
19435
  closePopup(): BaseGraphicLayer;
19436
+ /**
19437
+ * 透明度,取值范围:0.0-1.0
19438
+ */
19439
+ opacity: number;
19374
19440
  /**
19375
19441
  * 飞行定位至图层数据所在的视角
19376
19442
  * @param [options = {}] - 参数对象:
@@ -19411,6 +19477,7 @@ declare class TilesetLayer extends BaseGraphicLayer {
19411
19477
  * @param [options.parameters] - 要在URL中 传递给WFS服务GetFeature请求的其他参数。
19412
19478
  * @param [options.parameters.maxFeatures] - 返回结果最大数量
19413
19479
  * @param [options.parameters.cql_filter] - 筛选服务数据的[SQL语句]{@link https://docs.geoserver.org/2.12.2/user/services/wfs/vendor.html#wfs-vendor-parameters}
19480
+ * @param [options.parameters.sortBy] - 排序的属性名称,默认升序,降序时+D
19414
19481
  * @param [options.parameters.service = 'WFS'] - 服务类型
19415
19482
  * @param [options.parameters.version = '1.0.0'] - 服务版本
19416
19483
  * @param [options.geometryName = 'the_geom'] - geometry字段名称
@@ -19436,6 +19503,9 @@ declare class TilesetLayer extends BaseGraphicLayer {
19436
19503
  * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
19437
19504
  * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。
19438
19505
  * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
19506
+ * @param [options.graphicOptions] - 默认的graphic的构造参数,每种不同类型数据都有不同的属性,具体见各{@link GraphicType}矢量数据的构造参数。
19507
+ * @param [options.chinaCRS] - 标识数据的国内坐标系(用于自动纠偏或加偏)
19508
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
19439
19509
  * @param [options.buildings] - 标识当前图层为建筑物白膜类型数据
19440
19510
  * @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight})
19441
19511
  * @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn
@@ -19489,6 +19559,7 @@ declare class WfsLayer extends LodGraphicLayer {
19489
19559
  parameters?: {
19490
19560
  maxFeatures?: number;
19491
19561
  cql_filter?: string;
19562
+ sortBy?: string;
19492
19563
  service?: string;
19493
19564
  version?: string;
19494
19565
  };
@@ -19517,6 +19588,9 @@ declare class WfsLayer extends LodGraphicLayer {
19517
19588
  merge?: boolean;
19518
19589
  callback?: (...params: any[]) => any;
19519
19590
  };
19591
+ graphicOptions?: any;
19592
+ chinaCRS?: ChinaCRS;
19593
+ allowDrillPick?: boolean | ((...params: any[]) => any);
19520
19594
  buildings?: {
19521
19595
  bottomHeight?: string;
19522
19596
  cloumn?: string;
@@ -20605,7 +20679,7 @@ declare class BaseTileLayer extends BaseLayer {
20605
20679
  */
20606
20680
  openHighlight(highlightStyle?: any, closeLast?: boolean): void;
20607
20681
  /**
20608
- * 清除已选中的高亮
20682
+ * 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
20609
20683
  * @returns 无
20610
20684
  */
20611
20685
  closeHighlight(): void;
@@ -23159,7 +23233,7 @@ declare namespace Map {
23159
23233
  * @property [backgroundColor] - 空间背景色 ,css颜色值
23160
23234
  *
23161
23235
  * 以下是Cesium.Viewer所支持的options【控件相关的写在另外的control属性中】
23162
- * @property [sceneMode = Cesium.SceneMode.SCENE3D] - 初始场景模式。
23236
+ * @property [sceneMode = Cesium.SceneMode.SCENE3D] - 初始场景模式。可以设置进入场景后初始是2D、2.5D、3D 模式。
23163
23237
  * @property [scene3DOnly = false] - 为 true 时,每个几何实例将仅以3D渲染以节省GPU内存。
23164
23238
  * @property [mapProjection = new Cesium.GeographicProjection()] - 在二维模式下地图的呈现坐标系,默认为EPSG4326坐标系,如果需要EPSG3857墨卡托坐标系展示,传 new Cesium.WebMercatorProjection() 即可
23165
23239
  * @property [shouldAnimate = true] - 是否开启时钟动画
@@ -24063,10 +24137,10 @@ declare class Map extends BaseClass {
24063
24137
  * @param cameraView - 飞行参数
24064
24138
  * @param cameraView.lng - 经度值, 180 - 180
24065
24139
  * @param cameraView.lat - 纬度值, -90 - 90
24066
- * @param cameraView.alt - 高度值
24067
- * @param cameraView.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360
24068
- * @param cameraView.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360
24069
- * @param cameraView.roll - 翻滚角度值,绕经度线旋转角度, 0-360
24140
+ * @param [cameraView.alt] - 高度值
24141
+ * @param [cameraView.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0-360
24142
+ * @param [cameraView.pitch] - 俯仰角度值,绕纬度线旋转角度, 0-360
24143
+ * @param [cameraView.roll] - 翻滚角度值,绕经度线旋转角度, 0-360
24070
24144
  * @param [options = {}] - 参数对象:
24071
24145
  * @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
24072
24146
  * @param [options.complete] - 飞行完成后要执行的函数。
@@ -24083,10 +24157,10 @@ declare class Map extends BaseClass {
24083
24157
  setCameraView(cameraView: {
24084
24158
  lng: number;
24085
24159
  lat: number;
24086
- alt: number;
24087
- heading: number;
24088
- pitch: number;
24089
- roll: number;
24160
+ alt?: number;
24161
+ heading?: number;
24162
+ pitch?: number;
24163
+ roll?: number;
24090
24164
  }, options?: {
24091
24165
  duration?: number;
24092
24166
  complete?: Cesium.Camera.FlightCompleteCallback;
@@ -24364,12 +24438,12 @@ declare class Map extends BaseClass {
24364
24438
  * @param [options = {}] - 参数对象:
24365
24439
  * @param [options.center = getCameraView()] - 飞行到的指定区域视角参数
24366
24440
  * @param [options.callback = null] - 飞行结束的回调方法
24367
- * @returns
24441
+ * @returns 飞行结束的Promise
24368
24442
  */
24369
24443
  openFlyAnimation(options?: {
24370
24444
  center?: any;
24371
24445
  callback?: (...params: any[]) => any;
24372
- }): void;
24446
+ }): Promise<boolean>;
24373
24447
  /**
24374
24448
  * 执行旋转地球动画
24375
24449
  * @param [options = {}] - 参数对象:
@@ -25604,6 +25678,8 @@ declare class EchartsLayer extends BaseLayer {
25604
25678
  * @param options.rectangle.xmax - 最大纬度值
25605
25679
  * @param options.rectangle.ymin - 最小纬度值
25606
25680
  * @param options.rectangle.ymax - 最大纬度值
25681
+ * @param [options.max] - 数据集的value值上限,默认内部计算
25682
+ * @param [options.min] - 数据集的value值下限,默认内部计算
25607
25683
  * @param [options.heatStyle] - heatmap热力图本身configObject参数,详情也可查阅 [heatmap文档]{@link https://www.patrick-wied.at/static/heatmapjs/docs.html}
25608
25684
  * @param [options.heatStyle.maxOpacity = 0.8] - 最大不透明度,取值范围0.0-1.0。
25609
25685
  * @param [options.heatStyle.minOpacity = 0.1] - 最小不透明度,取值范围0.0-1.0。
@@ -25644,6 +25720,8 @@ declare class HeatLayer extends BaseLayer {
25644
25720
  ymin: number;
25645
25721
  ymax: number;
25646
25722
  };
25723
+ max?: number;
25724
+ min?: number;
25647
25725
  heatStyle?: {
25648
25726
  maxOpacity?: number;
25649
25727
  minOpacity?: number;
@@ -26142,7 +26220,7 @@ declare namespace CamberRadar {
26142
26220
  }
26143
26221
 
26144
26222
  /**
26145
- * 双曲面拱形雷达,
26223
+ * 双曲面拱形雷达,该对象暂不支持鼠标交互和拾取,
26146
26224
  * 【需要引入 mars3d-space 插件库】
26147
26225
  * @param options - 参数对象,包括以下:
26148
26226
  * @param options.position - 坐标位置
@@ -26240,7 +26318,7 @@ declare namespace ConicSensor {
26240
26318
  }
26241
26319
 
26242
26320
  /**
26243
- * 圆锥体(单目标雷达),
26321
+ * 圆锥体(单目标雷达),该对象暂不支持鼠标交互和拾取,
26244
26322
  * 【需要引入 mars3d-space 插件库】
26245
26323
  * @param options - 参数对象,包括以下:
26246
26324
  * @param options.position - 坐标位置
@@ -26404,7 +26482,7 @@ declare namespace RectSensor {
26404
26482
  }
26405
26483
 
26406
26484
  /**
26407
- * 四棱锥体,
26485
+ * 四棱锥体,该对象暂不支持鼠标交互和拾取,
26408
26486
  * 【需要引入 mars3d-space 插件库】
26409
26487
  * @param options - 参数对象,包括以下:
26410
26488
  * @param options.position - 坐标位置
@@ -26751,7 +26829,7 @@ declare namespace SatelliteSensor {
26751
26829
  }
26752
26830
 
26753
26831
  /**
26754
- * 卫星视锥综合体(圆锥或四凌锥),
26832
+ * 卫星视锥综合体(圆锥或四凌锥),该对象暂不支持鼠标交互和拾取,
26755
26833
  * 【需要引入 mars3d-space 插件库】
26756
26834
  * @param [options] - 参数对象,包括以下:
26757
26835
  * @param options.position - 坐标位置
@@ -26853,7 +26931,7 @@ declare class SatelliteSensor extends BasePointPrimitive {
26853
26931
  /**
26854
26932
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
26855
26933
  */
26856
- position: Cesium.Cartesian3;
26934
+ position: Cesium.Cartesian3 | LngLatPoint;
26857
26935
  }
26858
26936
 
26859
26937
  /**
@@ -31452,6 +31530,13 @@ declare namespace MaterialUtil {
31452
31530
  * @returns 材质对象
31453
31531
  */
31454
31532
  function createMaterial(type: any, options: any): Cesium.Material;
31533
+ /**
31534
+ * 是否存在指定材质
31535
+ * @param type - 材质类型
31536
+ * @param [property] - 是否属性材质
31537
+ * @returns 是否存在
31538
+ */
31539
+ function hasMaterial(type: any, property?: boolean): boolean;
31455
31540
  /**
31456
31541
  * 将材质对象转为Josn简单对象,用于保存。
31457
31542
  * @param material - 材质对象
@@ -31468,9 +31553,10 @@ declare namespace MeasureUtil {
31468
31553
  /**
31469
31554
  * 求坐标数组的空间距离
31470
31555
  * @param positions - 坐标数组
31556
+ * @param [closure] - 是否闭合,如求面的周长时,传入true
31471
31557
  * @returns 距离(单位:米)
31472
31558
  */
31473
- function getDistance(positions: Cesium.Cartesian3[] | LngLatPoint[]): number;
31559
+ function getDistance(positions: Cesium.Cartesian3[] | LngLatPoint[], closure?: boolean): number;
31474
31560
  /**
31475
31561
  * 求坐标数组的 距离(地球表面弧度的),
31476
31562
  * 比如北京到纽约(不能穿过球心,是贴地表的线的距离)
@@ -31946,6 +32032,13 @@ declare namespace PointUtil {
31946
32032
  * @returns 笛卡尔三维坐标
31947
32033
  */
31948
32034
  function getCurrentMousePosition(scene: Cesium.Scene, position: Cesium.Cartesian2, noPickEntity: any): Cesium.Cartesian3;
32035
+ /**
32036
+ * 获取 屏幕XY坐标 对应的 地形上的笛卡尔三维坐标(不拾取模型、矢量数据等)
32037
+ * @param scene - 三维地图场景对象,一般用map.scene或viewer.scene
32038
+ * @param position - 屏幕XY坐标(如鼠标所在位置)
32039
+ * @returns 笛卡尔三维坐标
32040
+ */
32041
+ function getCurrentMouseTerrainPosition(scene: Cesium.Scene, position: Cesium.Cartesian2): Cesium.Cartesian3;
31949
32042
  /**
31950
32043
  * 求2点的中间点(贴地表)
31951
32044
  * @param mpt1 - 点1坐标
@@ -32431,6 +32524,15 @@ declare namespace PolyUtil {
32431
32524
  * @returns 经纬度坐标数组,示例:[ [123.123456,32.654321,198.7], [111.123456,22.654321,50.7] ]
32432
32525
  */
32433
32526
  function convex(coordinates: any[][]): any[][];
32527
+ /**
32528
+ * 在 指定bbox区域 内生成 指定数量(概略) 的网格坐标点,
32529
+ * 目前常用于生成坐标点,测试数据量
32530
+ * @param bbox - 区域范围,如:[116.984788, 31.625909, 117.484068, 32.021504]
32531
+ * @param count - 数量(概略),返回坐标接近此数字
32532
+ * @param [alt = 0] - 高度值
32533
+ * @returns 坐标集合 ,如: {points:[LngLatPoint,LngLatPoint], size: 500 }
32534
+ */
32535
+ function getGridPoints(bbox: number[], count: number, alt?: number): any;
32434
32536
  }
32435
32537
 
32436
32538
  /**
@@ -32737,6 +32839,7 @@ declare namespace Util {
32737
32839
  * @param [options.style = {}] - Style样式,每种不同类型数据都有不同的样式,具体见各矢量数据的style参数。{@link GraphicType}
32738
32840
  * @param [options.crs] - 原始数据的坐标系,如'EPSG:3857' (可以从 {@link http://epsg.io }查询)
32739
32841
  * @param [options.hasEdit] - 当需要编辑时可以传true值,指定为Entity类型
32842
+ * @param [options.onPointTrans] - 坐标转换方法,可用于对每个坐标做额外转换处理
32740
32843
  * @returns Graphic构造参数(用于创建{@link BaseGraphic})
32741
32844
  */
32742
32845
  function featureToGraphic(feature: any, options?: {
@@ -32744,6 +32847,7 @@ declare namespace Util {
32744
32847
  style?: any;
32745
32848
  crs?: string;
32746
32849
  hasEdit?: boolean;
32850
+ onPointTrans?: (...params: any[]) => any;
32747
32851
  }): any;
32748
32852
  /**
32749
32853
  * 根据当前高度获取地图层级
@@ -32868,10 +32972,10 @@ declare namespace Util {
32868
32972
  /**
32869
32973
  * 执行alert弹窗(手动单击确定关闭窗口)
32870
32974
  * @param msg - 弹窗内的内容
32871
- * @param title - 弹窗的标题
32975
+ * @param [title] - 弹窗的标题
32872
32976
  * @returns 无
32873
32977
  */
32874
- function alert(msg: string, title: string): void;
32978
+ function alert(msg: string, title?: string): void;
32875
32979
  /**
32876
32980
  * 执行msg提示窗(自动消失)
32877
32981
  * @param msg - 弹窗内的内容