* @function Bounds.prototype.getWidth * @description 获取 bounds 的宽度。 * @example * var bounds = new Bounds(-180,-90,100,80); * //width = 280; * var width = bounds.getWidth(); * @returns {number} 获取当前 bounds 的宽度(right 减去 left)。
()
| 193 | * @returns {number} 获取当前 bounds 的宽度(right 减去 left)。 |
| 194 | */ |
| 195 | getWidth() { |
| 196 | return (this.right - this.left); |
| 197 | } |
| 198 | |
| 199 | /** |
| 200 | * @function Bounds.prototype.getHeight |
no outgoing calls
no test coverage detected