blockly 9.3.0-beta.0 → 9.3.1

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 (282) hide show
  1. package/blockly.min.js +1674 -1520
  2. package/blockly_compressed.js +1313 -1152
  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_drag_surface.d.ts +135 -0
  10. package/core/block_dragger.d.ts +2 -7
  11. package/core/block_svg.d.ts +72 -9
  12. package/core/blockly.d.ts +29 -58
  13. package/core/blockly_options.d.ts +0 -2
  14. package/core/blocks.d.ts +0 -2
  15. package/core/browser_events.d.ts +0 -9
  16. package/core/bubble.d.ts +6 -4
  17. package/core/bubble_dragger.d.ts +2 -3
  18. package/core/bump_objects.d.ts +0 -3
  19. package/core/clipboard.d.ts +0 -3
  20. package/core/comment.d.ts +6 -10
  21. package/core/common.d.ts +0 -12
  22. package/core/component_manager.d.ts +0 -2
  23. package/core/connection.d.ts +19 -6
  24. package/core/connection_checker.d.ts +1 -3
  25. package/core/connection_db.d.ts +0 -2
  26. package/core/connection_type.d.ts +0 -2
  27. package/core/constants.d.ts +0 -4
  28. package/core/contextmenu.d.ts +0 -11
  29. package/core/contextmenu_items.d.ts +0 -27
  30. package/core/contextmenu_registry.d.ts +0 -2
  31. package/core/css.d.ts +0 -2
  32. package/core/delete_area.d.ts +0 -2
  33. package/core/dialog.d.ts +0 -6
  34. package/core/drag_target.d.ts +0 -2
  35. package/core/events/events_abstract.d.ts +0 -3
  36. package/core/events/events_block_base.d.ts +0 -2
  37. package/core/events/events_block_change.d.ts +0 -2
  38. package/core/events/events_block_create.d.ts +0 -2
  39. package/core/events/events_block_delete.d.ts +0 -2
  40. package/core/events/events_block_drag.d.ts +0 -2
  41. package/core/events/events_block_move.d.ts +0 -2
  42. package/core/events/events_bubble_open.d.ts +0 -2
  43. package/core/events/events_click.d.ts +0 -2
  44. package/core/events/events_comment_base.d.ts +0 -2
  45. package/core/events/events_comment_change.d.ts +0 -2
  46. package/core/events/events_comment_create.d.ts +0 -2
  47. package/core/events/events_comment_delete.d.ts +0 -2
  48. package/core/events/events_comment_move.d.ts +0 -2
  49. package/core/events/events_marker_move.d.ts +0 -2
  50. package/core/events/events_selected.d.ts +0 -2
  51. package/core/events/events_theme_change.d.ts +0 -2
  52. package/core/events/events_toolbox_item_select.d.ts +0 -2
  53. package/core/events/events_trashcan_open.d.ts +0 -2
  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 +0 -2
  57. package/core/events/events_var_create.d.ts +0 -2
  58. package/core/events/events_viewport.d.ts +0 -2
  59. package/core/events/utils.d.ts +0 -73
  60. package/core/events/workspace_events.d.ts +0 -2
  61. package/core/extensions.d.ts +0 -8
  62. package/core/field.d.ts +16 -15
  63. package/core/field_angle.d.ts +60 -50
  64. package/core/field_checkbox.d.ts +22 -10
  65. package/core/field_colour.d.ts +55 -42
  66. package/core/field_dropdown.d.ts +34 -18
  67. package/core/field_image.d.ts +9 -12
  68. package/core/field_input.d.ts +34 -11
  69. package/core/field_label.d.ts +7 -10
  70. package/core/field_label_serializable.d.ts +4 -6
  71. package/core/field_multilineinput.d.ts +34 -12
  72. package/core/field_number.d.ts +27 -19
  73. package/core/field_registry.d.ts +0 -3
  74. package/core/field_textinput.d.ts +28 -12
  75. package/core/field_variable.d.ts +28 -16
  76. package/core/flyout_base.d.ts +5 -6
  77. package/core/flyout_button.d.ts +2 -2
  78. package/core/flyout_horizontal.d.ts +0 -2
  79. package/core/flyout_metrics_manager.d.ts +0 -2
  80. package/core/flyout_vertical.d.ts +0 -2
  81. package/core/generator.d.ts +0 -1
  82. package/core/gesture.d.ts +4 -17
  83. package/core/grid.d.ts +0 -2
  84. package/core/icon.d.ts +0 -2
  85. package/core/inject.d.ts +0 -1
  86. package/core/input.d.ts +0 -3
  87. package/core/input_types.d.ts +0 -2
  88. package/core/insertion_marker_manager.d.ts +6 -6
  89. package/core/interfaces/i_ast_node_location.d.ts +0 -2
  90. package/core/interfaces/i_ast_node_location_svg.d.ts +0 -2
  91. package/core/interfaces/i_ast_node_location_with_block.d.ts +0 -2
  92. package/core/interfaces/i_autohideable.d.ts +0 -2
  93. package/core/interfaces/i_block_dragger.d.ts +1 -3
  94. package/core/interfaces/i_bounded_element.d.ts +0 -2
  95. package/core/interfaces/i_bubble.d.ts +6 -4
  96. package/core/interfaces/i_collapsible_toolbox_item.d.ts +0 -2
  97. package/core/interfaces/i_component.d.ts +0 -2
  98. package/core/interfaces/i_connection_checker.d.ts +0 -2
  99. package/core/interfaces/i_contextmenu.d.ts +0 -1
  100. package/core/interfaces/i_copyable.d.ts +3 -2
  101. package/core/interfaces/i_deletable.d.ts +0 -2
  102. package/core/interfaces/i_delete_area.d.ts +0 -2
  103. package/core/interfaces/i_drag_target.d.ts +0 -2
  104. package/core/interfaces/i_draggable.d.ts +0 -2
  105. package/core/interfaces/i_flyout.d.ts +0 -2
  106. package/core/interfaces/i_keyboard_accessible.d.ts +0 -2
  107. package/core/interfaces/i_legacy_procedure_blocks.d.ts +34 -0
  108. package/core/interfaces/i_metrics_manager.d.ts +0 -2
  109. package/core/interfaces/i_movable.d.ts +0 -2
  110. package/core/interfaces/i_positionable.d.ts +0 -2
  111. package/core/interfaces/i_procedure_model.d.ts +0 -5
  112. package/core/interfaces/i_registrable.d.ts +0 -2
  113. package/core/interfaces/i_selectable.d.ts +0 -2
  114. package/core/interfaces/i_selectable_toolbox_item.d.ts +4 -2
  115. package/core/interfaces/i_serializer.d.ts +0 -2
  116. package/core/interfaces/i_styleable.d.ts +0 -2
  117. package/core/interfaces/i_toolbox.d.ts +0 -2
  118. package/core/interfaces/i_toolbox_item.d.ts +0 -2
  119. package/core/interfaces/i_variable_backed_parameter_model.d.ts +17 -0
  120. package/core/internal_constants.d.ts +0 -5
  121. package/core/keyboard_nav/ast_node.d.ts +0 -3
  122. package/core/keyboard_nav/basic_cursor.d.ts +0 -3
  123. package/core/keyboard_nav/cursor.d.ts +0 -3
  124. package/core/keyboard_nav/marker.d.ts +0 -2
  125. package/core/keyboard_nav/tab_navigate_cursor.d.ts +0 -2
  126. package/core/marker_manager.d.ts +0 -2
  127. package/core/menu.d.ts +0 -2
  128. package/core/menuitem.d.ts +0 -2
  129. package/core/metrics_manager.d.ts +0 -2
  130. package/core/mutator.d.ts +0 -2
  131. package/core/names.d.ts +0 -3
  132. package/core/options.d.ts +0 -2
  133. package/core/positionable_helpers.d.ts +0 -7
  134. package/core/procedures.d.ts +2 -25
  135. package/core/registry.d.ts +0 -11
  136. package/core/render_management.d.ts +15 -0
  137. package/core/rendered_connection.d.ts +22 -9
  138. package/core/renderers/common/block_rendering.d.ts +0 -3
  139. package/core/renderers/common/constants.d.ts +6 -51
  140. package/core/renderers/common/debug.d.ts +0 -3
  141. package/core/renderers/common/debugger.d.ts +9 -23
  142. package/core/renderers/common/drawer.d.ts +0 -5
  143. package/core/renderers/common/i_path_object.d.ts +0 -17
  144. package/core/renderers/common/info.d.ts +2 -12
  145. package/core/renderers/common/marker_svg.d.ts +2 -4
  146. package/core/renderers/common/path_object.d.ts +0 -24
  147. package/core/renderers/common/renderer.d.ts +5 -20
  148. package/core/renderers/geras/constants.d.ts +0 -5
  149. package/core/renderers/geras/drawer.d.ts +2 -4
  150. package/core/renderers/geras/highlight_constants.d.ts +6 -17
  151. package/core/renderers/geras/highlighter.d.ts +0 -13
  152. package/core/renderers/geras/info.d.ts +2 -5
  153. package/core/renderers/geras/measurables/inline_input.d.ts +0 -3
  154. package/core/renderers/geras/measurables/statement_input.d.ts +0 -3
  155. package/core/renderers/geras/path_object.d.ts +0 -8
  156. package/core/renderers/geras/renderer.d.ts +5 -7
  157. package/core/renderers/measurables/base.d.ts +0 -3
  158. package/core/renderers/measurables/bottom_row.d.ts +0 -9
  159. package/core/renderers/measurables/connection.d.ts +0 -3
  160. package/core/renderers/measurables/external_value_input.d.ts +0 -3
  161. package/core/renderers/measurables/field.d.ts +0 -3
  162. package/core/renderers/measurables/hat.d.ts +0 -3
  163. package/core/renderers/measurables/icon.d.ts +2 -5
  164. package/core/renderers/measurables/in_row_spacer.d.ts +0 -3
  165. package/core/renderers/measurables/inline_input.d.ts +1 -4
  166. package/core/renderers/measurables/input_connection.d.ts +1 -4
  167. package/core/renderers/measurables/input_row.d.ts +0 -7
  168. package/core/renderers/measurables/jagged_edge.d.ts +2 -5
  169. package/core/renderers/measurables/next_connection.d.ts +0 -3
  170. package/core/renderers/measurables/output_connection.d.ts +0 -3
  171. package/core/renderers/measurables/previous_connection.d.ts +0 -3
  172. package/core/renderers/measurables/round_corner.d.ts +0 -3
  173. package/core/renderers/measurables/row.d.ts +0 -39
  174. package/core/renderers/measurables/spacer_row.d.ts +0 -3
  175. package/core/renderers/measurables/square_corner.d.ts +0 -3
  176. package/core/renderers/measurables/statement_input.d.ts +0 -3
  177. package/core/renderers/measurables/top_row.d.ts +0 -6
  178. package/core/renderers/measurables/types.d.ts +0 -31
  179. package/core/renderers/minimalist/constants.d.ts +2 -4
  180. package/core/renderers/minimalist/drawer.d.ts +0 -3
  181. package/core/renderers/minimalist/info.d.ts +0 -4
  182. package/core/renderers/minimalist/renderer.d.ts +0 -3
  183. package/core/renderers/thrasos/info.d.ts +0 -4
  184. package/core/renderers/thrasos/renderer.d.ts +3 -3
  185. package/core/renderers/zelos/constants.d.ts +3 -17
  186. package/core/renderers/zelos/drawer.d.ts +0 -3
  187. package/core/renderers/zelos/info.d.ts +0 -4
  188. package/core/renderers/zelos/marker_svg.d.ts +0 -2
  189. package/core/renderers/zelos/measurables/bottom_row.d.ts +0 -3
  190. package/core/renderers/zelos/measurables/inputs.d.ts +0 -3
  191. package/core/renderers/zelos/measurables/row_elements.d.ts +0 -3
  192. package/core/renderers/zelos/measurables/top_row.d.ts +0 -3
  193. package/core/renderers/zelos/path_object.d.ts +0 -9
  194. package/core/renderers/zelos/renderer.d.ts +3 -5
  195. package/core/scrollbar.d.ts +0 -2
  196. package/core/scrollbar_pair.d.ts +0 -2
  197. package/core/serialization/blocks.d.ts +3 -9
  198. package/core/serialization/exceptions.d.ts +0 -8
  199. package/core/serialization/priorities.d.ts +0 -4
  200. package/core/serialization/registry.d.ts +0 -2
  201. package/core/serialization/variables.d.ts +0 -4
  202. package/core/serialization/workspaces.d.ts +0 -2
  203. package/core/shortcut_items.d.ts +0 -17
  204. package/core/shortcut_registry.d.ts +0 -2
  205. package/core/sprites.d.ts +0 -2
  206. package/core/theme/classic.d.ts +0 -2
  207. package/core/theme/zelos.d.ts +0 -2
  208. package/core/theme.d.ts +0 -2
  209. package/core/theme_manager.d.ts +3 -6
  210. package/core/toolbox/category.d.ts +5 -7
  211. package/core/toolbox/collapsible_category.d.ts +0 -4
  212. package/core/toolbox/separator.d.ts +0 -2
  213. package/core/toolbox/toolbox.d.ts +2 -5
  214. package/core/toolbox/toolbox_item.d.ts +0 -2
  215. package/core/tooltip.d.ts +0 -29
  216. package/core/touch.d.ts +0 -13
  217. package/core/trashcan.d.ts +0 -2
  218. package/core/utils/aria.d.ts +0 -6
  219. package/core/utils/array.d.ts +0 -1
  220. package/core/utils/colour.d.ts +0 -12
  221. package/core/utils/coordinate.d.ts +0 -2
  222. package/core/utils/deprecation.d.ts +0 -1
  223. package/core/utils/dom.d.ts +0 -25
  224. package/core/utils/idgenerator.d.ts +0 -2
  225. package/core/utils/keycodes.d.ts +0 -2
  226. package/core/utils/math.d.ts +0 -3
  227. package/core/utils/metrics.d.ts +0 -1
  228. package/core/utils/object.d.ts +0 -4
  229. package/core/utils/parsing.d.ts +0 -4
  230. package/core/utils/rect.d.ts +0 -2
  231. package/core/utils/size.d.ts +0 -2
  232. package/core/utils/string.d.ts +0 -6
  233. package/core/utils/style.d.ts +0 -8
  234. package/core/utils/svg.d.ts +0 -2
  235. package/core/utils/svg_math.d.ts +0 -6
  236. package/core/utils/svg_paths.d.ts +0 -8
  237. package/core/utils/toolbox.d.ts +2 -35
  238. package/core/utils/useragent.d.ts +0 -8
  239. package/core/utils/xml.d.ts +9 -8
  240. package/core/utils.d.ts +0 -12
  241. package/core/variable_map.d.ts +1 -3
  242. package/core/variable_model.d.ts +0 -1
  243. package/core/variables.d.ts +13 -17
  244. package/core/variables_dynamic.d.ts +0 -4
  245. package/core/warning.d.ts +0 -2
  246. package/core/widgetdiv.d.ts +0 -10
  247. package/core/workspace.d.ts +3 -3
  248. package/core/workspace_audio.d.ts +0 -2
  249. package/core/workspace_comment.d.ts +1 -3
  250. package/core/workspace_comment_svg.d.ts +16 -5
  251. package/core/workspace_drag_surface_svg.d.ts +74 -0
  252. package/core/workspace_dragger.d.ts +3 -2
  253. package/core/workspace_svg.d.ts +48 -8
  254. package/core/xml.d.ts +1 -13
  255. package/core/zoom_controls.d.ts +4 -15
  256. package/dart_compressed.js +199 -199
  257. package/dart_compressed.js.map +1 -1
  258. package/javascript_compressed.js +168 -168
  259. package/javascript_compressed.js.map +1 -1
  260. package/lua_compressed.js +211 -211
  261. package/lua_compressed.js.map +1 -1
  262. package/msg/bn.js +2 -2
  263. package/msg/bs.js +7 -7
  264. package/msg/de.js +1 -1
  265. package/msg/fi.js +1 -1
  266. package/msg/fr.js +3 -3
  267. package/msg/ia.js +5 -5
  268. package/msg/kn.js +5 -5
  269. package/msg/ko.js +1 -1
  270. package/msg/lb.js +22 -22
  271. package/msg/sd.js +9 -9
  272. package/msg/skr-arab.js +2 -2
  273. package/msg/sl.js +18 -18
  274. package/msg/sw.js +1 -1
  275. package/msg/zh-hans.js +6 -6
  276. package/msg/zh-hant.js +2 -2
  277. package/package.json +6 -6
  278. package/php_compressed.js +185 -185
  279. package/php_compressed.js.map +1 -1
  280. package/python_compressed.js +138 -138
  281. package/python_compressed.js.map +1 -1
  282. package/core/utils/sentinel.d.ts +0 -18
