scratch-blocks 1.2.0-beta.1 → 1.2.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.
- package/.husky/commit-msg +3 -0
- package/blockly_compressed_horizontal.js +2255 -0
- package/blockly_compressed_vertical.js +2283 -0
- package/blockly_uncompressed_horizontal.js +1210 -0
- package/blockly_uncompressed_vertical.js +1210 -0
- package/blocks_common/colour.js +61 -0
- package/blocks_common/math.js +159 -0
- package/blocks_common/matrix.js +54 -0
- package/blocks_common/note.js +58 -0
- package/blocks_common/text.js +57 -0
- package/blocks_compressed.js +36 -0
- package/blocks_compressed_horizontal.js +67 -0
- package/blocks_compressed_vertical.js +208 -0
- package/blocks_horizontal/control.js +212 -0
- package/blocks_horizontal/default_toolbox.js +139 -0
- package/blocks_horizontal/event.js +190 -0
- package/blocks_horizontal/wedo.js +325 -0
- package/blocks_vertical/control.js +532 -0
- package/blocks_vertical/data.js +666 -0
- package/blocks_vertical/default_toolbox.js +564 -0
- package/blocks_vertical/event.js +329 -0
- package/blocks_vertical/extensions.js +294 -0
- package/blocks_vertical/looks.js +591 -0
- package/blocks_vertical/motion.js +587 -0
- package/blocks_vertical/operators.js +470 -0
- package/blocks_vertical/procedures.js +973 -0
- package/blocks_vertical/sensing.js +554 -0
- package/blocks_vertical/sound.js +246 -0
- package/blocks_vertical/vertical_extensions.js +266 -0
- package/build/gen_blocks.js +1 -0
- package/build/test_expect.js +1 -0
- package/build/test_input.js +1 -0
- package/build.py +636 -0
- package/cleanup.sh +101 -0
- package/core/block.js +1837 -0
- package/core/block_animations.js +107 -0
- package/core/block_drag_surface.js +299 -0
- package/core/block_dragger.js +421 -0
- package/core/block_events.js +531 -0
- package/core/block_render_svg_horizontal.js +890 -0
- package/core/block_render_svg_vertical.js +1732 -0
- package/core/block_svg.js +1316 -0
- package/core/blockly.js +622 -0
- package/core/blocks.js +37 -0
- package/core/bubble.js +664 -0
- package/core/bubble_dragger.js +285 -0
- package/core/colours.js +160 -0
- package/core/comment.js +293 -0
- package/core/comment_events.js +539 -0
- package/core/connection.js +766 -0
- package/core/connection_db.js +300 -0
- package/core/constants.js +387 -0
- package/core/contextmenu.js +519 -0
- package/core/css.js +1351 -0
- package/core/data_category.js +490 -0
- package/core/dragged_connection_manager.js +260 -0
- package/core/dropdowndiv.js +408 -0
- package/core/events.js +429 -0
- package/core/events_abstract.js +113 -0
- package/core/extensions.js +450 -0
- package/core/field.js +807 -0
- package/core/field_angle.js +398 -0
- package/core/field_checkbox.js +133 -0
- package/core/field_colour.js +253 -0
- package/core/field_colour_slider.js +387 -0
- package/core/field_date.js +353 -0
- package/core/field_dropdown.js +483 -0
- package/core/field_iconmenu.js +309 -0
- package/core/field_image.js +193 -0
- package/core/field_label.js +136 -0
- package/core/field_label_serializable.js +125 -0
- package/core/field_matrix.js +566 -0
- package/core/field_note.js +850 -0
- package/core/field_number.js +366 -0
- package/core/field_numberdropdown.js +77 -0
- package/core/field_textdropdown.js +164 -0
- package/core/field_textinput.js +675 -0
- package/core/field_textinput_removable.js +105 -0
- package/core/field_variable.js +385 -0
- package/core/field_variable_getter.js +185 -0
- package/core/field_vertical_separator.js +161 -0
- package/core/flyout_base.js +923 -0
- package/core/flyout_button.js +322 -0
- package/core/flyout_dragger.js +83 -0
- package/core/flyout_extension_category_header.js +159 -0
- package/core/flyout_horizontal.js +475 -0
- package/core/flyout_vertical.js +770 -0
- package/core/generator.js +426 -0
- package/core/gesture.js +1011 -0
- package/core/grid.js +227 -0
- package/core/icon.js +205 -0
- package/core/inject.js +491 -0
- package/core/input.js +285 -0
- package/core/insertion_marker_manager.js +678 -0
- package/core/msg.js +62 -0
- package/core/mutator.js +426 -0
- package/core/names.js +198 -0
- package/core/options.js +244 -0
- package/core/procedures.js +577 -0
- package/core/rendered_connection.js +417 -0
- package/core/scratch_block_comment.js +653 -0
- package/core/scratch_blocks_utils.js +244 -0
- package/core/scratch_bubble.js +696 -0
- package/core/scratch_events.js +131 -0
- package/core/scratch_msgs.js +85 -0
- package/core/scrollbar.js +875 -0
- package/core/toolbox.js +801 -0
- package/core/tooltip.js +337 -0
- package/core/touch.js +226 -0
- package/core/trashcan.js +343 -0
- package/core/ui_events.js +91 -0
- package/core/ui_menu_utils.js +68 -0
- package/core/utils.js +948 -0
- package/core/variable_events.js +259 -0
- package/core/variable_map.js +415 -0
- package/core/variable_model.js +116 -0
- package/core/variables.js +674 -0
- package/core/warning.js +199 -0
- package/core/widgetdiv.js +344 -0
- package/core/workspace.js +673 -0
- package/core/workspace_audio.js +170 -0
- package/core/workspace_comment.js +432 -0
- package/core/workspace_comment_render_svg.js +723 -0
- package/core/workspace_comment_svg.js +611 -0
- package/core/workspace_drag_surface_svg.js +195 -0
- package/core/workspace_dragger.js +132 -0
- package/core/workspace_svg.js +2267 -0
- package/core/xml.js +919 -0
- package/core/zoom_controls.js +301 -0
- package/dist/horizontal.js +222 -0
- package/dist/vertical.js +222 -0
- package/dist/web/horizontal.js +232 -0
- package/dist/web/vertical.js +232 -0
- package/local_build.sh +70 -0
- package/msg/js/en.js +1 -0
- package/msg/json/en.json +1 -0
- package/msg/messages.js +1 -0
- package/msg/scratch_msgs.js +281 -221
- package/package.json +40 -25
- package/pull_from_blockly.sh +151 -0
- package/release.config.js +0 -8
- package/shim/blockly_compressed_horizontal-blocks_compressed.js +1 -0
- package/shim/blockly_compressed_horizontal.Blockly.js +1 -0
- package/shim/blockly_compressed_horizontal.goog.js +1 -0
- package/shim/blockly_compressed_horizontal.js +1 -0
- package/shim/blockly_compressed_vertical-blocks_compressed.js +1 -0
- package/shim/blockly_compressed_vertical.Blockly.js +1 -0
- package/shim/blockly_compressed_vertical.goog.js +1 -0
- package/shim/blockly_compressed_vertical.js +1 -0
- package/shim/blocks_compressed_horizontal-blockly_compressed_horizontal-messages.js +1 -0
- package/shim/blocks_compressed_horizontal.js +1 -0
- package/shim/blocks_compressed_vertical-blockly_compressed_vertical-messages.js +1 -0
- package/shim/blocks_compressed_vertical.js +1 -0
- package/shim/gh-pages.js +1 -0
- package/shim/horizontal.js +1 -0
- package/shim/index.js +17 -0
- package/shim/vertical.js +1 -0
- package/CHANGELOG.md +0 -1104
- package/TODO.md +0 -16
- package/blockly-rc/.eslintignore +0 -28
- package/blockly-rc/.eslintrc.js +0 -187
- package/blockly-rc/.gitattributes +0 -1
- package/blockly-rc/.github/CODEOWNERS +0 -1
- package/blockly-rc/.github/CONTRIBUTING.md +0 -46
- package/blockly-rc/.github/ISSUE_TEMPLATE/bug_report.yaml +0 -58
- package/blockly-rc/.github/ISSUE_TEMPLATE/config.yml +0 -7
- package/blockly-rc/.github/ISSUE_TEMPLATE/documentation.yaml +0 -38
- package/blockly-rc/.github/ISSUE_TEMPLATE/feature_request.yaml +0 -39
- package/blockly-rc/.github/PULL_REQUEST_TEMPLATE.md +0 -42
- package/blockly-rc/.github/dependabot.yml +0 -27
- package/blockly-rc/.github/release.yml +0 -32
- package/blockly-rc/.github/workflows/appengine_deploy.yml +0 -54
- package/blockly-rc/.github/workflows/assign_reviewers.yml +0 -41
- package/blockly-rc/.github/workflows/browser_test.yml +0 -55
- package/blockly-rc/.github/workflows/build.yml +0 -86
- package/blockly-rc/.github/workflows/conventional-label.yml +0 -17
- package/blockly-rc/.github/workflows/develop_freeze.yml +0 -26
- package/blockly-rc/.github/workflows/tag_module_cleanup.yml +0 -37
- package/blockly-rc/.github/workflows/welcome_new_contributors.yml +0 -36
- package/blockly-rc/.prettierignore +0 -30
- package/blockly-rc/.prettierrc.js +0 -13
- package/blockly-rc/CHANGELOG.md +0 -77
- package/blockly-rc/LICENSE +0 -202
- package/blockly-rc/README.md +0 -80
- package/blockly-rc/_config.yml +0 -1
- package/blockly-rc/api-extractor.json +0 -385
- package/blockly-rc/appengine/.gcloudignore +0 -20
- package/blockly-rc/appengine/README.txt +0 -42
- package/blockly-rc/appengine/add_timestamps.py +0 -69
- package/blockly-rc/appengine/app.yaml +0 -104
- package/blockly-rc/appengine/apple-touch-icon.png +0 -0
- package/blockly-rc/appengine/blockly_compressed.js +0 -11
- package/blockly-rc/appengine/expiration.py +0 -52
- package/blockly-rc/appengine/favicon.ico +0 -0
- package/blockly-rc/appengine/index.yaml +0 -11
- package/blockly-rc/appengine/main.py +0 -39
- package/blockly-rc/appengine/redirect.html +0 -107
- package/blockly-rc/appengine/requirements.txt +0 -1
- package/blockly-rc/appengine/robots.txt +0 -2
- package/blockly-rc/appengine/storage.js +0 -190
- package/blockly-rc/appengine/storage.py +0 -125
- package/blockly-rc/blocks/blocks.ts +0 -44
- package/blockly-rc/blocks/lists.ts +0 -1085
- package/blockly-rc/blocks/logic.ts +0 -712
- package/blockly-rc/blocks/loops.ts +0 -408
- package/blockly-rc/blocks/math.ts +0 -591
- package/blockly-rc/blocks/procedures.ts +0 -1364
- package/blockly-rc/blocks/text.ts +0 -1007
- package/blockly-rc/blocks/variables.ts +0 -183
- package/blockly-rc/blocks/variables_dynamic.ts +0 -194
- package/blockly-rc/core/any_aliases.ts +0 -8
- package/blockly-rc/core/block.ts +0 -2523
- package/blockly-rc/core/block_animations.ts +0 -225
- package/blockly-rc/core/block_flyout_inflater.ts +0 -262
- package/blockly-rc/core/block_svg.ts +0 -1768
- package/blockly-rc/core/blockly.ts +0 -605
- package/blockly-rc/core/blockly_options.ts +0 -71
- package/blockly-rc/core/blocks.ts +0 -18
- package/blockly-rc/core/browser_events.ts +0 -244
- package/blockly-rc/core/bubbles/bubble.ts +0 -658
- package/blockly-rc/core/bubbles/mini_workspace_bubble.ts +0 -280
- package/blockly-rc/core/bubbles/text_bubble.ts +0 -103
- package/blockly-rc/core/bubbles/textinput_bubble.ts +0 -344
- package/blockly-rc/core/bubbles.ts +0 -12
- package/blockly-rc/core/bump_objects.ts +0 -192
- package/blockly-rc/core/button_flyout_inflater.ts +0 -63
- package/blockly-rc/core/clipboard/block_paster.ts +0 -142
- package/blockly-rc/core/clipboard/registry.ts +0 -31
- package/blockly-rc/core/clipboard/workspace_comment_paster.ts +0 -94
- package/blockly-rc/core/clipboard.ts +0 -113
- package/blockly-rc/core/comments/comment_view.ts +0 -899
- package/blockly-rc/core/comments/rendered_workspace_comment.ts +0 -297
- package/blockly-rc/core/comments/workspace_comment.ts +0 -237
- package/blockly-rc/core/comments.ts +0 -9
- package/blockly-rc/core/common.ts +0 -305
- package/blockly-rc/core/component_manager.ts +0 -235
- package/blockly-rc/core/config.ts +0 -65
- package/blockly-rc/core/connection.ts +0 -793
- package/blockly-rc/core/connection_checker.ts +0 -348
- package/blockly-rc/core/connection_db.ts +0 -297
- package/blockly-rc/core/connection_type.ts +0 -21
- package/blockly-rc/core/constants.ts +0 -23
- package/blockly-rc/core/contextmenu.ts +0 -268
- package/blockly-rc/core/contextmenu_items.ts +0 -700
- package/blockly-rc/core/contextmenu_registry.ts +0 -194
- package/blockly-rc/core/css.ts +0 -481
- package/blockly-rc/core/delete_area.ts +0 -77
- package/blockly-rc/core/dialog.ts +0 -121
- package/blockly-rc/core/drag_target.ts +0 -97
- package/blockly-rc/core/dragging/block_drag_strategy.ts +0 -454
- package/blockly-rc/core/dragging/bubble_drag_strategy.ts +0 -52
- package/blockly-rc/core/dragging/comment_drag_strategy.ts +0 -91
- package/blockly-rc/core/dragging/dragger.ts +0 -163
- package/blockly-rc/core/dragging.ts +0 -12
- package/blockly-rc/core/dropdowndiv.ts +0 -768
- package/blockly-rc/core/events/events.ts +0 -163
- package/blockly-rc/core/events/events_abstract.ts +0 -130
- package/blockly-rc/core/events/events_block_base.ts +0 -88
- package/blockly-rc/core/events/events_block_change.ts +0 -259
- package/blockly-rc/core/events/events_block_create.ts +0 -185
- package/blockly-rc/core/events/events_block_delete.ts +0 -182
- package/blockly-rc/core/events/events_block_drag.ts +0 -116
- package/blockly-rc/core/events/events_block_field_intermediate_change.ts +0 -167
- package/blockly-rc/core/events/events_block_move.ts +0 -307
- package/blockly-rc/core/events/events_bubble_open.ts +0 -120
- package/blockly-rc/core/events/events_click.ts +0 -110
- package/blockly-rc/core/events/events_comment_base.ts +0 -126
- package/blockly-rc/core/events/events_comment_change.ts +0 -161
- package/blockly-rc/core/events/events_comment_collapse.ts +0 -103
- package/blockly-rc/core/events/events_comment_create.ts +0 -118
- package/blockly-rc/core/events/events_comment_delete.ts +0 -117
- package/blockly-rc/core/events/events_comment_drag.ts +0 -99
- package/blockly-rc/core/events/events_comment_move.ts +0 -207
- package/blockly-rc/core/events/events_comment_resize.ts +0 -174
- package/blockly-rc/core/events/events_marker_move.ts +0 -134
- package/blockly-rc/core/events/events_selected.ts +0 -98
- package/blockly-rc/core/events/events_theme_change.ts +0 -84
- package/blockly-rc/core/events/events_toolbox_item_select.ts +0 -96
- package/blockly-rc/core/events/events_trashcan_open.ts +0 -88
- package/blockly-rc/core/events/events_ui_base.ts +0 -47
- package/blockly-rc/core/events/events_var_base.ts +0 -89
- package/blockly-rc/core/events/events_var_create.ts +0 -129
- package/blockly-rc/core/events/events_var_delete.ts +0 -124
- package/blockly-rc/core/events/events_var_rename.ts +0 -133
- package/blockly-rc/core/events/events_var_type_change.ts +0 -122
- package/blockly-rc/core/events/events_viewport.ts +0 -149
- package/blockly-rc/core/events/utils.ts +0 -595
- package/blockly-rc/core/events/workspace_events.ts +0 -46
- package/blockly-rc/core/extensions.ts +0 -491
- package/blockly-rc/core/field.ts +0 -1471
- package/blockly-rc/core/field_checkbox.ts +0 -271
- package/blockly-rc/core/field_dropdown.ts +0 -857
- package/blockly-rc/core/field_image.ts +0 -297
- package/blockly-rc/core/field_input.ts +0 -755
- package/blockly-rc/core/field_label.ts +0 -150
- package/blockly-rc/core/field_label_serializable.ts +0 -73
- package/blockly-rc/core/field_number.ts +0 -381
- package/blockly-rc/core/field_registry.ts +0 -115
- package/blockly-rc/core/field_textinput.ts +0 -117
- package/blockly-rc/core/field_variable.ts +0 -651
- package/blockly-rc/core/flyout_base.ts +0 -968
- package/blockly-rc/core/flyout_button.ts +0 -416
- package/blockly-rc/core/flyout_horizontal.ts +0 -374
- package/blockly-rc/core/flyout_metrics_manager.ts +0 -90
- package/blockly-rc/core/flyout_separator.ts +0 -61
- package/blockly-rc/core/flyout_vertical.ts +0 -353
- package/blockly-rc/core/generator.ts +0 -611
- package/blockly-rc/core/gesture.ts +0 -1191
- package/blockly-rc/core/grid.ts +0 -252
- package/blockly-rc/core/icons/comment_icon.ts +0 -435
- package/blockly-rc/core/icons/exceptions.ts +0 -23
- package/blockly-rc/core/icons/icon.ts +0 -147
- package/blockly-rc/core/icons/icon_types.ts +0 -32
- package/blockly-rc/core/icons/mutator_icon.ts +0 -354
- package/blockly-rc/core/icons/registry.ts +0 -33
- package/blockly-rc/core/icons/warning_icon.ts +0 -219
- package/blockly-rc/core/icons.ts +0 -24
- package/blockly-rc/core/inject.ts +0 -428
- package/blockly-rc/core/inputs/align.ts +0 -14
- package/blockly-rc/core/inputs/dummy_input.ts +0 -26
- package/blockly-rc/core/inputs/end_row_input.ts +0 -31
- package/blockly-rc/core/inputs/input.ts +0 -318
- package/blockly-rc/core/inputs/input_types.ts +0 -27
- package/blockly-rc/core/inputs/statement_input.ts +0 -34
- package/blockly-rc/core/inputs/value_input.ts +0 -30
- package/blockly-rc/core/inputs.ts +0 -23
- package/blockly-rc/core/insertion_marker_manager.ts +0 -742
- package/blockly-rc/core/insertion_marker_previewer.ts +0 -254
- package/blockly-rc/core/interfaces/i_ast_node_location.ts +0 -12
- package/blockly-rc/core/interfaces/i_ast_node_location_svg.ts +0 -28
- package/blockly-rc/core/interfaces/i_ast_node_location_with_block.ts +0 -22
- package/blockly-rc/core/interfaces/i_autohideable.ts +0 -22
- package/blockly-rc/core/interfaces/i_bounded_element.ts +0 -30
- package/blockly-rc/core/interfaces/i_bubble.ts +0 -63
- package/blockly-rc/core/interfaces/i_collapsible_toolbox_item.ts +0 -33
- package/blockly-rc/core/interfaces/i_comment_icon.ts +0 -47
- package/blockly-rc/core/interfaces/i_component.ts +0 -19
- package/blockly-rc/core/interfaces/i_connection_checker.ts +0 -100
- package/blockly-rc/core/interfaces/i_connection_previewer.ts +0 -50
- package/blockly-rc/core/interfaces/i_contextmenu.ts +0 -16
- package/blockly-rc/core/interfaces/i_copyable.ts +0 -31
- package/blockly-rc/core/interfaces/i_deletable.ts +0 -34
- package/blockly-rc/core/interfaces/i_delete_area.ts +0 -28
- package/blockly-rc/core/interfaces/i_drag_target.ts +0 -69
- package/blockly-rc/core/interfaces/i_draggable.ts +0 -72
- package/blockly-rc/core/interfaces/i_dragger.ts +0 -35
- package/blockly-rc/core/interfaces/i_flyout.ts +0 -189
- package/blockly-rc/core/interfaces/i_flyout_inflater.ts +0 -41
- package/blockly-rc/core/interfaces/i_has_bubble.ts +0 -20
- package/blockly-rc/core/interfaces/i_icon.ts +0 -114
- package/blockly-rc/core/interfaces/i_keyboard_accessible.ts +0 -21
- package/blockly-rc/core/interfaces/i_legacy_procedure_blocks.ts +0 -50
- package/blockly-rc/core/interfaces/i_metrics_manager.ts +0 -149
- package/blockly-rc/core/interfaces/i_movable.ts +0 -19
- package/blockly-rc/core/interfaces/i_observable.ts +0 -24
- package/blockly-rc/core/interfaces/i_parameter_model.ts +0 -51
- package/blockly-rc/core/interfaces/i_paster.ts +0 -25
- package/blockly-rc/core/interfaces/i_positionable.ts +0 -33
- package/blockly-rc/core/interfaces/i_procedure_block.ts +0 -27
- package/blockly-rc/core/interfaces/i_procedure_map.ts +0 -18
- package/blockly-rc/core/interfaces/i_procedure_model.ts +0 -71
- package/blockly-rc/core/interfaces/i_registrable.ts +0 -12
- package/blockly-rc/core/interfaces/i_rendered_element.ts +0 -22
- package/blockly-rc/core/interfaces/i_selectable.ts +0 -34
- package/blockly-rc/core/interfaces/i_selectable_toolbox_item.ts +0 -63
- package/blockly-rc/core/interfaces/i_serializable.ts +0 -28
- package/blockly-rc/core/interfaces/i_serializer.ts +0 -55
- package/blockly-rc/core/interfaces/i_styleable.ts +0 -26
- package/blockly-rc/core/interfaces/i_toolbox.ts +0 -112
- package/blockly-rc/core/interfaces/i_toolbox_item.ts +0 -81
- package/blockly-rc/core/interfaces/i_variable_backed_parameter_model.ts +0 -23
- package/blockly-rc/core/interfaces/i_variable_map.ts +0 -65
- package/blockly-rc/core/interfaces/i_variable_model.ts +0 -57
- package/blockly-rc/core/internal_constants.ts +0 -47
- package/blockly-rc/core/keyboard_nav/ast_node.ts +0 -884
- package/blockly-rc/core/keyboard_nav/basic_cursor.ts +0 -223
- package/blockly-rc/core/keyboard_nav/cursor.ts +0 -138
- package/blockly-rc/core/keyboard_nav/marker.ts +0 -113
- package/blockly-rc/core/keyboard_nav/tab_navigate_cursor.ts +0 -46
- package/blockly-rc/core/label_flyout_inflater.ts +0 -59
- package/blockly-rc/core/layer_manager.ts +0 -186
- package/blockly-rc/core/layers.ts +0 -17
- package/blockly-rc/core/main.ts +0 -31
- package/blockly-rc/core/marker_manager.ts +0 -189
- package/blockly-rc/core/menu.ts +0 -463
- package/blockly-rc/core/menuitem.ts +0 -221
- package/blockly-rc/core/metrics_manager.ts +0 -486
- package/blockly-rc/core/msg.ts +0 -27
- package/blockly-rc/core/names.ts +0 -275
- package/blockly-rc/core/observable_procedure_map.ts +0 -66
- package/blockly-rc/core/options.ts +0 -377
- package/blockly-rc/core/positionable_helpers.ts +0 -186
- package/blockly-rc/core/procedures.ts +0 -510
- package/blockly-rc/core/registry.ts +0 -400
- package/blockly-rc/core/render_management.ts +0 -193
- package/blockly-rc/core/rendered_connection.ts +0 -571
- package/blockly-rc/core/renderers/common/block_rendering.ts +0 -120
- package/blockly-rc/core/renderers/common/constants.ts +0 -1198
- package/blockly-rc/core/renderers/common/drawer.ts +0 -518
- package/blockly-rc/core/renderers/common/i_path_object.ts +0 -137
- package/blockly-rc/core/renderers/common/info.ts +0 -767
- package/blockly-rc/core/renderers/common/marker_svg.ts +0 -765
- package/blockly-rc/core/renderers/common/path_object.ts +0 -324
- package/blockly-rc/core/renderers/common/renderer.ts +0 -281
- package/blockly-rc/core/renderers/geras/constants.ts +0 -46
- package/blockly-rc/core/renderers/geras/drawer.ts +0 -167
- package/blockly-rc/core/renderers/geras/geras.ts +0 -31
- package/blockly-rc/core/renderers/geras/highlight_constants.ts +0 -342
- package/blockly-rc/core/renderers/geras/highlighter.ts +0 -313
- package/blockly-rc/core/renderers/geras/info.ts +0 -478
- package/blockly-rc/core/renderers/geras/measurables/inline_input.ts +0 -37
- package/blockly-rc/core/renderers/geras/measurables/statement_input.ts +0 -36
- package/blockly-rc/core/renderers/geras/path_object.ts +0 -135
- package/blockly-rc/core/renderers/geras/renderer.ts +0 -124
- package/blockly-rc/core/renderers/measurables/base.ts +0 -41
- package/blockly-rc/core/renderers/measurables/bottom_row.ts +0 -104
- package/blockly-rc/core/renderers/measurables/connection.ts +0 -43
- package/blockly-rc/core/renderers/measurables/external_value_input.ts +0 -53
- package/blockly-rc/core/renderers/measurables/field.ts +0 -50
- package/blockly-rc/core/renderers/measurables/hat.ts +0 -33
- package/blockly-rc/core/renderers/measurables/icon.ts +0 -42
- package/blockly-rc/core/renderers/measurables/in_row_spacer.ts +0 -29
- package/blockly-rc/core/renderers/measurables/inline_input.ts +0 -63
- package/blockly-rc/core/renderers/measurables/input_connection.ts +0 -57
- package/blockly-rc/core/renderers/measurables/input_row.ts +0 -67
- package/blockly-rc/core/renderers/measurables/jagged_edge.ts +0 -28
- package/blockly-rc/core/renderers/measurables/next_connection.ts +0 -34
- package/blockly-rc/core/renderers/measurables/output_connection.ts +0 -43
- package/blockly-rc/core/renderers/measurables/previous_connection.ts +0 -34
- package/blockly-rc/core/renderers/measurables/round_corner.ts +0 -34
- package/blockly-rc/core/renderers/measurables/row.ts +0 -191
- package/blockly-rc/core/renderers/measurables/spacer_row.ts +0 -44
- package/blockly-rc/core/renderers/measurables/square_corner.ts +0 -32
- package/blockly-rc/core/renderers/measurables/statement_input.ts +0 -41
- package/blockly-rc/core/renderers/measurables/top_row.ts +0 -110
- package/blockly-rc/core/renderers/measurables/types.ts +0 -319
- package/blockly-rc/core/renderers/thrasos/info.ts +0 -328
- package/blockly-rc/core/renderers/thrasos/renderer.ts +0 -40
- package/blockly-rc/core/renderers/thrasos/thrasos.ts +0 -14
- package/blockly-rc/core/renderers/zelos/constants.ts +0 -877
- package/blockly-rc/core/renderers/zelos/drawer.ts +0 -274
- package/blockly-rc/core/renderers/zelos/info.ts +0 -652
- package/blockly-rc/core/renderers/zelos/marker_svg.ts +0 -145
- package/blockly-rc/core/renderers/zelos/measurables/bottom_row.ts +0 -44
- package/blockly-rc/core/renderers/zelos/measurables/inputs.ts +0 -41
- package/blockly-rc/core/renderers/zelos/measurables/row_elements.ts +0 -29
- package/blockly-rc/core/renderers/zelos/measurables/top_row.ts +0 -50
- package/blockly-rc/core/renderers/zelos/path_object.ts +0 -209
- package/blockly-rc/core/renderers/zelos/renderer.ts +0 -143
- package/blockly-rc/core/renderers/zelos/zelos.ts +0 -33
- package/blockly-rc/core/scrollbar.ts +0 -898
- package/blockly-rc/core/scrollbar_pair.ts +0 -349
- package/blockly-rc/core/separator_flyout_inflater.ts +0 -69
- package/blockly-rc/core/serialization/blocks.ts +0 -868
- package/blockly-rc/core/serialization/exceptions.ts +0 -112
- package/blockly-rc/core/serialization/priorities.ts +0 -25
- package/blockly-rc/core/serialization/procedures.ts +0 -158
- package/blockly-rc/core/serialization/registry.ts +0 -30
- package/blockly-rc/core/serialization/variables.ts +0 -68
- package/blockly-rc/core/serialization/workspace_comments.ts +0 -143
- package/blockly-rc/core/serialization/workspaces.ts +0 -94
- package/blockly-rc/core/serialization.ts +0 -32
- package/blockly-rc/core/shortcut_items.ts +0 -338
- package/blockly-rc/core/shortcut_registry.ts +0 -368
- package/blockly-rc/core/sprites.ts +0 -15
- package/blockly-rc/core/theme/classic.ts +0 -40
- package/blockly-rc/core/theme/themes.ts +0 -12
- package/blockly-rc/core/theme/zelos.ts +0 -80
- package/blockly-rc/core/theme.ts +0 -232
- package/blockly-rc/core/theme_manager.ts +0 -192
- package/blockly-rc/core/toolbox/category.ts +0 -739
- package/blockly-rc/core/toolbox/collapsible_category.ts +0 -288
- package/blockly-rc/core/toolbox/separator.ts +0 -105
- package/blockly-rc/core/toolbox/toolbox.ts +0 -1134
- package/blockly-rc/core/toolbox/toolbox_item.ts +0 -152
- package/blockly-rc/core/tooltip.ts +0 -466
- package/blockly-rc/core/touch.ts +0 -155
- package/blockly-rc/core/trashcan.ts +0 -748
- package/blockly-rc/core/utils/aria.ts +0 -144
- package/blockly-rc/core/utils/array.ts +0 -24
- package/blockly-rc/core/utils/colour.ts +0 -265
- package/blockly-rc/core/utils/coordinate.ts +0 -129
- package/blockly-rc/core/utils/deprecation.ts +0 -47
- package/blockly-rc/core/utils/dom.ts +0 -356
- package/blockly-rc/core/utils/idgenerator.ts +0 -70
- package/blockly-rc/core/utils/keycodes.ts +0 -154
- package/blockly-rc/core/utils/math.ts +0 -50
- package/blockly-rc/core/utils/metrics.ts +0 -86
- package/blockly-rc/core/utils/object.ts +0 -28
- package/blockly-rc/core/utils/parsing.ts +0 -287
- package/blockly-rc/core/utils/rect.ts +0 -69
- package/blockly-rc/core/utils/size.ts +0 -62
- package/blockly-rc/core/utils/string.ts +0 -289
- package/blockly-rc/core/utils/style.ts +0 -219
- package/blockly-rc/core/utils/svg.ts +0 -84
- package/blockly-rc/core/utils/svg_math.ts +0 -208
- package/blockly-rc/core/utils/svg_paths.ts +0 -133
- package/blockly-rc/core/utils/toolbox.ts +0 -419
- package/blockly-rc/core/utils/useragent.ts +0 -86
- package/blockly-rc/core/utils/xml.ts +0 -165
- package/blockly-rc/core/utils.ts +0 -59
- package/blockly-rc/core/variable_map.ts +0 -437
- package/blockly-rc/core/variable_model.ts +0 -149
- package/blockly-rc/core/variables.ts +0 -773
- package/blockly-rc/core/variables_dynamic.ts +0 -142
- package/blockly-rc/core/widgetdiv.ts +0 -319
- package/blockly-rc/core/workspace.ts +0 -957
- package/blockly-rc/core/workspace_audio.ts +0 -171
- package/blockly-rc/core/workspace_dragger.ts +0 -97
- package/blockly-rc/core/workspace_svg.ts +0 -2519
- package/blockly-rc/core/xml.ts +0 -1133
- package/blockly-rc/core/zoom_controls.ts +0 -492
- package/blockly-rc/demos/blockfactory/analytics.js +0 -195
- package/blockly-rc/demos/blockfactory/app_controller.js +0 -726
- package/blockly-rc/demos/blockfactory/block_definition_extractor.js +0 -742
- package/blockly-rc/demos/blockfactory/block_exporter_controller.js +0 -311
- package/blockly-rc/demos/blockfactory/block_exporter_tools.js +0 -212
- package/blockly-rc/demos/blockfactory/block_exporter_view.js +0 -101
- package/blockly-rc/demos/blockfactory/block_library_controller.js +0 -325
- package/blockly-rc/demos/blockfactory/block_library_storage.js +0 -149
- package/blockly-rc/demos/blockfactory/block_library_view.js +0 -178
- package/blockly-rc/demos/blockfactory/block_option.js +0 -151
- package/blockly-rc/demos/blockfactory/blocks.js +0 -916
- package/blockly-rc/demos/blockfactory/cp.css +0 -46
- package/blockly-rc/demos/blockfactory/cp.js +0 -179
- package/blockly-rc/demos/blockfactory/factory.css +0 -586
- package/blockly-rc/demos/blockfactory/factory.js +0 -337
- package/blockly-rc/demos/blockfactory/factory_utils.js +0 -1036
- package/blockly-rc/demos/blockfactory/icon.png +0 -0
- package/blockly-rc/demos/blockfactory/index.html +0 -767
- package/blockly-rc/demos/blockfactory/link.png +0 -0
- package/blockly-rc/demos/blockfactory/standard_categories.js +0 -384
- package/blockly-rc/demos/blockfactory/workspacefactory/wfactory_controller.js +0 -1332
- package/blockly-rc/demos/blockfactory/workspacefactory/wfactory_generator.js +0 -224
- package/blockly-rc/demos/blockfactory/workspacefactory/wfactory_init.js +0 -541
- package/blockly-rc/demos/blockfactory/workspacefactory/wfactory_model.js +0 -548
- package/blockly-rc/demos/blockfactory/workspacefactory/wfactory_view.js +0 -424
- package/blockly-rc/demos/code/code.js +0 -626
- package/blockly-rc/demos/code/icon.png +0 -0
- package/blockly-rc/demos/code/icons.png +0 -0
- package/blockly-rc/demos/code/index.html +0 -359
- package/blockly-rc/demos/code/msg/ar.js +0 -24
- package/blockly-rc/demos/code/msg/be-tarask.js +0 -24
- package/blockly-rc/demos/code/msg/br.js +0 -24
- package/blockly-rc/demos/code/msg/ca.js +0 -24
- package/blockly-rc/demos/code/msg/cs.js +0 -24
- package/blockly-rc/demos/code/msg/da.js +0 -24
- package/blockly-rc/demos/code/msg/de.js +0 -24
- package/blockly-rc/demos/code/msg/el.js +0 -24
- package/blockly-rc/demos/code/msg/en.js +0 -24
- package/blockly-rc/demos/code/msg/es.js +0 -24
- package/blockly-rc/demos/code/msg/et.js +0 -24
- package/blockly-rc/demos/code/msg/fa.js +0 -24
- package/blockly-rc/demos/code/msg/fr.js +0 -24
- package/blockly-rc/demos/code/msg/he.js +0 -24
- package/blockly-rc/demos/code/msg/hr.js +0 -24
- package/blockly-rc/demos/code/msg/hrx.js +0 -24
- package/blockly-rc/demos/code/msg/hu.js +0 -24
- package/blockly-rc/demos/code/msg/ia.js +0 -24
- package/blockly-rc/demos/code/msg/is.js +0 -24
- package/blockly-rc/demos/code/msg/it.js +0 -24
- package/blockly-rc/demos/code/msg/ja.js +0 -24
- package/blockly-rc/demos/code/msg/kab.js +0 -24
- package/blockly-rc/demos/code/msg/ko.js +0 -24
- package/blockly-rc/demos/code/msg/mk.js +0 -24
- package/blockly-rc/demos/code/msg/ms.js +0 -24
- package/blockly-rc/demos/code/msg/nb.js +0 -24
- package/blockly-rc/demos/code/msg/nl.js +0 -24
- package/blockly-rc/demos/code/msg/oc.js +0 -24
- package/blockly-rc/demos/code/msg/pl.js +0 -24
- package/blockly-rc/demos/code/msg/pms.js +0 -24
- package/blockly-rc/demos/code/msg/pt-br.js +0 -24
- package/blockly-rc/demos/code/msg/ro.js +0 -24
- package/blockly-rc/demos/code/msg/ru.js +0 -24
- package/blockly-rc/demos/code/msg/sc.js +0 -24
- package/blockly-rc/demos/code/msg/sk.js +0 -24
- package/blockly-rc/demos/code/msg/sr.js +0 -24
- package/blockly-rc/demos/code/msg/sv.js +0 -24
- package/blockly-rc/demos/code/msg/ta.js +0 -24
- package/blockly-rc/demos/code/msg/th.js +0 -24
- package/blockly-rc/demos/code/msg/tlh.js +0 -24
- package/blockly-rc/demos/code/msg/tr.js +0 -24
- package/blockly-rc/demos/code/msg/uk.js +0 -24
- package/blockly-rc/demos/code/msg/vi.js +0 -24
- package/blockly-rc/demos/code/msg/zh-hans.js +0 -24
- package/blockly-rc/demos/code/msg/zh-hant.js +0 -24
- package/blockly-rc/demos/code/style.css +0 -184
- package/blockly-rc/demos/index.html +0 -68
- package/blockly-rc/demos/minimap/icon.png +0 -0
- package/blockly-rc/demos/minimap/index.html +0 -91
- package/blockly-rc/demos/minimap/minimap.js +0 -302
- package/blockly-rc/demos/mobile/README.md +0 -53
- package/blockly-rc/demos/mobile/android/README.md +0 -45
- package/blockly-rc/demos/mobile/android/app/build.gradle +0 -64
- package/blockly-rc/demos/mobile/android/app/proguard-rules.pro +0 -21
- package/blockly-rc/demos/mobile/android/app/src/androidTest/java/com/example/blocklywebview/ExampleInstrumentedTest.java +0 -26
- package/blockly-rc/demos/mobile/android/app/src/main/AndroidManifest.xml +0 -21
- package/blockly-rc/demos/mobile/android/app/src/main/java/com/google/blockly/android/webview/BlocklyWebViewFragment.java +0 -40
- package/blockly-rc/demos/mobile/android/app/src/main/java/com/google/blockly/android/webview/JsDialogHelper.java +0 -150
- package/blockly-rc/demos/mobile/android/app/src/main/java/com/google/blockly/android/webview/WebChromeClient.java +0 -32
- package/blockly-rc/demos/mobile/android/app/src/main/java/com/google/blockly/android/webview/demo/MainActivity.java +0 -18
- package/blockly-rc/demos/mobile/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -74
- package/blockly-rc/demos/mobile/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +0 -34
- package/blockly-rc/demos/mobile/android/app/src/main/res/layout/activity_main.xml +0 -17
- package/blockly-rc/demos/mobile/android/app/src/main/res/layout/js_prompt.xml +0 -37
- package/blockly-rc/demos/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
- package/blockly-rc/demos/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -5
- package/blockly-rc/demos/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/blockly-rc/demos/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/blockly-rc/demos/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/blockly-rc/demos/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/blockly-rc/demos/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/blockly-rc/demos/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/blockly-rc/demos/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/blockly-rc/demos/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/blockly-rc/demos/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/blockly-rc/demos/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/blockly-rc/demos/mobile/android/app/src/main/res/values/colors.xml +0 -6
- package/blockly-rc/demos/mobile/android/app/src/main/res/values/js_dialog_helper.xml +0 -7
- package/blockly-rc/demos/mobile/android/app/src/main/res/values/strings.xml +0 -3
- package/blockly-rc/demos/mobile/android/app/src/main/res/values/styles.xml +0 -11
- package/blockly-rc/demos/mobile/android/app/src/test/java/com/example/blocklywebview/ExampleUnitTest.java +0 -17
- package/blockly-rc/demos/mobile/android/build.gradle +0 -27
- package/blockly-rc/demos/mobile/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/blockly-rc/demos/mobile/android/gradle/wrapper/gradle-wrapper.properties +0 -6
- package/blockly-rc/demos/mobile/android/gradle.properties +0 -13
- package/blockly-rc/demos/mobile/android/gradlew +0 -172
- package/blockly-rc/demos/mobile/android/gradlew.bat +0 -84
- package/blockly-rc/demos/mobile/android/settings.gradle +0 -1
- package/blockly-rc/demos/mobile/html/index.html +0 -31
- package/blockly-rc/demos/mobile/html/ln_resources.sh +0 -22
- package/blockly-rc/demos/mobile/html/toolbox_standard.js +0 -333
- package/blockly-rc/demos/mobile/ios/Blockly WebView/AppDelegate.swift +0 -46
- package/blockly-rc/demos/mobile/ios/Blockly WebView/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -98
- package/blockly-rc/demos/mobile/ios/Blockly WebView/Assets.xcassets/Contents.json +0 -6
- package/blockly-rc/demos/mobile/ios/Blockly WebView/Base.lproj/LaunchScreen.storyboard +0 -25
- package/blockly-rc/demos/mobile/ios/Blockly WebView/Base.lproj/Main.storyboard +0 -44
- package/blockly-rc/demos/mobile/ios/Blockly WebView/Info.plist +0 -45
- package/blockly-rc/demos/mobile/ios/Blockly WebView/ViewController.swift +0 -110
- package/blockly-rc/demos/mobile/ios/Blockly WebView.xcodeproj/project.pbxproj +0 -390
- package/blockly-rc/demos/mobile/ios/Blockly WebView.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/blockly-rc/demos/mobile/ios/Blockly WebView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/blockly-rc/demos/mobile/ios/cp_resources.sh +0 -21
- package/blockly-rc/demos/storage/icon.png +0 -0
- package/blockly-rc/demos/storage/index.html +0 -104
- package/blockly-rc/generators/dart/dart_generator.ts +0 -321
- package/blockly-rc/generators/dart/lists.ts +0 -525
- package/blockly-rc/generators/dart/logic.ts +0 -155
- package/blockly-rc/generators/dart/loops.ts +0 -217
- package/blockly-rc/generators/dart/math.ts +0 -559
- package/blockly-rc/generators/dart/procedures.ts +0 -138
- package/blockly-rc/generators/dart/text.ts +0 -405
- package/blockly-rc/generators/dart/variables.ts +0 -32
- package/blockly-rc/generators/dart/variables_dynamic.ts +0 -17
- package/blockly-rc/generators/dart.ts +0 -50
- package/blockly-rc/generators/javascript/javascript_generator.ts +0 -346
- package/blockly-rc/generators/javascript/lists.ts +0 -465
- package/blockly-rc/generators/javascript/logic.ts +0 -153
- package/blockly-rc/generators/javascript/loops.ts +0 -245
- package/blockly-rc/generators/javascript/math.ts +0 -450
- package/blockly-rc/generators/javascript/procedures.ts +0 -142
- package/blockly-rc/generators/javascript/text.ts +0 -418
- package/blockly-rc/generators/javascript/variables.ts +0 -32
- package/blockly-rc/generators/javascript/variables_dynamic.ts +0 -17
- package/blockly-rc/generators/javascript.ts +0 -46
- package/blockly-rc/generators/lua/lists.ts +0 -445
- package/blockly-rc/generators/lua/logic.ts +0 -142
- package/blockly-rc/generators/lua/loops.ts +0 -192
- package/blockly-rc/generators/lua/lua_generator.ts +0 -225
- package/blockly-rc/generators/lua/math.ts +0 -473
- package/blockly-rc/generators/lua/procedures.ts +0 -144
- package/blockly-rc/generators/lua/text.ts +0 -380
- package/blockly-rc/generators/lua/variables.ts +0 -31
- package/blockly-rc/generators/lua/variables_dynamic.ts +0 -17
- package/blockly-rc/generators/lua.ts +0 -44
- package/blockly-rc/generators/php/lists.ts +0 -585
- package/blockly-rc/generators/php/logic.ts +0 -155
- package/blockly-rc/generators/php/loops.ts +0 -218
- package/blockly-rc/generators/php/math.ts +0 -408
- package/blockly-rc/generators/php/php_generator.ts +0 -320
- package/blockly-rc/generators/php/procedures.ts +0 -159
- package/blockly-rc/generators/php/text.ts +0 -315
- package/blockly-rc/generators/php/variables.ts +0 -32
- package/blockly-rc/generators/php/variables_dynamic.ts +0 -17
- package/blockly-rc/generators/php.ts +0 -46
- package/blockly-rc/generators/python/lists.ts +0 -398
- package/blockly-rc/generators/python/logic.ts +0 -148
- package/blockly-rc/generators/python/loops.ts +0 -251
- package/blockly-rc/generators/python/math.ts +0 -434
- package/blockly-rc/generators/python/procedures.ts +0 -159
- package/blockly-rc/generators/python/python_generator.ts +0 -355
- package/blockly-rc/generators/python/text.ts +0 -338
- package/blockly-rc/generators/python/variables.ts +0 -31
- package/blockly-rc/generators/python/variables_dynamic.ts +0 -17
- package/blockly-rc/generators/python.ts +0 -51
- package/blockly-rc/gulpfile.js +0 -54
- package/blockly-rc/jsconfig.json +0 -7
- package/blockly-rc/media/1x1.gif +0 -0
- package/blockly-rc/media/click.mp3 +0 -0
- package/blockly-rc/media/click.ogg +0 -0
- package/blockly-rc/media/click.wav +0 -0
- package/blockly-rc/media/delete-icon.svg +0 -1
- package/blockly-rc/media/delete.mp3 +0 -0
- package/blockly-rc/media/delete.ogg +0 -0
- package/blockly-rc/media/delete.wav +0 -0
- package/blockly-rc/media/disconnect.mp3 +0 -0
- package/blockly-rc/media/disconnect.ogg +0 -0
- package/blockly-rc/media/disconnect.wav +0 -0
- package/blockly-rc/media/dropdown-arrow.svg +0 -1
- package/blockly-rc/media/foldout-icon.svg +0 -1
- package/blockly-rc/media/handclosed.cur +0 -0
- package/blockly-rc/media/handdelete.cur +0 -0
- package/blockly-rc/media/handopen.cur +0 -0
- package/blockly-rc/media/pilcrow.png +0 -0
- package/blockly-rc/media/quote0.png +0 -0
- package/blockly-rc/media/quote1.png +0 -0
- package/blockly-rc/media/resize-handle.svg +0 -3
- package/blockly-rc/media/sprites.png +0 -0
- package/blockly-rc/media/sprites.svg +0 -74
- package/blockly-rc/msg/json/README.md +0 -33
- package/blockly-rc/msg/json/ab.json +0 -222
- package/blockly-rc/msg/json/ace.json +0 -7
- package/blockly-rc/msg/json/af.json +0 -34
- package/blockly-rc/msg/json/am.json +0 -30
- package/blockly-rc/msg/json/ar.json +0 -355
- package/blockly-rc/msg/json/ast.json +0 -10
- package/blockly-rc/msg/json/az.json +0 -332
- package/blockly-rc/msg/json/ba.json +0 -211
- package/blockly-rc/msg/json/bcc.json +0 -290
- package/blockly-rc/msg/json/be-tarask.json +0 -334
- package/blockly-rc/msg/json/be.json +0 -324
- package/blockly-rc/msg/json/bg.json +0 -345
- package/blockly-rc/msg/json/bn.json +0 -189
- package/blockly-rc/msg/json/br.json +0 -334
- package/blockly-rc/msg/json/bs.json +0 -166
- package/blockly-rc/msg/json/ca.json +0 -341
- package/blockly-rc/msg/json/cdo.json +0 -6
- package/blockly-rc/msg/json/ce.json +0 -326
- package/blockly-rc/msg/json/constants.json +0 -12
- package/blockly-rc/msg/json/cs.json +0 -343
- package/blockly-rc/msg/json/da.json +0 -346
- package/blockly-rc/msg/json/de.json +0 -369
- package/blockly-rc/msg/json/diq.json +0 -258
- package/blockly-rc/msg/json/dtp.json +0 -198
- package/blockly-rc/msg/json/dty.json +0 -97
- package/blockly-rc/msg/json/ee.json +0 -160
- package/blockly-rc/msg/json/el.json +0 -356
- package/blockly-rc/msg/json/en-gb.json +0 -199
- package/blockly-rc/msg/json/en.json +0 -400
- package/blockly-rc/msg/json/eo.json +0 -337
- package/blockly-rc/msg/json/es.json +0 -358
- package/blockly-rc/msg/json/et.json +0 -326
- package/blockly-rc/msg/json/eu.json +0 -219
- package/blockly-rc/msg/json/fa.json +0 -341
- package/blockly-rc/msg/json/fi.json +0 -350
- package/blockly-rc/msg/json/fo.json +0 -46
- package/blockly-rc/msg/json/fr.json +0 -373
- package/blockly-rc/msg/json/frr.json +0 -6
- package/blockly-rc/msg/json/gl.json +0 -338
- package/blockly-rc/msg/json/gn.json +0 -54
- package/blockly-rc/msg/json/gor.json +0 -87
- package/blockly-rc/msg/json/ha.json +0 -313
- package/blockly-rc/msg/json/hak.json +0 -17
- package/blockly-rc/msg/json/he.json +0 -354
- package/blockly-rc/msg/json/hi.json +0 -318
- package/blockly-rc/msg/json/hr.json +0 -327
- package/blockly-rc/msg/json/hrx.json +0 -287
- package/blockly-rc/msg/json/hsb.json +0 -128
- package/blockly-rc/msg/json/hu.json +0 -349
- package/blockly-rc/msg/json/hy.json +0 -337
- package/blockly-rc/msg/json/ia.json +0 -337
- package/blockly-rc/msg/json/id.json +0 -335
- package/blockly-rc/msg/json/ig.json +0 -323
- package/blockly-rc/msg/json/inh.json +0 -80
- package/blockly-rc/msg/json/is.json +0 -331
- package/blockly-rc/msg/json/it.json +0 -346
- package/blockly-rc/msg/json/ja.json +0 -361
- package/blockly-rc/msg/json/ka.json +0 -14
- package/blockly-rc/msg/json/kab.json +0 -323
- package/blockly-rc/msg/json/kbd-cyrl.json +0 -84
- package/blockly-rc/msg/json/km.json +0 -29
- package/blockly-rc/msg/json/kn.json +0 -332
- package/blockly-rc/msg/json/ko.json +0 -372
- package/blockly-rc/msg/json/ksh.json +0 -43
- package/blockly-rc/msg/json/ku-latn.json +0 -41
- package/blockly-rc/msg/json/ky.json +0 -71
- package/blockly-rc/msg/json/la.json +0 -6
- package/blockly-rc/msg/json/lb.json +0 -156
- package/blockly-rc/msg/json/lki.json +0 -282
- package/blockly-rc/msg/json/lo.json +0 -92
- package/blockly-rc/msg/json/lrc.json +0 -123
- package/blockly-rc/msg/json/lt.json +0 -321
- package/blockly-rc/msg/json/lv.json +0 -324
- package/blockly-rc/msg/json/mg.json +0 -58
- package/blockly-rc/msg/json/mk.json +0 -178
- package/blockly-rc/msg/json/ml.json +0 -35
- package/blockly-rc/msg/json/mnw.json +0 -90
- package/blockly-rc/msg/json/ms.json +0 -300
- package/blockly-rc/msg/json/my.json +0 -57
- package/blockly-rc/msg/json/mzn.json +0 -6
- package/blockly-rc/msg/json/nb.json +0 -330
- package/blockly-rc/msg/json/ne.json +0 -247
- package/blockly-rc/msg/json/nl.json +0 -357
- package/blockly-rc/msg/json/oc.json +0 -194
- package/blockly-rc/msg/json/olo.json +0 -37
- package/blockly-rc/msg/json/pa.json +0 -69
- package/blockly-rc/msg/json/pl.json +0 -357
- package/blockly-rc/msg/json/pms.json +0 -324
- package/blockly-rc/msg/json/ps.json +0 -50
- package/blockly-rc/msg/json/pt-br.json +0 -369
- package/blockly-rc/msg/json/pt.json +0 -358
- package/blockly-rc/msg/json/qqq.json +0 -406
- package/blockly-rc/msg/json/ro.json +0 -333
- package/blockly-rc/msg/json/ru.json +0 -363
- package/blockly-rc/msg/json/sc.json +0 -283
- package/blockly-rc/msg/json/sco.json +0 -11
- package/blockly-rc/msg/json/sd.json +0 -158
- package/blockly-rc/msg/json/shn.json +0 -109
- package/blockly-rc/msg/json/si.json +0 -16
- package/blockly-rc/msg/json/sk.json +0 -332
- package/blockly-rc/msg/json/skr-arab.json +0 -117
- package/blockly-rc/msg/json/sl.json +0 -355
- package/blockly-rc/msg/json/smn.json +0 -133
- package/blockly-rc/msg/json/sq.json +0 -343
- package/blockly-rc/msg/json/sr-latn.json +0 -324
- package/blockly-rc/msg/json/sr.json +0 -348
- package/blockly-rc/msg/json/sv.json +0 -347
- package/blockly-rc/msg/json/sw.json +0 -12
- package/blockly-rc/msg/json/synonyms.json +0 -22
- package/blockly-rc/msg/json/ta.json +0 -306
- package/blockly-rc/msg/json/tcy.json +0 -316
- package/blockly-rc/msg/json/tdd.json +0 -109
- package/blockly-rc/msg/json/te.json +0 -101
- package/blockly-rc/msg/json/th.json +0 -333
- package/blockly-rc/msg/json/ti.json +0 -50
- package/blockly-rc/msg/json/tl.json +0 -129
- package/blockly-rc/msg/json/tlh.json +0 -179
- package/blockly-rc/msg/json/tr.json +0 -369
- package/blockly-rc/msg/json/ug-arab.json +0 -132
- package/blockly-rc/msg/json/uk.json +0 -345
- package/blockly-rc/msg/json/ur.json +0 -117
- package/blockly-rc/msg/json/uz.json +0 -36
- package/blockly-rc/msg/json/vi.json +0 -345
- package/blockly-rc/msg/json/xmf.json +0 -96
- package/blockly-rc/msg/json/yo.json +0 -316
- package/blockly-rc/msg/json/zgh.json +0 -83
- package/blockly-rc/msg/json/zh-hans.json +0 -372
- package/blockly-rc/msg/json/zh-hant.json +0 -362
- package/blockly-rc/msg/messages.js +0 -1616
- package/blockly-rc/package-lock.json +0 -12324
- package/blockly-rc/package.json +0 -149
- package/blockly-rc/patches/@microsoft+api-documenter+7.22.4.patch +0 -81
- package/blockly-rc/scripts/goog_module/convert-file.sh +0 -406
- package/blockly-rc/scripts/gulpfiles/appengine_tasks.js +0 -195
- package/blockly-rc/scripts/gulpfiles/build_tasks.js +0 -752
- package/blockly-rc/scripts/gulpfiles/config.js +0 -41
- package/blockly-rc/scripts/gulpfiles/docs_tasks.js +0 -147
- package/blockly-rc/scripts/gulpfiles/git_tasks.js +0 -181
- package/blockly-rc/scripts/gulpfiles/helper_tasks.js +0 -19
- package/blockly-rc/scripts/gulpfiles/package_tasks.js +0 -262
- package/blockly-rc/scripts/gulpfiles/release_tasks.js +0 -183
- package/blockly-rc/scripts/gulpfiles/test_tasks.js +0 -405
- package/blockly-rc/scripts/helpers.js +0 -74
- package/blockly-rc/scripts/i18n/common.py +0 -233
- package/blockly-rc/scripts/i18n/create_messages.py +0 -167
- package/blockly-rc/scripts/i18n/dedup_json.py +0 -72
- package/blockly-rc/scripts/i18n/js_to_json.py +0 -135
- package/blockly-rc/scripts/i18n/tests.py +0 -46
- package/blockly-rc/scripts/migration/cjs2esm +0 -162
- package/blockly-rc/scripts/migration/js2ts +0 -168
- package/blockly-rc/scripts/migration/renamings.json5 +0 -1599
- package/blockly-rc/scripts/package/README.md +0 -93
- package/blockly-rc/scripts/package/core-node.js +0 -31
- package/blockly-rc/scripts/package/index.js +0 -23
- package/blockly-rc/scripts/package/templates/umd-msg.template +0 -16
- package/blockly-rc/scripts/package/templates/umd.template +0 -13
- package/blockly-rc/scripts/themes/blockStyles_example.json +0 -11
- package/blockly-rc/scripts/themes/create_blockStyles.py +0 -181
- package/blockly-rc/scripts/tsick.js +0 -86
- package/blockly-rc/tests/.eslintrc.json +0 -10
- package/blockly-rc/tests/browser/.eslintrc.json +0 -29
- package/blockly-rc/tests/browser/.mocharc.js +0 -6
- package/blockly-rc/tests/browser/test/basic_block_factory_test.mjs +0 -44
- package/blockly-rc/tests/browser/test/basic_block_test.mjs +0 -39
- package/blockly-rc/tests/browser/test/basic_playground_test.mjs +0 -198
- package/blockly-rc/tests/browser/test/block_undo_test.mjs +0 -50
- package/blockly-rc/tests/browser/test/delete_blocks_test.mjs +0 -211
- package/blockly-rc/tests/browser/test/extensive_test.mjs +0 -195
- package/blockly-rc/tests/browser/test/field_edits_test.mjs +0 -61
- package/blockly-rc/tests/browser/test/hooks.mjs +0 -23
- package/blockly-rc/tests/browser/test/mutator_test.mjs +0 -88
- package/blockly-rc/tests/browser/test/procedure_test.mjs +0 -109
- package/blockly-rc/tests/browser/test/test_setup.mjs +0 -589
- package/blockly-rc/tests/browser/test/toolbox_drag_test.mjs +0 -207
- package/blockly-rc/tests/browser/test/workspace_comment_test.mjs +0 -224
- package/blockly-rc/tests/compile/index.html +0 -43
- package/blockly-rc/tests/compile/main.js +0 -53
- package/blockly-rc/tests/compile/test_blocks.js +0 -47
- package/blockly-rc/tests/compile/webdriver.js +0 -81
- package/blockly-rc/tests/generators/functions.xml +0 -561
- package/blockly-rc/tests/generators/golden/generated.dart +0 -1604
- package/blockly-rc/tests/generators/golden/generated.js +0 -1552
- package/blockly-rc/tests/generators/golden/generated.lua +0 -1828
- package/blockly-rc/tests/generators/golden/generated.php +0 -1611
- package/blockly-rc/tests/generators/golden/generated.py +0 -1407
- package/blockly-rc/tests/generators/index.html +0 -405
- package/blockly-rc/tests/generators/lists.xml +0 -8675
- package/blockly-rc/tests/generators/logic.xml +0 -1019
- package/blockly-rc/tests/generators/loops1.xml +0 -345
- package/blockly-rc/tests/generators/loops2.xml +0 -891
- package/blockly-rc/tests/generators/loops3.xml +0 -735
- package/blockly-rc/tests/generators/math.xml +0 -2077
- package/blockly-rc/tests/generators/text.xml +0 -4651
- package/blockly-rc/tests/generators/unittest.js +0 -103
- package/blockly-rc/tests/generators/unittest_dart.js +0 -163
- package/blockly-rc/tests/generators/unittest_javascript.js +0 -167
- package/blockly-rc/tests/generators/unittest_lua.js +0 -165
- package/blockly-rc/tests/generators/unittest_php.js +0 -154
- package/blockly-rc/tests/generators/unittest_python.js +0 -138
- package/blockly-rc/tests/generators/variables.xml +0 -68
- package/blockly-rc/tests/generators/webdriver.js +0 -123
- package/blockly-rc/tests/media/200px.png +0 -0
- package/blockly-rc/tests/media/30px.png +0 -0
- package/blockly-rc/tests/media/50px.png +0 -0
- package/blockly-rc/tests/media/a.png +0 -0
- package/blockly-rc/tests/media/arrow.png +0 -0
- package/blockly-rc/tests/media/b.png +0 -0
- package/blockly-rc/tests/media/c.png +0 -0
- package/blockly-rc/tests/media/d.png +0 -0
- package/blockly-rc/tests/media/e.png +0 -0
- package/blockly-rc/tests/media/f.png +0 -0
- package/blockly-rc/tests/media/g.png +0 -0
- package/blockly-rc/tests/media/h.png +0 -0
- package/blockly-rc/tests/media/i.png +0 -0
- package/blockly-rc/tests/media/j.png +0 -0
- package/blockly-rc/tests/media/k.png +0 -0
- package/blockly-rc/tests/media/l.png +0 -0
- package/blockly-rc/tests/media/m.png +0 -0
- package/blockly-rc/tests/migration/renamings.schema.json +0 -59
- package/blockly-rc/tests/migration/validate-renamings.mjs +0 -60
- package/blockly-rc/tests/mocha/.eslintrc.json +0 -21
- package/blockly-rc/tests/mocha/.mocharc.js +0 -6
- package/blockly-rc/tests/mocha/astnode_test.js +0 -850
- package/blockly-rc/tests/mocha/block_json_test.js +0 -777
- package/blockly-rc/tests/mocha/block_test.js +0 -2743
- package/blockly-rc/tests/mocha/blocks/lists_test.js +0 -196
- package/blockly-rc/tests/mocha/blocks/logic_ternary_test.js +0 -320
- package/blockly-rc/tests/mocha/blocks/loops_test.js +0 -56
- package/blockly-rc/tests/mocha/blocks/procedures_test.js +0 -2495
- package/blockly-rc/tests/mocha/blocks/variables_test.js +0 -311
- package/blockly-rc/tests/mocha/clipboard_test.js +0 -136
- package/blockly-rc/tests/mocha/comment_deserialization_test.js +0 -122
- package/blockly-rc/tests/mocha/comment_test.js +0 -170
- package/blockly-rc/tests/mocha/comment_view_test.js +0 -188
- package/blockly-rc/tests/mocha/connection_checker_test.js +0 -666
- package/blockly-rc/tests/mocha/connection_db_test.js +0 -362
- package/blockly-rc/tests/mocha/connection_test.js +0 -3738
- package/blockly-rc/tests/mocha/contextmenu_items_test.js +0 -488
- package/blockly-rc/tests/mocha/contextmenu_test.js +0 -71
- package/blockly-rc/tests/mocha/cursor_test.js +0 -134
- package/blockly-rc/tests/mocha/dropdowndiv_test.js +0 -116
- package/blockly-rc/tests/mocha/event_block_change_test.js +0 -126
- package/blockly-rc/tests/mocha/event_block_create_test.js +0 -109
- package/blockly-rc/tests/mocha/event_block_delete_test.js +0 -55
- package/blockly-rc/tests/mocha/event_block_drag_test.js +0 -36
- package/blockly-rc/tests/mocha/event_block_field_intermediate_change_test.js +0 -67
- package/blockly-rc/tests/mocha/event_block_move_test.js +0 -39
- package/blockly-rc/tests/mocha/event_bubble_open_test.js +0 -42
- package/blockly-rc/tests/mocha/event_click_test.js +0 -40
- package/blockly-rc/tests/mocha/event_comment_change_test.js +0 -39
- package/blockly-rc/tests/mocha/event_comment_collapse_test.js +0 -34
- package/blockly-rc/tests/mocha/event_comment_create_test.js +0 -38
- package/blockly-rc/tests/mocha/event_comment_delete_test.js +0 -38
- package/blockly-rc/tests/mocha/event_comment_drag_test.js +0 -35
- package/blockly-rc/tests/mocha/event_comment_move_test.js +0 -40
- package/blockly-rc/tests/mocha/event_comment_resize_test.js +0 -38
- package/blockly-rc/tests/mocha/event_marker_move_test.js +0 -44
- package/blockly-rc/tests/mocha/event_selected_test.js +0 -41
- package/blockly-rc/tests/mocha/event_test.js +0 -1578
- package/blockly-rc/tests/mocha/event_theme_change_test.js +0 -36
- package/blockly-rc/tests/mocha/event_toolbox_item_select_test.js +0 -64
- package/blockly-rc/tests/mocha/event_trashcan_open_test.js +0 -36
- package/blockly-rc/tests/mocha/event_var_create_test.js +0 -54
- package/blockly-rc/tests/mocha/event_var_delete_test.js +0 -54
- package/blockly-rc/tests/mocha/event_var_rename_test.js +0 -39
- package/blockly-rc/tests/mocha/event_var_type_change_test.js +0 -43
- package/blockly-rc/tests/mocha/event_viewport_test.js +0 -39
- package/blockly-rc/tests/mocha/extensions_test.js +0 -613
- package/blockly-rc/tests/mocha/field_checkbox_test.js +0 -299
- package/blockly-rc/tests/mocha/field_colour_test.js +0 -395
- package/blockly-rc/tests/mocha/field_dropdown_test.js +0 -282
- package/blockly-rc/tests/mocha/field_image_test.js +0 -241
- package/blockly-rc/tests/mocha/field_label_serializable_test.js +0 -252
- package/blockly-rc/tests/mocha/field_label_test.js +0 -226
- package/blockly-rc/tests/mocha/field_number_test.js +0 -505
- package/blockly-rc/tests/mocha/field_registry_test.js +0 -116
- package/blockly-rc/tests/mocha/field_test.js +0 -822
- package/blockly-rc/tests/mocha/field_textinput_test.js +0 -297
- package/blockly-rc/tests/mocha/field_variable_test.js +0 -611
- package/blockly-rc/tests/mocha/flyout_test.js +0 -638
- package/blockly-rc/tests/mocha/generator_test.js +0 -233
- package/blockly-rc/tests/mocha/gesture_test.js +0 -97
- package/blockly-rc/tests/mocha/icon_test.js +0 -369
- package/blockly-rc/tests/mocha/index.html +0 -229
- package/blockly-rc/tests/mocha/input_test.js +0 -296
- package/blockly-rc/tests/mocha/insertion_marker_manager_test.js +0 -443
- package/blockly-rc/tests/mocha/insertion_marker_test.js +0 -432
- package/blockly-rc/tests/mocha/jso_deserialization_test.js +0 -849
- package/blockly-rc/tests/mocha/jso_serialization_test.js +0 -1067
- package/blockly-rc/tests/mocha/json_test.js +0 -315
- package/blockly-rc/tests/mocha/keydown_test.js +0 -364
- package/blockly-rc/tests/mocha/layering_test.js +0 -95
- package/blockly-rc/tests/mocha/metrics_test.js +0 -671
- package/blockly-rc/tests/mocha/mutator_test.js +0 -87
- package/blockly-rc/tests/mocha/names_test.js +0 -97
- package/blockly-rc/tests/mocha/old_workspace_comment_test.js +0 -256
- package/blockly-rc/tests/mocha/procedure_map_test.js +0 -57
- package/blockly-rc/tests/mocha/registry_test.js +0 -281
- package/blockly-rc/tests/mocha/render_management_test.js +0 -127
- package/blockly-rc/tests/mocha/serializer_test.js +0 -2104
- package/blockly-rc/tests/mocha/shortcut_registry_test.js +0 -450
- package/blockly-rc/tests/mocha/test_helpers/block_definitions.js +0 -204
- package/blockly-rc/tests/mocha/test_helpers/code_generation.js +0 -115
- package/blockly-rc/tests/mocha/test_helpers/common.js +0 -106
- package/blockly-rc/tests/mocha/test_helpers/events.js +0 -290
- package/blockly-rc/tests/mocha/test_helpers/fields.js +0 -310
- package/blockly-rc/tests/mocha/test_helpers/icon_mocks.js +0 -81
- package/blockly-rc/tests/mocha/test_helpers/procedures.js +0 -302
- package/blockly-rc/tests/mocha/test_helpers/serialization.js +0 -124
- package/blockly-rc/tests/mocha/test_helpers/setup_teardown.js +0 -209
- package/blockly-rc/tests/mocha/test_helpers/toolbox_definitions.js +0 -271
- package/blockly-rc/tests/mocha/test_helpers/user_input.js +0 -62
- package/blockly-rc/tests/mocha/test_helpers/variables.js +0 -23
- package/blockly-rc/tests/mocha/test_helpers/warnings.js +0 -83
- package/blockly-rc/tests/mocha/test_helpers/workspace.js +0 -1691
- package/blockly-rc/tests/mocha/theme_test.js +0 -307
- package/blockly-rc/tests/mocha/toolbox_test.js +0 -761
- package/blockly-rc/tests/mocha/tooltip_test.js +0 -276
- package/blockly-rc/tests/mocha/touch_test.js +0 -109
- package/blockly-rc/tests/mocha/trashcan_test.js +0 -375
- package/blockly-rc/tests/mocha/utils_test.js +0 -536
- package/blockly-rc/tests/mocha/variable_map_test.js +0 -509
- package/blockly-rc/tests/mocha/variable_model_test.js +0 -85
- package/blockly-rc/tests/mocha/webdriver.js +0 -96
- package/blockly-rc/tests/mocha/widget_div_test.js +0 -272
- package/blockly-rc/tests/mocha/workspace_comment_test.js +0 -171
- package/blockly-rc/tests/mocha/workspace_svg_test.js +0 -414
- package/blockly-rc/tests/mocha/workspace_test.js +0 -27
- package/blockly-rc/tests/mocha/xml_test.js +0 -951
- package/blockly-rc/tests/mocha/zoom_controls_test.js +0 -81
- package/blockly-rc/tests/multi_playground.html +0 -482
- package/blockly-rc/tests/node/.eslintrc.json +0 -12
- package/blockly-rc/tests/node/.mocharc.js +0 -6
- package/blockly-rc/tests/node/run_node_test.mjs +0 -72
- package/blockly-rc/tests/playground.html +0 -1280
- package/blockly-rc/tests/playgrounds/advanced_playground.html +0 -158
- package/blockly-rc/tests/playgrounds/iframe.html +0 -40
- package/blockly-rc/tests/playgrounds/screenshot.js +0 -123
- package/blockly-rc/tests/scripts/check_metadata.sh +0 -166
- package/blockly-rc/tests/scripts/compile_typings.sh +0 -32
- package/blockly-rc/tests/scripts/load.mjs +0 -140
- package/blockly-rc/tests/scripts/setup_linux_env.sh +0 -7
- package/blockly-rc/tests/scripts/update_metadata.sh +0 -46
- package/blockly-rc/tests/themes/test_themes.js +0 -62
- package/blockly-rc/tests/typescript/README.md +0 -4
- package/blockly-rc/tests/typescript/src/field/different_user_input.ts +0 -81
- package/blockly-rc/tests/typescript/src/generators/dart.ts +0 -24
- package/blockly-rc/tests/typescript/src/generators/javascript.ts +0 -28
- package/blockly-rc/tests/typescript/src/generators/lua.ts +0 -24
- package/blockly-rc/tests/typescript/src/generators/php.ts +0 -24
- package/blockly-rc/tests/typescript/src/generators/python.ts +0 -24
- package/blockly-rc/tests/typescript/src/generators.ts +0 -31
- package/blockly-rc/tests/typescript/src/msg.ts +0 -20
- package/blockly-rc/tests/typescript/tsconfig.json +0 -20
- package/blockly-rc/tests/xml/README.txt +0 -11
- package/blockly-rc/tests/xml/blockly.xsd +0 -178
- package/blockly-rc/tests/xml/invalid.xml +0 -6
- package/blockly-rc/tests/xml/toolbox.xml +0 -311
- package/blockly-rc/tests/xml/workspace.xml +0 -114
- package/blockly-rc/tsconfig.json +0 -37
- package/blockly-rc/tsdoc.json +0 -35
- package/blockly-rc/typings/README.md +0 -5
- package/blockly-rc/typings/blocks.d.ts +0 -17
- package/blockly-rc/typings/core.d.ts +0 -7
- package/blockly-rc/typings/dart.d.ts +0 -7
- package/blockly-rc/typings/index.d.ts +0 -10
- package/blockly-rc/typings/javascript.d.ts +0 -7
- package/blockly-rc/typings/lua.d.ts +0 -7
- package/blockly-rc/typings/msg/ab.d.ts +0 -8
- package/blockly-rc/typings/msg/ace.d.ts +0 -8
- package/blockly-rc/typings/msg/af.d.ts +0 -8
- package/blockly-rc/typings/msg/am.d.ts +0 -8
- package/blockly-rc/typings/msg/ar.d.ts +0 -8
- package/blockly-rc/typings/msg/ast.d.ts +0 -8
- package/blockly-rc/typings/msg/az.d.ts +0 -8
- package/blockly-rc/typings/msg/ba.d.ts +0 -8
- package/blockly-rc/typings/msg/bcc.d.ts +0 -8
- package/blockly-rc/typings/msg/be-tarask.d.ts +0 -8
- package/blockly-rc/typings/msg/be.d.ts +0 -8
- package/blockly-rc/typings/msg/bg.d.ts +0 -8
- package/blockly-rc/typings/msg/bn.d.ts +0 -8
- package/blockly-rc/typings/msg/br.d.ts +0 -8
- package/blockly-rc/typings/msg/bs.d.ts +0 -8
- package/blockly-rc/typings/msg/ca.d.ts +0 -8
- package/blockly-rc/typings/msg/cdo.d.ts +0 -8
- package/blockly-rc/typings/msg/ce.d.ts +0 -8
- package/blockly-rc/typings/msg/cs.d.ts +0 -8
- package/blockly-rc/typings/msg/da.d.ts +0 -8
- package/blockly-rc/typings/msg/de.d.ts +0 -8
- package/blockly-rc/typings/msg/diq.d.ts +0 -8
- package/blockly-rc/typings/msg/dtp.d.ts +0 -8
- package/blockly-rc/typings/msg/dty.d.ts +0 -8
- package/blockly-rc/typings/msg/ee.d.ts +0 -8
- package/blockly-rc/typings/msg/el.d.ts +0 -8
- package/blockly-rc/typings/msg/en-gb.d.ts +0 -8
- package/blockly-rc/typings/msg/en.d.ts +0 -8
- package/blockly-rc/typings/msg/eo.d.ts +0 -8
- package/blockly-rc/typings/msg/es.d.ts +0 -8
- package/blockly-rc/typings/msg/et.d.ts +0 -8
- package/blockly-rc/typings/msg/eu.d.ts +0 -8
- package/blockly-rc/typings/msg/fa.d.ts +0 -8
- package/blockly-rc/typings/msg/fi.d.ts +0 -8
- package/blockly-rc/typings/msg/fo.d.ts +0 -8
- package/blockly-rc/typings/msg/fr.d.ts +0 -8
- package/blockly-rc/typings/msg/frr.d.ts +0 -8
- package/blockly-rc/typings/msg/gl.d.ts +0 -8
- package/blockly-rc/typings/msg/gn.d.ts +0 -8
- package/blockly-rc/typings/msg/gor.d.ts +0 -8
- package/blockly-rc/typings/msg/ha.d.ts +0 -8
- package/blockly-rc/typings/msg/hak.d.ts +0 -8
- package/blockly-rc/typings/msg/he.d.ts +0 -8
- package/blockly-rc/typings/msg/hi.d.ts +0 -8
- package/blockly-rc/typings/msg/hr.d.ts +0 -8
- package/blockly-rc/typings/msg/hrx.d.ts +0 -8
- package/blockly-rc/typings/msg/hsb.d.ts +0 -8
- package/blockly-rc/typings/msg/hu.d.ts +0 -8
- package/blockly-rc/typings/msg/hy.d.ts +0 -8
- package/blockly-rc/typings/msg/ia.d.ts +0 -8
- package/blockly-rc/typings/msg/id.d.ts +0 -8
- package/blockly-rc/typings/msg/ig.d.ts +0 -8
- package/blockly-rc/typings/msg/inh.d.ts +0 -8
- package/blockly-rc/typings/msg/is.d.ts +0 -8
- package/blockly-rc/typings/msg/it.d.ts +0 -8
- package/blockly-rc/typings/msg/ja.d.ts +0 -8
- package/blockly-rc/typings/msg/ka.d.ts +0 -8
- package/blockly-rc/typings/msg/kab.d.ts +0 -8
- package/blockly-rc/typings/msg/kbd-cyrl.d.ts +0 -8
- package/blockly-rc/typings/msg/km.d.ts +0 -8
- package/blockly-rc/typings/msg/kn.d.ts +0 -8
- package/blockly-rc/typings/msg/ko.d.ts +0 -8
- package/blockly-rc/typings/msg/ksh.d.ts +0 -8
- package/blockly-rc/typings/msg/ku-latn.d.ts +0 -8
- package/blockly-rc/typings/msg/ky.d.ts +0 -8
- package/blockly-rc/typings/msg/la.d.ts +0 -8
- package/blockly-rc/typings/msg/lb.d.ts +0 -8
- package/blockly-rc/typings/msg/lki.d.ts +0 -8
- package/blockly-rc/typings/msg/lo.d.ts +0 -8
- package/blockly-rc/typings/msg/lrc.d.ts +0 -8
- package/blockly-rc/typings/msg/lt.d.ts +0 -8
- package/blockly-rc/typings/msg/lv.d.ts +0 -8
- package/blockly-rc/typings/msg/mg.d.ts +0 -8
- package/blockly-rc/typings/msg/mk.d.ts +0 -8
- package/blockly-rc/typings/msg/ml.d.ts +0 -8
- package/blockly-rc/typings/msg/mnw.d.ts +0 -8
- package/blockly-rc/typings/msg/ms.d.ts +0 -8
- package/blockly-rc/typings/msg/msg.d.ts +0 -440
- package/blockly-rc/typings/msg/my.d.ts +0 -8
- package/blockly-rc/typings/msg/mzn.d.ts +0 -8
- package/blockly-rc/typings/msg/nb.d.ts +0 -8
- package/blockly-rc/typings/msg/ne.d.ts +0 -8
- package/blockly-rc/typings/msg/nl.d.ts +0 -8
- package/blockly-rc/typings/msg/oc.d.ts +0 -8
- package/blockly-rc/typings/msg/olo.d.ts +0 -8
- package/blockly-rc/typings/msg/pa.d.ts +0 -8
- package/blockly-rc/typings/msg/pl.d.ts +0 -8
- package/blockly-rc/typings/msg/pms.d.ts +0 -8
- package/blockly-rc/typings/msg/ps.d.ts +0 -8
- package/blockly-rc/typings/msg/pt-br.d.ts +0 -8
- package/blockly-rc/typings/msg/pt.d.ts +0 -8
- package/blockly-rc/typings/msg/ro.d.ts +0 -8
- package/blockly-rc/typings/msg/ru.d.ts +0 -8
- package/blockly-rc/typings/msg/sc.d.ts +0 -8
- package/blockly-rc/typings/msg/sco.d.ts +0 -8
- package/blockly-rc/typings/msg/sd.d.ts +0 -8
- package/blockly-rc/typings/msg/shn.d.ts +0 -8
- package/blockly-rc/typings/msg/si.d.ts +0 -8
- package/blockly-rc/typings/msg/sk.d.ts +0 -8
- package/blockly-rc/typings/msg/skr-arab.d.ts +0 -8
- package/blockly-rc/typings/msg/sl.d.ts +0 -8
- package/blockly-rc/typings/msg/smn.d.ts +0 -8
- package/blockly-rc/typings/msg/sq.d.ts +0 -8
- package/blockly-rc/typings/msg/sr-latn.d.ts +0 -8
- package/blockly-rc/typings/msg/sr.d.ts +0 -8
- package/blockly-rc/typings/msg/sv.d.ts +0 -8
- package/blockly-rc/typings/msg/sw.d.ts +0 -8
- package/blockly-rc/typings/msg/ta.d.ts +0 -8
- package/blockly-rc/typings/msg/tcy.d.ts +0 -8
- package/blockly-rc/typings/msg/tdd.d.ts +0 -8
- package/blockly-rc/typings/msg/te.d.ts +0 -8
- package/blockly-rc/typings/msg/th.d.ts +0 -8
- package/blockly-rc/typings/msg/ti.d.ts +0 -8
- package/blockly-rc/typings/msg/tl.d.ts +0 -8
- package/blockly-rc/typings/msg/tlh.d.ts +0 -8
- package/blockly-rc/typings/msg/tr.d.ts +0 -8
- package/blockly-rc/typings/msg/ug-arab.d.ts +0 -8
- package/blockly-rc/typings/msg/uk.d.ts +0 -8
- package/blockly-rc/typings/msg/ur.d.ts +0 -8
- package/blockly-rc/typings/msg/uz.d.ts +0 -8
- package/blockly-rc/typings/msg/vi.d.ts +0 -8
- package/blockly-rc/typings/msg/xmf.d.ts +0 -8
- package/blockly-rc/typings/msg/yo.d.ts +0 -8
- package/blockly-rc/typings/msg/zgh.d.ts +0 -8
- package/blockly-rc/typings/msg/zh-hans.d.ts +0 -8
- package/blockly-rc/typings/msg/zh-hant.d.ts +0 -8
- package/blockly-rc/typings/php.d.ts +0 -7
- package/blockly-rc/typings/python.d.ts +0 -7
- package/blockly-rc/typings/templates/blockly-header.template +0 -11
- package/blockly-rc/typings/templates/blockly-interfaces.template +0 -83
- package/blockly-rc/typings/templates/msg.template +0 -15
- package/blockly-rc/typings/tsconfig.json +0 -23
- package/continuous-toolbox.d.ts +0 -1
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -163
- package/media/delete-icon.svg +0 -10
- package/media/resize-handle.svg +0 -3
- package/src/block_reporting.js +0 -31
- package/src/blocks/colour.js +0 -56
- package/src/blocks/control.js +0 -492
- package/src/blocks/data.js +0 -690
- package/src/blocks/event.js +0 -305
- package/src/blocks/looks.js +0 -537
- package/src/blocks/math.js +0 -137
- package/src/blocks/matrix.js +0 -47
- package/src/blocks/motion.js +0 -513
- package/src/blocks/note.js +0 -48
- package/src/blocks/operators.js +0 -463
- package/src/blocks/procedures.js +0 -1009
- package/src/blocks/sensing.js +0 -441
- package/src/blocks/sound.js +0 -205
- package/src/blocks/text.js +0 -45
- package/src/blocks/vertical_extensions.js +0 -309
- package/src/categories.js +0 -15
- package/src/checkable_continuous_flyout.js +0 -138
- package/src/checkbox_bubble.js +0 -282
- package/src/colours.js +0 -77
- package/src/constants.js +0 -63
- package/src/context_menu_items.js +0 -150
- package/src/css.js +0 -1197
- package/src/data_category.js +0 -556
- package/src/events/events_block_comment_base.js +0 -35
- package/src/events/events_block_comment_change.js +0 -43
- package/src/events/events_block_comment_collapse.js +0 -43
- package/src/events/events_block_comment_create.js +0 -52
- package/src/events/events_block_comment_delete.js +0 -27
- package/src/events/events_block_comment_move.js +0 -54
- package/src/events/events_block_comment_resize.js +0 -52
- package/src/events/events_block_drag_end.js +0 -33
- package/src/events/events_block_drag_outside.js +0 -30
- package/src/events/events_scratch_variable_create.js +0 -67
- package/src/fields/field_angle.js +0 -433
- package/src/fields/field_colour_slider.js +0 -388
- package/src/fields/field_dropdown.js +0 -42
- package/src/fields/field_matrix.js +0 -634
- package/src/fields/field_note.js +0 -937
- package/src/fields/field_number.js +0 -380
- package/src/fields/field_textinput_removable.js +0 -107
- package/src/fields/field_variable.js +0 -171
- package/src/fields/field_variable_getter.js +0 -109
- package/src/fields/field_vertical_separator.js +0 -139
- package/src/flyout_checkbox_icon.js +0 -88
- package/src/glows.js +0 -98
- package/src/index.ts +0 -137
- package/src/procedures.js +0 -425
- package/src/recyclable_block_flyout_inflater.js +0 -194
- package/src/renderer/bowler_hat.js +0 -17
- package/src/renderer/constants.js +0 -45
- package/src/renderer/drawer.js +0 -51
- package/src/renderer/path_object.js +0 -35
- package/src/renderer/render_info.js +0 -98
- package/src/renderer/renderer.js +0 -74
- package/src/scratch_block_paster.js +0 -46
- package/src/scratch_blocks_utils.js +0 -148
- package/src/scratch_comment_bubble.js +0 -169
- package/src/scratch_comment_icon.js +0 -195
- package/src/scratch_connection_checker.js +0 -29
- package/src/scratch_continuous_category.js +0 -80
- package/src/scratch_continuous_toolbox.js +0 -78
- package/src/scratch_dragger.js +0 -142
- package/src/scratch_variable_map.js +0 -25
- package/src/scratch_variable_model.js +0 -24
- package/src/shadows.js +0 -61
- package/src/status_indicator_label.js +0 -186
- package/src/status_indicator_label_flyout_inflater.js +0 -42
- package/src/variables.js +0 -355
- package/temp-use-blockly-v12-rc.sh +0 -26
- package/tsconfig.json +0 -13
- /package/media/{foldout-icon.svg → comment-arrow-down.svg} +0 -0
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>Advanced Blockly Playground</title>
|
|
6
|
-
|
|
7
|
-
<script type="module">
|
|
8
|
-
import {loadScript} from '../scripts/load.mjs';
|
|
9
|
-
|
|
10
|
-
import * as Blockly from '../../build/blockly.loader.mjs';
|
|
11
|
-
import '../../build/blocks.loader.mjs';
|
|
12
|
-
// Generators not needed (but see also bug #6597).
|
|
13
|
-
|
|
14
|
-
await loadScript('../../build/msg/en.js');
|
|
15
|
-
await loadScript('screenshot.js');
|
|
16
|
-
await loadScript('../themes/test_themes.js');
|
|
17
|
-
await loadScript('../../node_modules/@blockly/dev-tools/dist/index.js');
|
|
18
|
-
await loadScript(
|
|
19
|
-
'../../node_modules/@blockly/theme-modern/dist/index.js',
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
function start() {
|
|
23
|
-
setBackgroundColour();
|
|
24
|
-
initPlayground();
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function createWorkspace(blocklyDiv, options) {
|
|
28
|
-
var workspace = Blockly.inject(blocklyDiv, options);
|
|
29
|
-
return workspace;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function configurePlayground(playground) {
|
|
33
|
-
// Rendering options.
|
|
34
|
-
var gui = playground.getGUI();
|
|
35
|
-
var renderingFolder = gui.addFolder('Rendering');
|
|
36
|
-
var renderingOptions = {
|
|
37
|
-
'font Size': 10,
|
|
38
|
-
};
|
|
39
|
-
renderingFolder
|
|
40
|
-
.add(renderingOptions, 'font Size', 0, 50)
|
|
41
|
-
.onChange(function (value) {
|
|
42
|
-
var ws = playground.getWorkspace();
|
|
43
|
-
var fontStyle = {
|
|
44
|
-
'size': value,
|
|
45
|
-
};
|
|
46
|
-
ws.getTheme().setFontStyle(fontStyle);
|
|
47
|
-
// Refresh theme.
|
|
48
|
-
ws.setTheme(ws.getTheme());
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function initPlayground() {
|
|
53
|
-
if (typeof window.createPlayground === 'undefined') {
|
|
54
|
-
alert(
|
|
55
|
-
"You need to run 'npm install' in order to use this playground.",
|
|
56
|
-
);
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
var defaultOptions = {
|
|
60
|
-
comments: true,
|
|
61
|
-
collapse: true,
|
|
62
|
-
disable: true,
|
|
63
|
-
grid: {
|
|
64
|
-
spacing: 25,
|
|
65
|
-
length: 3,
|
|
66
|
-
colour: '#ccc',
|
|
67
|
-
snap: true,
|
|
68
|
-
},
|
|
69
|
-
horizontalLayout: false,
|
|
70
|
-
maxBlocks: Infinity,
|
|
71
|
-
maxInstances: {'test_basic_limit_instances': 3},
|
|
72
|
-
maxTrashcanContents: 256,
|
|
73
|
-
media: '../../media/',
|
|
74
|
-
oneBasedIndex: true,
|
|
75
|
-
readOnly: false,
|
|
76
|
-
rtl: false,
|
|
77
|
-
move: {
|
|
78
|
-
scrollbars: true,
|
|
79
|
-
drag: true,
|
|
80
|
-
wheel: false,
|
|
81
|
-
},
|
|
82
|
-
toolbox: toolboxCategories,
|
|
83
|
-
toolboxPosition: 'start',
|
|
84
|
-
renderer: 'geras',
|
|
85
|
-
zoom: {
|
|
86
|
-
controls: true,
|
|
87
|
-
wheel: true,
|
|
88
|
-
startScale: 1.0,
|
|
89
|
-
maxScale: 4,
|
|
90
|
-
minScale: 0.25,
|
|
91
|
-
scaleSpeed: 1.1,
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
const playgroundConfig = {
|
|
96
|
-
toolboxes: {
|
|
97
|
-
'categories': toolboxCategories,
|
|
98
|
-
'simple': toolboxSimple,
|
|
99
|
-
'test blocks': toolboxTestBlocks,
|
|
100
|
-
},
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
Blockly.ContextMenuItems.registerCommentOptions();
|
|
104
|
-
|
|
105
|
-
createPlayground(
|
|
106
|
-
document.getElementById('root'),
|
|
107
|
-
createWorkspace,
|
|
108
|
-
defaultOptions,
|
|
109
|
-
playgroundConfig,
|
|
110
|
-
'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.19.2/min/vs',
|
|
111
|
-
).then(function (playground) {
|
|
112
|
-
configurePlayground(playground);
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function setBackgroundColour() {
|
|
117
|
-
// Set background colour to differentiate file: vs. localhost
|
|
118
|
-
// vs. server copy.
|
|
119
|
-
if (location.protocol == 'file:') {
|
|
120
|
-
document.body.style.backgroundColor = '#89A203'; // Unpleasant green.
|
|
121
|
-
} else if (
|
|
122
|
-
location.hostname === 'localhost' ||
|
|
123
|
-
location.hostname === '127.0.0.1' ||
|
|
124
|
-
location.hostname === '[::1]'
|
|
125
|
-
) {
|
|
126
|
-
document.body.style.backgroundColor = '#d6d6ff'; // Familliar lilac.
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
start();
|
|
130
|
-
</script>
|
|
131
|
-
|
|
132
|
-
<style>
|
|
133
|
-
html,
|
|
134
|
-
body {
|
|
135
|
-
margin: 0;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.ioLabel > .blocklyFlyoutLabelText {
|
|
139
|
-
font-style: italic;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.playgroundToggleOptions {
|
|
143
|
-
list-style: none;
|
|
144
|
-
padding: 0;
|
|
145
|
-
}
|
|
146
|
-
.playgroundToggleOptions li {
|
|
147
|
-
margin-top: 1em;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.zelos-renderer .blocklyFlyoutButton .blocklyText {
|
|
151
|
-
font-size: 1.5rem;
|
|
152
|
-
}
|
|
153
|
-
</style>
|
|
154
|
-
</head>
|
|
155
|
-
<body>
|
|
156
|
-
<div id="root"></div>
|
|
157
|
-
</body>
|
|
158
|
-
</html>
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>Blockly <iframe> Playground</title>
|
|
6
|
-
<style>
|
|
7
|
-
html,
|
|
8
|
-
body {
|
|
9
|
-
border: 0;
|
|
10
|
-
margin: 0;
|
|
11
|
-
padding: 0;
|
|
12
|
-
font-family: sans-serif;
|
|
13
|
-
}
|
|
14
|
-
h1#title {
|
|
15
|
-
border: 0;
|
|
16
|
-
margin: 2px;
|
|
17
|
-
padding: 0;
|
|
18
|
-
width: 100%;
|
|
19
|
-
}
|
|
20
|
-
#playground-iframe {
|
|
21
|
-
border: 0;
|
|
22
|
-
width: 100%;
|
|
23
|
-
}
|
|
24
|
-
</style>
|
|
25
|
-
<script type="text/javascript">
|
|
26
|
-
var onWindowResize = function () {
|
|
27
|
-
var iframe = document.getElementById('playground-iframe');
|
|
28
|
-
var top = iframe.getBoundingClientRect().top;
|
|
29
|
-
iframe.height = window.innerHeight - top;
|
|
30
|
-
iframe.width = window.innerWidth;
|
|
31
|
-
};
|
|
32
|
-
window.addEventListener('resize', onWindowResize);
|
|
33
|
-
window.addEventListener('load', onWindowResize);
|
|
34
|
-
</script>
|
|
35
|
-
</head>
|
|
36
|
-
<body>
|
|
37
|
-
<h1 id="title">Outer Frame</h1>
|
|
38
|
-
<iframe id="playground-iframe" src="../playground.html"> </iframe>
|
|
39
|
-
</body>
|
|
40
|
-
</html>
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @fileoverview Download screenshot.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Convert an SVG datauri into a PNG datauri.
|
|
14
|
-
* @param {string} data SVG datauri.
|
|
15
|
-
* @param {number} width Image width.
|
|
16
|
-
* @param {number} height Image height.
|
|
17
|
-
* @param {!Function} callback Callback.
|
|
18
|
-
*/
|
|
19
|
-
function svgToPng_(data, width, height, callback) {
|
|
20
|
-
const canvas = document.createElement('canvas');
|
|
21
|
-
const context = canvas.getContext('2d');
|
|
22
|
-
const img = new Image();
|
|
23
|
-
|
|
24
|
-
const pixelDensity = 10;
|
|
25
|
-
canvas.width = width * pixelDensity;
|
|
26
|
-
canvas.height = height * pixelDensity;
|
|
27
|
-
img.onload = function () {
|
|
28
|
-
context.drawImage(
|
|
29
|
-
img,
|
|
30
|
-
0,
|
|
31
|
-
0,
|
|
32
|
-
width,
|
|
33
|
-
height,
|
|
34
|
-
0,
|
|
35
|
-
0,
|
|
36
|
-
canvas.width,
|
|
37
|
-
canvas.height,
|
|
38
|
-
);
|
|
39
|
-
try {
|
|
40
|
-
const dataUri = canvas.toDataURL('image/png');
|
|
41
|
-
callback(dataUri);
|
|
42
|
-
} catch (err) {
|
|
43
|
-
console.warn('Error converting the workspace svg to a png');
|
|
44
|
-
callback('');
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
img.src = data;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Create an SVG of the blocks on the workspace.
|
|
52
|
-
* @param {!Blockly.WorkspaceSvg} workspace The workspace.
|
|
53
|
-
* @param {!Function} callback Callback.
|
|
54
|
-
* @param {string=} customCss Custom CSS to append to the SVG.
|
|
55
|
-
*/
|
|
56
|
-
function workspaceToSvg_(workspace, callback, customCss) {
|
|
57
|
-
// Go through all text areas and set their value.
|
|
58
|
-
const textAreas = document.getElementsByTagName('textarea');
|
|
59
|
-
for (let i = 0; i < textAreas.length; i++) {
|
|
60
|
-
textAreas[i].innerHTML = textAreas[i].value;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
const bBox = workspace.getBlocksBoundingBox();
|
|
64
|
-
const x = bBox.x || bBox.left;
|
|
65
|
-
const y = bBox.y || bBox.top;
|
|
66
|
-
const width = bBox.width || bBox.right - x;
|
|
67
|
-
const height = bBox.height || bBox.bottom - y;
|
|
68
|
-
|
|
69
|
-
const blockCanvas = workspace.getCanvas();
|
|
70
|
-
const clone = blockCanvas.cloneNode(true);
|
|
71
|
-
clone.removeAttribute('transform');
|
|
72
|
-
|
|
73
|
-
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
74
|
-
svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
|
|
75
|
-
svg.appendChild(clone);
|
|
76
|
-
svg.setAttribute('viewBox', x + ' ' + y + ' ' + width + ' ' + height);
|
|
77
|
-
|
|
78
|
-
svg.setAttribute(
|
|
79
|
-
'class',
|
|
80
|
-
'blocklySvg ' +
|
|
81
|
-
(workspace.options.renderer || 'geras') +
|
|
82
|
-
'-renderer ' +
|
|
83
|
-
(workspace.getTheme ? workspace.getTheme().name + '-theme' : ''),
|
|
84
|
-
);
|
|
85
|
-
svg.setAttribute('width', width);
|
|
86
|
-
svg.setAttribute('height', height);
|
|
87
|
-
svg.style.backgroundColor = 'transparent';
|
|
88
|
-
|
|
89
|
-
const css = [].slice
|
|
90
|
-
.call(document.head.querySelectorAll('style'))
|
|
91
|
-
.filter(
|
|
92
|
-
(el) => /\.blocklySvg/.test(el.innerText) || el.id.startsWith('blockly-'),
|
|
93
|
-
)
|
|
94
|
-
.map((el) => el.innerText)
|
|
95
|
-
.join('\n');
|
|
96
|
-
const style = document.createElement('style');
|
|
97
|
-
style.innerHTML = css + '\n' + customCss;
|
|
98
|
-
svg.insertBefore(style, svg.firstChild);
|
|
99
|
-
|
|
100
|
-
let svgAsXML = new XMLSerializer().serializeToString(svg);
|
|
101
|
-
svgAsXML = svgAsXML.replace(/ /g, ' ');
|
|
102
|
-
const data = 'data:image/svg+xml,' + encodeURIComponent(svgAsXML);
|
|
103
|
-
|
|
104
|
-
svgToPng_(data, width, height, callback);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/* eslint-disable no-unused-vars */
|
|
108
|
-
/**
|
|
109
|
-
* Download a screenshot of the blocks on a Blockly workspace.
|
|
110
|
-
* @param {!Blockly.WorkspaceSvg} workspace The Blockly workspace.
|
|
111
|
-
*/
|
|
112
|
-
function downloadScreenshot(workspace) {
|
|
113
|
-
workspaceToSvg_(workspace, function (datauri) {
|
|
114
|
-
const a = document.createElement('a');
|
|
115
|
-
a.download = 'screenshot.png';
|
|
116
|
-
a.target = '_self';
|
|
117
|
-
a.href = datauri;
|
|
118
|
-
document.body.appendChild(a);
|
|
119
|
-
a.click();
|
|
120
|
-
a.parentNode.removeChild(a);
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
/* eslint-enable */
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# Checks the size of generated files and verifies they aren't growing
|
|
4
|
-
# unreasonably. Assumes the compressed files have already been built.
|
|
5
|
-
|
|
6
|
-
# The ..._EXPECTED values should be updated with each release.
|
|
7
|
-
# Run this script to get the new values.
|
|
8
|
-
|
|
9
|
-
# Location of the pre-built compressed files.
|
|
10
|
-
#
|
|
11
|
-
# (TODO(#5007): Should fetch this from scripts/gulpfiles/config.js
|
|
12
|
-
# instead of hardcoding it here.
|
|
13
|
-
readonly RELEASE_DIR='dist'
|
|
14
|
-
|
|
15
|
-
# These values should be updated with each release. (Note that the
|
|
16
|
-
# historic values are tab-delimited.)
|
|
17
|
-
|
|
18
|
-
# Size of blockly_compressed.js
|
|
19
|
-
# Q2 2019 2.20190722.0 812688
|
|
20
|
-
# Q3 2019 3.20191014.0 538781
|
|
21
|
-
# Q4 2019 3.20200123.0 609855
|
|
22
|
-
# Q1 2020 3.20200402.0 619341
|
|
23
|
-
# Q2 2020 3.20200625.0 621811
|
|
24
|
-
# Q3 2020 3.20200924.0 641216
|
|
25
|
-
# Q4 2020 4.20201217.0 653624
|
|
26
|
-
# Q1 2021 5.20210325.0 653957
|
|
27
|
-
# Q2 2021 6.20210701.0 664497
|
|
28
|
-
# Q3 2021 6.20210701.0 731695 (mid-quarter goog.module conversion)
|
|
29
|
-
# Q3 2021 6.20210701.0 808807 (late-quarter goog.module conversion)
|
|
30
|
-
# Q4 2021 7.20211209.0-beta.0 920002
|
|
31
|
-
# Q4 2021 7.20211209.0 929665
|
|
32
|
-
# Q2 2022 8.0.0 928056
|
|
33
|
-
# Q3 2022 8.0.0 1040413 (mid-quarter typescript conversion)
|
|
34
|
-
# Q4 2022 8.0.0 870104
|
|
35
|
-
# Q4 2022 9.1.1 903357
|
|
36
|
-
# Q1 2023 9.2.1 909181
|
|
37
|
-
# Q2 2023 9.3.3 887618
|
|
38
|
-
# Q3 2023 10.1.3 898859
|
|
39
|
-
# Q4 2023 10.2.2 903535
|
|
40
|
-
# Q1 2024 10.3.1 914366
|
|
41
|
-
# Q2 2024 11.0.0 905365
|
|
42
|
-
readonly BLOCKLY_SIZE_EXPECTED=905365
|
|
43
|
-
|
|
44
|
-
# Size of blocks_compressed.js
|
|
45
|
-
# Q2 2019 2.20190722.0 75618
|
|
46
|
-
# Q3 2019 3.20191014.0 76455
|
|
47
|
-
# Q4 2019 3.20200123.0 75629
|
|
48
|
-
# Q1 2020 3.20200402.0 75805
|
|
49
|
-
# Q2 2020 3.20200625.0 76360
|
|
50
|
-
# Q3 2020 3.20200924.0 76429
|
|
51
|
-
# Q4 2020 4.20201217.0 76693
|
|
52
|
-
# Q1 2021 5.20210325.0 76693
|
|
53
|
-
# Q2 2021 6.20210701.0 76669
|
|
54
|
-
# Q3 2021 6.20210701.0 76669
|
|
55
|
-
# Q4 2021 7.20211209.0-beta.0 82054
|
|
56
|
-
# Q4 2021 7.20211209.0 86966
|
|
57
|
-
# Q2 2022 8.0.0 90769
|
|
58
|
-
# Q3 2022 8.0.0 102176 (mid-quarter typescript conversion)
|
|
59
|
-
# Q4 2022 8.0.0 102213
|
|
60
|
-
# Q4 2022 9.1.1 102190
|
|
61
|
-
# Q1 2023 9.2.1 101114
|
|
62
|
-
# Q2 2023 9.3.3 91848
|
|
63
|
-
# Q3 2023 10.1.3 90150
|
|
64
|
-
# Q4 2023 10.2.2 90269
|
|
65
|
-
# Q1 2024 10.3.1 90269
|
|
66
|
-
# Q2 2024 11.0.0 88376
|
|
67
|
-
readonly BLOCKS_SIZE_EXPECTED=88376
|
|
68
|
-
|
|
69
|
-
# Size of blockly_compressed.js.gz
|
|
70
|
-
# Q2 2019 2.20190722.0 180925
|
|
71
|
-
# Q3 2019 3.20191014.0 119064
|
|
72
|
-
# Q4 2019 3.20200123.0 131897
|
|
73
|
-
# Q1 2020 3.20200402.0 134133
|
|
74
|
-
# Q2 2020 3.20200625.0 135181
|
|
75
|
-
# Q3 2020 3.20200924.0 138003
|
|
76
|
-
# Q4 2020 4.20201217.0 138115
|
|
77
|
-
# Q1 2021 5.20210325.0 136118
|
|
78
|
-
# Q2 2021 6.20210701.0 142112
|
|
79
|
-
# Q3 2021 6.20210701.0 147476 (mid-quarter goog.module conversion)
|
|
80
|
-
# Q3 2021 6.20210701.0 152025 (late-quarter goog.module conversion)
|
|
81
|
-
# Q4 2021 7.20211209.0-beta.0 169863
|
|
82
|
-
# Q4 2021 7.20211209.0 171759
|
|
83
|
-
# Q2 2022 8.0.0 173997
|
|
84
|
-
# Q3 2022 8.0.0 185766 (mid-quarter typescript conversion)
|
|
85
|
-
# Q4 2022 8.0.0 175140
|
|
86
|
-
# Q4 2022 9.1.1 179306
|
|
87
|
-
# Q1 2023 9.2.1 179814
|
|
88
|
-
# Q2 2023 9.3.3 175206
|
|
89
|
-
# Q3 2023 10.1.3 180553
|
|
90
|
-
# Q4 2023 10.2.2 181474
|
|
91
|
-
# Q1 2024 10.3.1 184237
|
|
92
|
-
# Q2 2024 11.0.0 182249
|
|
93
|
-
readonly BLOCKLY_GZ_SIZE_EXPECTED=182249
|
|
94
|
-
|
|
95
|
-
# Size of blocks_compressed.js.gz
|
|
96
|
-
# Q2 2019 2.20190722.0 14552
|
|
97
|
-
# Q3 2019 3.20191014.0 15064
|
|
98
|
-
# Q4 2019 3.20200123.0 14897
|
|
99
|
-
# Q1 2020 3.20200402.0 14966
|
|
100
|
-
# Q2 2020 3.20200625.0 15195
|
|
101
|
-
# Q3 2020 3.20200924.0 15231
|
|
102
|
-
# Q4 2020 4.20201217.0 15224
|
|
103
|
-
# Q1 2021 5.20210325.0 15285
|
|
104
|
-
# Q2 2021 6.20210701.0 15275
|
|
105
|
-
# Q3 2021 6.20210701.0 15284
|
|
106
|
-
# Q4 2021 7.20211209.0-beta.0 16616
|
|
107
|
-
# Q4 2021 7.20211209.0 15760
|
|
108
|
-
# Q2 2022 8.0.0 16192
|
|
109
|
-
# Q3 2022 8.0.0 17016 (mid-quarter typescript conversion)
|
|
110
|
-
# Q4 2022 8.0.0 17188
|
|
111
|
-
# Q4 2022 9.1.1 17182
|
|
112
|
-
# Q1 2023 9.2.1 17262
|
|
113
|
-
# Q2 2023 9.3.3 16736
|
|
114
|
-
# Q3 2023 10.1.3 16508
|
|
115
|
-
# Q4 2023 10.2.2 16442
|
|
116
|
-
# Q1 2024 10.3.1 16533
|
|
117
|
-
# Q2 2024 11.0.0 15815
|
|
118
|
-
readonly BLOCKS_GZ_SIZE_EXPECTED=15815
|
|
119
|
-
|
|
120
|
-
# ANSI colors
|
|
121
|
-
readonly BOLD_GREEN='\033[1;32m'
|
|
122
|
-
readonly BOLD_RED='\033[1;31m'
|
|
123
|
-
readonly ANSI_RESET='\033[0m'
|
|
124
|
-
|
|
125
|
-
# Terminate immediately with non-zero status if any command exits
|
|
126
|
-
# with non-zero status, printing a nice message.
|
|
127
|
-
set -e
|
|
128
|
-
function fail {
|
|
129
|
-
echo -e "${BOLD_RED}Error while checking metadata.${ANSI_RESET}" >&2
|
|
130
|
-
}
|
|
131
|
-
trap fail ERR
|
|
132
|
-
|
|
133
|
-
# GZip them for additional size comparisons (keep originals, force
|
|
134
|
-
# overwite previously-gzipped copies).
|
|
135
|
-
echo "Zipping the compressed files"
|
|
136
|
-
gzip -kf "${RELEASE_DIR}/blockly_compressed.js"
|
|
137
|
-
gzip -kf "${RELEASE_DIR}/blocks_compressed.js"
|
|
138
|
-
|
|
139
|
-
# Check the sizes of the files
|
|
140
|
-
|
|
141
|
-
has_failed=0
|
|
142
|
-
|
|
143
|
-
compare_size() {
|
|
144
|
-
local name="$1"
|
|
145
|
-
local expected="$2"
|
|
146
|
-
local compare=$(echo "${expected} * 1.1 / 1" | bc)
|
|
147
|
-
|
|
148
|
-
local size=$(wc -c <"${name}")
|
|
149
|
-
|
|
150
|
-
if (( $size > $compare))
|
|
151
|
-
then
|
|
152
|
-
echo -ne "${BOLD_RED}Failed: Size of ${name} has grown more than 10%. " >&2
|
|
153
|
-
echo -e "${size} vs ${expected} ${ANSI_RESET}" >&2
|
|
154
|
-
has_failed=1
|
|
155
|
-
else
|
|
156
|
-
echo -ne "${BOLD_GREEN}Size of ${name} at ${size} compared to previous " >&2
|
|
157
|
-
echo -e "${expected}.${ANSI_RESET}"
|
|
158
|
-
fi
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
compare_size "${RELEASE_DIR}/blockly_compressed.js" $BLOCKLY_SIZE_EXPECTED
|
|
162
|
-
compare_size "${RELEASE_DIR}/blocks_compressed.js" $BLOCKS_SIZE_EXPECTED
|
|
163
|
-
compare_size "${RELEASE_DIR}/blockly_compressed.js.gz" $BLOCKLY_GZ_SIZE_EXPECTED
|
|
164
|
-
compare_size "${RELEASE_DIR}/blocks_compressed.js.gz" $BLOCKS_GZ_SIZE_EXPECTED
|
|
165
|
-
|
|
166
|
-
exit $has_failed
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# Location that npm run typings will write .d.ts files to.
|
|
4
|
-
#
|
|
5
|
-
# (TODO(#5007): Should fetch this from scripts/gulpfiles/config.js
|
|
6
|
-
# instead of hardcoding it here.
|
|
7
|
-
readonly BUILD_DIR='build'
|
|
8
|
-
|
|
9
|
-
# ANSI colors
|
|
10
|
-
BOLD_GREEN='\033[1;32m'
|
|
11
|
-
BOLD_RED='\033[1;31m'
|
|
12
|
-
ANSI_RESET='\033[0m'
|
|
13
|
-
|
|
14
|
-
# Terminate immediately with non-zero status if any command exits
|
|
15
|
-
# with non-zero status, printing a nice message.
|
|
16
|
-
set -e
|
|
17
|
-
function fail {
|
|
18
|
-
echo -e "${BOLD_RED}Failed to compile TypeScript typings.${ANSI_RESET}" >&2
|
|
19
|
-
}
|
|
20
|
-
trap fail ERR
|
|
21
|
-
|
|
22
|
-
# Generate Blockly typings.
|
|
23
|
-
echo "Generating Blockly typings"
|
|
24
|
-
npm run typings
|
|
25
|
-
|
|
26
|
-
# Use the TypeScript compiler to compile the generated typings.
|
|
27
|
-
echo "Compiling typings"
|
|
28
|
-
|
|
29
|
-
cd "${BUILD_DIR}"
|
|
30
|
-
../node_modules/.bin/tsc blockly.d.ts
|
|
31
|
-
|
|
32
|
-
echo -e "${BOLD_GREEN}TypeScript typings compiled successfully.${ANSI_RESET}"
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2023 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @fileoverview Helper functions for loading Blockly in tests.
|
|
9
|
-
*
|
|
10
|
-
* Used by playgrounds and test harnesses, both directly and via the
|
|
11
|
-
* shims generated by the buildShims function in
|
|
12
|
-
* scripts/gulpfiles/build_tasks.js.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
if (typeof window !== 'object') {
|
|
17
|
-
// Not running in a browser. Maybe we wish to support this?
|
|
18
|
-
// blockly_uncompressed formerly supported node.js, though it
|
|
19
|
-
// appears that the code had not been working for some time (at
|
|
20
|
-
// least since PR #5718 back in December 2021. For now just throw
|
|
21
|
-
// an error.
|
|
22
|
-
throw new Error('Bootstrapping without window is not supported.');
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* URL of the blockly repository. This is needed for a few reasons:
|
|
27
|
-
*
|
|
28
|
-
* - We need an absolute path instead of relative path because the
|
|
29
|
-
* advanced_playground and the regular playground are in
|
|
30
|
-
* different folders.
|
|
31
|
-
* - We need to get the root directory for blockly because it is
|
|
32
|
-
* different for github.io, appspot and local.
|
|
33
|
-
*
|
|
34
|
-
* The formulation given here will work so long as top-level page is loaded from
|
|
35
|
-
* somewhere in tests/.
|
|
36
|
-
*/
|
|
37
|
-
export const ROOT = window.location.href.replace(/\/tests\/.*$/, '/');
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Decide whether to use compressed mode or not.
|
|
41
|
-
*
|
|
42
|
-
* Honours a "?compressed=" query parameter if present; otherwise uses
|
|
43
|
-
* uncompressed for when loading from local machine and compressed
|
|
44
|
-
* otherwise. See issue #5557 for additional background.
|
|
45
|
-
*
|
|
46
|
-
* @return {boolean} True if should load in compressed mode.
|
|
47
|
-
*/
|
|
48
|
-
function compressed() {
|
|
49
|
-
const param = location.search.match(/compressed=([^&]+)/)?.[1];
|
|
50
|
-
if (param) {
|
|
51
|
-
if (['y', 'yes', 'true', '1'].includes(param)) return true;
|
|
52
|
-
if (['n', 'no', 'false', '0'].includes(param)) return false;
|
|
53
|
-
console.error(`Unrecognised compressed parameter "${param}"`);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const LOCALHOSTS = ['localhost', '127.0.0.1', '[::1]'];
|
|
57
|
-
const isLocalhost = LOCALHOSTS.includes(location.hostname);
|
|
58
|
-
const isFileUrl = location.origin === 'file://';
|
|
59
|
-
return !(isLocalhost || isFileUrl);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/** @type {boolean} Load in compressed mode. */
|
|
63
|
-
export const COMPRESSED = compressed();
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Load a chunk, either by importing its ESM entrypoint or loading the
|
|
67
|
-
* compressed chunk script.
|
|
68
|
-
*
|
|
69
|
-
* When loading in uncompressed mode, if scriptExports is a simple
|
|
70
|
-
* variable name (e.g. 'Blockly') then globalThis[scriptExports] will
|
|
71
|
-
* be set to the chunk's Module object. This attempts to provide
|
|
72
|
-
* backward compatibility with loading the compressed chunk as a
|
|
73
|
-
* script, where this is done by the compressed chunk's UMD wrapper.
|
|
74
|
-
* The compatibility is not complete, however: since Module objects
|
|
75
|
-
* are immutable, it is not possible to set (e.g.)
|
|
76
|
-
* Blockly.libraryBlocks.
|
|
77
|
-
*
|
|
78
|
-
* The intention is to allow the chunk to be accessed either via
|
|
79
|
-
* the returned Module / exports object (preferred) or via the global
|
|
80
|
-
* scope (needed by dev-tools) regardless of whether it was loaded
|
|
81
|
-
* compressed or uncompressed.
|
|
82
|
-
*
|
|
83
|
-
* Paths should be relative to the repository root.
|
|
84
|
-
*
|
|
85
|
-
* @param {string} modulePath Path to the chunk's ESM entry point.
|
|
86
|
-
* @param {string} scriptPath Path to the chunk's _compressed.js file.
|
|
87
|
-
* @param {string} scriptExports The global variable name (or
|
|
88
|
-
* dotted-identifier path relative from a global variable) in
|
|
89
|
-
* which the compressed chunk's UMD wrapper will save the module's
|
|
90
|
-
* exports object. Should be the same as the correspodning
|
|
91
|
-
* chunks[].scriptExport property in
|
|
92
|
-
* scripts/gulpfiles/build_tasks.js.
|
|
93
|
-
* @return {Module} The module's Module or exports object.
|
|
94
|
-
*/
|
|
95
|
-
export async function loadChunk(modulePath, scriptPath, scriptExports) {
|
|
96
|
-
if (COMPRESSED) {
|
|
97
|
-
await loadScript(`${ROOT}${scriptPath}`);
|
|
98
|
-
return get(scriptExports);
|
|
99
|
-
} else {
|
|
100
|
-
const exports = await import(`../../${modulePath}`);
|
|
101
|
-
if (!scriptExports.includes('.')) globalThis[scriptExports] = exports;
|
|
102
|
-
return exports;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Load a given URL using a <script> tag.
|
|
108
|
-
*
|
|
109
|
-
* Unlike document.write('<script src=...>'), this is safe to use even
|
|
110
|
-
* after page loading is complete.
|
|
111
|
-
*
|
|
112
|
-
* @param {string} src The src attribute for the <script> tag.
|
|
113
|
-
* @return {Promise} A promise that resolves (or rejects) once the
|
|
114
|
-
* script is loaded.
|
|
115
|
-
*/
|
|
116
|
-
export function loadScript(src) {
|
|
117
|
-
return new Promise((resolve, reject) => {
|
|
118
|
-
const script = document.createElement('script');
|
|
119
|
-
script.src = src;
|
|
120
|
-
script.onload = resolve;
|
|
121
|
-
script.onerror = reject;
|
|
122
|
-
document.getElementsByTagName('head')[0].appendChild(script);
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Get the value referred to by a dotted-identifier path
|
|
128
|
-
* (e.g. foo.bar.baz). Throws TypeError if path is is not valid,
|
|
129
|
-
* i.e., if any component but the last does not exist).
|
|
130
|
-
*
|
|
131
|
-
* @param {string} path The path referring to the desired value.
|
|
132
|
-
* @return {string|null} The value referred to.
|
|
133
|
-
*/
|
|
134
|
-
function get(path) {
|
|
135
|
-
let obj = globalThis;
|
|
136
|
-
for (const part of path.split('.')) {
|
|
137
|
-
obj = obj[part];
|
|
138
|
-
}
|
|
139
|
-
return obj;
|
|
140
|
-
}
|