@@ -142,7 +142,7 @@ export class Bounds {
142142 * var str2 = bounds.toBBOX(1);
143143 * //str2 = "-1.8,-1.1,1.6,1.4";
144144 * var str2 = bounds.toBBOX(1,true);
145- * @param {integer } [decimal=6] - 边界方位坐标的有效数字个数。
145+ * @param {number } [decimal=6] - 边界方位坐标的有效数字个数。
146146 * @param {boolean } [reverseAxisOrder=false] - 是否是反转轴顺序。
147147 * 如果设为true,则倒转顺序(bottom,left,top,right),否则按正常轴顺序(left,bottom,right,top)。
148148 * @returns {string } 边界对象的字符串表示形式,如:"5,42,10,45"。
@@ -190,7 +190,7 @@ export class Bounds {
190190 * var bounds = new SuperMap.Bounds(-180,-90,100,80);
191191 * //width = 280;
192192 * var width = bounds.getWidth();
193- * @returns {float } 获取当前 bounds 的宽度(right 减去 left)。
193+ * @returns {number } 获取当前 bounds 的宽度(right 减去 left)。
194194 */
195195 getWidth ( ) {
196196 return ( this . right - this . left ) ;
@@ -203,7 +203,7 @@ export class Bounds {
203203 * var bounds = new SuperMap.Bounds(-180,-90,100,80);
204204 * //height = 170;
205205 * var height = bounds.getHeight();
206- * @returns {float } 返回边界高度(top 减去 bottom)。
206+ * @returns {number } 返回边界高度(top 减去 bottom)。
207207 */
208208 getHeight ( ) {
209209 return ( this . top - this . bottom ) ;
@@ -257,7 +257,7 @@ export class Bounds {
257257 * @example
258258 * var bounds = new SuperMap.Bounds(-50,-50,40,40);
259259 * var bounds2 = bounds.scale(2);
260- * @param {float } [ratio=1] - 需要扩大的比例。
260+ * @param {number } [ratio=1] - 需要扩大的比例。
261261 * @param {(SuperMap.Pixel|SuperMap.LonLat) } [origin] - 扩大时的基准点,默认为当前 bounds 的中心点。
262262 * @returns {SuperMap.Bounds } 返回通过 ratio、origin 计算得到的新的边界范围。
263263 */
@@ -293,8 +293,8 @@ export class Bounds {
293293 * var bounds1 = new SuperMap.Bounds(-50,-50,40,40);
294294 * //bounds2 是新的 bounds
295295 * var bounds2 = bounds.add(20,10);
296- * @param {float } x - 传入坐标点的 x 坐标。
297- * @param {float } y - 传入坐标点的 y 坐标。
296+ * @param {number } x - 传入坐标点的 x 坐标。
297+ * @param {number } y - 传入坐标点的 y 坐标。
298298 * @returns {SuperMap.Bounds } 返回一个新的 bounds,此 bounds 的坐标是由传入的 x,y 参数与当前 bounds 坐标计算所得。
299299 */
300300 add ( x , y ) {
@@ -421,8 +421,8 @@ export class Bounds {
421421 * var bounds = new SuperMap.Bounds(-50,-50,40,40);
422422 * //isContains = true
423423 * var isContains = bounds.contains(40,40,true);
424- * @param {float } x - 传入的 x 坐标值。
425- * @param {float } y - 传入的 y 坐标值。
424+ * @param {number } x - 传入的 x 坐标值。
425+ * @param {number } y - 传入的 y 坐标值。
426426 * @param {boolean } [inclusive=true] - 是否包含边界。
427427 * @returns {boolean } 传入的 x,y 坐标是否在当前范围内。
428428 */
@@ -593,8 +593,8 @@ export class Bounds {
593593 * var newBounds = bounds.wrapDateLine(maxExtent);
594594 * @param {SuperMap.Bounds } maxExtent - 最大的边界范围(一般是全球范围)。
595595 * @param {Object } options - 可选选项参数。
596- * @param {float } [options.leftTolerance=0] - left 允许的误差。
597- * @param {float } [options.rightTolerance=0] - right 允许的误差。
596+ * @param {number } [options.leftTolerance=0] - left 允许的误差。
597+ * @param {number } [options.rightTolerance=0] - right 允许的误差。
598598 * @returns {SuperMap.Bounds } 克隆当前边界。如果当前边界完全在最大范围之外此函数则返回一个不同值的边界,
599599 * 若落在最大边界的左边,则给当前的bounds值加上最大范围的宽度,即向右移动,
600600 * 若落在右边,则向左移动,即给当前的bounds值加上负的最大范围的宽度。
@@ -690,7 +690,7 @@ export class Bounds {
690690 * @description 通过边界框数组创建 Bounds。
691691 * @example
692692 * var bounds = SuperMap.Bounds.fromArray([-180,-90,100,80]);
693- * @param {Array.<float > } bbox - 边界值数组。(e.g. <i>[5,42,10,45]</i>)。
693+ * @param {Array.<number > } bbox - 边界值数组。(e.g. <i>[5,42,10,45]</i>)。
694694 * @param {boolean } [reverseAxisOrder=false] - 是否是反转轴顺序。如果设为true,则倒转顺序(bottom,left,top,right),否则按正常轴顺序(left,bottom,right,top)。
695695 * @returns {SuperMap.Bounds } 返回根据传入的数组创建的新的边界对象。
696696 */
0 commit comments