blockly 9.2.1 → 9.3.0

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.
Files changed (299) hide show
  1. package/blockly.min.js +1615 -1509
  2. package/blockly_compressed.js +1249 -1136
  3. package/blockly_compressed.js.map +1 -1
  4. package/blocks_compressed.js +166 -173
  5. package/blocks_compressed.js.map +1 -1
  6. package/core/any_aliases.d.ts +5 -0
  7. package/core/block.d.ts +49 -17
  8. package/core/block_animations.d.ts +0 -4
  9. package/core/block_dragger.d.ts +1 -6
  10. package/core/block_svg.d.ts +58 -8
  11. package/core/blockly.d.ts +27 -58
  12. package/core/blockly_options.d.ts +0 -2
  13. package/core/blocks.d.ts +0 -2
  14. package/core/browser_events.d.ts +0 -9
  15. package/core/bubble.d.ts +0 -2
  16. package/core/bubble_dragger.d.ts +0 -2
  17. package/core/bump_objects.d.ts +0 -3
  18. package/core/clipboard.d.ts +0 -3
  19. package/core/comment.d.ts +6 -10
  20. package/core/common.d.ts +0 -12
  21. package/core/component_manager.d.ts +0 -2
  22. package/core/connection.d.ts +19 -6
  23. package/core/connection_checker.d.ts +1 -3
  24. package/core/connection_db.d.ts +0 -2
  25. package/core/connection_type.d.ts +0 -2
  26. package/core/constants.d.ts +0 -4
  27. package/core/contextmenu.d.ts +0 -11
  28. package/core/contextmenu_items.d.ts +0 -27
  29. package/core/contextmenu_registry.d.ts +0 -2
  30. package/core/css.d.ts +0 -2
  31. package/core/delete_area.d.ts +0 -2
  32. package/core/dialog.d.ts +0 -6
  33. package/core/drag_target.d.ts +0 -2
  34. package/core/events/events.d.ts +2 -22
  35. package/core/events/events_abstract.d.ts +7 -3
  36. package/core/events/events_block_base.d.ts +2 -3
  37. package/core/events/events_block_change.d.ts +9 -3
  38. package/core/events/events_block_create.d.ts +6 -4
  39. package/core/events/events_block_delete.d.ts +7 -4
  40. package/core/events/events_block_drag.d.ts +7 -3
  41. package/core/events/events_block_move.d.ts +20 -3
  42. package/core/events/events_bubble_open.d.ts +3 -2
  43. package/core/events/events_click.d.ts +6 -3
  44. package/core/events/events_comment_base.d.ts +1 -2
  45. package/core/events/events_comment_change.d.ts +3 -3
  46. package/core/events/events_comment_create.d.ts +2 -3
  47. package/core/events/events_comment_delete.d.ts +2 -3
  48. package/core/events/events_comment_move.d.ts +4 -4
  49. package/core/events/events_marker_move.d.ts +10 -3
  50. package/core/events/events_selected.d.ts +6 -2
  51. package/core/events/events_theme_change.d.ts +2 -3
  52. package/core/events/events_toolbox_item_select.d.ts +3 -3
  53. package/core/events/events_trashcan_open.d.ts +5 -3
  54. package/core/events/events_ui.d.ts +0 -1
  55. package/core/events/events_ui_base.d.ts +0 -2
  56. package/core/events/events_var_base.d.ts +1 -2
  57. package/core/events/events_var_create.d.ts +3 -3
  58. package/core/events/events_var_delete.d.ts +4 -2
  59. package/core/events/events_var_rename.d.ts +4 -2
  60. package/core/events/events_viewport.d.ts +13 -2
  61. package/core/events/utils.d.ts +0 -89
  62. package/core/events/workspace_events.d.ts +2 -6
  63. package/core/extensions.d.ts +0 -8
  64. package/core/field.d.ts +55 -21
  65. package/core/field_angle.d.ts +61 -51
  66. package/core/field_checkbox.d.ts +34 -15
  67. package/core/field_colour.d.ts +56 -46
  68. package/core/field_dropdown.d.ts +35 -19
  69. package/core/field_image.d.ts +10 -14
  70. package/core/field_input.d.ts +39 -25
  71. package/core/field_label.d.ts +7 -10
  72. package/core/field_label_serializable.d.ts +4 -6
  73. package/core/field_multilineinput.d.ts +36 -14
  74. package/core/field_number.d.ts +27 -19
  75. package/core/field_registry.d.ts +0 -3
  76. package/core/field_textinput.d.ts +36 -8
  77. package/core/field_variable.d.ts +30 -18
  78. package/core/flyout_base.d.ts +5 -6
  79. package/core/flyout_button.d.ts +2 -2
  80. package/core/flyout_horizontal.d.ts +0 -2
  81. package/core/flyout_metrics_manager.d.ts +0 -2
  82. package/core/flyout_vertical.d.ts +0 -2
  83. package/core/generator.d.ts +0 -1
  84. package/core/gesture.d.ts +5 -18
  85. package/core/grid.d.ts +0 -2
  86. package/core/icon.d.ts +0 -2
  87. package/core/inject.d.ts +0 -1
  88. package/core/input.d.ts +0 -3
  89. package/core/input_types.d.ts +0 -2
  90. package/core/insertion_marker_manager.d.ts +6 -6
  91. package/core/interfaces/i_ast_node_location.d.ts +0 -2
  92. package/core/interfaces/i_ast_node_location_svg.d.ts +0 -2
  93. package/core/interfaces/i_ast_node_location_with_block.d.ts +0 -2
  94. package/core/interfaces/i_autohideable.d.ts +0 -2
  95. package/core/interfaces/i_block_dragger.d.ts +0 -2
  96. package/core/interfaces/i_bounded_element.d.ts +0 -2
  97. package/core/interfaces/i_bubble.d.ts +0 -2
  98. package/core/interfaces/i_collapsible_toolbox_item.d.ts +0 -2
  99. package/core/interfaces/i_component.d.ts +0 -2
  100. package/core/interfaces/i_connection_checker.d.ts +0 -2
  101. package/core/interfaces/i_contextmenu.d.ts +0 -1
  102. package/core/interfaces/i_copyable.d.ts +3 -2
  103. package/core/interfaces/i_deletable.d.ts +0 -2
  104. package/core/interfaces/i_delete_area.d.ts +0 -2
  105. package/core/interfaces/i_drag_target.d.ts +0 -2
  106. package/core/interfaces/i_draggable.d.ts +0 -2
  107. package/core/interfaces/i_flyout.d.ts +0 -2
  108. package/core/interfaces/i_keyboard_accessible.d.ts +0 -2
  109. package/core/interfaces/i_legacy_procedure_blocks.d.ts +34 -0
  110. package/core/interfaces/i_metrics_manager.d.ts +8 -8
  111. package/core/interfaces/i_movable.d.ts +0 -2
  112. package/core/interfaces/i_positionable.d.ts +0 -2
  113. package/core/interfaces/i_procedure_block.d.ts +3 -0
  114. package/core/interfaces/i_procedure_model.d.ts +0 -5
  115. package/core/interfaces/i_registrable.d.ts +0 -2
  116. package/core/interfaces/i_selectable.d.ts +0 -2
  117. package/core/interfaces/i_selectable_toolbox_item.d.ts +4 -2
  118. package/core/interfaces/i_serializer.d.ts +0 -2
  119. package/core/interfaces/i_styleable.d.ts +0 -2
  120. package/core/interfaces/i_toolbox.d.ts +0 -2
  121. package/core/interfaces/i_toolbox_item.d.ts +0 -2
  122. package/core/interfaces/i_variable_backed_parameter_model.d.ts +17 -0
  123. package/core/internal_constants.d.ts +0 -5
  124. package/core/keyboard_nav/ast_node.d.ts +0 -3
  125. package/core/keyboard_nav/basic_cursor.d.ts +0 -3
  126. package/core/keyboard_nav/cursor.d.ts +0 -3
  127. package/core/keyboard_nav/marker.d.ts +0 -2
  128. package/core/keyboard_nav/tab_navigate_cursor.d.ts +0 -2
  129. package/core/marker_manager.d.ts +0 -2
  130. package/core/menu.d.ts +0 -2
  131. package/core/menuitem.d.ts +0 -2
  132. package/core/metrics_manager.d.ts +8 -8
  133. package/core/mutator.d.ts +0 -2
  134. package/core/names.d.ts +0 -3
  135. package/core/{procedures/observable_procedure_map.d.ts → observable_procedure_map.d.ts} +4 -5
  136. package/core/options.d.ts +0 -2
  137. package/core/positionable_helpers.d.ts +0 -7
  138. package/core/procedures.d.ts +7 -28
  139. package/core/registry.d.ts +0 -11
  140. package/core/render_management.d.ts +15 -0
  141. package/core/rendered_connection.d.ts +22 -9
  142. package/core/renderers/common/block_rendering.d.ts +0 -3
  143. package/core/renderers/common/constants.d.ts +6 -51
  144. package/core/renderers/common/debug.d.ts +0 -3
  145. package/core/renderers/common/debugger.d.ts +9 -23
  146. package/core/renderers/common/drawer.d.ts +0 -5
  147. package/core/renderers/common/i_path_object.d.ts +0 -17
  148. package/core/renderers/common/info.d.ts +2 -12
  149. package/core/renderers/common/marker_svg.d.ts +2 -4
  150. package/core/renderers/common/path_object.d.ts +0 -24
  151. package/core/renderers/common/renderer.d.ts +5 -20
  152. package/core/renderers/geras/constants.d.ts +0 -5
  153. package/core/renderers/geras/drawer.d.ts +2 -4
  154. package/core/renderers/geras/highlight_constants.d.ts +6 -17
  155. package/core/renderers/geras/highlighter.d.ts +0 -13
  156. package/core/renderers/geras/info.d.ts +2 -5
  157. package/core/renderers/geras/measurables/inline_input.d.ts +0 -3
  158. package/core/renderers/geras/measurables/statement_input.d.ts +0 -3
  159. package/core/renderers/geras/path_object.d.ts +0 -8
  160. package/core/renderers/geras/renderer.d.ts +5 -7
  161. package/core/renderers/measurables/base.d.ts +0 -3
  162. package/core/renderers/measurables/bottom_row.d.ts +0 -9
  163. package/core/renderers/measurables/connection.d.ts +0 -3
  164. package/core/renderers/measurables/external_value_input.d.ts +0 -3
  165. package/core/renderers/measurables/field.d.ts +0 -3
  166. package/core/renderers/measurables/hat.d.ts +0 -3
  167. package/core/renderers/measurables/icon.d.ts +2 -5
  168. package/core/renderers/measurables/in_row_spacer.d.ts +0 -3
  169. package/core/renderers/measurables/inline_input.d.ts +1 -4
  170. package/core/renderers/measurables/input_connection.d.ts +1 -4
  171. package/core/renderers/measurables/input_row.d.ts +0 -7
  172. package/core/renderers/measurables/jagged_edge.d.ts +2 -5
  173. package/core/renderers/measurables/next_connection.d.ts +0 -3
  174. package/core/renderers/measurables/output_connection.d.ts +0 -3
  175. package/core/renderers/measurables/previous_connection.d.ts +0 -3
  176. package/core/renderers/measurables/round_corner.d.ts +0 -3
  177. package/core/renderers/measurables/row.d.ts +0 -39
  178. package/core/renderers/measurables/spacer_row.d.ts +0 -3
  179. package/core/renderers/measurables/square_corner.d.ts +0 -3
  180. package/core/renderers/measurables/statement_input.d.ts +0 -3
  181. package/core/renderers/measurables/top_row.d.ts +0 -6
  182. package/core/renderers/measurables/types.d.ts +0 -31
  183. package/core/renderers/minimalist/constants.d.ts +2 -4
  184. package/core/renderers/minimalist/drawer.d.ts +0 -3
  185. package/core/renderers/minimalist/info.d.ts +0 -4
  186. package/core/renderers/minimalist/renderer.d.ts +0 -3
  187. package/core/renderers/thrasos/info.d.ts +0 -4
  188. package/core/renderers/thrasos/renderer.d.ts +3 -3
  189. package/core/renderers/zelos/constants.d.ts +3 -17
  190. package/core/renderers/zelos/drawer.d.ts +0 -3
  191. package/core/renderers/zelos/info.d.ts +0 -4
  192. package/core/renderers/zelos/marker_svg.d.ts +0 -2
  193. package/core/renderers/zelos/measurables/bottom_row.d.ts +0 -3
  194. package/core/renderers/zelos/measurables/inputs.d.ts +0 -3
  195. package/core/renderers/zelos/measurables/row_elements.d.ts +0 -3
  196. package/core/renderers/zelos/measurables/top_row.d.ts +0 -3
  197. package/core/renderers/zelos/path_object.d.ts +0 -9
  198. package/core/renderers/zelos/renderer.d.ts +3 -5
  199. package/core/scrollbar.d.ts +0 -2
  200. package/core/scrollbar_pair.d.ts +0 -2
  201. package/core/serialization/blocks.d.ts +3 -9
  202. package/core/serialization/exceptions.d.ts +0 -8
  203. package/core/serialization/priorities.d.ts +0 -4
  204. package/core/serialization/procedures.d.ts +0 -7
  205. package/core/serialization/registry.d.ts +0 -2
  206. package/core/serialization/variables.d.ts +0 -4
  207. package/core/serialization/workspaces.d.ts +0 -2
  208. package/core/shortcut_items.d.ts +0 -17
  209. package/core/shortcut_registry.d.ts +0 -2
  210. package/core/sprites.d.ts +0 -2
  211. package/core/theme/classic.d.ts +0 -2
  212. package/core/theme/zelos.d.ts +0 -2
  213. package/core/theme.d.ts +0 -2
  214. package/core/theme_manager.d.ts +3 -6
  215. package/core/toolbox/category.d.ts +5 -7
  216. package/core/toolbox/collapsible_category.d.ts +0 -4
  217. package/core/toolbox/separator.d.ts +0 -2
  218. package/core/toolbox/toolbox.d.ts +2 -5
  219. package/core/toolbox/toolbox_item.d.ts +0 -2
  220. package/core/tooltip.d.ts +0 -29
  221. package/core/touch.d.ts +0 -13
  222. package/core/trashcan.d.ts +0 -2
  223. package/core/utils/aria.d.ts +0 -6
  224. package/core/utils/array.d.ts +0 -1
  225. package/core/utils/colour.d.ts +0 -12
  226. package/core/utils/coordinate.d.ts +0 -2
  227. package/core/utils/deprecation.d.ts +0 -1
  228. package/core/utils/dom.d.ts +0 -25
  229. package/core/utils/idgenerator.d.ts +0 -2
  230. package/core/utils/keycodes.d.ts +0 -2
  231. package/core/utils/math.d.ts +0 -3
  232. package/core/utils/metrics.d.ts +0 -1
  233. package/core/utils/object.d.ts +0 -4
  234. package/core/utils/parsing.d.ts +0 -4
  235. package/core/utils/rect.d.ts +0 -2
  236. package/core/utils/size.d.ts +0 -2
  237. package/core/utils/string.d.ts +0 -6
  238. package/core/utils/style.d.ts +0 -8
  239. package/core/utils/svg.d.ts +0 -2
  240. package/core/utils/svg_math.d.ts +0 -6
  241. package/core/utils/svg_paths.d.ts +0 -8
  242. package/core/utils/toolbox.d.ts +2 -35
  243. package/core/utils/useragent.d.ts +0 -8
  244. package/core/utils/xml.d.ts +9 -8
  245. package/core/utils.d.ts +0 -12
  246. package/core/variable_map.d.ts +1 -3
  247. package/core/variable_model.d.ts +0 -1
  248. package/core/variables.d.ts +13 -17
  249. package/core/variables_dynamic.d.ts +0 -4
  250. package/core/warning.d.ts +0 -2
  251. package/core/widgetdiv.d.ts +0 -10
  252. package/core/workspace.d.ts +3 -3
  253. package/core/workspace_audio.d.ts +0 -2
  254. package/core/workspace_comment.d.ts +1 -3
  255. package/core/workspace_comment_svg.d.ts +1 -3
  256. package/core/workspace_dragger.d.ts +0 -2
  257. package/core/workspace_svg.d.ts +4 -7
  258. package/core/xml.d.ts +1 -13
  259. package/core/zoom_controls.d.ts +4 -15
  260. package/dart_compressed.js +199 -199
  261. package/dart_compressed.js.map +1 -1
  262. package/javascript_compressed.js +168 -168
  263. package/javascript_compressed.js.map +1 -1
  264. package/lua_compressed.js +211 -211
  265. package/lua_compressed.js.map +1 -1
  266. package/msg/bn.js +2 -2
  267. package/msg/bs.js +7 -7
  268. package/msg/de.js +1 -1
  269. package/msg/fi.js +1 -1
  270. package/msg/fr.js +3 -3
  271. package/msg/ia.js +5 -5
  272. package/msg/kn.js +5 -5
  273. package/msg/ko.js +1 -1
  274. package/msg/lb.js +22 -22
  275. package/msg/sd.js +9 -9
  276. package/msg/skr-arab.js +2 -2
  277. package/msg/sl.js +18 -18
  278. package/msg/sw.js +1 -1
  279. package/msg/zh-hans.js +6 -6
  280. package/msg/zh-hant.js +2 -2
  281. package/package.json +9 -9
  282. package/php_compressed.js +185 -185
  283. package/php_compressed.js.map +1 -1
  284. package/python_compressed.js +138 -138
  285. package/python_compressed.js.map +1 -1
  286. package/core/events/events_procedure_base.d.ts +0 -26
  287. package/core/events/events_procedure_change_return.d.ts +0 -40
  288. package/core/events/events_procedure_create.d.ts +0 -34
  289. package/core/events/events_procedure_delete.d.ts +0 -32
  290. package/core/events/events_procedure_enable.d.ts +0 -34
  291. package/core/events/events_procedure_parameter_base.d.ts +0 -26
  292. package/core/events/events_procedure_parameter_create.d.ts +0 -42
  293. package/core/events/events_procedure_parameter_delete.d.ts +0 -41
  294. package/core/events/events_procedure_parameter_rename.d.ts +0 -36
  295. package/core/events/events_procedure_rename.d.ts +0 -35
  296. package/core/procedures/observable_parameter_model.d.ts +0 -62
  297. package/core/procedures/observable_procedure_model.d.ts +0 -75
  298. package/core/procedures/update_procedures.d.ts +0 -13
  299. package/core/utils/sentinel.d.ts +0 -13
