Commit Graph

3259 Commits

Author SHA1 Message Date
Beka Westberg
168ee80b05 Removed console log. 2019-02-26 16:37:56 -08:00
Beka Westberg
69718f2fd4 Removed accessing private flyout.width_ variable. 2019-02-26 16:33:18 -08:00
Beka Westberg
a0aa84d861 Changed absolute metrics to avoid simple toolboxes. 2019-02-23 14:34:26 -08:00
Rachel Fenichel
d7e47c66b2 Merge pull request #2286 from BeksOmega/fixes/AddHideChaffToDocument
Fixes Block Input Sticking to the Screen When Navigated Away
2019-02-22 14:19:11 -08:00
Rachel Fenichel
351202d7c5 Merge pull request #2306 from BeksOmega/fixes/ScrollConstants
Added Scroll deltaMode Multiplier Constants
2019-02-22 14:18:15 -08:00
Bluefox
e84a740d3d Fix error by init of dropdown in case the value is "" (#2308)
I have following dropdown options

```
[
    ["no matter", ""]
    ["Update", "true"]
    ["Command", "false"]
]
```
In case my value is "" the text is not filled with "no matter" by the initial draw and the empty selector is shown. I expect the text "no matter"

This PR fixes that
2019-02-22 10:02:14 -08:00
Beka Westberg
7e3bff2552 Readded the toolbox click subscriber. Added preventing propagation to the toolbox click subscriber. Added clearing touch identifier to the document click subscriber. 2019-02-21 14:57:19 -08:00
alschmiedt
c0ab30b8e9 Merge pull request #2305 from jollytoad/bugfix/2302-fix-hat
Fix hat logic
2019-02-21 10:48:02 -08:00
Beka Westberg
4e7e712549 Added scroll delta mode constants. 2019-02-21 07:35:44 -08:00
Beka Westberg
0f86d6b69c Fixes block input sticking to the screen when navigated away. 2019-02-21 06:57:20 -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
translatewiki.net
c2447e7e8b Localisation updates from https://translatewiki.net. 2019-02-18 07:57:21 +01:00
Rachel Fenichel
ab5b734e5a Update version number 2019-02-15 17:07:09 -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
translatewiki.net
61e86b84d3 Localisation updates from https://translatewiki.net. 2019-02-14 09:05:52 +01:00
alschmiedt
ec01c83847 Merge pull request #2287 from BeksOmega/feature/FlyoutSetterDefault
Changed New Variable to Default Setter to That Variable
2019-02-13 11:18:36 -08:00
Beka Westberg
772c501ac3 Fixed multiple trashcans on the same page leaking state. 2019-02-12 13:55:37 -08:00
Rachel Fenichel
442479581a Merge pull request #2288 from rachel-fenichel/rebuild_02_11_19
Rebuild 02 11 19
2019-02-11 16:01:40 -08:00
Rachel Fenichel
3167da688f Add new message 2019-02-11 15:56:01 -08:00
Rachel Fenichel
59dc52c103 Rebuild 2019-02-11 15:55:44 -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
1dd1180c96 Merge pull request #2284 from rachel-fenichel/update_dependencies
Update dependencies
2019-02-11 13:16:21 -08:00
Rachel Fenichel
d13ee11d18 Update dependencies 2019-02-11 11:53:24 -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
Rachel Fenichel
077bd963a4 Merge pull request #2281 from BeksOmega/fixes/FlyoutScrollbarAnchors
Fixed Flyout Scrollbars Not Being Repositioned on Window Resize
2019-02-11 09:43:15 -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
4603082d73 Check against healing child shadow blocks. Fix #2227 (PR#2271)
Merge from AnmAtAnm/fix2227-heal-shadows
2019-02-07 13:33:13 -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
Andrew n marshall
221a194424 Update to latest Closure Template jars, recompile (PR#2263)
Merged from google/SoyUpdate
2019-02-07 10:29:06 -08:00
Andrew n marshall
b61ce94e8d Added a Test Block for a Dynamic Dropdown (PR#2252)
Merged from BeksOmega/tests/DynamicDropdown
2019-02-07 10:26:33 -08:00
Andrew n marshall
114171ada8 language-neutral text -> language-neutral id 2019-02-07 10:22:36 -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
Deniz Susman
eb5bf10911 Typo fix in code comment (#2269)
"independent" instead of "independant".
2019-02-06 13:00:28 -08:00
Neil Fraser
e01f7865d2 Update to latest Closure Template jars, recompile.
There was a small chance that the existing Soy jar files contained a denial of service vulnerability.  Not that this affects Blockly in any way.
https://buganizer.corp.google.com/issues/123937301
2019-02-05 22:12:34 -08:00
Beka Westberg
74e5c49e0d Fixed comments and defaults. 2019-02-05 14:32:40 -08:00
alschmiedt
4eee0d6393 Merge pull request #2259 from alschmiedt/fix_theme_event
Fix event description for theme
2019-02-05 14:17:49 -08:00
alschmiedt
99f4f48321 Fix event description for theme 2019-02-05 13:43:54 -08:00
Andrew n marshall
463e42e375 New label and title case 2019-02-05 09:13:53 -08:00
Andrew n marshall
16a8de1b35 Update procedure callers on var rename (PR#2251)
Merge from TangHu2018/develop
2019-02-05 09:08:08 -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
Rachel Fenichel
38bcb87139 Merge pull request #2254 from google/connection-array
Speed up the connection DB
2019-02-04 09:12:22 -08:00