mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
chore: Fix no-inferrable-types lint rule violations. (#6372)
This commit is contained in:
@@ -222,13 +222,13 @@ export class ConstantProvider {
|
||||
* ``setFontConstants_`` to be the height of the text based on the font
|
||||
* used.
|
||||
*/
|
||||
FIELD_TEXT_HEIGHT: number = -1; // Dynamically set.
|
||||
FIELD_TEXT_HEIGHT = -1; // Dynamically set.
|
||||
|
||||
/**
|
||||
* Text baseline. This constant is dynamically set in ``setFontConstants_``
|
||||
* to be the baseline of the text based on the font used.
|
||||
*/
|
||||
FIELD_TEXT_BASELINE: number = -1; // Dynamically set.
|
||||
FIELD_TEXT_BASELINE = -1; // Dynamically set.
|
||||
|
||||
/** A field's border rect corner radius. */
|
||||
FIELD_BORDER_RECT_RADIUS = 4;
|
||||
|
||||
@@ -27,9 +27,9 @@ import {Types} from './types.js';
|
||||
* @alias Blockly.blockRendering.Measurable
|
||||
*/
|
||||
export class Measurable {
|
||||
width: number = 0;
|
||||
width = 0;
|
||||
|
||||
height: number = 0;
|
||||
height = 0;
|
||||
type: number;
|
||||
xPos = 0;
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ export class InputConnection extends Connection {
|
||||
connectedBlock: BlockSvg|null;
|
||||
connectedBlockWidth: number;
|
||||
connectedBlockHeight: number;
|
||||
connectionOffsetX: number = 0;
|
||||
connectionOffsetY: number = 0;
|
||||
connectionOffsetX = 0;
|
||||
connectionOffsetY = 0;
|
||||
|
||||
/**
|
||||
* @param constants The rendering constants provider.
|
||||
|
||||
Reference in New Issue
Block a user