mars3d 3.5.12 → 3.5.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 CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D三维可视化平台 mars3d
3
3
  *
4
- * 版本信息:v3.5.12
5
- * 编译日期:2023-06-19 18:25:22
4
+ * 版本信息:v3.5.14
5
+ * 编译日期:2023-07-03 18:36:35
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2023-03-17
8
8
  */
@@ -364,6 +364,7 @@
364
364
  line-height: 40px;
365
365
  padding: 2px;
366
366
  border: 1px solid lightgrey;
367
+ z-index: 99999;
367
368
  }
368
369
  .mars3d-slider .slider-splitter:hover {
369
370
  cursor: ew-resize;
package/dist/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.5.12
6
- * 编译日期:2023-06-19 18:25:22
5
+ * 版本信息:v3.5.14
6
+ * 编译日期:2023-07-03 18:36:34
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2023-03-17
9
9
  */
@@ -6139,6 +6139,72 @@ declare class Route extends BasePointPrimitive {
6139
6139
  }): Promise<any>;
6140
6140
  }
6141
6141
 
6142
+ /**
6143
+ * 天际线体 矢量对象 <br>
6144
+ * 说明:自动计算当前相机所视区域的天际线闭合区域
6145
+ * @param options - 参数对象,包括以下:
6146
+ * @param options.style - 样式信息
6147
+ * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
6148
+ * @param [options.appearance] - [cesium原生]用于渲染图元的外观。
6149
+ * @param [options.attributes] - [cesium原生]每个实例的属性。
6150
+ * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。
6151
+ * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。
6152
+ * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。
6153
+ * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。
6154
+ * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。
6155
+ * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。
6156
+ * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。
6157
+ * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。
6158
+ * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。
6159
+ * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。
6160
+ * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
6161
+ * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
6162
+ * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
6163
+ * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数
6164
+ * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定
6165
+ * @param [options.id = createGuid()] - 矢量数据id标识
6166
+ * @param [options.name = ''] - 矢量数据名称
6167
+ * @param [options.show = true] - 矢量数据是否显示
6168
+ * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
6169
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
6170
+ * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
6171
+ * @param [options.flyToOptions] - 加载完成数据后是否自动飞行定位到数据所在的区域的对应 {@link BaseGraphic#flyTo}方法参数。
6172
+ */
6173
+ declare class SkylineBody extends PolygonPrimitive {
6174
+ constructor(options: {
6175
+ style: PolygonPrimitive.StyleOptions | any;
6176
+ attr?: any;
6177
+ appearance?: Cesium.Appearance;
6178
+ attributes?: Cesium.Appearance;
6179
+ depthFailAppearance?: Cesium.Appearance;
6180
+ vertexCacheOptimize?: boolean;
6181
+ interleave?: boolean;
6182
+ compressVertices?: boolean;
6183
+ releaseGeometryInstances?: boolean;
6184
+ allowPicking?: boolean;
6185
+ cull?: boolean;
6186
+ asynchronous?: boolean;
6187
+ debugShowBoundingVolume?: boolean;
6188
+ debugShowShadowVolume?: boolean;
6189
+ popup?: string | any[] | ((...params: any[]) => any);
6190
+ popupOptions?: Popup.StyleOptions | any;
6191
+ tooltip?: string | any[] | ((...params: any[]) => any);
6192
+ tooltipOptions?: Tooltip.StyleOptions | any;
6193
+ contextmenuItems?: any;
6194
+ id?: string | number;
6195
+ name?: string;
6196
+ show?: boolean;
6197
+ eventParent?: BaseClass | boolean;
6198
+ allowDrillPick?: boolean | ((...params: any[]) => any);
6199
+ flyTo?: boolean;
6200
+ flyToOptions?: any;
6201
+ });
6202
+ /**
6203
+ * 相机位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
6204
+ */
6205
+ position: Cesium.Cartesian3 | LngLatPoint;
6206
+ }
6207
+
6142
6208
  declare namespace Tetrahedron {
6143
6209
  /**
6144
6210
  * 四面体(顶部正方形+倒立的三角椎体) 支持的样式信息
@@ -9260,6 +9326,12 @@ declare class EditTileset extends EditBase {
9260
9326
  startRotateMatrix(graphic?: BaseGraphic): void;
9261
9327
  }
9262
9328
 
9329
+ /**
9330
+ * Video2D对象 标绘处理对应的编辑类
9331
+ */
9332
+ declare class EditVideo2D extends EditBase {
9333
+ }
9334
+
9263
9335
  /**
9264
9336
  * Wall对象 标绘处理对应的编辑类,
9265
9337
  */
@@ -11703,6 +11775,10 @@ declare class Video2D extends PolygonEntity {
11703
11775
  flyTo?: boolean;
11704
11776
  flyToOptions?: any;
11705
11777
  });
