alschmiedt
1034ba835c
Adds check for a targetConnection
2019-04-02 14:42:41 -07:00
Neil Fraser
e9de083361
Fix @return JSDocs.
2019-03-29 15:24:37 -07:00
Neil Fraser
405b1e4e78
Lint issues found while debugging.
2019-03-27 15:47:29 -07:00
Andrew n marshall
f05eed64eb
Check against healing child shadow blocks.
...
Fixes #2227 , healing values.
Also applies to shadow next blocks.
Added a playground test block group with a shadow statement.
2019-02-07 13:15:41 -08:00
alschmiedt
58c365e377
Changes colour names
2019-02-06 14:24:41 -08:00
alschmiedt
d747bb080a
Access colours using bracket notation
2019-01-19 11:53:09 -08:00
alschmiedt
af35702f3e
Final fixes
2019-01-10 12:04:47 -08:00
alschmiedt
9bfb30bcf2
Fixing review comments
2019-01-10 09:13:02 -08:00
alschmiedt
caf664db04
Small fixes
2019-01-09 15:38:30 -08:00
alschmiedt
55a46f8299
Fixes error thrown for style defined inline
2019-01-09 13:44:22 -08:00
alschmiedt
bac9a16da0
Adds hat style
2019-01-08 15:13:00 -08:00
alschmiedt
f480b1ff79
Changes Blockly style to be Blockly theme.
2019-01-08 11:40:57 -08:00
alschmiedt
1f742bf83d
Fixing review comments
2019-01-07 10:38:49 -08:00
alschmiedt
1b3955d9d6
Fixing review comments
2018-12-21 07:52:50 -08:00
alschmiedt
ebe8492d3d
Add error message for when style is not set
2018-12-20 09:04:45 -08:00
alschmiedt
9afe497b7e
Fixes jsdocs
2018-12-19 08:45:20 -08:00
alschmiedt
b9efa72161
Small cleanup
2018-12-18 14:05:44 -08:00
alschmiedt
2481274406
Small cleanup
2018-12-18 13:36:23 -08:00
alschmiedt
be78838335
Allows user to define style name using variables in json
2018-12-18 10:50:49 -08:00
alschmiedt
4918da9538
Adds ability to provide a hue value for primary colour
2018-12-12 11:39:23 -08:00
alschmiedt
56c2e5fc31
Initial commit for adding a style
2018-12-11 13:22:25 -08:00
BeksOmega
1c4ba38300
Added Max Instances Property to Workspace Options ( #2130 )
...
* Added Max Instances property to Blocks
* eslint cleanup
* eslint cleanup 2
* Moved maxInstances property from block to workspace (as a map of block type to max instances). isDuplicate() changed to correctly handle siblings/branches.
* eslint cleanup
* Changed checking types to map. Added hasBlockLimits. Fixed Nits.
* Added limit_instances test block. eslint fixes.
* fixup! Added limit_instances test block. eslint fixes.
* Changed sorting objects to a private static function of the workspace. Fixed nits. Undeleted .eslintrc
* Reverted .gitignore file.
* Added getBlockTypeCounts() to utils. Added isCapacityAvailable() to workspace. Changed clipboard to save typeCountsMap rather than object.
2018-11-27 16:34:21 -08:00
Neil Fraser
db0dbc69ee
Update todos and requires.
2018-10-16 11:34:10 -07:00
Neil Fraser
aa09ad9175
Line wrap at 80.
2018-10-16 11:34:10 -07:00
Rachel Fenichel
870e95a255
Fix inconsistent return type warning
2018-09-25 14:22:12 -07:00
Rachel Fenichel
a0e90627f7
Add some functions for insertion markers
2018-09-13 15:55:49 -07:00
Andrew n marshall
b8a1873f01
Converting bad block warning into an error.
2018-08-31 12:42:38 -07:00
Rachel Fenichel
b89487e332
Ignore whether parent has multiple inputs
2018-08-06 11:18:00 -07:00
Rachel Fenichel
a8d52903e2
update comment with todo
2018-08-06 10:29:12 -07:00
Rachel Fenichel
b65491e656
Heal rows when unplugging, and add tests
2018-08-03 13:54:29 -07:00
Neil Fraser
dce60fd152
Replace ReferenceError with Error.
...
Change to 4-space indentation rather than aligning with parent structure.
2018-07-11 12:20:02 -07:00
Neil Fraser
06d90c9b34
Remove goog.array
2018-07-11 12:20:02 -07:00
Neil Fraser
03bf9f5e71
Remove goog.string
2018-07-11 12:20:02 -07:00
Neil Fraser
3909bd420a
Remove all goog.asserts and goog.isXxx
...
First step to reducing Closure’s footprint.
2018-07-11 12:20:02 -07:00
Mark Gibson
709d31b729
Fix case of duplicate var (i)
2018-06-19 11:00:24 +01:00
Rachel Fenichel
f623004b3a
Small changes
2018-05-16 12:52:12 -07:00
Rachel Fenichel
a8767ee6c9
Add a referencesVariables function to field
2018-04-25 15:15:05 -07:00
Andrew n marshall
2bfff4a335
Warn if jsonInit() receives a colour attribute without a value. ( #1795 )
...
* Warn if jsonInit() receives a colour attribute without a value.
* Extract colour init code into function.
* Adding block type name to prior warnings.
2018-04-18 13:35:30 -07:00
Neil Fraser
662d79443f
Add 'ordered' option to descendant getting functions. ( #1786 )
2018-04-17 11:41:03 -07:00
Johnny Yang
6c2d63300d
mark properties @protected instead of @private so they can be used by Blockly.BlockSvg
2018-04-16 01:33:04 +10:00
Andrew n marshall
e9d8e00a55
Making all blocks use the MSG colour values. ( #1749 )
...
* Making all blocks use the MSG colour values.
* Deprecating Blockly.Constants.Lists.HUE and similar constants.
* Removing deprecated Blockly.Blocks.lists.HUE constants.
* Allowing message references in the Block.setColour() parameter.
* Adding checking of older constants, ensuring they are not overwritten.
2018-04-09 17:37:47 -07:00
Rachel Fenichel
52e0241f66
Add argsIgnorePattern to the eslintrc
2018-04-06 13:29:22 -07:00
Rachel Fenichel
6d83b9bc28
Add keyword-spacing rule to eslint
2018-03-19 13:10:29 -07:00
Rachel Fenichel
4c9b602523
Move event classes into separate files, and update requires accordingly
2018-02-27 17:47:33 -08:00
Andrew n marshall
9cd6b1ec24
Print a warning if JSON color value is invalid. ( #1639 )
...
Ignores the invalid color, defaulting to black.
2018-02-21 13:55:32 -08:00
Mark Gibson
54f0e06e21
Customising field types using a register of fields #1584 ( #1594 )
...
Implement #1584 - Fields now registered by their JSON type name, allowing new custom fields and overriding of the standard fields. Replaces the manual switch statement for loading fields from JSON block definitions.
2018-02-14 10:14:59 -08:00
Rachel Fenichel
5e0928e4f3
Break circular dependency
2018-02-13 10:44:07 -08:00
Andrew n marshall
dc7783ee01
Warn conflicts with Blockly.Generator.prototype ( #1603 )
...
Console warning if block prototypeName conflicts with Blockly.Generator.prototype.
2018-02-12 13:44:54 -08:00
Mark Gibson
2308ae8c22
Remove underscore from fromJson_
2018-02-07 18:18:35 +00:00
Mark Gibson
d40ef474ae
See issue #1486 - adds fromJson_ fn to every Blockly.Field, removing Block.newField*FromJson_ helpers
2018-02-07 12:22:26 +00:00