Aaron Dodson
a3b52aaab3
Migrate core/events/events.js to goog.module syntax ( #5302 )
...
* Migrate core/events/events.js to ES6 const/let
* Migrate core/events/events.js to goog.module
* Migrate core/events/events.js to named requires
* clang-format core/events/events.js
* Migrate Blockly core to use getRecordUndo/setRecordUndo
* Update core/events.js to reflect latest guidance around exporting mutable fields
2021-08-26 08:53:31 -07:00
kozbial
d1d8863fe8
Rename private methods in core/xml.js
2021-08-11 16:09:44 -07:00
kozbial
1d9371a3bc
clang-format core/xml.js
2021-08-11 16:09:44 -07:00
kozbial
9666a3eb18
Migrate core/xml.js named requires
2021-08-11 16:09:44 -07:00
kozbial
a64097d23f
Migrate core/xml.js to goog.module
2021-08-11 16:09:44 -07:00
kozbial
66130e6668
Migrate core/xml.js to ES6 const/let
2021-08-11 16:09:44 -07:00
kozbial
b834d9026b
Add requireType calls for Blockly.WorkspaceComment and Blockly.WorkspaceCommentSvg
2021-08-06 18:05:53 -07:00
Rachel Fenichel
cf7a8b95b8
Remove extra requires of Blockly.constants
2021-07-21 15:35:19 -07:00
Neil Fraser
cff7b359f4
Make comments more consistent.
2021-06-09 11:41:42 -07:00
Neil Fraser
e661c92a36
More JSDoc improvements
2021-05-27 21:30:26 -07:00
Neil Fraser
f64c11d74e
Make JSDoc object nullability more strict.
...
Also make Blockly.utils.deprecation.warn apply to properties.
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
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
Sam El-Husseini
f97730e83c
Sort requires ( #4658 )
...
* Cleanup gulp method to sort requires
2021-02-25 17:17:42 -08:00
Sam El-Husseini
ab8a11784d
Fix event related missing requires ( #4656 )
...
* Fix event related missing requires
2021-02-25 14:28:11 -08:00
Rachel Fenichel
f35aeb22b4
Remove circular dependency
2021-02-09 15:22:55 -08:00
Rachel Fenichel
c449a3ec6c
Fix missing requires in input and xml
2021-02-09 14:41:58 -08:00
Monica Kozbial
c94f40d02b
Connecting block to parent in domToBlockHeadless_ ( #4461 )
...
* Attaching parent before setting field values when processing xml
2021-01-20 09:48:37 -08:00
Monica Kozbial
faf953b18b
Process xml tags in an explicit order in domToBlockHeadless_ ( #4571 )
...
* Process xml tags in an explicit order in domToBlockHeadless_
2021-01-11 15:58:45 -08:00
Sam El-Husseini
fba35d342c
Add missing require Blockly.constants ( #4366 )
2020-10-12 17:56:42 -04:00
Monica Kozbial
c6bea7c51b
Call initsvg after loading field. ( #4296 )
2020-09-21 10:06:43 -07:00
alschmiedt
22d598484f
Update blockToDom types to include document fragments ( #4280 )
2020-09-16 10:51:09 -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
0951b5e613
Update eslintrc for eslint v7, and resolve new lint errors
2020-08-10 15:10:48 -07:00
Eric Anderson
2b8208b1e2
Perf: Move multiline xml text encoding out of domToText ( #4046 )
...
* Move multiline xml text encoding out of domToText
2020-07-14 16:32:12 -07:00
Sam El-Husseini
c9563c1d24
Revert "Add programmatically setting shadows ( #3902 )"
...
This reverts commit 3aa1963be8 .
2020-06-12 08:54:04 -07:00
Beka Westberg
3aa1963be8
Add programmatically setting shadows ( #3902 )
...
* Add programmatically setting shadows
2020-05-21 11:44:08 -07:00
Beka Westberg
44ba0226c9
Add ignoring insertion markers in xml gen ( #3883 )
...
* Add ignoring insertion markers in xml gen
2020-05-14 17:05:43 -07:00
Sam El-Husseini
493c89869e
Rename dom Node enum ( #3824 )
...
* Rename Node enum to NodeType to avoid conflict with type Node
2020-04-15 15:54:36 -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
Sam El-Husseini
4a94dc8a85
Unpack self-closing tags when converting domToText ( #3665 )
...
* Unpack self-closing tags when converting domToText
2020-01-27 15:32:12 -08:00
Sam El-Husseini
671162b79a
Fix RTL appendDomToWorkspace positioning. ( #3601 )
...
* Fix RTL appendDomToWorkspace positioning.
2020-01-16 13:43:41 -08:00
Sam El-Husseini
6c6296d74a
Use setAttribute for setting the id instead of block.id as IE doesn't serialize the id otherwise. ( #3604 )
2020-01-16 13:33:24 -08:00
Rachel Fenichel
04ddb90680
Delete two leftover constants in block_svg.
2019-11-06 14:02:13 -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
36d7e4ff8c
Suppress workspace comment module not included while Workspace comments are not bundled in. ( #3303 )
2019-10-22 08:49:17 -04:00
Sam El-Husseini
19018a5e8e
Fix compiler warnings related to XML ( #3277 )
...
* Fix 5 warnings.
2019-10-17 17:58:15 -05:00
Rachel Fenichel
35e894af13
Fix #1714
2019-10-16 11:53:08 -06: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
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
Sam El-Husseini
1236660efd
Actually make WS comments optional ( #3130 )
...
* Remove last reference to ws comments since its an optional module
* Also remove from workspace
2019-10-02 11:41:51 -07:00
Beka Westberg
df5b5766c1
General cleanup.
2019-10-01 19:22:19 -07:00
Beka Westberg
08720929d3
Changed setConnectionsHidden to waitToTrackConnections and startTrackingConnections.
2019-10-01 19:00:53 -07:00
Neil Fraser
a2e6cfffcc
Block comments from XML not fatal
...
…if Blockly.Comment was not compiled in.
2019-09-27 11:46:23 -07:00
Sam El-Husseini
fc2c730e44
Make workspace comments an optional module, remove from this release. ( #3115 )
2019-09-27 11:15:11 -07:00
Neil Fraser
a03660243e
Code cleanup, drop some CSS.
...
Random improvements to require statements.
Removal of some obviously dead CSS.
.blocklyDropDownDiv no longer supresses text selection (see comment in PR).
This PR drops the compiled size by 4 KB, which is larger than I was expecting.
2019-09-25 10:34:34 -07:00
Beka Westberg
9e5df6216a
Fixed comment ownership. ( #2923 )
...
* Moved comment icons to use a model-based system. The block holds the model of the comment, and the comment icon holds a reference to it.
* Reorganized the setVisible function.
* Changed how xml.js serializes and deserializes comments.
2019-09-20 13:16:07 -07:00
Rachel Fenichel
6f4476c962
Textarea Field, Multiline Block (from acbart) ( #2663 )
...
* Field Textarea, text_multiline block, generators
2019-09-11 17:57:46 -07:00