Commit Graph

1424 Commits

Author SHA1 Message Date
Beka Westberg
96e754cf36 Updated Comments. 2018-12-19 18:10:57 -08:00
Beka Westberg
9ee7319ac5 Trashcan/Zoom Anchored to Top when Toolbox is on Bottom. 2018-12-19 10:26:07 -08:00
Sandeep Dubey
b5146036e1 Fix #1632: Added alt attribute to the field image. (#2178)
* Added alt for field image.

* Removed lint issues.
2018-12-18 13:38:53 -08:00
Beka Westberg
dcae85dd4f Added maxTrashcanContents Property to Workspace Options (#2183)
* Added maxTrashcanContents property to workspace options.

* Changed default with trashcan to 32.
2018-12-18 13:22:43 -08:00
Rachel Fenichel
468df8749f Merge pull request #2176 from BeksOmega/fixes/2175
Changed Warnings to Interact Properly with Collapsing/Expanding.
2018-12-18 11:09:49 -08:00
Rachel Fenichel
b3ef429d74 Merge pull request #2180 from epicfaace/feature/scroll
Scroll very long context menus
2018-12-18 09:21:33 -08:00
Ashwin Ramaswami
2cc3a8b3d9 Scroll very long context menus 2018-12-18 08:41:14 -05:00
Beka Westberg
8241068630 Updated JSDoc. 2018-12-17 15:29:25 -08:00
Rachel Fenichel
261a067a31 Merge pull request #2157 from BeksOmega/feature/TrashcanContents
Added flyout to trashcan to "get back" deleted blocks.`
2018-12-17 15:23:17 -08:00
Beka Westberg
44df2d4680 Changed parent blocks to display "Collapsed blocks contain warnings." instead of having warnings "bubble up" from children. Added message to msg/messages.js . 2018-12-17 14:54:56 -08:00
Beka Westberg
f16cdf912d Changed Warnings to Interact Properly with Collapsing/Expanding. 2018-12-15 15:52:34 -08:00
Rachel Fenichel
e182f43d12 Disable insertion markers for the December 2018 release 2018-12-14 10:57:39 -08:00
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
Beka Westberg
77ee4c8e22 Reverted to storing xml as text. 2018-12-12 15:20:12 -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
Beka Westberg
39b7f95827 Renamed var block to node in cleanBlockXML_. 2018-12-12 06:50:35 -08:00
Beka Westberg
5f2d5df321 Fixed nits. Changed contents to store XML. Added removing IDs from all descendants. Removed deleteNext. 2018-12-11 16:46:24 -08:00
Beka Westberg
31daf37922 Fixed lid angle not being set property through events. 2018-12-10 16:43:18 -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
15b34f7e73 Added flyout to trashcan to "get back" deleted blocks.` 2018-12-07 10:44:24 -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