mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Add JSDoc tags for ArgumentType & BlockType
This commit is contained in:
parent
1049e90a8f
commit
d3352ac54d
2 changed files with 46 additions and 0 deletions
|
@ -1,8 +1,31 @@
|
|||
/**
|
||||
* Block argument types
|
||||
* @enum {string}
|
||||
*/
|
||||
const ArgumentType = {
|
||||
/**
|
||||
* Numeric value with angle picker
|
||||
*/
|
||||
ANGLE: 'angle',
|
||||
|
||||
/**
|
||||
* Boolean value with hexagonal placeholder
|
||||
*/
|
||||
BOOLEAN: 'Boolean',
|
||||
|
||||
/**
|
||||
* Numeric value with color picker
|
||||
*/
|
||||
COLOR: 'color',
|
||||
|
||||
/**
|
||||
* Numeric value with text field
|
||||
*/
|
||||
NUMBER: 'number',
|
||||
|
||||
/**
|
||||
* String value with text field
|
||||
*/
|
||||
STRING: 'string'
|
||||
};
|
||||
|
||||
|
|
|
@ -1,8 +1,31 @@
|
|||
/**
|
||||
* Types of block
|
||||
* @enum {string}
|
||||
*/
|
||||
const BlockType = {
|
||||
/**
|
||||
* Boolean reporter with hexagonal shape
|
||||
*/
|
||||
BOOLEAN: 'Boolean',
|
||||
|
||||
/**
|
||||
* Command block
|
||||
*/
|
||||
COMMAND: 'command',
|
||||
|
||||
/**
|
||||
* Specialized command block which may or may not run a child branch
|
||||
*/
|
||||
CONDITIONAL: 'conditional',
|
||||
|
||||
/**
|
||||
* Hat block which conditionally starts a block stack
|
||||
*/
|
||||
HAT: 'hat',
|
||||
|
||||
/**
|
||||
* General reporter with numeric or string value
|
||||
*/
|
||||
REPORTER: 'reporter'
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue