File size: 1,534 Bytes
76cc654 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
/**
* 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/strings).
* @const
*/
OUTPUT_SHAPE_ROUND: 2,
/**
* ENUM for output shape: squared (arrays).
* @const
*/
OUTPUT_SHAPE_SQUARE: 3,
/**
* ENUM for output shape: leaf (vectors).
* @const
*/
OUTPUT_SHAPE_LEAF: 4,
/**
* ENUM for output shape: plus (objects/classes or class instances).
* @const
*/
OUTPUT_SHAPE_PLUS: 5,
/**
* ENUM for output shape: octagonal (Scratch targets).
* @const
*/
OUTPUT_SHAPE_OCTAGONAL: 6,
/**
* ENUM for output shape: bumped (BigInt).
* @const
*/
OUTPUT_SHAPE_BUMPED: 7,
/**
* ENUM for output shape: indented (Symbols).
* @const
*/
OUTPUT_SHAPE_INDENTED: 8,
/**
* ENUM for output shape: scrapped (Maps).
* @const
*/
OUTPUT_SHAPE_SCRAPPED: 9,
/**
* ENUM for output shape: arrow (Sets).
* @const
*/
OUTPUT_SHAPE_ARROW: 10,
/**
* ENUM for output shape: ticket (Dates).
* @const
*/
OUTPUT_SHAPE_TICKET: 11,
};
module.exports = ScratchBlocksConstants;
|