mars3d 3.9.2 → 3.9.4
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/mars3d.css +2 -2
- package/mars3d.d.ts +167 -90
- package/mars3d.js +3 -3
- package/package.json +1 -1
package/mars3d.css
CHANGED
package/mars3d.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.9.
|
|
6
|
-
* 编译日期:2025-03-
|
|
5
|
+
* 版本信息:v3.9.4
|
|
6
|
+
* 编译日期:2025-03-25 22:35
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:火星科技免费公开版 ,2025-02-01
|
|
9
9
|
*/
|
|
@@ -159,12 +159,14 @@ declare enum EffectType {
|
|
|
159
159
|
brightness,
|
|
160
160
|
depthOfField,
|
|
161
161
|
fog,
|
|
162
|
+
highFog,
|
|
162
163
|
mosaic,
|
|
163
164
|
nightVision,
|
|
164
165
|
outline,
|
|
165
166
|
rain,
|
|
166
167
|
snow,
|
|
167
168
|
snowCover,
|
|
169
|
+
lightning,
|
|
168
170
|
colorCorrection
|
|
169
171
|
}
|
|
170
172
|
|
|
@@ -1431,7 +1433,7 @@ declare enum LayerType {
|
|
|
1431
1433
|
* width: 5,
|
|
1432
1434
|
* material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineFlow, {
|
|
1433
1435
|
* color: '#00ff00',
|
|
1434
|
-
* image: '
|
|
1436
|
+
* image: 'https://data.mars3d.cn/img/textures/line-pulse.png',
|
|
1435
1437
|
* speed: 5,
|
|
1436
1438
|
* }),
|
|
1437
1439
|
* },
|
|
@@ -1448,7 +1450,7 @@ declare enum LayerType {
|
|
|
1448
1450
|
* width: 5,
|
|
1449
1451
|
* material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
|
|
1450
1452
|
* color: '#1a9850',
|
|
1451
|
-
* image: '
|
|
1453
|
+
* image: 'https://data.mars3d.cn/img/textures/line-arrow.png',
|
|
1452
1454
|
* speed: 10,
|
|
1453
1455
|
* }),
|
|
1454
1456
|
* },
|
|
@@ -4194,13 +4196,13 @@ declare class BaseEffect extends BaseThing {
|
|
|
4194
4196
|
/**
|
|
4195
4197
|
* 黑白效果
|
|
4196
4198
|
* @param [options] - 参数对象,包括以下:
|
|
4197
|
-
* @param [options.enabled = true] - 对象的启用状态
|
|
4198
4199
|
* @param [options.gradations = 4.0] - 渐变
|
|
4200
|
+
* @param [options.enabled = true] - 对象的启用状态
|
|
4199
4201
|
*/
|
|
4200
|
-
declare class
|
|
4202
|
+
declare class BlackAndWhite extends BaseEffect {
|
|
4201
4203
|
constructor(options?: {
|
|
4202
|
-
enabled?: boolean;
|
|
4203
4204
|
gradations?: number;
|
|
4205
|
+
enabled?: boolean;
|
|
4204
4206
|
});
|
|
4205
4207
|
/**
|
|
4206
4208
|
* 渐变
|
|
@@ -4211,21 +4213,21 @@ declare class BlackAndWhiteEffect extends BaseEffect {
|
|
|
4211
4213
|
/**
|
|
4212
4214
|
* 泛光效果, 使明亮的区域更亮,黑暗的区域更暗。
|
|
4213
4215
|
* @param [options] - 参数对象,包括以下:
|
|
4214
|
-
* @param [options.enabled = true] - 对象的启用状态
|
|
4215
4216
|
* @param [options.contrast = 128] - 对比度,取值范围[-255.0,255.0]
|
|
4216
4217
|
* @param [options.brightness = -0.3] - 亮度, 将输入纹理的RGB值转换为色相、饱和度和亮度(HSB),然后将该值添加到亮度中。
|
|
4217
4218
|
* @param [options.delta = 1.0] - 增量权值
|
|
4218
4219
|
* @param [options.sigma = 3.78] - 滤波权值,delta和sigma用于计算高斯滤波器的权值。方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。
|
|
4219
4220
|
* @param [options.stepSize = 5.0] - 步长,是下一个texel的距离
|
|
4221
|
+
* @param [options.enabled = true] - 对象的启用状态
|
|
4220
4222
|
*/
|
|
4221
|
-
declare class
|
|
4223
|
+
declare class Bloom extends BaseEffect {
|
|
4222
4224
|
constructor(options?: {
|
|
4223
|
-
enabled?: boolean;
|
|
4224
4225
|
contrast?: number;
|
|
4225
4226
|
brightness?: number;
|
|
4226
4227
|
delta?: number;
|
|
4227
4228
|
sigma?: number;
|
|
4228
4229
|
stepSize?: number;
|
|
4230
|
+
enabled?: boolean;
|
|
4229
4231
|
});
|
|
4230
4232
|
/**
|
|
4231
4233
|
* 对比度,取值范围[-255.0,255.0]
|
|
@@ -4266,7 +4268,7 @@ declare class BloomEffect extends BaseEffect {
|
|
|
4266
4268
|
* @param [options.objectsToExclude] - 排除不拾取的对象,支持TilesetLayer或Graphic对象
|
|
4267
4269
|
* @param [options.enabled = true] - 对象的启用状态
|
|
4268
4270
|
*/
|
|
4269
|
-
declare class
|
|
4271
|
+
declare class BloomTarget extends BaseEffect {
|
|
4270
4272
|
constructor(options?: {
|
|
4271
4273
|
eventType?: EventType | boolean;
|
|
4272
4274
|
color?: Cesium.Color;
|
|
@@ -4335,13 +4337,13 @@ declare class BloomTargetEffect extends BaseEffect {
|
|
|
4335
4337
|
/**
|
|
4336
4338
|
* 高亮特效
|
|
4337
4339
|
* @param [options] - 参数对象,包括以下:
|
|
4338
|
-
* @param [options.enabled = true] - 对象的启用状态
|
|
4339
4340
|
* @param [options.brightness = 2.0] - 亮度值
|
|
4341
|
+
* @param [options.enabled = true] - 对象的启用状态
|
|
4340
4342
|
*/
|
|
4341
|
-
declare class
|
|
4343
|
+
declare class Brightness extends BaseEffect {
|
|
4342
4344
|
constructor(options?: {
|
|
4343
|
-
enabled?: boolean;
|
|
4344
4345
|
brightness?: number;
|
|
4346
|
+
enabled?: boolean;
|
|
4345
4347
|
});
|
|
4346
4348
|
/**
|
|
4347
4349
|
* 亮度, 将输入纹理的RGB值转换为色相、饱和度和亮度(HSB),然后将该值添加到亮度中
|
|
@@ -4358,7 +4360,7 @@ declare class BrightnessEffect extends BaseEffect {
|
|
|
4358
4360
|
* @param [options.hue = 0.0] - 色调
|
|
4359
4361
|
* @param [options.saturation = 1.0] - 饱和度
|
|
4360
4362
|
*/
|
|
4361
|
-
declare class
|
|
4363
|
+
declare class ColorCorrection extends BaseEffect {
|
|
4362
4364
|
constructor(options?: {
|
|
4363
4365
|
enabled?: boolean;
|
|
4364
4366
|
brightness?: number;
|
|
@@ -4393,7 +4395,7 @@ declare class ColorCorrectionEffect extends BaseEffect {
|
|
|
4393
4395
|
* @param [options.sigma = 3.78] - delta和sigma用于计算高斯滤波器的权值。方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。
|
|
4394
4396
|
* @param [options.stepSize = 5.0] - 步长,是下一个texel的距离
|
|
4395
4397
|
*/
|
|
4396
|
-
declare class
|
|
4398
|
+
declare class DepthOfField extends BaseEffect {
|
|
4397
4399
|
constructor(options?: {
|
|
4398
4400
|
enabled?: boolean;
|
|
4399
4401
|
focalDistance?: number;
|
|
@@ -4431,7 +4433,7 @@ declare class DepthOfFieldEffect extends BaseEffect {
|
|
|
4431
4433
|
* @param [options.color = Cesium.Color.WHITE] - 雾颜色
|
|
4432
4434
|
* @param [options.maxHeight = 9000] - 最大高度,限定超出该高度不显示雾场景效果
|
|
4433
4435
|
*/
|
|
4434
|
-
declare class
|
|
4436
|
+
declare class Fog extends BaseEffect {
|
|
4435
4437
|
constructor(options?: {
|
|
4436
4438
|
enabled?: boolean;
|
|
4437
4439
|
fogByDistance?: Cesium.Cartesian4;
|
|
@@ -4456,12 +4458,70 @@ declare class FogEffect extends BaseEffect {
|
|
|
4456
4458
|
maxHeight: number;
|
|
4457
4459
|
}
|
|
4458
4460
|
|
|
4461
|
+
/**
|
|
4462
|
+
* 高度雾 效果 (需要开启深度检测)
|
|
4463
|
+
* @param [options] - 参数对象,包括以下:
|
|
4464
|
+
* @param [options.height = 300] - 雾顶部高度
|
|
4465
|
+
* @param [options.density = 0.6] - 雾浓度 0-1
|
|
4466
|
+
* @param [options.color = Cesium.Color.WHITE] - 雾颜色
|
|
4467
|
+
* @param [options.enabled = true] - 对象的启用状态
|
|
4468
|
+
*/
|
|
4469
|
+
declare class HighFog extends BaseEffect {
|
|
4470
|
+
constructor(options?: {
|
|
4471
|
+
height?: number;
|
|
4472
|
+
density?: number;
|
|
4473
|
+
color?: Cesium.Color;
|
|
4474
|
+
enabled?: boolean;
|
|
4475
|
+
});
|
|
4476
|
+
/**
|
|
4477
|
+
* 雾颜色
|
|
4478
|
+
*/
|
|
4479
|
+
color: Cesium.Color;
|
|
4480
|
+
/**
|
|
4481
|
+
* 雾顶部高度
|
|
4482
|
+
*/
|
|
4483
|
+
height: number;
|
|
4484
|
+
/**
|
|
4485
|
+
* 雾浓度
|
|
4486
|
+
*/
|
|
4487
|
+
density: number;
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4490
|
+
/**
|
|
4491
|
+
* 闪电 效果
|
|
4492
|
+
* @param [options] - 参数对象,包括以下:
|
|
4493
|
+
* @param [options.opacity = 0.4] - 混合系数 0-1
|
|
4494
|
+
* @param [options.interval = 0.8] - 闪电间隔 0-1
|
|
4495
|
+
* @param [options.maxHeight = 9000] - 最大高度,限定超出该高度不显示闪电
|
|
4496
|
+
* @param [options.enabled = true] - 对象的启用状态
|
|
4497
|
+
*/
|
|
4498
|
+
declare class Lightning extends BaseEffect {
|
|
4499
|
+
constructor(options?: {
|
|
4500
|
+
opacity?: number;
|
|
4501
|
+
interval?: number;
|
|
4502
|
+
maxHeight?: number;
|
|
4503
|
+
enabled?: boolean;
|
|
4504
|
+
});
|
|
4505
|
+
/**
|
|
4506
|
+
* 混合系数0-1
|
|
4507
|
+
*/
|
|
4508
|
+
opacity: number;
|
|
4509
|
+
/**
|
|
4510
|
+
* 闪电间隔 0-1
|
|
4511
|
+
*/
|
|
4512
|
+
interval: number;
|
|
4513
|
+
/**
|
|
4514
|
+
* 最高限定高度,超出该高度不显示积雪效果
|
|
4515
|
+
*/
|
|
4516
|
+
maxHeight: number;
|
|
4517
|
+
}
|
|
4518
|
+
|
|
4459
4519
|
/**
|
|
4460
4520
|
* 马赛克效果
|
|
4461
4521
|
* @param [options] - 参数对象,包括以下:
|
|
4462
4522
|
* @param [options.enabled = true] - 对象的启用状态
|
|
4463
4523
|
*/
|
|
4464
|
-
declare class
|
|
4524
|
+
declare class Mosaic extends BaseEffect {
|
|
4465
4525
|
constructor(options?: {
|
|
4466
4526
|
enabled?: boolean;
|
|
4467
4527
|
});
|
|
@@ -4472,13 +4532,13 @@ declare class MosaicEffect extends BaseEffect {
|
|
|
4472
4532
|
* @param [options] - 参数对象,包括以下:
|
|
4473
4533
|
* @param [options.enabled = true] - 对象的启用状态
|
|
4474
4534
|
*/
|
|
4475
|
-
declare class
|
|
4535
|
+
declare class NightVision extends BaseEffect {
|
|
4476
4536
|
constructor(options?: {
|
|
4477
4537
|
enabled?: boolean;
|
|
4478
4538
|
});
|
|
4479
4539
|
}
|
|
4480
4540
|
|
|
4481
|
-
declare namespace
|
|
4541
|
+
declare namespace Outline {
|
|
4482
4542
|
/**
|
|
4483
4543
|
* 对象轮廓描边效果 支持的参数信息
|
|
4484
4544
|
* @property [width = 6] - 线宽,单位:像素px
|
|
@@ -4511,7 +4571,7 @@ declare namespace OutlineEffect {
|
|
|
4511
4571
|
* @param [options.closeOnClick = true] - 是否在单击Map地图时,自动关闭当前弹窗
|
|
4512
4572
|
* @param [options.enabled = true] - 对象的启用状态
|
|
4513
4573
|
*/
|
|
4514
|
-
declare class
|
|
4574
|
+
declare class Outline extends BaseEffect {
|
|
4515
4575
|
constructor(options?: {
|
|
4516
4576
|
eventType?: EventType | boolean;
|
|
4517
4577
|
closeOnClick?: boolean;
|
|
@@ -4568,7 +4628,7 @@ declare class OutlineEffect extends BaseEffect {
|
|
|
4568
4628
|
* @param [options.direction = -30] - 方向(度),0度垂直向下
|
|
4569
4629
|
* @param [options.maxHeight = 9000] - 最大高度,限定超出该高度不显示雨天气效果, 传入-1时不限制
|
|
4570
4630
|
*/
|
|
4571
|
-
declare class
|
|
4631
|
+
declare class Rain extends BaseEffect {
|
|
4572
4632
|
constructor(options?: {
|
|
4573
4633
|
enabled?: boolean;
|
|
4574
4634
|
size?: number;
|
|
@@ -4594,31 +4654,6 @@ declare class RainEffect extends BaseEffect {
|
|
|
4594
4654
|
maxHeight: number;
|
|
4595
4655
|
}
|
|
4596
4656
|
|
|
4597
|
-
/**
|
|
4598
|
-
* 地面积雪 效果
|
|
4599
|
-
* @param [options] - 参数对象,包括以下:
|
|
4600
|
-
* @param [options.enabled = true] - 对象的启用状态
|
|
4601
|
-
* @param [options.alpha = 1.0] - 覆盖强度 0-1
|
|
4602
|
-
* @param [options.layer] - 如果传值3dtiles图层,只对该模型生效
|
|
4603
|
-
* @param [options.maxHeight = 9000] - 最大高度,限定超出该高度不显示积雪效果, 传入-1时不限制
|
|
4604
|
-
*/
|
|
4605
|
-
declare class SnowCoverEffect extends BaseEffect {
|
|
4606
|
-
constructor(options?: {
|
|
4607
|
-
enabled?: boolean;
|
|
4608
|
-
alpha?: number;
|
|
4609
|
-
layer?: TilesetLayer;
|
|
4610
|
-
maxHeight?: number;
|
|
4611
|
-
});
|
|
4612
|
-
/**
|
|
4613
|
-
* 覆盖强度 0-1
|
|
4614
|
-
*/
|
|
4615
|
-
alpha: number;
|
|
4616
|
-
/**
|
|
4617
|
-
* 最高限定高度,超出该高度不显示积雪效果
|
|
4618
|
-
*/
|
|
4619
|
-
maxHeight: number;
|
|
4620
|
-
}
|
|
4621
|
-
|
|
4622
4657
|
/**
|
|
4623
4658
|
* 雪天气 效果
|
|
4624
4659
|
* @param [options] - 参数对象,包括以下:
|
|
@@ -4627,7 +4662,7 @@ declare class SnowCoverEffect extends BaseEffect {
|
|
|
4627
4662
|
* @param [options.scale = 10.0] - 粒子大小
|
|
4628
4663
|
* @param [options.maxHeight = 9000] - 最大高度,限定超出该高度不显示雪天气效果, 传入-1时不限制
|
|
4629
4664
|
*/
|
|
4630
|
-
declare class
|
|
4665
|
+
declare class Snow extends BaseEffect {
|
|
4631
4666
|
constructor(options?: {
|
|
4632
4667
|
enabled?: boolean;
|
|
4633
4668
|
speed?: number;
|
|
@@ -4648,6 +4683,31 @@ declare class SnowEffect extends BaseEffect {
|
|
|
4648
4683
|
scale: number;
|
|
4649
4684
|
}
|
|
4650
4685
|
|
|
4686
|
+
/**
|
|
4687
|
+
* 地面积雪 效果
|
|
4688
|
+
* @param [options] - 参数对象,包括以下:
|
|
4689
|
+
* @param [options.enabled = true] - 对象的启用状态
|
|
4690
|
+
* @param [options.alpha = 1.0] - 覆盖强度 0-1
|
|
4691
|
+
* @param [options.layer] - 如果传值3dtiles图层,只对该模型生效
|
|
4692
|
+
* @param [options.maxHeight = 9000] - 最大高度,限定超出该高度不显示积雪效果, 传入-1时不限制
|
|
4693
|
+
*/
|
|
4694
|
+
declare class SnowCover extends BaseEffect {
|
|
4695
|
+
constructor(options?: {
|
|
4696
|
+
enabled?: boolean;
|
|
4697
|
+
alpha?: number;
|
|
4698
|
+
layer?: TilesetLayer;
|
|
4699
|
+
maxHeight?: number;
|
|
4700
|
+
});
|
|
4701
|
+
/**
|
|
4702
|
+
* 覆盖强度 0-1
|
|
4703
|
+
*/
|
|
4704
|
+
alpha: number;
|
|
4705
|
+
/**
|
|
4706
|
+
* 最高限定高度,超出该高度不显示积雪效果
|
|
4707
|
+
*/
|
|
4708
|
+
maxHeight: number;
|
|
4709
|
+
}
|
|
4710
|
+
|
|
4651
4711
|
/**
|
|
4652
4712
|
* 全局JsDoc变量 (只是注释使用,非mars3d变量)
|
|
4653
4713
|
*/
|
|
@@ -16655,7 +16715,7 @@ declare class VolumeMeasure extends AreaMeasure {
|
|
|
16655
16715
|
* @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。
|
|
16656
16716
|
* @param options.style - 矢量数据的 样式信息,具体见各类数据的说明
|
|
16657
16717
|
* @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。
|
|
16658
|
-
* @param [options.frameRate =
|
|
16718
|
+
* @param [options.frameRate = 5] - 当postion为时序坐标时,多少帧获取一次数据。用于控制效率,如果卡顿就把该数值调大一些。
|
|
16659
16719
|
* @param [options.appearance] - [cesium原生]用于渲染图元的外观。
|
|
16660
16720
|
* @param [options.attributes] - [cesium原生]每个实例的属性。
|
|
16661
16721
|
* @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。
|
|
@@ -19570,7 +19630,7 @@ declare namespace ModelPrimitive {
|
|
|
19570
19630
|
* @param options.style - 样式信息
|
|
19571
19631
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
19572
19632
|
* @param [options.colorCorrection] - 颜色校正 对象, 可传入{@link TilesetColorCorrection}构造参数
|
|
19573
|
-
* @param [options.frameRate =
|
|
19633
|
+
* @param [options.frameRate = 5] - 当postion为时序坐标时,多少帧获取一次数据。用于控制效率,如果卡顿就把该数值调大一些。
|
|
19574
19634
|
* @param [options.appearance] - [cesium原生]用于渲染图元的外观。
|
|
19575
19635
|
* @param [options.attributes] - [cesium原生]每个实例的属性。
|
|
19576
19636
|
* @param [options.fixedFrameTransform = Cesium.Transforms.eastNorthUpToFixedFrame] - 参考系
|
|
@@ -20062,7 +20122,7 @@ declare namespace PointPrimitive {
|
|
|
20062
20122
|
* @param [options.position] - 坐标位置
|
|
20063
20123
|
* @param options.style - 样式信息
|
|
20064
20124
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
20065
|
-
* @param [options.frameRate =
|
|
20125
|
+
* @param [options.frameRate = 5] - 当postion为时序坐标时,多少帧获取一次数据。用于控制效率,如果卡顿就把该数值调大一些。
|
|
20066
20126
|
* @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addTimePosition时,在第1个开始时间之前,NONE时不显示,HOLD时显示开始时间对应坐标位置
|
|
20067
20127
|
* @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addTimePosition时,在最后1个结束时间之后,NONE时不显示,HOLD时显示结束时间对应坐标位置
|
|
20068
20128
|
* @param [options.clampToTileset] - 当使用addTimePosition设置为动画轨迹位置时,是否进行贴模型。
|
|
@@ -22673,7 +22733,7 @@ declare class ArcGisWfsLayer extends LodGraphicLayer {
|
|
|
22673
22733
|
enabled?: boolean;
|
|
22674
22734
|
pixelRange?: number;
|
|
22675
22735
|
minimumClusterSize?: number;
|
|
22676
|
-
includePoly?:
|
|
22736
|
+
includePoly?: boolean;
|
|
22677
22737
|
image?: string | ((...params: any[]) => any) | Globe.getCircleImageOptions;
|
|
22678
22738
|
style?: BillboardEntity.StyleOptions | any | any;
|
|
22679
22739
|
};
|
|
@@ -22969,7 +23029,7 @@ declare class BusineDataLayer extends GraphicLayer {
|
|
|
22969
23029
|
enabled?: boolean;
|
|
22970
23030
|
pixelRange?: number;
|
|
22971
23031
|
minimumClusterSize?: number;
|
|
22972
|
-
includePoly?:
|
|
23032
|
+
includePoly?: boolean;
|
|
22973
23033
|
image?: string | ((...params: any[]) => any) | Globe.getCircleImageOptions;
|
|
22974
23034
|
style?: BillboardEntity.StyleOptions | any | any;
|
|
22975
23035
|
};
|
|
@@ -23215,7 +23275,7 @@ declare class GeoJsonLayer extends GraphicLayer {
|
|
|
23215
23275
|
enabled?: boolean;
|
|
23216
23276
|
pixelRange?: number;
|
|
23217
23277
|
minimumClusterSize?: number;
|
|
23218
|
-
includePoly?:
|
|
23278
|
+
includePoly?: boolean;
|
|
23219
23279
|
image?: string | ((...params: any[]) => any) | Globe.getCircleImageOptions;
|
|
23220
23280
|
style?: BillboardEntity.StyleOptions | any | any;
|
|
23221
23281
|
};
|
|
@@ -23443,7 +23503,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
23443
23503
|
enabled?: boolean;
|
|
23444
23504
|
pixelRange?: number;
|
|
23445
23505
|
minimumClusterSize?: number;
|
|
23446
|
-
includePoly?:
|
|
23506
|
+
includePoly?: boolean;
|
|
23447
23507
|
includeType?: string | GraphicType;
|
|
23448
23508
|
image?: string | ((...params: any[]) => any) | Globe.getCircleImageOptions;
|
|
23449
23509
|
style?: BillboardEntity.StyleOptions | any | any;
|
|
@@ -24392,7 +24452,7 @@ declare class LodGraphicLayer extends GraphicLayer {
|
|
|
24392
24452
|
enabled?: boolean;
|
|
24393
24453
|
pixelRange?: number;
|
|
24394
24454
|
minimumClusterSize?: number;
|
|
24395
|
-
includePoly?:
|
|
24455
|
+
includePoly?: boolean;
|
|
24396
24456
|
image?: string | ((...params: any[]) => any) | Globe.getCircleImageOptions;
|
|
24397
24457
|
style?: BillboardEntity.StyleOptions | any | any;
|
|
24398
24458
|
};
|
|
@@ -24577,7 +24637,7 @@ declare class ModelLayer extends GraphicLayer {
|
|
|
24577
24637
|
enabled?: boolean;
|
|
24578
24638
|
pixelRange?: number;
|
|
24579
24639
|
minimumClusterSize?: number;
|
|
24580
|
-
includePoly?:
|
|
24640
|
+
includePoly?: boolean;
|
|
24581
24641
|
image?: string | ((...params: any[]) => any) | Globe.getCircleImageOptions;
|
|
24582
24642
|
style?: BillboardEntity.StyleOptions | any | any;
|
|
24583
24643
|
};
|
|
@@ -24643,7 +24703,7 @@ declare class ModelLayer extends GraphicLayer {
|
|
|
24643
24703
|
* @param [options.highlight.enabled = true] - 是否启用
|
|
24644
24704
|
* @param [options.highlight.all] - 是否整体高亮, true:模型整体全部高亮,false:单个构件高亮
|
|
24645
24705
|
* @param [options.highlight.color = '#FFFF00'] - 颜色,支持rgba字符串
|
|
24646
|
-
* @param [options.highlight.outlineEffect = false] - 默认为修改矢量对象本身的style高亮,true时采用{@link
|
|
24706
|
+
* @param [options.highlight.outlineEffect = false] - 默认为修改矢量对象本身的style高亮,true时采用{@link Outline}方式高亮。
|
|
24647
24707
|
* @param [options.highlight.filter] - 可以设置筛选排除一些构件, 排除的构件在filter方法内返回false
|
|
24648
24708
|
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
24649
24709
|
* @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
|
|
@@ -24822,7 +24882,7 @@ declare class PoiLayer extends LodGraphicLayer {
|
|
|
24822
24882
|
enabled?: boolean;
|
|
24823
24883
|
pixelRange?: number;
|
|
24824
24884
|
minimumClusterSize?: number;
|
|
24825
|
-
includePoly?:
|
|
24885
|
+
includePoly?: boolean;
|
|
24826
24886
|
image?: string | ((...params: any[]) => any) | Globe.getCircleImageOptions;
|
|
24827
24887
|
style?: BillboardEntity.StyleOptions | any | any;
|
|
24828
24888
|
};
|
|
@@ -24938,7 +24998,7 @@ declare namespace TilesetLayer {
|
|
|
24938
24998
|
* @param [options.highlight.type] - 鼠标移入高亮 或 单击高亮(type:'click')
|
|
24939
24999
|
* @param [options.highlight.enabled = true] - 是否启用
|
|
24940
25000
|
* @param [options.highlight.color = '#FFFF00'] - 颜色,支持rgba字符串
|
|
24941
|
-
* @param [options.highlight.outlineEffect = false] - 默认为修改矢量对象本身的style高亮,true时采用{@link
|
|
25001
|
+
* @param [options.highlight.outlineEffect = false] - 默认为修改矢量对象本身的style高亮,true时采用{@link Outline}方式高亮。
|
|
24942
25002
|
* @param [options.highlight.filter] - 可以设置筛选排除一些构件, 排除的构件在filter方法内返回false
|
|
24943
25003
|
* @param [options.highlight.all] - 是否按整体高亮, true:模型整体全部高亮,false:单个构件高亮
|
|
24944
25004
|
* @param [options.highlight.uniqueKey] - 按指定字段进行对应相关构件的整体高亮,对outlineEffect时无效
|
|
@@ -25580,7 +25640,7 @@ declare class WfsLayer extends LodGraphicLayer {
|
|
|
25580
25640
|
enabled?: boolean;
|
|
25581
25641
|
pixelRange?: number;
|
|
25582
25642
|
minimumClusterSize?: number;
|
|
25583
|
-
includePoly?:
|
|
25643
|
+
includePoly?: boolean;
|
|
25584
25644
|
image?: string | ((...params: any[]) => any) | Globe.getCircleImageOptions;
|
|
25585
25645
|
style?: BillboardEntity.StyleOptions | any | any;
|
|
25586
25646
|
};
|
|
@@ -27917,6 +27977,7 @@ declare class OsmLayer extends BaseTileLayer {
|
|
|
27917
27977
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
27918
27978
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
27919
27979
|
* @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
27980
|
+
* @param [options.clampToTileset] - 是否进行贴模型,tip:目前不支持亮度等参数,不支持EPSG:3857坐标系,会贴在模型和矢量对象最上面。
|
|
27920
27981
|
* @param [options.id = mars3d.Util.createGuid()] - 图层id标识
|
|
27921
27982
|
* @param [options.pid] - 图层父级的id,一般图层管理中使用
|
|
27922
27983
|
* @param [options.name] - 图层名称
|
|
@@ -27974,6 +28035,7 @@ declare class TdtLayer extends BaseTileLayer {
|
|
|
27974
28035
|
tileWidth?: number;
|
|
27975
28036
|
tileHeight?: number;
|
|
27976
28037
|
customTags?: any;
|
|
28038
|
+
clampToTileset?: boolean;
|
|
27977
28039
|
id?: string | number;
|
|
27978
28040
|
pid?: string | number;
|
|
27979
28041
|
name?: string;
|
|
@@ -29066,7 +29128,7 @@ declare namespace Map {
|
|
|
29066
29128
|
* @property [sceneMode = Cesium.SceneMode.SCENE3D] - 初始场景模式。可以设置进入场景后初始是2D、2.5D、3D 模式。
|
|
29067
29129
|
* @property [sceneModeMorphDuration = 0] - 切换sceneMode的动画时长,单位:秒
|
|
29068
29130
|
* @property [scene3DOnly = false] - 为 true 时,每个几何实例将仅以3D渲染以节省GPU内存。
|
|
29069
|
-
* @property [mapProjection =
|
|
29131
|
+
* @property [mapProjection = 'EPSG:3857'] - 在二维模式下时,地图的呈现地理坐标还是墨卡托投影坐标系,可选值:'EPSG:4326'、'EPSG:3857'
|
|
29070
29132
|
* @property [mapMode2D = Cesium.MapMode2D.INFINITE_SCROLL] - 在二维模式下时,地图是可旋转的还是可以在水平方向无限滚动。
|
|
29071
29133
|
* @property [shouldAnimate = true] - 是否开启时钟动画
|
|
29072
29134
|
* @property [shadows = false] - 是否启用日照阴影
|
|
@@ -29432,19 +29494,19 @@ declare namespace Map {
|
|
|
29432
29494
|
};
|
|
29433
29495
|
/**
|
|
29434
29496
|
* 添加到地图的特效 参数
|
|
29435
|
-
* @property [bloom] - 泛光,对应{@link
|
|
29436
|
-
* @property [brightness] - 亮度,对应{@link
|
|
29437
|
-
* @property [rain] - 雨天气,对应{@link
|
|
29438
|
-
* @property [snow] - 雪天气 ,对应{@link
|
|
29439
|
-
* @property [snowCover] - 地面积雪,对应{@link
|
|
29440
|
-
* @property [fog] - 雾天气,对应{@link
|
|
29441
|
-
* @property [depthOfField] - 景深,对应{@link
|
|
29442
|
-
* @property [mosaic] - 马赛克,对应{@link
|
|
29443
|
-
* @property [nightVision] - 夜视,对应{@link
|
|
29444
|
-
* @property [blackAndWhite] - 黑白,对应{@link
|
|
29445
|
-
* @property [outline] - 对象轮廓描边,对应{@link
|
|
29446
|
-
* @property [bloomTarget] - 对象泛光,对应{@link
|
|
29447
|
-
* @property [colorCorrection] - 颜色校正 特效,对应类为:{@link
|
|
29497
|
+
* @property [bloom] - 泛光,对应{@link Bloom }构造参数
|
|
29498
|
+
* @property [brightness] - 亮度,对应{@link Brightness }构造参数
|
|
29499
|
+
* @property [rain] - 雨天气,对应{@link Rain }构造参数
|
|
29500
|
+
* @property [snow] - 雪天气 ,对应{@link Snow }构造参数
|
|
29501
|
+
* @property [snowCover] - 地面积雪,对应{@link SnowCover }构造参数
|
|
29502
|
+
* @property [fog] - 雾天气,对应{@link Fog }构造参数
|
|
29503
|
+
* @property [depthOfField] - 景深,对应{@link DepthOfField }构造参数
|
|
29504
|
+
* @property [mosaic] - 马赛克,对应{@link Mosaic }构造参数
|
|
29505
|
+
* @property [nightVision] - 夜视,对应{@link NightVision }构造参数
|
|
29506
|
+
* @property [blackAndWhite] - 黑白,对应{@link BlackAndWhite }构造参数
|
|
29507
|
+
* @property [outline] - 对象轮廓描边,对应{@link Outline }构造参数
|
|
29508
|
+
* @property [bloomTarget] - 对象泛光,对应{@link BloomTarget }构造参数
|
|
29509
|
+
* @property [colorCorrection] - 颜色校正 特效,对应类为:{@link ColorCorrection }构造参数
|
|
29448
29510
|
*/
|
|
29449
29511
|
type effectOptions = {
|
|
29450
29512
|
bloom?: any;
|
|
@@ -37823,6 +37885,7 @@ declare class TilesetBoxClip extends BaseThing {
|
|
|
37823
37885
|
* @param [options.precise = true] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重(模型面积越大越严重)
|
|
37824
37886
|
* @param [options.maxCanvasSize = 4096] - 掩膜模式下最大分辨率半径(单位:像素),值过大时会WebGL报错: INVALID_VALUE: texImage2D: no canvas
|
|
37825
37887
|
* @param [options.czm = true] - true:使用cesium原生clippingPolygons接口来操作,false:使用mars3d自定义方式操作
|
|
37888
|
+
* @param [options.brightness = 1.0] - 亮度, czm: false时可以同时设置亮度 (因为与多个TilesetColorCorrection的shader有冲突)
|
|
37826
37889
|
* @param [options.id = createGuid()] - 对象的id标识
|
|
37827
37890
|
* @param [options.enabled = true] - 对象的启用状态
|
|
37828
37891
|
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
|
|
@@ -37835,6 +37898,7 @@ declare class TilesetClip extends TilesetEditBase {
|
|
|
37835
37898
|
precise?: boolean;
|
|
37836
37899
|
maxCanvasSize?: number;
|
|
37837
37900
|
czm?: boolean;
|
|
37901
|
+
brightness?: number;
|
|
37838
37902
|
id?: string | number;
|
|
37839
37903
|
enabled?: boolean;
|
|
37840
37904
|
eventParent?: BaseClass | boolean;
|
|
@@ -37843,6 +37907,11 @@ declare class TilesetClip extends TilesetEditBase {
|
|
|
37843
37907
|
* 是否外裁剪
|
|
37844
37908
|
*/
|
|
37845
37909
|
clipOutSide: boolean;
|
|
37910
|
+
/**
|
|
37911
|
+
* 亮度,
|
|
37912
|
+
* czm: false时可以同时设置亮度 (因为与多个TilesetColorCorrection的shader有冲突)
|
|
37913
|
+
*/
|
|
37914
|
+
brightness: number;
|
|
37846
37915
|
/**
|
|
37847
37916
|
* 清除分析
|
|
37848
37917
|
* @returns 无
|
|
@@ -38072,6 +38141,7 @@ declare namespace TilesetFlood {
|
|
|
38072
38141
|
* @param [options.limitMin = false] - 显示效果中是否不显示最低高度以下的部分颜色
|
|
38073
38142
|
* @param [options.precise = true] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重(模型面积越大越严重)
|
|
38074
38143
|
* @param [options.maxCanvasSize = 4096] - 掩膜模式下最大分辨率半径(单位:像素)
|
|
38144
|
+
* @param [options.brightness = 1.0] - 亮度, czm: false时可以同时设置亮度 (因为与多个TilesetColorCorrection的shader有冲突)
|
|
38075
38145
|
* @param [options.id = createGuid()] - 对象的id标识
|
|
38076
38146
|
* @param [options.enabled = true] - 对象的启用状态
|
|
38077
38147
|
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
|
|
@@ -38088,6 +38158,7 @@ declare class TilesetFlood extends TilesetEditBase {
|
|
|
38088
38158
|
limitMin?: boolean;
|
|
38089
38159
|
precise?: boolean;
|
|
38090
38160
|
maxCanvasSize?: number;
|
|
38161
|
+
brightness?: number;
|
|
38091
38162
|
id?: string | number;
|
|
38092
38163
|
enabled?: boolean;
|
|
38093
38164
|
eventParent?: BaseClass | boolean;
|
|
@@ -38108,6 +38179,11 @@ declare class TilesetFlood extends TilesetEditBase {
|
|
|
38108
38179
|
* 淹没颜色
|
|
38109
38180
|
*/
|
|
38110
38181
|
color: Cesium.Color;
|
|
38182
|
+
/**
|
|
38183
|
+
* 亮度,
|
|
38184
|
+
* czm: false时可以同时设置亮度 (因为与多个TilesetColorCorrection的shader有冲突)
|
|
38185
|
+
*/
|
|
38186
|
+
brightness: number;
|
|
38111
38187
|
/**
|
|
38112
38188
|
* 开始播放淹没动画效果
|
|
38113
38189
|
* @returns 无
|
|
@@ -38991,7 +39067,7 @@ declare namespace DrawUtil {
|
|
|
38991
39067
|
* @example
|
|
38992
39068
|
* mars3d.DrawUtil.setEditPointStyle(mars3d.EditPointType.Control, {
|
|
38993
39069
|
* type: mars3d.GraphicType.billboardP, // 支持设置type指定编辑点类型
|
|
38994
|
-
* image: "
|
|
39070
|
+
* image: "https://data.mars3d.cn/img/marker/move.png",
|
|
38995
39071
|
* horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
|
|
38996
39072
|
* verticalOrigin: Cesium.VerticalOrigin.CENTER
|
|
38997
39073
|
* })
|
|
@@ -41115,20 +41191,21 @@ declare namespace control {
|
|
|
41115
41191
|
*/
|
|
41116
41192
|
declare namespace effect {
|
|
41117
41193
|
export { BaseEffect }
|
|
41118
|
-
export {
|
|
41119
|
-
export {
|
|
41120
|
-
export {
|
|
41121
|
-
export {
|
|
41122
|
-
|
|
41123
|
-
export {
|
|
41124
|
-
|
|
41125
|
-
export {
|
|
41126
|
-
export {
|
|
41127
|
-
export {
|
|
41128
|
-
export {
|
|
41129
|
-
export {
|
|
41130
|
-
export {
|
|
41131
|
-
export {
|
|
41194
|
+
export { Fog}
|
|
41195
|
+
export { HighFog }
|
|
41196
|
+
export { Rain }
|
|
41197
|
+
export { Snow }
|
|
41198
|
+
export { SnowCover }
|
|
41199
|
+
export { Brightness }
|
|
41200
|
+
|
|
41201
|
+
export { NightVision }
|
|
41202
|
+
export { Bloom }
|
|
41203
|
+
export { BlackAndWhite }
|
|
41204
|
+
export { Mosaic }
|
|
41205
|
+
export { DepthOfField }
|
|
41206
|
+
export { Outline }
|
|
41207
|
+
export { BloomTarget }
|
|
41208
|
+
export { ColorCorrection }
|
|
41132
41209
|
}
|
|
41133
41210
|
|
|
41134
41211
|
|