mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
clang-format core/utils/rect.js
This commit is contained in:
@@ -62,7 +62,8 @@ Rect.prototype.contains = function(x, y) {
|
||||
* @return {boolean} Whether this rectangle intersects the provided rectangle.
|
||||
*/
|
||||
Rect.prototype.intersects = function(other) {
|
||||
return !(this.left > other.right || this.right < other.left ||
|
||||
return !(
|
||||
this.left > other.right || this.right < other.left ||
|
||||
this.top > other.bottom || this.bottom < other.top);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user