scratch-blocks 2.0.2 → 2.0.4

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 (275) hide show
  1. package/.nvmrc +1 -1
  2. package/commitlint.config.js +2 -2
  3. package/dist/main.mjs +1 -2
  4. package/dist/types/msg/scratch_msgs.d.ts.map +1 -1
  5. package/dist/types/src/block_reporting.d.ts.map +1 -1
  6. package/dist/types/src/blocks/colour.d.ts +0 -19
  7. package/dist/types/src/blocks/colour.d.ts.map +1 -1
  8. package/dist/types/src/blocks/control.d.ts +0 -19
  9. package/dist/types/src/blocks/control.d.ts.map +1 -1
  10. package/dist/types/src/blocks/data.d.ts +0 -19
  11. package/dist/types/src/blocks/data.d.ts.map +1 -1
  12. package/dist/types/src/blocks/event.d.ts +0 -19
  13. package/dist/types/src/blocks/event.d.ts.map +1 -1
  14. package/dist/types/src/blocks/looks.d.ts +0 -19
  15. package/dist/types/src/blocks/looks.d.ts.map +1 -1
  16. package/dist/types/src/blocks/math.d.ts +0 -19
  17. package/dist/types/src/blocks/math.d.ts.map +1 -1
  18. package/dist/types/src/blocks/matrix.d.ts +0 -19
  19. package/dist/types/src/blocks/matrix.d.ts.map +1 -1
  20. package/dist/types/src/blocks/motion.d.ts +0 -19
  21. package/dist/types/src/blocks/motion.d.ts.map +1 -1
  22. package/dist/types/src/blocks/note.d.ts +0 -19
  23. package/dist/types/src/blocks/note.d.ts.map +1 -1
  24. package/dist/types/src/blocks/operators.d.ts +0 -19
  25. package/dist/types/src/blocks/operators.d.ts.map +1 -1
  26. package/dist/types/src/blocks/procedures.d.ts +7 -10
  27. package/dist/types/src/blocks/procedures.d.ts.map +1 -1
  28. package/dist/types/src/blocks/sensing.d.ts +0 -19
  29. package/dist/types/src/blocks/sensing.d.ts.map +1 -1
  30. package/dist/types/src/blocks/sound.d.ts +0 -19
  31. package/dist/types/src/blocks/sound.d.ts.map +1 -1
  32. package/dist/types/src/blocks/text.d.ts +0 -19
  33. package/dist/types/src/blocks/text.d.ts.map +1 -1
  34. package/dist/types/src/blocks/vertical_extensions.d.ts +0 -19
  35. package/dist/types/src/blocks/vertical_extensions.d.ts.map +1 -1
  36. package/dist/types/src/checkable_continuous_flyout.d.ts +2 -7
  37. package/dist/types/src/checkable_continuous_flyout.d.ts.map +1 -1
  38. package/dist/types/src/checkbox_bubble.d.ts +13 -12
  39. package/dist/types/src/checkbox_bubble.d.ts.map +1 -1
  40. package/dist/types/src/colours.d.ts.map +1 -1
  41. package/dist/types/src/constants.d.ts +0 -7
  42. package/dist/types/src/constants.d.ts.map +1 -1
  43. package/dist/types/src/context_menu_items.d.ts +0 -5
  44. package/dist/types/src/context_menu_items.d.ts.map +1 -1
  45. package/dist/types/src/data_category.d.ts +2 -4
  46. package/dist/types/src/data_category.d.ts.map +1 -1
  47. package/dist/types/src/events/events_block_comment_base.d.ts +2 -3
  48. package/dist/types/src/events/events_block_comment_base.d.ts.map +1 -1
  49. package/dist/types/src/events/events_block_comment_change.d.ts +0 -5
  50. package/dist/types/src/events/events_block_comment_change.d.ts.map +1 -1
  51. package/dist/types/src/events/events_block_comment_collapse.d.ts +0 -5
  52. package/dist/types/src/events/events_block_comment_collapse.d.ts.map +1 -1
  53. package/dist/types/src/events/events_block_comment_create.d.ts +0 -5
  54. package/dist/types/src/events/events_block_comment_create.d.ts.map +1 -1
  55. package/dist/types/src/events/events_block_comment_delete.d.ts +0 -5
  56. package/dist/types/src/events/events_block_comment_delete.d.ts.map +1 -1
  57. package/dist/types/src/events/events_block_comment_move.d.ts +0 -5
  58. package/dist/types/src/events/events_block_comment_move.d.ts.map +1 -1
  59. package/dist/types/src/events/events_block_comment_resize.d.ts +0 -5
  60. package/dist/types/src/events/events_block_comment_resize.d.ts.map +1 -1
  61. package/dist/types/src/events/events_block_drag_end.d.ts +1 -2
  62. package/dist/types/src/events/events_block_drag_end.d.ts.map +1 -1
  63. package/dist/types/src/events/events_block_drag_outside.d.ts +1 -2
  64. package/dist/types/src/events/events_block_drag_outside.d.ts.map +1 -1
  65. package/dist/types/src/events/events_scratch_variable_create.d.ts +0 -5
  66. package/dist/types/src/events/events_scratch_variable_create.d.ts.map +1 -1
  67. package/dist/types/src/fields/field_colour_slider.d.ts +7 -9
  68. package/dist/types/src/fields/field_colour_slider.d.ts.map +1 -1
  69. package/dist/types/src/fields/field_matrix.d.ts +0 -19
  70. package/dist/types/src/fields/field_matrix.d.ts.map +1 -1
  71. package/dist/types/src/fields/field_note.d.ts +8 -23
  72. package/dist/types/src/fields/field_note.d.ts.map +1 -1
  73. package/dist/types/src/fields/field_textinput_removable.d.ts +2 -4
  74. package/dist/types/src/fields/field_textinput_removable.d.ts.map +1 -1
  75. package/dist/types/src/fields/field_variable_getter.d.ts +0 -19
  76. package/dist/types/src/fields/field_variable_getter.d.ts.map +1 -1
  77. package/dist/types/src/fields/field_vertical_separator.d.ts +0 -19
  78. package/dist/types/src/fields/field_vertical_separator.d.ts.map +1 -1
  79. package/dist/types/src/fields/scratch_field_angle.d.ts +0 -19
  80. package/dist/types/src/fields/scratch_field_angle.d.ts.map +1 -1
  81. package/dist/types/src/fields/scratch_field_dropdown.d.ts +0 -5
  82. package/dist/types/src/fields/scratch_field_dropdown.d.ts.map +1 -1
  83. package/dist/types/src/fields/scratch_field_number.d.ts +0 -19
  84. package/dist/types/src/fields/scratch_field_number.d.ts.map +1 -1
  85. package/dist/types/src/fields/scratch_field_variable.d.ts +4 -7
  86. package/dist/types/src/fields/scratch_field_variable.d.ts.map +1 -1
  87. package/dist/types/src/flyout_checkbox_icon.d.ts +2 -3
  88. package/dist/types/src/flyout_checkbox_icon.d.ts.map +1 -1
  89. package/dist/types/src/glows.d.ts +1 -3
  90. package/dist/types/src/glows.d.ts.map +1 -1
  91. package/dist/types/src/index.d.ts +50 -55
  92. package/dist/types/src/index.d.ts.map +1 -1
  93. package/dist/types/src/procedures.d.ts +6 -8
  94. package/dist/types/src/procedures.d.ts.map +1 -1
  95. package/dist/types/src/recyclable_block_flyout_inflater.d.ts +3 -5
  96. package/dist/types/src/recyclable_block_flyout_inflater.d.ts.map +1 -1
  97. package/dist/types/src/renderer/bowler_hat.d.ts +2 -3
  98. package/dist/types/src/renderer/bowler_hat.d.ts.map +1 -1
  99. package/dist/types/src/renderer/cat/cat_face.d.ts +6 -5
  100. package/dist/types/src/renderer/cat/cat_face.d.ts.map +1 -1
  101. package/dist/types/src/renderer/cat/constants.d.ts +2 -2
  102. package/dist/types/src/renderer/cat/constants.d.ts.map +1 -1
  103. package/dist/types/src/renderer/cat/drawer.d.ts +3 -4
  104. package/dist/types/src/renderer/cat/drawer.d.ts.map +1 -1
  105. package/dist/types/src/renderer/cat/path_object.d.ts +2 -3
  106. package/dist/types/src/renderer/cat/path_object.d.ts.map +1 -1
  107. package/dist/types/src/renderer/cat/render_info.d.ts +3 -4
  108. package/dist/types/src/renderer/cat/render_info.d.ts.map +1 -1
  109. package/dist/types/src/renderer/cat/renderer.d.ts +6 -7
  110. package/dist/types/src/renderer/cat/renderer.d.ts.map +1 -1
  111. package/dist/types/src/renderer/constants.d.ts +4 -4
  112. package/dist/types/src/renderer/constants.d.ts.map +1 -1
  113. package/dist/types/src/renderer/drawer.d.ts +5 -4
  114. package/dist/types/src/renderer/drawer.d.ts.map +1 -1
  115. package/dist/types/src/renderer/path_object.d.ts +1 -3
  116. package/dist/types/src/renderer/path_object.d.ts.map +1 -1
  117. package/dist/types/src/renderer/render_info.d.ts +3 -4
  118. package/dist/types/src/renderer/render_info.d.ts.map +1 -1
  119. package/dist/types/src/renderer/renderer.d.ts +8 -15
  120. package/dist/types/src/renderer/renderer.d.ts.map +1 -1
  121. package/dist/types/src/scratch_block_paster.d.ts +0 -5
  122. package/dist/types/src/scratch_block_paster.d.ts.map +1 -1
  123. package/dist/types/src/scratch_blocks_utils.d.ts +0 -20
  124. package/dist/types/src/scratch_blocks_utils.d.ts.map +1 -1
  125. package/dist/types/src/scratch_comment_bubble.d.ts +1 -4
  126. package/dist/types/src/scratch_comment_bubble.d.ts.map +1 -1
  127. package/dist/types/src/scratch_comment_icon.d.ts +2 -3
  128. package/dist/types/src/scratch_comment_icon.d.ts.map +1 -1
  129. package/dist/types/src/scratch_connection_checker.d.ts +0 -5
  130. package/dist/types/src/scratch_connection_checker.d.ts.map +1 -1
  131. package/dist/types/src/scratch_continuous_category.d.ts +5 -5
  132. package/dist/types/src/scratch_continuous_category.d.ts.map +1 -1
  133. package/dist/types/src/scratch_continuous_toolbox.d.ts +3 -6
  134. package/dist/types/src/scratch_continuous_toolbox.d.ts.map +1 -1
  135. package/dist/types/src/scratch_dragger.d.ts +3 -12
  136. package/dist/types/src/scratch_dragger.d.ts.map +1 -1
  137. package/dist/types/src/scratch_insertion_marker_previewer.d.ts +0 -5
  138. package/dist/types/src/scratch_insertion_marker_previewer.d.ts.map +1 -1
  139. package/dist/types/src/scratch_variable_map.d.ts +0 -5
  140. package/dist/types/src/scratch_variable_map.d.ts.map +1 -1
  141. package/dist/types/src/scratch_variable_model.d.ts +1 -2
  142. package/dist/types/src/scratch_variable_model.d.ts.map +1 -1
  143. package/dist/types/src/scratch_zoom_controls.d.ts +4 -6
  144. package/dist/types/src/scratch_zoom_controls.d.ts.map +1 -1
  145. package/dist/types/src/shadows.d.ts +2 -2
  146. package/dist/types/src/shadows.d.ts.map +1 -1
  147. package/dist/types/src/status_indicator_label.d.ts +4 -6
  148. package/dist/types/src/status_indicator_label.d.ts.map +1 -1
  149. package/dist/types/src/status_indicator_label_flyout_inflater.d.ts +1 -6
  150. package/dist/types/src/status_indicator_label_flyout_inflater.d.ts.map +1 -1
  151. package/dist/types/src/variables.d.ts +4 -8
  152. package/dist/types/src/variables.d.ts.map +1 -1
  153. package/dist/types/src/xml.d.ts +2 -3
  154. package/dist/types/src/xml.d.ts.map +1 -1
  155. package/dist/types/tests/jsunit/block_test.d.ts.map +1 -1
  156. package/dist/types/tests/jsunit/connection_db_test.d.ts.map +1 -1
  157. package/dist/types/tests/jsunit/connection_test.d.ts.map +1 -1
  158. package/dist/types/tests/jsunit/event_test.d.ts.map +1 -1
  159. package/dist/types/tests/jsunit/extensions_test.d.ts.map +1 -1
  160. package/dist/types/tests/jsunit/field_number_test.d.ts.map +1 -1
  161. package/dist/types/tests/jsunit/field_test.d.ts.map +1 -1
  162. package/dist/types/tests/jsunit/field_variable_getter_test.d.ts.map +1 -1
  163. package/dist/types/tests/jsunit/field_variable_test.d.ts.map +1 -1
  164. package/dist/types/tests/jsunit/gesture_test.d.ts.map +1 -1
  165. package/dist/types/tests/jsunit/input_test.d.ts +1 -0
  166. package/dist/types/tests/jsunit/input_test.d.ts.map +1 -1
  167. package/dist/types/tests/jsunit/json_test.d.ts.map +1 -1
  168. package/dist/types/tests/jsunit/names_test.d.ts.map +1 -1
  169. package/dist/types/tests/jsunit/procedure_test.d.ts.map +1 -1
  170. package/dist/types/tests/jsunit/scratch_block_comment_test.d.ts.map +1 -1
  171. package/dist/types/tests/jsunit/svg_test.d.ts.map +1 -1
  172. package/dist/types/tests/jsunit/test_utilities.d.ts.map +1 -1
  173. package/dist/types/tests/jsunit/utils_test.d.ts.map +1 -1
  174. package/dist/types/tests/jsunit/variable_map_test.d.ts.map +1 -1
  175. package/dist/types/tests/jsunit/variable_model_test.d.ts.map +1 -1
  176. package/dist/types/tests/jsunit/widget_div_test.d.ts.map +1 -1
  177. package/dist/types/tests/jsunit/workspace_comment_test.d.ts.map +1 -1
  178. package/dist/types/tests/jsunit/workspace_test.d.ts.map +1 -1
  179. package/dist/types/tests/jsunit/workspace_undo_redo_test.d.ts.map +1 -1
  180. package/dist/types/tests/jsunit/xml_test.d.ts.map +1 -1
  181. package/dist/types/tests/workspace_svg/workspace_svg_test.d.ts.map +1 -1
  182. package/eslint.config.mjs +69 -0
  183. package/i18n/create_scratch_msgs.js +44 -45
  184. package/i18n/js_to_json.js +40 -32
  185. package/i18n/json_to_js.js +37 -37
  186. package/i18n/sync_tx_translations.js +64 -65
  187. package/i18n/test_scratch_msgs.js +66 -63
  188. package/msg/js/en.js +289 -287
  189. package/msg/json/en.json +284 -284
  190. package/msg/messages.js +289 -287
  191. package/msg/scratch_msgs.js +22959 -22970
  192. package/package.json +13 -10
  193. package/prettier.config.mjs +3 -0
  194. package/release.config.js +7 -7
  195. package/renovate.json5 +7 -9
  196. package/src/block_reporting.ts +15 -18
  197. package/src/blocks/colour.ts +12 -15
  198. package/src/blocks/control.ts +167 -177
  199. package/src/blocks/data.ts +225 -292
  200. package/src/blocks/event.ts +121 -123
  201. package/src/blocks/looks.ts +165 -167
  202. package/src/blocks/math.ts +44 -46
  203. package/src/blocks/matrix.ts +11 -13
  204. package/src/blocks/motion.ts +151 -153
  205. package/src/blocks/note.ts +11 -13
  206. package/src/blocks/operators.ts +158 -160
  207. package/src/blocks/procedures.ts +488 -536
  208. package/src/blocks/sensing.ts +163 -165
  209. package/src/blocks/sound.ts +58 -60
  210. package/src/blocks/text.ts +10 -12
  211. package/src/blocks/vertical_extensions.ts +86 -102
  212. package/src/checkable_continuous_flyout.ts +25 -42
  213. package/src/checkbox_bubble.ts +83 -100
  214. package/src/colours.ts +35 -37
  215. package/src/constants.ts +22 -29
  216. package/src/context_menu_items.ts +56 -81
  217. package/src/css.ts +3 -4
  218. package/src/data_category.ts +136 -250
  219. package/src/events/events_block_comment_base.ts +21 -31
  220. package/src/events/events_block_comment_change.ts +21 -42
  221. package/src/events/events_block_comment_collapse.ts +22 -43
  222. package/src/events/events_block_comment_create.ts +29 -46
  223. package/src/events/events_block_comment_delete.ts +10 -19
  224. package/src/events/events_block_comment_move.ts +27 -52
  225. package/src/events/events_block_comment_resize.ts +28 -55
  226. package/src/events/events_block_drag_end.ts +16 -26
  227. package/src/events/events_block_drag_outside.ts +12 -22
  228. package/src/events/events_scratch_variable_create.ts +33 -56
  229. package/src/fields/field_colour_slider.ts +173 -228
  230. package/src/fields/field_matrix.ts +200 -269
  231. package/src/fields/field_note.ts +272 -377
  232. package/src/fields/field_textinput_removable.ts +25 -40
  233. package/src/fields/field_variable_getter.ts +26 -31
  234. package/src/fields/field_vertical_separator.ts +19 -24
  235. package/src/fields/scratch_field_angle.ts +150 -186
  236. package/src/fields/scratch_field_dropdown.ts +15 -19
  237. package/src/fields/scratch_field_number.ts +123 -180
  238. package/src/fields/scratch_field_variable.ts +52 -73
  239. package/src/flyout_checkbox_icon.ts +18 -28
  240. package/src/glows.ts +51 -58
  241. package/src/index.ts +119 -133
  242. package/src/procedures.ts +144 -211
  243. package/src/recyclable_block_flyout_inflater.ts +14 -25
  244. package/src/renderer/bowler_hat.ts +6 -8
  245. package/src/renderer/cat/cat_face.ts +98 -99
  246. package/src/renderer/cat/constants.ts +67 -87
  247. package/src/renderer/cat/drawer.ts +21 -27
  248. package/src/renderer/cat/path_object.ts +3 -5
  249. package/src/renderer/cat/render_info.ts +5 -8
  250. package/src/renderer/cat/renderer.ts +11 -15
  251. package/src/renderer/constants.ts +34 -49
  252. package/src/renderer/drawer.ts +35 -51
  253. package/src/renderer/path_object.ts +13 -15
  254. package/src/renderer/render_info.ts +36 -56
  255. package/src/renderer/renderer.ts +16 -29
  256. package/src/scratch_block_paster.ts +12 -20
  257. package/src/scratch_blocks_utils.ts +4 -7
  258. package/src/scratch_comment_bubble.ts +70 -101
  259. package/src/scratch_comment_icon.ts +74 -123
  260. package/src/scratch_connection_checker.ts +22 -17
  261. package/src/scratch_continuous_category.ts +24 -28
  262. package/src/scratch_continuous_toolbox.ts +20 -27
  263. package/src/scratch_dragger.ts +54 -86
  264. package/src/scratch_insertion_marker_previewer.ts +6 -11
  265. package/src/scratch_variable_map.ts +5 -12
  266. package/src/scratch_variable_model.ts +4 -11
  267. package/src/scratch_zoom_controls.ts +101 -156
  268. package/src/shadows.ts +32 -37
  269. package/src/status_indicator_label.ts +54 -67
  270. package/src/status_indicator_label_flyout_inflater.ts +11 -21
  271. package/src/variables.ts +89 -138
  272. package/src/xml.ts +21 -35
  273. package/tsconfig.json +2 -6
  274. package/types/continuous-toolbox.d.ts +1 -1
  275. package/dist/main.mjs.LICENSE.txt +0 -163