@@ -6,7 +6,6 @@
6
6
  /**
7
7
  * Get the richness of block colours, regardless of the hue.
8
8
  *
9
- * @alias Blockly.utils.colour.getHsvSaturation
10
9
  * @returns The current richness.
11
10
  * @internal
12
11
  */
@@ -16,14 +15,12 @@ export declare function getHsvSaturation(): number;
16
15
  *
17
16
  * @param newSaturation The new richness, in the range of 0 (inclusive) to 1
18
17
  * (exclusive)
19
- * @alias Blockly.utils.colour.setHsvSaturation
20
18
  * @internal
21
19
  */
22
20
  export declare function setHsvSaturation(newSaturation: number): void;
23
21
  /**
24
22
  * Get the intensity of block colours, regardless of the hue.
25
23
  *
26
- * @alias Blockly.utils.colour.getHsvValue
27
24
  * @returns The current intensity.
28
25
  * @internal
29
26
  */
@@ -33,7 +30,6 @@ export declare function getHsvValue(): number;
33
30
  *
34
31
  * @param newValue The new intensity, in the range of 0 (inclusive) to 1
35
32
  * (exclusive)
36
- * @alias Blockly.utils.colour.setHsvValue
37
33
  * @internal
38
34
  */
39
35
  export declare function setHsvValue(newValue: number): void;
