blockly 9.3.0-beta.0 → 9.3.0
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/blockly.min.js +1674 -1520
- package/blockly_compressed.js +1313 -1152
- package/blockly_compressed.js.map +1 -1
- package/blocks_compressed.js +166 -173
- package/blocks_compressed.js.map +1 -1
- package/core/any_aliases.d.ts +5 -0
- package/core/block.d.ts +49 -17
- package/core/block_animations.d.ts +0 -4
- package/core/block_drag_surface.d.ts +135 -0
- package/core/block_dragger.d.ts +2 -7
- package/core/block_svg.d.ts +72 -9
- package/core/blockly.d.ts +29 -58
- package/core/blockly_options.d.ts +0 -2
- package/core/blocks.d.ts +0 -2
- package/core/browser_events.d.ts +0 -9
- package/core/bubble.d.ts +6 -4
- package/core/bubble_dragger.d.ts +2 -3
- package/core/bump_objects.d.ts +0 -3
- package/core/clipboard.d.ts +0 -3
- package/core/comment.d.ts +6 -10
- package/core/common.d.ts +0 -12
- package/core/component_manager.d.ts +0 -2
- package/core/connection.d.ts +19 -6
- package/core/connection_checker.d.ts +1 -3
- package/core/connection_db.d.ts +0 -2
- package/core/connection_type.d.ts +0 -2
- package/core/constants.d.ts +0 -4
- package/core/contextmenu.d.ts +0 -11
- package/core/contextmenu_items.d.ts +0 -27
- package/core/contextmenu_registry.d.ts +0 -2
- package/core/css.d.ts +0 -2
- package/core/delete_area.d.ts +0 -2
- package/core/dialog.d.ts +0 -6
- package/core/drag_target.d.ts +0 -2
- package/core/events/events_abstract.d.ts +0 -3
- package/core/events/events_block_base.d.ts +0 -2
- package/core/events/events_block_change.d.ts +0 -2
- package/core/events/events_block_create.d.ts +0 -2
- package/core/events/events_block_delete.d.ts +0 -2
- package/core/events/events_block_drag.d.ts +0 -2
- package/core/events/events_block_move.d.ts +0 -2
- package/core/events/events_bubble_open.d.ts +0 -2
- package/core/events/events_click.d.ts +0 -2
- package/core/events/events_comment_base.d.ts +0 -2
- package/core/events/events_comment_change.d.ts +0 -2
- package/core/events/events_comment_create.d.ts +0 -2
- package/core/events/events_comment_delete.d.ts +0 -2
- package/core/events/events_comment_move.d.ts +0 -2
- package/core/events/events_marker_move.d.ts +0 -2
- package/core/events/events_selected.d.ts +0 -2
- package/core/events/events_theme_change.d.ts +0 -2
- package/core/events/events_toolbox_item_select.d.ts +0 -2
- package/core/events/events_trashcan_open.d.ts +0 -2
- package/core/events/events_ui.d.ts +0 -1
- package/core/events/events_ui_base.d.ts +0 -2
- package/core/events/events_var_base.d.ts +0 -2
- package/core/events/events_var_create.d.ts +0 -2
- package/core/events/events_viewport.d.ts +0 -2
- package/core/events/utils.d.ts +0 -73
- package/core/events/workspace_events.d.ts +0 -2
- package/core/extensions.d.ts +0 -8
- package/core/field.d.ts +16 -15
- package/core/field_angle.d.ts +60 -50
- package/core/field_checkbox.d.ts +22 -10
- package/core/field_colour.d.ts +55 -42
- package/core/field_dropdown.d.ts +34 -18
- package/core/field_image.d.ts +9 -12
- package/core/field_input.d.ts +34 -11
- package/core/field_label.d.ts +7 -10
- package/core/field_label_serializable.d.ts +4 -6
- package/core/field_multilineinput.d.ts +34 -12
- package/core/field_number.d.ts +27 -19
- package/core/field_registry.d.ts +0 -3
- package/core/field_textinput.d.ts +28 -12
- package/core/field_variable.d.ts +28 -16
- package/core/flyout_base.d.ts +5 -6
- package/core/flyout_button.d.ts +2 -2
- package/core/flyout_horizontal.d.ts +0 -2
- package/core/flyout_metrics_manager.d.ts +0 -2
- package/core/flyout_vertical.d.ts +0 -2
- package/core/generator.d.ts +0 -1
- package/core/gesture.d.ts +4 -17
- package/core/grid.d.ts +0 -2
- package/core/icon.d.ts +0 -2
- package/core/inject.d.ts +0 -1
- package/core/input.d.ts +0 -3
- package/core/input_types.d.ts +0 -2
- package/core/insertion_marker_manager.d.ts +6 -6
- package/core/interfaces/i_ast_node_location.d.ts +0 -2
- package/core/interfaces/i_ast_node_location_svg.d.ts +0 -2
- package/core/interfaces/i_ast_node_location_with_block.d.ts +0 -2
- package/core/interfaces/i_autohideable.d.ts +0 -2
- package/core/interfaces/i_block_dragger.d.ts +1 -3
- package/core/interfaces/i_bounded_element.d.ts +0 -2
- package/core/interfaces/i_bubble.d.ts +6 -4
- package/core/interfaces/i_collapsible_toolbox_item.d.ts +0 -2
- package/core/interfaces/i_component.d.ts +0 -2
- package/core/interfaces/i_connection_checker.d.ts +0 -2
- package/core/interfaces/i_contextmenu.d.ts +0 -1
- package/core/interfaces/i_copyable.d.ts +3 -2
- package/core/interfaces/i_deletable.d.ts +0 -2
- package/core/interfaces/i_delete_area.d.ts +0 -2
- package/core/interfaces/i_drag_target.d.ts +0 -2
- package/core/interfaces/i_draggable.d.ts +0 -2
- package/core/interfaces/i_flyout.d.ts +0 -2
- package/core/interfaces/i_keyboard_accessible.d.ts +0 -2
- package/core/interfaces/i_legacy_procedure_blocks.d.ts +34 -0
- package/core/interfaces/i_metrics_manager.d.ts +0 -2
- package/core/interfaces/i_movable.d.ts +0 -2
- package/core/interfaces/i_positionable.d.ts +0 -2
- package/core/interfaces/i_procedure_model.d.ts +0 -5
- package/core/interfaces/i_registrable.d.ts +0 -2
- package/core/interfaces/i_selectable.d.ts +0 -2
- package/core/interfaces/i_selectable_toolbox_item.d.ts +4 -2
- package/core/interfaces/i_serializer.d.ts +0 -2
- package/core/interfaces/i_styleable.d.ts +0 -2
- package/core/interfaces/i_toolbox.d.ts +0 -2
- package/core/interfaces/i_toolbox_item.d.ts +0 -2
- package/core/interfaces/i_variable_backed_parameter_model.d.ts +17 -0
- package/core/internal_constants.d.ts +0 -5
- package/core/keyboard_nav/ast_node.d.ts +0 -3
- package/core/keyboard_nav/basic_cursor.d.ts +0 -3
- package/core/keyboard_nav/cursor.d.ts +0 -3
- package/core/keyboard_nav/marker.d.ts +0 -2
- package/core/keyboard_nav/tab_navigate_cursor.d.ts +0 -2
- package/core/marker_manager.d.ts +0 -2
- package/core/menu.d.ts +0 -2
- package/core/menuitem.d.ts +0 -2
- package/core/metrics_manager.d.ts +0 -2
- package/core/mutator.d.ts +0 -2
- package/core/names.d.ts +0 -3
- package/core/options.d.ts +0 -2
- package/core/positionable_helpers.d.ts +0 -7
- package/core/procedures.d.ts +2 -25
- package/core/registry.d.ts +0 -11
- package/core/render_management.d.ts +15 -0
- package/core/rendered_connection.d.ts +22 -9
- package/core/renderers/common/block_rendering.d.ts +0 -3
- package/core/renderers/common/constants.d.ts +6 -51
- package/core/renderers/common/debug.d.ts +0 -3
- package/core/renderers/common/debugger.d.ts +9 -23
- package/core/renderers/common/drawer.d.ts +0 -5
- package/core/renderers/common/i_path_object.d.ts +0 -17
- package/core/renderers/common/info.d.ts +2 -12
- package/core/renderers/common/marker_svg.d.ts +2 -4
- package/core/renderers/common/path_object.d.ts +0 -24
- package/core/renderers/common/renderer.d.ts +5 -20
- package/core/renderers/geras/constants.d.ts +0 -5
- package/core/renderers/geras/drawer.d.ts +2 -4
- package/core/renderers/geras/highlight_constants.d.ts +6 -17
- package/core/renderers/geras/highlighter.d.ts +0 -13
- package/core/renderers/geras/info.d.ts +2 -5
- package/core/renderers/geras/measurables/inline_input.d.ts +0 -3
- package/core/renderers/geras/measurables/statement_input.d.ts +0 -3
- package/core/renderers/geras/path_object.d.ts +0 -8
- package/core/renderers/geras/renderer.d.ts +5 -7
- package/core/renderers/measurables/base.d.ts +0 -3
- package/core/renderers/measurables/bottom_row.d.ts +0 -9
- package/core/renderers/measurables/connection.d.ts +0 -3
- package/core/renderers/measurables/external_value_input.d.ts +0 -3
- package/core/renderers/measurables/field.d.ts +0 -3
- package/core/renderers/measurables/hat.d.ts +0 -3
- package/core/renderers/measurables/icon.d.ts +2 -5
- package/core/renderers/measurables/in_row_spacer.d.ts +0 -3
- package/core/renderers/measurables/inline_input.d.ts +1 -4
- package/core/renderers/measurables/input_connection.d.ts +1 -4
- package/core/renderers/measurables/input_row.d.ts +0 -7
- package/core/renderers/measurables/jagged_edge.d.ts +2 -5
- package/core/renderers/measurables/next_connection.d.ts +0 -3
- package/core/renderers/measurables/output_connection.d.ts +0 -3
- package/core/renderers/measurables/previous_connection.d.ts +0 -3
- package/core/renderers/measurables/round_corner.d.ts +0 -3
- package/core/renderers/measurables/row.d.ts +0 -39
- package/core/renderers/measurables/spacer_row.d.ts +0 -3
- package/core/renderers/measurables/square_corner.d.ts +0 -3
- package/core/renderers/measurables/statement_input.d.ts +0 -3
- package/core/renderers/measurables/top_row.d.ts +0 -6
- package/core/renderers/measurables/types.d.ts +0 -31
- package/core/renderers/minimalist/constants.d.ts +2 -4
- package/core/renderers/minimalist/drawer.d.ts +0 -3
- package/core/renderers/minimalist/info.d.ts +0 -4
- package/core/renderers/minimalist/renderer.d.ts +0 -3
- package/core/renderers/thrasos/info.d.ts +0 -4
- package/core/renderers/thrasos/renderer.d.ts +3 -3
- package/core/renderers/zelos/constants.d.ts +3 -17
- package/core/renderers/zelos/drawer.d.ts +0 -3
- package/core/renderers/zelos/info.d.ts +0 -4
- package/core/renderers/zelos/marker_svg.d.ts +0 -2
- package/core/renderers/zelos/measurables/bottom_row.d.ts +0 -3
- package/core/renderers/zelos/measurables/inputs.d.ts +0 -3
- package/core/renderers/zelos/measurables/row_elements.d.ts +0 -3
- package/core/renderers/zelos/measurables/top_row.d.ts +0 -3
- package/core/renderers/zelos/path_object.d.ts +0 -9
- package/core/renderers/zelos/renderer.d.ts +3 -5
- package/core/scrollbar.d.ts +0 -2
- package/core/scrollbar_pair.d.ts +0 -2
- package/core/serialization/blocks.d.ts +3 -9
- package/core/serialization/exceptions.d.ts +0 -8
- package/core/serialization/priorities.d.ts +0 -4
- package/core/serialization/registry.d.ts +0 -2
- package/core/serialization/variables.d.ts +0 -4
- package/core/serialization/workspaces.d.ts +0 -2
- package/core/shortcut_items.d.ts +0 -17
- package/core/shortcut_registry.d.ts +0 -2
- package/core/sprites.d.ts +0 -2
- package/core/theme/classic.d.ts +0 -2
- package/core/theme/zelos.d.ts +0 -2
- package/core/theme.d.ts +0 -2
- package/core/theme_manager.d.ts +3 -6
- package/core/toolbox/category.d.ts +5 -7
- package/core/toolbox/collapsible_category.d.ts +0 -4
- package/core/toolbox/separator.d.ts +0 -2
- package/core/toolbox/toolbox.d.ts +2 -5
- package/core/toolbox/toolbox_item.d.ts +0 -2
- package/core/tooltip.d.ts +0 -29
- package/core/touch.d.ts +0 -13
- package/core/trashcan.d.ts +0 -2
- package/core/utils/aria.d.ts +0 -6
- package/core/utils/array.d.ts +0 -1
- package/core/utils/colour.d.ts +0 -12
- package/core/utils/coordinate.d.ts +0 -2
- package/core/utils/deprecation.d.ts +0 -1
- package/core/utils/dom.d.ts +0 -25
- package/core/utils/idgenerator.d.ts +0 -2
- package/core/utils/keycodes.d.ts +0 -2
- package/core/utils/math.d.ts +0 -3
- package/core/utils/metrics.d.ts +0 -1
- package/core/utils/object.d.ts +0 -4
- package/core/utils/parsing.d.ts +0 -4
- package/core/utils/rect.d.ts +0 -2
- package/core/utils/size.d.ts +0 -2
- package/core/utils/string.d.ts +0 -6
- package/core/utils/style.d.ts +0 -8
- package/core/utils/svg.d.ts +0 -2
- package/core/utils/svg_math.d.ts +0 -6
- package/core/utils/svg_paths.d.ts +0 -8
- package/core/utils/toolbox.d.ts +2 -35
- package/core/utils/useragent.d.ts +0 -8
- package/core/utils/xml.d.ts +9 -8
- package/core/utils.d.ts +0 -12
- package/core/variable_map.d.ts +1 -3
- package/core/variable_model.d.ts +0 -1
- package/core/variables.d.ts +13 -17
- package/core/variables_dynamic.d.ts +0 -4
- package/core/warning.d.ts +0 -2
- package/core/widgetdiv.d.ts +0 -10
- package/core/workspace.d.ts +3 -3
- package/core/workspace_audio.d.ts +0 -2
- package/core/workspace_comment.d.ts +1 -3
- package/core/workspace_comment_svg.d.ts +16 -5
- package/core/workspace_drag_surface_svg.d.ts +74 -0
- package/core/workspace_dragger.d.ts +3 -2
- package/core/workspace_svg.d.ts +48 -8
- package/core/xml.d.ts +1 -13
- package/core/zoom_controls.d.ts +4 -15
- package/dart_compressed.js +199 -199
- package/dart_compressed.js.map +1 -1
- package/javascript_compressed.js +168 -168
- package/javascript_compressed.js.map +1 -1
- package/lua_compressed.js +211 -211
- package/lua_compressed.js.map +1 -1
- package/msg/bn.js +2 -2
- package/msg/bs.js +7 -7
- package/msg/de.js +1 -1
- package/msg/fi.js +1 -1
- package/msg/fr.js +3 -3
- package/msg/ia.js +5 -5
- package/msg/kn.js +5 -5
- package/msg/ko.js +1 -1
- package/msg/lb.js +22 -22
- package/msg/sd.js +9 -9
- package/msg/skr-arab.js +2 -2
- package/msg/sl.js +18 -18
- package/msg/sw.js +1 -1
- package/msg/zh-hans.js +6 -6
- package/msg/zh-hant.js +2 -2
- package/package.json +6 -6
- package/php_compressed.js +185 -185
- package/php_compressed.js.map +1 -1
- package/python_compressed.js +138 -138
- package/python_compressed.js.map +1 -1
- package/core/utils/sentinel.d.ts +0 -18
|
@@ -8,8 +8,6 @@ import type { IConnectionChecker } from './interfaces/i_connection_checker.js';
|
|
|
8
8
|
import type { RenderedConnection } from './rendered_connection.js';
|
|
9
9
|
/**
|
|
10
10
|
* Class for connection type checking logic.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.ConnectionChecker
|
|
13
11
|
*/
|
|
14
12
|
export declare class ConnectionChecker implements IConnectionChecker {
|
|
15
13
|
/**
|
|
@@ -68,7 +66,7 @@ export declare class ConnectionChecker implements IConnectionChecker {
|
|
|
68
66
|
/**
|
|
69
67
|
* Check whether this connection can be made by dragging.
|
|
70
68
|
*
|
|
71
|
-
* @param a Connection to compare.
|
|
69
|
+
* @param a Connection to compare (on the block that's being dragged).
|
|
72
70
|
* @param b Connection to compare against.
|
|
73
71
|
* @param distance The maximum allowable distance between connections.
|
|
74
72
|
* @returns True if the connection is allowed during a drag.
|
package/core/connection_db.d.ts
CHANGED
|
@@ -10,8 +10,6 @@ import type { Coordinate } from './utils/coordinate.js';
|
|
|
10
10
|
* Database of connections.
|
|
11
11
|
* Connections are stored in order of their vertical component. This way
|
|
12
12
|
* connections in an area may be looked up quickly using a binary search.
|
|
13
|
-
*
|
|
14
|
-
* @alias Blockly.ConnectionDB
|
|
15
13
|
*/
|
|
16
14
|
export declare class ConnectionDB {
|
|
17
15
|
private readonly connectionChecker;
|
package/core/constants.d.ts
CHANGED
|
@@ -5,14 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* The language-neutral ID given to the collapsed input.
|
|
8
|
-
*
|
|
9
|
-
* @alias Blockly.constants.COLLAPSED_INPUT_NAME
|
|
10
8
|
*/
|
|
11
9
|
export declare const COLLAPSED_INPUT_NAME = "_TEMP_COLLAPSED_INPUT";
|
|
12
10
|
/**
|
|
13
11
|
* The language-neutral ID given to the collapsed field.
|
|
14
|
-
*
|
|
15
|
-
* @alias Blockly.constants.COLLAPSED_FIELD_NAME
|
|
16
12
|
*/
|
|
17
13
|
export declare const COLLAPSED_FIELD_NAME = "_TEMP_COLLAPSED_FIELD";
|
|
18
14
|
//# sourceMappingURL=constants.d.ts.map
|
package/core/contextmenu.d.ts
CHANGED
|
@@ -11,14 +11,12 @@ import type { WorkspaceSvg } from './workspace_svg.js';
|
|
|
11
11
|
* Gets the block the context menu is currently attached to.
|
|
12
12
|
*
|
|
13
13
|
* @returns The block the context menu is attached to.
|
|
14
|
-
* @alias Blockly.ContextMenu.getCurrentBlock
|
|
15
14
|
*/
|
|
16
15
|
export declare function getCurrentBlock(): Block | null;
|
|
17
16
|
/**
|
|
18
17
|
* Sets the block the context menu is currently attached to.
|
|
19
18
|
*
|
|
20
19
|
* @param block The block the context menu is attached to.
|
|
21
|
-
* @alias Blockly.ContextMenu.setCurrentBlock
|
|
22
20
|
*/
|
|
23
21
|
export declare function setCurrentBlock(block: Block | null): void;
|
|
24
22
|
/**
|
|
@@ -27,19 +25,14 @@ export declare function setCurrentBlock(block: Block | null): void;
|
|
|
27
25
|
* @param e Mouse event.
|
|
28
26
|
* @param options Array of menu options.
|
|
29
27
|
* @param rtl True if RTL, false if LTR.
|
|
30
|
-
* @alias Blockly.ContextMenu.show
|
|
31
28
|
*/
|
|
32
29
|
export declare function show(e: Event, options: (ContextMenuOption | LegacyContextMenuOption)[], rtl: boolean): void;
|
|
33
30
|
/**
|
|
34
31
|
* Hide the context menu.
|
|
35
|
-
*
|
|
36
|
-
* @alias Blockly.ContextMenu.hide
|
|
37
32
|
*/
|
|
38
33
|
export declare function hide(): void;
|
|
39
34
|
/**
|
|
40
35
|
* Dispose of the menu.
|
|
41
|
-
*
|
|
42
|
-
* @alias Blockly.ContextMenu.dispose
|
|
43
36
|
*/
|
|
44
37
|
export declare function dispose(): void;
|
|
45
38
|
/**
|
|
@@ -49,7 +42,6 @@ export declare function dispose(): void;
|
|
|
49
42
|
* @param block Original block.
|
|
50
43
|
* @param xml XML representation of new block.
|
|
51
44
|
* @returns Function that creates a block.
|
|
52
|
-
* @alias Blockly.ContextMenu.callbackFactory
|
|
53
45
|
*/
|
|
54
46
|
export declare function callbackFactory(block: Block, xml: Element): Function;
|
|
55
47
|
/**
|
|
@@ -59,7 +51,6 @@ export declare function callbackFactory(block: Block, xml: Element): Function;
|
|
|
59
51
|
* right-click originated.
|
|
60
52
|
* @returns A menu option,
|
|
61
53
|
* containing text, enabled, and a callback.
|
|
62
|
-
* @alias Blockly.ContextMenu.commentDeleteOption
|
|
63
54
|
* @internal
|
|
64
55
|
*/
|
|
65
56
|
export declare function commentDeleteOption(comment: WorkspaceCommentSvg): LegacyContextMenuOption;
|
|
@@ -70,7 +61,6 @@ export declare function commentDeleteOption(comment: WorkspaceCommentSvg): Legac
|
|
|
70
61
|
* right-click originated.
|
|
71
62
|
* @returns A menu option,
|
|
72
63
|
* containing text, enabled, and a callback.
|
|
73
|
-
* @alias Blockly.ContextMenu.commentDuplicateOption
|
|
74
64
|
* @internal
|
|
75
65
|
*/
|
|
76
66
|
export declare function commentDuplicateOption(comment: WorkspaceCommentSvg): LegacyContextMenuOption;
|
|
@@ -83,7 +73,6 @@ export declare function commentDuplicateOption(comment: WorkspaceCommentSvg): Le
|
|
|
83
73
|
* @returns A menu option, containing text, enabled, and a callback.
|
|
84
74
|
* @suppress {strictModuleDepCheck,checkTypes} Suppress checks while workspace
|
|
85
75
|
* comments are not bundled in.
|
|
86
|
-
* @alias Blockly.ContextMenu.workspaceCommentOption
|
|
87
76
|
* @internal
|
|
88
77
|
*/
|
|
89
78
|
export declare function workspaceCommentOption(ws: WorkspaceSvg, e: Event): ContextMenuOption;
|
|
@@ -5,87 +5,60 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* Option to undo previous action.
|
|
8
|
-
*
|
|
9
|
-
* @alias Blockly.ContextMenuItems.registerUndo
|
|
10
8
|
*/
|
|
11
9
|
export declare function registerUndo(): void;
|
|
12
10
|
/**
|
|
13
11
|
* Option to redo previous action.
|
|
14
|
-
*
|
|
15
|
-
* @alias Blockly.ContextMenuItems.registerRedo
|
|
16
12
|
*/
|
|
17
13
|
export declare function registerRedo(): void;
|
|
18
14
|
/**
|
|
19
15
|
* Option to clean up blocks.
|
|
20
|
-
*
|
|
21
|
-
* @alias Blockly.ContextMenuItems.registerCleanup
|
|
22
16
|
*/
|
|
23
17
|
export declare function registerCleanup(): void;
|
|
24
18
|
/**
|
|
25
19
|
* Option to collapse all blocks.
|
|
26
|
-
*
|
|
27
|
-
* @alias Blockly.ContextMenuItems.registerCollapse
|
|
28
20
|
*/
|
|
29
21
|
export declare function registerCollapse(): void;
|
|
30
22
|
/**
|
|
31
23
|
* Option to expand all blocks.
|
|
32
|
-
*
|
|
33
|
-
* @alias Blockly.ContextMenuItems.registerExpand
|
|
34
24
|
*/
|
|
35
25
|
export declare function registerExpand(): void;
|
|
36
26
|
/**
|
|
37
27
|
* Option to delete all blocks.
|
|
38
|
-
*
|
|
39
|
-
* @alias Blockly.ContextMenuItems.registerDeleteAll
|
|
40
28
|
*/
|
|
41
29
|
export declare function registerDeleteAll(): void;
|
|
42
30
|
/**
|
|
43
31
|
* Option to duplicate a block.
|
|
44
|
-
*
|
|
45
|
-
* @alias Blockly.ContextMenuItems.registerDuplicate
|
|
46
32
|
*/
|
|
47
33
|
export declare function registerDuplicate(): void;
|
|
48
34
|
/**
|
|
49
35
|
* Option to add or remove block-level comment.
|
|
50
|
-
*
|
|
51
|
-
* @alias Blockly.ContextMenuItems.registerComment
|
|
52
36
|
*/
|
|
53
37
|
export declare function registerComment(): void;
|
|
54
38
|
/**
|
|
55
39
|
* Option to inline variables.
|
|
56
|
-
*
|
|
57
|
-
* @alias Blockly.ContextMenuItems.registerInline
|
|
58
40
|
*/
|
|
59
41
|
export declare function registerInline(): void;
|
|
60
42
|
/**
|
|
61
43
|
* Option to collapse or expand a block.
|
|
62
|
-
*
|
|
63
|
-
* @alias Blockly.ContextMenuItems.registerCollapseExpandBlock
|
|
64
44
|
*/
|
|
65
45
|
export declare function registerCollapseExpandBlock(): void;
|
|
66
46
|
/**
|
|
67
47
|
* Option to disable or enable a block.
|
|
68
|
-
*
|
|
69
|
-
* @alias Blockly.ContextMenuItems.registerDisable
|
|
70
48
|
*/
|
|
71
49
|
export declare function registerDisable(): void;
|
|
72
50
|
/**
|
|
73
51
|
* Option to delete a block.
|
|
74
|
-
*
|
|
75
|
-
* @alias Blockly.ContextMenuItems.registerDelete
|
|
76
52
|
*/
|
|
77
53
|
export declare function registerDelete(): void;
|
|
78
54
|
/**
|
|
79
55
|
* Option to open help for a block.
|
|
80
|
-
*
|
|
81
|
-
* @alias Blockly.ContextMenuItems.registerHelp
|
|
82
56
|
*/
|
|
83
57
|
export declare function registerHelp(): void;
|
|
84
58
|
/**
|
|
85
59
|
* Registers all default context menu items. This should be called once per
|
|
86
60
|
* instance of ContextMenuRegistry.
|
|
87
61
|
*
|
|
88
|
-
* @alias Blockly.ContextMenuItems.registerDefaultOptions
|
|
89
62
|
* @internal
|
|
90
63
|
*/
|
|
91
64
|
export declare function registerDefaultOptions(): void;
|
|
@@ -9,8 +9,6 @@ import type { WorkspaceSvg } from './workspace_svg.js';
|
|
|
9
9
|
* Class for the registry of context menu items. This is intended to be a
|
|
10
10
|
* singleton. You should not create a new instance, and only access this class
|
|
11
11
|
* from ContextMenuRegistry.registry.
|
|
12
|
-
*
|
|
13
|
-
* @alias Blockly.ContextMenuRegistry
|
|
14
12
|
*/
|
|
15
13
|
export declare class ContextMenuRegistry {
|
|
16
14
|
static registry: ContextMenuRegistry;
|
package/core/css.d.ts
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
* components such as fields and the toolbox to store separate CSS.
|
|
9
9
|
*
|
|
10
10
|
* @param cssContent Multiline CSS string or an array of single lines of CSS.
|
|
11
|
-
* @alias Blockly.Css.register
|
|
12
11
|
*/
|
|
13
12
|
export declare function register(cssContent: string): void;
|
|
14
13
|
/**
|
|
@@ -21,7 +20,6 @@ export declare function register(cssContent: string): void;
|
|
|
21
20
|
* @param hasCss If false, don't inject CSS (providing CSS becomes the
|
|
22
21
|
* document's responsibility).
|
|
23
22
|
* @param pathToMedia Path from page to the Blockly media directory.
|
|
24
|
-
* @alias Blockly.Css.inject
|
|
25
23
|
*/
|
|
26
24
|
export declare function inject(hasCss: boolean, pathToMedia: string): void;
|
|
27
25
|
//# sourceMappingURL=css.d.ts.map
|
package/core/delete_area.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ import type { IDraggable } from './interfaces/i_draggable.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* Abstract class for a component that can delete a block or bubble that is
|
|
11
11
|
* dropped on top of it.
|
|
12
|
-
*
|
|
13
|
-
* @alias Blockly.DeleteArea
|
|
14
12
|
*/
|
|
15
13
|
export declare class DeleteArea extends DragTarget implements IDeleteArea {
|
|
16
14
|
/**
|
package/core/dialog.d.ts
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @param message The message to display to the user.
|
|
11
11
|
* @param opt_callback The callback when the alert is dismissed.
|
|
12
|
-
* @alias Blockly.dialog.alert
|
|
13
12
|
*/
|
|
14
13
|
export declare function alert(message: string, opt_callback?: () => void): void;
|
|
15
14
|
/**
|
|
@@ -17,7 +16,6 @@ export declare function alert(message: string, opt_callback?: () => void): void;
|
|
|
17
16
|
*
|
|
18
17
|
* @param alertFunction The function to be run.
|
|
19
18
|
* @see Blockly.dialog.alert
|
|
20
|
-
* @alias Blockly.dialog.setAlert
|
|
21
19
|
*/
|
|
22
20
|
export declare function setAlert(alertFunction: (p1: string, p2?: () => void) => void): void;
|
|
23
21
|
/**
|
|
@@ -26,7 +24,6 @@ export declare function setAlert(alertFunction: (p1: string, p2?: () => void) =>
|
|
|
26
24
|
*
|
|
27
25
|
* @param message The message to display to the user.
|
|
28
26
|
* @param callback The callback for handling user response.
|
|
29
|
-
* @alias Blockly.dialog.confirm
|
|
30
27
|
*/
|
|
31
28
|
export declare function confirm(message: string, callback: (p1: boolean) => void): void;
|
|
32
29
|
/**
|
|
@@ -38,7 +35,6 @@ declare function confirmInternal(message: string, callback: (p1: boolean) => voi
|
|
|
38
35
|
*
|
|
39
36
|
* @param confirmFunction The function to be run.
|
|
40
37
|
* @see Blockly.dialog.confirm
|
|
41
|
-
* @alias Blockly.dialog.setConfirm
|
|
42
38
|
*/
|
|
43
39
|
export declare function setConfirm(confirmFunction: (p1: string, p2: (p1: boolean) => void) => void): void;
|
|
44
40
|
/**
|
|
@@ -50,7 +46,6 @@ export declare function setConfirm(confirmFunction: (p1: string, p2: (p1: boolea
|
|
|
50
46
|
* @param message The message to display to the user.
|
|
51
47
|
* @param defaultValue The value to initialize the prompt with.
|
|
52
48
|
* @param callback The callback for handling user response.
|
|
53
|
-
* @alias Blockly.dialog.prompt
|
|
54
49
|
*/
|
|
55
50
|
export declare function prompt(message: string, defaultValue: string, callback: (p1: string | null) => void): void;
|
|
56
51
|
/**
|
|
@@ -58,7 +53,6 @@ export declare function prompt(message: string, defaultValue: string, callback:
|
|
|
58
53
|
*
|
|
59
54
|
* @param promptFunction The function to be run.
|
|
60
55
|
* @see Blockly.dialog.prompt
|
|
61
|
-
* @alias Blockly.dialog.setPrompt
|
|
62
56
|
*/
|
|
63
57
|
export declare function setPrompt(promptFunction: (p1: string, p2: string, p3: (p1: string | null) => void) => void): void;
|
|
64
58
|
export declare const TEST_ONLY: {
|
package/core/drag_target.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ import type { Rect } from './utils/rect.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* Abstract class for a component with custom behaviour when a block or bubble
|
|
11
11
|
* is dragged over or dropped on top of it.
|
|
12
|
-
*
|
|
13
|
-
* @alias Blockly.DragTarget
|
|
14
12
|
*/
|
|
15
13
|
export declare class DragTarget implements IDragTarget {
|
|
16
14
|
/**
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
import type { Workspace } from '../workspace.js';
|
|
7
7
|
/**
|
|
8
8
|
* Abstract class for an event.
|
|
9
|
-
*
|
|
10
|
-
* @alias Blockly.Events.Abstract
|
|
11
9
|
*/
|
|
12
10
|
export declare abstract class Abstract {
|
|
13
11
|
/**
|
|
@@ -30,7 +28,6 @@ export declare abstract class Abstract {
|
|
|
30
28
|
isUiEvent: boolean;
|
|
31
29
|
/** Type of this event. */
|
|
32
30
|
type: string;
|
|
33
|
-
/** @alias Blockly.Events.Abstract */
|
|
34
31
|
constructor();
|
|
35
32
|
/**
|
|
36
33
|
* Encode the event as JSON.
|
|
@@ -8,8 +8,6 @@ import type { Workspace } from '../workspace.js';
|
|
|
8
8
|
import { Abstract as AbstractEvent, AbstractEventJson } from './events_abstract.js';
|
|
9
9
|
/**
|
|
10
10
|
* Abstract class for any event related to blocks.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.Events.BlockBase
|
|
13
11
|
*/
|
|
14
12
|
export declare class BlockBase extends AbstractEvent {
|
|
15
13
|
isBlank: boolean;
|
|
@@ -10,8 +10,6 @@ import { BlockBase, BlockBaseJson } from './events_block_base.js';
|
|
|
10
10
|
/**
|
|
11
11
|
* Notifies listeners when some element of a block has changed (e.g.
|
|
12
12
|
* field values, comments, etc).
|
|
13
|
-
*
|
|
14
|
-
* @alias Blockly.Events.BlockChange
|
|
15
13
|
*/
|
|
16
14
|
export declare class BlockChange extends BlockBase {
|
|
17
15
|
type: string;
|
|
@@ -10,8 +10,6 @@ import { Workspace } from '../workspace.js';
|
|
|
10
10
|
/**
|
|
11
11
|
* Notifies listeners when a block (or connected stack of blocks) is
|
|
12
12
|
* deleted.
|
|
13
|
-
*
|
|
14
|
-
* @alias Blockly.Events.BlockDelete
|
|
15
13
|
*/
|
|
16
14
|
export declare class BlockDelete extends BlockBase {
|
|
17
15
|
/** The XML representation of the deleted block(s). */
|
|
@@ -9,8 +9,6 @@ import { UiBase } from './events_ui_base.js';
|
|
|
9
9
|
import { Workspace } from '../workspace.js';
|
|
10
10
|
/**
|
|
11
11
|
* Notifies listeners when a block is being manually dragged/dropped.
|
|
12
|
-
*
|
|
13
|
-
* @alias Blockly.Events.BlockDrag
|
|
14
12
|
*/
|
|
15
13
|
export declare class BlockDrag extends UiBase {
|
|
16
14
|
/** The ID of the top-level block being dragged. */
|
|
@@ -10,8 +10,6 @@ import type { Workspace } from '../workspace.js';
|
|
|
10
10
|
/**
|
|
11
11
|
* Notifies listeners when a block is moved. This could be from one
|
|
12
12
|
* connection to another, or from one location on the workspace to another.
|
|
13
|
-
*
|
|
14
|
-
* @alias Blockly.Events.BlockMove
|
|
15
13
|
*/
|
|
16
14
|
export declare class BlockMove extends BlockBase {
|
|
17
15
|
type: string;
|
|
@@ -9,8 +9,6 @@ import { UiBase } from './events_ui_base.js';
|
|
|
9
9
|
import type { Workspace } from '../workspace.js';
|
|
10
10
|
/**
|
|
11
11
|
* Class for a bubble open event.
|
|
12
|
-
*
|
|
13
|
-
* @alias Blockly.Events.BubbleOpen
|
|
14
12
|
*/
|
|
15
13
|
export declare class BubbleOpen extends UiBase {
|
|
16
14
|
/** The ID of the block the bubble is attached to. */
|
|
@@ -9,8 +9,6 @@ import { UiBase } from './events_ui_base.js';
|
|
|
9
9
|
import { Workspace } from '../workspace.js';
|
|
10
10
|
/**
|
|
11
11
|
* Notifies listeners that ome blockly element was clicked.
|
|
12
|
-
*
|
|
13
|
-
* @alias Blockly.Events.Click
|
|
14
12
|
*/
|
|
15
13
|
export declare class Click extends UiBase {
|
|
16
14
|
/** The ID of the block that was clicked, if a block was clicked. */
|
|
@@ -10,8 +10,6 @@ import type { CommentDelete } from './events_comment_delete.js';
|
|
|
10
10
|
import type { Workspace } from '../workspace.js';
|
|
11
11
|
/**
|
|
12
12
|
* Abstract class for a comment event.
|
|
13
|
-
*
|
|
14
|
-
* @alias Blockly.Events.CommentBase
|
|
15
13
|
*/
|
|
16
14
|
export declare class CommentBase extends AbstractEvent {
|
|
17
15
|
isBlank: boolean;
|
|
@@ -8,8 +8,6 @@ import { CommentBase, CommentBaseJson } from './events_comment_base.js';
|
|
|
8
8
|
import type { Workspace } from '../workspace.js';
|
|
9
9
|
/**
|
|
10
10
|
* Notifies listeners that the contents of a workspace comment has changed.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.Events.CommentChange
|
|
13
11
|
*/
|
|
14
12
|
export declare class CommentChange extends CommentBase {
|
|
15
13
|
type: string;
|
|
@@ -8,8 +8,6 @@ import { CommentBase, CommentBaseJson } from './events_comment_base.js';
|
|
|
8
8
|
import type { Workspace } from '../workspace.js';
|
|
9
9
|
/**
|
|
10
10
|
* Notifies listeners that a workspace comment was created.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.Events.CommentCreate
|
|
13
11
|
*/
|
|
14
12
|
export declare class CommentCreate extends CommentBase {
|
|
15
13
|
type: string;
|
|
@@ -8,8 +8,6 @@ import { CommentBase, CommentBaseJson } from './events_comment_base.js';
|
|
|
8
8
|
import type { Workspace } from '../workspace.js';
|
|
9
9
|
/**
|
|
10
10
|
* Notifies listeners that a workspace comment has been deleted.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.Events.CommentDelete
|
|
13
11
|
*/
|
|
14
12
|
export declare class CommentDelete extends CommentBase {
|
|
15
13
|
type: string;
|
|
@@ -9,8 +9,6 @@ import { CommentBase, CommentBaseJson } from './events_comment_base.js';
|
|
|
9
9
|
import type { Workspace } from '../workspace.js';
|
|
10
10
|
/**
|
|
11
11
|
* Notifies listeners that a workspace comment has moved.
|
|
12
|
-
*
|
|
13
|
-
* @alias Blockly.Events.CommentMove
|
|
14
12
|
*/
|
|
15
13
|
export declare class CommentMove extends CommentBase {
|
|
16
14
|
type: string;
|
|
@@ -11,8 +11,6 @@ import { UiBase } from './events_ui_base.js';
|
|
|
11
11
|
/**
|
|
12
12
|
* Notifies listeners that a marker (used for keyboard navigation) has
|
|
13
13
|
* moved.
|
|
14
|
-
*
|
|
15
|
-
* @alias Blockly.Events.MarkerMove
|
|
16
14
|
*/
|
|
17
15
|
export declare class MarkerMove extends UiBase {
|
|
18
16
|
/** The ID of the block the marker is now on, if any. */
|
|
@@ -9,8 +9,6 @@ import type { Workspace } from '../workspace.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* Class for a selected event.
|
|
11
11
|
* Notifies listeners that a new element has been selected.
|
|
12
|
-
*
|
|
13
|
-
* @alias Blockly.Events.Selected
|
|
14
12
|
*/
|
|
15
13
|
export declare class Selected extends UiBase {
|
|
16
14
|
/** The id of the last selected selectable element. */
|
|
@@ -8,8 +8,6 @@ import { UiBase } from './events_ui_base.js';
|
|
|
8
8
|
import type { Workspace } from '../workspace.js';
|
|
9
9
|
/**
|
|
10
10
|
* Notifies listeners that the workspace theme has changed.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.Events.ThemeChange
|
|
13
11
|
*/
|
|
14
12
|
export declare class ThemeChange extends UiBase {
|
|
15
13
|
/** The name of the new theme that has been set. */
|
|
@@ -8,8 +8,6 @@ import { UiBase } from './events_ui_base.js';
|
|
|
8
8
|
import type { Workspace } from '../workspace.js';
|
|
9
9
|
/**
|
|
10
10
|
* Notifies listeners that a toolbox item has been selected.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.Events.ToolboxItemSelect
|
|
13
11
|
*/
|
|
14
12
|
export declare class ToolboxItemSelect extends UiBase {
|
|
15
13
|
/** The previously selected toolbox item. */
|
|
@@ -8,8 +8,6 @@ import { UiBase } from './events_ui_base.js';
|
|
|
8
8
|
import type { Workspace } from '../workspace.js';
|
|
9
9
|
/**
|
|
10
10
|
* Notifies listeners when the trashcan is opening or closing.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.Events.TrashcanOpen
|
|
13
11
|
*/
|
|
14
12
|
export declare class TrashcanOpen extends UiBase {
|
|
15
13
|
/**
|
|
@@ -10,8 +10,6 @@ import { Abstract as AbstractEvent } from './events_abstract.js';
|
|
|
10
10
|
* editing to work (e.g. scrolling the workspace, zooming, opening toolbox
|
|
11
11
|
* categories).
|
|
12
12
|
* UI events do not undo or redo.
|
|
13
|
-
*
|
|
14
|
-
* @alias Blockly.Events.UiBase
|
|
15
13
|
*/
|
|
16
14
|
export declare class UiBase extends AbstractEvent {
|
|
17
15
|
isBlank: boolean;
|
|
@@ -8,8 +8,6 @@ import { Abstract as AbstractEvent, AbstractEventJson } from './events_abstract.
|
|
|
8
8
|
import type { Workspace } from '../workspace.js';
|
|
9
9
|
/**
|
|
10
10
|
* Abstract class for a variable event.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.Events.VarBase
|
|
13
11
|
*/
|
|
14
12
|
export declare class VarBase extends AbstractEvent {
|
|
15
13
|
isBlank: boolean;
|
|
@@ -8,8 +8,6 @@ import { VarBase, VarBaseJson } from './events_var_base.js';
|
|
|
8
8
|
import type { Workspace } from '../workspace.js';
|
|
9
9
|
/**
|
|
10
10
|
* Notifies listeners that a variable model has been created.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.Events.VarCreate
|
|
13
11
|
*/
|
|
14
12
|
export declare class VarCreate extends VarBase {
|
|
15
13
|
type: string;
|