mars3d 3.6.13 → 3.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mars3d.css +2 -2
- package/dist/mars3d.d.ts +58 -22
- package/dist/mars3d.js +3 -3
- package/package.json +1 -1
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-11-
|
|
5
|
+
* 版本信息:v3.6.14
|
|
6
|
+
* 编译日期:2023-11-27 22:13:54
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2023-03-17
|
|
9
9
|
*/
|
|
@@ -120,6 +120,36 @@ declare enum CRS {
|
|
|
120
120
|
CGCS2000_GK_CM_6 = "CGCS2000_GK_CM_6"
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
/**
|
|
124
|
+
* 矢量对象编辑时 拖拽点类型
|
|
125
|
+
*/
|
|
126
|
+
declare enum EditPointType {
|
|
127
|
+
/**
|
|
128
|
+
* 位置控制
|
|
129
|
+
*/
|
|
130
|
+
Control = 1,
|
|
131
|
+
/**
|
|
132
|
+
* 整体平移(如线面)
|
|
133
|
+
*/
|
|
134
|
+
MoveAll = 2,
|
|
135
|
+
/**
|
|
136
|
+
* 辅助增加新点
|
|
137
|
+
*/
|
|
138
|
+
AddMidPoint = 3,
|
|
139
|
+
/**
|
|
140
|
+
* 上下移动高度
|
|
141
|
+
*/
|
|
142
|
+
MoveHeight = 4,
|
|
143
|
+
/**
|
|
144
|
+
* 辅助修改属性(如半径)
|
|
145
|
+
*/
|
|
146
|
+
EditAttr = 5,
|
|
147
|
+
/**
|
|
148
|
+
* 旋转角度修改
|
|
149
|
+
*/
|
|
150
|
+
EditRotation = 6
|
|
151
|
+
}
|
|
152
|
+
|
|
123
153
|
/**
|
|
124
154
|
* 特效类型
|
|
125
155
|
*/
|
|
@@ -31118,7 +31148,7 @@ declare namespace SatelliteSensor {
|
|
|
31118
31148
|
* @property [heading = 0] - 方向角 (角度值 0-360)
|
|
31119
31149
|
* @property [pitch = 0] - 俯仰角(角度值 0-360)
|
|
31120
31150
|
* @property [roll = 0] - 翻滚角(角度值 0-360)
|
|
31121
|
-
* @property [color =
|
|
31151
|
+
* @property [color = "rgba(255,255,0,0.4)"] - 颜色
|
|
31122
31152
|
* @property [opacity = 1.0] - 透明度, 取值范围:0.0-1.0
|
|
31123
31153
|
* @property [outline = false] - 是否显示边线
|
|
31124
31154
|
* @property [outlineColor = color] - 边线颜色
|
|
@@ -34300,7 +34330,7 @@ declare class TilesetBoxClip extends BaseThing {
|
|
|
34300
34330
|
* @param options.layer - 需要裁剪的对象(3dtiles图层)
|
|
34301
34331
|
* @param [options.area] - 多区域数组对象, 示例: [{ positions: [[108.959062, 34.220134, 397], [108.959802, 34.220147, 397], [108.959106, 34.21953, 398]] }]
|
|
34302
34332
|
* @param [options.clipOutSide = false] - 是否外裁剪
|
|
34303
|
-
* @param [options.precise =
|
|
34333
|
+
* @param [options.precise = true] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重
|
|
34304
34334
|
* @param [options.id = createGuid()] - 对象的id标识
|
|
34305
34335
|
* @param [options.enabled = true] - 对象的启用状态
|
|
34306
34336
|
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
|
|
@@ -34322,7 +34352,7 @@ declare class TilesetClip extends TilesetEditBase {
|
|
|
34322
34352
|
* @param [options] - 参数对象,包括以下:
|
|
34323
34353
|
* @param options.layer - 需要模型分析的对象(3dtiles图层)
|
|
34324
34354
|
* @param [options.area] - 多区域数组对象, 示例: [{ positions: [[108.959062, 34.220134, 397], [108.959802, 34.220147, 397], [108.959106, 34.21953, 398]] }]
|
|
34325
|
-
* @param [options.precise =
|
|
34355
|
+
* @param [options.precise = true] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重
|
|
34326
34356
|
* @param [options.id = createGuid()] - 对象的id标识
|
|
34327
34357
|
* @param [options.enabled = true] - 对象的启用状态
|
|
34328
34358
|
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
|
|
@@ -34418,7 +34448,7 @@ declare class TilesetEditBase extends BaseThing {
|
|
|
34418
34448
|
* @param [options.area] - 多区域数组对象, 示例: [{ positions: [[108.959062, 34.220134, 397], [108.959802, 34.220147, 397], [108.959106, 34.21953, 398]] }]
|
|
34419
34449
|
* @param [options.editHeight] - 模型基准高度(单位:米),基于压平/淹没区域最低点高度的纠偏,也支持定义在模型图层中
|
|
34420
34450
|
* @param [options.raise = true] - 是否开启区域抬高
|
|
34421
|
-
* @param [options.precise =
|
|
34451
|
+
* @param [options.precise = true] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重
|
|
34422
34452
|
* @param [options.id = createGuid()] - 对象的id标识
|
|
34423
34453
|
* @param [options.enabled = true] - 对象的启用状态
|
|
34424
34454
|
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
|
|
@@ -34491,7 +34521,7 @@ declare namespace TilesetFlood {
|
|
|
34491
34521
|
* @param [options.color = new Cesium.Color(0.15, 0.7, 0.95, 0.5)] - 淹没颜色
|
|
34492
34522
|
* @param [options.floodAll] - 是否对整个模型进行分析
|
|
34493
34523
|
* @param [options.limitMin = false] - 显示效果中是否不显示最低高度以下的部分颜色
|
|
34494
|
-
* @param [options.precise =
|
|
34524
|
+
* @param [options.precise = true] - true:精确模式, 直接存储范围,但传入的范围顶点数量多时,就会造成一定程度的卡顿; false: 掩膜模式,栅格化范围,效率与范围顶点数量无关,但放大后锯齿化严重
|
|
34495
34525
|
* @param [options.id = createGuid()] - 对象的id标识
|
|
34496
34526
|
* @param [options.enabled = true] - 对象的启用状态
|
|
34497
34527
|
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
|
|
@@ -35360,25 +35390,31 @@ declare namespace DomUtil {
|
|
|
35360
35390
|
*/
|
|
35361
35391
|
declare namespace DrawUtil {
|
|
35362
35392
|
/**
|
|
35363
|
-
*
|
|
35364
|
-
*/
|
|
35365
|
-
const PointType: number;
|
|
35366
|
-
/**
|
|
35367
|
-
* 拖拽点颜色
|
|
35393
|
+
* 根据类型设置编辑点的样式
|
|
35368
35394
|
* @example
|
|
35369
|
-
* mars3d.DrawUtil.
|
|
35370
|
-
* mars3d.
|
|
35371
|
-
*
|
|
35372
|
-
*
|
|
35373
|
-
*
|
|
35395
|
+
* mars3d.DrawUtil.setEditPointStyle(mars3d.EditPointType.Control, {
|
|
35396
|
+
* type: mars3d.GraphicType.billboardP, // 支持设置type指定编辑点类型
|
|
35397
|
+
* image: "img/icon/move.png",
|
|
35398
|
+
* horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
|
|
35399
|
+
* verticalOrigin: Cesium.VerticalOrigin.CENTER
|
|
35400
|
+
* })
|
|
35401
|
+
* @param type - 类型
|
|
35402
|
+
* @param newStyle - 样式
|
|
35403
|
+
* @returns 无
|
|
35374
35404
|
*/
|
|
35375
|
-
|
|
35405
|
+
function setEditPointStyle(type: EditPointType | number, newStyle: PointPrimitive.StyleOptions | any | any): void;
|
|
35376
35406
|
/**
|
|
35377
|
-
*
|
|
35378
|
-
* @param
|
|
35407
|
+
* 更新所有编辑点的样式
|
|
35408
|
+
* @param style - 样式
|
|
35379
35409
|
* @returns 无
|
|
35380
35410
|
*/
|
|
35381
|
-
function
|
|
35411
|
+
function setAllEditPointStyle(style: PointPrimitive.StyleOptions | any | any): void;
|
|
35412
|
+
/**
|
|
35413
|
+
* 根据类型获取编辑点样式
|
|
35414
|
+
* @param [type = mars3d.EditPointType.Control] - 类型
|
|
35415
|
+
* @returns 样式对象
|
|
35416
|
+
*/
|
|
35417
|
+
function getEditPointStyle(type?: EditPointType | number): PointPrimitive.StyleOptions | any | any;
|
|
35382
35418
|
}
|
|
35383
35419
|
|
|
35384
35420
|
/**
|
|
@@ -37701,7 +37737,7 @@ declare namespace thing {
|
|
|
37701
37737
|
|
|
37702
37738
|
export {
|
|
37703
37739
|
name, update, version, proj4, Tle,
|
|
37704
|
-
BaseClass, BaseThing, LngLatPoint, LngLatArray, GroundSkyBox, MultipleSkyBox, LocalWorldTransform, CRS, ChinaCRS, EventType, State, Token, ColorRamp, MaterialType, GraphicType, LayerType, ControlType, EffectType, Lang, MoveType, ClipType, Icon,
|
|
37740
|
+
BaseClass, BaseThing, LngLatPoint, LngLatArray, GroundSkyBox, MultipleSkyBox, LocalWorldTransform, CRS, ChinaCRS, EventType, State, Token, ColorRamp, MaterialType, GraphicType, LayerType, ControlType, EffectType, Lang, MoveType, ClipType, Icon, EditPointType,
|
|
37705
37741
|
DomUtil, MeasureUtil, PointUtil, PolyUtil, PointTrans, Util, Log, MaterialUtil, GraphicUtil, DrawUtil, LayerUtil, ControlUtil, EffectUtil,
|
|
37706
37742
|
BaseMaterialConver, BaseStyleConver, BillboardStyleConver, CloudStyleConver, BoxStyleConver, CircleStyleConver, CorridorStyleConver, CylinderStyleConver, DivGraphicStyleConver, EllipsoidStyleConver, LabelStyleConver, ModelStyleConver, PathStyleConver, PlaneStyleConver, PointStyleConver, PolygonStyleConver, PolylineStyleConver, PolylineVolumeStyleConver, RectangleStyleConver, RectangularSensorStyleConver, WallStyleConver,
|
|
37707
37743
|
material, graphic, edit, provider, layer, thing, effect, control, query,
|