mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
refactor!: allows previously internal constants to be configurable (#5897)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"chunk": [
|
||||
"blockly:257",
|
||||
"blockly:259",
|
||||
"all:10:blockly",
|
||||
"all1:11:blockly",
|
||||
"all2:11:blockly",
|
||||
@@ -64,18 +64,23 @@
|
||||
"./core/utils/useragent.js",
|
||||
"./core/utils/svg.js",
|
||||
"./core/utils/dom.js",
|
||||
"./core/connection_checker.js",
|
||||
"./core/keyboard_nav/ast_node.js",
|
||||
"./core/keyboard_nav/cursor.js",
|
||||
"./core/registry.js",
|
||||
"./core/utils/math.js",
|
||||
"./core/utils/idgenerator.js",
|
||||
"./core/utils/array.js",
|
||||
"./core/workspace.js",
|
||||
"./core/utils/object.js",
|
||||
"./core/events/events_block_delete.js",
|
||||
"./core/connection_checker.js",
|
||||
"./core/toolbox/separator.js",
|
||||
"./core/toolbox/toolbox_item.js",
|
||||
"./core/interfaces/i_selectable_toolbox_item.js",
|
||||
"./core/interfaces/i_collapsible_toolbox_item.js",
|
||||
"./core/toolbox/category.js",
|
||||
"./core/serialization/exceptions.js",
|
||||
"./core/interfaces/i_serializer.js",
|
||||
"./core/serialization/registry.js",
|
||||
"./core/serialization/priorities.js",
|
||||
"./core/serialization/blocks.js",
|
||||
"./core/utils/toolbox.js",
|
||||
"./core/utils/math.js",
|
||||
"./core/utils/array.js",
|
||||
"./core/workspace.js",
|
||||
"./core/events/events_block_delete.js",
|
||||
"./core/keyboard_nav/basic_cursor.js",
|
||||
"./core/keyboard_nav/tab_navigate_cursor.js",
|
||||
"./core/warning.js",
|
||||
@@ -106,6 +111,7 @@
|
||||
"./core/workspace_comment_svg.js",
|
||||
"./core/workspace_audio.js",
|
||||
"./core/events/events_trashcan_open.js",
|
||||
"./core/sprites.js",
|
||||
"./core/drag_target.js",
|
||||
"./core/delete_area.js",
|
||||
"./core/positionable_helpers.js",
|
||||
@@ -116,6 +122,7 @@
|
||||
"./core/options.js",
|
||||
"./core/interfaces/i_bounded_element.js",
|
||||
"./core/grid.js",
|
||||
"./core/css.js",
|
||||
"./core/flyout_button.js",
|
||||
"./core/contextmenu_registry.js",
|
||||
"./core/theme/classic.js",
|
||||
@@ -128,6 +135,7 @@
|
||||
"./core/renderers/zelos/path_object.js",
|
||||
"./core/renderers/zelos/drawer.js",
|
||||
"./core/renderers/zelos/renderer.js",
|
||||
"./core/utils/aria.js",
|
||||
"./core/field_textinput.js",
|
||||
"./core/field_image.js",
|
||||
"./core/renderers/zelos/constants.js",
|
||||
@@ -155,8 +163,11 @@
|
||||
"./core/renderers/measurables/input_row.js",
|
||||
"./core/renderers/measurables/inline_input.js",
|
||||
"./core/scrollbar.js",
|
||||
"./core/interfaces/i_toolbox_item.js",
|
||||
"./core/interfaces/i_toolbox.js",
|
||||
"./core/utils/metrics.js",
|
||||
"./core/interfaces/i_metrics_manager.js",
|
||||
"./core/interfaces/i_flyout.js",
|
||||
"./core/metrics_manager.js",
|
||||
"./core/interfaces/i_deletable.js",
|
||||
"./core/interfaces/i_draggable.js",
|
||||
@@ -186,14 +197,15 @@
|
||||
"./core/events/events_var_delete.js",
|
||||
"./core/variable_map.js",
|
||||
"./core/names.js",
|
||||
"./core/events/events_block_base.js",
|
||||
"./core/events/events_block_change.js",
|
||||
"./core/events/events_ui_base.js",
|
||||
"./core/events/events_marker_move.js",
|
||||
"./core/renderers/common/marker_svg.js",
|
||||
"./core/keyboard_nav/marker.js",
|
||||
"./core/keyboard_nav/ast_node.js",
|
||||
"./core/keyboard_nav/cursor.js",
|
||||
"./core/marker_manager.js",
|
||||
"./core/field_label.js",
|
||||
"./core/input_types.js",
|
||||
"./core/interfaces/i_registrable_field.js",
|
||||
"./core/field_registry.js",
|
||||
"./core/input.js",
|
||||
@@ -209,6 +221,7 @@
|
||||
"./core/constants.js",
|
||||
"./core/interfaces/i_connection_checker.js",
|
||||
"./core/connection_db.js",
|
||||
"./core/config.js",
|
||||
"./core/rendered_connection.js",
|
||||
"./core/utils/svg_paths.js",
|
||||
"./core/renderers/common/constants.js",
|
||||
@@ -216,35 +229,23 @@
|
||||
"./core/procedures.js",
|
||||
"./core/workspace_svg.js",
|
||||
"./core/utils/rect.js",
|
||||
"./core/utils/size.js",
|
||||
"./core/utils/coordinate.js",
|
||||
"./core/utils/style.js",
|
||||
"./core/utils/deprecation.js",
|
||||
"./core/utils/svg_math.js",
|
||||
"./core/bubble_dragger.js",
|
||||
"./core/connection_type.js",
|
||||
"./core/internal_constants.js",
|
||||
"./core/block_animations.js",
|
||||
"./core/gesture.js",
|
||||
"./core/touch.js",
|
||||
"./core/browser_events.js",
|
||||
"./core/tooltip.js",
|
||||
"./core/block_svg.js",
|
||||
"./core/interfaces/i_flyout.js",
|
||||
"./core/interfaces/i_toolbox.js",
|
||||
"./core/interfaces/i_toolbox_item.js",
|
||||
"./core/interfaces/i_selectable_toolbox_item.js",
|
||||
"./core/interfaces/i_collapsible_toolbox_item.js",
|
||||
"./core/utils/aria.js",
|
||||
"./core/utils/deprecation.js",
|
||||
"./core/css.js",
|
||||
"./core/toolbox/category.js",
|
||||
"./core/input_types.js",
|
||||
"./core/utils/size.js",
|
||||
"./core/serialization/exceptions.js",
|
||||
"./core/interfaces/i_serializer.js",
|
||||
"./core/serialization/registry.js",
|
||||
"./core/serialization/priorities.js",
|
||||
"./core/serialization/blocks.js",
|
||||
"./core/utils/toolbox.js",
|
||||
"./core/connection_type.js",
|
||||
"./core/internal_constants.js",
|
||||
"./core/events/events_block_base.js",
|
||||
"./core/events/events_block_change.js",
|
||||
"./core/utils/xml.js",
|
||||
"./core/mutator.js",
|
||||
"./core/msg.js",
|
||||
"./core/utils/colour.js",
|
||||
@@ -252,14 +253,15 @@
|
||||
"./core/extensions.js",
|
||||
"./core/block.js",
|
||||
"./core/utils/string.js",
|
||||
"./core/utils/object.js",
|
||||
"./core/dialog.js",
|
||||
"./core/utils/xml.js",
|
||||
"./core/events/events_var_base.js",
|
||||
"./core/events/events_var_create.js",
|
||||
"./core/variable_model.js",
|
||||
"./core/variables.js",
|
||||
"./core/utils/object.js",
|
||||
"./core/events/events_abstract.js",
|
||||
"./core/registry.js",
|
||||
"./core/events/utils.js",
|
||||
"./core/xml.js",
|
||||
"./core/connection.js",
|
||||
|
||||
@@ -1011,6 +1011,39 @@ const renamings = {
|
||||
},
|
||||
},
|
||||
},
|
||||
'7.20211209.0': {
|
||||
'Blockly': {
|
||||
exports: {
|
||||
DRAG_RADIUS: {
|
||||
module: 'Blockly.config',
|
||||
export: 'config.dragRadius',
|
||||
},
|
||||
FLYOUT_DRAG_RADIUS: {
|
||||
module: 'Blockly.config',
|
||||
export: 'config.flyoutDragRadius',
|
||||
},
|
||||
SNAP_RADIUS: {
|
||||
module: 'Blockly.config',
|
||||
export: 'config.snapRadius',
|
||||
},
|
||||
CONNECTING_SNAP_RADIUS: {
|
||||
module: 'Blockly.config',
|
||||
export: 'config.connectingSnapRadius',
|
||||
},
|
||||
CURRENT_CONNECTION_PREFERENCE: {
|
||||
module: 'Blockly.config',
|
||||
export: 'config.currentConnectionPreference',
|
||||
},
|
||||
BUMP_DELAY: {
|
||||
module: 'Blockly.config',
|
||||
export: 'config.bumpDelay',
|
||||
},
|
||||
SPRITE: {
|
||||
module: 'Blockly.constants',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
exports.renamings = renamings;
|
||||
|
||||
Reference in New Issue
Block a user