Class: CoordinateConvert

CoordinateConvert()

new CoordinateConvert()

坐标转换类
Source:

Methods

(async, static) convert(dot) → {Promise.<Dot>}

坐标转换
Parameters:
Name Type Description
dot Object 转换前的点 (Dot类型的Object)
Source:
Returns:
转换后的点
Type
Promise.<Dot>

(async, static) convertAsync(dot) → {Promise.<(Dot|String)>}

异步坐标转换
Parameters:
Name Type Description
dot Object 转换前的点 (Dot类型的Object)
Source:
Returns:
成功--返回转换后的点,失败--返回String
Type
Promise.<(Dot|String)>

(async, static) createObj() → {CoordinateConvert}

构造一个新的CoordinateConvert对象
Source:
Returns:
Type
CoordinateConvert

(async, static) getConvertParams() → {Promise.<CoordinateConvert>}

获取坐标转换参数
Source:
Returns:
Type
Promise.<CoordinateConvert>

(async, static) setConvertParams(coordinateConvertParameter) → {CoordinateConvert}

设置坐标转换参数
Parameters:
Name Type Description
coordinateConvertParameter Object 坐标转换参数 (CoordinateConvertParameter类型的Object)
Source:
Returns:
Type
CoordinateConvert