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 = {
|
const ArgumentType = {
|
||||||
|
/**
|
||||||
|
* Numeric value with angle picker
|
||||||
|
*/
|
||||||
ANGLE: 'angle',
|
ANGLE: 'angle',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Boolean value with hexagonal placeholder
|
||||||
|
*/
|
||||||
BOOLEAN: 'Boolean',
|
BOOLEAN: 'Boolean',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Numeric value with color picker
|
||||||
|
*/
|
||||||
COLOR: 'color',
|
COLOR: 'color',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Numeric value with text field
|
||||||
|
*/
|
||||||
NUMBER: 'number',
|
NUMBER: 'number',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* String value with text field
|
||||||
|
*/
|
||||||
STRING: 'string'
|
STRING: 'string'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,31 @@
|
||||||
|
/**
|
||||||
|
* Types of block
|
||||||
|
* @enum {string}
|
||||||
|
*/
|
||||||
const BlockType = {
|
const BlockType = {
|
||||||
|
/**
|
||||||
|
* Boolean reporter with hexagonal shape
|
||||||
|
*/
|
||||||
BOOLEAN: 'Boolean',
|
BOOLEAN: 'Boolean',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Command block
|
||||||
|
*/
|
||||||
COMMAND: 'command',
|
COMMAND: 'command',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specialized command block which may or may not run a child branch
|
||||||
|
*/
|
||||||
CONDITIONAL: 'conditional',
|
CONDITIONAL: 'conditional',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hat block which conditionally starts a block stack
|
||||||
|
*/
|
||||||
HAT: 'hat',
|
HAT: 'hat',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* General reporter with numeric or string value
|
||||||
|
*/
|
||||||
REPORTER: 'reporter'
|
REPORTER: 'reporter'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue