This commit is contained in:
Rachel Fenichel
2019-07-29 15:26:53 -07:00
parent 9ce8282568
commit bed30dfa68
4 changed files with 2 additions and 9 deletions

View File

@@ -82,8 +82,7 @@ Blockly.blockRendering.Highlighter.prototype.drawTopCorner = function(row) {
this.steps_.push(this.notchPaths_.pathLeft);
this.steps_.push('h', (this.RTL_ ? -0.5 : 0.5));
} else if (elem.type === 'hat') {
this.steps_.push(
this.startPaths_.path(this.RTL_));
this.steps_.push(this.startPaths_.path(this.RTL_));
} else if (elem.isSpacer()) {
this.steps_.push('h', elem.width - this.highlightOffset_);
}
@@ -126,7 +125,6 @@ Blockly.blockRendering.Highlighter.prototype.drawStatementInput = function(row)
var steps =
Blockly.utils.svgPaths.moveTo(row.statementEdge, row.yPos + row.height) +
this.insideCornerPaths_.pathBottom(this.RTL_);
this.steps_.push(steps);
}
};

View File

@@ -245,7 +245,6 @@ Blockly.blockRendering.constants.INSIDE_CORNERS = (function() {
Blockly.utils.svgPaths.point(radius, radius));
return {
//width: width,
height: radius,
pathTop: innerTopLeftCorner,
pathBottom: innerBottomLeftCorner
@@ -267,8 +266,6 @@ Blockly.blockRendering.constants.OUTSIDE_CORNERS = (function() {
Blockly.utils.svgPaths.point(-radius, -radius));
return {
// width: width,
// height: height,
topLeft: topLeft,
bottomLeft: bottomLeft
};

View File

@@ -19,7 +19,7 @@
*/
/**
* @fileoverview Methods for graphically rendering a block as SVG.
* @fileoverview Objects for rendering highlights on blocks.
* @author fenichel@google.com (Rachel Fenichel)
*/

View File

@@ -351,7 +351,6 @@ goog.inherits(Blockly.blockRendering.Hat, Blockly.blockRendering.Measurable);
Blockly.blockRendering.SquareCorner = function() {
Blockly.blockRendering.SquareCorner.superClass_.constructor.call(this);
this.type = 'square corner';
// TODO: Is this the right height?
this.height = Blockly.blockRendering.constants.NOTCH.height;
this.width = Blockly.blockRendering.constants.NO_PADDING;
@@ -370,7 +369,6 @@ Blockly.blockRendering.RoundCorner = function() {
this.width = Blockly.blockRendering.constants.CORNER_RADIUS;
// The rounded corner extends into the next row by 4 so we only take the
// height that is aligned with this row.
// TODO: Investigate.
this.height = Blockly.blockRendering.constants.NOTCH.height;
};