Rachel Fenichel
0951b5e613
Update eslintrc for eslint v7, and resolve new lint errors
2020-08-10 15:10:48 -07:00
Monica Kozbial
a9223b0b22
Typo fixes. ( #3769 )
2020-03-25 15:47:27 -07:00
Neil Fraser
4e2f8e6e02
Use SPDX licences.
...
This is a followup to #3127 .
At the time, SPDX licenses were pending approval by Google.
2020-02-11 13:27:20 -08:00
Sam El-Husseini
8475976103
Fix start hats ( #3651 )
2020-01-24 13:02:27 -08:00
Monica Kozbial
fdb1d71e88
Editable field spacing ( #3635 )
...
* Substituting checks for isEditable.
* Add isField checks.
* Add parentheses for casting.
* Update value of isEditable and use for spacing.
* Changing to double equals.
2020-01-23 13:10:33 -08:00
Sam El-Husseini
1661d640d6
Geras inline alignment of rows + max bottom row width ( #3575 )
...
* Add a desired width getter method for input rows. Override in geras to fix the width of the bottom row and statement input to a max width.
2020-01-13 10:40:52 -08:00
Sam El-Husseini
fe555d9021
Rename input connection to connectionModel ( #3571 )
...
* Remove input measurable's connection property and rename references to connectionModel.
2020-01-09 18:09:15 -08:00
Monica Kozbial
26db9167db
Move of render contant START_HAT into ConstantProvider. ( #3563 )
...
* Move of render contant START_HAT into ConstantProvider.
2020-01-07 16:18:05 -08:00
Sam El-Husseini
3d66eab311
[zelos] Output connection position ( #3516 )
...
* Move connection point for output connections to the left and centerline
2019-12-16 14:06:10 -08:00
Sam El-Husseini
adc06cc544
[zelos] Add extra offset for statement input to account for right corner width ( #3508 )
...
* Add additional offset to the statement input in zelos to account for the width of right corner.
* inside corners
2019-12-11 17:00:22 -08:00
Sam El-Husseini
4eb791bd70
[zelos] Add right connection shape element. ( #3488 )
...
* Add right connection shape element
2019-12-05 17:51:39 -08:00
Sam El-Husseini
ee09aafd57
[zelos] Add input outlines on the path object. ( #3410 )
...
* Add input outlines on the path object.
2019-11-07 15:15:49 -08:00
Sam El-Husseini
337cb9c486
Fix path_object inheritance ( #3403 )
...
* Fix path_object inheritance, add zelos path_object
2019-11-05 16:36:30 -08:00
Neil Fraser
22c1eba546
Make warnings an optional module.
2019-11-01 11:52:12 -07:00
Sam El-Husseini
7d174727b0
Fix warnings for code used by blocks ( #3362 )
2019-10-30 08:11:18 -07:00
Sam El-Husseini
942068314f
Accept lowercase alignment ( #3359 )
...
* Accept lowercase alignment
2019-10-29 11:45:30 -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
Sam El-Husseini
06b5bb1945
Might right corner support to common. Making it so there's always a right corner element, square by default. ( #3311 )
2019-10-23 21:58:43 -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
Sam El-Husseini
36524a3b4a
Only add a hat if there's no output connection or previous connection ( #3280 )
...
* Only add a hat if there's no output connection or previous connection
2019-10-17 14:08:06 -05:00
Sam El-Husseini
c1c9121fcc
Fix jsdoc. @return instead of @returns ( #3271 )
...
* Fix jsdoc. @return instead of @returns
2019-10-16 17:01:36 -05:00
alschmiedt
a9420154a2
Update todos so they are no longer in jsdocs ( #3250 ) ( #3257 )
2019-10-15 10:14:39 -07:00
Rachel Fenichel
9ce41598c0
Clean up todos.
2019-10-07 13:25:47 -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
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
Monica Kozbial
a8af9fea21
Move populate for topRow and bottomRow to info ( #3057 )
...
* Move populate for topRow and bottomRow from measurable definition to info.
* Fix local variable and circular dependency.
2019-09-20 13:24:46 -07:00
Sam El-Husseini
8fae0411f7
Check if a type exists before testing instanceof ( #3031 )
...
* Check if a type exists before instance of
2019-09-17 16:28:18 -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
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
Sam El-Husseini
4c8e28c53d
Dynamic output shapes ( #2980 )
...
* Round and triangle dynamic output shapes.
2019-09-06 13:04:01 -07:00
Rachel Fenichel
e35f4d5070
More cleanup.
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
06a882348b
Render round right corners in zelos. ( #2938 )
...
* Render round right corners in zelos.
2019-08-30 18:11:01 -07:00
Rachel Fenichel
4dfb03adbf
Make statement inputs store their actual width. ( #2944 )
...
* Make statement inputs store their actual width.
2019-08-30 17:55:51 -07:00
Rachel Fenichel
bc50143130
Remove special case for spacer after statement
2019-08-29 15:05:09 -07:00
kozbial
25a41fd6ab
Adding drop shadow into statement input height computation.
2019-08-27 17:24:29 -07:00
kozbial
e063ae5a38
Simplify statement input height computation logic.
2019-08-27 16:50:09 -07:00
Rachel Fenichel
9c27b878d7
Move the rest of the measurables into their own folder
2019-08-26 10:25:35 -07:00
Rachel Fenichel
27cd26b264
Add a function to get the shape object of a connection, and use it
2019-08-23 17:34:41 -07:00
Rachel Fenichel
81fc9bf32c
Switch constants to objects
2019-08-23 11:21:30 -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