mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-26 06:10:26 -04:00
These tests convert some extension metadata into scratch-blocks JSON and XML, then verify that the JSON and XML are as expected.
27 lines
654 B
JavaScript
27 lines
654 B
JavaScript
/**
|
|
* These constants are copied from scratch-blocks/core/constants.js
|
|
* @TODO find a way to require() these straight from scratch-blocks... maybe make a scratch-blocks/dist/constants.js?
|
|
* @readonly
|
|
* @enum {int}
|
|
*/
|
|
const ScratchBlocksConstants = {
|
|
/**
|
|
* ENUM for output shape: hexagonal (booleans/predicates).
|
|
* @const
|
|
*/
|
|
OUTPUT_SHAPE_HEXAGONAL: 1,
|
|
|
|
/**
|
|
* ENUM for output shape: rounded (numbers).
|
|
* @const
|
|
*/
|
|
OUTPUT_SHAPE_ROUND: 2,
|
|
|
|
/**
|
|
* ENUM for output shape: squared (any/all values; strings).
|
|
* @const
|
|
*/
|
|
OUTPUT_SHAPE_SQUARE: 3
|
|
};
|
|
|
|
module.exports = ScratchBlocksConstants;
|