Commit graph

26 commits

Author SHA1 Message Date
Andy O'Neill
ffcd546474 feat: add quaternary color for selected dropdowns 2023-03-02 13:46:07 -05:00
Rachel Fenichel
ab5d4e7b9d Lint in block definitions 2018-05-02 15:58:36 -07:00
TheBrokenRail
b2ab08dc87 Fix Horizontal 2017-01-06 16:21:05 -05:00
Tim Mickel
2d48a260ed Provide default toolbox XML ()
* Provide default toolboxes

* Add Eric's effect blocks to default toolbox
2016-10-13 17:05:25 -04:00
Airhogs777
d7745b12fd Classify blocks by category ()
* 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
2016-09-30 16:42:39 -04:00
Rachel Fenichel
2f4bc8a0b1 lint fixes 2016-05-24 14:17:43 -07:00
Tim Mickel
99a2d9a549 Implement all WeDo blocks, new icons and assets
* Update all assets from Carl

* Update when-broadcast-received and dropdown sizes

* Update icon menu sizing

* Update padding on drop-down div

* Update WeDo and event blocks; defaults

* Update multi_playground and vertical_playground

* Recompile with CSS updates

* Updating default icon reference for wedo_motorspeed
2016-04-26 10:49:52 -04:00
Rodrigo Queiro
0ea1a4152d Add Apache 2.0 license header to new files
Files that were forked off Blockly (eg block_render_svg_horizontal.js)
remain marked as Copyright Google, whereas new files are Copyright MIT.
2016-04-25 15:34:22 +02:00
Tim Mickel
cf6725ba4c Implement drop-down menus and icon picker field ()
* Icon menu and drop-down stubs

* Recompile 4/15

* Fix stubs to draw shadow block for drop-down

* Fix rendering of shadow for icon menu

* Add arrow to dropdown button

* Add drop-down buttons to rest of examples

* Implementation of drop-down div including positioning

* Drop-downs take colours from the blocks

* Fix scaled secondary position of drop-downs

* Fix arrow positioning for RTL

* Use SVG parentNode for sizing dropdown

* Use transform for drop-down positioning

* Add basic DropDownDiv hide

* Add animation-in to dropdown

* More subtle drop-down animation and shadow

* Add icon menu example

* Use options style of Blockly FieldImage for drop-down

* Add default value for iconmenu

* Add example hover, active states for iconmenu buttons

* Update dropdown_icon example

* Implement icon-menu value handling and default value

* Add updating the parent block image field to dropdown

* Drop-down animates out; add hooks to hide for various Blockly happenings

* Add pointer cursor for drop-down icons

* Improve documentation for drop-downs and minor refactor

* Factor out getSrcForValue in iconmenu

* Blocks take on the icon of their icon-menu

* Add basic accessibility properties, similar to closure

* Remove extra drop-down example; update playgrounds

* Remove unnecessary colour overrides

* Add onHide, colour changing, fix references in dropdowndiv

* Flip arrow when the drop-down is rendered above

* Hide the icon menu drop-down on second tap of button

* Add preventDefault to button ontouchstart

* Updates to drop-down from Carl

* Add icon-menu placeholders and a crazy demo

* Fix naming to normalize (drop-down, DropDown)

* Add license header
2016-04-21 15:33:28 -04:00
Tim Mickel
8cba76df19 Fix multi-playground and add block with text field to playgrounds ()
* Fix multi-playground for new blocks

* Add "broadcast text" block for string field example
2016-04-13 16:24:47 -04:00
Andrew Sliwinski
1ee1bec223 Remove nextStatement from 'stop' block. Resolves GH-180 () 2016-04-11 12:02:22 -04:00
Andrew Sliwinski
c1942bdc7b Initial mockup of LEGO WeDo blocks ()
Initial mockup of wedo blocks
2016-04-08 08:50:09 -04:00
Tim Mickel
be46c44762 Add icon flip property to green flag and controls 2016-03-03 17:32:35 -05:00
Tim Mickel
4c55db755d Add secondary and tertiary colours in block spec 2016-03-01 15:30:59 -05:00
Tim Mickel
b0a6f29ccf Add colour library and primary colours for each block 2016-03-01 15:30:59 -05:00
Tim Mickel
c5ba79633b Consistent naming of input_statements for substacks 2016-03-01 13:25:25 -05:00
Rachel Fenichel
9adb8bcbe6 Correct type of say block input. 2016-02-29 12:44:47 -08:00
Ray Schamp
9defd1ae79 Merge pull request from rschamp/feature/input-rendering
Match string and number inputs to spec
2016-02-23 17:48:11 -05:00
Ray Schamp
8b24be0dc9 Fix say block icon path
À la 
2016-02-23 17:35:11 -05:00
Ray Schamp
b9ea043dfe Add sample say block to horizontal playground 2016-02-23 16:59:54 -05:00
Tim Mickel
05fe6b543c Change blocks_horizontal icon path to be relative to injected media path 2016-02-18 18:28:34 -05:00
Andrew Sliwinski
d4a364e2b5 WIP horizontal block rendering 2016-01-28 20:30:35 -05:00
Andrew Sliwinski
461aac0a3d WIP block rendering 2016-01-28 16:58:42 -05:00
Andrew Sliwinski
dcf2be4fa3 Initial generators 2016-01-28 15:12:30 -05:00
Andrew Sliwinski
914ad369c3 WIP horizontal rendering 2016-01-27 15:54:48 -05:00
Andrew Sliwinski
df8955089f WIP on horizontal block rendering 2016-01-27 14:12:37 -05:00