Files
blockly/core/renderers/zelos/measurables/row_elements.js
Aaron Dodson 1647a3299a fix: Move @alias onto classes instead of constructors (#6003)
* fix: Move @alias onto classes instead of constructors

* fix: Fix JSDoc for constructors.
2022-03-16 15:48:32 -07:00

47 lines
1.2 KiB
JavaScript

/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Zelos specific objects representing elements in a row of a
* rendered block.
*/
/**
* Zelos specific objects representing elements in a row of a
* rendered block.
* @class
*/
goog.module('Blockly.zelos.RightConnectionShape');
/* 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');
/**
* An object containing information about the space a right connection shape
* takes up during rendering.
* @extends {Measurable}
* @alias Blockly.zelos.RightConnectionShape
*/
class RightConnectionShape extends Measurable {
/**
* @param {!ConstantProvider} constants The rendering
* constants provider.
* @package
*/
constructor(constants) {
super(constants);
this.type |= Types.getType('RIGHT_CONNECTION');
// Size is dynamic
this.height = 0;
this.width = 0;
}
}
exports.RightConnectionShape = RightConnectionShape;