Neil Fraser
b46a4fe286
Bring our license format up to date ( #3127 )
...
* Google changed from an Inc to an LLC.
This happened back in 2017 but we didn’t notice. Officially we should update files from Inc to LLC when they are changed as part of regular edits, but this is a nightmare to remember for the next decade.
* Remove project description/titles from licenses
This is no longer part of Google’s header requirements. Our existing descriptions were useless (“Visual Blocks Editor”) or grossly obselete (“Visual Blocks Language”).
* License no longer requires URL.
* Fix license regexps.
2019-10-02 14:46:56 -07:00
Rachel Fenichel
ecf69d851d
Use row height for spacer height.
2019-10-01 16:41:58 -07:00
Neil Fraser
872aa45fae
More straightening out of dependencies.
2019-09-27 10:48:14 -07:00
Monica Kozbial
a14ac351b5
Adding checks for whether to add elem spacer on row ends ( #3060 )
...
* Adding checks for whether elem spacer shouldbe added to start and end of row.
* Fix eslint and add package visibility.
2019-09-20 14:20:14 -07:00
Rachel Fenichel
77185906d8
Renderers define which paths a block has. ( #2981 )
...
* Move render elements into a path object.
2019-09-16 12:13:32 -07:00
Sam El-Husseini
e339ae26bc
Move the rendering object to live on the workspace_svg ( #3016 )
...
* Move the rendering object onto the workspace allowing the various workspaces to have different renderers.
2019-09-13 14:20:34 -07:00
Sam El-Husseini
fc420b7037
Support for registering renderers and switching between them ( #3013 )
...
* Added support for registering renderers and for choosing which renderer the workspace wants to use.
2019-09-13 10:30:20 -07:00
kozbial
90a10e5f44
Fix logic in shouldStartNewRow_ and between row padding in geras.
2019-09-12 11:34:08 -07:00
Sam El-Husseini
8ab51c8639
Remove closure base file dependency ( #2976 )
...
* Trim down closure's base dependency even further by removing the dependency on closure's base file.
2019-09-11 17:30:51 -07:00
Rachel Fenichel
4b17234cba
Alphabetize requires
2019-09-10 13:01:13 -07:00
Rachel Fenichel
2ffe71f0a0
Remove references to dark path offset; fix highlights while dragging'
2019-09-05 11:59:28 -07:00
Rachel Fenichel
87e7be9619
Cleanup
2019-09-04 17:19:31 -07:00
Rachel Fenichel
581705cc7b
Create a Renderer base class and extend it for each type of renderer
2019-09-04 17:16:08 -07:00
Rachel Fenichel
e35f4d5070
More cleanup.
2019-09-04 16:26:53 -07:00
Rachel Fenichel
b4ac23df6c
Remove useless variable.
2019-09-04 16:26:53 -07:00
Rachel Fenichel
135ab7993e
Use ascender/descender naming for top and bottom rows; tweak position calculation.
2019-09-04 16:26:53 -07:00
Sam El-Husseini
189c561f49
Rendering type checker ( #2950 )
...
* Convert all rendering types to use a type enum flag.
2019-09-03 14:39:02 -07:00
Rachel Fenichel
d3fea64f99
Fix width on dummy row.
2019-08-30 17:50:06 -07:00
Rachel Fenichel
bc50143130
Remove special case for spacer after statement
2019-08-29 15:05:09 -07:00
Rachel Fenichel
a81c633be7
Centralize references to Blockly.blockRendering.constants
2019-08-22 18:08:59 -07:00
Rachel Fenichel
dd9fdf908f
Slightly less fragile
2019-08-21 15:24:37 -07:00
Rachel Fenichel
e86c852936
Split render_info
2019-08-21 14:33:43 -07:00