blockly 9.2.1 → 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 +1615 -1509
- package/blockly_compressed.js +1249 -1136
- 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_dragger.d.ts +1 -6
- package/core/block_svg.d.ts +58 -8
- package/core/blockly.d.ts +27 -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 +0 -2
- package/core/bubble_dragger.d.ts +0 -2
- 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.d.ts +2 -22
- package/core/events/events_abstract.d.ts +7 -3
- package/core/events/events_block_base.d.ts +2 -3
- package/core/events/events_block_change.d.ts +9 -3
- package/core/events/events_block_create.d.ts +6 -4
- package/core/events/events_block_delete.d.ts +7 -4
- package/core/events/events_block_drag.d.ts +7 -3
- package/core/events/events_block_move.d.ts +20 -3
- package/core/events/events_bubble_open.d.ts +3 -2
- package/core/events/events_click.d.ts +6 -3
- package/core/events/events_comment_base.d.ts +1 -2
- package/core/events/events_comment_change.d.ts +3 -3
- package/core/events/events_comment_create.d.ts +2 -3
- package/core/events/events_comment_delete.d.ts +2 -3
- package/core/events/events_comment_move.d.ts +4 -4
- package/core/events/events_marker_move.d.ts +10 -3
- package/core/events/events_selected.d.ts +6 -2
- package/core/events/events_theme_change.d.ts +2 -3
- package/core/events/events_toolbox_item_select.d.ts +3 -3
- package/core/events/events_trashcan_open.d.ts +5 -3
- 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 +1 -2
- package/core/events/events_var_create.d.ts +3 -3
- package/core/events/events_var_delete.d.ts +4 -2
- package/core/events/events_var_rename.d.ts +4 -2
- package/core/events/events_viewport.d.ts +13 -2
- package/core/events/utils.d.ts +0 -89
- package/core/events/workspace_events.d.ts +2 -6
- package/core/extensions.d.ts +0 -8
- package/core/field.d.ts +55 -21
- package/core/field_angle.d.ts +61 -51
- package/core/field_checkbox.d.ts +34 -15
- package/core/field_colour.d.ts +56 -46
- package/core/field_dropdown.d.ts +35 -19
- package/core/field_image.d.ts +10 -14
- package/core/field_input.d.ts +39 -25
- package/core/field_label.d.ts +7 -10
- package/core/field_label_serializable.d.ts +4 -6
- package/core/field_multilineinput.d.ts +36 -14
- package/core/field_number.d.ts +27 -19
- package/core/field_registry.d.ts +0 -3
- package/core/field_textinput.d.ts +36 -8
- package/core/field_variable.d.ts +30 -18
- 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 +5 -18
- 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 +0 -2
- package/core/interfaces/i_bounded_element.d.ts +0 -2
- package/core/interfaces/i_bubble.d.ts +0 -2
- 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 +8 -8
- package/core/interfaces/i_movable.d.ts +0 -2
- package/core/interfaces/i_positionable.d.ts +0 -2
- package/core/interfaces/i_procedure_block.d.ts +3 -0
- 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 +8 -8
- package/core/mutator.d.ts +0 -2
- package/core/names.d.ts +0 -3
- package/core/{procedures/observable_procedure_map.d.ts → observable_procedure_map.d.ts} +4 -5
- package/core/options.d.ts +0 -2
- package/core/positionable_helpers.d.ts +0 -7
- package/core/procedures.d.ts +7 -28
- 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/procedures.d.ts +0 -7
- 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 +1 -3
- package/core/workspace_dragger.d.ts +0 -2
- package/core/workspace_svg.d.ts +4 -7
- 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 +9 -9
- 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/events/events_procedure_base.d.ts +0 -26
- package/core/events/events_procedure_change_return.d.ts +0 -40
- package/core/events/events_procedure_create.d.ts +0 -34
- package/core/events/events_procedure_delete.d.ts +0 -32
- package/core/events/events_procedure_enable.d.ts +0 -34
- package/core/events/events_procedure_parameter_base.d.ts +0 -26
- package/core/events/events_procedure_parameter_create.d.ts +0 -42
- package/core/events/events_procedure_parameter_delete.d.ts +0 -41
- package/core/events/events_procedure_parameter_rename.d.ts +0 -36
- package/core/events/events_procedure_rename.d.ts +0 -35
- package/core/procedures/observable_parameter_model.d.ts +0 -62
- package/core/procedures/observable_procedure_model.d.ts +0 -75
- package/core/procedures/update_procedures.d.ts +0 -13
- package/core/utils/sentinel.d.ts +0 -13
|
@@ -9,8 +9,6 @@ import { Connection } from './connection.js';
|
|
|
9
9
|
import { Coordinate } from './utils/coordinate.js';
|
|
10
10
|
/**
|
|
11
11
|
* Class for a connection between blocks that may be rendered on screen.
|
|
12
|
-
*
|
|
13
|
-
* @alias Blockly.RenderedConnection
|
|
14
12
|
*/
|
|
15
13
|
export declare class RenderedConnection extends Connection {
|
|
16
14
|
sourceBlock_: BlockSvg;
|
|
@@ -66,23 +64,29 @@ export declare class RenderedConnection extends Connection {
|
|
|
66
64
|
*
|
|
67
65
|
* @param x New absolute x coordinate, in workspace coordinates.
|
|
68
66
|
* @param y New absolute y coordinate, in workspace coordinates.
|
|
67
|
+
* @return True if the position of the connection in the connection db
|
|
68
|
+
* was updated.
|
|
69
69
|
*/
|
|
70
|
-
moveTo(x: number, y: number):
|
|
70
|
+
moveTo(x: number, y: number): boolean;
|
|
71
71
|
/**
|
|
72
72
|
* Change the connection's coordinates.
|
|
73
73
|
*
|
|
74
74
|
* @param dx Change to x coordinate, in workspace units.
|
|
75
75
|
* @param dy Change to y coordinate, in workspace units.
|
|
76
|
+
* @return True if the position of the connection in the connection db
|
|
77
|
+
* was updated.
|
|
76
78
|
*/
|
|
77
|
-
moveBy(dx: number, dy: number):
|
|
79
|
+
moveBy(dx: number, dy: number): boolean;
|
|
78
80
|
/**
|
|
79
81
|
* Move this connection to the location given by its offset within the block
|
|
80
82
|
* and the location of the block's top left corner.
|
|
81
83
|
*
|
|
82
84
|
* @param blockTL The location of the top left corner of the block, in
|
|
83
85
|
* workspace coordinates.
|
|
86
|
+
* @return True if the position of the connection in the connection db
|
|
87
|
+
* was updated.
|
|
84
88
|
*/
|
|
85
|
-
moveToOffset(blockTL: Coordinate):
|
|
89
|
+
moveToOffset(blockTL: Coordinate): boolean;
|
|
86
90
|
/**
|
|
87
91
|
* Set the offset of this connection relative to the top left of its block.
|
|
88
92
|
*
|
|
@@ -103,6 +107,13 @@ export declare class RenderedConnection extends Connection {
|
|
|
103
107
|
* @internal
|
|
104
108
|
*/
|
|
105
109
|
tighten(): void;
|
|
110
|
+
/**
|
|
111
|
+
* Moves the blocks on either side of this connection right next to
|
|
112
|
+
* each other, based on their local offsets, not global positions.
|
|
113
|
+
*
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
tightenEfficiently(): void;
|
|
106
117
|
/**
|
|
107
118
|
* Find the closest compatible connection to this connection.
|
|
108
119
|
* All parameters are in workspace units.
|
|
@@ -147,7 +158,7 @@ export declare class RenderedConnection extends Connection {
|
|
|
147
158
|
*/
|
|
148
159
|
startTrackingAll(): Block[];
|
|
149
160
|
/**
|
|
150
|
-
*
|
|
161
|
+
* Behaviour after a connection attempt fails.
|
|
151
162
|
* Bumps this connection away from the other connection. Called when an
|
|
152
163
|
* attempted connection fails.
|
|
153
164
|
*
|
|
@@ -159,10 +170,12 @@ export declare class RenderedConnection extends Connection {
|
|
|
159
170
|
/**
|
|
160
171
|
* Disconnect two blocks that are connected by this connection.
|
|
161
172
|
*
|
|
162
|
-
* @param
|
|
163
|
-
*
|
|
173
|
+
* @param setParent Whether to set the parent of the disconnected block or
|
|
174
|
+
* not, defaults to true.
|
|
175
|
+
* If you do not set the parent, ensure that a subsequent action does,
|
|
176
|
+
* otherwise the view and model will be out of sync.
|
|
164
177
|
*/
|
|
165
|
-
|
|
178
|
+
disconnectInternal(setParent?: boolean): void;
|
|
166
179
|
/**
|
|
167
180
|
* Respawn the shadow block if there was one connected to the this connection.
|
|
168
181
|
* Render/rerender blocks as needed.
|
|
@@ -46,13 +46,11 @@ export declare function register(name: string, rendererClass: Function): void;
|
|
|
46
46
|
* Unregisters the renderer registered with the given name.
|
|
47
47
|
*
|
|
48
48
|
* @param name The name of the renderer.
|
|
49
|
-
* @alias Blockly.blockRendering.unregister
|
|
50
49
|
*/
|
|
51
50
|
export declare function unregister(name: string): void;
|
|
52
51
|
/**
|
|
53
52
|
* Turn off the blocks debugger.
|
|
54
53
|
*
|
|
55
|
-
* @alias Blockly.blockRendering.stopDebugger
|
|
56
54
|
* @deprecated Use the debug renderer in **\@blockly/dev-tools** (See {@link
|
|
57
55
|
* https://www.npmjs.com/package/@blockly/dev-tools}.)
|
|
58
56
|
* @internal
|
|
@@ -66,7 +64,6 @@ export declare function stopDebugger(): void;
|
|
|
66
64
|
* @param opt_rendererOverrides Rendering constant overrides.
|
|
67
65
|
* @returns The new instance of a renderer.
|
|
68
66
|
* Already initialized.
|
|
69
|
-
* @alias Blockly.blockRendering.init
|
|
70
67
|
* @internal
|
|
71
68
|
*/
|
|
72
69
|
export declare function init(name: string, theme: Theme, opt_rendererOverrides?: {
|
|
@@ -80,8 +80,6 @@ export type Shape = BaseShape | DynamicShape;
|
|
|
80
80
|
export declare function isDynamicShape(shape: Shape): shape is DynamicShape;
|
|
81
81
|
/**
|
|
82
82
|
* An object that provides constants for rendering blocks.
|
|
83
|
-
*
|
|
84
|
-
* @alias Blockly.blockRendering.ConstantProvider
|
|
85
83
|
*/
|
|
86
84
|
export declare class ConstantProvider {
|
|
87
85
|
/** The size of an empty spacer. */
|
|
@@ -180,8 +178,6 @@ export declare class ConstantProvider {
|
|
|
180
178
|
FIELD_BORDER_RECT_Y_PADDING: number;
|
|
181
179
|
/**
|
|
182
180
|
* The backing colour of a field's border rect.
|
|
183
|
-
*
|
|
184
|
-
* @internal
|
|
185
181
|
*/
|
|
186
182
|
FIELD_BORDER_RECT_COLOUR: string;
|
|
187
183
|
FIELD_TEXT_BASELINE_CENTER: boolean;
|
|
@@ -216,7 +212,6 @@ export declare class ConstantProvider {
|
|
|
216
212
|
FIELD_COLOUR_DEFAULT_WIDTH: number;
|
|
217
213
|
FIELD_COLOUR_DEFAULT_HEIGHT: number;
|
|
218
214
|
FIELD_CHECKBOX_X_OFFSET: number;
|
|
219
|
-
/** @internal */
|
|
220
215
|
randomIdentifier: string;
|
|
221
216
|
/**
|
|
222
217
|
* The defs tag that contains all filters and patterns for this Blockly
|
|
@@ -225,16 +220,12 @@ export declare class ConstantProvider {
|
|
|
225
220
|
private defs_;
|
|
226
221
|
/**
|
|
227
222
|
* The ID of the emboss filter, or the empty string if no filter is set.
|
|
228
|
-
*
|
|
229
|
-
* @internal
|
|
230
223
|
*/
|
|
231
224
|
embossFilterId: string;
|
|
232
225
|
/** The <filter> element to use for highlighting, or null if not set. */
|
|
233
226
|
private embossFilter_;
|
|
234
227
|
/**
|
|
235
228
|
* The ID of the disabled pattern, or the empty string if no pattern is set.
|
|
236
|
-
*
|
|
237
|
-
* @internal
|
|
238
229
|
*/
|
|
239
230
|
disabledPatternId: string;
|
|
240
231
|
/**
|
|
@@ -253,63 +244,43 @@ export declare class ConstantProvider {
|
|
|
253
244
|
private cssNode_;
|
|
254
245
|
/**
|
|
255
246
|
* Cursor colour.
|
|
256
|
-
*
|
|
257
|
-
* @internal
|
|
258
247
|
*/
|
|
259
248
|
CURSOR_COLOUR: string;
|
|
260
249
|
/**
|
|
261
250
|
* Immovable marker colour.
|
|
262
|
-
*
|
|
263
|
-
* @internal
|
|
264
251
|
*/
|
|
265
252
|
MARKER_COLOUR: string;
|
|
266
253
|
/**
|
|
267
254
|
* Width of the horizontal cursor.
|
|
268
|
-
*
|
|
269
|
-
* @internal
|
|
270
255
|
*/
|
|
271
256
|
CURSOR_WS_WIDTH: number;
|
|
272
257
|
/**
|
|
273
258
|
* Height of the horizontal cursor.
|
|
274
|
-
*
|
|
275
|
-
* @internal
|
|
276
259
|
*/
|
|
277
260
|
WS_CURSOR_HEIGHT: number;
|
|
278
261
|
/**
|
|
279
262
|
* Padding around a stack.
|
|
280
|
-
*
|
|
281
|
-
* @internal
|
|
282
263
|
*/
|
|
283
264
|
CURSOR_STACK_PADDING: number;
|
|
284
265
|
/**
|
|
285
266
|
* Padding around a block.
|
|
286
|
-
*
|
|
287
|
-
* @internal
|
|
288
267
|
*/
|
|
289
268
|
CURSOR_BLOCK_PADDING: number;
|
|
290
269
|
/**
|
|
291
270
|
* Stroke of the cursor.
|
|
292
|
-
*
|
|
293
|
-
* @internal
|
|
294
271
|
*/
|
|
295
272
|
CURSOR_STROKE_WIDTH: number;
|
|
296
273
|
/**
|
|
297
274
|
* Whether text input and colour fields fill up the entire source block.
|
|
298
|
-
*
|
|
299
|
-
* @internal
|
|
300
275
|
*/
|
|
301
276
|
FULL_BLOCK_FIELDS: boolean;
|
|
302
277
|
/**
|
|
303
278
|
* The main colour of insertion markers, in hex. The block is rendered a
|
|
304
279
|
* transparent grey by changing the fill opacity in CSS.
|
|
305
|
-
*
|
|
306
|
-
* @internal
|
|
307
280
|
*/
|
|
308
281
|
INSERTION_MARKER_COLOUR: string;
|
|
309
282
|
/**
|
|
310
283
|
* The insertion marker opacity.
|
|
311
|
-
*
|
|
312
|
-
* @internal
|
|
313
284
|
*/
|
|
314
285
|
INSERTION_MARKER_OPACITY: number;
|
|
315
286
|
SHAPES: {
|
|
@@ -321,23 +292,18 @@ export declare class ConstantProvider {
|
|
|
321
292
|
PUZZLE_TAB: PuzzleTab;
|
|
322
293
|
INSIDE_CORNERS: InsideCorners;
|
|
323
294
|
OUTSIDE_CORNERS: OutsideCorners;
|
|
324
|
-
/** @internal */
|
|
325
295
|
blockStyles: {
|
|
326
296
|
[key: string]: BlockStyle;
|
|
327
297
|
};
|
|
328
|
-
/** @internal */
|
|
329
298
|
constructor();
|
|
330
299
|
/**
|
|
331
300
|
* Initialize shape objects based on the constants set in the constructor.
|
|
332
|
-
*
|
|
333
|
-
* @internal
|
|
334
301
|
*/
|
|
335
302
|
init(): void;
|
|
336
303
|
/**
|
|
337
304
|
* Refresh constants properties that depend on the theme.
|
|
338
305
|
*
|
|
339
306
|
* @param theme The current workspace theme.
|
|
340
|
-
* @internal
|
|
341
307
|
*/
|
|
342
308
|
setTheme(theme: Theme): void;
|
|
343
309
|
/**
|
|
@@ -365,7 +331,6 @@ export declare class ConstantProvider {
|
|
|
365
331
|
* @param colour #RRGGBB colour string.
|
|
366
332
|
* @returns An object containing the style and an autogenerated name for that
|
|
367
333
|
* style.
|
|
368
|
-
* @internal
|
|
369
334
|
*/
|
|
370
335
|
getBlockStyleForColour(colour: string): {
|
|
371
336
|
style: BlockStyle;
|
|
@@ -411,51 +376,42 @@ export declare class ConstantProvider {
|
|
|
411
376
|
/**
|
|
412
377
|
* Dispose of this constants provider.
|
|
413
378
|
* Delete all DOM elements that this provider created.
|
|
414
|
-
*
|
|
415
|
-
* @internal
|
|
416
379
|
*/
|
|
417
380
|
dispose(): void;
|
|
418
381
|
/**
|
|
419
382
|
* @returns An object containing sizing and path information about collapsed
|
|
420
383
|
* block indicators.
|
|
421
|
-
* @internal
|
|
422
384
|
*/
|
|
423
|
-
makeJaggedTeeth(): JaggedTeeth;
|
|
385
|
+
protected makeJaggedTeeth(): JaggedTeeth;
|
|
424
386
|
/**
|
|
425
387
|
* @returns An object containing sizing and path information about start hats.
|
|
426
|
-
* @internal
|
|
427
388
|
*/
|
|
428
|
-
makeStartHat(): StartHat;
|
|
389
|
+
protected makeStartHat(): StartHat;
|
|
429
390
|
/**
|
|
430
391
|
* @returns An object containing sizing and path information about puzzle
|
|
431
392
|
* tabs.
|
|
432
|
-
* @internal
|
|
433
393
|
*/
|
|
434
|
-
makePuzzleTab(): PuzzleTab;
|
|
394
|
+
protected makePuzzleTab(): PuzzleTab;
|
|
435
395
|
/**
|
|
436
396
|
* @returns An object containing sizing and path information about notches.
|
|
437
|
-
* @internal
|
|
438
397
|
*/
|
|
439
|
-
makeNotch(): Notch;
|
|
398
|
+
protected makeNotch(): Notch;
|
|
440
399
|
/**
|
|
441
400
|
* @returns An object containing sizing and path information about inside
|
|
442
401
|
* corners.
|
|
443
|
-
* @internal
|
|
444
402
|
*/
|
|
445
|
-
makeInsideCorners(): InsideCorners;
|
|
403
|
+
protected makeInsideCorners(): InsideCorners;
|
|
446
404
|
/**
|
|
447
405
|
* @returns An object containing sizing and path information about outside
|
|
448
406
|
* corners.
|
|
449
|
-
* @internal
|
|
450
407
|
*/
|
|
451
|
-
makeOutsideCorners(): OutsideCorners;
|
|
408
|
+
protected makeOutsideCorners(): OutsideCorners;
|
|
452
409
|
/**
|
|
453
410
|
* Get an object with connection shape and sizing information based on the
|
|
454
411
|
* type of the connection.
|
|
455
412
|
*
|
|
456
413
|
* @param connection The connection to find a shape object for
|
|
457
414
|
* @returns The shape object for the connection.
|
|
458
|
-
* @internal
|
|
459
415
|
*/
|
|
460
416
|
shapeFor(connection: RenderedConnection): Shape;
|
|
461
417
|
/**
|
|
@@ -466,7 +422,6 @@ export declare class ConstantProvider {
|
|
|
466
422
|
* @param selector The CSS selector to use.
|
|
467
423
|
* @suppress {strictModuleDepCheck} Debug renderer only included in
|
|
468
424
|
* playground.
|
|
469
|
-
* @internal
|
|
470
425
|
*/
|
|
471
426
|
createDom(svg: SVGElement, tagName: string, selector: string): void;
|
|
472
427
|
/**
|
|
@@ -7,14 +7,12 @@
|
|
|
7
7
|
* Returns whether the debugger is turned on.
|
|
8
8
|
*
|
|
9
9
|
* @returns Whether the debugger is turned on.
|
|
10
|
-
* @alias Blockly.blockRendering.debug.isDebuggerEnabled
|
|
11
10
|
* @internal
|
|
12
11
|
*/
|
|
13
12
|
export declare function isDebuggerEnabled(): boolean;
|
|
14
13
|
/**
|
|
15
14
|
* Turn on the blocks debugger.
|
|
16
15
|
*
|
|
17
|
-
* @alias Blockly.blockRendering.debug.startDebugger
|
|
18
16
|
* @deprecated March 2022. Use the rendering debugger in @blockly/dev-tools.
|
|
19
17
|
* See https://www.npmjs.com/package/@blockly/dev-tools for more information.
|
|
20
18
|
* @internal
|
|
@@ -23,7 +21,6 @@ export declare function startDebugger(): void;
|
|
|
23
21
|
/**
|
|
24
22
|
* Turn off the blocks debugger.
|
|
25
23
|
*
|
|
26
|
-
* @alias Blockly.blockRendering.debug.stopDebugger
|
|
27
24
|
* @deprecated March 2022. Use the rendering debugger in @blockly/dev-tools.
|
|
28
25
|
* See https://www.npmjs.com/package/@blockly/dev-tools for more information.
|
|
29
26
|
* @internal
|
|
@@ -12,8 +12,6 @@ import type { ConstantProvider } from './constants.js';
|
|
|
12
12
|
import type { RenderInfo } from './info.js';
|
|
13
13
|
/**
|
|
14
14
|
* An object that renders rectangles and dots for debugging rendering code.
|
|
15
|
-
*
|
|
16
|
-
* @alias Blockly.blockRendering.Debug
|
|
17
15
|
*/
|
|
18
16
|
export declare class Debug {
|
|
19
17
|
private readonly constants;
|
|
@@ -41,41 +39,35 @@ export declare class Debug {
|
|
|
41
39
|
private randomColour_;
|
|
42
40
|
/**
|
|
43
41
|
* @param constants The renderer's constants.
|
|
44
|
-
* @internal
|
|
45
42
|
*/
|
|
46
43
|
constructor(constants: ConstantProvider);
|
|
47
44
|
/**
|
|
48
45
|
* Remove all elements the this object created on the last pass.
|
|
49
|
-
*
|
|
50
|
-
* @internal
|
|
51
46
|
*/
|
|
52
|
-
clearElems(): void;
|
|
47
|
+
protected clearElems(): void;
|
|
53
48
|
/**
|
|
54
49
|
* Draw a debug rectangle for a spacer (empty) row.
|
|
55
50
|
*
|
|
56
51
|
* @param row The row to render.
|
|
57
52
|
* @param cursorY The y position of the top of the row.
|
|
58
53
|
* @param isRtl Whether the block is rendered RTL.
|
|
59
|
-
* @internal
|
|
60
54
|
*/
|
|
61
|
-
drawSpacerRow(row: Row, cursorY: number, isRtl: boolean): void;
|
|
55
|
+
protected drawSpacerRow(row: Row, cursorY: number, isRtl: boolean): void;
|
|
62
56
|
/**
|
|
63
57
|
* Draw a debug rectangle for a horizontal spacer.
|
|
64
58
|
*
|
|
65
59
|
* @param elem The spacer to render.
|
|
66
60
|
* @param rowHeight The height of the container row.
|
|
67
61
|
* @param isRtl Whether the block is rendered RTL.
|
|
68
|
-
* @internal
|
|
69
62
|
*/
|
|
70
|
-
drawSpacerElem(elem: InRowSpacer, rowHeight: number, isRtl: boolean): void;
|
|
63
|
+
protected drawSpacerElem(elem: InRowSpacer, rowHeight: number, isRtl: boolean): void;
|
|
71
64
|
/**
|
|
72
65
|
* Draw a debug rectangle for an in-row element.
|
|
73
66
|
*
|
|
74
67
|
* @param elem The element to render.
|
|
75
68
|
* @param isRtl Whether the block is rendered RTL.
|
|
76
|
-
* @internal
|
|
77
69
|
*/
|
|
78
|
-
drawRenderedElem(elem: Measurable, isRtl: boolean): void;
|
|
70
|
+
protected drawRenderedElem(elem: Measurable, isRtl: boolean): void;
|
|
79
71
|
/**
|
|
80
72
|
* Draw a circle at the location of the given connection. Inputs and outputs
|
|
81
73
|
* share the same colours, as do previous and next. When positioned correctly
|
|
@@ -84,48 +76,42 @@ export declare class Debug {
|
|
|
84
76
|
* @param conn The connection to circle.
|
|
85
77
|
* @suppress {visibility} Suppress visibility of conn.offsetInBlock_ since
|
|
86
78
|
* this is a debug module.
|
|
87
|
-
* @internal
|
|
88
79
|
*/
|
|
89
|
-
drawConnection(conn: RenderedConnection): void;
|
|
80
|
+
protected drawConnection(conn: RenderedConnection): void;
|
|
90
81
|
/**
|
|
91
82
|
* Draw a debug rectangle for a non-empty row.
|
|
92
83
|
*
|
|
93
84
|
* @param row The non-empty row to render.
|
|
94
85
|
* @param cursorY The y position of the top of the row.
|
|
95
86
|
* @param isRtl Whether the block is rendered RTL.
|
|
96
|
-
* @internal
|
|
97
87
|
*/
|
|
98
|
-
drawRenderedRow(row: Row, cursorY: number, isRtl: boolean): void;
|
|
88
|
+
protected drawRenderedRow(row: Row, cursorY: number, isRtl: boolean): void;
|
|
99
89
|
/**
|
|
100
90
|
* Draw debug rectangles for a non-empty row and all of its subcomponents.
|
|
101
91
|
*
|
|
102
92
|
* @param row The non-empty row to render.
|
|
103
93
|
* @param cursorY The y position of the top of the row.
|
|
104
94
|
* @param isRtl Whether the block is rendered RTL.
|
|
105
|
-
* @internal
|
|
106
95
|
*/
|
|
107
|
-
drawRowWithElements(row: Row, cursorY: number, isRtl: boolean): void;
|
|
96
|
+
protected drawRowWithElements(row: Row, cursorY: number, isRtl: boolean): void;
|
|
108
97
|
/**
|
|
109
98
|
* Draw a debug rectangle around the entire block.
|
|
110
99
|
*
|
|
111
100
|
* @param info Rendering information about the block to debug.
|
|
112
|
-
* @internal
|
|
113
101
|
*/
|
|
114
|
-
drawBoundingBox(info: RenderInfo): void;
|
|
102
|
+
protected drawBoundingBox(info: RenderInfo): void;
|
|
115
103
|
/**
|
|
116
104
|
* Do all of the work to draw debug information for the whole block.
|
|
117
105
|
*
|
|
118
106
|
* @param block The block to draw debug information for.
|
|
119
107
|
* @param info Rendering information about the block to debug.
|
|
120
|
-
* @internal
|
|
121
108
|
*/
|
|
122
109
|
drawDebug(block: BlockSvg, info: RenderInfo): void;
|
|
123
110
|
/**
|
|
124
111
|
* Show a debug filter to highlight that a block has been rendered.
|
|
125
112
|
*
|
|
126
113
|
* @param svgPath The block's SVG path.
|
|
127
|
-
* @internal
|
|
128
114
|
*/
|
|
129
|
-
drawRender(svgPath: SVGElement): void;
|
|
115
|
+
protected drawRender(svgPath: SVGElement): void;
|
|
130
116
|
}
|
|
131
117
|
//# sourceMappingURL=debugger.d.ts.map
|
|
@@ -13,8 +13,6 @@ import type { ConstantProvider } from './constants.js';
|
|
|
13
13
|
import type { RenderInfo } from './info.js';
|
|
14
14
|
/**
|
|
15
15
|
* An object that draws a block based on the given rendering information.
|
|
16
|
-
*
|
|
17
|
-
* @alias Blockly.blockRendering.Drawer
|
|
18
16
|
*/
|
|
19
17
|
export declare class Drawer {
|
|
20
18
|
block_: BlockSvg;
|
|
@@ -27,7 +25,6 @@ export declare class Drawer {
|
|
|
27
25
|
* @param block The block to render.
|
|
28
26
|
* @param info An object containing all information needed to render this
|
|
29
27
|
* block.
|
|
30
|
-
* @internal
|
|
31
28
|
*/
|
|
32
29
|
constructor(block: BlockSvg, info: RenderInfo);
|
|
33
30
|
/**
|
|
@@ -38,8 +35,6 @@ export declare class Drawer {
|
|
|
38
35
|
* joined with spaces and set directly on the block. This guarantees that
|
|
39
36
|
* the steps are separated by spaces for improved readability, but isn't
|
|
40
37
|
* required.
|
|
41
|
-
*
|
|
42
|
-
* @internal
|
|
43
38
|
*/
|
|
44
39
|
draw(): void;
|
|
45
40
|
/**
|
|
@@ -12,13 +12,10 @@ import { RenderedConnection } from '../../rendered_connection.js';
|
|
|
12
12
|
*
|
|
13
13
|
* @param _root The root SVG element.
|
|
14
14
|
* @param _constants The renderer's constants.
|
|
15
|
-
* @alias Blockly.blockRendering.IPathObject
|
|
16
15
|
*/
|
|
17
16
|
export interface IPathObject {
|
|
18
17
|
/**
|
|
19
18
|
* The primary path of the block.
|
|
20
|
-
*
|
|
21
|
-
* @internal
|
|
22
19
|
*/
|
|
23
20
|
svgPath: SVGElement;
|
|
24
21
|
/** The renderer's constant provider. */
|
|
@@ -39,7 +36,6 @@ export interface IPathObject {
|
|
|
39
36
|
* Set the path generated by the renderer onto the respective SVG element.
|
|
40
37
|
*
|
|
41
38
|
* @param pathString The path.
|
|
42
|
-
* @internal
|
|
43
39
|
*/
|
|
44
40
|
setPath(pathString: string): void;
|
|
45
41
|
/**
|
|
@@ -47,20 +43,16 @@ export interface IPathObject {
|
|
|
47
43
|
* the paths belong to a shadow block.
|
|
48
44
|
*
|
|
49
45
|
* @param block The source block.
|
|
50
|
-
* @internal
|
|
51
46
|
*/
|
|
52
47
|
applyColour(block: BlockSvg): void;
|
|
53
48
|
/**
|
|
54
49
|
* Update the style.
|
|
55
50
|
*
|
|
56
51
|
* @param blockStyle The block style to use.
|
|
57
|
-
* @internal
|
|
58
52
|
*/
|
|
59
53
|
setStyle(blockStyle: BlockStyle): void;
|
|
60
54
|
/**
|
|
61
55
|
* Flip the SVG paths in RTL.
|
|
62
|
-
*
|
|
63
|
-
* @internal
|
|
64
56
|
*/
|
|
65
57
|
flipRTL(): void;
|
|
66
58
|
/**
|
|
@@ -68,7 +60,6 @@ export interface IPathObject {
|
|
|
68
60
|
*
|
|
69
61
|
* @param cursorSvg The SVG root of the cursor to be added to the block SVG
|
|
70
62
|
* group.
|
|
71
|
-
* @internal
|
|
72
63
|
*/
|
|
73
64
|
setCursorSvg(cursorSvg: SVGElement): void;
|
|
74
65
|
/**
|
|
@@ -76,7 +67,6 @@ export interface IPathObject {
|
|
|
76
67
|
*
|
|
77
68
|
* @param markerSvg The SVG root of the marker to be added to the block SVG
|
|
78
69
|
* group.
|
|
79
|
-
* @internal
|
|
80
70
|
*/
|
|
81
71
|
setMarkerSvg(markerSvg: SVGElement): void;
|
|
82
72
|
/**
|
|
@@ -84,14 +74,12 @@ export interface IPathObject {
|
|
|
84
74
|
* often used to visually mark blocks currently being executed.
|
|
85
75
|
*
|
|
86
76
|
* @param highlighted True if highlighted.
|
|
87
|
-
* @internal
|
|
88
77
|
*/
|
|
89
78
|
updateHighlighted(highlighted: boolean): void;
|
|
90
79
|
/**
|
|
91
80
|
* Add or remove styling showing that a block is selected.
|
|
92
81
|
*
|
|
93
82
|
* @param enable True if selection is enabled, false otherwise.
|
|
94
|
-
* @internal
|
|
95
83
|
*/
|
|
96
84
|
updateSelected(enabled: boolean): void;
|
|
97
85
|
/**
|
|
@@ -99,21 +87,18 @@ export interface IPathObject {
|
|
|
99
87
|
*
|
|
100
88
|
* @param enable True if the block is being dragged over a delete area, false
|
|
101
89
|
* otherwise.
|
|
102
|
-
* @internal
|
|
103
90
|
*/
|
|
104
91
|
updateDraggingDelete(enabled: boolean): void;
|
|
105
92
|
/**
|
|
106
93
|
* Add or remove styling showing that a block is an insertion marker.
|
|
107
94
|
*
|
|
108
95
|
* @param enable True if the block is an insertion marker, false otherwise.
|
|
109
|
-
* @internal
|
|
110
96
|
*/
|
|
111
97
|
updateInsertionMarker(enabled: boolean): void;
|
|
112
98
|
/**
|
|
113
99
|
* Add or remove styling showing that a block is movable.
|
|
114
100
|
*
|
|
115
101
|
* @param enable True if the block is movable, false otherwise.
|
|
116
|
-
* @internal
|
|
117
102
|
*/
|
|
118
103
|
updateMovable(enabled: boolean): void;
|
|
119
104
|
/**
|
|
@@ -122,7 +107,6 @@ export interface IPathObject {
|
|
|
122
107
|
* Otherwise it will bump.
|
|
123
108
|
*
|
|
124
109
|
* @param enable True if styling should be added.
|
|
125
|
-
* @internal
|
|
126
110
|
*/
|
|
127
111
|
updateReplacementFade(enabled: boolean): void;
|
|
128
112
|
/**
|
|
@@ -131,7 +115,6 @@ export interface IPathObject {
|
|
|
131
115
|
*
|
|
132
116
|
* @param conn The connection on the input to highlight.
|
|
133
117
|
* @param enable True if styling should be added.
|
|
134
|
-
* @internal
|
|
135
118
|
*/
|
|
136
119
|
updateShapeForInputHighlight(conn: RenderedConnection, enable: boolean): void;
|
|
137
120
|
}
|
|
@@ -21,8 +21,6 @@ import type { Renderer } from './renderer.js';
|
|
|
21
21
|
* This measure pass does not propagate changes to the block (although fields
|
|
22
22
|
* may choose to rerender when getSize() is called). However, calling it
|
|
23
23
|
* repeatedly may be expensive.
|
|
24
|
-
*
|
|
25
|
-
* @alias Blockly.blockRendering.RenderInfo
|
|
26
24
|
*/
|
|
27
25
|
export declare class RenderInfo {
|
|
28
26
|
block_: BlockSvg;
|
|
@@ -57,14 +55,12 @@ export declare class RenderInfo {
|
|
|
57
55
|
/**
|
|
58
56
|
* @param renderer The renderer in use.
|
|
59
57
|
* @param block The block to measure.
|
|
60
|
-
* @internal
|
|
61
58
|
*/
|
|
62
59
|
constructor(renderer: Renderer, block: BlockSvg);
|
|
63
60
|
/**
|
|
64
61
|
* Get the block renderer in use.
|
|
65
62
|
*
|
|
66
63
|
* @returns The block renderer in use.
|
|
67
|
-
* @internal
|
|
68
64
|
*/
|
|
69
65
|
getRenderer(): Renderer;
|
|
70
66
|
/**
|
|
@@ -74,8 +70,6 @@ export declare class RenderInfo {
|
|
|
74
70
|
* This measure pass does not propagate changes to the block (although fields
|
|
75
71
|
* may choose to rerender when getSize() is called). However, calling it
|
|
76
72
|
* repeatedly may be expensive.
|
|
77
|
-
*
|
|
78
|
-
* @internal
|
|
79
73
|
*/
|
|
80
74
|
measure(): void;
|
|
81
75
|
/**
|
|
@@ -85,16 +79,12 @@ export declare class RenderInfo {
|
|
|
85
79
|
protected createRows_(): void;
|
|
86
80
|
/**
|
|
87
81
|
* Create all non-spacer elements that belong on the top row.
|
|
88
|
-
*
|
|
89
|
-
* @internal
|
|
90
82
|
*/
|
|
91
|
-
populateTopRow_(): void;
|
|
83
|
+
protected populateTopRow_(): void;
|
|
92
84
|
/**
|
|
93
85
|
* Create all non-spacer elements that belong on the bottom row.
|
|
94
|
-
*
|
|
95
|
-
* @internal
|
|
96
86
|
*/
|
|
97
|
-
populateBottomRow_(): void;
|
|
87
|
+
protected populateBottomRow_(): void;
|
|
98
88
|
/**
|
|
99
89
|
* Add an input element to the active row, if needed, and record the type of
|
|
100
90
|
* the input on the row.
|
|
@@ -11,9 +11,8 @@ import type { RenderedConnection } from '../../rendered_connection.js';
|
|
|
11
11
|
import type { WorkspaceSvg } from '../../workspace_svg.js';
|
|
12
12
|
import type { ConstantProvider, Notch, PuzzleTab } from './constants.js';
|
|
13
13
|
/**
|
|
14
|
-
* Class for a marker
|
|
15
|
-
*
|
|
16
|
-
* @alias Blockly.blockRendering.MarkerSvg
|
|
14
|
+
* Class for a marker, containing methods for graphically rendering a marker as
|
|
15
|
+
* SVG.
|
|
17
16
|
*/
|
|
18
17
|
export declare class MarkerSvg {
|
|
19
18
|
private readonly workspace;
|
|
@@ -64,7 +63,6 @@ export declare class MarkerSvg {
|
|
|
64
63
|
* Create the DOM element for the marker.
|
|
65
64
|
*
|
|
66
65
|
* @returns The marker controls SVG group.
|
|
67
|
-
* @internal
|
|
68
66
|
*/
|
|
69
67
|
createDom(): SVGElement;
|
|
70
68
|
/**
|