@@ -11,11 +11,10 @@ import {Util} from './Util';
1111 * @deprecatedclass SuperMap.Bounds
1212 * @category BaseTypes Geometry
1313 * @classdesc 表示边界类实例。使用 bounds 之前需要设置 left,bottom,right,top 四个属性,这些属性的初始值为 null。
14- * @param {number } [left] - 左边界, 注意考虑宽度,理论上小于 right 值。
14+ * @param {number|Array.<number> } [left] - 如果是number,则表示左边界, 注意考虑宽度,理论上小于 right 值。如果是数组,则表示 [left, bottom, right, top] 左下右上组成的数组 。
1515 * @param {number } [bottom] - 下边界。考虑高度,理论上小于 top 值。
1616 * @param {number } [right] - 右边界。
1717 * @param {number } [top] - 上边界。
18- * @param {Array.<number> } [array] - [left, bottom, right, top],如果同时传多个参数,则使用左下右上组成的数组。
1918 * @example
2019 * var bounds = new Bounds();
2120 * bounds.extend(new LonLat(4,5));
@@ -71,7 +70,7 @@ export class Bounds {
7170 * @example
7271 * var bounds1 = new Bounds(-180,-90,180,90);
7372 * var bounds2 = bounds1.clone();
74- * @returns {Bounds } 返回一个克隆的 bounds。
73+ * @returns {Bounds } 克隆后的 bounds。
7574 */
7675 clone ( ) {
7776 return new Bounds ( this . left , this . bottom ,
@@ -164,15 +163,15 @@ export class Bounds {
164163 }
165164 }
166165
167- /**
168- * @function Bounds.prototype.toGeometry
169- * @description 基于当前边界范围创建一个新的多边形对象。
170- * @example
171- * var bounds = new Bounds(-180,-90,100,80);
172- * // Polygon对象
173- * var geo = bounds.toGeometry();
174- * @returns {Polygon } 基于当前 bounds 坐标创建的新的多边形。
175- */
166+ /// **
167+ // * @function Bounds.prototype.toGeometry
168+ // * @description 基于当前边界范围创建一个新的多边形对象。
169+ // * @example
170+ // * var bounds = new Bounds(-180,-90,100,80);
171+ // * // Polygon对象
172+ // * var geo = bounds.toGeometry();
173+ // * @returns {Polygon } 基于当前 bounds 坐标创建的新的多边形。
174+ // */
176175 // toGeometry() {
177176 // return new Polygon([
178177 // new LinearRing([
@@ -204,7 +203,7 @@ export class Bounds {
204203 * var bounds = new Bounds(-180,-90,100,80);
205204 * //height = 170;
206205 * var height = bounds.getHeight();
207- * @returns {float } 返回边界高度 (top 减去 bottom)。
206+ * @returns {float } 边界高度 (top 减去 bottom)。
208207 */
209208 getHeight ( ) {
210209 return ( this . top - this . bottom ) ;
@@ -216,7 +215,7 @@ export class Bounds {
216215 * @example
217216 * var bounds = new Bounds(-180,-90,100,80);
218217 * var size = bounds.getSize();
219- * @returns {Size } 返回边框大小 。
218+ * @returns {Size } 边框大小 。
220219 */
221220 getSize ( ) {
222221 return new Size ( this . getWidth ( ) , this . getHeight ( ) ) ;
@@ -228,7 +227,7 @@ export class Bounds {
228227 * @example
229228 * var bounds = new Bounds(-180,-90,100,80);
230229 * var pixel = bounds.getCenterPixel();
231- * @returns {Pixel } 返回像素格式的当前范围的中心点 。
230+ * @returns {Pixel } 像素格式的当前范围的中心点 。
232231 */
233232 getCenterPixel ( ) {
234233 return new Pixel ( ( this . left + this . right ) / 2 ,
@@ -241,7 +240,7 @@ export class Bounds {
241240 * @example
242241 * var bounds = new Bounds(-180,-90,100,80);
243242 * var lonlat = bounds.getCenterLonLat();
244- * @returns {LonLat } 返回当前地理范围的中心点 。
243+ * @returns {LonLat } 当前地理范围的中心点 。
245244 */
246245 getCenterLonLat ( ) {
247246 if ( ! this . centerLonLat ) {
@@ -260,7 +259,7 @@ export class Bounds {
260259 * var bounds2 = bounds.scale(2);
261260 * @param {float } [ratio=1] - 需要扩大的比例。
262261 * @param {(Pixel|LonLat) } [origin] - 扩大时的基准点,默认为当前 bounds 的中心点。
263- * @returns {Bounds } 返回通过 ratio、origin 计算得到的新的边界范围。
262+ * @returns {Bounds } 通过 ratio、origin 计算得到的新的边界范围。
264263 */
265264 scale ( ratio , origin ) {
266265 ratio = ratio ? ratio : 1 ;
@@ -294,9 +293,9 @@ export class Bounds {
294293 * var bounds1 = new Bounds(-50,-50,40,40);
295294 * //bounds2 是新的 bounds
296295 * var bounds2 = bounds.add(20,10);
297- * @param {float } x - 传入坐标点的 x 坐标。
298- * @param {float } y - 传入坐标点的 y 坐标。
299- * @returns {Bounds } 返回一个新的 bounds,此 bounds 的坐标是由传入的 x,y 参数与当前 bounds 坐标计算所得。
296+ * @param {float } x - 坐标点的 x 坐标。
297+ * @param {float } y - 坐标点的 y 坐标。
298+ * @returns {Bounds } 新的 bounds,此 bounds 的坐标是由传入的 x,y 参数与当前 bounds 坐标计算所得。
300299 */
301300 add ( x , y ) {
302301 if ( ( x == null ) || ( y == null ) ) {
@@ -422,8 +421,8 @@ export class Bounds {
422421 * var bounds = new Bounds(-50,-50,40,40);
423422 * //isContains = true
424423 * var isContains = bounds.contains(40,40,true);
425- * @param {float } x - 传入的 x 坐标值。
426- * @param {float } y - 传入的 y 坐标值。
424+ * @param {float } x - x 坐标值。
425+ * @param {float } y - y 坐标值。
427426 * @param {boolean } [inclusive=true] - 是否包含边界。
428427 * @returns {boolean } 传入的 x,y 坐标是否在当前范围内。
429428 */
@@ -542,8 +541,8 @@ export class Bounds {
542541 * @param {Bounds } bounds - 目标边界。
543542 * @param {boolean } [partial=false] - 目标边界的任意部分都包含在当前边界中则被认为是包含关系。
544543 * 如果设为 false,整个目标边界全部被包含在当前边界范围内。
545- * @param {boolean } [inclusive=true] - 边缘共享被视为包含 。
546- * @returns {boolean } 传入的边界被当前边界包含 。
544+ * @param {boolean } [inclusive=true] - 边缘共享是否被视为包含 。
545+ * @returns {boolean } 传入的边界是否被当前边界包含 。
547546 */
548547 containsBounds ( bounds , partial , inclusive ) {
549548 if ( partial == null ) {
@@ -640,7 +639,7 @@ export class Bounds {
640639 * @example
641640 * var bounds = new Bounds(-180,-90,100,80);
642641 * var obj = bounds.toServerJSONObject();
643- * @returns {Object } 返回 JSON 格式的 Object 对象。
642+ * @returns {Object } JSON 格式的 Object 对象。
644643 */
645644 toServerJSONObject ( ) {
646645 var jsonObject = {
@@ -679,7 +678,7 @@ export class Bounds {
679678 * @param {string } str - 边界字符串,用逗号隔开(e.g. <i>"5,42,10,45"</i>)。
680679 * @param {boolean } [reverseAxisOrder=false] - 是否反转轴顺序。
681680 * 如果设为true,则倒转顺序(bottom,left,top,right),否则按正常轴顺序(left,bottom,right,top)。
682- * @returns {Bounds } 返回给定的字符串创建的新的边界对象 。
681+ * @returns {Bounds } 给定的字符串创建的新的边界对象 。
683682 */
684683 static fromString ( str , reverseAxisOrder ) {
685684 var bounds = str . split ( "," ) ;
@@ -693,7 +692,7 @@ export class Bounds {
693692 * var bounds = Bounds.fromArray([-180,-90,100,80]);
694693 * @param {Array.<float> } bbox - 边界值数组。(e.g. <i>[5,42,10,45]</i>)。
695694 * @param {boolean } [reverseAxisOrder=false] - 是否是反转轴顺序。如果设为true,则倒转顺序(bottom,left,top,right),否则按正常轴顺序(left,bottom,right,top)。
696- * @returns {Bounds } 返回根据传入的数组创建的新的边界对象 。
695+ * @returns {Bounds } 根据传入的数组创建的新的边界对象 。
697696 */
698697 static fromArray ( bbox , reverseAxisOrder ) {
699698 return reverseAxisOrder === true ?
@@ -706,8 +705,8 @@ export class Bounds {
706705 * @description 通过传入的边界大小来创建新的边界。
707706 * @example
708707 * var bounds = Bounds.fromSize(new Size(20,10));
709- * @param {Size } size - 传入的边界大小 。
710- * @returns {Bounds } 返回根据传入的边界大小的创建新的边界 。
708+ * @param {Size } size - 边界大小 。
709+ * @returns {Bounds } 根据传入的边界大小的创建新的边界 。
711710 */
712711 static fromSize ( size ) {
713712 return new Bounds ( 0 ,
0 commit comments