@@ -48,7 +44,6 @@ export declare function setHsvValue(newValue: number): void;
48
44
  * @param str Colour in some CSS format.
49
45
  * @returns A string containing a hex representation of the colour, or null if
50
46
  * can't be parsed.
51
- * @alias Blockly.utils.colour.parse
52
47
  */
53
48
  export declare function parse(str: string | number): string | null;
54
49
  /**
@@ -58,7 +53,6 @@ export declare function parse(str: string | number): string | null;
58
53
  * @param g Amount of green, int between 0 and 255.
59
54
  * @param b Amount of blue, int between 0 and 255.
60
55
  * @returns Hex representation of the colour.
61
- * @alias Blockly.utils.colour.rgbToHex
62
56
  */
63
57
  export declare function rgbToHex(r: number, g: number, b: number): string;
64
58
  /**
@@ -67,7 +61,6 @@ export declare function rgbToHex(r: number, g: number, b: number): string;
67
61
  * @param colour String representing colour in any colour format ('#ff0000',
68
62
  * 'red', '0xff000', etc).
69
63
  * @returns RGB representation of the colour.
70
- * @alias Blockly.utils.colour.hexToRgb
71
64
  */
72
65
  export declare function hexToRgb(colour: string): number[];
73
66
  /**
@@ -77,7 +70,6 @@ export declare function hexToRgb(colour: string): number[];
77
70
  * @param s Saturation value in [0, 1].
78
71
  * @param v Brightness in [0, 255].
79
72
  * @returns Hex representation of the colour.
80
- * @alias Blockly.utils.colour.hsvToHex
81
73
  */
