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
Beka Westberg
8f81bbac25
Fixed Filter Capacity not Considering Child Blocks. ( #2155 )
2018-12-06 08:54:26 -08:00
Mehdi Yeganeh
a20af7e413
#1848 Fixed eslint errors
2018-12-05 13:25:52 +03:30
Mehdi Yeganeh
16f2175356
#1848 Fixed throw console warning when deleting workspace comments
2018-12-05 00:53:22 +03:30
Rachel Fenichel
f5ea0f665e
Tweak insertion marker snap radii
2018-12-03 11:35:28 -08:00
Beka Westberg
1b2ec7230c
Added randomness to bumping per Issue #2011
2018-12-02 12:34:34 -08:00
Rachel Fenichel
1553096b48
Check if both sides of a potential connection match, not just one
2018-11-30 14:46:09 -08:00
Rachel Fenichel
b606bc5ec6
Don't distinguish between first statement connection and others
2018-11-30 14:36:37 -08:00
Rachel Fenichel
5938c6df3b
Fix #2131
2018-11-30 14:34:14 -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
Rachel Fenichel
6169a6488f
Merge pull request #2139 from rachel-fenichel/bugfix/2107
...
Bugfix/2107
2018-11-27 13:57:10 -08:00
alschmiedt
76538e67e7
Merge pull request #2133 from alschmiedt/single_code_block
...
Generate Code For Single Block
2018-11-27 13:38:20 -08:00
Rachel Fenichel
2ad4333d12
Look up variable by name if not found by ID
2018-11-27 13:02:33 -08:00
alschmiedt
f06bee4eca
Fixes pull request comments
2018-11-27 09:55:15 -08:00
Abby Schmiedt
26a4774b35
Adds option to generate code for a single block
2018-11-21 09:00:29 -08:00
Rachel Fenichel
ff901a7773
Comment cleanup; remove logs
2018-11-19 16:26:18 -08:00
Rachel Fenichel
ef23820b83
Add private annotation
2018-11-19 13:00:10 -08:00
Rachel Fenichel
a8b0b90c6f
Add warning for default case in canConnectToPrevious_
2018-11-19 12:55:04 -08:00
Rachel Fenichel
d70e89d1e0
Cleanup
2018-11-19 12:51:18 -08:00
Rachel Fenichel
991b70410e
Minor cleanup
2018-11-19 12:44:43 -08:00
Rachel Fenichel
53d8ac8b0b
Prefer inserting to wrapping for c-shape blocks
2018-11-19 11:16:03 -08:00
Rachel Fenichel
17823db4df
Fix problem with connecting a statement into a stack, but not a c-shape block
2018-11-14 11:22:57 -08:00
Rachel Fenichel
e794b6883f
Make insertion markers match the size of the source block
2018-11-14 11:19:17 -08:00
Rachel Fenichel
9aa54ac487
Make replaceable child blocks opaque
2018-11-14 11:19:17 -08:00
Rachel Fenichel
4c133e9ecd
Highlight and unhilight the closest connection
2018-11-14 11:19:17 -08:00
Rachel Fenichel
565569fa61
Fix horizontal insertion markers for blockly
2018-11-14 11:19:17 -08:00
Rachel Fenichel
dfc1f0094b
Mark the dragged connection manager deprecated
2018-11-14 11:18:32 -08:00
Rachel Fenichel
df888eb32d
Remove setOpacity and getOpacity
2018-11-14 11:18:32 -08:00
Rachel Fenichel
7d775908b9
Add insertion markers.
2018-11-14 11:18:32 -08:00
Tianwei Du
f3bb0d827e
fix #2090 ( #2109 )
2018-11-07 12:42:42 -08:00
Neil Fraser
280fa51597
Don’t move immovable blocks in workspace cleanup. ( #2104 )
2018-11-05 09:38:24 -08:00
RoboErikG
ecc555b7f3
Fix bad xml element when generating next node ( #2098 )
...
Fixes #2096
We were creating a text node to wrap any block connected to
next when we should have just been attaching the generated dom.
2018-10-31 09:52:59 -07:00
Rachel Fenichel
3aa0cac22b
Fix setting tooltips in init
2018-10-17 13:27:32 -07:00
Neil Fraser
db0dbc69ee
Update todos and requires.
2018-10-16 11:34:10 -07:00
Neil Fraser
c7e391c71a
Fix lint error.
2018-10-16 11:34:10 -07:00
Neil Fraser
aa09ad9175
Line wrap at 80.
2018-10-16 11:34:10 -07:00
Neil Fraser
f196816f62
Move DOMParser and XMLSerializer to Xml.utils
2018-10-16 11:34:10 -07:00
Neil Fraser
c74830231c
Minor corrections
2018-10-16 11:34:10 -07:00
Neil Fraser
dddb94aedd
Fix circular dependency.
2018-10-16 11:34:10 -07:00
Neil Fraser
e62bb1af73
Remove all calls to goog.dom.createDom
...
All XML node cereations are now centralized.
2018-10-16 11:34:10 -07:00
Neil Fraser
7531b323b2
Honour reductions to MAX_UNDO ( #2078 )
...
* Honour reductions to MAX_UNDO
If MAX_UNDO is reduced, we now throw away the extra records in the stack, as opposed to just not growing it anymore.
* shift != unshift
Apparently I need a new brain.
* Ensure MAX_UNDO isn’t negative.
2018-10-12 06:34:23 -07:00
Rachel Fenichel
870e95a255
Fix inconsistent return type warning
2018-09-25 14:22:12 -07:00
Neil Fraser
59a4db61b2
Remove .children access
...
Not supported in node.js’ xmldom package.
2018-09-20 20:34:07 -07:00
Rachel Fenichel
5d8d30935e
Restructure isConnectionAllowed to match scratch blocks
2018-09-14 13:58:31 -07:00
Rachel Fenichel
4581c06625
Merge pull request #2052 from rachel-fenichel/bugfix/get_all_blocks
...
Calls to getAllBlocks should pass a value for _ordered_
2018-09-13 16:17:10 -07:00
Rachel Fenichel
6092e4c517
Calls to getAllBlocks should pass a value for _ordered_
2018-09-13 16:06:19 -07:00
Rachel Fenichel
a0e90627f7
Add some functions for insertion markers
2018-09-13 15:55:49 -07:00
Rachel Fenichel
7dadc4d4ba
Merge pull request #2047 from rachel-fenichel/cleanup/field_properties
...
Mark some field properties protected
2018-09-13 12:03:55 -07:00
Rachel Fenichel
6a5c90f4b9
Merge pull request #2046 from duzc2/_fix_image_click
...
fix #1887 #2034
2018-09-13 11:09:02 -07:00