blockly 7.20211209.0-beta.1 → 7.20211209.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blockly.d.ts +33 -6
- package/blockly.min.js +1255 -1238
- package/blockly_compressed.js +977 -958
- package/blockly_compressed.js.map +1 -1
- package/blocks/all.js +23 -0
- package/blocks/colour.js +60 -68
- package/blocks/lists.js +275 -291
- package/blocks/logic.js +231 -232
- package/blocks/loops.js +205 -189
- package/blocks/math.js +1 -0
- package/blocks/procedures.js +284 -273
- package/blocks/text.js +1 -0
- package/blocks/variables.js +1 -0
- package/blocks/variables_dynamic.js +1 -0
- package/blocks_compressed.js +173 -170
- package/blocks_compressed.js.map +1 -1
- package/core/block.js +12 -19
- package/core/blockly.js +42 -19
- package/core/connection.js +1 -0
- package/core/connection_checker.js +30 -10
- package/core/constants.js +0 -12
- package/core/events/events_block_move.js +5 -1
- package/core/generator.js +3 -4
- package/core/input.js +15 -4
- package/core/interfaces/i_positionable.js +1 -1
- package/core/internal_constants.js +0 -30
- package/core/keyboard_nav/ast_node.js +23 -5
- package/core/names.js +44 -37
- package/core/procedures.js +12 -0
- package/core/renderers/common/info.js +4 -4
- package/core/renderers/zelos/info.js +2 -3
- package/core/touch_gesture.js +2 -2
- package/core/trashcan.js +2 -2
- package/core/utils/xml.js +1 -1
- package/core/variables.js +11 -0
- package/core/variables_dynamic.js +12 -0
- package/core/workspace_svg.js +3 -4
- package/core/zoom_controls.js +1 -1
- package/dart_compressed.js +105 -97
- package/dart_compressed.js.map +1 -1
- package/generators/dart/all.js +25 -0
- package/generators/dart/lists.js +1 -0
- package/generators/dart/loops.js +9 -8
- package/generators/dart/math.js +1 -0
- package/generators/dart/procedures.js +1 -0
- package/generators/dart/text.js +1 -0
- package/generators/dart/variables.js +1 -0
- package/generators/dart/variables_dynamic.js +1 -0
- package/generators/dart.js +52 -44
- package/generators/javascript/all.js +25 -0
- package/generators/javascript/lists.js +1 -0
- package/generators/javascript/loops.js +9 -8
- package/generators/javascript/math.js +1 -0
- package/generators/javascript/procedures.js +1 -0
- package/generators/javascript/text.js +164 -163
- package/generators/javascript/variables.js +12 -12
- package/generators/javascript/variables_dynamic.js +5 -6
- package/generators/javascript.js +6 -1
- package/generators/lua/all.js +25 -0
- package/generators/lua/lists.js +1 -0
- package/generators/lua/loops.js +7 -6
- package/generators/lua/math.js +1 -0
- package/generators/lua/procedures.js +1 -0
- package/generators/lua/text.js +1 -0
- package/generators/lua/variables.js +1 -0
- package/generators/lua/variables_dynamic.js +1 -0
- package/generators/lua.js +4 -0
- package/generators/php/all.js +25 -0
- package/generators/php/lists.js +5 -3
- package/generators/php/loops.js +9 -8
- package/generators/php/math.js +1 -0
- package/generators/php/procedures.js +3 -0
- package/generators/php/text.js +1 -0
- package/generators/php/variables.js +1 -0
- package/generators/php/variables_dynamic.js +1 -0
- package/generators/php.js +5 -1
- package/generators/python/all.js +25 -0
- package/generators/python/lists.js +3 -1
- package/generators/python/loops.js +7 -6
- package/generators/python/math.js +1 -0
- package/generators/python/procedures.js +2 -0
- package/generators/python/text.js +3 -1
- package/generators/python/variables.js +1 -0
- package/generators/python/variables_dynamic.js +1 -0
- package/generators/python.js +6 -1
- package/javascript_compressed.js +104 -109
- package/javascript_compressed.js.map +1 -1
- package/lua_compressed.js +84 -88
- package/lua_compressed.js.map +1 -1
- package/package.json +4 -3
- package/php_compressed.js +96 -96
- package/php_compressed.js.map +1 -1
- package/python_compressed.js +89 -86
- package/python_compressed.js.map +1 -1
package/blockly.d.ts
CHANGED
|
@@ -247,19 +247,19 @@ declare module exports {
|
|
|
247
247
|
var bindEventWithChecks_: any /*missing*/;
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
|
-
* @see
|
|
250
|
+
* @see Blockly.Input.Align.LEFT
|
|
251
251
|
* @alias Blockly.ALIGN_LEFT
|
|
252
252
|
*/
|
|
253
253
|
var ALIGN_LEFT: any /*missing*/;
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
|
-
* @see
|
|
256
|
+
* @see Blockly.Input.Align.CENTRE
|
|
257
257
|
* @alias Blockly.ALIGN_CENTRE
|
|
258
258
|
*/
|
|
259
259
|
var ALIGN_CENTRE: any /*missing*/;
|
|
260
260
|
|
|
261
261
|
/**
|
|
262
|
-
* @see
|
|
262
|
+
* @see Blockly.Input.Align.RIGHT
|
|
263
263
|
* @alias Blockly.ALIGN_RIGHT
|
|
264
264
|
*/
|
|
265
265
|
var ALIGN_RIGHT: any /*missing*/;
|
|
@@ -323,6 +323,33 @@ declare module exports {
|
|
|
323
323
|
*/
|
|
324
324
|
var TOOLBOX_AT_RIGHT: any /*missing*/;
|
|
325
325
|
|
|
326
|
+
/**
|
|
327
|
+
* String for use in the "custom" attribute of a category in toolbox XML.
|
|
328
|
+
* This string indicates that the category should be dynamically populated with
|
|
329
|
+
* variable blocks.
|
|
330
|
+
* @const {string}
|
|
331
|
+
* @alias Blockly.VARIABLE_CATEGORY_NAME
|
|
332
|
+
*/
|
|
333
|
+
var VARIABLE_CATEGORY_NAME: any /*missing*/;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* String for use in the "custom" attribute of a category in toolbox XML.
|
|
337
|
+
* This string indicates that the category should be dynamically populated with
|
|
338
|
+
* variable blocks.
|
|
339
|
+
* @const {string}
|
|
340
|
+
* @alias Blockly.VARIABLE_DYNAMIC_CATEGORY_NAME
|
|
341
|
+
*/
|
|
342
|
+
var VARIABLE_DYNAMIC_CATEGORY_NAME: any /*missing*/;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* String for use in the "custom" attribute of a category in toolbox XML.
|
|
346
|
+
* This string indicates that the category should be dynamically populated with
|
|
347
|
+
* procedure blocks.
|
|
348
|
+
* @const {string}
|
|
349
|
+
* @alias Blockly.PROCEDURE_CATEGORY_NAME
|
|
350
|
+
*/
|
|
351
|
+
var PROCEDURE_CATEGORY_NAME: any /*missing*/;
|
|
352
|
+
|
|
326
353
|
/** @deprecated Use Blockly.ConnectionType instead. */
|
|
327
354
|
var connectionTypes: any /*missing*/;
|
|
328
355
|
}
|
|
@@ -1929,9 +1956,6 @@ declare module BasicCursor {
|
|
|
1929
1956
|
|
|
1930
1957
|
|
|
1931
1958
|
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
1959
|
declare module exports {
|
|
1936
1960
|
|
|
1937
1961
|
/**
|
|
@@ -1955,6 +1979,9 @@ declare module exports {
|
|
|
1955
1979
|
|
|
1956
1980
|
|
|
1957
1981
|
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
|
|
1958
1985
|
declare module ToolboxCategory {
|
|
1959
1986
|
|
|
1960
1987
|
/**
|