@@ -12,22 +12,18 @@ import type { Renderer } from './renderer.js';
12
12
  * This measure pass does not propagate changes to the block (although fields
13
13
  * may choose to rerender when getSize() is called). However, calling it
14
14
  * repeatedly may be expensive.
15
- *
16
- * @alias Blockly.minimalist.RenderInfo
17
15
  */
18
16
  export declare class RenderInfo extends BaseRenderInfo {
19
17
  protected renderer_: Renderer;
20
18
  /**
21
19
  * @param renderer The renderer in use.
22
20
  * @param block The block to measure.
23
- * @internal
24
21
  */
25
22
  constructor(renderer: Renderer, block: BlockSvg);
26
23
  /**
27
24
  * Get the block renderer in use.
28
25
  *
29
26
  * @returns The block renderer in use.
30
- * @internal
31
27
  */
32
28
  getRenderer(): Renderer;
33
29
  }
@@ -11,13 +11,10 @@ import { Drawer } from './drawer.js';
11
11
  import { RenderInfo } from './info.js';
12
12
  /**
13
13
  * The minimalist renderer.
14
- *
15
- * @alias Blockly.minimalist.Renderer
16
14
  */
17
15
  export declare class Renderer extends BaseRenderer {
18
16
  /**
19
17
  * @param name The renderer name.
20
- * @internal
21
18
  */
22
19
  constructor(name: string);
23
20
  /**
@@ -14,22 +14,18 @@ import type { Renderer } from './renderer.js';
14
14
  * This measure pass does not propagate changes to the block (although fields
15
15
  * may choose to rerender when getSize() is called). However, calling it
16
16
  * repeatedly may be expensive.
17
- *
18
- * @alias Blockly.thrasos.RenderInfo
19
17
  */
20
18
  export declare class RenderInfo extends BaseRenderInfo {
21
19
  protected renderer_: Renderer;
22
20
  /**
23
21
  * @param renderer The renderer in use.
24
22
  * @param block The block to measure.
25
- * @internal
26
23
  */
27
24
  constructor(renderer: Renderer, block: BlockSvg);
28
25
  /**
29
26
  * Get the block renderer in use.
30
27
  *
31
28
  * @returns The block renderer in use.
32
- * @internal
33
29
  */
34
30
  getRenderer(): Renderer;
35
31
  addElemSpacing_(): void;
@@ -7,14 +7,14 @@ import type { BlockSvg } from '../../block_svg.js';
7
7
  import { Renderer as BaseRenderer } from '../common/renderer.js';
8
8
  import { RenderInfo } from './info.js';
9
9
  /**
10
- * The thrasos renderer.
10
+ * The thrasos renderer. This is a more modern take on the legacy geras
11
+ * renderer.
11
12
  *
12
- * @alias Blockly.thrasos.Renderer
13
+ * Thrasos is the ancient Greek spirit of boldness.
13
14
  */
14
15
  export declare class Renderer extends BaseRenderer {
15
16
  /**
16
17
  * @param name The renderer name.
17
- * @internal
18
18
  */
19
19
  constructor(name: string);
20
20
  /**
@@ -20,8 +20,6 @@ export interface InsideCorners {
20
20
  }
21
21
  /**
22
22
  * An object that provides constants for rendering blocks in Zelos mode.
23
- *
24
- * @alias Blockly.zelos.ConstantProvider
25
23
  */
26
24
  export declare class ConstantProvider extends BaseConstantProvider {
27
25
  GRID_UNIT: number;
@@ -29,8 +27,6 @@ export declare class ConstantProvider extends BaseConstantProvider {
29
27
  CURSOR_COLOUR: string;
30
28
  /**
31
29
  * Radius of the cursor for input and output connections.
32
- *
33
- * @internal
34
30
  */
35
31
  CURSOR_RADIUS: number;
36
32
  JAGGED_TEETH_HEIGHT: number;
@@ -50,8 +46,6 @@ export declare class ConstantProvider extends BaseConstantProvider {
50
46
  * When a block with the outer shape contains an input block with the inner
51
47
  * shape on its left or right edge, the block elements are aligned such that
52
48
  * the padding specified is reached.
53
- *
54
- * @internal
55
49
  */
56
50
  SHAPE_IN_SHAPE_PADDING: {
57
51
  [key: number]: {
@@ -78,8 +72,6 @@ export declare class ConstantProvider extends BaseConstantProvider {
78
72
  /**
79
73
  * The ID of the selected glow filter, or the empty string if no filter is
80
74
  * set.
81
- *
82
- * @internal
83
75
  */
84
76
  selectedGlowFilterId: string;
85
77
  /**
@@ -89,8 +81,6 @@ export declare class ConstantProvider extends BaseConstantProvider {
89
81
  /**
90
82
  * The ID of the replacement glow filter, or the empty string if no filter
91
83
  * is set.
92
- *
93
- * @internal
94
84
  */
95
85
  replacementGlowFilterId: string;
96
86
  /**
@@ -112,7 +102,6 @@ export declare class ConstantProvider extends BaseConstantProvider {
112
102
  * rectangular reporter block. Null before init is called.
113
103
  */
114
104
  SQUARED: Shape | null;
115
- /** @internal */
116
105
  constructor();
117
106
  setFontConstants_(theme: Theme): void;
118
107
  init(): void;
@@ -128,25 +117,22 @@ export declare class ConstantProvider extends BaseConstantProvider {
128
117
  *
129
118
  * @returns An object containing sizing and path information about a hexagonal
130
119
  * shape for connections.
131
- * @internal
132
120
  */
133
- makeHexagonal(): Shape;
121
+ protected makeHexagonal(): Shape;
134
122
  /**
135
123
  * Create sizing and path information about a rounded shape.
136
124
  *
137
125
  * @returns An object containing sizing and path information about a rounded
138
126
  * shape for connections.
139
- * @internal
140
127
  */
141
- makeRounded(): Shape;
128
+ protected makeRounded(): Shape;
142
129
  /**
143
130
  * Create sizing and path information about a squared shape.
144
131
  *
145
132
  * @returns An object containing sizing and path information about a squared
146
133
  * shape for connections.
147
- * @internal
148
134
  */
149
- makeSquared(): Shape;
135
+ protected makeSquared(): Shape;
150
136
  shapeFor(connection: RenderedConnection): Shape;
151
137
  makeNotch(): {
152
138
  type: number;
@@ -10,8 +10,6 @@ import type { Row } from '../measurables/row.js';
10
10
  import type { RenderInfo } from './info.js';
11
11
  /**
12
12
  * An object that draws a block based on the given rendering information.
13
- *
14
- * @alias Blockly.zelos.Drawer
15
13
  */
16
14
  export declare class Drawer extends BaseDrawer {
17
15
  info_: RenderInfo;
@@ -19,7 +17,6 @@ export declare class Drawer extends BaseDrawer {
19
17
  * @param block The block to render.
20
18
  * @param info An object containing all information needed to render this
21
19
  * block.
22
- * @internal
23
20
  */
24
21
  constructor(block: BlockSvg, info: RenderInfo);
25
22
  draw(): void;
@@ -19,8 +19,6 @@ import type { Renderer } from './renderer.js';
19
19
  * This measure pass does not propagate changes to the block (although fields
20
20
  * may choose to rerender when getSize() is called). However, calling it
21
21
  * repeatedly may be expensive.
22
- *
23
- * @alias Blockly.zelos.RenderInfo
24
22
  */
25
23
  export declare class RenderInfo extends BaseRenderInfo {
26
24
  topRow: TopRow;
@@ -35,14 +33,12 @@ export declare class RenderInfo extends BaseRenderInfo {
35
33
  /**
36
34
  * @param renderer The renderer in use.
37
35
  * @param block The block to measure.
38
- * @internal
39
36
  */
40
37
  constructor(renderer: Renderer, block: BlockSvg);
41
38
  /**
42
39
  * Get the block renderer in use.
43
40
  *
44
41
  * @returns The block renderer in use.
45
- * @internal
46
42
  */
47
43
  getRenderer(): Renderer;
48
44
  measure(): void;
@@ -11,8 +11,6 @@ import { MarkerSvg as BaseMarkerSvg } from '../common/marker_svg.js';
11
11
  import type { ConstantProvider as ZelosConstantProvider } from './constants.js';
12
12
  /**
13
13
  * Class to draw a marker.
14
- *
15
- * @alias Blockly.zelos.MarkerSvg
16
14
  */
17
15
  export declare class MarkerSvg extends BaseMarkerSvg {
18
16
  constants_: ZelosConstantProvider;
@@ -11,13 +11,10 @@ import { BottomRow as BaseBottomRow } from '../../../renderers/measurables/botto
11
11
  * a block as well as spacing information for the top row.
12
12
  * Elements in a bottom row can consist of corners, spacers and next
13
13
  * connections.
14
- *
15
- * @alias Blockly.zelos.BottomRow
16
14
  */
17
15
  export declare class BottomRow extends BaseBottomRow {
18
16
  /**
19
17
  * @param constants The rendering constants provider.
20
- * @internal
21
18
  */
22
19
  constructor(constants: ConstantProvider);
23
20
  endsWithElemSpacer(): boolean;
@@ -9,15 +9,12 @@ import { StatementInput as BaseStatementInput } from '../../../renderers/measura
9
9
  /**
10
10
  * An object containing information about the space a statement input takes up
11
11
  * during rendering.
12
- *
13
- * @alias Blockly.zelos.StatementInput
14
12
  */
15
13
  export declare class StatementInput extends BaseStatementInput {
16
14
  connectedBottomNextConnection: boolean;
17
15
  /**
18
16
  * @param constants The rendering constants provider.
19
17
  * @param input The statement input to measure and store information for.
20
- * @internal
21
18
  */
22
19
  constructor(constants: ConstantProvider, input: Input);
23
20
  }
@@ -8,15 +8,12 @@ import { Measurable } from '../../../renderers/measurables/base.js';
8
8
  /**
9
9
  * An object containing information about the space a right connection shape
10
10
  * takes up during rendering.
11
- *
12
- * @alias Blockly.zelos.RightConnectionShape
13
11
  */
14
12
  export declare class RightConnectionShape extends Measurable {
15
13
  height: number;
16
14
  width: number;
17
15
  /**
18
16
  * @param constants The rendering constants provider.
19
- * @internal
20
17
  */
21
18
  constructor(constants: ConstantProvider);
22
19
  }
@@ -13,13 +13,10 @@ import { TopRow as BaseTopRow } from '../../../renderers/measurables/top_row.js'
13
13
  * connections.
14
14
  * After this constructor is called, the row will contain all non-spacer
15
15
  * elements it needs.
16
- *
17
- * @alias Blockly.zelos.TopRow
18
16
  */
19
17
  export declare class TopRow extends BaseTopRow {
20
18
  /**
21
19
  * @param constants The rendering constants provider.
22
- * @internal
23
20
  */
24
21
  constructor(constants: ConstantProvider);
25
22
  endsWithElemSpacer(): boolean;
@@ -11,8 +11,6 @@ import type { ConstantProvider } from './constants.js';
11
11
  /**
12
12
  * An object that handles creating and setting each of the SVG elements
13
13
  * used by the renderer.
14
- *
15
- * @alias Blockly.zelos.PathObject
16
14
  */
17
15
  export declare class PathObject extends BasePathObject {
18
16
  /** The selected path of the block. */
@@ -31,13 +29,11 @@ export declare class PathObject extends BasePathObject {
31
29
  * with an output connection is drawn.
32
30
  */
33
31
  outputShapeType: number | null;
34
- /** @internal */
35
32
  constants: ConstantProvider;
36
33
  /**
37
34
  * @param root The root SVG element.
38
35
  * @param style The style object to use for colouring.
39
36
  * @param constants The renderer's constants.
40
- * @internal
41
37
  */
42
38
  constructor(root: SVGElement, style: BlockStyle, constants: ConstantProvider);
43
39
  setPath(pathString: string): void;
@@ -48,14 +44,10 @@ export declare class PathObject extends BasePathObject {
48
44
  updateShapeForInputHighlight(conn: Connection, enable: boolean): void;
49
45
  /**
50
46
  * Method that's called when the drawer is about to draw the block.
51
- *
52
- * @internal
53
47
  */
54
48
  beginDrawing(): void;
55
49
  /**
56
50
  * Method that's called when the drawer is done drawing.
57
- *
58
- * @internal
59
51
  */
60
52
  endDrawing(): void;
61
53
  /**
@@ -64,7 +56,6 @@ export declare class PathObject extends BasePathObject {
64
56
  *
65
57
  * @param name The input name.
66
58
  * @param pathString The path.
67
- * @internal
68
59
  */
69
60
  setOutlinePath(name: string, pathString: string): void;
70
61
  /**
@@ -18,15 +18,15 @@ import { RenderInfo } from './info.js';
18
18
  import { MarkerSvg } from './marker_svg.js';
19
19
  import { PathObject } from './path_object.js';
20
20
  /**
21
- * The zelos renderer.
21
+ * The zelos renderer. This renderer emulates Scratch-style and MakeCode-style
22
+ * rendering.
22
23
  *
23
- * @alias Blockly.zelos.Renderer
24
+ * Zelos is the ancient Greek spirit of rivalry and emulation.
24
25
  */
25
26
  export declare class Renderer extends BaseRenderer {
26
27
  protected constants_: ConstantProvider;
27
28
  /**
28
29
  * @param name The renderer name.
29
- * @internal
30
30
  */
31
31
  constructor(name: string);
32
32
  /**
@@ -57,7 +57,6 @@ export declare class Renderer extends BaseRenderer {
57
57
  * @param workspace The workspace the cursor belongs to.
58
58
  * @param marker The marker.
59
59
  * @returns The object in charge of drawing the marker.
60
- * @internal
61
60
  */
62
61
  makeMarkerDrawer(workspace: WorkspaceSvg, marker: Marker): MarkerSvg;
63
62
  /**
@@ -66,7 +65,6 @@ export declare class Renderer extends BaseRenderer {
66
65
  * @param root The root SVG element.
67
66
  * @param style The style object to use for colouring.
68
67
  * @returns The renderer path object.
69
- * @internal
70
68
  */
71
69
  makePathObject(root: SVGElement, style: BlockStyle): PathObject;
72
70
  /**
@@ -15,8 +15,6 @@ import type { WorkspaceSvg } from './workspace_svg.js';
15
15
  * Class for a pure SVG scrollbar.
16
16
  * This technique offers a scrollbar that is guaranteed to work, but may not
17
17
  * look or behave like the system's scrollbars.
18
- *
19
- * @alias Blockly.Scrollbar
20
18
  */
21
19
  export declare class Scrollbar {
22
20
  private workspace;
@@ -8,8 +8,6 @@ import type { Metrics } from './utils/metrics.js';
8
8
  import type { WorkspaceSvg } from './workspace_svg.js';
9
9
  /**
10
10
  * Class for a pair of scrollbars. Horizontal and vertical.
11
- *
12
- * @alias Blockly.ScrollbarPair
13
11
  */
14
12
  export declare class ScrollbarPair {
15
13
  private workspace;
@@ -9,8 +9,6 @@ import type { ISerializer } from '../interfaces/i_serializer.js';
9
9
  import type { Workspace } from '../workspace.js';
10
10
  /**
11
11
  * Represents the state of a connection.
12
- *
13
- * @alias Blockly.serialization.blocks.ConnectionState
14
12
  */
15
13
  export interface ConnectionState {
16
14
  shadow: State | undefined;
@@ -18,8 +16,6 @@ export interface ConnectionState {
18
16
  }
19
17
  /**
20
18
  * Represents the state of a given block.
21
- *
22
- * @alias Blockly.serialization.blocks.State
23
19
  */
24
20
  export interface State {
25
21
  type: string;
@@ -27,6 +23,9 @@ export interface State {
27
23
  x?: number;
28
24
  y?: number;
29
25
  collapsed?: boolean;
26
+ deletable?: boolean;
27
+ movable?: boolean;
28
+ editable?: boolean;
30
29
  enabled?: boolean;
31
30
  inline?: boolean;
32
31
  data?: string;
@@ -58,7 +57,6 @@ export interface State {
58
57
  * exist. True by default.
59
58
  * @returns The serialized state of the block, or null if the block could not be
60
59
  * serialied (eg it was an insertion marker).
61
- * @alias Blockly.serialization.blocks.save
62
60
  */
63
61
  export declare function save(block: Block, { addCoordinates, addInputBlocks, addNextBlocks, doFullSerialization, }?: {
64
62
  addCoordinates?: boolean;
@@ -74,7 +72,6 @@ export declare function save(block: Block, { addCoordinates, addInputBlocks, add
74
72
  * @param param1 recordUndo: If true, events triggered by this function will be
75
73
  * undo-able by the user. False by default.
76
74
  * @returns The block that was just loaded.
77
- * @alias Blockly.serialization.blocks.append
78
75
  */
79
76
  export declare function append(state: State, workspace: Workspace, { recordUndo }?: {
80
77
  recordUndo?: boolean;
@@ -94,7 +91,6 @@ export declare function append(state: State, workspace: Workspace, { recordUndo
94
91
  * it is created. False by default. recordUndo: If true, events triggered by
95
92
  * this function will be undo-able by the user. False by default.
96
93
  * @returns The block that was just appended.
97
- * @alias Blockly.serialization.blocks.appendInternal
98
94
  * @internal
99
95
  */
100
96
  export declare function appendInternal(state: State, workspace: Workspace, { parentConnection, isShadow, recordUndo }?: {
@@ -104,8 +100,6 @@ export declare function appendInternal(state: State, workspace: Workspace, { par
104
100
  }): Block;
105
101
  /**
106
102
  * Serializer for saving and loading block state.
107
- *
108
- * @alias Blockly.serialization.blocks.BlockSerializer
109
103
  */
110
104
  export declare class BlockSerializer implements ISerializer {
111
105
  priority: number;
@@ -5,14 +5,12 @@
5
5
  */
6
6
  import type { Block } from '../block.js';
7
7
  import type { State } from './blocks.js';
8
- /** @alias Blockly.serialization.exceptions.DeserializationError */
9
8
  export declare class DeserializationError extends Error {
10
9
  }
11
10
  /**
12
11
  * Represents an error where the serialized state is expected to provide a
13
12
  * block type, but it is not provided.
14
13
  *
15
- * @alias Blockly.serialization.exceptions.MissingBlockType
16
14
  */
17
15
  export declare class MissingBlockType extends DeserializationError {
18
16
  state: State;
@@ -25,8 +23,6 @@ export declare class MissingBlockType extends DeserializationError {
25
23
  /**
26
24
  * Represents an error where deserialization encountered a block that did
27
25
  * not have a connection that was defined in the serialized state.
28
- *
29
- * @alias Blockly.serialization.exceptions.MissingConnection
30
26
  */
31
27
  export declare class MissingConnection extends DeserializationError {
32
28
  block: Block;
@@ -43,8 +39,6 @@ export declare class MissingConnection extends DeserializationError {
43
39
  /**
44
40
  * Represents an error where deserialization tried to connect two connections
45
41
  * that were not compatible.
46
- *
47
- * @alias Blockly.serialization.exceptions.BadConnectionCheck
48
42
  */
49
43
  export declare class BadConnectionCheck extends DeserializationError {
50
44
  childBlock: Block;
@@ -64,8 +58,6 @@ export declare class BadConnectionCheck extends DeserializationError {
64
58
  * was deserializing children of a shadow.
65
59
  * This is an error because it is an invariant of Blockly that shadow blocks
66
60
  * do not have real children.
67
- *
68
- * @alias Blockly.serialization.exceptions.RealChildOfShadow
69
61
  */
70
62
  export declare class RealChildOfShadow extends DeserializationError {
71
63
  state: State;
@@ -5,8 +5,6 @@
5
5
  */
6
6
  /**
7
7
  * The priority for deserializing variables.
8
- *
9
- * @alias Blockly.serialization.priorities.VARIABLES
10
8
  */
11
9
  export declare const VARIABLES = 100;
12
10
  /**
@@ -15,8 +13,6 @@ export declare const VARIABLES = 100;
15
13
  export declare const PROCEDURES = 75;
16
14
  /**
17
15
  * The priority for deserializing blocks.
18
- *
19
- * @alias Blockly.serialization.priorities.BLOCKS
20
16
  */
21
17
  export declare const BLOCKS = 50;
22
18
  //# sourceMappingURL=priorities.d.ts.map
@@ -6,8 +6,6 @@
6
6
  import { IParameterModel } from '../interfaces/i_parameter_model.js';
7
7
  import { IProcedureModel } from '../interfaces/i_procedure_model.js';
8
8
  import type { ISerializer } from '../interfaces/i_serializer.js';
9
- import { ObservableProcedureModel } from '../procedures/observable_procedure_model.js';
10
- import { ObservableParameterModel } from '../procedures/observable_parameter_model.js';
11
9
  import type { Workspace } from '../workspace.js';
12
10
  /**
13
11
  * Representation of a procedure data model.
@@ -93,10 +91,5 @@ export declare class ProcedureSerializer<ProcedureModel extends IProcedureModel,
93
91
  /** Disposes of any procedure models that exist on the workspace. */
94
92
  clear(workspace: Workspace): void;
95
93
  }
96
- /**
97
- * A ProcedureSerializer that deserializes to create the built-in
98
- * ObservableProcedureModels and ObservableParameterModels.
99
- */
100
- export declare const observableProcedureSerializer: ProcedureSerializer<ObservableProcedureModel, ObservableParameterModel>;
101
94
  export {};
102
95
  //# sourceMappingURL=procedures.d.ts.map
@@ -10,14 +10,12 @@ import type { ISerializer } from '../interfaces/i_serializer.js';
10
10
  *
11
11
  * @param name The name of the serializer to register.
12
12
  * @param serializer The serializer to register.
13
- * @alias Blockly.serialization.registry.register
14
13
  */
15
14
  export declare function register(name: string, serializer: ISerializer): void;
16
15
  /**
17
16
  * Unregisters the serializer associated with the given name.
18
17
  *
19
18
  * @param name The name of the serializer to unregister.
20
- * @alias Blockly.serialization.registry.unregister
21
19
  */
22
20
  export declare function unregister(name: string): void;
23
21
  //# sourceMappingURL=registry.d.ts.map
@@ -7,8 +7,6 @@ import type { ISerializer } from '../interfaces/i_serializer.js';
7
7
  import type { Workspace } from '../workspace.js';
8
8
  /**
9
9
  * Represents the state of a given variable.
10
- *
11
- * @alias Blockly.serialization.variables.State
12
10
  */
13
11
  export interface State {
14
12
  name: string;
@@ -17,8 +15,6 @@ export interface State {
17
15
  }
18
16
  /**
19
17
  * Serializer for saving and loading variable state.
20
- *
21
- * @alias Blockly.serialization.variables.VariableSerializer
22
18
  */
23
19
  export declare class VariableSerializer implements ISerializer {
24
20
  priority: number;
@@ -9,7 +9,6 @@ import type { Workspace } from '../workspace.js';
9
9
  *
10
10
  * @param workspace The workspace to serialize.
11
11
  * @returns The serialized state of the workspace.
12
- * @alias Blockly.serialization.workspaces.save
13
12
  */
14
13
  export declare function save(workspace: Workspace): {
15
14
  [key: string]: any;
@@ -21,7 +20,6 @@ export declare function save(workspace: Workspace): {
21
20
  * @param workspace The workspace to add the new state to.
22
21
  * @param param1 recordUndo: If true, events triggered by this function will be
23
22
  * undo-able by the user. False by default.
24
- * @alias Blockly.serialization.workspaces.load
25
23
  */
26
24
  export declare function load(state: {
27
25
  [key: string]: any;
@@ -5,8 +5,6 @@
5
5
  */
6
6
  /**
7
7
  * Object holding the names of the default shortcut items.
8
- *
9
- * @alias Blockly.ShortcutItems.names
10
8
  */
11
9
  export declare enum names {
12
10
  ESCAPE = "escape",
@@ -19,52 +17,37 @@ export declare enum names {
19
17
  }
20
18
  /**
21
19
  * Keyboard shortcut to hide chaff on escape.
22
- *
23
- * @alias Blockly.ShortcutItems.registerEscape
24
20
  */
25
21
  export declare function registerEscape(): void;
26
22
  /**
27
23
  * Keyboard shortcut to delete a block on delete or backspace
28
- *
29
- * @alias Blockly.ShortcutItems.registerDelete
30
24
  */
31
25
  export declare function registerDelete(): void;
32
26
  /**
33
27
  * Keyboard shortcut to copy a block on ctrl+c, cmd+c, or alt+c.
34
- *
35
- * @alias Blockly.ShortcutItems.registerCopy
36
28
  */
37
29
  export declare function registerCopy(): void;
38
30
  /**
39
31
  * Keyboard shortcut to copy and delete a block on ctrl+x, cmd+x, or alt+x.
40
- *
41
- * @alias Blockly.ShortcutItems.registerCut
42
32
  */
43
33
  export declare function registerCut(): void;
44
34
  /**
45
35
  * Keyboard shortcut to paste a block on ctrl+v, cmd+v, or alt+v.
46
- *
47
- * @alias Blockly.ShortcutItems.registerPaste
48
36
  */
49
37
  export declare function registerPaste(): void;
50
38
  /**
51
39
  * Keyboard shortcut to undo the previous action on ctrl+z, cmd+z, or alt+z.
52
- *
53
- * @alias Blockly.ShortcutItems.registerUndo
54
40
  */
55
41
  export declare function registerUndo(): void;
56
42
  /**
57
43
  * Keyboard shortcut to redo the previous action on ctrl+shift+z, cmd+shift+z,
58
44
  * or alt+shift+z.
59
- *
60
- * @alias Blockly.ShortcutItems.registerRedo
61
45
  */
62
46
  export declare function registerRedo(): void;
63
47
  /**
64
48
  * Registers all default keyboard shortcut item. This should be called once per
65
49
  * instance of KeyboardShortcutRegistry.
66
50
  *
67
- * @alias Blockly.ShortcutItems.registerDefaultShortcuts
68
51
  * @internal
69
52
  */
70
53
  export declare function registerDefaultShortcuts(): void;
@@ -9,8 +9,6 @@ import type { Workspace } from './workspace.js';
9
9
  * Class for the registry of keyboard shortcuts. This is intended to be a
10
10
  * singleton. You should not create a new instance, and only access this class
11
11
  * from ShortcutRegistry.registry.
12
- *
13
- * @alias Blockly.ShortcutRegistry
14
12
  */
15
13
  export declare class ShortcutRegistry {
16
14
  static readonly registry: ShortcutRegistry;
package/core/sprites.d.ts CHANGED
@@ -6,8 +6,6 @@
6
6
  /**
7
7
  * Contains the path to a single png tat holds the images for the trashcan
8
8
  * as well as the zoom controls.
9
- *
10
- * @alias Blockly.sprite.SPRITE
11
9
  */
12
10
  export declare const SPRITE: {
13
11
  width: number;
@@ -7,8 +7,6 @@ import { Theme } from '../theme.js';
7
7
  /**
8
8
  * Classic theme.
9
9
  * Contains multi-coloured border to create shadow effect.
10
- *
11
- * @alias Blockly.Themes.Classic
12
10
  */
13
11
  export declare const Classic: Theme;
14
12
  //# sourceMappingURL=classic.d.ts.map
@@ -6,8 +6,6 @@
6
6
  import { Theme } from '../theme.js';
7
7
  /**
8
8
  * Zelos theme.
9
- *
10
- * @alias Blockly.Themes.Zelos
11
9
  */
12
10
  export declare const Zelos: Theme;
13
11
  //# sourceMappingURL=zelos.d.ts.map