mars3d 3.4.24 → 3.4.26
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 +10 -8
- package/dist/mars3d.js +4 -4
- 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.4.
|
|
6
|
-
* 编译日期:2023-
|
|
5
|
+
* 版本信息:v3.4.26
|
|
6
|
+
* 编译日期:2023-03-09 16:18:03
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2022-06-01
|
|
9
9
|
*/
|
|
@@ -12671,7 +12671,7 @@ declare class SectionMeasure extends DistanceMeasure {
|
|
|
12671
12671
|
}
|
|
12672
12672
|
|
|
12673
12673
|
/**
|
|
12674
|
-
*
|
|
12674
|
+
* 体积量算对象(方量分析),
|
|
12675
12675
|
* 非直接调用,由 Measure 类统一创建及管理。<br />
|
|
12676
12676
|
*
|
|
12677
12677
|
* 1. 挖方量: 计算“基准面”到地表之间的凸出部分进行挖掉的体积。<br />
|
|
@@ -24358,17 +24358,17 @@ declare class Map extends BaseClass {
|
|
|
24358
24358
|
/**
|
|
24359
24359
|
* 放大地图
|
|
24360
24360
|
* @param [relativeAmount = 2] - 相对量
|
|
24361
|
-
* @param [mandatory] -
|
|
24361
|
+
* @param [mandatory] - 是否强制更新,忽略screenSpaceCameraController的enableInputs/enableZoom限制
|
|
24362
24362
|
* @returns 是否有移动位置
|
|
24363
24363
|
*/
|
|
24364
|
-
zoomIn(relativeAmount?: number, mandatory?:
|
|
24364
|
+
zoomIn(relativeAmount?: number, mandatory?: boolean): boolean;
|
|
24365
24365
|
/**
|
|
24366
24366
|
* 缩小地图
|
|
24367
24367
|
* @param [relativeAmount = 2] - 相对量
|
|
24368
|
-
* @param [mandatory] -
|
|
24368
|
+
* @param [mandatory] - 是否强制更新,忽略screenSpaceCameraController的enableInputs/enableZoom限制
|
|
24369
24369
|
* @returns 是否有移动位置
|
|
24370
24370
|
*/
|
|
24371
|
-
zoomOut(relativeAmount?: number, mandatory?:
|
|
24371
|
+
zoomOut(relativeAmount?: number, mandatory?: boolean): boolean;
|
|
24372
24372
|
/**
|
|
24373
24373
|
* 设置鼠标操作习惯方式。
|
|
24374
24374
|
* 默认为中键旋转,右键拉伸远近。传`rightTilt:true`可以设置为右键旋转,中键拉伸远近。
|
|
@@ -33172,7 +33172,7 @@ declare namespace PointTrans {
|
|
|
33172
33172
|
* 使用proj4转换坐标(支持任意坐标系),
|
|
33173
33173
|
* 坐标系 可以在 {@link http://epsg.io }进行查询,已经内置支持 EPSG:4326、EPSG:3857、EPSG:4490、EPSG:4491至4554
|
|
33174
33174
|
* @param arrdata - 原始坐标,示例:[39396641,3882123]
|
|
33175
|
-
* @param fromProjParams - 原始坐标的坐标系,如'EPSG:4527'
|
|
33175
|
+
* @param fromProjParams - 原始坐标的坐标系,如'EPSG:4527' 或 mars3d.CRS.CGCS2000_GK_Zone_3
|
|
33176
33176
|
* @param [toProjParams = 'EPSG:4326'] - 转为返回的结果坐标系
|
|
33177
33177
|
* @returns 返回结果坐标系的对应坐标,示例:[115.866936, 35.062583]
|
|
33178
33178
|
*/
|
|
@@ -34231,6 +34231,7 @@ declare namespace Util {
|
|
|
34231
34231
|
* @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
|
|
34232
34232
|
* @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
|
|
34233
34233
|
* @param [options.crs] - 原始数据的坐标系,如'EPSG:3857' (可以从 {@link http://epsg.io }查询)
|
|
34234
|
+
* @param [options.onPointTrans] - 坐标转换方法,可用于对每个坐标做额外转换处理,比如坐标纠偏 onPointTrans: mars3d.PointUtil.getTransFun(mars3d.ChinaCRS.GCJ02, map.chinaCRS)
|
|
34234
34235
|
* @returns Graphic构造参数数组(用于创建{@link BaseGraphic})
|
|
34235
34236
|
*/
|
|
34236
34237
|
function geoJsonToGraphics(geojson: any, options?: {
|
|
@@ -34245,6 +34246,7 @@ declare namespace Util {
|
|
|
34245
34246
|
callback?: (...params: any[]) => any;
|
|
34246
34247
|
};
|
|
34247
34248
|
crs?: string;
|
|
34249
|
+
onPointTrans?: (...params: any[]) => any;
|
|
34248
34250
|
}): any;
|
|
34249
34251
|
/**
|
|
34250
34252
|
* GeoJSON格式的Feature单个对象转为 Graphic构造参数(用于创建{@link BaseGraphic})
|