Commit Graph

1499 Commits

Author SHA1 Message Date
Rachel Fenichel
763a06a7ac Use dropdown div for colour field 2019-02-21 13:41:45 -08:00
Rachel Fenichel
91408a3238 Add dropdowndiv file 2019-02-21 13:41:45 -08:00
Mark Gibson
09ce0873a8 Fix hat logic 2019-02-21 14:49:01 +00:00
Andrew n marshall
570eecbff8 Correcting jsdoc tag spacing (PR #2303) 2019-02-20 11:33:16 -08:00
Neil Fraser
471b54bea8 Disable orphaned mutator blocks. (#2304) 2019-02-20 08:59:32 -08:00
Beka Westberg
9dec2da5c5 Movement Updates (#2247)
This is a squash and merge of a large set of changes by @BeksOmega 

* Added functionality to scrolling, dragging, and zooming.

* Fixed incorrect changes to workspaceChanged function.

* Fixed comment.

* Fixed typo.

* Removed scrollbar.set calls from workspace_svg.

* Removed scrollbar.resize() call.

* Added move options to playground.

* Fixed scroll_ calls that replaced scrollbar.set calls.

* Removed this.scrollbar checks.

* Changed zoom so that it always zooms towards the coordinates. Changed isContentBounded_ to be separate from isMovable_ (b/c of the previous change zoomControls had to be added to the bounded check). Fixed scroll_() calls... again.

* Changed procedures so the Highlight definition option is only available if the workspace is moveable.

* Fixed scrollCenter so that it works with flyout toolboxes.

* Fixed zoomToFit so that it works with horizontal flyout toolboxes.

* Fixed Typo.

* Fixed bumping blocks when the workspace is not movable.

* Fixed bumping not working with left and top toolbox positions.

* Re-Added not allowing scrollCenter if the workspace is not movable. Disabled scrollCenter button for this case.

* Cleaned up formatting.

* Fixed bumping... again. Reformatted workspaceChanged a bit.

* Changed blocks to be completely bumped into the workspace.

* Reorganized metrics-getting for workspaceChanged.

* Added bumping workspace comments. Moved event checking.

* Renamed workspaceChanged to bumpObjects.

* Added a bumpObjects developer reminder.

* Added warning to zoomToFit.

* Cleaned up some text.

* Added better inline documentation.

* Fixed up inline docs.

* Cleaned up comments.

* Fixed zoomCenter not actually zooming towards the center.

* Fixed zoomControls error on unmovable bottom-toolbox workspaces

* Fixed programatically placing blocks in an unmovable workspace.

* Removed unnecessary translate call in inject.

* Reversed removal of translate. (apparently it was necessary)

* Cleaned up code in response to first round of reviews.

* Added unit comments to the zoom function.

* Removed bumpObjectsEventChecker. Added BUMP_EVENTS list to Blockly.Events.

* Changed getWorkspaceObjectMetrics call to getBoundingRectangle().

* Fixed utils.mouseToSvg (was causing problems with zoom on wheel if the page was scrolled).

* Fixed zoom when page is scrolled (actually this time). Reverted changes to utils.mouseToSvg.

* Fixed centerOnBlock.

* Added unit docs to translate. Moved setting the grid position to the translate function.

* Added TODO's.
2019-02-18 15:28:51 -08:00
Beka Westberg
be7c242f97 Fixed bubble positioning to work with simple toolboxes (PR #2279)
Merge from BeksOmega/fixes/BubbleSimpleToolbox
2019-02-15 16:25:27 -08:00
Rachel Fenichel
18220da483 Merge pull request #2292 from BeksOmega/fixes/MultipleTrashcans
Fixed multiple trashcans on the same page leaking state.
2019-02-15 16:16:58 -08:00
Rachel Fenichel
90f6832d06 Fix insertion marker flickering on value inputs (PR #2295)
Merge from rachel-fenichel/bugfix/2255
2019-02-15 12:43:45 -08:00
Beka Westberg
772c501ac3 Fixed multiple trashcans on the same page leaking state. 2019-02-12 13:55:37 -08:00
Beka Westberg
863786eb06 Changed for dynamic variables as well. 2019-02-11 15:34:36 -08:00
Beka Westberg
8fff876752 Changed flyout setter/change blocks so the selected variable is the most recently created one. 2019-02-11 15:09:57 -08:00
Rachel Fenichel
d2b68f4d04 Merge pull request #2282 from BeksOmega/fixes/ScrollingOnResize
Fixed Horizontal Scrolling on Window Resize for Simple Toolboxes
2019-02-11 11:19:49 -08:00
Beka Westberg
627c521c29 Fixed flyout scrollbars not being repositioned on window resize. 2019-02-09 20:30:21 -08:00
Beka Westberg
c96330c207 Fixed horizontal scrolling on window resize. 2019-02-09 15:07:22 -08:00
Beka Westberg
b015d67f24 Fixed next blocks not being disabled in flyout. (#2278) 2019-02-08 13:36:08 -08: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
c7b748c4d1 Merge pull request #2270 from alschmiedt/changeStyleNames
Changes colour names
2019-02-06 15:35:59 -08:00
alschmiedt
58c365e377 Changes colour names 2019-02-06 14:24:41 -08:00
alschmiedt
99f4f48321 Fix event description for theme 2019-02-05 13:43:54 -08:00
Rachel Fenichel
108fc346d4 Merge pull request #2246 from BeksOmega/fixes/DisabledDropdowns
Fixed Image Dropdowns on Disabled Blocks not Rendering Correctly.
2019-02-04 14:41:57 -08:00
Neil Fraser
1d3742a3dc Use a real JS array for the connection DB.
Previously “Array.isArray(connectionDB)” was false, even through “connectionDB instanceof Array” was true.
2019-02-01 15:25:19 -08:00
Beka Westberg
2db7055827 Removed render_ call, which was causing fields to calculate their size incorrectly. 2019-01-29 15:18:18 -08:00
Rachel Fenichel
8e6f39175a Ignore insertion markers in getAllBlocks; add accessors for inseriton markers 2019-01-29 11:57:43 -08:00
Beka Westberg
4f51ea222c Changed the trashcan lid to always open towards the workspace. 2019-01-28 18:04:37 -08:00
Rachel Fenichel
8fc4ea19ed Merge pull request #2241 from BeksOmega/fixes/DisabledContentsBlocks
RetrieveDisabled Blocks from the Trashcan
2019-01-28 16:47:53 -08:00
Beka Westberg
999a204dbd Added the ability to drag disabled blocks out of the trashcan flyout. 2019-01-28 16:26:21 -08:00
Beka Westberg
363ff487a4 Changed trashcan and zoom controls to be positioned in the opposite corner of the toolbox. Fixed trashcan hotspot being incorrect. 2019-01-28 15:24:56 -08:00
Rachel Fenichel
b7fc1f8dab Merge pull request #2235 from BeksOmega/feature/FinishedLoading
Added FinishedLoading Event
2019-01-28 10:19:55 -08:00
Beka Westberg
bad1b39502 Changed require's to be in correct lexicographical order. 2019-01-26 07:03:47 -08:00
Beka Westberg
b4e643f22e Fixed Xml goog.require's. Changed Blockly.Events.Ui functions to Blockly.Events.FinishedLoading. 2019-01-25 17:08:30 -08:00
Rachel Fenichel
22f11b937e Update copyright year 2019-01-25 16:45:51 -08:00
Beka Westberg
47cbb3b1b8 Updated blockly_uncompressed file. 2019-01-25 16:11:16 -08:00
Beka Westberg
bb2260fd91 Added a Finished Loading event. 2019-01-25 16:04:02 -08:00
Rachel Fenichel
d0fb99918f Ignore insertion markers when checking remaining capacity 2019-01-25 11:28:51 -08:00
alschmiedt
d747bb080a Access colours using bracket notation 2019-01-19 11:53:09 -08:00
alschmiedt
67147124de Moved theme scripts out of core 2019-01-11 14:39:01 -08:00
alschmiedt
0d78f1dcd5 Fixing compiler error for blockly themes 2019-01-11 14:28:49 -08:00
Rachel Fenichel
c4b2436e05 Merge pull request #2210 from BeksOmega/feature/HorizTrashcanFlyout
Added Displaying Trashcan Flyout Horizontally When Layout is Horizontal
2019-01-11 12:23:02 -08:00
alschmiedt
7941651444 Merge pull request #2184 from alschmiedt/blockly_colours
Blockly Themes
2019-01-11 10:57:57 -08:00
Beka Westberg
7f160bd322 Fixed comments not being recorded in delete event. (#2211) 2019-01-10 14:35:06 -08:00
Beka Westberg
2b05b83c74 Added displaying flyout horizontally when layout is horizontal. 2019-01-10 13:21:14 -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
Beka Westberg
969687ec34 Added flipRtl Support for FieldImages (#2203)
* Added flipRtl support for FieldImages. Added a flipRtl test block.

* Added blockfactory support.

* Fixed JSDoc.
2019-01-10 08:59:35 -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
40a1ae752b Adds support for category styles 2019-01-09 11:18:44 -08:00
Rachel Fenichel
a1127fec7c Merge pull request #2201 from BeksOmega/fixes/BubblePosition
Changed how Bubbles Position Themselves
2019-01-09 10:53:28 -08:00
alschmiedt
bac9a16da0 Adds hat style 2019-01-08 15:13:00 -08:00