Commit Graph

1407 Commits

Author SHA1 Message Date
alschmiedt
91cc05abf3 Merge pull request #2168 from alschmiedt/procedure_events
Groups events fired during field input change
2018-12-13 14:55:45 -08:00
alschmiedt
4bd21c5128 Added todo 2018-12-13 14:39:27 -08:00
alschmiedt
aae15f01f4 Groups events fired during field input change 2018-12-13 12:52:55 -08:00
RoboErikG
e49d07dd16 Propagate the event group when enforcing bounds on blocks (#2163)
Fixes #1653

Makes the bounds checker created in inject correctly set the event group
before moving blocks in bounds.

When a workspace can't scroll the inject method sets up an event listener
to bump blocks back into the visible bounds when dropped off the edge. The
event group wasn't being used, though, causing the move to be a separate
undo step. When undone, this would get you stuck in a loop where the
workspace would keep pulling it back into the visible range.
2018-12-12 13:03:25 -08:00
Ashwin Ramaswami
8422f931f1 Handle promise rejection for sound.play() in preload (#2162) 2018-12-10 15:25:21 -08:00
Rachel Fenichel
c9411dfa33 Merge pull request #2159 from mehdi-yeganeh/develop
#172, Fixed [Edge, IE] Zoom control mouseover is not clipped
2018-12-10 11:01:28 -08:00
Mehdi Yeganeh
fc47878f2a #172, Fixed [Edge, IE] Zoom control mouseover is not clipped 2018-12-08 16:37:03 +03:30
Mehdi Yeganeh
56d5f166de #172, Fixed [Edge, IE] Zoom control mouseover is not clipped 2018-12-08 16:16:59 +03:30
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