Sam El-Husseini
8151b94c2c
Add output shape on a block. Add squared shape. ( #3558 )
...
* Add output shape on the block. Add squared shape.
2020-01-07 14:10:51 -08:00
alschmiedt
4ce67bb108
Fix moving cursor when block mutates ( #3535 )
...
* Fix moving cursor when block mutates
2020-01-02 15:12:06 -08:00
Neil Fraser
a15d9611d0
Add missing requires.
2019-11-12 13:15:06 -08:00
Rachel Fenichel
a038bfde94
Merge pull request #3395 from BeksOmega/fixes/EqualsDynamicChecks
...
Fixed logic_compare type checks for disposed blocks
2019-11-07 15:10:47 -08:00
Sam El-Husseini
43224afbf7
Move parseBlockColour into Blockly.utils ( #3399 )
...
* Move parseBlockColour into utils and add missing require.
2019-11-04 22:39:18 -08:00
Beka Westberg
1ce97d1c50
Added checking if the block is disposed before trying to reconnect in logic_compare block.
2019-11-04 14:41:45 -08:00
Neil Fraser
123f436e04
Add parens around inline assignments ( #3381 )
2019-10-31 15:17:35 -07:00
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
7e84dcd3c4
Remove colourSecondary/tertiary from block.
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
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
alschmiedt
cbf867f441
Add keyboard navigation support for multiple workspaces ( #3352 )
...
* Add keyboard navigation support for multiple workspaces
2019-10-28 12:53:51 -07:00
Sam El-Husseini
759875a6c0
Resolve remaining compiler type warnings ( #3334 )
...
* Resolve remaining compiler warnings with inconsistent types.
2019-10-25 19:07:17 -04:00
Sam El-Husseini
d387841db2
Resolve remaining compiler warnings with visibility issues ( #3335 )
2019-10-24 19:13:51 -04:00
Sam El-Husseini
bfe62f98ca
Dispose makes the types we use inconsistent. Suppress checkTypes in dispose. ( #3336 )
2019-10-24 15:47:42 -04:00
Sam El-Husseini
52bef4463c
Fix warnings related to connections. ( #3306 )
...
* Fix warnings related to connections.
2019-10-23 17:56:52 -04:00
Sam El-Husseini
90ad0789f6
Fix 11 warnings related to variables and variable_model. ( #3278 )
...
* Fix 10 warnings related to variables and variable_model.
2019-10-22 14:26:59 -04:00
Sam El-Husseini
526528354f
Fix 10 warnings related to visibility ( #3275 )
2019-10-17 11:46:57 -05:00
alschmiedt
cf04a9529b
Fix compilier warnings for keyboard nav ( #3196 )
...
* Fix compilier warnings for keyboard nav
2019-10-08 11:34:39 -07:00
Sam El-Husseini
80aac249ea
Make bumpNeighbours public. ( #3156 )
2019-10-03 19:31:55 -07:00
Sam El-Husseini
d0772ad496
Fix compiler warnings related to fields. ( #3144 )
...
* Fix compiler warnings related to fields.
2019-10-03 15:58:46 -07:00
Sam El-Husseini
7839512f0e
When collapsed, toString was referencing text_. Using getText instead. ( #3150 )
2019-10-03 15:26:41 -07:00
Sam El-Husseini
fba98fca5b
Move the dropdown field into the dropdown div. ( #3122 )
...
* Move the dropdown field into the dropdown div.
2019-10-03 14:35:28 -07:00
Sam El-Husseini
735a72c20a
mutation / compose fn annotations ( #3149 )
...
* Add compose / decompose type annotations.
2019-10-03 14:25:07 -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
Beka Westberg
afbb2cca1e
Moved all database related code out of headless and into rendered.
2019-09-27 18:00:06 -07:00
Neil Fraser
4ed3295ad9
Make generator an optional module ( #3105 )
2019-09-27 10:47:10 -07:00
Sam El-Husseini
870824bc3e
Workspace theme ( #3093 )
...
* Move the theme object so it's on the workspace.
* Add support for subscribing UI elements to theme component styles and changes.
2019-09-26 16:52:17 -07:00
Neil Fraser
ddb04a3bc2
Partial code review of nav ( #3091 )
...
* Partial code review of nav
Had a few minutes free.
* Move getTopStackBlock to block
This is a generally useful function.
2019-09-26 10:19:40 -07:00
Rachel Fenichel
269f0dc381
Enable eslint rule spaced-comment
...
Fix up all remaining violations and turn the rule on.
2019-09-25 16:04:05 -07:00
Monica Kozbial
e1e9513e86
Disconnect child block always for block.dispose(/* healStack */ true) ( #3073 )
...
* Disconnecting child block even if it cannot be connected to parent block.
* Bump disconnected child block.
* Added method for behavior on failed connection and updated expected behavior of unplug in unit tests.
* Removing obsolete TODO and calling new helper method in tests.
2019-09-25 10:47:29 -07:00
Neil Fraser
7653785ae6
Add missing require for utils.colour
...
Pushed without review since it’s activily breaking users (bug report filed from Blockly Games).
2019-09-21 08:40:56 -07:00
Beka Westberg
9e5df6216a
Fixed comment ownership. ( #2923 )
...
* Moved comment icons to use a model-based system. The block holds the model of the comment, and the comment icon holds a reference to it.
* Reorganized the setVisible function.
* Changed how xml.js serializes and deserializes comments.
2019-09-20 13:16:07 -07:00
Neil Fraser
a1e3973499
Make block comments an optional module. ( #3053 )
...
Measured as a 5 KB *increase* in code size, but that's because some other commit just landed between my tests. It's like running down an up escalator.
2019-09-19 14:53:28 -07:00
Neil Fraser
84a814cda1
Make mutator an optional module. ( #3048 )
2019-09-19 11:39:55 -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
Neil Fraser
5650fe51a2
Typos.
2019-09-12 18:24:48 -07:00
Neil Fraser
e43e19d19a
Remove three functions deprecated in 2015
...
We’ve had four years of console warnings, and this next release is known to be breaking. Each is trivial to fix in code.
2019-09-12 18:04:45 -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
alschmiedt
7bba4fa59c
Moves the cursor to correct location when block is deleted ( #2887 )
...
* Moves the cursor to correct location when block is deleted
* Moves cursor on block mutation
2019-08-21 16:33:16 -07:00
Beka Westberg
0872d022e1
Changed utils.fields -> fieldRegistry. Also removed useless tooltip requires.
2019-08-16 09:57:28 -07:00
Beka Westberg
cdc90f4059
Refactored field utilities.
2019-08-16 09:57:27 -07:00
Sam El-Husseini
174fe53516
Minor jsdoc issue ( #2826 )
...
The JavaScript closure compiler barfs at this. No such thing as JSDOC @throw.
2019-08-14 14:40:54 -07:00
Beka Westberg
654467e9ac
Added disposed = false properties to fields, connections, and blocks. Changed applicable unit tests from isNotOk -> isFalse.
2019-08-07 07:17:41 -07:00
Beka Westberg
6f03634730
Moved disposed into finally block.
2019-08-07 07:11:17 -07:00
Beka Westberg
057cee51f8
Added disposed property to blocks (for use in unit tests).
2019-08-07 07:07:30 -07:00
Beka Westberg
8921fa96a9
Removed redundant connection disposal code from block.
2019-08-07 07:07:30 -07:00