Beka Westberg
8f81bbac25
Fixed Filter Capacity not Considering Child Blocks. ( #2155 )
2018-12-06 08:54:26 -08:00
BeksOmega
1c4ba38300
Added Max Instances Property to Workspace Options ( #2130 )
...
* Added Max Instances property to Blocks
* eslint cleanup
* eslint cleanup 2
* Moved maxInstances property from block to workspace (as a map of block type to max instances). isDuplicate() changed to correctly handle siblings/branches.
* eslint cleanup
* Changed checking types to map. Added hasBlockLimits. Fixed Nits.
* Added limit_instances test block. eslint fixes.
* fixup! Added limit_instances test block. eslint fixes.
* Changed sorting objects to a private static function of the workspace. Fixed nits. Undeleted .eslintrc
* Reverted .gitignore file.
* Added getBlockTypeCounts() to utils. Added isCapacityAvailable() to workspace. Changed clipboard to save typeCountsMap rather than object.
2018-11-27 16:34:21 -08:00
Neil Fraser
db0dbc69ee
Update todos and requires.
2018-10-16 11:34:10 -07:00
Neil Fraser
aa09ad9175
Line wrap at 80.
2018-10-16 11:34:10 -07: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
Neil Fraser
c51cf0b79c
Remove goog.dom.removeNode
2018-07-11 12:20:02 -07:00
Neil Fraser
8f7674ea08
Correct requires for goog.events
2018-07-11 12:20:02 -07:00
Neil Fraser
284b79407e
Require Blockly.utils where needed.
2018-07-11 12:20:02 -07:00
Neil Fraser
3909bd420a
Remove all goog.asserts and goog.isXxx
...
First step to reducing Closure’s footprint.
2018-07-11 12:20:02 -07:00
Sam El-Husseini
87ab88954d
Fix RTL mutators in Edge and IE
2018-05-10 20:30:37 -07:00
Neil Fraser
662d79443f
Add 'ordered' option to descendant getting functions. ( #1786 )
2018-04-17 11:41:03 -07:00
Johnny Yang
7dbe0bda66
mark properties @protected instead of @private so they can be used by Blockly.FlyoutVertical & Blockly.FlyoutHorizontal
2018-04-16 01:36:28 +10:00
Neil Fraser
1d385f8d69
Require goog.userAgent in the correct files.
2018-04-11 16:59:35 -07:00
Rachel Fenichel
6d83b9bc28
Add keyword-spacing rule to eslint
2018-03-19 13:10:29 -07:00
Rachel Fenichel
4c9b602523
Move event classes into separate files, and update requires accordingly
2018-02-27 17:47:33 -08:00
Rachel Fenichel
3e62ffc20a
Split at higher level for multiline function calls
2018-01-24 11:26:41 -08:00
Rachel Fenichel
fb897d7786
Even more lint. 90 errors remaining.
2018-01-23 18:33:30 -08:00
Rachel Fenichel
b593d44379
Make the potential variable map null when not needed
2018-01-12 14:51:02 -08:00
Rachel Fenichel
db9a9f5182
Move code from the variable to the variable map. Fixes #1512 .
2017-12-15 15:31:41 -08:00
Rachel Fenichel
66975c8f94
Rebase
2017-12-15 13:44:27 -08:00
Rachel Fenichel
f0b7190603
Clean up TODOs and move potential variable map to the flyout workspace
2017-12-13 11:50:08 -08:00
Rachel Fenichel
5047b00e27
Fix missing events for variable creation
2017-12-13 11:50:08 -08:00
Rachel Fenichel
1ce46ab88b
Move getOrCreateVariable to variables.js
2017-12-13 11:50:07 -08:00
Rachel Fenichel
3ae7ac1cd4
Make unique variable names in the flyout
2017-12-13 11:50:07 -08:00
Karishma Chadha
143d95222c
Fixing type annotation.
2017-11-22 15:22:34 -05:00
Karishma Chadha
aae1b1bb74
Addressing PR comment. Moving functionality to get newly added variables into a helper function.
2017-11-22 14:51:11 -05:00
Karishma Chadha
ee142e92bb
Fixing comment style.
2017-11-22 13:43:25 -05:00
Karishma Chadha
c950225897
Minor refactoring
2017-11-22 13:37:30 -05:00
Karishma Chadha
71205de2ef
Target workspace is the one that carries the variables we want. VarCreate gets fired when a block with a new default variable is dragged out into the workspace.
2017-11-22 13:27:29 -05:00
Karishma Chadha
07d6624625
Fixing bug where VarCreate event does not fire when adding a block with pre-existing variables from the flyout into the workspace.
2017-11-22 12:50:00 -05:00
Neil Fraser
7216c060bd
Terminology: "background button" -> "mat"
...
Originally flyouts had ‘blocks’ and rectangular hidden ’buttons’
underneath the blocks. When UI buttons were added to flyounts, there
was a terminology collision. This change renames the original
background ‘buttons’ to ‘mats’. As in placemats or door mats.
2017-11-07 14:23:41 -08:00
Sam El-Husseini
9c0de1ae8d
Avoid IE and Edge re-rendering ( #1326 )
...
* 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-09-19 15:04:25 -07:00
Sam El-Husseini
6e3a2b7218
Fix flyout labels causing flyout scrolling issues ( #1301 )
2017-09-05 10:26:58 -07:00
marisaleung
5f21a43caf
Fix type tags and todo placement.
2017-08-03 12:35:14 -07:00
Rachel Fenichel
d2f7d5a71a
Use the same math for dragging blocks out of horizontal and vertical flyouts. ( #1215 )
...
* Use the same math for dragging blocks out of horizontal and vertical flyouts.
* Update flyout_base.js
2017-07-19 11:30:08 -07:00
marisaleung
fba60bf7a5
Fix flyout dropdown bug.
2017-06-26 10:41:17 -07:00
marisaleung
7c71b9e7fc
Fix checkbox delete bug.
2017-06-20 15:13:10 -07:00
Rachel Fenichel
2d532225d3
Split flyout into flyout_base, flyout_horizontal, and flyou_vertical
...
* Rename flyout to flyout_base
* flyout_base minus horizontal and vertical code
* Add flyout_vertical and flyout_horizontal
* review fixes + toolbox and workspace use
* Fix hat block case
* rebuild uncompressed
* Fix travis problem
* Fix build problem
2017-06-08 13:36:11 -07:00