mars3d 3.6.7 → 3.6.8
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 +2 -2
- package/dist/mars3d.d.ts +103 -84
- package/dist/mars3d.js +3 -3
- package/package.json +2 -2
package/dist/mars3d.css
CHANGED
package/dist/mars3d.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.6.
|
|
6
|
-
* 编译日期:2023-09
|
|
5
|
+
* 版本信息:v3.6.8
|
|
6
|
+
* 编译日期:2023-10-09 22:20:19
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2023-03-17
|
|
9
9
|
*/
|
|
@@ -8366,6 +8366,38 @@ declare class BasePointEntity extends BaseEntity {
|
|
|
8366
8366
|
* 显示隐藏状态
|
|
8367
8367
|
*/
|
|
8368
8368
|
show: boolean;
|
|
8369
|
+
/**
|
|
8370
|
+
* 指定时间范围内显示该对象 [提示:仅部分子类实现,非所有对象都支持]
|
|
8371
|
+
* @example
|
|
8372
|
+
* // cesium原生写法,单个
|
|
8373
|
+
* graphic.availability = new Cesium.TimeInterval({
|
|
8374
|
+
* start: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:00")),
|
|
8375
|
+
* stop: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:20")),
|
|
8376
|
+
* isStartIncluded: true,
|
|
8377
|
+
* isStopIncluded: false
|
|
8378
|
+
* })
|
|
8379
|
+
*
|
|
8380
|
+
* // cesium原生写法, 多个
|
|
8381
|
+
* graphic.availability = new Cesium.TimeIntervalCollection([
|
|
8382
|
+
* new Cesium.TimeInterval({
|
|
8383
|
+
* start: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:00")),
|
|
8384
|
+
* stop: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:20")),
|
|
8385
|
+
* isStartIncluded: true,
|
|
8386
|
+
* isStopIncluded: false
|
|
8387
|
+
* }),
|
|
8388
|
+
*
|
|
8389
|
+
* ])
|
|
8390
|
+
*
|
|
8391
|
+
* // 普通传值方式,多个
|
|
8392
|
+
* graphic.availability = [
|
|
8393
|
+
* { start: "2017-08-25 08:00:00", stop: "2017-08-25 08:01:20", isStartIncluded: true, isStopIncluded: false },
|
|
8394
|
+
* { start: "2017-08-25 09:00:00", stop: "2017-08-25 09:02:30" }
|
|
8395
|
+
* ]
|
|
8396
|
+
*
|
|
8397
|
+
* // 普通传值方式,单个
|
|
8398
|
+
* graphic.availability = { start: "2017-08-25 08:00:00", stop: "2017-08-25 08:01:20", isStartIncluded: true, isStopIncluded: false }
|
|
8399
|
+
*/
|
|
8400
|
+
availability: Cesium.TimeIntervalCollection;
|
|
8369
8401
|
}
|
|
8370
8402
|
|
|
8371
8403
|
/**
|
|
@@ -8712,38 +8744,6 @@ declare class BillboardEntity extends BasePointEntity {
|
|
|
8712
8744
|
* @returns 无
|
|
8713
8745
|
*/
|
|
8714
8746
|
stopBounce(): void;
|
|
8715
|
-
/**
|
|
8716
|
-
* 指定时间范围内显示该对象 [提示:仅部分子类实现,非所有对象都支持]
|
|
8717
|
-
* @example
|
|
8718
|
-
* // cesium原生写法,单个
|
|
8719
|
-
* graphic.availability = new Cesium.TimeInterval({
|
|
8720
|
-
* start: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:00")),
|
|
8721
|
-
* stop: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:20")),
|
|
8722
|
-
* isStartIncluded: true,
|
|
8723
|
-
* isStopIncluded: false
|
|
8724
|
-
* })
|
|
8725
|
-
*
|
|
8726
|
-
* // cesium原生写法, 多个
|
|
8727
|
-
* graphic.availability = new Cesium.TimeIntervalCollection([
|
|
8728
|
-
* new Cesium.TimeInterval({
|
|
8729
|
-
* start: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:00")),
|
|
8730
|
-
* stop: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:20")),
|
|
8731
|
-
* isStartIncluded: true,
|
|
8732
|
-
* isStopIncluded: false
|
|
8733
|
-
* }),
|
|
8734
|
-
*
|
|
8735
|
-
* ])
|
|
8736
|
-
*
|
|
8737
|
-
* // 普通传值方式,多个
|
|
8738
|
-
* graphic.availability = [
|
|
8739
|
-
* { start: "2017-08-25 08:00:00", stop: "2017-08-25 08:01:20", isStartIncluded: true, isStopIncluded: false },
|
|
8740
|
-
* { start: "2017-08-25 09:00:00", stop: "2017-08-25 09:02:30" }
|
|
8741
|
-
* ]
|
|
8742
|
-
*
|
|
8743
|
-
* // 普通传值方式,单个
|
|
8744
|
-
* graphic.availability = { start: "2017-08-25 08:00:00", stop: "2017-08-25 08:01:20", isStartIncluded: true, isStopIncluded: false }
|
|
8745
|
-
*/
|
|
8746
|
-
availability: Cesium.TimeIntervalCollection;
|
|
8747
8747
|
}
|
|
8748
8748
|
|
|
8749
8749
|
declare namespace BoxEntity {
|
|
@@ -11676,38 +11676,6 @@ declare class PointEntity extends BasePointEntity {
|
|
|
11676
11676
|
* 矢量数据对应的 Cesium内部对象的具体类型对象
|
|
11677
11677
|
*/
|
|
11678
11678
|
readonly entityGraphic: Cesium.PointGraphics;
|
|
11679
|
-
/**
|
|
11680
|
-
* 指定时间范围内显示该对象 [提示:仅部分子类实现,非所有对象都支持]
|
|
11681
|
-
* @example
|
|
11682
|
-
* // cesium原生写法,单个
|
|
11683
|
-
* graphic.availability = new Cesium.TimeInterval({
|
|
11684
|
-
* start: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:00")),
|
|
11685
|
-
* stop: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:20")),
|
|
11686
|
-
* isStartIncluded: true,
|
|
11687
|
-
* isStopIncluded: false
|
|
11688
|
-
* })
|
|
11689
|
-
*
|
|
11690
|
-
* // cesium原生写法, 多个
|
|
11691
|
-
* graphic.availability = new Cesium.TimeIntervalCollection([
|
|
11692
|
-
* new Cesium.TimeInterval({
|
|
11693
|
-
* start: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:00")),
|
|
11694
|
-
* stop: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:20")),
|
|
11695
|
-
* isStartIncluded: true,
|
|
11696
|
-
* isStopIncluded: false
|
|
11697
|
-
* }),
|
|
11698
|
-
*
|
|
11699
|
-
* ])
|
|
11700
|
-
*
|
|
11701
|
-
* // 普通传值方式,多个
|
|
11702
|
-
* graphic.availability = [
|
|
11703
|
-
* { start: "2017-08-25 08:00:00", stop: "2017-08-25 08:01:20", isStartIncluded: true, isStopIncluded: false },
|
|
11704
|
-
* { start: "2017-08-25 09:00:00", stop: "2017-08-25 09:02:30" }
|
|
11705
|
-
* ]
|
|
11706
|
-
*
|
|
11707
|
-
* // 普通传值方式,单个
|
|
11708
|
-
* graphic.availability = { start: "2017-08-25 08:00:00", stop: "2017-08-25 08:01:20", isStartIncluded: true, isStopIncluded: false }
|
|
11709
|
-
*/
|
|
11710
|
-
availability: Cesium.TimeIntervalCollection;
|
|
11711
11679
|
}
|
|
11712
11680
|
|
|
11713
11681
|
declare namespace PolygonEntity {
|
|
@@ -11818,6 +11786,7 @@ declare namespace PolygonEntity {
|
|
|
11818
11786
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
11819
11787
|
* @param [options.hasMoveEdit = true] - 编辑时,是否可以整体平移
|
|
11820
11788
|
* @param [options.hasHeightEdit = true] - 编辑时,当有diffHeight时,是否可以编辑高度
|
|
11789
|
+
* @param [options.midPointFraction = 0.5] - 编辑时,中间点的位置比例
|
|
11821
11790
|
* @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
|
|
11822
11791
|
* @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
|
|
11823
11792
|
* @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
|
|
@@ -11849,6 +11818,7 @@ declare class PolygonEntity extends BasePolyEntity {
|
|
|
11849
11818
|
hasEditContextMenu?: boolean;
|
|
11850
11819
|
hasMoveEdit?: boolean;
|
|
11851
11820
|
hasHeightEdit?: boolean;
|
|
11821
|
+
midPointFraction?: number;
|
|
11852
11822
|
popup?: string | any[] | ((...params: any[]) => any);
|
|
11853
11823
|
popupOptions?: Popup.StyleOptions | any;
|
|
11854
11824
|
tooltip?: string | any[] | ((...params: any[]) => any);
|
|
@@ -12015,6 +11985,7 @@ declare namespace PolylineEntity {
|
|
|
12015
11985
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
12016
11986
|
* @param [options.hasMoveEdit = true] - 编辑时,是否可以整体平移
|
|
12017
11987
|
* @param [options.hasHeightEdit = true] - 编辑时,当有diffHeight时,是否可以编辑高度
|
|
11988
|
+
* @param [options.midPointFraction = 0.5] - 编辑时,中间点的位置比例
|
|
12018
11989
|
* @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
|
|
12019
11990
|
* @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
|
|
12020
11991
|
* @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
|
|
@@ -12046,6 +12017,7 @@ declare class PolylineEntity extends BasePolyEntity {
|
|
|
12046
12017
|
hasEditContextMenu?: boolean;
|
|
12047
12018
|
hasMoveEdit?: boolean;
|
|
12048
12019
|
hasHeightEdit?: boolean;
|
|
12020
|
+
midPointFraction?: number;
|
|
12049
12021
|
popup?: string | any[] | ((...params: any[]) => any);
|
|
12050
12022
|
popupOptions?: Popup.StyleOptions | any;
|
|
12051
12023
|
tooltip?: string | any[] | ((...params: any[]) => any);
|
|
@@ -20799,7 +20771,7 @@ declare namespace GraphicLayer {
|
|
|
20799
20771
|
* @param [options.data] - 需要自动加载的数据,内部自动生成Graphic对象。{@link GraphicUtil#.create}
|
|
20800
20772
|
* @param [options.hasEdit = false] - 是否自动激活编辑(true时,单击后自动激活编辑)
|
|
20801
20773
|
* @param [options.isAutoEditing = true] - 完成标绘时是否自动启动编辑(需要hasEdit:true时)
|
|
20802
|
-
* @param [options.isContinued = false] -
|
|
20774
|
+
* @param [options.isContinued = false] - 是否连续标绘,连续标绘状态下无法编辑已有对象。
|
|
20803
20775
|
* @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。
|
|
20804
20776
|
* @param [options.drawEndEventType = EventType.dblClick] - 绘制时结束的事件,默认双击
|
|
20805
20777
|
* @param [options.drawDelEventType = EventType.rightClick] - 绘制时删除点的事件,默认右键
|
|
@@ -21105,9 +21077,10 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
21105
21077
|
* 遍历所有矢量数据并将其作为参数传递给回调函数
|
|
21106
21078
|
* @param method - 回调方法
|
|
21107
21079
|
* @param [context] - 侦听器的上下文(this关键字将指向的对象)。
|
|
21108
|
-
* @
|
|
21080
|
+
* @param [reverse] - 是否倒序执行
|
|
21081
|
+
* @returns 当前对象本身,可以链式调用。
|
|
21109
21082
|
*/
|
|
21110
|
-
eachGraphic(method: (...params: any[]) => any, context?: any): GraphicLayer;
|
|
21083
|
+
eachGraphic(method: (...params: any[]) => any, context?: any, reverse?: boolean): GraphicLayer;
|
|
21111
21084
|
/**
|
|
21112
21085
|
* 获取图层内 所有矢量数据
|
|
21113
21086
|
* @param [hasPrivate = false] - 是否取私有的graphic
|
|
@@ -21353,7 +21326,6 @@ declare namespace I3SLayer {
|
|
|
21353
21326
|
* @param [options.cacheBytes = 536870912] - 如果缓存包含当前视图不需要的块,则块缓存将被修剪到的大小(以字节为单位)。
|
|
21354
21327
|
* @param [options.maximumCacheOverflowBytes = 536870912] - 如果当前视图需要超过{@link Cesium3DTileset#cacheBytes},则允许缓存净空的最大额外内存(以字节为单位)。
|
|
21355
21328
|
* @param [options.maximumMemoryUsage = 512] - 【cesium 1.107+弃用】数据集可以使用的最大内存量(以MB计),这个参数要根据当前客户端显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50% 左右,比如我的显存是4G,这个可以设置到2048左右。那么既保证不超过显存限制,又可以最大利用显存缓存。<br />
|
|
21356
|
-
* *
|
|
21357
21329
|
* @param [options.style] - 模型样式, 使用{@link https://github.com/CesiumGS/3d-tiles/tree/master/specification/Styling|3D Tiles Styling language}.
|
|
21358
21330
|
* @param [options.marsJzwStyle = false] - 开启或设置建筑物特效样式。
|
|
21359
21331
|
* @param [options.customShader] - 自定义shader效果
|
|
@@ -26599,6 +26571,10 @@ declare namespace Map {
|
|
|
26599
26571
|
* @property [requestVertexNormals = false] - 是否应该从服务器请求额外的光照信息,如果可用,以每个顶点法线的形式。
|
|
26600
26572
|
* @property [requestWaterMask = false] - 是否应该向服务器请求每个瓦的水掩膜(如果有的话)。
|
|
26601
26573
|
* @property [requestMetadata = true] - 是否应该从服务器请求每个块元数据(如果可用)。
|
|
26574
|
+
* @property [clip = false] - 是否默认启用地形开挖,如果后续打开,缓存数据不会裁剪
|
|
26575
|
+
* @property [flat = false] - 是否默认启用地形压平
|
|
26576
|
+
* @property [uplift = false] - 是否默认启用地形抬升
|
|
26577
|
+
* @property [flood = false] - 是否默认启用地形区域材质(淹没,等高线)
|
|
26602
26578
|
*/
|
|
26603
26579
|
type terrainOptions = {
|
|
26604
26580
|
type?: string | TerrainType;
|
|
@@ -26607,6 +26583,10 @@ declare namespace Map {
|
|
|
26607
26583
|
requestVertexNormals?: boolean;
|
|
26608
26584
|
requestWaterMask?: boolean;
|
|
26609
26585
|
requestMetadata?: boolean;
|
|
26586
|
+
clip?: boolean;
|
|
26587
|
+
flat?: boolean;
|
|
26588
|
+
uplift?: boolean;
|
|
26589
|
+
flood?: boolean;
|
|
26610
26590
|
};
|
|
26611
26591
|
/**
|
|
26612
26592
|
* 底图图层配置
|
|
@@ -27065,9 +27045,10 @@ declare class Map extends BaseClass {
|
|
|
27065
27045
|
* 遍历每一个图层并将其作为参数传递给回调函数
|
|
27066
27046
|
* @param method - 回调方法
|
|
27067
27047
|
* @param [context] - 侦听器的上下文(this关键字将指向的对象)。
|
|
27048
|
+
* @param [reverse] - 是否倒序执行
|
|
27068
27049
|
* @returns 当前对象本身,可以链式调用
|
|
27069
27050
|
*/
|
|
27070
|
-
eachLayer(method: (...params: any[]) => any, context?: any): Map;
|
|
27051
|
+
eachLayer(method: (...params: any[]) => any, context?: any, reverse?: boolean): Map;
|
|
27071
27052
|
/**
|
|
27072
27053
|
* 根据指定属性获取图层,包括config.json配置的图层
|
|
27073
27054
|
* @param attrValue - 属性值
|
|
@@ -27143,9 +27124,10 @@ declare class Map extends BaseClass {
|
|
|
27143
27124
|
* 遍历每一个控件并将其作为参数传递给回调函数
|
|
27144
27125
|
* @param method - 回调方法
|
|
27145
27126
|
* @param [context] - 侦听器的上下文(this关键字将指向的对象)。
|
|
27127
|
+
* @param [reverse] - 是否倒序执行
|
|
27146
27128
|
* @returns 当前对象本身,可以链式调用
|
|
27147
27129
|
*/
|
|
27148
|
-
eachControl(method: (...params: any[]) => any, context?: any): Map;
|
|
27130
|
+
eachControl(method: (...params: any[]) => any, context?: any, reverse?: boolean): Map;
|
|
27149
27131
|
/**
|
|
27150
27132
|
* 根据指定属性获取控件
|
|
27151
27133
|
* @param attrValue - 属性值
|
|
@@ -27196,9 +27178,10 @@ declare class Map extends BaseClass {
|
|
|
27196
27178
|
* 遍历每一个Thing对象并将其作为参数传递给回调函数
|
|
27197
27179
|
* @param method - 回调方法
|
|
27198
27180
|
* @param [context] - 侦听器的上下文(this关键字将指向的对象)。
|
|
27181
|
+
* @param [reverse] - 是否倒序执行
|
|
27199
27182
|
* @returns 当前对象本身,可以链式调用
|
|
27200
27183
|
*/
|
|
27201
|
-
eachThing(method: (...params: any[]) => any, context?: any): Map;
|
|
27184
|
+
eachThing(method: (...params: any[]) => any, context?: any, reverse?: boolean): Map;
|
|
27202
27185
|
/**
|
|
27203
27186
|
* 根据指定属性获取Thing对象
|
|
27204
27187
|
* @param attrValue - 属性值
|
|
@@ -27262,7 +27245,7 @@ declare class Map extends BaseClass {
|
|
|
27262
27245
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|
|
27263
27246
|
}): Promise<boolean>;
|
|
27264
27247
|
/**
|
|
27265
|
-
* 设置相机
|
|
27248
|
+
* 设置相机heading值,保持地图中心位置不变。
|
|
27266
27249
|
* @param heading - 方向角度值, 0-360
|
|
27267
27250
|
* @param [options] - 具有以下属性的对象:
|
|
27268
27251
|
* @param [options.pitch] - 俯仰角度值,绕垂直于地心的轴旋转角度, -90至90
|
|
@@ -32127,6 +32110,7 @@ declare class Measure extends BaseThing {
|
|
|
32127
32110
|
* @param [options] - 控制参数
|
|
32128
32111
|
* @param [options.style] - 路线的样式
|
|
32129
32112
|
* @param [options.label] - 测量结果文本的样式
|
|
32113
|
+
* // * @param {function} [options.label.updateText] 测量结果文本更新的回调方法
|
|
32130
32114
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
32131
32115
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
32132
32116
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
@@ -32147,7 +32131,8 @@ declare class Measure extends BaseThing {
|
|
|
32147
32131
|
* 测量 贴地长度
|
|
32148
32132
|
* @param [options] - 控制参数
|
|
32149
32133
|
* @param [options.style] - 路线的样式
|
|
32150
|
-
* @param [options.label] -
|
|
32134
|
+
* @param [options.label] - 测量结果文本的样式,
|
|
32135
|
+
* // * @param {function} [options.label.updateText] 测量结果文本更新的回调方法
|
|
32151
32136
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
32152
32137
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
32153
32138
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
@@ -32175,6 +32160,7 @@ declare class Measure extends BaseThing {
|
|
|
32175
32160
|
* @param [options] - 控制参数
|
|
32176
32161
|
* @param [options.style] - 路线的样式
|
|
32177
32162
|
* @param [options.label] - 测量结果文本的样式
|
|
32163
|
+
* // * @param {function} [options.label.updateText] 测量结果文本更新的回调方法
|
|
32178
32164
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
32179
32165
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
32180
32166
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
@@ -32445,16 +32431,20 @@ declare class Shadows extends BaseThing {
|
|
|
32445
32431
|
* @param options - 参数
|
|
32446
32432
|
* @param options.startDate - 开始时间
|
|
32447
32433
|
* @param options.endDate - 结束时间
|
|
32448
|
-
* @param positions - 分析区域范围坐标
|
|
32449
|
-
* @param step - 间隔(单位米)
|
|
32450
|
-
* @param [minHeight] - 最小高程(单位米),与maxHeight一起可以设置多层
|
|
32451
|
-
* @param [maxHeight] - 最大高程(单位米)
|
|
32434
|
+
* @param options.positions - 分析区域范围坐标
|
|
32435
|
+
* @param options.step - 间隔(单位米)
|
|
32436
|
+
* @param [options.minHeight] - 最小高程(单位米),与maxHeight一起可以设置多层
|
|
32437
|
+
* @param [options.maxHeight] - 最大高程(单位米)
|
|
32452
32438
|
* @returns 分析结果
|
|
32453
32439
|
*/
|
|
32454
32440
|
startRate(options: {
|
|
32455
32441
|
startDate: Date;
|
|
32456
32442
|
endDate: Date;
|
|
32457
|
-
|
|
32443
|
+
positions: Cesium.Cartesian3[] | LngLatPoint[] | any;
|
|
32444
|
+
step: number;
|
|
32445
|
+
minHeight?: number;
|
|
32446
|
+
maxHeight?: number;
|
|
32447
|
+
}): Promise<any>;
|
|
32458
32448
|
}
|
|
32459
32449
|
|
|
32460
32450
|
declare namespace Sightline {
|
|
@@ -33525,7 +33515,8 @@ declare class TerrainEditBase extends BaseThing {
|
|
|
33525
33515
|
* 添加单个区域
|
|
33526
33516
|
* @param positions - 坐标位置数组
|
|
33527
33517
|
* @param [options = {}] - 控制的参数
|
|
33528
|
-
* @param [options.height] -
|
|
33518
|
+
* @param [options.height] - 地形压平时,高度值
|
|
33519
|
+
* @param [options.diffHeight] - 地形开挖和抬升时,墙体的高度值
|
|
33529
33520
|
* @param [options.simplify] - 是否简化坐标点位,为空时不简化
|
|
33530
33521
|
* @param [options.simplify.tolerance = 0.0001] - 简化的程度,传值是经纬度的小数位
|
|
33531
33522
|
* @param [options.simplify.highQuality = true] - 是否花更多的时间用不同的算法创建更高质量的简化
|
|
@@ -33534,6 +33525,7 @@ declare class TerrainEditBase extends BaseThing {
|
|
|
33534
33525
|
*/
|
|
33535
33526
|
addArea(positions: string[] | any[][] | LngLatPoint[] | Cesium.Cartesian3[], options?: {
|
|
33536
33527
|
height?: any;
|
|
33528
|
+
diffHeight?: any;
|
|
33537
33529
|
simplify?: {
|
|
33538
33530
|
tolerance?: number;
|
|
33539
33531
|
highQuality?: boolean;
|
|
@@ -35623,9 +35615,10 @@ declare namespace PointUtil {
|
|
|
35623
35615
|
* 求2点的中间点(贴地表)
|
|
35624
35616
|
* @param mpt1 - 点1坐标
|
|
35625
35617
|
* @param mpt2 - 点2坐标
|
|
35618
|
+
* @param [fraction = 0.5] - 起始点和终点之间距离的比例
|
|
35626
35619
|
* @returns 2个点是否为重复的点
|
|
35627
35620
|
*/
|
|
35628
|
-
function getMidpoint(mpt1: Cesium.Cartesian3 | LngLatPoint, mpt2: Cesium.Cartesian3 | LngLatPoint): Cesium.Cartesian3;
|
|
35621
|
+
function getMidpoint(mpt1: Cesium.Cartesian3 | LngLatPoint, mpt2: Cesium.Cartesian3 | LngLatPoint, fraction?: number): Cesium.Cartesian3;
|
|
35629
35622
|
/**
|
|
35630
35623
|
* 判断2个点是否为重复的点,比如标绘中的双击会偶尔产生2个重复点
|
|
35631
35624
|
* @param mpt1 - 点1坐标
|
|
@@ -35954,7 +35947,7 @@ declare namespace PolyUtil {
|
|
|
35954
35947
|
* @param options.center - 中心坐标
|
|
35955
35948
|
* @param [options.width] - 矩形的宽度,单位:米
|
|
35956
35949
|
* @param [options.height] - 矩形的高度,单位:米
|
|
35957
|
-
* @param [options.rotation = 0] -
|
|
35950
|
+
* @param [options.rotation = 0] - 旋转的角度(弧度值)
|
|
35958
35951
|
* @param [options.originX = 0.5] - 中心点所在的位置x轴方向比例,取值范围:0.1-1.0
|
|
35959
35952
|
* @param [options.originY = 0.5] - 中心点所在的位置y轴方向比例,取值范围:0.1-1.0
|
|
35960
35953
|
* @returns 矩形面的顶点坐标数组
|
|
@@ -37029,6 +37022,32 @@ declare namespace graphic {
|
|
|
37029
37022
|
export { SatelliteSensor }
|
|
37030
37023
|
}
|
|
37031
37024
|
|
|
37025
|
+
/**
|
|
37026
|
+
* 矢量数据编辑类 命名空间
|
|
37027
|
+
*/
|
|
37028
|
+
declare namespace edit {
|
|
37029
|
+
export { EditBase }
|
|
37030
|
+
export { EditBox }
|
|
37031
|
+
export { EditCircle }
|
|
37032
|
+
export { EditCorridor }
|
|
37033
|
+
export { EditCylinder }
|
|
37034
|
+
export { EditEllipsoid }
|
|
37035
|
+
export { EditModel }
|
|
37036
|
+
export { EditPlane }
|
|
37037
|
+
export { EditPoint }
|
|
37038
|
+
export { EditPoly }
|
|
37039
|
+
export { EditPolygon }
|
|
37040
|
+
export { EditPolygonGrid }
|
|
37041
|
+
export { EditPolylineVolume }
|
|
37042
|
+
export { EditRectangle }
|
|
37043
|
+
export { EditTileset }
|
|
37044
|
+
export { EditVideo2D }
|
|
37045
|
+
export { EditWall }
|
|
37046
|
+
|
|
37047
|
+
export { EditDivGraphic }
|
|
37048
|
+
}
|
|
37049
|
+
|
|
37050
|
+
|
|
37032
37051
|
/**
|
|
37033
37052
|
* 图层类 命名空间,
|
|
37034
37053
|
* 教程 http://mars3d.cn/dev/guide/map/layer.html
|
|
@@ -37147,6 +37166,6 @@ export {
|
|
|
37147
37166
|
BaseClass, BaseThing, LngLatPoint, LngLatArray, GroundSkyBox, MultipleSkyBox, LocalWorldTransform, CRS, ChinaCRS, EventType, State, Token, ColorRamp, MaterialType, GraphicType, LayerType, ControlType, EffectType, Lang, LangType, MoveType, ClipType, Icon,
|
|
37148
37167
|
DomUtil, MeasureUtil, PointUtil, PolyUtil, PointTrans, Util, Log, MaterialUtil, GraphicUtil, DrawUtil, LayerUtil, ControlUtil, EffectUtil,
|
|
37149
37168
|
BaseMaterialConver, BaseStyleConver, BillboardStyleConver, CloudStyleConver, BoxStyleConver, CircleStyleConver, CorridorStyleConver, CylinderStyleConver, DivGraphicStyleConver, EllipsoidStyleConver, LabelStyleConver, ModelStyleConver, PathStyleConver, PlaneStyleConver, PointStyleConver, PolygonStyleConver, PolylineStyleConver, PolylineVolumeStyleConver, RectangleStyleConver, RectangularSensorStyleConver, WallStyleConver,
|
|
37150
|
-
material, graphic, provider, layer, thing, effect, control, query,
|
|
37169
|
+
material, graphic, edit, provider, layer, thing, effect, control, query,
|
|
37151
37170
|
Map,
|
|
37152
37171
|
};
|