Rachel Fenichel
5ef08fc0d4
Switch to using the style object in the path object.
2019-10-30 14:47:23 -07:00
Rachel Fenichel
ca1e49bf8e
Fields now go through blockSvg for colours.
2019-10-30 14:43:42 -07:00
Rachel Fenichel
ecef3467fd
Colourer/path_object cleanup
2019-10-30 14:42:13 -07:00
Rachel Fenichel
6f520335ea
Cleanup of colouring code, and move it into path_object.
2019-10-30 14:42:13 -07:00
Rachel Fenichel
85c4db5a10
First pass at colourers
2019-10-30 14:42:13 -07:00
Sam El-Husseini
942068314f
Accept lowercase alignment ( #3359 )
...
* Accept lowercase alignment
2019-10-29 11:45:30 -07:00
Sam El-Husseini
e7752e6ea2
Dummy input right alignment ( #3342 )
...
* Fix dummy input alignment in geras.
2019-10-28 16:20:54 -07:00
Sam El-Husseini
100da4a66c
Revert "Wrap dummy inputs in a measurable so that it can be aligned appropriately. ( #3337 )"
...
This reverts commit 7fc733b81f .
2019-10-24 21:53:30 -07:00
Sam El-Husseini
a79ea1652a
[Zelos] Fix dynamic connection shape size ( #3324 )
...
* Better reporting of connection height and width for dynamic connections
2019-10-25 00:33:53 -04:00
Sam El-Husseini
7fc733b81f
Wrap dummy inputs in a measurable so that it can be aligned appropriately. ( #3337 )
2019-10-24 21:42:44 -04:00
Rachel Fenichel
d11b7228c2
Fix #3228 by only using the dark path offset in Geras.
2019-10-23 11:06:12 -07:00
Sam El-Husseini
42552b5b22
Fix 6 warnings related to rendering. ( #3292 )
2019-10-21 17:49:38 -04:00
Rachel Fenichel
9ce41598c0
Clean up todos.
2019-10-07 13:25:47 -07:00
Rachel Fenichel
05e9cf126a
Signs are hard.
2019-10-03 10:47:27 -07:00
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
6b78417ede
Bound element position based on height of the row
2019-10-02 11:27:26 -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
21c5698e98
Moving DARK_PATH_OFFSET to geras only. ( #3066 )
...
* Moving DARK_PATH_OFFSET to geras.
* Adding compressed and uncompressed files.
* Adding missing newlines
* Reverting commit of messages.
* Reverting compressed files.
* Updating compressed files.
* Addressing PR comments.
* Removing unecessary input overrides.
2019-09-23 15:57:59 -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
Sam El-Husseini
57c8e3dded
Rendering: Fix setting the path in RTL ( #3047 )
...
* Fix setting the RTL path.
2019-09-19 14:44:44 -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
e96acf476c
Add dark path offset in geras info.
2019-09-05 16:55:56 -07:00
Rachel Fenichel
261040a6fd
Add jsdoc
2019-09-05 16:19:51 -07:00
Rachel Fenichel
e48c60fee6
Use strings instead of arrays for highlight paths
2019-09-05 15:48:46 -07:00
Rachel Fenichel
da6d28b818
More cleanup
2019-09-05 11:16:27 -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
Sam El-Husseini
96378f9183
Fix slight offset in statement input connection X location. ( #2953 )
...
* Fix slight offset in statement input connection X location.
2019-09-03 14:38:10 -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
70eb19ae09
Get rid of unnecessary cast
2019-08-23 15:58:24 -07:00
Rachel Fenichel
a9189f01bc
Fix up annotations
2019-08-23 14:52:42 -07:00
Rachel Fenichel
a57f4691c7
Move highlighting code into geras.
2019-08-23 14:43:56 -07:00
Rachel Fenichel
a81c633be7
Centralize references to Blockly.blockRendering.constants
2019-08-22 18:08:59 -07:00
Rachel Fenichel
d19614439f
Fix icons in geras
2019-08-21 14:35:36 -07:00
Rachel Fenichel
e86c852936
Split render_info
2019-08-21 14:33:43 -07:00