mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
This constant is used to specify the alignment of an Input, so it should live in the same file as the Input class. I've done this as a separate named export, but it could alternatively be made a static member of Input (i.e., Input.Align with only Input being exported by name). Where mocha tests were referring to Blockly.constants.ALIGN.* without actually requiring Blockly.constants, I have reverted them to refer to Blockly.ALIGN_* instead (pending conversion to named requries). Part of #5073.
34 lines
727 B
JavaScript
34 lines
727 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Blockly constants.
|
|
*/
|
|
'use strict';
|
|
|
|
/**
|
|
* Blockly constants.
|
|
* @namespace Blockly.constants
|
|
*/
|
|
goog.module('Blockly.constants');
|
|
|
|
|
|
/**
|
|
* The language-neutral ID given to the collapsed input.
|
|
* @const {string}
|
|
* @alias Blockly.constants.COLLAPSED_INPUT_NAME
|
|
*/
|
|
const COLLAPSED_INPUT_NAME = '_TEMP_COLLAPSED_INPUT';
|
|
exports.COLLAPSED_INPUT_NAME = COLLAPSED_INPUT_NAME;
|
|
|
|
/**
|
|
* The language-neutral ID given to the collapsed field.
|
|
* @const {string}
|
|
* @alias Blockly.constants.COLLAPSED_FIELD_NAME
|
|
*/
|
|
const COLLAPSED_FIELD_NAME = '_TEMP_COLLAPSED_FIELD';
|
|
exports.COLLAPSED_FIELD_NAME = COLLAPSED_FIELD_NAME;
|