Commit graph

75 commits

Author SHA1 Message Date
Andrew Sliwinski
5b34893292
Revert "Throw Errors instead of using goog.asserts" 2018-08-22 15:29:43 -04:00
Rachel Fenichel
733ff2012a Move isRecyclable into scratchblocksutils 2018-08-16 17:02:55 -07:00
Rachel Fenichel
c88b1f8d2a Throw Errors instead of using goog.asserts 2018-07-24 16:21:15 -07:00
Paul Kaplan
ef17916c32 Make sure to push gaps for status button labels 2018-07-10 16:47:27 -04:00
Eric Rosenbaum
7484c2fb6a Add flyout extension category header with status button 2018-06-27 16:14:45 -04:00
Rachel Fenichel
efcb456424 Require spaces around infix ops 2018-06-21 10:03:37 -04:00
Eric Rosenbaum
2dd0e7ea55 Style fixes 2018-06-14 16:36:54 -04:00
Eric Rosenbaum
e1f02aa68d Add extension status button 2018-06-13 17:34:36 -04:00
chrisgarrity
5cb1651e56 Clarifications and consistency
*  removed all the generated files (<locale>.json, <locale>.js) except for ‘en’ versions and added them to git ignore.
* updated cleanup.sh to use our messages.
* added validation check to fail if any translations include newlines
* skip generating js files other than ‘en’ as we don’t use them
* Revised messages.js to use _single_ quoted strings instead of double (consistent with Blockly - if we need to import more strings), and switch the validations to check for single not double quotes.
* additional small changes for simplicity and ergonomics

Not handling category menu at this time as it’s managed differently in scratch-gui.
2018-06-13 10:50:20 -04:00
chrisgarrity
ceacff64be Add flag to not recycle flyout blocks when switching languages
Fixes 
2018-06-08 17:56:47 -04:00
Karishma Chadha
0969a0dda5 Fix RTL issues. The category list/flyout can be empty when switching from LTR to RTL and vice-versa. 2018-05-30 16:15:19 -04:00
Eric Rosenbaum
8e72b20c27
Merge pull request from ericrosenbaum/feature/scroll-by-id
Scroll to category by id
2018-05-14 16:26:01 -04:00
Eric Rosenbaum
c9927331b3 Select and scroll to category by id 2018-05-10 15:15:44 -04:00
Rachel Fenichel
4836e55536 Break events.js into multiple files 2018-05-09 13:34:21 -07:00
Corey Frang
099e15ab4c Recycle flyout blocks 2018-05-04 13:29:14 -04:00
Rachel Fenichel
3c992dee6a More lint and small changes from Blockly 2018-04-30 15:42:02 -07:00
Rachel Fenichel
f0b6e72888
Merge pull request from rachel-fenichel/feature/mark_things_protected
Lint that caused conflicts with Blockly; mark things protected
2018-04-30 14:51:03 -07:00
Rachel Fenichel
269f396ee9 More cleanup 2018-04-30 13:20:39 -07:00
Eric Rosenbaum
e453d7ba25 nit 2018-04-27 16:53:57 -04:00
Eric Rosenbaum
0da13b8f01 Store and get category length 2018-04-27 09:53:38 -04:00
Rachel Fenichel
88bb0bff3e Lint that caused conflicts with Blockly 2018-04-26 14:28:59 -07:00
Eric Rosenbaum
dc82139780 Fix indent 2018-03-14 20:56:05 -04:00
Eric Rosenbaum
d3f688d2cd Add fns to support stable scroll positioning 2018-03-13 20:29:33 -04:00
Eric Rosenbaum
60de6190db Prevent numeric error in selectCategoryByScrollPosition 2018-03-08 17:37:37 -05:00
Rachel Fenichel
7102012240 Pulling in final changes from upstream blockly/variables_by_id branch.
Includes commits 1fa27fa (01/12/18) through fa91c6b (01/16/18).
2018-01-18 15:03:46 -05:00
Karishma Chadha
db44603362 Pulling in changes from blockly/variables_by_id. 2018-01-18 15:03:46 -05:00
Rachel Fenichel
9763a2d5f1 Merge pull request from kchadha/varcreate-bugfix
VarCreate bugfix
2017-11-28 09:45:06 -05:00
picklesrus
13e5c30e26 Revert and changes made on top of it. See discusson on and . We will fix this a different way next week 2017-10-20 17:53:14 -07:00
Sam El-Husseini
c55824d619 Avoid IE and Edge re-rendering ()
* Fix wrong width of field_dropdown with an image on Edge / IE

* Avoid re-rendering on IE and Edge by using getBBox().width to compute the text width on those browsers
2017-10-19 14:43:43 -04:00
Sam El-Husseini
9ce71d1099 Fix flyout labels causing flyout scrolling issues () 2017-10-19 13:04:21 -04:00
marisaleung
6a9617c77d Fix type tags and todo placement. 2017-10-19 11:51:30 -04:00
Rachel Fenichel
c838ca3a87 Add a bulkUpdate flag to avoid expensive operations (such as toolbox refresh) during workspace loading. 2017-10-09 12:04:59 -07:00
Eric Rosenbaum
8c7adafeb8 Don’t update category menu selection during auto-scroll 2017-10-04 13:59:00 -04:00
Eric Rosenbaum
865fbec3a3 Various nits 2017-09-21 11:54:42 -04:00
Eric Rosenbaum
4bedaa458a Create getters for button properties 2017-09-21 10:25:21 -04:00
Eric Rosenbaum
89ea480ab0 Move selectCategoryByScrollPosition to flyout_base 2017-09-18 16:41:32 -04:00
Eric Rosenbaum
72e87db8d1 Add scrollAnimationFraction property 2017-09-18 15:21:41 -04:00
Eric Rosenbaum
4d073063f7 Give stepScrollAnimation package scope 2017-09-18 15:07:59 -04:00
Eric Rosenbaum
e494993e82 Move scroll animation into flyout_base 2017-09-18 14:55:40 -04:00
Eric Rosenbaum
5f73a94f5b More adding spaces around operators 2017-09-13 15:28:38 -04:00
Eric Rosenbaum
a8c7e74a73 Function for recording category scroll positions 2017-09-13 15:19:50 -04:00
Eric Rosenbaum
68e7f5ee31 Fix comment line wrapping 2017-09-13 13:50:45 -04:00
Eric Rosenbaum
e4581ad945 Fix comments 2017-09-13 13:46:34 -04:00
Eric Rosenbaum
beff405d6a Disable autoclose 2017-09-01 16:18:16 -04:00
Eric Rosenbaum
378e451015 Use horizontal category positions for horizontal layout 2017-08-31 18:03:32 -04:00
Eric Rosenbaum
6fea7b31a5 Add variable blocks by splicing them in 2017-08-28 15:11:08 -04:00
Eric Rosenbaum
dd1f42799d Update selected category by scrollbar position 2017-08-28 15:11:08 -04:00
Eric Rosenbaum
bc65d1a999 Merge pull request from ericrosenbaum/feature/vertical-category-menu
Vertical category menu
2017-08-28 14:54:19 -04:00
Paul Kaplan
3fb684ed04 Remove old code 2017-08-25 08:45:07 -04:00
Eric Rosenbaum
101d195e48 Vertical category menu 2017-08-22 15:49:51 -04:00