Classify blocks by category (#638)

* boilerplate for category attribute

* style tweaks for Travis

* I read up on valid-jsdoc

* add to horizontal as well

* categories for vertical/event

* categories for vertical/data

* categories for vertical/control

* categories for vertical/looks

* categories for vertical/more

* categories for vertical/motion

* categories for vertical/operators

* categories for vertical/pen

* categories for vertical/senising

* rename Blockly.Categories.sounds to Blockly.Categories.sound

* add categories for vertical/sound

* categories for horizontal/control

* categories for horizontal/event

* categories for horizontal/wedo -- based off of color instead of adding wedo category
This commit is contained in:
Airhogs777 2016-09-30 14:42:39 -06:00 committed by Tim Mickel
parent d929da38c5
commit d7745b12fd
17 changed files with 195 additions and 2 deletions

View file

@ -244,3 +244,20 @@ Blockly.STACK_GLOW_RADIUS = 1.3;
* @const
*/
Blockly.REPLACEMENT_GLOW_RADIUS = 2;
/**
* ENUM for categories.
* @const
*/
Blockly.Categories = {
"motion": "motion",
"looks": "looks",
"sound": "sounds",
"pen": "pen",
"data": "data",
"event": "events",
"control": "control",
"sensing": "sensing",
"operators": "operators",
"more": "more"
};