mars3d 3.7.16 → 3.7.18

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.16
5
- * 编译日期:2024-05-28 11:50:17
4
+ * 版本信息:v3.7.18
5
+ * 编译日期:2024-06-18 20:44:25
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.16
6
- * 编译日期:2024-05-28 11:50:16
5
+ * 版本信息:v3.7.18
6
+ * 编译日期:2024-06-18 20:44:25
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2024-01-15
9
9
  */
@@ -597,6 +597,7 @@ declare enum GraphicType {
597
597
  divBillboard,
598
598
  fontBillboard,
599
599
  billboardP,
600
+ divBillboardP,
600
601
  flatBillboard,
601
602
  model,
602
603
  modelP,
@@ -3602,7 +3603,7 @@ declare class MarsArray {
3602
3603
  }
3603
3604
 
3604
3605
  /**
3605
- * 3个天空盒(可以平滑过度), 在场景周围绘制星星等太空背景。
3606
+ * 3个近地天空盒(可以平滑过度), 在场景周围绘制星星等太空背景。
3606
3607
  * 天空盒子是用真正的赤道平均春分点(TEME)轴定义的。仅在3D中支持。当转换为2D或哥伦布视图时,天空盒会淡出。
3607
3608
  * 天空盒子的大小不能超过{@link Cesium.Scene#maximumCubeMapSize}。
3608
3609
  * @example
@@ -4621,10 +4622,12 @@ declare class BaseGraphic extends BaseClass {
4621
4622
  * 获取数据的矩形边界
4622
4623
  * @param [options] - 控制参数
4623
4624
  * @param [options.isFormat = false] - 是否格式化,格式化时示例: { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
4625
+ * @param [options.onePoint = true] - 一个点位时是否返回边界值
4624
4626
  * @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象
4625
4627
  */
4626
4628
  getRectangle(options?: {
4627
4629
  isFormat?: boolean;
4630
+ onePoint?: boolean;
4628
4631
  }): Cesium.Rectangle | any;
4629
4632
  /**
4630
4633
  * 获取数据的最大高度
@@ -4836,10 +4839,28 @@ declare class BaseGraphic extends BaseClass {
4836
4839
  */
4837
4840
  closeSmallTooltip(): BaseGraphic | any;
4838
4841
  /**
4839
- * 后端获取实时属性值,当存在attr是动态属性配置时可用【attr.type === "ajax" && attr.url】
4842
+ * 是否 后端动态属性
4843
+ */
4844
+ readonly hasAjaxAttr: boolean;
4845
+ /**
4846
+ * 获取后端动态属性,当存在attr是动态属性配置时可用【attr.type === "ajax" && attr.url】
4840
4847
  * @returns 实时获取当前的动态属性值
4841
4848
  */
4842
4849
  getAjaxAttr(): any;
4850
+ /**
4851
+ * 是否 后端动态坐标
4852
+ */
4853
+ readonly hasAjaxPostion: boolean;
4854
+ /**
4855
+ * 设置后端动态坐标,当存在点状对象是动态属性配置时可用【position.type === "ajax" && position.url)】
4856
+ * @param position - 动态坐标配置
4857
+ * @returns 是否后端动态坐标
4858
+ */
4859
+ setAjaxPostion(position: BaseGraphic.AjaxPosition): boolean;
4860
+ /**
4861
+ * 清除 后端动态坐标
4862
+ */
4863
+ clearAjaxPostion(): void;
4843
4864
  /**
4844
4865
  * 当前类的构造参数
4845
4866
  */
@@ -6288,6 +6309,7 @@ declare namespace ConeVisibility {
6288
6309
  * @param [options.targetPosition] - 目标视点位置,可以替代style中的相机heading\pitch\roll方向和distance距离参数
6289
6310
  * @param options.style - 样式信息
6290
6311
  * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
6312
+ * @param [options.depthBiasStep = 1] - 控制准确度和锯齿的参数,如需更精确可以传0.1、如需更平滑传100优化锯齿感(牺牲了一点精度)
6291
6313
  * @param [options.id = createGuid()] - 矢量数据id标识
6292
6314
  * @param [options.name = ''] - 矢量数据名称
6293
6315
  * @param [options.show = true] - 矢量数据是否显示
@@ -6299,6 +6321,7 @@ declare class ConeVisibility extends PointVisibility {
6299
6321
  targetPosition?: LngLatPoint | Cesium.Cartesian3 | number[];
6300
6322
  style: ConeVisibility.StyleOptions | any;
6301
6323
  attr?: any | BaseGraphic.AjaxAttr;
6324
+ depthBiasStep?: number;
6302
6325
  id?: string | number;
6303
6326
  name?: string;
6304
6327
  show?: boolean;
@@ -6701,6 +6724,7 @@ declare namespace PointLight {
6701
6724
  * @param options.position - 位置
6702
6725
  * @param options.style - 样式信息
6703
6726
  * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
6727
+ * @param [options.depthBiasStep = 1] - 控制准确度和锯齿的参数,如需更精确可以传0.1、如需更平滑传100优化锯齿感(牺牲了一点精度)
6704
6728
  * @param [options.id = createGuid()] - 矢量数据id标识
6705
6729
  * @param [options.name = ''] - 矢量数据名称
6706
6730
  * @param [options.show = true] - 矢量数据是否显示
@@ -6711,6 +6735,7 @@ declare class PointLight extends BasePointPrimitive {
6711
6735
  position: LngLatPoint | Cesium.Cartesian3 | number[];
6712
6736
  style: PointLight.StyleOptions | any;
6713
6737
  attr?: any | BaseGraphic.AjaxAttr;
6738
+ depthBiasStep?: number;
6714
6739
  id?: string | number;
6715
6740
  name?: string;
6716
6741
  show?: boolean;
@@ -6755,6 +6780,7 @@ declare namespace PointVisibility {
6755
6780
  * @param options.style - 样式信息
6756
6781
  * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
6757
6782
  * @param [options.terrain = true] - 是否启用地形分析,会自动开启深度检测
6783
+ * @param [options.depthBiasStep = 1] - 控制准确度和锯齿的参数,如需更精确可以传0.1、如需更平滑传100优化锯齿感(牺牲了一点精度)
6758
6784
  * @param [options.id = createGuid()] - 矢量数据id标识
6759
6785
  * @param [options.name = ''] - 矢量数据名称
6760
6786
  * @param [options.show = true] - 矢量数据是否显示
@@ -6766,6 +6792,7 @@ declare class PointVisibility extends BasePointPrimitive {
6766
6792
  style: PointVisibility.StyleOptions | any;
6767
6793
  attr?: any | BaseGraphic.AjaxAttr;
6768
6794
  terrain?: boolean;
6795
+ depthBiasStep?: number;
6769
6796
  id?: string | number;
6770
6797
  name?: string;
6771
6798
  show?: boolean;
@@ -7274,6 +7301,7 @@ declare namespace SpotLight {
7274
7301
  * @param options.position - 位置
7275
7302
  * @param options.style - 样式信息
7276
7303
  * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
7304
+ * @param [options.depthBiasStep = 1] - 控制准确度和锯齿的参数,如需更精确可以传0.1、如需更平滑传100优化锯齿感(牺牲了一点精度)
7277
7305
  * @param [options.id = createGuid()] - 矢量数据id标识
7278
7306
  * @param [options.name = ''] - 矢量数据名称
7279
7307
  * @param [options.show = true] - 矢量数据是否显示
@@ -7284,6 +7312,7 @@ declare class SpotLight extends PointLight {
7284
7312
  position: LngLatPoint | Cesium.Cartesian3 | number[];
7285
7313
  style: SpotLight.StyleOptions | any;
7286
7314
  attr?: any | BaseGraphic.AjaxAttr;
7315
+ depthBiasStep?: number;
7287
7316
  id?: string | number;
7288
7317
  name?: string;
7289
7318
  show?: boolean;
@@ -7412,6 +7441,7 @@ declare namespace Video3D {
7412
7441
  * @param options.style - 样式信息
7413
7442
  * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
7414
7443
  * @param [options.play = true] - 初始化后默认是播放还是停止状态
7444
+ * @param [options.synchronizer = true] - 是否内部加VideoSynchronizer同步时钟
7415
7445
  * @param [options.id = createGuid()] - 矢量数据id标识
7416
7446
  * @param [options.name = ''] - 矢量数据名称
7417
7447
  * @param [options.show = true] - 矢量数据是否显示
@@ -7426,6 +7456,7 @@ declare class Video3D extends ViewShed {
7426
7456
  style: Video3D.StyleOptions | any;
7427
7457
  attr?: any | BaseGraphic.AjaxAttr;
7428
7458
  play?: boolean;
7459
+ synchronizer?: boolean;
7429
7460
  id?: string | number;
7430
7461
  name?: string;
7431
7462
  show?: boolean;
@@ -7471,6 +7502,7 @@ declare namespace ViewDome {
7471
7502
  * @param [options.position] - 坐标位置
7472
7503
  * @param options.style - 样式信息
7473
7504
  * @param [options.attr] - 附件的属性信息,可以任意附加属性。
7505
+ * @param [options.depthBiasStep = 1] - 控制准确度和锯齿的参数,如需更精确可以传0.1、如需更平滑传100优化锯齿感(牺牲了一点精度)
7474
7506
  * @param [options.id = createGuid()] - 矢量数据id标识
7475
7507
  * @param [options.name = ''] - 矢量数据名称
7476
7508
  * @param [options.show = true] - 矢量数据是否显示
@@ -7483,6 +7515,7 @@ declare class ViewDome extends BasePointPrimitive {
7483
7515
  position?: LngLatPoint | Cesium.Cartesian3 | number[];
7484
7516
  style: ViewDome.StyleOptions | any;
7485
7517
  attr?: any;
7518
+ depthBiasStep?: number;
7486
7519
  id?: string | number;
7487
7520
  name?: string;
7488
7521
  show?: boolean;
@@ -7548,6 +7581,7 @@ declare namespace ViewShed {
7548
7581
  * @param options.style - 样式信息
7549
7582
  * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
7550
7583
  * @param [options.terrain = true] - 是否启用地形的阴影效果,在平原地区或无地形时可以关闭
7584
+ * @param [options.depthBiasStep = 1] - 控制准确度和锯齿的参数,如需更精确可以传0.1、如需更平滑传100优化锯齿感(牺牲了一点精度)
7551
7585
  * @param [options.id = createGuid()] - 矢量数据id标识
7552
7586
  * @param [options.name = ''] - 矢量数据名称
7553
7587
  * @param [options.show = true] - 矢量数据是否显示
@@ -7562,6 +7596,7 @@ declare class ViewShed extends BasePointPrimitive {
7562
7596
  style: ViewShed.StyleOptions | any;
7563
7597
  attr?: any | BaseGraphic.AjaxAttr;
7564
7598
  terrain?: boolean;
7599
+ depthBiasStep?: number;
7565
7600
  id?: string | number;
7566
7601
  name?: string;
7567
7602
  show?: boolean;
@@ -10222,7 +10257,7 @@ declare namespace CorridorEntity {
10222
10257
  * @property [cornerType] - 指定边角的样式。
10223
10258
  * @property [height = 0] - 高程,圆相对于椭球面的高度。
10224
10259
  * @property [heightReference = Cesium.HeightReference.NONE] - 指定高度相对于什么的属性。
10225
- * @property [diffHeight = 100] - 高度差(走廊本身的高度),与extrudedHeight二选一。
10260
+ * @property [diffHeight = 100] - 高度差(相对于本身的高度的差值),与extrudedHeight二选一。
10226
10261
  * @property [extrudedHeight] - 指定走廊挤压面相对于椭球面的高度。
10227
10262
  * @property [extrudedHeightReference = Cesium.HeightReference.NONE] - 指定挤压高度相对于什么的属性。
10228
10263
  * @property [fill = true] - 是否填充。
@@ -12456,7 +12491,7 @@ declare namespace PolygonEntity {
12456
12491
  * @property [distanceDisplayCondition_near = 0] - 最小距离
12457
12492
  * @property [height = 0] - 高程,圆相对于椭球面的高度。
12458
12493
  * @property [heightReference = Cesium.HeightReference.NONE] - 指定高度相对于什么的属性。
12459
- * @property [diffHeight = 100] - 高度差(走廊本身的高度),与extrudedHeight二选一。
12494
+ * @property [diffHeight = 100] - 高度差(相对于本身的高度的差值),与extrudedHeight二选一。
12460
12495
  * @property [extrudedHeight] - 指定走廊挤压面相对于椭球面的高度。
12461
12496
  * @property [extrudedHeightReference = Cesium.HeightReference.NONE] - 指定挤压高度相对于什么的属性。
12462
12497
  * @property [granularity = Cesium.Math.RADIANS_PER_DEGREE] - 指定每个纬度点和经度点之间的角距离。
@@ -12958,7 +12993,7 @@ declare namespace RectangleEntity {
12958
12993
  * @property [outlineStyle] - 边框的完整自定义样式,会覆盖outlineWidth、outlineColor等参数。
12959
12994
  * @property [height = 0] - 高程,圆相对于椭球面的高度。
12960
12995
  * @property [heightReference = Cesium.HeightReference.NONE] - 指定高度相对于什么的属性。
12961
- * @property [diffHeight = 100] - 高度差(走廊本身的高度),与extrudedHeight二选一。
12996
+ * @property [diffHeight = 100] - 高度差(相对于本身的高度的差值),与extrudedHeight二选一。
12962
12997
  * @property [extrudedHeight] - 指定走廊挤压面相对于椭球面的高度。
12963
12998
  * @property [extrudedHeightReference = Cesium.HeightReference.NONE] - 指定挤压高度相对于什么的属性。
12964
12999
  * @property [rotation = 0] - 旋转角度(弧度值),正北为0,逆时针旋转
@@ -13403,9 +13438,12 @@ declare namespace Video2D {
13403
13438
  * 视频融合(投射2D平面),
13404
13439
  * 根据相机位置、方向等参数,在相机前面生成一个PolygonEntity面,然后贴视频纹理
13405
13440
  * @param options - 参数对象,包括以下:
13441
+ * @param [options.position] - 相机坐标位置
13406
13442
  * @param [options.targetPosition] - 目标视点位置,可以替代style中的相机heading\pitch\roll方向和distance距离参数
13407
13443
  * @param options.style - 样式信息
13408
13444
  * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
13445
+ * @param [options.play = true] - 初始化后默认是播放还是停止状态
13446
+ * @param [options.synchronizer = true] - 是否内部加VideoSynchronizer同步时钟
13409
13447
  * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
13410
13448
  * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
13411
13449
  * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
@@ -13425,6 +13463,8 @@ declare class Video2D extends PolygonEntity {
13425
13463
  targetPosition?: LngLatPoint | Cesium.Cartesian3 | number[];
13426
13464
  style: Video2D.StyleOptions | any;
13427
13465
  attr?: any | BaseGraphic.AjaxAttr;
13466
+ play?: boolean;
13467
+ synchronizer?: boolean;
13428
13468
  popup?: string | any[] | ((...params: any[]) => any);
13429
13469
  popupOptions?: Popup.StyleOptions | any;
13430
13470
  tooltip?: string | any[] | ((...params: any[]) => any);
@@ -16784,7 +16824,7 @@ declare namespace CorridorPrimitive {
16784
16824
  * @property [outlineOpacity = 0.6] - 边框透明度
16785
16825
  * @property [image] - 图片材质时,贴图的url,等价于 materialType:'Image'
16786
16826
  * @property [height = 0] - 高程,圆相对于椭球面的高度。
16787
- * @property [diffHeight = 100] - 高度差(走廊本身的高度),与extrudedHeight二选一。
16827
+ * @property [diffHeight = 100] - 高度差(相对于本身的高度的差值),与extrudedHeight二选一。
16788
16828
  * @property [extrudedHeight] - 指定走廊挤压面相对于椭球面的高度。
16789
16829
  * @property [hasShadows = false] - 是否阴影
16790
16830
  * @property [shadows = Cesium.ShadowMode.DISABLED] - 指定对象是投射还是接收来自光源的阴影。
@@ -17127,6 +17167,148 @@ declare class DiffuseWall extends BasePolyPrimitive {
17127
17167
  readonly czmObject: Cesium.Entity | Cesium.Primitive | Cesium.GroundPrimitive | Cesium.ClassificationPrimitive | any;
17128
17168
  }
17129
17169
 
17170
+ declare namespace DivBillboardPrimitive {
17171
+ /**
17172
+ * HTML转图片后的图标点Primitive 支持的样式信息
17173
+ * @property html - Html内容
17174
+ * @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
17175
+ * @property [scale = 1] - 图像大小的比例
17176
+ * @property [rotation = 0] - 旋转角度(弧度值),正北为0,逆时针旋转
17177
+ * @property [rotationDegree = 0] - 旋转角度(度数值,0-360度),与rotation二选一
17178
+ * @property [horizontalOrigin] - 横向方向的定位
17179
+ * @property [verticalOrigin] - 垂直方向的定位
17180
+ * @property [width] - 指定广告牌的宽度(以像素为单位),覆盖图片本身大小。
17181
+ * @property [height] - 指定广告牌的高度(以像素为单位),覆盖图片本身大小。
17182
+ * @property [hasPixelOffset = false] - 是否存在偏移量
17183
+ * @property [pixelOffsetX = 0] - 横向偏移像素
17184
+ * @property [pixelOffsetY = 0] - 纵向偏移像素
17185
+ * @property [pixelOffset = Cartesian2.ZERO] - 指定像素偏移量。
17186
+ * @property [scaleByDistance = false] - 是否按视距缩放 或 设置基于与相机的距离缩放点
17187
+ * @property [scaleByDistance_far = 1000000] - 上限
17188
+ * @property [scaleByDistance_farValue = 0.1] - 比例值
17189
+ * @property [scaleByDistance_near = 1000] - 下限
17190
+ * @property [scaleByDistance_nearValue = 1] - 比例值
17191
+ * @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定该广告牌将显示在与摄像机的多大距离
17192
+ * @property [distanceDisplayCondition_far = number.MAX_VALUE] - 最大距离
17193
+ * @property [distanceDisplayCondition_near = 0] - 最小距离
17194
+ * @property [clampToGround = false] - 是否贴地
17195
+ * @property [heightReference = Cesium.HeightReference.NONE] - 指定高度相对于什么的属性。
17196
+ * @property [visibleDepth = true] - 是否被遮挡
17197
+ * @property [disableDepthTestDistance] - 指定从相机到禁用深度测试的距离。
17198
+ * @property [color = Color.WHITE] - 附加的颜色
17199
+ * @property [eyeOffset = Cartesian3.ZERO] - 眼偏移量
17200
+ * @property [alignedAxis = Cartesian3.ZERO] - 指定单位旋转向量轴。
17201
+ * @property [sizeInMeters] - 指定该广告牌的大小是否应该以米来度量。
17202
+ * @property [translucencyByDistance] - 用于基于与相机的距离设置半透明度。
17203
+ * @property [pixelOffsetScaleByDistance] - 用于基于与相机的距离设置pixelOffset。
17204
+ * @property [pixelOffsetScaleByDistance_far = 1000000] - 上限
17205
+ * @property [pixelOffsetScaleByDistance_farValue = 0.1] - 比例值
17206
+ * @property [pixelOffsetScaleByDistance_near = 1000] - 下限
17207
+ * @property [pixelOffsetScaleByDistance_nearValue = 1] - 比例值
17208
+ * @property [imageSubRegion] - 定义用于广告牌的图像的子区域,而不是从左下角开始以像素为单位的整个图像。
17209
+ * @property [setHeight] - 指定坐标高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
17210
+ * @property [addHeight] - 在现有坐标基础上增加的高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
17211
+ * @property [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,提示:原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
17212
+ * // * @param {string} [highlight.type] 事件方式,鼠标移入高亮 或 单击高亮(type:'click')
17213
+ * // * @param {boolean} [highlight.enabled=true] 是否启用
17214
+ * @property [label] - 支持附带文字的显示
17215
+ */
17216
+ type StyleOptions = any | {
17217
+ html: string;
17218
+ opacity?: number;
17219
+ scale?: number;
17220
+ rotation?: number;
17221
+ rotationDegree?: number;
17222
+ horizontalOrigin?: Cesium.HorizontalOrigin;
17223
+ verticalOrigin?: Cesium.VerticalOrigin;
17224
+ width?: number;
17225
+ height?: number;
17226
+ hasPixelOffset?: boolean;
17227
+ pixelOffsetX?: number;
17228
+ pixelOffsetY?: number;
17229
+ pixelOffset?: Cesium.Cartesian2 | number[];
17230
+ scaleByDistance?: boolean | Cesium.NearFarScalar;
17231
+ scaleByDistance_far?: number;
17232
+ scaleByDistance_farValue?: number;
17233
+ scaleByDistance_near?: number;
17234
+ scaleByDistance_nearValue?: number;
17235
+ distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
17236
+ distanceDisplayCondition_far?: number;
17237
+ distanceDisplayCondition_near?: number;
17238
+ clampToGround?: boolean;
17239
+ heightReference?: Cesium.HeightReference;
17240
+ visibleDepth?: boolean;
17241
+ disableDepthTestDistance?: number;
17242
+ color?: Cesium.Color;
17243
+ eyeOffset?: Cesium.Cartesian3;
17244
+ alignedAxis?: Cesium.Cartesian3;
17245
+ sizeInMeters?: boolean;
17246
+ translucencyByDistance?: Cesium.NearFarScalar;
17247
+ pixelOffsetScaleByDistance?: boolean | Cesium.NearFarScalar;
17248
+ pixelOffsetScaleByDistance_far?: number;
17249
+ pixelOffsetScaleByDistance_farValue?: number;
17250
+ pixelOffsetScaleByDistance_near?: number;
17251
+ pixelOffsetScaleByDistance_nearValue?: number;
17252
+ imageSubRegion?: Cesium.BoundingRectangle;
17253
+ setHeight?: number | string;
17254
+ addHeight?: number | string;
17255
+ highlight?: DivBillboardPrimitive.StyleOptions | any;
17256
+ label?: LabelEntity.StyleOptions | any;
17257
+ };
17258
+ }
17259
+
17260
+ /**
17261
+ * HTML转图片后的 图标点Primitive,
17262
+ * 需要引入html2canvas或domtoimage插件进行DOM转图片
17263
+ * @param options - 参数对象,包括以下:
17264
+ * @param [options.position] - 坐标位置
17265
+ * @param options.style - 样式信息
17266
+ * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
17267
+ * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.NONE] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认不显示,Cesium.ExtrapolationType.HOLD时最后一个坐标位置。
17268
+ * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.NONE] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认不显示,Cesium.ExtrapolationType.HOLD时为第一个坐标位置。
17269
+ * @param [options.clampToTileset] - 当使用addDynamicPosition设置为动画轨迹位置时,是否进行贴模型。
17270
+ * @param [options.frameRateHeight = 30] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,多少帧计算一次贴模型高度
17271
+ * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
17272
+ * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
17273
+ * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
17274
+ * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数
17275
+ * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定
17276
+ * @param [options.id = createGuid()] - 矢量数据id标识
17277
+ * @param [options.name = ''] - 矢量数据名称
17278
+ * @param [options.show = true] - 矢量数据是否显示
17279
+ * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
17280
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
17281
+ * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
17282
+ * @param [options.flyToOptions] - 加载完成数据后是否自动飞行定位到数据所在的区域的对应 {@link BaseGraphic#flyTo}方法参数。
17283
+ */
17284
+ declare class DivBillboardPrimitive extends BillboardPrimitive {
17285
+ constructor(options: {
17286
+ position?: LngLatPoint | Cesium.Cartesian3 | Cesium.PositionProperty | BaseGraphic.AjaxPosition | number[] | string;
17287
+ style: DivBillboardPrimitive.StyleOptions | any;
17288
+ attr?: any | BaseGraphic.AjaxAttr;
17289
+ forwardExtrapolationType?: Cesium.ExtrapolationType;
17290
+ backwardExtrapolationType?: Cesium.ExtrapolationType;
17291
+ clampToTileset?: boolean;
17292
+ frameRateHeight?: number;
17293
+ popup?: string | any[] | ((...params: any[]) => any);
17294
+ popupOptions?: Popup.StyleOptions | any;
17295
+ tooltip?: string | any[] | ((...params: any[]) => any);
17296
+ tooltipOptions?: Tooltip.StyleOptions | any;
17297
+ contextmenuItems?: any;
17298
+ id?: string | number;
17299
+ name?: string;
17300
+ show?: boolean;
17301
+ eventParent?: BaseClass | boolean;
17302
+ allowDrillPick?: boolean | ((...params: any[]) => any);
17303
+ flyTo?: boolean;
17304
+ flyToOptions?: any;
17305
+ });
17306
+ /**
17307
+ * 图像、URI或Canvas
17308
+ */
17309
+ image: string | HTMLCanvasElement;
17310
+ }
17311
+
17130
17312
  declare namespace DoubleSidedPlane {
17131
17313
  /**
17132
17314
  * 双面渲染图片平面 支持的样式信息
@@ -18516,7 +18698,7 @@ declare namespace PolygonPrimitive {
18516
18698
  * @property [outlineOpacity = 0.6] - 边框透明度
18517
18699
  * @property [outlineStyle] - 边框的样式,会覆盖outlineColor、outlineOpacity
18518
18700
  * @property [height = 0] - 高程,圆相对于椭球面的高度。
18519
- * @property [diffHeight = 100] - 高度差(走廊本身的高度),与extrudedHeight二选一。
18701
+ * @property [diffHeight = 100] - 高度差(相对于本身的高度的差值),与extrudedHeight二选一。
18520
18702
  * @property [extrudedHeight] - 指定走廊挤压面相对于椭球面的高度。
18521
18703
  * @property [granularity = Cesium.Math.RADIANS_PER_DEGREE] - 指定每个纬度点和经度点之间的角距离。
18522
18704
  * @property [closeTop = true] - 当为false时,离开一个挤压多边形的顶部打开。
@@ -18953,7 +19135,7 @@ declare namespace RectanglePrimitive {
18953
19135
  * @property [outlineOpacity = 0.6] - 边框透明度
18954
19136
  * @property [outlineStyle] - 边框的样式,会覆盖outlineColor、outlineOpacity
18955
19137
  * @property [height = 0] - 高程,圆相对于椭球面的高度。
18956
- * @property [diffHeight = 100] - 高度差(走廊本身的高度),与extrudedHeight二选一。
19138
+ * @property [diffHeight = 100] - 高度差(相对于本身的高度的差值),与extrudedHeight二选一。
18957
19139
  * @property [extrudedHeight] - 指定走廊挤压面相对于椭球面的高度。
18958
19140
  * @property [rotation = 0] - 旋转角度(弧度值),正北为0,逆时针旋转
18959
19141
  * @property [rotationDegree = 0] - 旋转角度(度数值,0-360度),与rotation二选一
@@ -19130,10 +19312,12 @@ declare namespace ReflectionWater {
19130
19312
  * @property [animationSpeed = 1.0] - 控制水的动画速度的数字。
19131
19313
  * @property [specularIntensity = 0.3] - 控制镜面反射强度的数字。
19132
19314
  * @property [lightDirection = new Cesium.Cartesian3(0, 0, 1)] - 光照方向,单位向量。原点为水面中心点,水面中心点由 options.positions 决定,X、Y、Z轴对应水面中心点的东、北、上方向。(默认为0,0,1)
19315
+ * @property [farDistance = 10000] - 指定相机距离超过指定距离
19316
+ * @property [farColor = "#91B3FF"] - 相机距离超过farDistance时的水面的颜色
19133
19317
  * @property [stRotation = 0] - 水流方向的角度(弧度值),正北为0,逆时针旋转
19134
19318
  * @property [stRotationDegree = 0] - 水流方向的角度(度数值,0-360度),与stRotation二选一
19135
19319
  * @property [height = 0] - 高程,圆相对于椭球面的高度。
19136
- * @property [diffHeight = 100] - 高度差(走廊本身的高度),与extrudedHeight二选一。
19320
+ * @property [diffHeight = 100] - 高度差(相对于本身的高度的差值),与extrudedHeight二选一。
19137
19321
  * @property [extrudedHeight] - 指定走廊挤压面相对于椭球面的高度。
19138
19322
  * @property [granularity = Cesium.Math.RADIANS_PER_DEGREE] - 指定每个纬度点和经度点之间的角距离。
19139
19323
  * @property [closeTop = true] - 当为false时,离开一个挤压多边形的顶部打开。
@@ -19141,7 +19325,7 @@ declare namespace ReflectionWater {
19141
19325
  * @property [arcType] - 多边形的边缘必须遵循的线条类型。
19142
19326
  */
19143
19327
  type StyleOptions = any | {
19144
- color?: string;
19328
+ color?: string | Cesium.Color;
19145
19329
  opacity?: number;
19146
19330
  normalMap?: string;
19147
19331
  reflectivity?: number;
@@ -19151,6 +19335,8 @@ declare namespace ReflectionWater {
19151
19335
  animationSpeed?: number;
19152
19336
  specularIntensity?: number;
19153
19337
  lightDirection?: Cesium.Cartesian3;
19338
+ farDistance?: number;
19339
+ farColor?: string | Cesium.Color;
19154
19340
  stRotation?: number;
19155
19341
  stRotationDegree?: number;
19156
19342
  height?: number;
@@ -19720,7 +19906,7 @@ declare namespace Water {
19720
19906
  * @property [outlineColor = "#ffffff"] - 边框颜色
19721
19907
  * @property [outlineOpacity = 0.6] - 边框透明度
19722
19908
  * @property [height = 0] - 高程,圆相对于椭球面的高度。
19723
- * @property [diffHeight = 100] - 高度差(走廊本身的高度),与extrudedHeight二选一。
19909
+ * @property [diffHeight = 100] - 高度差(相对于本身的高度的差值),与extrudedHeight二选一。
19724
19910
  * @property [extrudedHeight] - 指定走廊挤压面相对于椭球面的高度。
19725
19911
  * @property [granularity = Cesium.Math.RADIANS_PER_DEGREE] - 指定每个纬度点和经度点之间的角距离。
19726
19912
  * @property [closeTop = true] - 当为false时,离开一个挤压多边形的顶部打开。
@@ -31985,7 +32171,7 @@ declare namespace RectSensor {
31985
32171
  * @param [options.position] - 坐标位置
31986
32172
  * @param options.style - 样式信息
31987
32173
  * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
31988
- * @param [options.lookAt] - 椎体方向追踪的目标(椎体方向跟随变化,位置不变)
32174
+ * @param [options.lookAt] - 椎体方向及长度(未传入length时)追踪的目标(椎体方向跟随变化,位置不变)
31989
32175
  * @param [options.fixedFrameTransform = Cesium.Transforms.eastNorthUpToFixedFrame] - 参考系
31990
32176
  * @param [options.reverse = false] - 是否反转朝向
31991
32177
  * @param [options.id = createGuid()] - 矢量数据id标识
@@ -35694,7 +35880,7 @@ declare class TilesetFlat extends TilesetEditBase {
35694
35880
  /**
35695
35881
  * 更新压平高度
35696
35882
  * @param height - 压平高度,单位:米
35697
- * @param [id] - 精确模式下指定更新的区域id,为空时更新所有,掩膜模式下无效
35883
+ * @param [id] - 精确模式(precise:true)下指定更新的区域id,为空时更新所有,掩膜模式下无效
35698
35884
  */
35699
35885
  updateHeight(height: number, id?: number): void;
35700
35886
  /**
@@ -38834,6 +39020,7 @@ declare namespace graphic {
38834
39020
  //基础primitive
38835
39021
  export { PointPrimitive }
38836
39022
  export { BillboardPrimitive }
39023
+ export { DivBillboardPrimitive }
38837
39024
  export { CloudPrimitive }
38838
39025
  export { LabelPrimitive }
38839
39026
  export { ModelPrimitive }