mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
clang-format core/renderers/zelos/measurables/rows.js
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user