Align constants -> Blockly.constants.ALIGN enum

This commit is contained in:
Rachel Fenichel
2021-02-26 11:12:53 -08:00
parent eab0897b5d
commit 4e31deca2b
7 changed files with 38 additions and 39 deletions

View File

@@ -55,7 +55,7 @@ Blockly.Input = function(type, name, block, connection) {
* Alignment of input's fields (left, right or centre).
* @type {number}
*/
Blockly.Input.prototype.align = Blockly.ALIGN_LEFT;
Blockly.Input.prototype.align = Blockly.constants.ALIGN.LEFT;
/**
* Is the input visible?
@@ -242,8 +242,8 @@ Blockly.Input.prototype.setCheck = function(check) {
/**
* Change the alignment of the connection's field(s).
* @param {number} align One of Blockly.ALIGN_LEFT, ALIGN_CENTRE, ALIGN_RIGHT.
* In RTL mode directions are reversed, and ALIGN_RIGHT aligns to the left.
* @param {number} align One of the values of Blockly.constants.ALIGN.
* In RTL mode directions are reversed, and ALIGN.RIGHT aligns to the left.
* @return {!Blockly.Input} The input being modified (to allow chaining).
*/
Blockly.Input.prototype.setAlign = function(align) {