scratch-blocks 1.2.0-beta.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/package.json +1 -1
- 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/temp-use-blockly-v12-rc.sh +0 -26
|
@@ -1,877 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// Former goog.module ID: Blockly.zelos.ConstantProvider
|
|
8
|
-
|
|
9
|
-
import {ConnectionType} from '../../connection_type.js';
|
|
10
|
-
import type {RenderedConnection} from '../../rendered_connection.js';
|
|
11
|
-
import type {Theme} from '../../theme.js';
|
|
12
|
-
import * as utilsColour from '../../utils/colour.js';
|
|
13
|
-
import * as dom from '../../utils/dom.js';
|
|
14
|
-
import {Svg} from '../../utils/svg.js';
|
|
15
|
-
import * as svgPaths from '../../utils/svg_paths.js';
|
|
16
|
-
import {ConstantProvider as BaseConstantProvider} from '../common/constants.js';
|
|
17
|
-
import type {Shape} from '../common/constants.js';
|
|
18
|
-
|
|
19
|
-
/** An object containing sizing and path information about inside corners. */
|
|
20
|
-
export interface InsideCorners {
|
|
21
|
-
width: number;
|
|
22
|
-
height: number;
|
|
23
|
-
pathTop: string;
|
|
24
|
-
pathBottom: string;
|
|
25
|
-
rightWidth: number;
|
|
26
|
-
rightHeight: number;
|
|
27
|
-
pathTopRight: string;
|
|
28
|
-
pathBottomRight: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* An object that provides constants for rendering blocks in Zelos mode.
|
|
33
|
-
*/
|
|
34
|
-
export class ConstantProvider extends BaseConstantProvider {
|
|
35
|
-
GRID_UNIT = 4;
|
|
36
|
-
STATEMENT_INPUT_SPACER_MIN_WIDTH: number;
|
|
37
|
-
|
|
38
|
-
override CURSOR_COLOUR = '#ffa200';
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Radius of the cursor for input and output connections.
|
|
42
|
-
*/
|
|
43
|
-
CURSOR_RADIUS = 5;
|
|
44
|
-
|
|
45
|
-
override JAGGED_TEETH_HEIGHT = 0;
|
|
46
|
-
|
|
47
|
-
override JAGGED_TEETH_WIDTH = 0;
|
|
48
|
-
override START_HAT_HEIGHT = 22;
|
|
49
|
-
|
|
50
|
-
override START_HAT_WIDTH = 96;
|
|
51
|
-
|
|
52
|
-
override SHAPES = {HEXAGONAL: 1, ROUND: 2, SQUARE: 3, PUZZLE: 4, NOTCH: 5};
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Map of output/input shapes and the amount they should cause a block to be
|
|
56
|
-
* padded. Outer key is the outer shape, inner key is the inner shape.
|
|
57
|
-
* When a block with the outer shape contains an input block with the inner
|
|
58
|
-
* shape on its left or right edge, the block elements are aligned such that
|
|
59
|
-
* the padding specified is reached.
|
|
60
|
-
*/
|
|
61
|
-
SHAPE_IN_SHAPE_PADDING: {[key: number]: {[key: number]: number}} = {
|
|
62
|
-
1: {
|
|
63
|
-
// Outer shape: hexagon.
|
|
64
|
-
0: 5 * this.GRID_UNIT, // Field in hexagon.
|
|
65
|
-
1: 2 * this.GRID_UNIT, // Hexagon in hexagon.
|
|
66
|
-
2: 5 * this.GRID_UNIT, // Round in hexagon.
|
|
67
|
-
3: 5 * this.GRID_UNIT, // Square in hexagon.
|
|
68
|
-
},
|
|
69
|
-
2: {
|
|
70
|
-
// Outer shape: round.
|
|
71
|
-
0: 3 * this.GRID_UNIT, // Field in round.
|
|
72
|
-
1: 3 * this.GRID_UNIT, // Hexagon in round.
|
|
73
|
-
2: 1 * this.GRID_UNIT, // Round in round.
|
|
74
|
-
3: 2 * this.GRID_UNIT, // Square in round.
|
|
75
|
-
},
|
|
76
|
-
3: {
|
|
77
|
-
// Outer shape: square.
|
|
78
|
-
0: 2 * this.GRID_UNIT, // Field in square.
|
|
79
|
-
1: 2 * this.GRID_UNIT, // Hexagon in square.
|
|
80
|
-
2: 2 * this.GRID_UNIT, // Round in square.
|
|
81
|
-
3: 2 * this.GRID_UNIT, // Square in square.
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
override FULL_BLOCK_FIELDS = true;
|
|
86
|
-
|
|
87
|
-
override FIELD_TEXT_FONTWEIGHT = 'bold';
|
|
88
|
-
|
|
89
|
-
override FIELD_TEXT_FONTFAMILY =
|
|
90
|
-
'"Helvetica Neue", "Segoe UI", Helvetica, sans-serif';
|
|
91
|
-
|
|
92
|
-
override FIELD_DROPDOWN_NO_BORDER_RECT_SHADOW = true;
|
|
93
|
-
|
|
94
|
-
override FIELD_DROPDOWN_COLOURED_DIV = true;
|
|
95
|
-
|
|
96
|
-
override FIELD_DROPDOWN_SVG_ARROW = true;
|
|
97
|
-
override FIELD_TEXTINPUT_BOX_SHADOW = true;
|
|
98
|
-
|
|
99
|
-
override FIELD_COLOUR_FULL_BLOCK = true;
|
|
100
|
-
MAX_DYNAMIC_CONNECTION_SHAPE_WIDTH: number;
|
|
101
|
-
|
|
102
|
-
/** The selected glow colour. */
|
|
103
|
-
SELECTED_GLOW_COLOUR = '#fff200';
|
|
104
|
-
|
|
105
|
-
/** The size of the selected glow. */
|
|
106
|
-
SELECTED_GLOW_SIZE = 0.5;
|
|
107
|
-
|
|
108
|
-
/** The replacement glow colour. */
|
|
109
|
-
REPLACEMENT_GLOW_COLOUR = '#fff200';
|
|
110
|
-
|
|
111
|
-
/** The size of the selected glow. */
|
|
112
|
-
REPLACEMENT_GLOW_SIZE = 2;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* The ID of the selected glow filter, or the empty string if no filter is
|
|
116
|
-
* set.
|
|
117
|
-
*/
|
|
118
|
-
selectedGlowFilterId = '';
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* The <filter> element to use for a selected glow, or null if not set.
|
|
122
|
-
*/
|
|
123
|
-
private selectedGlowFilter: SVGElement | null = null;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* The ID of the replacement glow filter, or the empty string if no filter
|
|
127
|
-
* is set.
|
|
128
|
-
*/
|
|
129
|
-
replacementGlowFilterId = '';
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* The <filter> element to use for a replacement glow, or null if not set.
|
|
133
|
-
*/
|
|
134
|
-
private replacementGlowFilter: SVGElement | null = null;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* The object containing information about the hexagon used for a boolean
|
|
138
|
-
* reporter block. Null before init is called.
|
|
139
|
-
*/
|
|
140
|
-
HEXAGONAL: Shape | null = null;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* The object containing information about the hexagon used for a number or
|
|
144
|
-
* string reporter block. Null before init is called.
|
|
145
|
-
*/
|
|
146
|
-
ROUNDED: Shape | null = null;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* The object containing information about the hexagon used for a
|
|
150
|
-
* rectangular reporter block. Null before init is called.
|
|
151
|
-
*/
|
|
152
|
-
SQUARED: Shape | null = null;
|
|
153
|
-
|
|
154
|
-
constructor() {
|
|
155
|
-
super();
|
|
156
|
-
|
|
157
|
-
this.SMALL_PADDING = this.GRID_UNIT;
|
|
158
|
-
|
|
159
|
-
this.MEDIUM_PADDING = 2 * this.GRID_UNIT;
|
|
160
|
-
|
|
161
|
-
this.MEDIUM_LARGE_PADDING = 3 * this.GRID_UNIT;
|
|
162
|
-
|
|
163
|
-
this.LARGE_PADDING = 4 * this.GRID_UNIT;
|
|
164
|
-
|
|
165
|
-
this.CORNER_RADIUS = 1 * this.GRID_UNIT;
|
|
166
|
-
|
|
167
|
-
this.NOTCH_WIDTH = 9 * this.GRID_UNIT;
|
|
168
|
-
|
|
169
|
-
this.NOTCH_HEIGHT = 2 * this.GRID_UNIT;
|
|
170
|
-
|
|
171
|
-
this.NOTCH_OFFSET_LEFT = 3 * this.GRID_UNIT;
|
|
172
|
-
|
|
173
|
-
this.STATEMENT_INPUT_NOTCH_OFFSET = this.NOTCH_OFFSET_LEFT;
|
|
174
|
-
|
|
175
|
-
this.MIN_BLOCK_WIDTH = 2 * this.GRID_UNIT;
|
|
176
|
-
|
|
177
|
-
this.MIN_BLOCK_HEIGHT = 12 * this.GRID_UNIT;
|
|
178
|
-
|
|
179
|
-
this.EMPTY_STATEMENT_INPUT_HEIGHT = 6 * this.GRID_UNIT;
|
|
180
|
-
|
|
181
|
-
this.TOP_ROW_MIN_HEIGHT = this.CORNER_RADIUS;
|
|
182
|
-
|
|
183
|
-
this.TOP_ROW_PRECEDES_STATEMENT_MIN_HEIGHT = this.LARGE_PADDING;
|
|
184
|
-
|
|
185
|
-
this.BOTTOM_ROW_MIN_HEIGHT = this.CORNER_RADIUS;
|
|
186
|
-
|
|
187
|
-
this.BOTTOM_ROW_AFTER_STATEMENT_MIN_HEIGHT = 6 * this.GRID_UNIT;
|
|
188
|
-
|
|
189
|
-
this.STATEMENT_BOTTOM_SPACER = -this.NOTCH_HEIGHT;
|
|
190
|
-
|
|
191
|
-
/** Minimum statement input spacer width. */
|
|
192
|
-
this.STATEMENT_INPUT_SPACER_MIN_WIDTH = 40 * this.GRID_UNIT;
|
|
193
|
-
|
|
194
|
-
this.STATEMENT_INPUT_PADDING_LEFT = 4 * this.GRID_UNIT;
|
|
195
|
-
|
|
196
|
-
this.EMPTY_INLINE_INPUT_PADDING = 4 * this.GRID_UNIT;
|
|
197
|
-
|
|
198
|
-
this.EMPTY_INLINE_INPUT_HEIGHT = 8 * this.GRID_UNIT;
|
|
199
|
-
|
|
200
|
-
this.DUMMY_INPUT_MIN_HEIGHT = 8 * this.GRID_UNIT;
|
|
201
|
-
|
|
202
|
-
this.DUMMY_INPUT_SHADOW_MIN_HEIGHT = 6 * this.GRID_UNIT;
|
|
203
|
-
|
|
204
|
-
this.CURSOR_WS_WIDTH = 20 * this.GRID_UNIT;
|
|
205
|
-
|
|
206
|
-
this.FIELD_TEXT_FONTSIZE = 3 * this.GRID_UNIT;
|
|
207
|
-
|
|
208
|
-
this.FIELD_BORDER_RECT_RADIUS = this.CORNER_RADIUS;
|
|
209
|
-
|
|
210
|
-
this.FIELD_BORDER_RECT_X_PADDING = 2 * this.GRID_UNIT;
|
|
211
|
-
|
|
212
|
-
this.FIELD_BORDER_RECT_Y_PADDING = 1.625 * this.GRID_UNIT;
|
|
213
|
-
|
|
214
|
-
this.FIELD_BORDER_RECT_HEIGHT = 8 * this.GRID_UNIT;
|
|
215
|
-
|
|
216
|
-
this.FIELD_DROPDOWN_BORDER_RECT_HEIGHT = 8 * this.GRID_UNIT;
|
|
217
|
-
|
|
218
|
-
this.FIELD_DROPDOWN_SVG_ARROW_PADDING = this.FIELD_BORDER_RECT_X_PADDING;
|
|
219
|
-
|
|
220
|
-
this.FIELD_COLOUR_DEFAULT_WIDTH = 6 * this.GRID_UNIT;
|
|
221
|
-
|
|
222
|
-
this.FIELD_COLOUR_DEFAULT_HEIGHT = 8 * this.GRID_UNIT;
|
|
223
|
-
|
|
224
|
-
this.FIELD_CHECKBOX_X_OFFSET = 1 * this.GRID_UNIT;
|
|
225
|
-
|
|
226
|
-
/** The maximum width of a dynamic connection shape. */
|
|
227
|
-
this.MAX_DYNAMIC_CONNECTION_SHAPE_WIDTH = 12 * this.GRID_UNIT;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
override setFontConstants_(theme: Theme) {
|
|
231
|
-
super.setFontConstants_(theme);
|
|
232
|
-
|
|
233
|
-
this.FIELD_BORDER_RECT_HEIGHT =
|
|
234
|
-
this.FIELD_TEXT_HEIGHT + this.FIELD_BORDER_RECT_Y_PADDING * 2;
|
|
235
|
-
this.FIELD_DROPDOWN_BORDER_RECT_HEIGHT = this.FIELD_BORDER_RECT_HEIGHT;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
override init() {
|
|
239
|
-
super.init();
|
|
240
|
-
this.HEXAGONAL = this.makeHexagonal();
|
|
241
|
-
this.ROUNDED = this.makeRounded();
|
|
242
|
-
this.SQUARED = this.makeSquared();
|
|
243
|
-
|
|
244
|
-
this.STATEMENT_INPUT_NOTCH_OFFSET =
|
|
245
|
-
this.NOTCH_OFFSET_LEFT +
|
|
246
|
-
(this.INSIDE_CORNERS as InsideCorners).rightWidth;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
override setDynamicProperties_(theme: Theme) {
|
|
250
|
-
super.setDynamicProperties_(theme);
|
|
251
|
-
|
|
252
|
-
this.SELECTED_GLOW_COLOUR =
|
|
253
|
-
theme.getComponentStyle('selectedGlowColour') ||
|
|
254
|
-
this.SELECTED_GLOW_COLOUR;
|
|
255
|
-
const selectedGlowSize = Number(
|
|
256
|
-
theme.getComponentStyle('selectedGlowSize'),
|
|
257
|
-
);
|
|
258
|
-
this.SELECTED_GLOW_SIZE =
|
|
259
|
-
selectedGlowSize && !isNaN(selectedGlowSize)
|
|
260
|
-
? selectedGlowSize
|
|
261
|
-
: this.SELECTED_GLOW_SIZE;
|
|
262
|
-
this.REPLACEMENT_GLOW_COLOUR =
|
|
263
|
-
theme.getComponentStyle('replacementGlowColour') ||
|
|
264
|
-
this.REPLACEMENT_GLOW_COLOUR;
|
|
265
|
-
const replacementGlowSize = Number(
|
|
266
|
-
theme.getComponentStyle('replacementGlowSize'),
|
|
267
|
-
);
|
|
268
|
-
this.REPLACEMENT_GLOW_SIZE =
|
|
269
|
-
replacementGlowSize && !isNaN(replacementGlowSize)
|
|
270
|
-
? replacementGlowSize
|
|
271
|
-
: this.REPLACEMENT_GLOW_SIZE;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
override dispose() {
|
|
275
|
-
super.dispose();
|
|
276
|
-
if (this.selectedGlowFilter) {
|
|
277
|
-
dom.removeNode(this.selectedGlowFilter);
|
|
278
|
-
}
|
|
279
|
-
if (this.replacementGlowFilter) {
|
|
280
|
-
dom.removeNode(this.replacementGlowFilter);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
override makeStartHat() {
|
|
285
|
-
const height = this.START_HAT_HEIGHT;
|
|
286
|
-
const width = this.START_HAT_WIDTH;
|
|
287
|
-
|
|
288
|
-
const mainPath = svgPaths.curve('c', [
|
|
289
|
-
svgPaths.point(25, -height),
|
|
290
|
-
svgPaths.point(71, -height),
|
|
291
|
-
svgPaths.point(width, 0),
|
|
292
|
-
]);
|
|
293
|
-
// Height is actually the Y position of the control points defining the
|
|
294
|
-
// curve of the hat; the hat's actual rendered height is 3/4 of the control
|
|
295
|
-
// points' Y position, per https://stackoverflow.com/a/5327329
|
|
296
|
-
return {height: height * 0.75, width, path: mainPath};
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Create sizing and path information about a hexagonal shape.
|
|
301
|
-
*
|
|
302
|
-
* @returns An object containing sizing and path information about a hexagonal
|
|
303
|
-
* shape for connections.
|
|
304
|
-
*/
|
|
305
|
-
protected makeHexagonal(): Shape {
|
|
306
|
-
const maxWidth = this.MAX_DYNAMIC_CONNECTION_SHAPE_WIDTH;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Make the main path for the hexagonal connection shape out of two lines.
|
|
310
|
-
* The lines are defined with relative positions and require the block
|
|
311
|
-
* height. The 'up' and 'down' versions of the paths are the same, but the Y
|
|
312
|
-
* sign flips. The 'left' and 'right' versions of the path are also the
|
|
313
|
-
* same, but the X sign flips.
|
|
314
|
-
*
|
|
315
|
-
* @param height The height of the block the connection is on.
|
|
316
|
-
* @param up True if the path should be drawn from bottom to top, false
|
|
317
|
-
* otherwise.
|
|
318
|
-
* @param right True if the path is for the right side of the block.
|
|
319
|
-
* @returns A path fragment describing a rounded connection.
|
|
320
|
-
*/
|
|
321
|
-
function makeMainPath(height: number, up: boolean, right: boolean): string {
|
|
322
|
-
const halfHeight = height / 2;
|
|
323
|
-
const width = halfHeight > maxWidth ? maxWidth : halfHeight;
|
|
324
|
-
const forward = up ? -1 : 1;
|
|
325
|
-
const direction = right ? -1 : 1;
|
|
326
|
-
const dy = (forward * height) / 2;
|
|
327
|
-
return (
|
|
328
|
-
svgPaths.lineTo(-direction * width, dy) +
|
|
329
|
-
svgPaths.lineTo(direction * width, dy)
|
|
330
|
-
);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
return {
|
|
334
|
-
type: this.SHAPES.HEXAGONAL,
|
|
335
|
-
isDynamic: true,
|
|
336
|
-
width(height: number): number {
|
|
337
|
-
const halfHeight = height / 2;
|
|
338
|
-
return halfHeight > maxWidth ? maxWidth : halfHeight;
|
|
339
|
-
},
|
|
340
|
-
height(height: number): number {
|
|
341
|
-
return height;
|
|
342
|
-
},
|
|
343
|
-
connectionOffsetY(connectionHeight: number): number {
|
|
344
|
-
return connectionHeight / 2;
|
|
345
|
-
},
|
|
346
|
-
connectionOffsetX(connectionWidth: number): number {
|
|
347
|
-
return -connectionWidth;
|
|
348
|
-
},
|
|
349
|
-
pathDown(height: number): string {
|
|
350
|
-
return makeMainPath(height, false, false);
|
|
351
|
-
},
|
|
352
|
-
pathUp(height: number): string {
|
|
353
|
-
return makeMainPath(height, true, false);
|
|
354
|
-
},
|
|
355
|
-
pathRightDown(height: number): string {
|
|
356
|
-
return makeMainPath(height, false, true);
|
|
357
|
-
},
|
|
358
|
-
pathRightUp(height: number): string {
|
|
359
|
-
return makeMainPath(height, false, true);
|
|
360
|
-
},
|
|
361
|
-
};
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* Create sizing and path information about a rounded shape.
|
|
366
|
-
*
|
|
367
|
-
* @returns An object containing sizing and path information about a rounded
|
|
368
|
-
* shape for connections.
|
|
369
|
-
*/
|
|
370
|
-
protected makeRounded(): Shape {
|
|
371
|
-
const maxWidth = this.MAX_DYNAMIC_CONNECTION_SHAPE_WIDTH;
|
|
372
|
-
const maxHeight = maxWidth * 2;
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* Make the main path for the rounded connection shape out of two arcs and
|
|
376
|
-
* a line that joins them. The arcs are defined with relative positions.
|
|
377
|
-
* Usually, the height of the block is split between the two arcs. In the
|
|
378
|
-
* case where the height of the block exceeds the maximum height, a line is
|
|
379
|
-
* drawn in between the two arcs. The 'up' and 'down' versions of the paths
|
|
380
|
-
* are the same, but the Y sign flips. The 'up' and 'right' versions of the
|
|
381
|
-
* path flip the sweep-flag which moves the arc at negative angles.
|
|
382
|
-
*
|
|
383
|
-
* @param blockHeight The height of the block the connection is on.
|
|
384
|
-
* @param up True if the path should be drawn from bottom to top, false
|
|
385
|
-
* otherwise.
|
|
386
|
-
* @param right True if the path is for the right side of the block.
|
|
387
|
-
* @returns A path fragment describing a rounded connection.
|
|
388
|
-
*/
|
|
389
|
-
function makeMainPath(
|
|
390
|
-
blockHeight: number,
|
|
391
|
-
up: boolean,
|
|
392
|
-
right: boolean,
|
|
393
|
-
): string {
|
|
394
|
-
const remainingHeight =
|
|
395
|
-
blockHeight > maxHeight ? blockHeight - maxHeight : 0;
|
|
396
|
-
const height = blockHeight > maxHeight ? maxHeight : blockHeight;
|
|
397
|
-
const radius = height / 2;
|
|
398
|
-
const sweep = right === up ? '0' : '1';
|
|
399
|
-
return (
|
|
400
|
-
svgPaths.arc(
|
|
401
|
-
'a',
|
|
402
|
-
'0 0,' + sweep,
|
|
403
|
-
radius,
|
|
404
|
-
svgPaths.point((right ? 1 : -1) * radius, (up ? -1 : 1) * radius),
|
|
405
|
-
) +
|
|
406
|
-
svgPaths.lineOnAxis('v', (up ? -1 : 1) * remainingHeight) +
|
|
407
|
-
svgPaths.arc(
|
|
408
|
-
'a',
|
|
409
|
-
'0 0,' + sweep,
|
|
410
|
-
radius,
|
|
411
|
-
svgPaths.point((right ? -1 : 1) * radius, (up ? -1 : 1) * radius),
|
|
412
|
-
)
|
|
413
|
-
);
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
return {
|
|
417
|
-
type: this.SHAPES.ROUND,
|
|
418
|
-
isDynamic: true,
|
|
419
|
-
width(height: number): number {
|
|
420
|
-
const halfHeight = height / 2;
|
|
421
|
-
return halfHeight > maxWidth ? maxWidth : halfHeight;
|
|
422
|
-
},
|
|
423
|
-
height(height: number): number {
|
|
424
|
-
return height;
|
|
425
|
-
},
|
|
426
|
-
connectionOffsetY(connectionHeight: number): number {
|
|
427
|
-
return connectionHeight / 2;
|
|
428
|
-
},
|
|
429
|
-
connectionOffsetX(connectionWidth: number): number {
|
|
430
|
-
return -connectionWidth;
|
|
431
|
-
},
|
|
432
|
-
pathDown(height: number): string {
|
|
433
|
-
return makeMainPath(height, false, false);
|
|
434
|
-
},
|
|
435
|
-
pathUp(height: number): string {
|
|
436
|
-
return makeMainPath(height, true, false);
|
|
437
|
-
},
|
|
438
|
-
pathRightDown(height: number): string {
|
|
439
|
-
return makeMainPath(height, false, true);
|
|
440
|
-
},
|
|
441
|
-
pathRightUp(height: number): string {
|
|
442
|
-
return makeMainPath(height, false, true);
|
|
443
|
-
},
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* Create sizing and path information about a squared shape.
|
|
449
|
-
*
|
|
450
|
-
* @returns An object containing sizing and path information about a squared
|
|
451
|
-
* shape for connections.
|
|
452
|
-
*/
|
|
453
|
-
protected makeSquared(): Shape {
|
|
454
|
-
const radius = this.CORNER_RADIUS;
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* Make the main path for the squared connection shape out of two corners
|
|
458
|
-
* and a single line in-between (a and v). These are defined in relative
|
|
459
|
-
* positions and require the height of the block.
|
|
460
|
-
* The 'left' and 'right' versions of the paths are the same, but the Y sign
|
|
461
|
-
* flips. The 'up' and 'down' versions of the path determine where the
|
|
462
|
-
* corner point is placed and in turn the direction of the corners.
|
|
463
|
-
*
|
|
464
|
-
* @param height The height of the block the connection is on.
|
|
465
|
-
* @param up True if the path should be drawn from bottom to top, false
|
|
466
|
-
* otherwise.
|
|
467
|
-
* @param right True if the path is for the right side of the block.
|
|
468
|
-
* @returns A path fragment describing a squared connection.
|
|
469
|
-
*/
|
|
470
|
-
function makeMainPath(height: number, up: boolean, right: boolean): string {
|
|
471
|
-
const innerHeight = height - radius * 2;
|
|
472
|
-
const sweep = right === up ? '0' : '1';
|
|
473
|
-
return (
|
|
474
|
-
svgPaths.arc(
|
|
475
|
-
'a',
|
|
476
|
-
'0 0,' + sweep,
|
|
477
|
-
radius,
|
|
478
|
-
svgPaths.point((right ? 1 : -1) * radius, (up ? -1 : 1) * radius),
|
|
479
|
-
) +
|
|
480
|
-
svgPaths.lineOnAxis('v', (up ? -1 : 1) * innerHeight) +
|
|
481
|
-
svgPaths.arc(
|
|
482
|
-
'a',
|
|
483
|
-
'0 0,' + sweep,
|
|
484
|
-
radius,
|
|
485
|
-
svgPaths.point((right ? -1 : 1) * radius, (up ? -1 : 1) * radius),
|
|
486
|
-
)
|
|
487
|
-
);
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
return {
|
|
491
|
-
type: this.SHAPES.SQUARE,
|
|
492
|
-
isDynamic: true,
|
|
493
|
-
width(_height: number): number {
|
|
494
|
-
return radius;
|
|
495
|
-
},
|
|
496
|
-
height(height: number): number {
|
|
497
|
-
return height;
|
|
498
|
-
},
|
|
499
|
-
connectionOffsetY(connectionHeight: number): number {
|
|
500
|
-
return connectionHeight / 2;
|
|
501
|
-
},
|
|
502
|
-
connectionOffsetX(connectionWidth: number): number {
|
|
503
|
-
return -connectionWidth;
|
|
504
|
-
},
|
|
505
|
-
pathDown(height: number): string {
|
|
506
|
-
return makeMainPath(height, false, false);
|
|
507
|
-
},
|
|
508
|
-
pathUp(height: number): string {
|
|
509
|
-
return makeMainPath(height, true, false);
|
|
510
|
-
},
|
|
511
|
-
pathRightDown(height: number): string {
|
|
512
|
-
return makeMainPath(height, false, true);
|
|
513
|
-
},
|
|
514
|
-
pathRightUp(height: number): string {
|
|
515
|
-
return makeMainPath(height, false, true);
|
|
516
|
-
},
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
override shapeFor(connection: RenderedConnection): Shape {
|
|
521
|
-
let checks = connection.getCheck();
|
|
522
|
-
if (!checks && connection.targetConnection) {
|
|
523
|
-
checks = connection.targetConnection.getCheck();
|
|
524
|
-
}
|
|
525
|
-
let outputShape;
|
|
526
|
-
switch (connection.type) {
|
|
527
|
-
case ConnectionType.INPUT_VALUE:
|
|
528
|
-
case ConnectionType.OUTPUT_VALUE:
|
|
529
|
-
outputShape = connection.getSourceBlock().getOutputShape();
|
|
530
|
-
// If the block has an output shape set, use that instead.
|
|
531
|
-
if (outputShape !== null) {
|
|
532
|
-
switch (outputShape) {
|
|
533
|
-
case this.SHAPES.HEXAGONAL:
|
|
534
|
-
return this.HEXAGONAL!;
|
|
535
|
-
case this.SHAPES.ROUND:
|
|
536
|
-
return this.ROUNDED!;
|
|
537
|
-
case this.SHAPES.SQUARE:
|
|
538
|
-
return this.SQUARED!;
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
// Includes doesn't work in IE.
|
|
542
|
-
if (checks && checks.includes('Boolean')) {
|
|
543
|
-
return this.HEXAGONAL!;
|
|
544
|
-
}
|
|
545
|
-
if (checks && checks.includes('Number')) {
|
|
546
|
-
return this.ROUNDED!;
|
|
547
|
-
}
|
|
548
|
-
if (checks && checks.includes('String')) {
|
|
549
|
-
return this.ROUNDED!;
|
|
550
|
-
}
|
|
551
|
-
return this.ROUNDED!;
|
|
552
|
-
case ConnectionType.PREVIOUS_STATEMENT:
|
|
553
|
-
case ConnectionType.NEXT_STATEMENT:
|
|
554
|
-
return this.NOTCH!;
|
|
555
|
-
default:
|
|
556
|
-
throw Error('Unknown type');
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
override makeNotch() {
|
|
561
|
-
const width = this.NOTCH_WIDTH;
|
|
562
|
-
const height = this.NOTCH_HEIGHT;
|
|
563
|
-
|
|
564
|
-
const innerWidth = width / 3;
|
|
565
|
-
const curveWidth = innerWidth / 3;
|
|
566
|
-
|
|
567
|
-
const halfHeight = height / 2;
|
|
568
|
-
const quarterHeight = halfHeight / 2;
|
|
569
|
-
|
|
570
|
-
/**
|
|
571
|
-
* Make the main path for the notch.
|
|
572
|
-
*
|
|
573
|
-
* @param dir Direction multiplier to apply to horizontal offsets along the
|
|
574
|
-
* path. Either 1 or -1.
|
|
575
|
-
* @returns A path fragment describing a notch.
|
|
576
|
-
*/
|
|
577
|
-
function makeMainPath(dir: number): string {
|
|
578
|
-
return (
|
|
579
|
-
svgPaths.curve('c', [
|
|
580
|
-
svgPaths.point((dir * curveWidth) / 2, 0),
|
|
581
|
-
svgPaths.point((dir * curveWidth * 3) / 4, quarterHeight / 2),
|
|
582
|
-
svgPaths.point(dir * curveWidth, quarterHeight),
|
|
583
|
-
]) +
|
|
584
|
-
svgPaths.line([svgPaths.point(dir * curveWidth, halfHeight)]) +
|
|
585
|
-
svgPaths.curve('c', [
|
|
586
|
-
svgPaths.point((dir * curveWidth) / 4, quarterHeight / 2),
|
|
587
|
-
svgPaths.point((dir * curveWidth) / 2, quarterHeight),
|
|
588
|
-
svgPaths.point(dir * curveWidth, quarterHeight),
|
|
589
|
-
]) +
|
|
590
|
-
svgPaths.lineOnAxis('h', dir * innerWidth) +
|
|
591
|
-
svgPaths.curve('c', [
|
|
592
|
-
svgPaths.point((dir * curveWidth) / 2, 0),
|
|
593
|
-
svgPaths.point((dir * curveWidth * 3) / 4, -(quarterHeight / 2)),
|
|
594
|
-
svgPaths.point(dir * curveWidth, -quarterHeight),
|
|
595
|
-
]) +
|
|
596
|
-
svgPaths.line([svgPaths.point(dir * curveWidth, -halfHeight)]) +
|
|
597
|
-
svgPaths.curve('c', [
|
|
598
|
-
svgPaths.point((dir * curveWidth) / 4, -(quarterHeight / 2)),
|
|
599
|
-
svgPaths.point((dir * curveWidth) / 2, -quarterHeight),
|
|
600
|
-
svgPaths.point(dir * curveWidth, -quarterHeight),
|
|
601
|
-
])
|
|
602
|
-
);
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
const pathLeft = makeMainPath(1);
|
|
606
|
-
const pathRight = makeMainPath(-1);
|
|
607
|
-
|
|
608
|
-
return {
|
|
609
|
-
type: this.SHAPES.NOTCH,
|
|
610
|
-
width,
|
|
611
|
-
height,
|
|
612
|
-
pathLeft,
|
|
613
|
-
pathRight,
|
|
614
|
-
};
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
override makeInsideCorners() {
|
|
618
|
-
const radius = this.CORNER_RADIUS;
|
|
619
|
-
|
|
620
|
-
const innerTopLeftCorner = svgPaths.arc(
|
|
621
|
-
'a',
|
|
622
|
-
'0 0,0',
|
|
623
|
-
radius,
|
|
624
|
-
svgPaths.point(-radius, radius),
|
|
625
|
-
);
|
|
626
|
-
|
|
627
|
-
const innerTopRightCorner = svgPaths.arc(
|
|
628
|
-
'a',
|
|
629
|
-
'0 0,1',
|
|
630
|
-
radius,
|
|
631
|
-
svgPaths.point(-radius, radius),
|
|
632
|
-
);
|
|
633
|
-
|
|
634
|
-
const innerBottomLeftCorner = svgPaths.arc(
|
|
635
|
-
'a',
|
|
636
|
-
'0 0,0',
|
|
637
|
-
radius,
|
|
638
|
-
svgPaths.point(radius, radius),
|
|
639
|
-
);
|
|
640
|
-
|
|
641
|
-
const innerBottomRightCorner = svgPaths.arc(
|
|
642
|
-
'a',
|
|
643
|
-
'0 0,1',
|
|
644
|
-
radius,
|
|
645
|
-
svgPaths.point(radius, radius),
|
|
646
|
-
);
|
|
647
|
-
|
|
648
|
-
return {
|
|
649
|
-
width: radius,
|
|
650
|
-
height: radius,
|
|
651
|
-
pathTop: innerTopLeftCorner,
|
|
652
|
-
pathBottom: innerBottomLeftCorner,
|
|
653
|
-
rightWidth: radius,
|
|
654
|
-
rightHeight: radius,
|
|
655
|
-
pathTopRight: innerTopRightCorner,
|
|
656
|
-
pathBottomRight: innerBottomRightCorner,
|
|
657
|
-
};
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
override generateSecondaryColour_(colour: string) {
|
|
661
|
-
return utilsColour.blend('#000', colour, 0.15) || colour;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
override generateTertiaryColour_(colour: string) {
|
|
665
|
-
return utilsColour.blend('#000', colour, 0.25) || colour;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
override createDom(svg: SVGElement, tagName: string, selector: string) {
|
|
669
|
-
super.createDom(svg, tagName, selector);
|
|
670
|
-
/*
|
|
671
|
-
<defs>
|
|
672
|
-
... filters go here ...
|
|
673
|
-
</defs>
|
|
674
|
-
*/
|
|
675
|
-
const defs = dom.createSvgElement(Svg.DEFS, {}, svg);
|
|
676
|
-
// Using a dilate distorts the block shape.
|
|
677
|
-
// Instead use a gaussian blur, and then set all alpha to 1 with a transfer.
|
|
678
|
-
const selectedGlowFilter = dom.createSvgElement(
|
|
679
|
-
Svg.FILTER,
|
|
680
|
-
{
|
|
681
|
-
'id': 'blocklySelectedGlowFilter' + this.randomIdentifier,
|
|
682
|
-
'height': '160%',
|
|
683
|
-
'width': '180%',
|
|
684
|
-
'y': '-30%',
|
|
685
|
-
'x': '-40%',
|
|
686
|
-
},
|
|
687
|
-
defs,
|
|
688
|
-
);
|
|
689
|
-
dom.createSvgElement(
|
|
690
|
-
Svg.FEGAUSSIANBLUR,
|
|
691
|
-
{'in': 'SourceGraphic', 'stdDeviation': this.SELECTED_GLOW_SIZE},
|
|
692
|
-
selectedGlowFilter,
|
|
693
|
-
);
|
|
694
|
-
// Set all gaussian blur pixels to 1 opacity before applying flood
|
|
695
|
-
const selectedComponentTransfer = dom.createSvgElement(
|
|
696
|
-
Svg.FECOMPONENTTRANSFER,
|
|
697
|
-
{'result': 'outBlur'},
|
|
698
|
-
selectedGlowFilter,
|
|
699
|
-
);
|
|
700
|
-
dom.createSvgElement(
|
|
701
|
-
Svg.FEFUNCA,
|
|
702
|
-
{'type': 'table', 'tableValues': '0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1'},
|
|
703
|
-
selectedComponentTransfer,
|
|
704
|
-
);
|
|
705
|
-
// Color the highlight
|
|
706
|
-
dom.createSvgElement(
|
|
707
|
-
Svg.FEFLOOD,
|
|
708
|
-
{
|
|
709
|
-
'flood-color': this.SELECTED_GLOW_COLOUR,
|
|
710
|
-
'flood-opacity': 1,
|
|
711
|
-
'result': 'outColor',
|
|
712
|
-
},
|
|
713
|
-
selectedGlowFilter,
|
|
714
|
-
);
|
|
715
|
-
dom.createSvgElement(
|
|
716
|
-
Svg.FECOMPOSITE,
|
|
717
|
-
{
|
|
718
|
-
'in': 'outColor',
|
|
719
|
-
'in2': 'outBlur',
|
|
720
|
-
'operator': 'in',
|
|
721
|
-
'result': 'outGlow',
|
|
722
|
-
},
|
|
723
|
-
selectedGlowFilter,
|
|
724
|
-
);
|
|
725
|
-
this.selectedGlowFilterId = selectedGlowFilter.id;
|
|
726
|
-
this.selectedGlowFilter = selectedGlowFilter;
|
|
727
|
-
|
|
728
|
-
// Using a dilate distorts the block shape.
|
|
729
|
-
// Instead use a gaussian blur, and then set all alpha to 1 with a transfer.
|
|
730
|
-
const replacementGlowFilter = dom.createSvgElement(
|
|
731
|
-
Svg.FILTER,
|
|
732
|
-
{
|
|
733
|
-
'id': 'blocklyReplacementGlowFilter' + this.randomIdentifier,
|
|
734
|
-
'height': '160%',
|
|
735
|
-
'width': '180%',
|
|
736
|
-
'y': '-30%',
|
|
737
|
-
'x': '-40%',
|
|
738
|
-
},
|
|
739
|
-
defs,
|
|
740
|
-
);
|
|
741
|
-
dom.createSvgElement(
|
|
742
|
-
Svg.FEGAUSSIANBLUR,
|
|
743
|
-
{'in': 'SourceGraphic', 'stdDeviation': this.REPLACEMENT_GLOW_SIZE},
|
|
744
|
-
replacementGlowFilter,
|
|
745
|
-
);
|
|
746
|
-
// Set all gaussian blur pixels to 1 opacity before applying flood
|
|
747
|
-
const replacementComponentTransfer = dom.createSvgElement(
|
|
748
|
-
Svg.FECOMPONENTTRANSFER,
|
|
749
|
-
{'result': 'outBlur'},
|
|
750
|
-
replacementGlowFilter,
|
|
751
|
-
);
|
|
752
|
-
dom.createSvgElement(
|
|
753
|
-
Svg.FEFUNCA,
|
|
754
|
-
{'type': 'table', 'tableValues': '0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1'},
|
|
755
|
-
replacementComponentTransfer,
|
|
756
|
-
);
|
|
757
|
-
// Color the highlight
|
|
758
|
-
dom.createSvgElement(
|
|
759
|
-
Svg.FEFLOOD,
|
|
760
|
-
{
|
|
761
|
-
'flood-color': this.REPLACEMENT_GLOW_COLOUR,
|
|
762
|
-
'flood-opacity': 1,
|
|
763
|
-
'result': 'outColor',
|
|
764
|
-
},
|
|
765
|
-
replacementGlowFilter,
|
|
766
|
-
);
|
|
767
|
-
dom.createSvgElement(
|
|
768
|
-
Svg.FECOMPOSITE,
|
|
769
|
-
{
|
|
770
|
-
'in': 'outColor',
|
|
771
|
-
'in2': 'outBlur',
|
|
772
|
-
'operator': 'in',
|
|
773
|
-
'result': 'outGlow',
|
|
774
|
-
},
|
|
775
|
-
replacementGlowFilter,
|
|
776
|
-
);
|
|
777
|
-
dom.createSvgElement(
|
|
778
|
-
Svg.FECOMPOSITE,
|
|
779
|
-
{
|
|
780
|
-
'in': 'SourceGraphic',
|
|
781
|
-
'in2': 'outGlow',
|
|
782
|
-
'operator': 'over',
|
|
783
|
-
},
|
|
784
|
-
replacementGlowFilter,
|
|
785
|
-
);
|
|
786
|
-
this.replacementGlowFilterId = replacementGlowFilter.id;
|
|
787
|
-
this.replacementGlowFilter = replacementGlowFilter;
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
override getCSS_(selector: string) {
|
|
791
|
-
return [
|
|
792
|
-
/* eslint-disable indent */
|
|
793
|
-
// Text.
|
|
794
|
-
`${selector} .blocklyText,`,
|
|
795
|
-
`${selector} .blocklyFlyoutLabelText {`,
|
|
796
|
-
`font: ${this.FIELD_TEXT_FONTWEIGHT} ${this.FIELD_TEXT_FONTSIZE}` +
|
|
797
|
-
`pt ${this.FIELD_TEXT_FONTFAMILY};`,
|
|
798
|
-
`}`,
|
|
799
|
-
|
|
800
|
-
`${selector} .blocklyTextInputBubble textarea {`,
|
|
801
|
-
`font-weight: normal;`,
|
|
802
|
-
`}`,
|
|
803
|
-
|
|
804
|
-
// Fields.
|
|
805
|
-
`${selector} .blocklyText {`,
|
|
806
|
-
`fill: #fff;`,
|
|
807
|
-
`}`,
|
|
808
|
-
`${selector} .blocklyNonEditableField>rect:not(.blocklyDropdownRect),`,
|
|
809
|
-
`${selector} .blocklyEditableField>rect:not(.blocklyDropdownRect) {`,
|
|
810
|
-
`fill: ${this.FIELD_BORDER_RECT_COLOUR};`,
|
|
811
|
-
`}`,
|
|
812
|
-
`${selector} .blocklyNonEditableField>text,`,
|
|
813
|
-
`${selector} .blocklyEditableField>text,`,
|
|
814
|
-
`${selector} .blocklyNonEditableField>g>text,`,
|
|
815
|
-
`${selector} .blocklyEditableField>g>text {`,
|
|
816
|
-
`fill: #575E75;`,
|
|
817
|
-
`}`,
|
|
818
|
-
|
|
819
|
-
// Flyout labels.
|
|
820
|
-
`${selector} .blocklyFlyoutLabelText {`,
|
|
821
|
-
`fill: #575E75;`,
|
|
822
|
-
`}`,
|
|
823
|
-
|
|
824
|
-
// Bubbles.
|
|
825
|
-
`${selector} .blocklyText.blocklyBubbleText {`,
|
|
826
|
-
`fill: #575E75;`,
|
|
827
|
-
`}`,
|
|
828
|
-
|
|
829
|
-
// Editable field hover.
|
|
830
|
-
`${selector} .blocklyDraggable:not(.blocklyDisabled)`,
|
|
831
|
-
` .blocklyEditableField:not(.blocklyEditing):hover>rect,`,
|
|
832
|
-
`${selector} .blocklyDraggable:not(.blocklyDisabled)`,
|
|
833
|
-
` .blocklyEditableField:not(.blocklyEditing):hover>.blocklyPath {`,
|
|
834
|
-
`stroke: #fff;`,
|
|
835
|
-
`stroke-width: 2;`,
|
|
836
|
-
`}`,
|
|
837
|
-
|
|
838
|
-
// Text field input.
|
|
839
|
-
`${selector} .blocklyHtmlInput {`,
|
|
840
|
-
`font-family: ${this.FIELD_TEXT_FONTFAMILY};`,
|
|
841
|
-
`font-weight: ${this.FIELD_TEXT_FONTWEIGHT};`,
|
|
842
|
-
`color: #575E75;`,
|
|
843
|
-
`}`,
|
|
844
|
-
|
|
845
|
-
// Dropdown field.
|
|
846
|
-
`${selector} .blocklyDropdownText {`,
|
|
847
|
-
`fill: #fff !important;`,
|
|
848
|
-
`}`,
|
|
849
|
-
|
|
850
|
-
// Widget and Dropdown Div
|
|
851
|
-
`${selector}.blocklyWidgetDiv .goog-menuitem,`,
|
|
852
|
-
`${selector}.blocklyDropDownDiv .goog-menuitem {`,
|
|
853
|
-
`font-family: ${this.FIELD_TEXT_FONTFAMILY};`,
|
|
854
|
-
`}`,
|
|
855
|
-
`${selector}.blocklyDropDownDiv .goog-menuitem-content {`,
|
|
856
|
-
`color: #fff;`,
|
|
857
|
-
`}`,
|
|
858
|
-
|
|
859
|
-
// Connection highlight.
|
|
860
|
-
`${selector} .blocklyHighlightedConnectionPath {`,
|
|
861
|
-
`stroke: ${this.SELECTED_GLOW_COLOUR};`,
|
|
862
|
-
`}`,
|
|
863
|
-
|
|
864
|
-
// Disabled outline paths.
|
|
865
|
-
`${selector} .blocklyDisabled > .blocklyOutlinePath {`,
|
|
866
|
-
`fill: url(#blocklyDisabledPattern${this.randomIdentifier})`,
|
|
867
|
-
`}`,
|
|
868
|
-
|
|
869
|
-
// Insertion marker.
|
|
870
|
-
`${selector} .blocklyInsertionMarker>.blocklyPath {`,
|
|
871
|
-
`fill-opacity: ${this.INSERTION_MARKER_OPACITY};`,
|
|
872
|
-
`stroke: none;`,
|
|
873
|
-
`}`,
|
|
874
|
-
];
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
/* eslint-enable indent */
|