Commit Graph

1379 Commits

Author SHA1 Message Date
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
Rachel Fenichel dfc1f0094b Mark the dragged connection manager deprecated 2018-11-14 11:18:32 -08:00
Rachel Fenichel df888eb32d Remove setOpacity and getOpacity 2018-11-14 11:18:32 -08:00
Rachel Fenichel 7d775908b9 Add insertion markers. 2018-11-14 11:18:32 -08:00
Tianwei Du f3bb0d827e fix #2090 (#2109) 2018-11-07 12:42:42 -08:00
Neil Fraser 280fa51597 Don’t move immovable blocks in workspace cleanup. (#2104) 2018-11-05 09:38:24 -08:00
RoboErikG ecc555b7f3 Fix bad xml element when generating next node (#2098)
Fixes #2096

We were creating a text node to wrap any block connected to
next when we should have just been attaching the generated dom.
2018-10-31 09:52:59 -07:00
Rachel Fenichel 3aa0cac22b Fix setting tooltips in init 2018-10-17 13:27:32 -07:00
Neil Fraser db0dbc69ee Update todos and requires. 2018-10-16 11:34:10 -07:00
Neil Fraser c7e391c71a Fix lint error. 2018-10-16 11:34:10 -07:00
Neil Fraser aa09ad9175 Line wrap at 80. 2018-10-16 11:34:10 -07:00
Neil Fraser f196816f62 Move DOMParser and XMLSerializer to Xml.utils 2018-10-16 11:34:10 -07:00
Neil Fraser c74830231c Minor corrections 2018-10-16 11:34:10 -07:00
Neil Fraser dddb94aedd Fix circular dependency. 2018-10-16 11:34:10 -07:00
Neil Fraser e62bb1af73 Remove all calls to goog.dom.createDom
All XML node cereations are now centralized.
2018-10-16 11:34:10 -07:00
Neil Fraser 7531b323b2 Honour reductions to MAX_UNDO (#2078)
* Honour reductions to MAX_UNDO

If MAX_UNDO is reduced, we now throw away the extra records in the stack, as opposed to just not growing it anymore.

* shift != unshift

Apparently I need a new brain.

* Ensure MAX_UNDO isn’t negative.
2018-10-12 06:34:23 -07:00
Rachel Fenichel 870e95a255 Fix inconsistent return type warning 2018-09-25 14:22:12 -07:00
Neil Fraser 59a4db61b2 Remove .children access
Not supported in node.js’ xmldom package.
2018-09-20 20:34:07 -07:00
Rachel Fenichel 5d8d30935e Restructure isConnectionAllowed to match scratch blocks 2018-09-14 13:58:31 -07:00
Rachel Fenichel 4581c06625 Merge pull request #2052 from rachel-fenichel/bugfix/get_all_blocks
Calls to getAllBlocks should pass a value for _ordered_
2018-09-13 16:17:10 -07:00
Rachel Fenichel 6092e4c517 Calls to getAllBlocks should pass a value for _ordered_ 2018-09-13 16:06:19 -07:00
Rachel Fenichel a0e90627f7 Add some functions for insertion markers 2018-09-13 15:55:49 -07:00
Rachel Fenichel 7dadc4d4ba Merge pull request #2047 from rachel-fenichel/cleanup/field_properties
Mark some field properties protected
2018-09-13 12:03:55 -07:00
Rachel Fenichel 6a5c90f4b9 Merge pull request #2046 from duzc2/_fix_image_click
fix #1887 #2034
2018-09-13 11:09:02 -07:00
Rachel Fenichel da309e264f Add info to annotation 2018-09-13 11:04:31 -07:00
Tianwei Du dcab9c1013 Add connection.getCheck function #2048 (#2049)
* Add connection.getCheck function #2048

* remove unused argument

* fix eslint error

* fix eslint error
2018-09-13 11:02:39 -07:00
Rachel Fenichel b4865f07f7 Fix some more annotations and an accidental global use of this 2018-09-11 16:41:01 -07:00
Rachel Fenichel d09c340c79 Mark some field properties protected 2018-09-11 16:19:34 -07:00
duzc2dtw@gmail.com c92a4f31f5 fix #1887 2018-09-11 00:57:52 +08:00
Andrew n marshall 411ec9724e Replacing node.parentNode.removeChild(node)
...with Blockly.utils.removeNode(..), which includes
a null/undefined check on parentNode before continuing.
2018-09-04 13:31:53 -07:00
Andrew n marshall b8a1873f01 Converting bad block warning into an error. 2018-08-31 12:42:38 -07:00
Andrew n marshall 7ee9b6bc3e Fix lint errors. 2018-08-28 11:21:21 -07:00
Andrew n marshall 512c746a53 Rename getDeveloperVars() as getDeveloperVariables() (PR #2021)
Merge pull request #2021, a rebase of #1979 (from AnmAtAnm/pr1979-rebase)
2018-08-28 10:30:26 -07:00
Rachel Fenichel aae8277513 Merge pull request #2022 from rachel-fenichel/feature/canvas_transition
Add support for transitioning the workspace block and bubble canvases on scrollCenter
2018-08-27 11:31:06 -07:00
Rachel Fenichel 48dac195f7 CSS style 2018-08-27 11:23:24 -07:00
Neil Fraser cb3ea2f56e Remove goog.ui.ColorPicker (#2020)
Adds the ability to set the tooltip titles for each colour.

Note that Closure’s colour picker in Blockly used to have keyboard controls (as of > 3 years ago); but no longer seems to.  This replacement does not currently have keyboard controls either.
2018-08-24 12:14:42 -07:00
Rachel Fenichel 8f675fd82e Add support for transitioning the workspace block and bubble canvases on scrollCenter 2018-08-24 11:55:55 -07:00
Andrew n marshall c7c9580c51 Rephrase comment, adding date. 2018-08-23 16:00:11 -07:00
Andrew n marshall 243116ca98 Adding warning old function name is detected. 2018-08-23 15:47:49 -07:00
Andrew n marshall 75abc65cd1 Merge branch 'fix-code-mismatch' of https://github.com/gokula-krishna-dev/blockly into pr1979-rebase 2018-08-23 15:17:58 -07:00
RoboErikG 9eacd7d3b9 Disable/enable function calls along with their definitions (#2019)
Fixes #1344

Extends the event listener on procedure caller blocks to also check
for their definition being enabled/disabled and update their own
state in response.
2018-08-23 11:18:29 -07:00
Andrew n marshall 26903a8ca5 Update the docs related to fieldvalidators. 2018-08-22 13:27:07 -07:00
picklesrus 962fcd5c2e Fix #1959 by calling bring to front when a block drag starts inside a mutator. (#2013) 2018-08-21 12:51:43 -07:00
DD 4a34663d49 Fix lint 2018-08-08 21:10:02 -04:00
DD 8d3dea4c74 Add issue to todo and getter for isVisible on workspace 2018-08-08 20:44:23 -04:00
DD e06807155d Add todo per code review 2018-08-07 18:04:04 -04:00