mars3d 3.6.16 → 3.6.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/README.md +2 -2
- package/dist/mars3d.css +2 -2
- package/dist/mars3d.d.ts +83 -29
- package/dist/mars3d.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
## 使用方式
|
|
28
28
|
|
|
29
|
-
使用 Node 环境下的现代 web 前端技术栈时,可以使用 npm 或 cnpm 或 yarn 等方式来安装 mars3d
|
|
29
|
+
使用 Node 环境下的现代 web 前端技术栈时,可以使用 npm 或 cnpm 或 yarn 等方式来安装 mars3d 包
|
|
30
30
|
|
|
31
31
|
```sh
|
|
32
32
|
//安装mars3d主库
|
|
@@ -34,7 +34,7 @@ npm install mars3d mars3d-cesium @turf/turf --save
|
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
安装后在mars3d
|
|
37
|
+
安装后在mars3d引入后,引入相关css资源(入口引入一次即可)和mars3d即可使用
|
|
38
38
|
|
|
39
39
|
```js
|
|
40
40
|
//导入mars3d主库
|
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-12-
|
|
5
|
+
* 版本信息:v3.6.18
|
|
6
|
+
* 编译日期:2023-12-31 22:36:24
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2023-03-17
|
|
9
9
|
*/
|
|
@@ -5390,9 +5390,9 @@ declare class PlaneCombine extends BasePointCombine {
|
|
|
5390
5390
|
* @param options - 参数对象,包括以下:
|
|
5391
5391
|
* @param [options.instances] - 面信息数组,单个对象包括:
|
|
5392
5392
|
* @param options.instances.positions - 坐标位置
|
|
5393
|
-
* @param [options.instances.style] -
|
|
5393
|
+
* @param [options.instances.style] - 样式信息,【仅支持同属性同材质,纯色支持多颜色】
|
|
5394
5394
|
* @param [options.instances.attr] - 矢量数据的 属性信息,可以任意附加属性。
|
|
5395
|
-
* @param [options.style] -
|
|
5395
|
+
* @param [options.style] - 所有面的公共样式信息, 【仅支持同属性同材质,纯色支持多颜色】
|
|
5396
5396
|
* @param [options.highlight] - 鼠标移入或单击后的对应高亮的部分样式(仅支持Color纯色材质)
|
|
5397
5397
|
* // * @param {string} [options.highlight.type] 触发高亮的方式,默认鼠标移入,可以指定为type:'click'为单击后高亮
|
|
5398
5398
|
* @param [options.appearance] - [cesium原生]用于渲染图元的外观。
|
|
@@ -7159,6 +7159,7 @@ declare namespace Video3D {
|
|
|
7159
7159
|
* @param [options.targetPosition] - 目标视点位置,可以替代style中的相机heading\pitch\roll方向和distance距离参数
|
|
7160
7160
|
* @param options.style - 样式信息
|
|
7161
7161
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
7162
|
+
* @param [options.play = true] - 初始化后默认是播放还是停止状态
|
|
7162
7163
|
* @param [options.id = createGuid()] - 矢量数据id标识
|
|
7163
7164
|
* @param [options.name = ''] - 矢量数据名称
|
|
7164
7165
|
* @param [options.show = true] - 矢量数据是否显示
|
|
@@ -7172,6 +7173,7 @@ declare class Video3D extends ViewShed {
|
|
|
7172
7173
|
targetPosition?: LngLatPoint | Cesium.Cartesian3 | number[];
|
|
7173
7174
|
style: Video3D.StyleOptions | any;
|
|
7174
7175
|
attr?: any;
|
|
7176
|
+
play?: boolean;
|
|
7175
7177
|
id?: string | number;
|
|
7176
7178
|
name?: string;
|
|
7177
7179
|
show?: boolean;
|
|
@@ -8393,6 +8395,10 @@ declare class BaseEntity extends BaseGraphic {
|
|
|
8393
8395
|
* 是否正在编辑状态
|
|
8394
8396
|
*/
|
|
8395
8397
|
readonly isEditing: boolean;
|
|
8398
|
+
/**
|
|
8399
|
+
* 正在绘制的最后一个正式点
|
|
8400
|
+
*/
|
|
8401
|
+
readonly lastDrawPoint: boolean;
|
|
8396
8402
|
/**
|
|
8397
8403
|
* 重新渲染对象
|
|
8398
8404
|
* @returns 无
|
|
@@ -8706,6 +8712,7 @@ declare class BasePointEntity extends BaseEntity {
|
|
|
8706
8712
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
8707
8713
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
8708
8714
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
8715
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
8709
8716
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
8710
8717
|
* @param [options.hasDrawDelPoint = true] - 绘制时,是否可以右键删除点
|
|
8711
8718
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
@@ -8737,6 +8744,7 @@ declare class BasePolyEntity extends BaseEntity {
|
|
|
8737
8744
|
onBeforeCreate?: (...params: any[]) => any;
|
|
8738
8745
|
minPointNum?: number;
|
|
8739
8746
|
maxPointNum?: number;
|
|
8747
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
8740
8748
|
validDrawPosition?: (...params: any[]) => any;
|
|
8741
8749
|
hasDrawDelPoint?: boolean;
|
|
8742
8750
|
hasEdit?: boolean;
|
|
@@ -9185,6 +9193,7 @@ declare class BoxEntity {
|
|
|
9185
9193
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
9186
9194
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
9187
9195
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
9196
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
9188
9197
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
9189
9198
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
9190
9199
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -9215,6 +9224,7 @@ declare class BrushLineEntity extends PolylineEntity {
|
|
|
9215
9224
|
onBeforeCreate?: (...params: any[]) => any;
|
|
9216
9225
|
minPointNum?: number;
|
|
9217
9226
|
maxPointNum?: number;
|
|
9227
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
9218
9228
|
validDrawPosition?: (...params: any[]) => any;
|
|
9219
9229
|
hasEdit?: boolean;
|
|
9220
9230
|
hasEditContextMenu?: boolean;
|
|
@@ -9876,6 +9886,7 @@ declare namespace CorridorEntity {
|
|
|
9876
9886
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
9877
9887
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
9878
9888
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
9889
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
9879
9890
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
9880
9891
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
9881
9892
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -9906,6 +9917,7 @@ declare class CorridorEntity extends BasePolyEntity {
|
|
|
9906
9917
|
onBeforeCreate?: (...params: any[]) => any;
|
|
9907
9918
|
minPointNum?: number;
|
|
9908
9919
|
maxPointNum?: number;
|
|
9920
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
9909
9921
|
validDrawPosition?: (...params: any[]) => any;
|
|
9910
9922
|
hasEdit?: boolean;
|
|
9911
9923
|
hasEditContextMenu?: boolean;
|
|
@@ -9949,6 +9961,7 @@ declare class CorridorEntity extends BasePolyEntity {
|
|
|
9949
9961
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
9950
9962
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
9951
9963
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
9964
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
9952
9965
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
9953
9966
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
9954
9967
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -9980,6 +9993,7 @@ declare class CurveEntity extends PolylineEntity {
|
|
|
9980
9993
|
onBeforeCreate?: (...params: any[]) => any;
|
|
9981
9994
|
minPointNum?: number;
|
|
9982
9995
|
maxPointNum?: number;
|
|
9996
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
9983
9997
|
validDrawPosition?: (...params: any[]) => any;
|
|
9984
9998
|
hasEdit?: boolean;
|
|
9985
9999
|
hasEditContextMenu?: boolean;
|
|
@@ -11103,14 +11117,14 @@ declare namespace ModelEntity {
|
|
|
11103
11117
|
/**
|
|
11104
11118
|
* gltf小模型 支持的样式信息
|
|
11105
11119
|
* @property [url] - glTF模型的URI的字符串或资源属性。
|
|
11106
|
-
* @property [scale = 1.0] -
|
|
11120
|
+
* @property [scale = 1.0] - 缩放比例
|
|
11121
|
+
* @property [minimumPixelSize = 0.0] - 指定模型的近似最小像素大小,而不考虑scale缩放,内部会计算像素对应的实际scale值。
|
|
11122
|
+
* @property [maximumScale] - 内部计算minimumPixelSize对应的实际scale值时,限定的最大的scale缩放比例。
|
|
11107
11123
|
* @property [heading = 0] - 方向角 (度数值,0-360度),优先级高于orientation
|
|
11108
11124
|
* @property [pitch = 0] - 俯仰角(度数值,0-360度),优先级高于orientation
|
|
11109
11125
|
* @property [roll = 0] - 翻滚角(度数值,0-360度),优先级高于orientation
|
|
11110
11126
|
* @property [mergeOrientation = false] - 当存在orientation时(如addDynamicPosition等),设置为true时,是在orientation基础的方式值上加上设置是heading、pitch、roll值,比如用于设置模型不是标准的方向时的纠偏处理
|
|
11111
11127
|
* @property [radius] - 编辑时,半径圆圈的半径,默认自动
|
|
11112
|
-
* @property [minimumPixelSize = 0.0] - 指定模型的近似最小像素大小,而不考虑缩放。
|
|
11113
|
-
* @property [maximumScale] - 模型的最大比例尺寸。minimumPixelSize的上限。
|
|
11114
11128
|
* @property [fill = false] - 是否填充,指定与模型渲染颜色混合
|
|
11115
11129
|
* @property [color = "#ffffff"] - 颜色
|
|
11116
11130
|
* @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
|
|
@@ -11145,13 +11159,13 @@ declare namespace ModelEntity {
|
|
|
11145
11159
|
type StyleOptions = any | {
|
|
11146
11160
|
url?: string | Cesium.Resource;
|
|
11147
11161
|
scale?: number;
|
|
11162
|
+
minimumPixelSize?: number;
|
|
11163
|
+
maximumScale?: number;
|
|
11148
11164
|
heading?: number;
|
|
11149
11165
|
pitch?: number;
|
|
11150
11166
|
roll?: number;
|
|
11151
11167
|
mergeOrientation?: boolean;
|
|
11152
11168
|
radius?: number;
|
|
11153
|
-
minimumPixelSize?: number;
|
|
11154
|
-
maximumScale?: number;
|
|
11155
11169
|
fill?: boolean;
|
|
11156
11170
|
color?: string | Cesium.Color;
|
|
11157
11171
|
opacity?: number;
|
|
@@ -12081,6 +12095,7 @@ declare namespace PolygonEntity {
|
|
|
12081
12095
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
12082
12096
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
12083
12097
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
12098
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
12084
12099
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
12085
12100
|
* @param [options.hasDrawDelPoint = true] - 绘制时,是否可以右键删除点
|
|
12086
12101
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
@@ -12113,6 +12128,7 @@ declare class PolygonEntity extends BasePolyEntity {
|
|
|
12113
12128
|
onBeforeCreate?: (...params: any[]) => any;
|
|
12114
12129
|
minPointNum?: number;
|
|
12115
12130
|
maxPointNum?: number;
|
|
12131
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
12116
12132
|
validDrawPosition?: (...params: any[]) => any;
|
|
12117
12133
|
hasDrawDelPoint?: boolean;
|
|
12118
12134
|
hasEdit?: boolean;
|
|
@@ -12280,6 +12296,7 @@ declare namespace PolylineEntity {
|
|
|
12280
12296
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
12281
12297
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
12282
12298
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
12299
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
12283
12300
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
12284
12301
|
* @param [options.hasDrawDelPoint = true] - 绘制时,是否可以右键删除点
|
|
12285
12302
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
@@ -12312,6 +12329,7 @@ declare class PolylineEntity extends BasePolyEntity {
|
|
|
12312
12329
|
onBeforeCreate?: (...params: any[]) => any;
|
|
12313
12330
|
minPointNum?: number;
|
|
12314
12331
|
maxPointNum?: number;
|
|
12332
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
12315
12333
|
validDrawPosition?: (...params: any[]) => any;
|
|
12316
12334
|
hasDrawDelPoint?: boolean;
|
|
12317
12335
|
hasEdit?: boolean;
|
|
@@ -12417,6 +12435,7 @@ declare namespace PolylineVolumeEntity {
|
|
|
12417
12435
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
12418
12436
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
12419
12437
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
12438
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
12420
12439
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
12421
12440
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
12422
12441
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -12447,6 +12466,7 @@ declare class PolylineVolumeEntity extends BasePolyEntity {
|
|
|
12447
12466
|
onBeforeCreate?: (...params: any[]) => any;
|
|
12448
12467
|
minPointNum?: number;
|
|
12449
12468
|
maxPointNum?: number;
|
|
12469
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
12450
12470
|
validDrawPosition?: (...params: any[]) => any;
|
|
12451
12471
|
hasEdit?: boolean;
|
|
12452
12472
|
hasEditContextMenu?: boolean;
|
|
@@ -12565,6 +12585,7 @@ declare namespace RectangleEntity {
|
|
|
12565
12585
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
12566
12586
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
12567
12587
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
12588
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
12568
12589
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
12569
12590
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
12570
12591
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -12596,6 +12617,7 @@ declare class RectangleEntity extends BasePolyEntity {
|
|
|
12596
12617
|
onBeforeCreate?: (...params: any[]) => any;
|
|
12597
12618
|
minPointNum?: number;
|
|
12598
12619
|
maxPointNum?: number;
|
|
12620
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
12599
12621
|
validDrawPosition?: (...params: any[]) => any;
|
|
12600
12622
|
hasEdit?: boolean;
|
|
12601
12623
|
hasEditContextMenu?: boolean;
|
|
@@ -13131,6 +13153,7 @@ declare namespace WallEntity {
|
|
|
13131
13153
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
13132
13154
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
13133
13155
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
13156
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
13134
13157
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
13135
13158
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
13136
13159
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -13161,6 +13184,7 @@ declare class WallEntity extends BasePolyEntity {
|
|
|
13161
13184
|
onBeforeCreate?: (...params: any[]) => any;
|
|
13162
13185
|
minPointNum?: number;
|
|
13163
13186
|
maxPointNum?: number;
|
|
13187
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
13164
13188
|
validDrawPosition?: (...params: any[]) => any;
|
|
13165
13189
|
hasEdit?: boolean;
|
|
13166
13190
|
hasEditContextMenu?: boolean;
|
|
@@ -14032,6 +14056,7 @@ declare class StraightArrow extends PolygonEntity {
|
|
|
14032
14056
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
14033
14057
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
14034
14058
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
14059
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
14035
14060
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
14036
14061
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
14037
14062
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -14065,6 +14090,7 @@ declare class AngleMeasure extends PolylineEntity {
|
|
|
14065
14090
|
onBeforeCreate?: (...params: any[]) => any;
|
|
14066
14091
|
minPointNum?: number;
|
|
14067
14092
|
maxPointNum?: number;
|
|
14093
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
14068
14094
|
validDrawPosition?: (...params: any[]) => any;
|
|
14069
14095
|
hasEdit?: boolean;
|
|
14070
14096
|
hasEditContextMenu?: boolean;
|
|
@@ -14111,6 +14137,7 @@ declare class AngleMeasure extends PolylineEntity {
|
|
|
14111
14137
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
14112
14138
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
14113
14139
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
14140
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
14114
14141
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
14115
14142
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
14116
14143
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -14143,6 +14170,7 @@ declare class AreaMeasure extends PolygonEntity {
|
|
|
14143
14170
|
onBeforeCreate?: (...params: any[]) => any;
|
|
14144
14171
|
minPointNum?: number;
|
|
14145
14172
|
maxPointNum?: number;
|
|
14173
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
14146
14174
|
validDrawPosition?: (...params: any[]) => any;
|
|
14147
14175
|
hasEdit?: boolean;
|
|
14148
14176
|
hasEditContextMenu?: boolean;
|
|
@@ -14195,6 +14223,7 @@ declare class AreaMeasure extends PolygonEntity {
|
|
|
14195
14223
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
14196
14224
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
14197
14225
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
14226
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
14198
14227
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
14199
14228
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
14200
14229
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -14228,6 +14257,7 @@ declare class AreaSurfaceMeasure extends AreaMeasure {
|
|
|
14228
14257
|
onBeforeCreate?: (...params: any[]) => any;
|
|
14229
14258
|
minPointNum?: number;
|
|
14230
14259
|
maxPointNum?: number;
|
|
14260
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
14231
14261
|
validDrawPosition?: (...params: any[]) => any;
|
|
14232
14262
|
hasEdit?: boolean;
|
|
14233
14263
|
hasEditContextMenu?: boolean;
|
|
@@ -14265,6 +14295,7 @@ declare class AreaSurfaceMeasure extends AreaMeasure {
|
|
|
14265
14295
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
14266
14296
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
14267
14297
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
14298
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
14268
14299
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
14269
14300
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
14270
14301
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -14297,6 +14328,7 @@ declare class DistanceMeasure extends PolylineEntity {
|
|
|
14297
14328
|
onBeforeCreate?: (...params: any[]) => any;
|
|
14298
14329
|
minPointNum?: number;
|
|
14299
14330
|
maxPointNum?: number;
|
|
14331
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
14300
14332
|
validDrawPosition?: (...params: any[]) => any;
|
|
14301
14333
|
hasEdit?: boolean;
|
|
14302
14334
|
hasEditContextMenu?: boolean;
|
|
@@ -14343,6 +14375,7 @@ declare class DistanceMeasure extends PolylineEntity {
|
|
|
14343
14375
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
14344
14376
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
14345
14377
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
14378
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
14346
14379
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
14347
14380
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
14348
14381
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -14376,6 +14409,7 @@ declare class DistanceSurfaceMeasure extends DistanceMeasure {
|
|
|
14376
14409
|
onBeforeCreate?: (...params: any[]) => any;
|
|
14377
14410
|
minPointNum?: number;
|
|
14378
14411
|
maxPointNum?: number;
|
|
14412
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
14379
14413
|
validDrawPosition?: (...params: any[]) => any;
|
|
14380
14414
|
hasEdit?: boolean;
|
|
14381
14415
|
hasEditContextMenu?: boolean;
|
|
@@ -14413,6 +14447,7 @@ declare class DistanceSurfaceMeasure extends DistanceMeasure {
|
|
|
14413
14447
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
14414
14448
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
14415
14449
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
14450
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
14416
14451
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
14417
14452
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
14418
14453
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -14445,6 +14480,7 @@ declare class HeightMeasure extends PolylineEntity {
|
|
|
14445
14480
|
onBeforeCreate?: (...params: any[]) => any;
|
|
14446
14481
|
minPointNum?: number;
|
|
14447
14482
|
maxPointNum?: number;
|
|
14483
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
14448
14484
|
validDrawPosition?: (...params: any[]) => any;
|
|
14449
14485
|
hasEdit?: boolean;
|
|
14450
14486
|
hasEditContextMenu?: boolean;
|
|
@@ -14491,6 +14527,7 @@ declare class HeightMeasure extends PolylineEntity {
|
|
|
14491
14527
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
14492
14528
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
14493
14529
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
14530
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
14494
14531
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
14495
14532
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
14496
14533
|
* @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
|
|
@@ -14523,6 +14560,7 @@ declare class HeightTriangleMeasure extends HeightMeasure {
|
|
|
14523
14560
|
onBeforeCreate?: (...params: any[]) => any;
|
|
14524
14561
|
minPointNum?: number;
|
|
14525
14562
|
maxPointNum?: number;
|
|
14563
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
14526
14564
|
validDrawPosition?: (...params: any[]) => any;
|
|
14527
14565
|
hasEdit?: boolean;
|
|
14528
14566
|
hasEditContextMenu?: boolean;
|
|
@@ -14623,6 +14661,7 @@ declare class PointMeasure extends PointEntity {
|
|
|
14623
14661
|
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
14624
14662
|
* @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
|
|
14625
14663
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
14664
|
+
* @param [options.updateDrawPosition] - 绘制时,外部自定义更新坐标,可以自定义处理特殊业务返回修改后的新坐标。
|
|
14626
14665
|
* @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
|
|
14627
14666
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
14628
14667
|
* @param [options.hasEdit = true] - 是否允许编辑
|
|
@@ -14657,6 +14696,7 @@ declare class SectionMeasure extends DistanceMeasure {
|
|
|
14657
14696
|
onBeforeCreate?: (...params: any[]) => any;
|
|
14658
14697
|
minPointNum?: number;
|
|
14659
14698
|
maxPointNum?: number;
|
|
14699
|
+
updateDrawPosition?: (...params: any[]) => any;
|
|
14660
14700
|
validDrawPosition?: (...params: any[]) => any;
|
|
14661
14701
|
addHeight?: number;
|
|
14662
14702
|
hasEdit?: boolean;
|
|
@@ -15604,6 +15644,7 @@ declare namespace CirclePrimitive {
|
|
|
15604
15644
|
* @property [stRotation = 0] - 椭圆纹理的角度(弧度值),正北为0,逆时针旋转
|
|
15605
15645
|
* @property [stRotationDegree = 0] - 椭圆纹理的角度(度数值,0-360度),与stRotation二选一
|
|
15606
15646
|
* @property [granularity = Cesium.Math.RADIANS_PER_DEGREE] - 指定椭圆上各点之间的角距离。
|
|
15647
|
+
* @property [fill = true] - 是否填充
|
|
15607
15648
|
* @property [materialType = "Color"] - 填充材质类型 ,可选项:{@link MaterialType}
|
|
15608
15649
|
* @property [materialOptions] - materialType对应的{@link MaterialType}中材质参数
|
|
15609
15650
|
* @property [material] - 指定用于填充的材质,指定material后`materialType`和`materialOptions`将被覆盖。
|
|
@@ -15640,6 +15681,7 @@ declare namespace CirclePrimitive {
|
|
|
15640
15681
|
stRotation?: number;
|
|
15641
15682
|
stRotationDegree?: number;
|
|
15642
15683
|
granularity?: number;
|
|
15684
|
+
fill?: boolean;
|
|
15643
15685
|
materialType?: string;
|
|
15644
15686
|
materialOptions?: any;
|
|
15645
15687
|
material?: Cesium.Material;
|
|
@@ -17158,7 +17200,9 @@ declare namespace ModelPrimitive {
|
|
|
17158
17200
|
/**
|
|
17159
17201
|
* gltf小模型 支持的样式信息
|
|
17160
17202
|
* @property [url] - glTF模型的URI的字符串或资源属性。
|
|
17161
|
-
* @property [scale = 1] -
|
|
17203
|
+
* @property [scale = 1.0] - 缩放比例
|
|
17204
|
+
* @property [minimumPixelSize = 0.0] - 指定模型的近似最小像素大小,而不考虑scale缩放,内部会计算像素对应的实际scale值。
|
|
17205
|
+
* @property [maximumScale] - 内部计算minimumPixelSize对应的实际scale值时,限定的最大的scale缩放比例。
|
|
17162
17206
|
* @property [scaleX = 1] - X轴方向缩放比例
|
|
17163
17207
|
* @property [scaleY = 1] - Y轴方向缩放比例
|
|
17164
17208
|
* @property [scaleZ = 1] - Z轴方向缩放比例
|
|
@@ -17166,8 +17210,6 @@ declare namespace ModelPrimitive {
|
|
|
17166
17210
|
* @property [pitch = 0] - 俯仰角(度数值,0-360度),优先级高于orientation
|
|
17167
17211
|
* @property [roll = 0] - 翻滚角(度数值,0-360度),优先级高于orientation
|
|
17168
17212
|
* @property [mergeOrientation = false] - 当存在orientation时(如addDynamicPosition等),设置为true时,可以在orientation基础的方式值上叠加设置是heading、pitch、roll值,比如用于设置模型不是标准的方向时的处理
|
|
17169
|
-
* @property [minimumPixelSize = 0.0] - 指定模型的近似最小像素大小,而不考虑缩放。
|
|
17170
|
-
* @property [maximumScale] - 模型的最大比例尺寸。minimumPixelSize的上限。
|
|
17171
17213
|
* @property [fill = false] - 是否填充,指定与模型渲染颜色混合
|
|
17172
17214
|
* @property [color = "#ffffff"] - 颜色
|
|
17173
17215
|
* @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
|
|
@@ -17236,6 +17278,8 @@ declare namespace ModelPrimitive {
|
|
|
17236
17278
|
type StyleOptions = any | {
|
|
17237
17279
|
url?: string | Cesium.Resource;
|
|
17238
17280
|
scale?: number;
|
|
17281
|
+
minimumPixelSize?: number;
|
|
17282
|
+
maximumScale?: number;
|
|
17239
17283
|
scaleX?: number;
|
|
17240
17284
|
scaleY?: number;
|
|
17241
17285
|
scaleZ?: number;
|
|
@@ -17243,8 +17287,6 @@ declare namespace ModelPrimitive {
|
|
|
17243
17287
|
pitch?: number;
|
|
17244
17288
|
roll?: number;
|
|
17245
17289
|
mergeOrientation?: boolean;
|
|
17246
|
-
minimumPixelSize?: number;
|
|
17247
|
-
maximumScale?: number;
|
|
17248
17290
|
fill?: boolean;
|
|
17249
17291
|
color?: string | Cesium.Color;
|
|
17250
17292
|
opacity?: number;
|
|
@@ -26947,7 +26989,7 @@ declare class Map extends BaseClass {
|
|
|
26947
26989
|
* @param [options.width = canvas.width] - 图片的高度像素值
|
|
26948
26990
|
* @param [options.height = canvas.height] - 图片的高度像素值
|
|
26949
26991
|
* @param [options.type = 'image/jpeg'] - 图片格式
|
|
26950
|
-
* @param [options.encoderOptions =
|
|
26992
|
+
* @param [options.encoderOptions = 1] - 在指定图片格式为 image/jpeg 或 image/webp的情况下,可以从 0 到 1 的区间内选择图片的质量。如果超出取值范围,将会使用默认值 0.92。其他参数会被忽略。
|
|
26951
26993
|
* @returns 截图完成后的回调方法的Promise
|
|
26952
26994
|
*/
|
|
26953
26995
|
expImage(options?: {
|
|
@@ -30518,7 +30560,7 @@ declare class Tle {
|
|
|
30518
30560
|
*/
|
|
30519
30561
|
readonly checksum2: number;
|
|
30520
30562
|
/**
|
|
30521
|
-
* 获取卫星指定时间所在的
|
|
30563
|
+
* 获取卫星指定时间所在的 ECI地固系坐标
|
|
30522
30564
|
* @param datetime - 指定的时间
|
|
30523
30565
|
* @returns ECEF(地心地固坐标系) 坐标
|
|
30524
30566
|
*/
|
|
@@ -30557,7 +30599,7 @@ declare class Tle {
|
|
|
30557
30599
|
*/
|
|
30558
30600
|
static getPoint(tle1: string, tle2: string, datetime: Date | Cesium.JulianDate | number): LngLatPoint | undefined;
|
|
30559
30601
|
/**
|
|
30560
|
-
* 获取卫星指定时间所在的
|
|
30602
|
+
* 获取卫星指定时间所在的 ECI地固系坐标
|
|
30561
30603
|
* @param tle1 - 卫星TLE的第一行
|
|
30562
30604
|
* @param tle2 - 卫星TLE的第二行
|
|
30563
30605
|
* @param datetime - 指定的时间
|
|
@@ -30578,14 +30620,15 @@ declare class Tle {
|
|
|
30578
30620
|
*/
|
|
30579
30621
|
static eciToGeodetic(positionEci: Cesium.Cartesian3, datetime: Date | Cesium.JulianDate | number): LngLatPoint;
|
|
30580
30622
|
/**
|
|
30581
|
-
* ECI
|
|
30623
|
+
* ECI惯性系坐标 转换为 ECI地固系坐标
|
|
30582
30624
|
* @param positionEci - ECI(地心惯性坐标系)坐标
|
|
30583
30625
|
* @param datetime - 指定时间, number时请传入格林尼治恒星时(GMST)时间
|
|
30626
|
+
* @param [positionEcf] - ECI(地心惯性坐标系)坐标
|
|
30584
30627
|
* @returns ECEF(地心地固坐标系) 坐标
|
|
30585
30628
|
*/
|
|
30586
|
-
static eciToEcf(positionEci: Cesium.Cartesian3, datetime: Date | Cesium.JulianDate | number): Cesium.Cartesian3;
|
|
30629
|
+
static eciToEcf(positionEci: Cesium.Cartesian3, datetime: Date | Cesium.JulianDate | number, positionEcf?: Cesium.Cartesian3): Cesium.Cartesian3;
|
|
30587
30630
|
/**
|
|
30588
|
-
*
|
|
30631
|
+
* ECI地固系坐标 转换为 ECI惯性系坐标
|
|
30589
30632
|
* @param positionEcf - ECEF(地心地固坐标系) 坐标
|
|
30590
30633
|
* @param datetime - 指定时间, number时请传入格林尼治恒星时(GMST)时间
|
|
30591
30634
|
* @returns ECI(地心惯性坐标系)坐标
|
|
@@ -31097,6 +31140,8 @@ declare namespace Satellite {
|
|
|
31097
31140
|
* @param [options.tle2] - 卫星两行轨道数(TLE) 的tle2, 示例:'2 39150 97.9189 29.2064 0018076 220.9170 139.0692 14.76532215297913'
|
|
31098
31141
|
* @param [options.period] - 卫星运行周期(单位:分钟), 未传值时自动在tle2中解析
|
|
31099
31142
|
* @param [options.pointsNum = 60] - 卫星轨道计算的点数量,值越大轨道越平滑度但占用资源越多(可能卡)
|
|
31143
|
+
* @param [options.referenceFrame = Cesium.ReferenceFrame.INERTIAL] - 使用地固系(ECEF坐标),还是地惯系(ECI惯性坐标)
|
|
31144
|
+
* @param [options.numberOfDerivatives = 0] - 每个位置的导数的数量;即速度、加速度等。
|
|
31100
31145
|
* @param [options.position] - 当没有tle时,自定义传入动态坐标位置(含时序的点集合)
|
|
31101
31146
|
* @param [options.orientation] - 当没有tle时,自定义传入实体方向
|
|
31102
31147
|
* @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。
|
|
@@ -31125,6 +31170,8 @@ declare class Satellite extends Route {
|
|
|
31125
31170
|
tle2?: string;
|
|
31126
31171
|
period?: number;
|
|
31127
31172
|
pointsNum?: number;
|
|
31173
|
+
referenceFrame?: Cesium.ReferenceFrame;
|
|
31174
|
+
numberOfDerivatives?: number;
|
|
31128
31175
|
position?: Cesium.SampledPositionProperty;
|
|
31129
31176
|
orientation?: Cesium.Property;
|
|
31130
31177
|
attr?: any;
|
|
@@ -33960,19 +34007,25 @@ declare class Slope extends BaseThing {
|
|
|
33960
34007
|
* @param options - 参数对象,具有以下属性:
|
|
33961
34008
|
* @param options.map - Map地图对象
|
|
33962
34009
|
* @param options.positions - 坐标数组
|
|
33963
|
-
* @param options.
|
|
33964
|
-
* @param options.
|
|
33965
|
-
* @param options.
|
|
33966
|
-
* @param options.
|
|
34010
|
+
* @param [options.endItem] - 异步计算中,每计算完成1个点的坡度坡向后 的回调方法
|
|
34011
|
+
* @param [options.splitNum = 8] - 插值数,横纵等比分割的网格个数(概略值,有经纬网网格来插值)
|
|
34012
|
+
* @param [options.radius = 2] - 取样分析,点周边半径(单位:米)
|
|
34013
|
+
* @param [options.count = 4] - 取样分析,点周边象限内点的数量,共计算 count*4 个点
|
|
34014
|
+
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
34015
|
+
* @param [options.objectsToExclude] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
34016
|
+
* @param [options.exact = false] - 是否进行精确计算, 传false时是否快速概略计算方式,该方式计算精度较低,但计算速度快,仅能计算在当前视域内坐标的高度
|
|
33967
34017
|
* @returns 异步计算完成的Promise
|
|
33968
34018
|
*/
|
|
33969
34019
|
static getSlope(options: {
|
|
33970
34020
|
map: Map;
|
|
33971
34021
|
positions: Cesium.Cartesian3[];
|
|
33972
|
-
|
|
33973
|
-
|
|
33974
|
-
|
|
33975
|
-
|
|
34022
|
+
endItem?: getSlope_endItem;
|
|
34023
|
+
splitNum?: number;
|
|
34024
|
+
radius?: number;
|
|
34025
|
+
count?: number;
|
|
34026
|
+
has3dtiles?: boolean;
|
|
34027
|
+
objectsToExclude?: any;
|
|
34028
|
+
exact?: boolean;
|
|
33976
34029
|
}): Promise<any>;
|
|
33977
34030
|
}
|
|
33978
34031
|
|
|
@@ -36865,9 +36918,10 @@ declare namespace ThingUtil {
|
|
|
36865
36918
|
* 注册Thing对象类
|
|
36866
36919
|
* @param type - Thing对象类型
|
|
36867
36920
|
* @param thingClass - Thing对象类
|
|
36921
|
+
* @param [isOnlyInMap = true] - 是否在地图上唯一存在
|
|
36868
36922
|
* @returns 无
|
|
36869
36923
|
*/
|
|
36870
|
-
function register(type: string, thingClass: BaseThing): void;
|
|
36924
|
+
function register(type: string, thingClass: BaseThing, isOnlyInMap?: boolean): void;
|
|
36871
36925
|
/**
|
|
36872
36926
|
* 根据 Thing对象类型 获取 Thing对象类
|
|
36873
36927
|
* @param type - Thing对象类型
|