clang-format core/renderers/zelos/measurables/rows.js

This commit is contained in:
kozbial
2021-08-17 09:39:25 -07:00
committed by Monica Kozbial
parent 297f2a0b60
commit 26802bcb7f
2 changed files with 6 additions and 8 deletions

View File

@@ -33,8 +33,7 @@ const object = goog.require('Blockly.utils.object');
const BottomRow = function(constants) {
BottomRow.superClass_.constructor.call(this, constants);
};
object.inherits(BottomRow,
BaseBottomRow);
object.inherits(BottomRow, BaseBottomRow);
/**
* @override
@@ -57,7 +56,7 @@ BottomRow.prototype.hasLeftSquareCorner = function(block) {
*/
BottomRow.prototype.hasRightSquareCorner = function(block) {
return !!block.outputConnection && !block.statementInputCount &&
!block.nextConnection;
!block.nextConnection;
};
exports = BottomRow;

View File

@@ -35,8 +35,7 @@ const object = goog.require('Blockly.utils.object');
const TopRow = function(constants) {
TopRow.superClass_.constructor.call(this, constants);
};
object.inherits(TopRow,
BaseTopRow);
object.inherits(TopRow, BaseTopRow);
/**
* @override
@@ -50,8 +49,8 @@ TopRow.prototype.endsWithElemSpacer = function() {
* @override
*/
TopRow.prototype.hasLeftSquareCorner = function(block) {
const hasHat = (block.hat ?
block.hat === 'cap' : this.constants_.ADD_START_HATS) &&
const hasHat =
(block.hat ? block.hat === 'cap' : this.constants_.ADD_START_HATS) &&
!block.outputConnection && !block.previousConnection;
return !!block.outputConnection || hasHat;
};
@@ -62,7 +61,7 @@ TopRow.prototype.hasLeftSquareCorner = function(block) {
*/
TopRow.prototype.hasRightSquareCorner = function(block) {
return !!block.outputConnection && !block.statementInputCount &&
!block.nextConnection;
!block.nextConnection;
};
exports = TopRow;