11778
+ /**
11779
+ * 编辑处理类
11780
+ */
11781
+ readonly EditClass: EditVideo2D;
11706
11782
  /**
11707
11783
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
11708
11784
  */
@@ -12507,7 +12583,8 @@ declare class Lune extends PolygonEntity {
12507
12583
  /**
12508
12584
  * 正多边形 Entity矢量数据
12509
12585
  * @param options - 参数对象,包括以下:
12510
- * @param options.positions - 坐标位置
12586
+ * @param options.position - 中心点坐标位置
12587
+ * @param [options.positions] - 坐标位置
12511
12588
  * @param options.style - 样式信息,还包括:
12512
12589
  * @param [options.style.border = 3] - 边数量
12513
12590
  * @param options.style.radius - 区域的半径(单位:米)
@@ -12534,7 +12611,8 @@ declare class Lune extends PolygonEntity {
12534
12611
  */
12535
12612
  declare class Regular extends PolygonEntity {
12536
12613
  constructor(options: {
12537
- positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[];
12614
+ position: LngLatPoint | Cesium.Cartesian3 | any[];
12615
+ positions?: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[];
12538
12616
  style: {
12539
12617
  border?: number;
12540
12618
  radius: number;
@@ -12587,7 +12665,8 @@ declare class Regular extends PolygonEntity {
12587
12665
  /**
12588
12666
  * 扇形(3个点) Entity矢量数据
12589
12667
  * @param options - 参数对象,包括以下:
12590
- * @param options.positions - 坐标位置
12668
+ * @param options.position - 中心点坐标位置
12669
+ * @param [options.positions] - 坐标位置
12591
12670
  * @param options.style - 样式信息,还包括:
12592
12671
  * @param options.style.radius - 扇形区域的半径(单位:米)
12593
12672
  * @param options.style.startAngle - 扇形区域的开始角度(正东方向为0,顺时针到360度)
@@ -12615,7 +12694,8 @@ declare class Regular extends PolygonEntity {
12615
12694
  */
12616
12695
  declare class Sector extends PolygonEntity {
12617
12696
  constructor(options: {
12618
- positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[];
12697
+ position: LngLatPoint | Cesium.Cartesian3 | any[];
12698
+ positions?: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[];
12619
12699
  style: {
12620
12700
  radius: number;
12621
12701
  startAngle: number;
@@ -25112,6 +25192,10 @@ declare class KeyboardRoam extends BaseControl {
25112
25192
  * 相机旋转的类型
25113
25193
  */
25114
25194
  static MoveType: MoveType;
25195
+ /**
25196
+ * 设置对象的启用和禁用状态。
25197
+ */
25198
+ enabled: boolean;
25115
25199
  }
25116
25200
 
25117
25201
  /**
@@ -31452,6 +31536,7 @@ declare class QueryArcServer extends BaseClass {
31452
31536
  * @param [queryOptions.where] - 自定义的检索条件,与text二选一
31453
31537
  * @param [queryOptions.graphic] - 限定的搜索区域
31454
31538
  * @param [queryOptions.page = true] - 是否分页查询,false时不分页,一次性查询返回
31539
+ * @param [queryOptions.parameters] - 其他参数,arcgis服务本身支持的参数均支持
31455
31540
  * @param [queryOptions.success] - 查询完成的回调方法
31456
31541
  * @param [queryOptions.error] - 查询失败的回调方法
31457
31542
  * @returns 查询完成的Promise,等价于success参数
@@ -31463,6 +31548,7 @@ declare class QueryArcServer extends BaseClass {
31463
31548
  where?: string;
31464
31549
  graphic?: BaseGraphic | any;
31465
31550
  page?: boolean;
31551
+ parameters?: any;
31466
31552
  success?: (...params: any[]) => any;
31467
31553
  error?: (...params: any[]) => any;
31468
31554
  }): Promise<any>;
@@ -32276,45 +32362,6 @@ declare class Skyline extends BaseThing {
32276
32362
  width: number;
32277
32363
  }
32278
32364
 
32279
- /**
32280
- * 天际线体
32281
- * @param [options] - 参数对象,包括以下:
32282
- * @param [options.color = new Cesium.Color(1.0, 0.0, 0.0)] - 边际线颜色
32283
- * @param [options.width = 2] - 天际线宽度
32284
- * @param [options.id = createGuid()] - 对象的id标识
32285
- * @param [options.enabled = true] - 对象的启用状态
32286
- * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
32287
- */
32288
- declare class SkylineBody extends BaseThing {
32289
- constructor(options?: {
32290
- color?: Cesium.Color;
32291
- width?: number;
32292
- id?: string | number;
32293
- enabled?: boolean;
32294
- eventParent?: BaseClass | boolean;
32295
- });
32296
- /**
32297
- * 边际线颜色
32298
- */
32299
- color: Cesium.Color;
32300
- /**
32301
- * 天际线宽度
32302
- */
32303
- width: number;
32304
- /**
32305
- * 对象添加到地图前创建一些对象的钩子方法,
32306
- * 只会调用一次
32307
- * @returns 无
32308
- */
32309
- _mountedHook(): void;
32310
- /**
32311
- * 销毁当前对象
32312
- * @param [noDel = false] - false:会自动delete释放所有属性,true:不delete绑定的变量
32313
- * @returns 无
32314
- */
32315
- destroy(noDel?: boolean): void;
32316
- }
32317
-
32318
32365
  /**
32319
32366
  * 地下模式类
32320
32367
  * @param [options] - 参数对象,包括以下:
@@ -33174,6 +33221,7 @@ declare type getSlope_endItem = (event: {
33174
33221
  * @param [options.imageBottom] - 当显示开挖区域的井时,井底面贴图URL
33175
33222
  * @param [options.diffHeight] - 当显示开挖区域的井时,设置所有区域的挖掘深度(单位:米)
33176
33223
  * @param [options.splitNum = 30] - 当显示开挖区域的井时,井墙面每两点之间插值个数(概略值,有经纬网网格来插值)
33224
+ * @param [options.dynamicView = true] - 是否监听事件,动态隐藏非视域内区域
33177
33225
  * @param [options.id = createGuid()] - 对象的id标识
33178
33226
  * @param [options.enabled = true] - 对象的启用状态
33179
33227
  * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
@@ -33186,6 +33234,7 @@ declare class TerrainClip extends TerrainOldEditBase {
33186
33234
  imageBottom?: string;
33187
33235
  diffHeight?: number;
33188
33236
  splitNum?: number;
33237
+ dynamicView?: boolean;
33189
33238
  id?: string | number;
33190
33239
  enabled?: boolean;
33191
33240
  eventParent?: BaseClass | boolean;
@@ -35241,7 +35290,7 @@ declare namespace PointUtil {
35241
35290
  * 获取position的最终value值,
35242
35291
  * 因为cesium经常属性或绑定一层,通过该方法可以内部去判断是否有getValue或_value进行取最终value值。
35243
35292
  * @param position - 各种位置属性对象
35244
- * @param [time = Cesium.JulianDate.now()] - 指定的时间值
35293
+ * @param [time = Cesium.JulianDate.now()] - 指定的时间值 ,如 map.clock.currentTime
35245
35294
  * @returns 具体的Cartesian3对象坐标值
35246
35295
  */
35247
35296
  function getPositionValue(position: Cesium.Cartesian3 | Cesium.SampledPositionProperty | any, time?: Cesium.JulianDate): Cesium.Cartesian3;