@@ -1,9 +1,8 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2024 Google LLC
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
5
+ import * as Blockly from 'blockly/core';
7
6
  export declare class ConstantProvider extends Blockly.zelos.ConstantProvider {
8
7
  REPLACEMENT_GLOW_COLOUR: string;
9
8
  SELECTED_GLOW_COLOUR: string;
@@ -15,7 +14,6 @@ export declare class ConstantProvider extends Blockly.zelos.ConstantProvider {
15
14
  * styles contain any raw color values, corresponding CSS variables will be
16
15
  * created/overridden so that those colors can be dynamically referenced in
17
16
  * stylesheets.
18
- *
19
17
  * @param theme The new theme to apply.
20
18
  */
21
19
  setTheme(theme: Blockly.Theme): void;
@@ -28,8 +26,10 @@ export declare class ConstantProvider extends Blockly.zelos.ConstantProvider {
28
26
  * that input slots inside a Boolean reporter (like `<a = b>`) are still
29
27
  * drawn with the rounded shape that matches what they accept, not the
30
28
  * hexagonal shape of their parent block's output.
29
+ * @param connection The connection whose shape to determine.
30
+ * @returns The shape object for the given connection.
31
31
  */
32
- shapeFor(connection: Blockly.RenderedConnection): ReturnType<Blockly.zelos.ConstantProvider["shapeFor"]>;
32
+ shapeFor(connection: Blockly.RenderedConnection): ReturnType<Blockly.zelos.ConstantProvider['shapeFor']>;
33
33
  createDom(svg: SVGElement, tagName: string, selector: string): void;
34
34
  /**
35
35
  * Generate a bowler hat path string for a specific block.
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/renderer/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC,qBAAa,gBAAiB,SAAQ,OAAO,CAAC,KAAK,CAAC,gBAAgB;IAClE,uBAAuB,SAAa;IACpC,oBAAoB,SAAa;IAEjC,iBAAiB,SAAM;IAEvB;;;;;;;;;OASG;IACM,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK;IAgCtC;;;;;;;;;OASG;IACM,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,kBAAkB,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAqCxG,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAKrE;;;;OAIG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAMzC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/renderer/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC,qBAAa,gBAAiB,SAAQ,OAAO,CAAC,KAAK,CAAC,gBAAgB;IAClE,uBAAuB,SAAY;IACnC,oBAAoB,SAAY;IAEhC,iBAAiB,SAAK;IAEtB;;;;;;;;OAQG;IACM,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK;IAoBtC;;;;;;;;;;;OAWG;IACM,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,kBAAkB,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAqCxG,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAKrE;;;;OAIG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAIzC"}
@@ -1,11 +1,10 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2024 Google LLC
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
7
- import type { RenderInfo } from "./render_info";
8
- import { ConstantProvider } from "./constants";
5
+ import * as Blockly from 'blockly/core';
6
+ import { ConstantProvider } from './constants';
7
+ import type { RenderInfo } from './render_info';
9
8
  export declare class Drawer extends Blockly.zelos.Drawer {
10
9
  constants_: ConstantProvider;
11
10
  info_: RenderInfo;
@@ -19,6 +18,8 @@ export declare class Drawer extends Blockly.zelos.Drawer {
19
18
  * For rounded (non-hexagonal) input slots we expand the outline by 1px in
20
19
  * every direction so the white highlight stroke sits just outside the input
21
20
  * slot's background and remains visible rather than merging with it.
21
+ * @param measurable The connection measurable to highlight.
22
+ * @returns The highlight path element, if one was created.
22
23
  */
23
24
  drawConnectionHighlightPath(measurable: Blockly.blockRendering.Connection): SVGElement | undefined;
24
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/renderer/drawer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,qBAAa,MAAO,SAAQ,OAAO,CAAC,KAAK,CAAC,MAAM;IACtC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,KAAK,EAAE,UAAU,CAAC;IAEjB,mBAAmB,CAAC,GAAG,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;IAWnD,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;IAgBjD,QAAQ;IAgBjB,mBAAmB;IAMnB;;;;;;OAMG;IACM,2BAA2B,CAClC,UAAU,EAAE,OAAO,CAAC,cAAc,CAAC,UAAU;CAgChD"}
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/renderer/drawer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE/C,qBAAa,MAAO,SAAQ,OAAO,CAAC,KAAK,CAAC,MAAM;IACtC,UAAU,EAAE,gBAAgB,CAAA;IAC5B,KAAK,EAAE,UAAU,CAAA;IAEhB,mBAAmB,CAAC,GAAG,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;IAWnD,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;IAUjD,QAAQ;IAgBjB,mBAAmB;IAMnB;;;;;;;;OAQG;IACM,2BAA2B,CAAC,UAAU,EAAE,OAAO,CAAC,cAAc,CAAC,UAAU;CAuBnF"}
@@ -1,9 +1,8 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2024 Google LLC
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
5
+ import * as Blockly from 'blockly/core';
7
6
  /**
8
7
  * An object that handles creating and setting each of the SVG elements
9
8
  * used by the renderer.
@@ -12,7 +11,6 @@ export declare class PathObject extends Blockly.zelos.PathObject {
12
11
  /**
13
12
  * Apply the stored colours to the block's path, taking into account whether
14
13
  * the paths belong to a shadow block.
15
- *
16
14
  * @param block The source block.
17
15
  */
18
16
  applyColour(block: Blockly.BlockSvg): void;
@@ -1 +1 @@
1
- {"version":3,"file":"path_object.d.ts","sourceRoot":"","sources":["../../../../src/renderer/path_object.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC;;;GAGG;AACH,qBAAa,UAAW,SAAQ,OAAO,CAAC,KAAK,CAAC,UAAU;IACtD;;;;;OAKG;IACM,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ;CAe7C"}
1
+ {"version":3,"file":"path_object.d.ts","sourceRoot":"","sources":["../../../../src/renderer/path_object.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC;;;GAGG;AACH,qBAAa,UAAW,SAAQ,OAAO,CAAC,KAAK,CAAC,UAAU;IACtD;;;;OAIG;IACM,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ;CAgB7C"}
@@ -1,11 +1,10 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2024 Google LLC
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
7
- import { BowlerHat } from "./bowler_hat";
8
- import { ConstantProvider } from "./constants";
5
+ import * as Blockly from 'blockly/core';
6
+ import { BowlerHat } from './bowler_hat';
7
+ import { ConstantProvider } from './constants';
9
8
  export declare class RenderInfo extends Blockly.zelos.RenderInfo {
10
9
  constants_: ConstantProvider;
11
10
  populateTopRow_(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"render_info.d.ts","sourceRoot":"","sources":["../../../../src/renderer/render_info.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,qBAAa,UAAW,SAAQ,OAAO,CAAC,KAAK,CAAC,UAAU;IAC9C,UAAU,EAAE,gBAAgB,CAAC;IAE5B,eAAe;IAiBf,kBAAkB;IAOlB,cAAc;IA0Bd,gBAAgB,CACvB,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,UAAU,EACvC,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,UAAU,GACtC,MAAM;IAaA,mBAAmB,CAC1B,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,EAChC,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,GAC/B,MAAM;IAQA,kBAAkB,CACzB,GAAG,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,EAC/B,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,UAAU,GACtC,MAAM;IAmBT,gBAAgB;IAIhB,aAAa;CAGd"}
1
+ {"version":3,"file":"render_info.d.ts","sourceRoot":"","sources":["../../../../src/renderer/render_info.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,qBAAa,UAAW,SAAQ,OAAO,CAAC,KAAK,CAAC,UAAU;IAC9C,UAAU,EAAE,gBAAgB,CAAA;IAE3B,eAAe;IAaf,kBAAkB;IAOlB,cAAc;IAsBd,gBAAgB,CACvB,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,UAAU,EACvC,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,UAAU,GACtC,MAAM;IAYA,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,GAAG,MAAM;IAQ/F,kBAAkB,CAAC,GAAG,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,UAAU,GAAG,MAAM;IAiB7G,gBAAgB;IAIhB,aAAa;CAGd"}
@@ -1,13 +1,12 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2024 Google LLC
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
7
- import { Drawer } from "./drawer";
8
- import { RenderInfo } from "./render_info";
9
- import { ConstantProvider } from "./constants";
10
- import { PathObject } from "./path_object";
5
+ import * as Blockly from 'blockly/core';
6
+ import { ConstantProvider } from './constants';
7
+ import { Drawer } from './drawer';
8
+ import { PathObject } from './path_object';
9
+ import { RenderInfo } from './render_info';
11
10
  /**
12
11
  * Custom renderer for Scratch-style blocks.
13
12
  */
@@ -15,43 +14,37 @@ export declare class ScratchRenderer extends Blockly.zelos.Renderer {
15
14
  /**
16
15
  * Get the CSS class name associated with this renderer.
17
16
  * Note that all Scratch renderers share the same CSS class name.
18
- *
19
- * @returns The class name.
17
+ * @returns The CSS class name shared by all Scratch-style renderers.
20
18
  */
21
19
  getClassName(): string;
22
20
  /**
23
21
  * Create a new instance of the renderer's drawer.
24
- *
25
22
  * @param block The block to render.
26
- * @param infoAn object containing all the information needed to render this
23
+ * @param info An object containing all the information needed to render this
27
24
  * block.
28
25
  * @returns The drawer.
29
26
  */
30
27
  makeDrawer_(block: Blockly.BlockSvg, info: Blockly.blockRendering.RenderInfo): Drawer;
31
28
  /**
32
29
  * Create a new instance of the renderer's render info object.
33
- *
34
30
  * @param block The block to measure.
35
31
  * @returns The render info object.
36
32
  */
37
33
  makeRenderInfo_(block: Blockly.BlockSvg): RenderInfo;
38
34
  /**
39
35
  * Create a new instance of the renderer's constant provider.
40
- *
41
36
  * @returns The constant provider.
42
37
  */
43
38
  makeConstants_(): ConstantProvider;
44
39
  /**
45
40
  * Create a new instance of a renderer path object.
46
- *
47
41
  * @param root The root SVG element.
48
42
  * @param style The style object to use for colouring.
49
- * @returns The renderer path object.
43
+ * @returns A new path object configured for the given SVG root and block style.
50
44
  */
51
45
  makePathObject(root: SVGElement, style: Blockly.Theme.BlockStyle): PathObject;
52
46
  /**
53
47
  * Determine whether or not to highlight a connection.
54
- *
55
48
  * @param connection The connection to determine whether or not to highlight.
56
49
  * @returns True if we should highlight the connection.
57
50
  */
@@ -1 +1 @@
1
- {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../src/renderer/renderer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;GAEG;AACH,qBAAa,eAAgB,SAAQ,OAAO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AAc,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU,GAAG,UAAU;IAItF;;;;OAIG;IACM,yBAAyB,CAAC,UAAU,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO;CAGpF"}
@@ -1,8 +1,3 @@
1
- /**
2
- * @license
3
- * Copyright 2024 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
1
  /**
7
2
  * Unregisters the default block paster and registers ScratchBlockPaster in its
8
3
  * place.
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_block_paster.d.ts","sourceRoot":"","sources":["../../../src/scratch_block_paster.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA2CH;;;GAGG;AACH,wBAAgB,0BAA0B,SAMzC"}
1
+ {"version":3,"file":"scratch_block_paster.d.ts","sourceRoot":"","sources":["../../../src/scratch_block_paster.ts"],"names":[],"mappings":"AA0CA;;;GAGG;AACH,wBAAgB,0BAA0B,SAGzC"}
@@ -1,25 +1,5 @@
1
- /**
2
- * @license
3
- * Visual Blocks Editor
4
- *
5
- * Copyright 2018 Google Inc.
6
- * https://developers.google.com/blockly/
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- */
20
1
  /**
21
2
  * Compare strings with natural number sorting.
22
- *
23
3
  * @param str1 First input.
24
4
  * @param str2 Second input.
25
5
  * @returns -1, 0, or 1 to signify greater than, equality, or less than.
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_blocks_utils.d.ts","sourceRoot":"","sources":["../../../src/scratch_blocks_utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAQH;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAKjE"}
1
+ {"version":3,"file":"scratch_blocks_utils.d.ts","sourceRoot":"","sources":["../../../src/scratch_blocks_utils.ts"],"names":[],"mappings":"AAwBA;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAKjE"}
@@ -1,13 +1,10 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2024 Google LLC
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
5
+ import * as Blockly from 'blockly/core';
7
6
  /**
8
7
  * A Scratch-style comment bubble for block comments.
9
- * @implements {IBubble}
10
- * @implements {ISelectable}
11
8
  */
12
9
  export declare class ScratchCommentBubble extends Blockly.comments.CommentView implements Blockly.IBubble, Blockly.ISelectable {
13
10
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_comment_bubble.d.ts","sourceRoot":"","sources":["../../../src/scratch_comment_bubble.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC;;;;GAIG;AACH,qBAAa,oBACX,SAAQ,OAAO,CAAC,QAAQ,CAAC,WACzB,YAAW,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW;IAE/C,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,WAAW,CAA0B;IAC7C,OAAO,CAAC,MAAM,CAAC,CAA2B;IAC1C,OAAO,CAAC,WAAW,CAAC,CAAiB;IACrC,OAAO,CAAC,iBAAiB,CAAC,CAA2B;gBAEzC,WAAW,EAAE,OAAO,CAAC,QAAQ;IA8BzC,cAAc,CAAC,MAAM,EAAE,OAAO;IAC9B,eAAe;IACf,WAAW,CAAC,KAAK,EAAE,OAAO;IA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AAS;IAIT,cAAc,CAAC,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU;IAIpD,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAC9C,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU,GAAG,IAAI;IAUrD,YAAY,CAAC,CAAC,EAAE,YAAY;IAU5B,SAAS,CAAC,KAAK,EAAE,YAAY;IAO7B,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE,YAAY;IAIhE,OAAO;IASP,UAAU;IAIV,iBAAiB,CAAC,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU;IAcrD,UAAU;IAkBV,iBAAiB;IAQjB,KAAK;IAIL,cAAc;IAId,OAAO;IAcP,mBAAmB;IAInB,gBAAgB;IAIhB,WAAW;IAEX,UAAU;IAEV,YAAY;CAGb"}
@@ -1,10 +1,9 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2024 Google LLC
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
7
- import { ScratchCommentBubble } from "./scratch_comment_bubble";
5
+ import * as Blockly from 'blockly/core';
6
+ import { ScratchCommentBubble } from './scratch_comment_bubble';
8
7
  interface CommentState {
9
8
  text: string;
10
9
  height: number;
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_comment_icon.d.ts","sourceRoot":"","sources":["../../../src/scratch_comment_icon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,M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AU;IAiBtD,OAAO,CAAC,IAAI,EAAE,MAAM;IAIpB,OAAO,IAAI,MAAM;IAIjB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAO9C,WAAW,CAAC,SAAS,EAAE,OAAO;IAI9B,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI;IAItE,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI;IAItC,aAAa,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI;IAInC,iBAAiB,CAAC,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU;IAMvD,iBAAiB,IAAI,OAAO,CAAC,KAAK,CAAC,UAAU;IAI7C,SAAS,IAAI,YAAY,GAAG,IAAI;IAgBhC,SAAS,CAAC,KAAK,EAAE,YAAY;IAW7B,eAAe,IAAI,OAAO;IAIpB,gBAAgB,CAAC,OAAO,EAAE,OAAO;IAIvC,SAAS,IAAI,oBAAoB,GAAG,IAAI;IAIxC,OAAO;IAKP,YAAY;IAIZ;;OAEG;IACH,eAAe;CAGhB"}
@@ -1,7 +1,2 @@
1
- /**
2
- * @license
3
- * Copyright 2024 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
1
  export {};
7
2
  //# sourceMappingURL=scratch_connection_checker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_connection_checker.d.ts","sourceRoot":"","sources":["../../../src/scratch_connection_checker.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
1
+ {"version":3,"file":"scratch_connection_checker.d.ts","sourceRoot":"","sources":["../../../src/scratch_connection_checker.ts"],"names":[],"mappings":""}
@@ -1,10 +1,9 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2024 Google LLC
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
7
- import { ContinuousCategory } from "@blockly/continuous-toolbox";
5
+ import { ContinuousCategory } from '@blockly/continuous-toolbox';
6
+ import * as Blockly from 'blockly/core';
8
7
  type StatusIndicatorCategoryInfo = Blockly.utils.toolbox.CategoryInfo & {
9
8
  showStatusButton?: string;
10
9
  };
@@ -18,8 +17,8 @@ export declare class ScratchContinuousCategory extends ContinuousCategory {
18
17
  * devices.
19
18
  */
20
19
  private showStatusButton;
21
- /** Creates a new ScratchContinuousCategory.
22
- *
20
+ /**
21
+ * Creates a new ScratchContinuousCategory.
23
22
  * @param toolboxItemDef A toolbox item definition.
24
23
  * @param parentToolbox The toolbox this category is being added to.
25
24
  * @param opt_parent The parent toolbox category, if any.
@@ -38,6 +37,7 @@ export declare class ScratchContinuousCategory extends ContinuousCategory {
38
37
  /**
39
38
  * Returns whether or not this category's label in the flyout should display
40
39
  * status indicators.
40
+ * @returns True if the status indicator button should be shown.
41
41
  */
42
42
  shouldShowStatusButton(): boolean;
43
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_continuous_category.d.ts","sourceRoot":"","sources":["../../../src/scratch_continuous_category.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,KAAK,2BAA2B,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,GAAG;IACtE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,kBAAkB;IAC/D;;;;OAIG;IACH,OAAO,CAAC,gBAAgB,CAAS;IAEjC;;;;;OAKG;gBAED,cAAc,EAAE,2BAA2B,EAC3C,aAAa,EAAE,OAAO,CAAC,OAAO,EAC9B,UAAU,CAAC,EAAE,OAAO,CAAC,uBAAuB;IAM9C;;;OAGG;IACH,cAAc,IAAI,WAAW;IAa7B;;;OAGG;IACH,WAAW,CAAC,UAAU,EAAE,OAAO;IAM/B;;;OAGG;IACH,sBAAsB;CAGvB;AAED,uEAAuE;AACvE,wBAAgB,iCAAiC,SAUhD"}
1
+ {"version":3,"file":"scratch_continuous_category.d.ts","sourceRoot":"","sources":["../../../src/scratch_continuous_category.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC,KAAK,2BAA2B,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,GAAG;IACtE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,kBAAkB;IAC/D;;;;OAIG;IACH,OAAO,CAAC,gBAAgB,CAAQ;IAEhC;;;;;OAKG;gBAED,cAAc,EAAE,2BAA2B,EAC3C,aAAa,EAAE,OAAO,CAAC,OAAO,EAC9B,UAAU,CAAC,EAAE,OAAO,CAAC,uBAAuB;IAM9C;;;OAGG;IACH,cAAc,IAAI,WAAW;IAa7B;;;OAGG;IACH,WAAW,CAAC,UAAU,EAAE,OAAO;IAM/B;;;;OAIG;IACH,sBAAsB;CAGvB;AAED,uEAAuE;AACvE,wBAAgB,iCAAiC,SAOhD"}
@@ -1,10 +1,9 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2024 Google LLC
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
7
- import { ContinuousToolbox } from "@blockly/continuous-toolbox";
5
+ import { ContinuousToolbox } from '@blockly/continuous-toolbox';
6
+ import * as Blockly from 'blockly/core';
8
7
  /**
9
8
  * A toolbox that displays items from all categories in one scrolling list.
10
9
  */
@@ -17,8 +16,7 @@ export declare class ScratchContinuousToolbox extends ContinuousToolbox {
17
16
  /**
18
17
  * Converts the given toolbox item to a corresponding array of items that
19
18
  * should appear in the flyout.
20
- *
21
- * @param toolboxItem The toolbox item to convert.
19
+ * @param toolboxItem The toolbox item to translate into flyout content.
22
20
  * @returns An array of flyout item definitions.
23
21
  */
24
22
  protected convertToolboxItemToFlyoutItems(toolboxItem: Blockly.IToolboxItem): Blockly.utils.toolbox.FlyoutItemInfoArray;
@@ -34,7 +32,6 @@ export declare class ScratchContinuousToolbox extends ContinuousToolbox {
34
32
  /**
35
33
  * Returns whether or not the given item should be deselected.
36
34
  * Prevents items from being deselected without a replacement.
37
- *
38
35
  * @param oldItem The item that was previously selected.
39
36
  * @param newItem The item that is proposed to be selected instead.
40
37
  * @returns True if the old item should be allowed to be deselected.
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_continuous_toolbox.d.ts","sourceRoot":"","sources":["../../../src/scratch_continuous_toolbox.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAIhE;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,iBAAiB;IAC7D;;OAEG;IACH,OAAO,CAAC,mBAAmB,CAAsB;IAEjD,gBAAgB;IAKhB;;;;;;OAMG;IACH,SAAS,CAAC,+BAA+B,CACvC,WAAW,EAAE,OAAO,CAAC,YAAY,GAChC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,mBAAmB;IAe5C;;OAEG;IACH,aAAa;IAUb;;;OAGG;IACH,gBAAgB,CAAC,QAAQ,EAAE,MAAM,IAAI;IAIrC;;;;;;;OAOG;IACH,mBAAmB,CACjB,OAAO,EAAE,OAAO,CAAC,sBAAsB,GAAG,IAAI,EAC9C,OAAO,EAAE,OAAO,CAAC,sBAAsB,GAAG,IAAI;CAKjD"}
1
+ {"version":3,"file":"scratch_continuous_toolbox.d.ts","sourceRoot":"","sources":["../../../src/scratch_continuous_toolbox.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAIvC;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,iBAAiB;IAC7D;;OAEG;IACH,OAAO,CAAC,mBAAmB,CAAqB;IAEhD,gBAAgB;IAKhB;;;;;OAKG;IACH,SAAS,CAAC,+BAA+B,CACvC,WAAW,EAAE,OAAO,CAAC,YAAY,GAChC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,mBAAmB;IAY5C;;OAEG;IACH,aAAa;IAUb;;;OAGG;IACH,gBAAgB,CAAC,QAAQ,EAAE,MAAM,IAAI;IAIrC;;;;;;OAMG;IACH,mBAAmB,CACjB,OAAO,EAAE,OAAO,CAAC,sBAAsB,GAAG,IAAI,EAC9C,OAAO,EAAE,OAAO,CAAC,sBAAsB,GAAG,IAAI;CAKjD"}
@@ -1,9 +1,8 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2024 Google LLC
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
5
+ import * as Blockly from 'blockly/core';
7
6
  /**
8
7
  * Class responsible for managing dragging items on the workspace.
9
8
  */
@@ -18,48 +17,41 @@ export declare class ScratchDragger extends Blockly.dragging.Dragger {
18
17
  originatedFromFlyout: boolean;
19
18
  /**
20
19
  * Sets the current item being dragged.
21
- *
22
20
  * @param draggable The item being dragged.
23
21
  */
24
22
  setDraggable(draggable: Blockly.IDraggable): void;
25
23
  /**
26
24
  * Handles the start of a drag operation.
27
- *
28
25
  * @param event The event that triggered the drag.
29
26
  */
30
27
  onDragStart(event: PointerEvent): void;
31
28
  /**
32
29
  * Handles motion during an ongoing drag operation.
33
- *
34
30
  * @param event The event that triggered this call.
35
31
  * @param totalDelta The change in pointer position since the last invocation.
36
32
  */
37
33
  onDrag(event: PointerEvent, totalDelta: Blockly.utils.Coordinate): void;
38
34
  /**
39
35
  * Records whether or not the current drag is out of the workspace's bounds.
40
- *
41
36
  * @param event The event that triggered this call.
42
37
  */
43
38
  updateOutOfBoundsState(event: PointerEvent): void;
44
39
  /**
45
40
  * Handles the end of a drag.
46
- *
47
41
  * @param event The event that ended the drag.
48
42
  */
49
43
  onDragEnd(event: PointerEvent): void;
50
44
  /**
51
45
  * Returns whether or not the dragged item should return to its starting
52
46
  * position.
53
- *
54
47
  * @param event The drag event that triggered this check.
55
48
  * @param rootDraggable The topmost item being dragged.
56
49
  * @returns True if the draggable should return to its starting position.
57
50
  */
58
51
  shouldReturnToStart(event: PointerEvent, rootDraggable: Blockly.IDraggable): boolean;
59
52
  /**
60
- * Returns the root element being dragged. For shadow blocks, this is the
61
- * parent block.
62
- *
53
+ * Returns the root element being dragged. For shadow blocks and the
54
+ * procedures_prototype block, this is the parent block.
63
55
  * @param draggable The element being dragged directly.
64
56
  * @returns The element being dragged, or its parent.
65
57
  */
@@ -67,7 +59,6 @@ export declare class ScratchDragger extends Blockly.dragging.Dragger {
67
59
  /**
68
60
  * Returns whether or not the given event occurred within the bounds of the
69
61
  * workspace.
70
- *
71
62
  * @param event The event to check.
72
63
  * @returns True if the event occurred inside the workspace.
73
64
  */
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_dragger.d.ts","sourceRoot":"","sources":["../../../src/scratch_dragger.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAUxC;;GAEG;AACH,qBAAa,cAAe,SAAQ,OAAO,CAAC,QAAQ,CAAC,OAAO;IAC1D;;OAEG;IACH,kBAAkB,UAAS;IAE3B;;OAEG;IACH,oBAAoB,UAAS;IAE7B;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,UAAU;IAI1C;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,YAAY;IAoB/B;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU;IAKhE;;;;OAIG;IACH,sBAAsB,CAAC,KAAK,EAAE,YAAY;IAc1C;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,YAAY;IAoD7B;;;;;;;OAOG;IACH,mBAAmB,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,CAAC,UAAU;IAS1E;;;;;;OAMG;IACH,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC,UAAU;IAWzC;;;;;;OAMG;IACH,iBAAiB,CAAC,KAAK,EAAE,YAAY;CAUtC"}
1
+ {"version":3,"file":"scratch_dragger.d.ts","sourceRoot":"","sources":["../../../src/scratch_dragger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAUvC;;GAEG;AACH,qBAAa,cAAe,SAAQ,OAAO,CAAC,QAAQ,CAAC,OAAO;IAC1D;;OAEG;IACH,kBAAkB,UAAQ;IAE1B;;OAEG;IACH,oBAAoB,UAAQ;IAE5B;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,UAAU;IAI1C;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,YAAY;IAgB/B;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU;IAKhE;;;OAGG;IACH,sBAAsB,CAAC,KAAK,EAAE,YAAY;IAW1C;;;OAGG;IACH,SAAS,CAAC,KAAK,EAAE,YAAY;IA8C7B;;;;;;OAMG;IACH,mBAAmB,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,CAAC,UAAU;IAO1E;;;;;OAKG;IACH,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC,UAAU;IAczC;;;;;OAKG;IACH,iBAAiB,CAAC,KAAK,EAAE,YAAY;CAKtC"}
@@ -1,7 +1,2 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
1
  export {};
7
2
  //# sourceMappingURL=scratch_insertion_marker_previewer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_insertion_marker_previewer.d.ts","sourceRoot":"","sources":["../../../src/scratch_insertion_marker_previewer.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
1
+ {"version":3,"file":"scratch_insertion_marker_previewer.d.ts","sourceRoot":"","sources":["../../../src/scratch_insertion_marker_previewer.ts"],"names":[],"mappings":""}
@@ -1,7 +1,2 @@
1
- /**
2
- * @license
3
- * Copyright 2024 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
1
  export {};
7
2
  //# sourceMappingURL=scratch_variable_map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_variable_map.d.ts","sourceRoot":"","sources":["../../../src/scratch_variable_map.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
1
+ {"version":3,"file":"scratch_variable_map.d.ts","sourceRoot":"","sources":["../../../src/scratch_variable_map.ts"],"names":[],"mappings":""}
@@ -1,9 +1,8 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2024 Google LLC
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
5
+ import * as Blockly from 'blockly/core';
7
6
  /**
8
7
  * Class that represents a variable with extra fields for Scratch.
9
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_variable_model.d.ts","sourceRoot":"","sources":["../../../src/scratch_variable_model.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,OAAO,CAAC,aAAa;IAMpD,OAAO;IACP,OAAO;gBALd,SAAS,EAAE,OAAO,CAAC,SAAS,EAC5B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,EAAE,CAAC,EAAE,MAAM,EACJ,OAAO,UAAQ,EACf,OAAO,UAAQ;CAIzB"}
1
+ {"version":3,"file":"scratch_variable_model.d.ts","sourceRoot":"","sources":["../../../src/scratch_variable_model.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,OAAO,CAAC,aAAa;IAMpD,OAAO;IACP,OAAO;gBALd,SAAS,EAAE,OAAO,CAAC,SAAS,EAC5B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,EAAE,CAAC,EAAE,MAAM,EACJ,OAAO,UAAQ,EACf,OAAO,UAAQ;CAIzB"}
@@ -1,9 +1,8 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2026 Scratch Foundation
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
5
+ import * as Blockly from 'blockly/core';
7
6
  /**
8
7
  * Scratch-specific zoom controls that use separate SVG files for each button
9
8
  * instead of Blockly's default sprite sheet approach. SVG files are loaded
@@ -34,13 +33,11 @@ export declare class ScratchZoomControls implements Blockly.IPositionable {
34
33
  constructor(workspace: Blockly.WorkspaceSvg);
35
34
  /**
36
35
  * Creates the zoom controls DOM.
37
- *
38
36
  * @returns The root SVG group element.
39
37
  */
40
38
  createDom(): SVGGElement;
41
39
  /**
42
40
  * Creates an SVG group containing one zoom button image.
43
- *
44
41
  * @param extraClass Additional CSS class to add alongside `blocklyZoom`.
45
42
  * @param imageHref URL of the SVG icon to display.
46
43
  * @returns The button group element.
@@ -53,16 +50,18 @@ export declare class ScratchZoomControls implements Blockly.IPositionable {
53
50
  /**
54
51
  * Returns the bounding rectangle of the zoom controls in pixels relative to
55
52
  * the Blockly injection div.
53
+ * @returns The bounding rectangle, or null if not yet positioned.
56
54
  */
57
55
  getBoundingRectangle(): Blockly.utils.Rect | null;
58
56
  /**
59
57
  * Positions the zoom controls in the corner opposite the toolbox, bumping
60
58
  * down (or up) to avoid overlapping other positioned UI elements.
59
+ * @param metrics The current workspace UI metrics.
60
+ * @param savedPositions Bounding rectangles of already-placed UI elements to avoid overlapping.
61
61
  */
62
62
  position(metrics: Blockly.MetricsManager.UiMetrics, savedPositions: Blockly.utils.Rect[]): void;
63
63
  /**
64
64
  * Handles zoom in / zoom out button clicks.
65
- *
66
65
  * @param amount Positive to zoom in, negative to zoom out.
67
66
  * @param e The pointer event.
68
67
  */
@@ -70,7 +69,6 @@ export declare class ScratchZoomControls implements Blockly.IPositionable {
70
69
  /**
71
70
  * Handles zoom reset button clicks. Animates back to the starting scale and
72
71
  * re-centers the workspace.
73
- *
74
72
  * @param e The pointer event.
75
73
  */
76
74
  private resetZoom;
@@ -1 +1 @@
1
- {"version":3,"file":"scratch_zoom_controls.d.ts","sourceRoot":"","sources":["../../../src/scratch_zoom_controls.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC;;;;;GAKG;AACH,qBAAa,mBAAoB,YAAW,OAAO,CAAC,aAAa;IA6BnD,OAAO,CAAC,QAAQ,CAAC,SAAS;IA5BtC,EAAE,SAAkB;IAEpB,OAAO,CAAC,WAAW,CAAoC;IAEvD,OAAO,CAAC,QAAQ,CAA4B;IAC5C,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,YAAY,CAA4B;IAChD,OAAO,CAAC,cAAc,CAA4B;IAElD,8DAA8D;IAC9D,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAM;IAE3B,gDAAgD;IAChD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAK;IAEnC,2DAA2D;IAC3D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAM;IAEpC,uDAAuD;IACvD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAM;IAEtC,yDAAyD;IACzD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAM;IAExC,OAAO,CAAC,IAAI,CAAK;IACjB,OAAO,CAAC,GAAG,CAAK;IAChB,OAAO,CAAC,WAAW,CAAS;gBAEC,SAAS,EAA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,OAAO,CAAC,IAAI,CAAI;IAChB,OAAO,CAAC,GAAG,CAAI;IACf,OAAO,CAAC,WAAW,CAAQ;gBAEE,SAAS,EAAE,OAAO,CAAC,YAAY;IAE5D;;;OAGG;IACH,SAAS,IAAI,WAAW;IA8BxB;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;IAkBzB,sEAAsE;IACtE,IAAI;IASJ,gEAAgE;IAChE,OAAO;IAWP;;;;OAIG;IACH,oBAAoB,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI;IAQjD;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,SAAS,EAAE,cAAc,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE;IAgExF;;;;OAIG;IACH,OAAO,CAAC,IAAI;IASZ;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAuBjB,gEAAgE;IAChE,OAAO,CAAC,aAAa;CAItB"}
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license
3
2
  * Copyright 2024 Google LLC
4
3
  * SPDX-License-Identifier: Apache-2.0
5
4
  */
6
- import * as Blockly from "blockly/core";
5
+ import * as Blockly from 'blockly/core';
7
6
  /**
8
7
  * Creates an SVG filter to apply drop shadows to blocks being dragged and
9
8
  * inserts it into the DOM.
9
+ * @param workspace The workspace whose SVG will receive the filter definition.
10
10
  */
11
11
  export declare function buildShadowFilter(workspace: Blockly.WorkspaceSvg): void;
12
12
  //# sourceMappingURL=shadows.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../../src/shadows.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAGxC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,OAAO,CAAC,YAAY,QAmDhE"}
1
+ {"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../../src/shadows.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAGvC;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,OAAO,CAAC,YAAY,QA+ChE"}