Aaron Dodson
372f5c0834
clang-format core/rendered_connection.js
2021-07-26 10:39:45 -07:00
Aaron Dodson
c9225da3f3
Migrate core/rendered_connection.js to named requires
2021-07-26 10:38:47 -07:00
Aaron Dodson
07b2e07ba8
Migrate core/rendered_connection.js to goog.module
2021-07-26 09:59:41 -07:00
Aaron Dodson
d5f729e636
Migrate core/rendered_connection.js to ES6 const/let
2021-07-26 09:56:57 -07:00
Rachel Fenichel
b3f837a8d2
Replace references to constants with internalConstants
2021-07-21 15:33:55 -07:00
Rachel Fenichel
8b5f5f72d6
Refer to more constants through internalConstants
2021-07-21 15:33:55 -07:00
Rachel Fenichel
ad5836b26d
Convert more names to use internalConstants
2021-07-21 15:33:55 -07:00
Beka Westberg
13bb9f5bf6
Refactor connect logic ( #4880 )
...
* Refactor connect logic.
* Fixup from rebase
* Fix build
* PR Comments
2021-06-18 09:53:43 -07:00
Neil Fraser
e661c92a36
More JSDoc improvements
2021-05-27 21:30:26 -07:00
Neil Fraser
d919b0af21
Update JSDoc from Array.<> to Array<>
...
Same with Object.
2021-05-27 21:30:26 -07:00
Laura Harker
5ff76ae32d
Stop overriding @protected methods with @private ( #4760 )
...
An upcoming change to emit private properties in Google's internal version of
https://github.com/angular/clutz will otherwise break any
TypeScript depending on these types. This is because TypeScript errors
on overriding protected with private (Closure Compiler does not).
2021-04-06 11:05:41 -07:00
Sam El-Husseini
63d26dc186
Add extra requires check ( #4677 )
...
* Add extra requires check
2021-03-05 09:50:51 -08:00
Rachel Fenichel
750b62030b
First pass at creating connectionTypes and inputTYpes
2021-03-04 10:22:24 -08:00
Rachel Fenichel
05ab37690e
Missing requiretypes, m through r
2021-02-17 14:39:15 -08:00
Sam El-Husseini
fba35d342c
Add missing require Blockly.constants ( #4366 )
2020-10-12 17:56:42 -04:00
Monica Kozbial
ab5a51e2a4
Revert "Don't render children of collapsed blocks ( #4264 )" ( #4300 )
...
This reverts commit 96e8fc794e .
2020-09-21 10:40:01 -07:00
Monica Kozbial
96e8fc794e
Don't render children of collapsed blocks ( #4264 )
...
* Partially revert collapsed block changes and add additional handling for setting children of collapsed blocks to not rendered
* Improve performance by checking if child is rendered in updateDisabled
2020-09-18 16:08:39 -07:00
Sam El-Husseini
db40e44b7c
Move Blockly.utils.dom.SvgElementType to Blockly.utils.Svg ( #4285 )
...
* Move SVGElementType to its own file shaving off 2.7KB
2020-09-16 14:42:58 -07:00
Beka Westberg
c732484180
Add programmatically setting shadows Take 2 ( #4215 )
...
* Add programmatically setting shadows
2020-09-08 08:50:01 -07:00
Rachel Fenichel
f27354d8ab
PR comments
2020-08-05 10:09:18 -07:00
Rachel Fenichel
b296ccae97
Add formal deprecation warnings
2020-07-28 10:51:28 -07:00
Rachel Fenichel
809148b435
Fix compiler errors
2020-07-16 17:40:13 -06:00
Rachel Fenichel
7288c66294
Rename connectionTypeChecker->connectionChecker
2020-07-16 17:40:13 -06:00
Rachel Fenichel
e24f3cef9b
Add isDragging to canConnectWithReason and delete newly unused code paths.
2020-07-16 17:40:13 -06:00
Rachel Fenichel
450aed0aa2
More work on connection type checks
2020-07-16 17:40:12 -06:00
Rachel Fenichel
c743a92bb9
Start work on connection type checker
2020-07-16 17:40:12 -06:00
Sam El-Husseini
0f3db47fa5
Use generics to derive SVG element type ( #4036 )
...
* Encapsulate type in a generic to automatically derive type of SVG element when using createSvgElement
2020-07-13 10:40:31 -07:00
Sam El-Husseini
317834ff59
Add accessibility interfaces and fix navigation types ( #3908 )
...
* Add accessibility interfaces and fix navigation types
2020-05-21 11:18:10 -07:00
Beka Westberg
9e98df9949
Fix collapsed blocks not updating when modified ( #3806 )
...
* Stop recursive render calls
* Fix visibility bugs.
* Make toString ignore collapsed input.
* Add automatic collapse rendering handling
* Fix insertion markers with collapsed
* Add tests
* Fix build?
* PR comments
* Add missing jsdoc
2020-04-16 13:02:05 -07:00
Neil Fraser
4e2f8e6e02
Use SPDX licences.
...
This is a followup to #3127 .
At the time, SPDX licenses were pending approval by Google.
2020-02-11 13:27:20 -08:00
Monica Kozbial
9b8fa7a177
Using shapeFor for notch and tab paths. ( #3572 )
2020-01-10 13:31:49 -08:00
Neil Fraser
123f436e04
Add parens around inline assignments ( #3381 )
2019-10-31 15:17:35 -07:00
Beka Westberg
c32c835088
Fixed programmatically added connections not being added to the connection db ( #3318 )
...
* Fixed programmatically added connections not getting added to the connection db.
2019-10-29 15:31:40 -07:00
Sam El-Husseini
52bef4463c
Fix warnings related to connections. ( #3306 )
...
* Fix warnings related to connections.
2019-10-23 17:56:52 -04:00
Sam El-Husseini
91717854c0
Fix warnings related to insertion markers. ( #3309 )
2019-10-22 14:20:42 -04:00
Rachel Fenichel
b9dd13cde0
Fix #3169 ( #3199 )
2019-10-08 17:29:53 -07:00
Rachel Fenichel
608ce7b93c
Merge pull request #3133 from BeksOmega/fixes/ConnectionTracking
...
Connection Tracking Pt 3: Changed connections to use 'tracked_' property
2019-10-07 11:05:10 -07:00
Sam El-Husseini
d0772ad496
Fix compiler warnings related to fields. ( #3144 )
...
* Fix compiler warnings related to fields.
2019-10-03 15:58:46 -07:00
Neil Fraser
b46a4fe286
Bring our license format up to date ( #3127 )
...
* Google changed from an Inc to an LLC.
This happened back in 2017 but we didn’t notice. Officially we should update files from Inc to LLC when they are changed as part of regular edits, but this is a nightmare to remember for the next decade.
* Remove project description/titles from licenses
This is no longer part of Google’s header requirements. Our existing descriptions were useless (“Visual Blocks Editor”) or grossly obselete (“Visual Blocks Language”).
* License no longer requires URL.
* Fix license regexps.
2019-10-02 14:46:56 -07:00
Beka Westberg
df5b5766c1
General cleanup.
2019-10-01 19:22:19 -07:00
Beka Westberg
5aaab251a3
Changed all other known 'hiding' references to 'tracking'.
2019-10-01 19:02:02 -07:00
Beka Westberg
9d47e2b34e
Fixed adding and removing from connection DB (will be cleaned up a future PR, but I want to focus on cleaning connections).
2019-10-01 16:58:33 -07:00
Beka Westberg
d4e0594c2c
Combined inDB_ and hidden_ into single tracked_ property.
2019-10-01 16:55:29 -07:00
Beka Westberg
229dd69e54
Fixed review comments.
2019-09-30 15:32:17 -07:00
Beka Westberg
afbb2cca1e
Moved all database related code out of headless and into rendered.
2019-09-27 18:00:06 -07:00
Monica Kozbial
e1e9513e86
Disconnect child block always for block.dispose(/* healStack */ true) ( #3073 )
...
* Disconnecting child block even if it cannot be connected to parent block.
* Bump disconnected child block.
* Added method for behavior on failed connection and updated expected behavior of unplug in unit tests.
* Removing obsolete TODO and calling new helper method in tests.
2019-09-25 10:47:29 -07:00
Sam El-Husseini
e339ae26bc
Move the rendering object to live on the workspace_svg ( #3016 )
...
* Move the rendering object onto the workspace allowing the various workspaces to have different renderers.
2019-09-13 14:20:34 -07:00
Sam El-Husseini
8ab51c8639
Remove closure base file dependency ( #2976 )
...
* Trim down closure's base dependency even further by removing the dependency on closure's base file.
2019-09-11 17:30:51 -07:00
Rachel Fenichel
2ffe71f0a0
Remove references to dark path offset; fix highlights while dragging'
2019-09-05 11:59:28 -07:00
Rachel Fenichel
37250f4ce4
Fix connection highlight rendering
2019-07-31 12:42:34 -07:00