82
74
  export declare function hsvToHex(h: number, s: number, v: number): string;
83
75
  /**
@@ -89,7 +81,6 @@ export declare function hsvToHex(h: number, s: number, v: number): string;
89
81
  * @param factor The weight to be given to colour1 over colour2.
90
82
  * Values should be in the range [0, 1].
91
83
  * @returns Combined colour represented in hex.
92
- * @alias Blockly.utils.colour.blend
93
84
  */
94
85
  export declare function blend(colour1: string, colour2: string, factor: number): string | null;
95
86
  /**
@@ -97,8 +88,6 @@ export declare function blend(colour1: string, colour2: string, factor: number):
97
88
  * https://www.w3.org/TR/2018/REC-css-color-3-20180619/#html4
98
89
  * The keys of this map are the lowercase "readable" names of the colours,
99
90
  * while the values are the "hex" values.
100
- *
101
- * @alias Blockly.utils.colour.names
102
91
  */
103
92
  export declare const names: {
104
93
  [key: string]: string;
@@ -108,7 +97,6 @@ export declare const names: {
108
97
  *
109
98
  * @param hue Hue on a colour wheel (0-360).
110
99
  * @returns RGB code, e.g. '#5ba65b'.
111
- * @alias Blockly.utils.colour.hueToHex
112
100
  */
113
101
  export declare function hueToHex(hue: number): string;
114
102
  //# sourceMappingURL=colour.d.ts.map
@@ -5,8 +5,6 @@
5
5
  */
6
6
  /**
7
7
  * Class for representing coordinates and positions.
8
- *
9
- * @alias Blockly.utils.Coordinate
10
8
  */
11
9
  export declare class Coordinate {
12
10
  x: number;
@@ -12,7 +12,6 @@
12
12
  * @param deletionDate The date of deletion. Prefer 'version n.0.0'
13
13
  * format, and fall back to 'month yyyy' or 'quarter yyyy' format.
14
14
  * @param opt_use The name of a function or property to use instead, if any.
15
- * @alias Blockly.utils.deprecation.warn
16
15
  * @internal
17
16
  */
18
17
  export declare function warn(name: string, deprecationDate: string, deletionDate: string, opt_use?: string): void;
@@ -6,27 +6,19 @@
6
6
  import type { Svg } from './svg.js';
7
7
  /**
8
8
  * Required name space for SVG elements.
9
- *
10
- * @alias Blockly.utils.dom.SVG_NS
11
9
  */
12
10
  export declare const SVG_NS = "http://www.w3.org/2000/svg";
13
11
  /**
14
12
  * Required name space for HTML elements.
15
- *
16
- * @alias Blockly.utils.dom.HTML_NS
17
13
  */
18
14
  export declare const HTML_NS = "http://www.w3.org/1999/xhtml";
19
15
  /**
20
16
  * Required name space for XLINK elements.
21
- *
22
- * @alias Blockly.utils.dom.XLINK_NS
23
17
  */
24
18
  export declare const XLINK_NS = "http://www.w3.org/1999/xlink";
25
19
  /**
26
20
  * Node type constants.
27
21
  * https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
28
- *
29
- * @alias Blockly.utils.dom.NodeType
30
22
  */
31
23
  export declare enum NodeType {
32
24
  ELEMENT_NODE = 1,
@@ -41,7 +33,6 @@ export declare enum NodeType {
41
33
  * @param attrs Dictionary of attribute names and values.
42
34
  * @param opt_parent Optional parent on which to append the element.
43
35
  * @returns if name is a string or a more specific type if it a member of Svg.
44
- * @alias Blockly.utils.dom.createSvgElement
45
36
  */
46
37
  export declare function createSvgElement<T extends SVGElement>(name: string | Svg<T>, attrs: {
47
38
  [key: string]: string | number;
@@ -54,7 +45,6 @@ export declare function createSvgElement<T extends SVGElement>(name: string | Sv
54
45
  * @param element DOM element to add class to.
55
46
  * @param className Name of class to add.
56
47
  * @returns True if class was added, false if already present.
57
- * @alias Blockly.utils.dom.addClass
58
48
  */
59
49
  export declare function addClass(element: Element, className: string): boolean;
60
50
  /**
@@ -62,7 +52,6 @@ export declare function addClass(element: Element, className: string): boolean;
62
52
  *
63
53
  * @param element DOM element to remove classes from.
64
54
  * @param classNames A string of one or multiple class names for an element.
65
- * @alias Blockly.utils.dom.removeClasses
66
55
  */
67
56
  export declare function removeClasses(element: Element, classNames: string): void;
68
57
  /**
@@ -73,7 +62,6 @@ export declare function removeClasses(element: Element, classNames: string): voi
73
62
  * @param element DOM element to remove class from.
74
63
  * @param className Name of class to remove.
75
64
  * @returns True if class was removed, false if never present.
76
- * @alias Blockly.utils.dom.removeClass
77
65
  */
78
66
  export declare function removeClass(element: Element, className: string): boolean;
79
67
  /**
@@ -82,7 +70,6 @@ export declare function removeClass(element: Element, className: string): boolea
82
70
  * @param element DOM element to check.
83
71
  * @param className Name of class to check.
84
72
  * @returns True if class exists, false otherwise.
85
- * @alias Blockly.utils.dom.hasClass
86
73
  */
87
74
  export declare function hasClass(element: Element, className: string): boolean;
88
75
  /**
@@ -90,7 +77,6 @@ export declare function hasClass(element: Element, className: string): boolean;
90
77
  *
91
78
  * @param node The node to remove.
92
79
  * @returns The node removed if removed; else, null.
93
- * @alias Blockly.utils.dom.removeNode
94
80
  */
95
81
  export declare function removeNode(node: Node | null): Node | null;
96
82
  /**
@@ -99,7 +85,6 @@ export declare function removeNode(node: Node | null): Node | null;
99
85
  *
100
86
  * @param newNode New element to insert.
101
87
  * @param refNode Existing element to precede new node.
102
- * @alias Blockly.utils.dom.insertAfter
103
88
  */
104
89
  export declare function insertAfter(newNode: Element, refNode: Element): void;
105
90
  /**
@@ -108,7 +93,6 @@ export declare function insertAfter(newNode: Element, refNode: Element): void;
108
93
  * @param parent The node that should contain the other node.
109
94
  * @param descendant The node to test presence of.
110
95
  * @returns Whether the parent node contains the descendant node.
111
- * @alias Blockly.utils.dom.containsNode
112
96
  */
113
97
  export declare function containsNode(parent: Node, descendant: Node): boolean;
114
98
  /**
@@ -118,21 +102,16 @@ export declare function containsNode(parent: Node, descendant: Node): boolean;
118
102
  *
119
103
  * @param element Element to which the CSS transform will be applied.
120
104
  * @param transform The value of the CSS `transform` property.
121
- * @alias Blockly.utils.dom.setCssTransform
122
105
  */
123
106
  export declare function setCssTransform(element: HTMLElement | SVGElement, transform: string): void;
124
107
  /**
125
108
  * Start caching text widths. Every call to this function MUST also call
126
109
  * stopTextWidthCache. Caches must not survive between execution threads.
127
- *
128
- * @alias Blockly.utils.dom.startTextWidthCache
129
110
  */
130
111
  export declare function startTextWidthCache(): void;
131
112
  /**
132
113
  * Stop caching field widths. Unless caching was already on when the
133
114
  * corresponding call to startTextWidthCache was made.
134
- *
135
- * @alias Blockly.utils.dom.stopTextWidthCache
136
115
  */
137
116
  export declare function stopTextWidthCache(): void;
138
117
  /**
@@ -140,7 +119,6 @@ export declare function stopTextWidthCache(): void;
140
119
  *
141
120
  * @param textElement An SVG 'text' element.
142
121
  * @returns Width of element.
143
- * @alias Blockly.utils.dom.getTextWidth
144
122
  */
145
123
  export declare function getTextWidth(textElement: SVGTextElement): number;
146
124
  /**
@@ -153,7 +131,6 @@ export declare function getTextWidth(textElement: SVGTextElement): number;
153
131
  * @param fontWeight The font weight to use.
154
132
  * @param fontFamily The font family to use.
155
133
  * @returns Width of element.
156
- * @alias Blockly.utils.dom.getFastTextWidth
157
134
  */
158
135
  export declare function getFastTextWidth(textElement: SVGTextElement, fontSize: number, fontWeight: string, fontFamily: string): number;
159
136
  /**
@@ -168,7 +145,6 @@ export declare function getFastTextWidth(textElement: SVGTextElement, fontSize:
168
145
  * @param fontWeight The font weight to use.
169
146
  * @param fontFamily The font family to use.
170
147
  * @returns Width of element.
171
- * @alias Blockly.utils.dom.getFastTextWidthWithSizeString
172
148
  */
173
149
  export declare function getFastTextWidthWithSizeString(textElement: SVGTextElement, fontSize: string, fontWeight: string, fontFamily: string): number;
174
150
  /**
@@ -179,7 +155,6 @@ export declare function getFastTextWidthWithSizeString(textElement: SVGTextEleme
179
155
  * @param fontWeight The font weight to use.
180
156
  * @param fontFamily The font family to use.
181
157
  * @returns Font measurements.
182
- * @alias Blockly.utils.dom.measureFontMetrics
183
158
  */
184
159
  export declare function measureFontMetrics(text: string, fontSize: string, fontWeight: string, fontFamily: string): {
185
160
  height: number;
@@ -21,7 +21,6 @@ export declare const TEST_ONLY: {
21
21
  * primarily be used for IDs that end up in the DOM.
22
22
  *
23
23
  * @returns The next unique identifier.
24
- * @alias Blockly.utils.idGenerator.getNextUniqueId
25
24
  */
26
25
  export declare function getNextUniqueId(): string;
27
26
  /**
@@ -29,7 +28,6 @@ export declare function getNextUniqueId(): string;
29
28
  *
30
29
  * @see internal.genUid
31
30
  * @returns A globally unique ID string.
32
- * @alias Blockly.utils.idGenerator.genUid
33
31
  */
34
32
  export declare function genUid(): string;
35
33
  //# sourceMappingURL=idgenerator.d.ts.map
@@ -10,8 +10,6 @@
10
10
  *
11
11
  * This list is not localized and therefore some of the key codes are not
12
12
  * correct for non US keyboard layouts. See comments below.
13
- *
14
- * @alias Blockly.utils.KeyCodes
15
13
  */
16
14
  export declare enum KeyCodes {
17
15
  WIN_KEY_FF_LINUX = 0,
@@ -9,7 +9,6 @@
9
9
  *
10
10
  * @param angleDegrees Angle in degrees.
11
11
  * @returns Angle in radians.
12
- * @alias Blockly.utils.math.toRadians
13
12
  */
14
13
  export declare function toRadians(angleDegrees: number): number;
15
14
  /**
@@ -18,7 +17,6 @@ export declare function toRadians(angleDegrees: number): number;
18
17
  *
19
18
  * @param angleRadians Angle in radians.
20
19
  * @returns Angle in degrees.
21
- * @alias Blockly.utils.math.toDegrees
22
20
  */
23
21
  export declare function toDegrees(angleRadians: number): number;
24
22
  /**
@@ -28,7 +26,6 @@ export declare function toDegrees(angleRadians: number): number;
28
26
  * @param number The number to clamp.
29
27
  * @param upperBound The desired upper bound.
30
28
  * @returns The clamped number.
31
- * @alias Blockly.utils.math.clamp
32
29
  */
33
30
  export declare function clamp(lowerBound: number, number: number, upperBound: number): number;
34
31
  //# sourceMappingURL=math.d.ts.map
@@ -3,7 +3,6 @@
3
3
  * Copyright 2020 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- /** @alias Blockly.utils.Metrics */
7
6
  export interface Metrics {
8
7
  /** Height of the visible portion of the workspace. */
9
8
  viewHeight: number;
@@ -10,7 +10,6 @@
10
10
  * @param parentCtor Parent class.
11
11
  * @suppress {strictMissingProperties} superClass_ is not defined on Function.
12
12
  * @deprecated No longer provided by Blockly.
13
- * @alias Blockly.utils.object.inherits
14
13
  */
15
14
  export declare function inherits(childCtor: Function, parentCtor: Function): void;
16
15
  /**
@@ -19,7 +18,6 @@ export declare function inherits(childCtor: Function, parentCtor: Function): voi
19
18
  * @param target Target.
20
19
  * @param source Source.
21
20
  * @deprecated Use the built-in **Object.assign** instead.
22
- * @alias Blockly.utils.object.mixin
23
21
  */
24
22
  export declare function mixin(target: any, source: any): void;
25
23
  /**
@@ -28,7 +26,6 @@ export declare function mixin(target: any, source: any): void;
28
26
  * @param target Target.
29
27
  * @param source Source.
30
28
  * @returns The resulting object.
31
- * @alias Blockly.utils.object.deepMerge
32
29
  */
33
30
  export declare function deepMerge(target: any, source: any): any;
34
31
  /**
@@ -37,7 +34,6 @@ export declare function deepMerge(target: any, source: any): any;
37
34
  * @param obj Object containing values.
38
35
  * @returns Array of values.
39
36
  * @deprecated Use the built-in **Object.values** instead.
40
- * @alias Blockly.utils.object.values
41
37
  */
42
38
  export declare function values(obj: any): any[];
43
39
  //# sourceMappingURL=object.d.ts.map
@@ -13,7 +13,6 @@
13
13
  * @param message Text which might contain string table references and
14
14
  * interpolation tokens.
15
15
  * @returns Array of strings and numbers.
16
- * @alias Blockly.utils.parsing.tokenizeInterpolation
17
16
  */
18
17
  export declare function tokenizeInterpolation(message: string): (string | number)[];
19
18
  /**
@@ -24,7 +23,6 @@ export declare function tokenizeInterpolation(message: string): (string | number
24
23
  * @param message Message, which may be a string that contains
25
24
  * string table references.
26
25
  * @returns String with message references replaced.
27
- * @alias Blockly.utils.parsing.replaceMessageReferences
28
26
  */
29
27
  export declare function replaceMessageReferences(message: string | any): string;
30
28
  /**
@@ -34,7 +32,6 @@ export declare function replaceMessageReferences(message: string | any): string;
34
32
  * @param message Text which might contain string table references.
35
33
  * @returns True if all message references have matching values.
36
34
  * Otherwise, false.
37
- * @alias Blockly.utils.parsing.checkMessageReferences
38
35
  */
39
36
  export declare function checkMessageReferences(message: string): boolean;
40
37
  /**
@@ -46,7 +43,6 @@ export declare function checkMessageReferences(message: string): boolean;
46
43
  * @returns An object containing the colour as
47
44
  * a #RRGGBB string, and the hue if the input was an HSV hue value.
48
45
  * @throws {Error} If the colour cannot be parsed.
49
- * @alias Blockly.utils.parsing.parseBlockColour
50
46
  */
51
47
  export declare function parseBlockColour(colour: number | string): {
52
48
  hue: number | null;
@@ -5,8 +5,6 @@
5
5
  */
6
6
  /**
7
7
  * Class for representing rectangular regions.
8
- *
9
- * @alias Blockly.utils.Rect
10
8
  */
11
9
  export declare class Rect {
12
10
  top: number;
@@ -5,8 +5,6 @@
5
5
  */
6
6
  /**
7
7
  * Class for representing sizes consisting of a width and height.
8
- *
9
- * @alias Blockly.utils.Size
10
8
  */
11
9
  export declare class Size {
12
10
  width: number;
@@ -10,7 +10,6 @@
10
10
  * @param str The string to check.
11
11
  * @param prefix A string to look for at the start of `str`.
12
12
  * @returns True if `str` begins with `prefix`.
13
- * @alias Blockly.utils.string.startsWith
14
13
  * @deprecated Use built-in **string.startsWith** instead.
15
14
  */
16
15
  export declare function startsWith(str: string, prefix: string): boolean;
@@ -19,7 +18,6 @@ export declare function startsWith(str: string, prefix: string): boolean;
19
18
  *
20
19
  * @param array Array of strings.
21
20
  * @returns Length of shortest string.
22
- * @alias Blockly.utils.string.shortestStringLength
23
21
  */
24
22
  export declare function shortestStringLength(array: string[]): number;
25
23
  /**
@@ -29,7 +27,6 @@ export declare function shortestStringLength(array: string[]): number;
29
27
  * @param array Array of strings.
30
28
  * @param opt_shortest Length of shortest string.
31
29
  * @returns Length of common prefix.
32
- * @alias Blockly.utils.string.commonWordPrefix
33
30
  */
34
31
  export declare function commonWordPrefix(array: string[], opt_shortest?: number): number;
35
32
  /**
@@ -39,7 +36,6 @@ export declare function commonWordPrefix(array: string[], opt_shortest?: number)
39
36
  * @param array Array of strings.
40
37
  * @param opt_shortest Length of shortest string.
41
38
  * @returns Length of common suffix.
42
- * @alias Blockly.utils.string.commonWordSuffix
43
39
  */
44
40
  export declare function commonWordSuffix(array: string[], opt_shortest?: number): number;
45
41
  /**
@@ -48,7 +44,6 @@ export declare function commonWordSuffix(array: string[], opt_shortest?: number)
48
44
  * @param text Text to wrap.
49
45
  * @param limit Width to wrap each line.
50
46
  * @returns Wrapped text.
51
- * @alias Blockly.utils.string.wrap
52
47
  */
53
48
  export declare function wrap(text: string, limit: number): string;
54
49
  /**
@@ -56,7 +51,6 @@ export declare function wrap(text: string, limit: number): string;
56
51
  *
57
52
  * @param str Input string.
58
53
  * @returns True if number, false otherwise.
59
- * @alias Blockly.utils.string.isNumber
60
54
  */
61
55
  export declare function isNumber(str: string): boolean;
62
56
  //# sourceMappingURL=string.d.ts.map
@@ -12,7 +12,6 @@ import { Size } from './size.js';
12
12
  *
13
13
  * @param element Element to get size of.
14
14
  * @returns Object with width/height properties.
15
- * @alias Blockly.utils.style.getSize
16
15
  */
17
16
  export declare function getSize(element: Element): Size;
18
17
  /**
@@ -29,7 +28,6 @@ declare function getSizeInternal(element: Element): Size;
29
28
  * @param element Element to get style of.
30
29
  * @param property Property to get (camel-case).
31
30
  * @returns Style value.
32
- * @alias Blockly.utils.style.getComputedStyle
33
31
  */
34
32
  export declare function getComputedStyle(element: Element, property: string): string;
35
33
  /**
@@ -42,7 +40,6 @@ export declare function getComputedStyle(element: Element, property: string): st
42
40
  * @param style Property to get (camel-case).
43
41
  * @returns Style value.
44
42
  * @deprecated No longer provided by Blockly.
45
- * @alias Blockly.utils.style.getCascadedStyle
46
43
  */
47
44
  export declare function getCascadedStyle(element: Element, style: string): string;
48
45
  /**
@@ -51,7 +48,6 @@ export declare function getCascadedStyle(element: Element, style: string): strin
51
48
  *
52
49
  * @param el Element to get the page offset for.
53
50
  * @returns The page offset.
54
- * @alias Blockly.utils.style.getPageOffset
55
51
  */
56
52
  export declare function getPageOffset(el: Element): Coordinate;
57
53
  /**
@@ -59,7 +55,6 @@ export declare function getPageOffset(el: Element): Coordinate;
59
55
  * Similar to Closure's goog.style.getViewportPageOffset
60
56
  *
61
57
  * @returns The page offset of the viewport.
62
- * @alias Blockly.utils.style.getViewportPageOffset
63
58
  */
64
59
  export declare function getViewportPageOffset(): Coordinate;
65
60
  /**
@@ -68,7 +63,6 @@ export declare function getViewportPageOffset(): Coordinate;
68
63
  *
69
64
  * @param element The element to get the border widths for.
70
65
  * @returns The computed border widths.
71
- * @alias Blockly.utils.style.getBorderBox
72
66
  */
73
67
  export declare function getBorderBox(element: Element): Rect;
74
68
  /**
@@ -83,7 +77,6 @@ export declare function getBorderBox(element: Element): Rect;
83
77
  * scroll element will be used.
84
78
  * @param opt_center Whether to center the element in the container.
85
79
  * Defaults to false.
86
- * @alias Blockly.utils.style.scrollIntoContainerView
87
80
  */
88
81
  export declare function scrollIntoContainerView(element: Element, container: Element, opt_center?: boolean): void;
89
82
  /**
@@ -99,7 +92,6 @@ export declare function scrollIntoContainerView(element: Element, container: Ele
99
92
  * @param opt_center Whether to center the element in the container.
100
93
  * Defaults to false.
101
94
  * @returns The new scroll position of the container.
102
- * @alias Blockly.utils.style.getContainerOffsetToScrollInto
103
95
  */
104
96
  export declare function getContainerOffsetToScrollInto(element: Element, container: Element, opt_center?: boolean): Coordinate;
105
97
  export declare const TEST_ONLY: {
@@ -5,8 +5,6 @@
5
5
  */
6
6
  /**
7
7
  * A name with the type of the SVG element stored in the generic.
8
- *
9
- * @alias Blockly.utils.Svg
10
8
  */
11
9
  export declare class Svg<_T> {
12
10
  private readonly tagName;
@@ -12,7 +12,6 @@ import { Rect } from './rect.js';
12
12
  *
13
13
  * @param element SVG element to find the coordinates of.
14
14
  * @returns Object with .x and .y properties.
15
- * @alias Blockly.utils.svgMath.getRelativeXY
16
15
  */
17
16
  export declare function getRelativeXY(element: Element): Coordinate;
18
17
  /**
@@ -22,7 +21,6 @@ export declare function getRelativeXY(element: Element): Coordinate;
22
21
  * @param element SVG element to find the coordinates of. If this is not a child
23
22
  * of the div Blockly was injected into, the behaviour is undefined.
24
23
  * @returns Object with .x and .y properties.
25
- * @alias Blockly.utils.svgMath.getInjectionDivXY
26
24
  */
27
25
  export declare function getInjectionDivXY(element: Element): Coordinate;
28
26
  /**
@@ -31,7 +29,6 @@ export declare function getInjectionDivXY(element: Element): Coordinate;
31
29
  *
32
30
  * @returns True if 3D transforms are supported.
33
31
  * @deprecated No longer provided by Blockly.
34
- * @alias Blockly.utils.svgMath.is3dSupported
35
32
  */
36
33
  export declare function is3dSupported(): boolean;
37
34
  /**
@@ -40,7 +37,6 @@ export declare function is3dSupported(): boolean;
40
37
  *
41
38
  * @returns An object containing window width, height, and scroll position in
42
39
  * window coordinates.
43
- * @alias Blockly.utils.svgMath.getViewportBBox
44
40
  * @internal
45
41
  */
46
42
  export declare function getViewportBBox(): Rect;
@@ -49,7 +45,6 @@ export declare function getViewportBBox(): Rect;
49
45
  * Copied from Closure's goog.dom.getDocumentScroll.
50
46
  *
51
47
  * @returns Object with values 'x' and 'y'.
52
- * @alias Blockly.utils.svgMath.getDocumentScroll
53
48
  */
54
49
  export declare function getDocumentScroll(): Coordinate;
55
50
  /**
@@ -59,7 +54,6 @@ export declare function getDocumentScroll(): Coordinate;
59
54
  * @param screenCoordinates The screen coordinates to be converted to workspace
60
55
  * coordinates
61
56
  * @returns The workspace coordinates.
62
- * @alias Blockly.utils.svgMath.screenToWsCoordinates
63
57
  */
64
58
  export declare function screenToWsCoordinates(ws: WorkspaceSvg, screenCoordinates: Coordinate): Coordinate;
65
59
  export declare const TEST_ONLY: {
@@ -12,7 +12,6 @@
12
12
  * @param x The x coordinate.
13
13
  * @param y The y coordinate.
14
14
  * @returns A string of the format ' x,y '
15
- * @alias Blockly.utils.svgPaths.point
16
15
  */
17
16
  export declare function point(x: number, y: number): string;
18
17
  /**
@@ -27,7 +26,6 @@ export declare function point(x: number, y: number): string;
27
26
  * x, y '.
28
27
  * @returns A string defining one or more Bezier curves. See the MDN
29
28
  * documentation for exact format.
30
- * @alias Blockly.utils.svgPaths.curve
31
29
  */
32
30
  export declare function curve(command: string, points: string[]): string;
33
31
  /**
@@ -39,7 +37,6 @@ export declare function curve(command: string, points: string[]): string;
39
37
  * @param x The absolute x coordinate.
40
38
  * @param y The absolute y coordinate.
41
39
  * @returns A string of the format ' M x,y '
42
- * @alias Blockly.utils.svgPaths.moveTo
43
40
  */
44
41
  export declare function moveTo(x: number, y: number): string;
45
42
  /**
@@ -51,7 +48,6 @@ export declare function moveTo(x: number, y: number): string;
51
48
  * @param dx The relative x coordinate.
52
49
  * @param dy The relative y coordinate.
53
50
  * @returns A string of the format ' m dx,dy '
54
- * @alias Blockly.utils.svgPaths.moveBy
55
51
  */
56
52
  export declare function moveBy(dx: number, dy: number): string;
57
53
  /**
@@ -63,7 +59,6 @@ export declare function moveBy(dx: number, dy: number): string;
63
59
  * @param dx The relative x coordinate.
64
60
  * @param dy The relative y coordinate.
65
61
  * @returns A string of the format ' l dx,dy '
66
- * @alias Blockly.utils.svgPaths.lineTo
67
62
  */
68
63
  export declare function lineTo(dx: number, dy: number): string;
69
64
  /**
@@ -75,7 +70,6 @@ export declare function lineTo(dx: number, dy: number): string;
75
70
  * @param points An array containing all of the points to draw lines to, in
76
71
  * order. The points are represented as strings of the format ' dx,dy '.
77
72
  * @returns A string of the format ' l (dx,dy)+ '
78
- * @alias Blockly.utils.svgPaths.line
79
73
  */
80
74
  export declare function line(points: string[]): string;
81
75
  /**
@@ -90,7 +84,6 @@ export declare function line(points: string[]): string;
90
84
  * @param val The coordinate to pass to the command. It may be absolute or
91
85
  * relative.
92
86
  * @returns A string of the format ' command val '
93
- * @alias Blockly.utils.svgPaths.lineOnAxis
94
87
  */
95
88
  export declare function lineOnAxis(command: string, val: number): string;
96
89
  /**
@@ -105,7 +98,6 @@ export declare function lineOnAxis(command: string, val: number): string;
105
98
  * @param point The point to move the cursor to after drawing the arc, specified
106
99
  * either in absolute or relative coordinates depending on the command.
107
100
  * @returns A string of the format 'command radius radius flags point'
108
- * @alias Blockly.utils.svgPaths.arc
109
101
  */
110
102
  export declare function arc(command: string, flags: string, radius: number, point: string): string;
111
103
  //# sourceMappingURL=svg_paths.d.ts.map