Migrate core/renderers/zelos/measurables/row_elements.js named requires

This commit is contained in:
kozbial
2021-08-17 11:51:33 -07:00
committed by Monica Kozbial
parent d37df416e1
commit b69800623b

View File

@@ -13,30 +13,30 @@
goog.module('Blockly.zelos.RightConnectionShape');
goog.module.declareLegacyNamespace();
goog.require('Blockly.blockRendering.Measurable');
goog.require('Blockly.blockRendering.Types');
goog.require('Blockly.utils.object');
goog.requireType('Blockly.blockRendering.ConstantProvider');
/* eslint-disable-next-line no-unused-vars */
const ConstantProvider = goog.requireType('Blockly.blockRendering.ConstantProvider');
const Measurable = goog.require('Blockly.blockRendering.Measurable');
const Types = goog.require('Blockly.blockRendering.Types');
const object = goog.require('Blockly.utils.object');
/**
* An object containing information about the space a right connection shape
* takes up during rendering.
* @param {!Blockly.blockRendering.ConstantProvider} constants The rendering
* @param {!ConstantProvider} constants The rendering
* constants provider.
* @package
* @constructor
* @extends {Blockly.blockRendering.Measurable}
* @extends {Measurable}
*/
const RightConnectionShape = function(constants) {
RightConnectionShape.superClass_.constructor.call(this, constants);
this.type |= Blockly.blockRendering.Types.getType('RIGHT_CONNECTION');
this.type |= Types.getType('RIGHT_CONNECTION');
// Size is dynamic
this.height = 0;
this.width = 0;
};
Blockly.utils.object.inherits(RightConnectionShape,
Blockly.blockRendering.Measurable);
object.inherits(RightConnectionShape,
Measurable);
exports = RightConnectionShape;