New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/merge feb 2017 #791
Feature/merge feb 2017 #791
Commits on Nov 9, 2016
-
Merge pull request scratchfoundation#731 from rachel-fenichel/rebuild…
…_nov_3_16 Rebuild nov 3 16
-
-
Merge pull request scratchfoundation#738 from google/revert-731-rebui…
…ld_nov_3_16 Revert "Rebuild nov 3 16"
-
-
-
Merge pull request scratchfoundation#739 from rachel-fenichel/bugfix/…
…move_css Move injected css to start of head
-
Merge pull request scratchfoundation#716 from nilq/master
Rename README to README.md
-
-
Merge pull request scratchfoundation#729 from rachel-fenichel/feature…
…/import_definitions Add ability to define blocks with a json array
-
Commits on Nov 10, 2016
Commits on Nov 11, 2016
Commits on Nov 12, 2016
-
Revert "Revert "Rebuild nov 3 16""
This reverts commit c8ca24a.
-
-
Merge pull request scratchfoundation#745 from rachel-fenichel/merge_m…
…aster_to_develop_nov_11_16 Merge master to develop nov 11 16
-
-
Merge pull request scratchfoundation#746 from rachel-fenichel/remove_…
…controls_ifelse Remove ifelse block and messages
Commits on Nov 15, 2016
-
-
-
-
Merge pull request scratchfoundation#747 from rachel-fenichel/develop…
…_to_master_nov_11_16 Develop to master nov 11 16
-
Merge pull request scratchfoundation#736 from google/fraser-develop
Allow images in dropdown menus.
-
Improve performance of block dragging. This is a backport of the blo… (…
…scratchfoundation#732) Improve performance of block dragging. This is a backport of the block drag surface from scratch-blocks. At the beginning of a block drag, blocks get moved to a drag surface which then translates using translate3d to avoid repainting the entire svg on every mouse move. At the end of the drag, the blocks are dropped back in the svg in their new position.
-
API-breaking cleanup. But doubtful anyone will be affected. (scratchf…
…oundation#748) * Make add/removeClass return whether they did anything. * Move more functions onto utils. * Move bind functions to Blockly. * Routine recompile.
-
String reference in JSON string messages (scratchfoundation#741)
* Adds message references to message string interpolation, in the form of %{BKY_STRING}. * Re-adding CONTROLS_IFELSE block using the new syntax, referencing to CONTROL_IF equivalents.
Commits on Nov 16, 2016
Commits on Nov 17, 2016
-
Move away from using a common modal service, since the block options …
…and the toolbox modals are going to end up behaving fairly differently.
-
-
Commits on Nov 18, 2016
-
Allow attaching blocks to a marked spot from the toolbox modal. This …
…is the last prerequisite for removal of the existing on-screen toolbox.
-
Commits on Nov 19, 2016
Commits on Nov 21, 2016
Commits on Nov 22, 2016
-
When the workspace is empty, make it easy for the user to add a new g…
…roup of blocks to it.
Commits on Nov 23, 2016
-
Handle the finer points for setting focus correctly after deleting bl…
…ocks from the workspace.
Commits on Nov 24, 2016
-
When user edits text in a field, set text, not value.
Existing text-editable fields don’t care (dropdown care, but are not text-editable). But a note picker needs to set its value to 60 if text is set to ‘C4’.
-
Set the text not the value when closing a text editor.
Also rename variables for clarity.
Commits on Nov 28, 2016
Commits on Nov 29, 2016
-
-
-
-
-
Merge pull request scratchfoundation#755 from google/seanlip-rebuild
Rebuild Blockly.
-
Remove unavailable blocks from toolbox modal. Hide unnecessary catego…
…ry name in a toolbox without categories.
-
Do some refactoring and tidy-up. Pull some hardcoded strings out for …
…i18n purposes; remove unused strings.
Commits on Nov 30, 2016
Commits on Dec 1, 2016
-
-
Merge pull request scratchfoundation#754 from google/paternity
When user edits text in a field, set text, not value.
Commits on Dec 2, 2016
Commits on Dec 3, 2016
Commits on Dec 5, 2016
-
-
Merge pull request scratchfoundation#761 from rachel-fenichel/feature…
…/label_classes_2 Add classes to labels with web-style attribute in xml
Commits on Dec 6, 2016
-
-
Merge pull request scratchfoundation#764 from rachel-fenichel/cleanup…
…/semicolon fix missing semicolon
-
When adding a new block group from the toolbox modal, only show block…
…s with no output connections.
-
-
Remove some functions from utilsService and consolidate code in works…
…pace-tree.component.js.
-
-
Remove premature focus on buttons in modal dialogs, since this preven…
…ts readout of the dialog text.
-
Commits on Dec 7, 2016
Commits on Dec 8, 2016
-
-
Merge pull request scratchfoundation#767 from rachel-fenichel/feature…
…/register_button_callbacks_on_workspace Associate flyout button callbacks directly with workspaces
-
-
Merge pull request scratchfoundation#768 from rachel-fenichel/feature…
…/block_factory_helpurl Update block factory to make setting colour, helpurl, and tooltip easier
Commits on Dec 9, 2016
-
Use Tab keys instead of arrow keys for dialog boxes. Set role=alertdi…
…alog and read out the header/text automatically. Ensure that Esc key actually closes dialogs and that all keystrokes are captured.
-
Add an aria-describedby to the 'create new block group...' button in …
…the workspace to give more context.
-
Fix issue with aria-liveregion not speaking. Allow sufficient time fo…
…r alert noise to play before speaking the notification.
-
Make zoom speed independent of event granularity
Before, touchpads would give "smoother" scrolling by delivering lots of mousewheel events with small distance changes. Because the code only looked at the sign of deltaY, ten 5px scrolls would zoom 10x more than one 50px scroll. This change makes zooming with a touchpad more like zooming with a mousewheel. On my laptop, a full-scale zoom (fully out to fully in) was about a 5mm finger movement before, and is now about 3cm. Fixes scratchfoundation#758.
-
Merge pull request scratchfoundation#769 from drigz/fix-touchpad-scroll
Make zoom speed independent of event granularity
Commits on Dec 10, 2016
-
Split the scrollbar and flyout out into their own SVG elements. They (s…
…cratchfoundation#771) * Split the scrollbar and flyout out into their own SVG elements. They are siblings of the workpsace SVG. This paves the way to make performance improvements to workspace dragging.
-
remove overflow-y on the block exporter labels so scroll bars do not …
…show upin firefox. Also fix up the styles on the labels so that they display better in firefox. (scratchfoundation#699)
-
Fix scratchfoundation#698 by adjusting the regex to not have \. Still…
… not 100% sure w… (scratchfoundation#700) * Fix scratchfoundation#698 by adjusting the regex to not have \. Still not 100% sure why that was there. Also replaces bad names on input. There are probably more invalid names but this is a start.
-
Merge pull request scratchfoundation#650 from trodi/generator-docs
Add Generator functions to prototype + JSDoc
-
Commits on Dec 12, 2016
-
Merge pull request scratchfoundation#775 from rachel-fenichel/feature…
…/generator_docstrings Update generator comments
Commits on Dec 14, 2016
-
Move the call to disable resize before placeNewBlock so that it is of… (
scratchfoundation#777) * Move the call to disable resize before placeNewBlock so that it is off when workspace resizeContents gets triggered by placeNewBlock. This fixes a bug in rtl mode where the workspace was being resized between when the block was added to the workspace and when it was moved to the proper location.
Commits on Dec 15, 2016
-
-
Add a workspace drag surface that blocks and bubble get moved to duri… (
scratchfoundation#778) * Add a workspace drag surface that blocks and bubble get moved to during a workspace drag. The surface is translated using translate3d instead of svg's translate attribute so that the browser does not have to repaint the entire workspace on every mouse move. This is very similar to the block drag surface. * Address code review comments * add back hasClass_ utility removed in scratchfoundation#748 and stop using contains since it is not supported in IE
-
Merge pull request scratchfoundation#782 from rachel-fenichel/feature…
…/flyout_disable_resize Disable workspace resizing while loading the flyout from XML
Commits on Dec 16, 2016
-
Fixes scratchfoundation#786 by checking if getComputedStyle is null i…
…n is3dSupported. We do not cache the value in this case and try again later. is3dSupported is only called while users are interacting with blockly which they cannot do while hidden so the performance implications of running the check again are minimal. (scratchfoundation#787)
Commits on Dec 19, 2016
Commits on Dec 22, 2016
-
Change the Python codegen for string quoting to match the behaviour o…
…f `repr` on a string in CPython.
-
Merge pull request scratchfoundation#795 from groklearning/python-str…
…ing-quoting-repr Change string quoting in Python codegen to match what `repr` does.
-
Commits on Dec 28, 2016
-
Add an
allInputsConnected
method toBlock
andWorkspace
to test…… whether all trees in the block forest have their inputs filled. An optional argument controls whether or not shadow blocks are counted as being filled. Recommitting changes off `develop` instead of `master` as per discussion in PR scratchfoundation#791.
Commits on Dec 29, 2016
Commits on Jan 2, 2017
Commits on Jan 3, 2017
-
-
Fix scratchfoundation#794 and make the workspace grid drag along with…
… the workspace. (scratchfoundation#801) There was some IE specific code that also applies to Edge so just updated a conditional to include Edge.
-
Now that text input's setText skips setValue, it needs to explicitly …
…create a change event
-
Commits on Jan 4, 2017
-
Init procedure blocks with empty name, and set default name in xml in…
… Blockly.Procedures.flyoutCategory
-
-
Merge pull request scratchfoundation#803 from rachel-fenichel/bugfix/…
…xml_function_rename Init procedure blocks with empty name, and set default name in xml in…
-
-
Merge pull request scratchfoundation#804 from rachel-fenichel/develop
Routine rebuild
Commits on Jan 5, 2017
-
Merge pull request scratchfoundation#802 from rachel-fenichel/bugfix/…
…field_undo Fix two event bugs on fields
-
Make cursor stay as a closed hand when dragging blocks around in the …
…drag surface. Do this by applying the same style to text elements in the drag surface that we do in the main svg. (scratchfoundation#805)
Commits on Jan 6, 2017
Commits on Jan 7, 2017
Commits on Jan 9, 2017
-
-
Merge pull request scratchfoundation#807 from rachel-fenichel/bugfix/…
…connect_under_flyout Don't connect to blocks under the flyout.
-
Merge pull request scratchfoundation#808 from harbaum/master
Fix german translation
Commits on Jan 10, 2017
Commits on Jan 11, 2017
-
Use the npm closure library instead of the same library installed at …
…a parallel directory
-
Fix undo/redo for FieldCheckbox
Thanks to PR scratchfoundation#813 by ademenev
-
Merge pull request scratchfoundation#814 from justingeeslin/use-closu…
…re-compiler-npm-module Use the npm closure library
-
PR scratchfoundation#818: Adding support for string table lookups in …
…dropdown field labels Adding support for string table lookups in dropdown field labels specified in JSON. Adds Blockly.utils.replaceMessageReferences() method to handle string replacement without interpolation tokens. Effectively uses the same old code, now moved into tokenizeInterpolation_(), which takes a parseInterpolationTokens option. Replaces the direct JavaScript references (not pure JSON, and thus not portable). Demonstrating this behavior in the logic_boolean dropdown.
Commits on Jan 12, 2017
Commits on Jan 13, 2017
-
-
Merge pull request scratchfoundation#821 from rachel-fenichel/cleanup…
…/mirror_naming Naming changes in mirror demo
-
Adding support for untranslated messages. (scratchfoundation#819)
This will be used to define constants accessible in JSON block definitions. Messages with descriptions that include `{{Notranslate}}` will not be included in the translation files sent to TranslateWiki. Instead, they are written to `msg/json/constants.json`, and later merged back into the `.js` files, similar to synonyms. Template details: https://translatewiki.net/wiki/Template:Notranslate
Commits on Jan 14, 2017
-
JSON support for message lookup in colour, tooltip, and help URL. (sc…
…ratchfoundation#825) String replacement for the colour, tooltip text and help URL attributes of JSON defined blocks. Demonstrated in logic_boolean.
Commits on Jan 15, 2017
Commits on Jan 16, 2017
-
-
-
Merge pull request scratchfoundation#800 from groklearning/add-allInp…
…utsFilled-methods Adds `allInputsFilled` methods to Block and Workspace.
Commits on Jan 17, 2017
-
This unbreaks IE10 and advanced compiled apps such as Blockly Games.
-
Fix bug in audioService where attached event callbacks were not being…
… cleared properly.
-
-
Minor refactoring of the modal code (add comments, guard against inva…
…lid keystrokes, etc.).
-
FieldNumber & FieldAngle: Default value "0" (scratchfoundation#832)
FieldNumber and FieldAngle previously accepted "undefined" as values, if not defined in JSON. This catches these and uses "0" for any NaN value. The constructor value parameter is now optional. Includes tests.
-
Commits on Jan 18, 2017
-
-
Adding extensions for JSON support of dynamic blocks. (scratchfoundat…
…ion#834) Adding support for extensions, functions that can assist with loading blocks, much like init functions, but that can be referenced from JSON definitions. This allows JSON definitions to define dynamic blocks such as onchange handlers and mutators. Rewrote math_number as an example pure JSON block.
-
Add ability to add a class to a scrollbar so that different types of … (
scratchfoundation#837) * Add ability to add a class to a scrollbar so that different types of scrollbars can be distinguished from each other. You used to be able to do this by looking at the parent element but now all the scrollbars are siblings in the dom. Also, use this new class to fix scratchfoundation#816 so that layering of the flyout and workspace scrollbars are done correctly.
-
JSON definitions for colour blocks (scratchfoundation#838)
Replaces old colour block definitions with a Blockly.defineBlocksWithJsonArray(..) call. Generator unit tests continue to load and pass, signifying compatibility with prior block definitions. Replaces extension 'math_number_tooltip' with the reusable 'parent_tooltip_when_inline' extension, also used by colour_picker. Includes tests.
Commits on Jan 19, 2017
-
- Remove unnecessary code and functions. - Add documentation where needed. - Fix a bug arising when a block on the workspace is attached to an existing link.
-
Further cleanup and removal of unnecessary functions. Pull some strin…
…gs out for i18n.
-
Merge pull request scratchfoundation#827 from google/excludes
Reduce number of Closure files in App Engine upload.
-
-
Merge pull request scratchfoundation#841 from rachel-fenichel/bugfix/…
…long_stop_bind_event Use bindEvent_ instead of bindEventWithChecks_ for longStop
Commits on Jan 20, 2017
-
Clean up workspace.component.js. When moving a block from one place t…
…o another, move all blocks after it too, and adjust the active descs accordingly.
-
Unit tests for JSON block definitions (just the start) (scratchfounda…
…tion#850) * Beginnings of a JSON block definition unit test set. * Dispose of unit test workspaces and blocks in finally blocks. * Clarify JSON error message by echoing arg notation.
Commits on Jan 21, 2017
-
New blocks text_count, text_replace, and text_reverse (scratchfoundat…
…ion#830) Includes generators for all languages and units tests on those generators.
-
Fixing combo boxes getting out-of-sync with NVDA.
Combo boxes need to be special cased like text input. Also, Escape is a reserved button in NVDA, so I added Enter as a way to "submit and move up a level" in addition to escape, so these boxes can be edited while NVDA is on.
-
Merge pull request scratchfoundation#840 from rachel-fenichel/bugfix/…
…procedure_rename Use setValue in fieldTextInput so that procedure renaming works
-
Commits on Jan 23, 2017
-
Porting math.js blocks to JSON (scratchfoundation#846)
Moving all `math.js` definitions into a single JSON array, complete with i18n syntax for all messages, dropdowns, and tooltips. Adding Blockly.Extensions.buildTooltipForDropdown(..) to facilitate the creation and error-checking of tooltips that update based on the value of a dropdown. Now warn on raw string in JSON 'extensions'.
-
Merge pull request scratchfoundation#859 from google/feature/readme_f…
…orum_ref Update README.md
Commits on Jan 24, 2017
-
-
Merge pull request scratchfoundation#862 from AnmAtAnm/math-blocks
Correcting math_change color
-
Commits on Jan 25, 2017
-
-
Update the set of reserved words in Python to reflect the current sta…
…te of Python (2.7 and 3.6). (scratchfoundation#861)
Commits on Jan 26, 2017
-
Blockly.Extensions.buildTooltipForDropdown(..): Deferred validation. (s…
…cratchfoundation#870) Defer tooltip message string check until after load, when all Blockly.Msg should be loaded. Avoids validation in headless mode, due to lack of document.readyState.
-
Merge pull request scratchfoundation#863 from rachel-fenichel/feature…
…/custom_category Enable custom flyout categories.
Commits on Jan 27, 2017
-
-
-
Remove use of Array.prototype.includes which is not implemented in IE…
… or Edge < 14. Fixes google/blockly#876.
-
Attempt to work around the IE/Edge bug where `getComputedTextLength()…
…` throws an exception when the SVG node is not visible. This workaround forces a re-render, which in turn, forces a re-calculation of the node width once a block is inserted into the workspace SVG. This workaround is only executed on IE and Edge. See https://groups.google.com/forum/#!topic/blockly/T8IR4t4xAIY for the initial discussion of this issue.
-
Merge pull request scratchfoundation#877 from groklearning/bugfix-876
Remove IE/Edge-breaking use of Array.prototype.includes
-
Change CSS transforms to work with older browsers (scratchfoundation#879
) * Change the setting of the CSS transform properties on SVG nodes to set both the unprefixed version and the `-webkit-` prefixed version so that Blockly correctly renders in order browsers, such as Safari < 9 and iOS Safari < 9.2. For discussion of this issue, see https://groups.google.com/forum/#!topic/blockly/o3pERaRQhSg * Correct the separation between the CSS transform property and the rest of the CSS that was in the variable misleadingly called "transform".
-
Merge pull request scratchfoundation#852 from CoryDCode/cd-combo-focu…
…s-fix Fixing combo boxes getting out-of-sync with NVDA.
-
Merge pull request scratchfoundation#878 from groklearning/fix-ie-edg…
…e-block-text-width Work around the IE/Edge `getComputedTextLength()` block sizing bug
-
-
-
Merge pull request scratchfoundation#881 from rachel-fenichel/bugfix/…
…events_rendered Don't try to get block position in a headless workspace
-
Merge pull request scratchfoundation#882 from rachel-fenichel/bugfix/…
…set_check_headless Stop bumping neighbours in headless blockly
-
-
Merge pull request scratchfoundation#885 from rachel-fenichel/bugfix/…
…context_menu_placement Place context menu correctly on touch
Commits on Jan 28, 2017
-
Fix a bug where splicing a block between two linked blocks disconnect…
…s the group and messes up the focus.
-
Deleting a top-level block does not cause blocks after it to be delet…
…ed. Properly handle the active desc for this case.
Commits on Jan 31, 2017
-
Bugfix for scratchfoundation#892. I incorrectly converted one CSS tra…
…nsform setting to use the cross-browser setting function in 40a063763c74b3f712c3057565966c25d5cfdb10. (scratchfoundation#895)
Commits on Feb 1, 2017
Commits on Feb 2, 2017
-
Merge pull request scratchfoundation#894 from google/seanlip-block-de…
…scriptions Use the empty field placeholder for dropdowns that do not have a value selected.
Commits on Feb 3, 2017
Commits on Feb 6, 2017
-
Correct changedState in setWarningText() (scratchfoundation#908)
When clearing warnings on blocks with IDs, the changedState variable should be true if the text changed. This will trigger the block being reshaped and remove the space for the notification icon (this.bumpNeighbours_).
-
Adds Block.prototype.mixin() and Blockly.Extensions.registerMixin(). (s…
…cratchfoundation#907) Adds Block.prototype.mixin() and Blockly.Extensions.registerMixin(). This adds support for a common use pattern in extensions, and adds error checking to avoid future incompatibilities.
-
Merge pull request scratchfoundation#905 from rachel-fenichel/tests/feb
Add skeleton for tests on rendered workspaces
-
Merge pull request scratchfoundation#912 from rachel-fenichel/lint
Fix some lint errors
-
Porting Logic blocks to JSON (scratchfoundation#913)
Extensions, mixins, mutators and constants now grouped under the new namespace Blockly.Constants.Logic.
-
-
-
Merge pull request scratchfoundation#914 from rachel-fenichel/feature…
…/isFieldEditable Add isEditable to field, and add tests
Commits on Feb 7, 2017
-
Blockly.Constants.Math and Blockly.Constants.Colour extension constan…
…ts (scratchfoundation#916) Also, correcting quotes in logic.js.
Commits on Feb 8, 2017
-
Porting Loop blocks to JSON (scratchfoundation#919)
* Improved documentation on `Blockly.Extensions.buildTooltipForDropdown` * Replaced incorrect uses of `@mixes` JSDoc annotation (on mixin extensions) with `@augments Blockly.Block`. * Added Blockly.Extensions.buildTooltipWithFieldValue() extension helper.
-
-
Merge pull request scratchfoundation#921 from rachel-fenichel/feature…
…/workspace_isMovable Workspace isDraggable
Commits on Feb 11, 2017
Commits on Feb 13, 2017
-
Merge pull request scratchfoundation#926 from rachel-fenichel/feature…
…/jsonify_simple_blocks JSONify simple list blocks
-
Merge pull request scratchfoundation#927 from rachel-fenichel/feature…
…/jsonify_variable_blocks JSONify variable blocks
-
Initial text block, with a mixin to generate quote image fields. (scr…
…atchfoundation#923) Text block now uses the extension "text_quotes", supported by Blockly.Constants.Text.QUOTE_IMAGE_MIXIN.quoteField_(fieldName), so that each platform can use the best platform appropriate image (size, density, etc.) for the quotes.
Commits on Feb 14, 2017
-
-
-
-
Moving FieldImage string dereferencing back into Block.interpolate_()…
… (part of jsonInit()). This sets a clear boundary of where dereferencing should happen. Towards this, I've added message dereferencing for other field types here, as well. I've used a pattern of field-type specific helper functions.
-
-
Internationalize variable name strings (scratchfoundation#930 from An…
…mAtAnm/variable_i18n) Also, .utils.replaceMessageReferences(..) now gracefully returns non-string arguments.