mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Renderers define which paths a block has. (#2981)
* Move render elements into a path object.
This commit is contained in:
committed by
Sam El-Husseini
parent
e05e26ab45
commit
77185906d8
@@ -278,7 +278,9 @@ Blockly.blockRendering.Debug.prototype.drawRenderedRow = function(row, cursorY,
|
||||
Blockly.blockRendering.Debug.prototype.drawRowWithElements = function(row, cursorY, isRtl) {
|
||||
for (var i = 0, elem; (elem = row.elements[i]); i++) {
|
||||
if (Blockly.blockRendering.Types.isSpacer(elem)) {
|
||||
this.drawSpacerElem(elem, row.height, isRtl);
|
||||
this.drawSpacerElem(
|
||||
/** @type {Blockly.blockRendering.InRowSpacer} */ (elem),
|
||||
row.height, isRtl);
|
||||
} else {
|
||||
this.drawRenderedElem(elem, isRtl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user