/** * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * String representing the variable type of scalar variables. * This string, for use in differentiating between types of variables, * indicates that the current variable is a scalar variable. */ const SCALAR_VARIABLE_TYPE = '' export { SCALAR_VARIABLE_TYPE } /** * String representing the variable type of broadcast message blocks. * This string, for use in differentiating between types of variables, * indicates that the current variable is a broadcast message. */ const BROADCAST_MESSAGE_VARIABLE_TYPE = 'broadcast_msg' export { BROADCAST_MESSAGE_VARIABLE_TYPE } /** * String representing the variable type of list blocks. * This string, for use in differentiating between types of variables, * indicates that the current variable is a list. */ const LIST_VARIABLE_TYPE = 'list' export { LIST_VARIABLE_TYPE } /* * The type of all procedure definition blocks. * @const {string} */ const PROCEDURES_DEFINITION_BLOCK_TYPE = 'procedures_definition' export { PROCEDURES_DEFINITION_BLOCK_TYPE } /* * The type of all procedure declaration blocks. * @const {string} */ const PROCEDURES_DECLARATION_BLOCK_TYPE = 'procedures_declaration' export { PROCEDURES_DECLARATION_BLOCK_TYPE } /** * The type of all procedure prototype blocks. */ const PROCEDURES_PROTOTYPE_BLOCK_TYPE = 'procedures_prototype' export { PROCEDURES_PROTOTYPE_BLOCK_TYPE } /** * The type of all procedure call blocks. */ const PROCEDURES_CALL_BLOCK_TYPE = 'procedures_call' export { PROCEDURES_CALL_BLOCK_TYPE } const OUTPUT_SHAPE_HEXAGONAL = 1 export { OUTPUT_SHAPE_HEXAGONAL } const OUTPUT_SHAPE_ROUND = 2 export { OUTPUT_SHAPE_ROUND } /** * String for use in the dropdown created in field_variable, * specifically for broadcast messages. * This string indicates that this option in the dropdown is 'New message...' * and if selected, should trigger the prompt to create a new message. */ const NEW_BROADCAST_MESSAGE_ID = 'NEW_BROADCAST_MESSAGE_ID' export { NEW_BROADCAST_MESSAGE_ID } /** * Enum defining supported Scratch block themes. * Scratch block themes can customize the shape of blocks independently of their color. */ export enum ScratchBlocksTheme { CLASSIC = 'classic', CAT_BLOCKS = 'catblocks', }