blockly 9.3.0-beta.0 → 9.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
@@ -7,8 +7,6 @@ import type { Measurable } from './base.js';
|
|
|
7
7
|
import type { Row } from './row.js';
|
|
8
8
|
/**
|
|
9
9
|
* Types of rendering elements.
|
|
10
|
-
*
|
|
11
|
-
* @alias Blockly.blockRendering.Types
|
|
12
10
|
*/
|
|
13
11
|
declare class TypesContainer {
|
|
14
12
|
[index: string]: number | Function;
|
|
@@ -39,14 +37,10 @@ declare class TypesContainer {
|
|
|
39
37
|
INPUT_ROW: number;
|
|
40
38
|
/**
|
|
41
39
|
* A Left Corner Union Type.
|
|
42
|
-
*
|
|
43
|
-
* @internal
|
|
44
40
|
*/
|
|
45
41
|
LEFT_CORNER: number;
|
|
46
42
|
/**
|
|
47
43
|
* A Right Corner Union Type.
|
|
48
|
-
*
|
|
49
|
-
* @internal
|
|
50
44
|
*/
|
|
51
45
|
RIGHT_CORNER: number;
|
|
52
46
|
/**
|
|
@@ -61,7 +55,6 @@ declare class TypesContainer {
|
|
|
61
55
|
*
|
|
62
56
|
* @param type The name of the type.
|
|
63
57
|
* @returns The enum flag value associated with that type.
|
|
64
|
-
* @internal
|
|
65
58
|
*/
|
|
66
59
|
getType(type: string): number;
|
|
67
60
|
/**
|
|
@@ -69,7 +62,6 @@ declare class TypesContainer {
|
|
|
69
62
|
*
|
|
70
63
|
* @param elem The element to check.
|
|
71
64
|
* @returns 1 if the object stores information about a field.
|
|
72
|
-
* @internal
|
|
73
65
|
*/
|
|
74
66
|
isField(elem: Measurable): number;
|
|
75
67
|
/**
|
|
@@ -77,7 +69,6 @@ declare class TypesContainer {
|
|
|
77
69
|
*
|
|
78
70
|
* @param elem The element to check.
|
|
79
71
|
* @returns 1 if the object stores information about a hat.
|
|
80
|
-
* @internal
|
|
81
72
|
*/
|
|
82
73
|
isHat(elem: Measurable): number;
|
|
83
74
|
/**
|
|
@@ -85,7 +76,6 @@ declare class TypesContainer {
|
|
|
85
76
|
*
|
|
86
77
|
* @param elem The element to check.
|
|
87
78
|
* @returns 1 if the object stores information about an icon.
|
|
88
|
-
* @internal
|
|
89
79
|
*/
|
|
90
80
|
isIcon(elem: Measurable): number;
|
|
91
81
|
/**
|
|
@@ -93,7 +83,6 @@ declare class TypesContainer {
|
|
|
93
83
|
*
|
|
94
84
|
* @param elem The element to check.
|
|
95
85
|
* @returns 1 if the object stores information about a spacer.
|
|
96
|
-
* @internal
|
|
97
86
|
*/
|
|
98
87
|
isSpacer(elem: Measurable | Row): number;
|
|
99
88
|
/**
|
|
@@ -101,7 +90,6 @@ declare class TypesContainer {
|
|
|
101
90
|
*
|
|
102
91
|
* @param elem The element to check.
|
|
103
92
|
* @returns 1 if the object stores information about an in-row spacer.
|
|
104
|
-
* @internal
|
|
105
93
|
*/
|
|
106
94
|
isInRowSpacer(elem: Measurable): number;
|
|
107
95
|
/**
|
|
@@ -109,7 +97,6 @@ declare class TypesContainer {
|
|
|
109
97
|
*
|
|
110
98
|
* @param elem The element to check.
|
|
111
99
|
* @returns 1 if the object stores information about an input.
|
|
112
|
-
* @internal
|
|
113
100
|
*/
|
|
114
101
|
isInput(elem: Measurable): number;
|
|
115
102
|
/**
|
|
@@ -117,7 +104,6 @@ declare class TypesContainer {
|
|
|
117
104
|
*
|
|
118
105
|
* @param elem The element to check.
|
|
119
106
|
* @returns 1 if the object stores information about an external input.
|
|
120
|
-
* @internal
|
|
121
107
|
*/
|
|
122
108
|
isExternalInput(elem: Measurable): number;
|
|
123
109
|
/**
|
|
@@ -125,7 +111,6 @@ declare class TypesContainer {
|
|
|
125
111
|
*
|
|
126
112
|
* @param elem The element to check.
|
|
127
113
|
* @returns 1 if the object stores information about an inline input.
|
|
128
|
-
* @internal
|
|
129
114
|
*/
|
|
130
115
|
isInlineInput(elem: Measurable): number;
|
|
131
116
|
/**
|
|
@@ -133,7 +118,6 @@ declare class TypesContainer {
|
|
|
133
118
|
*
|
|
134
119
|
* @param elem The element to check.
|
|
135
120
|
* @returns 1 if the object stores information about a statement input.
|
|
136
|
-
* @internal
|
|
137
121
|
*/
|
|
138
122
|
isStatementInput(elem: Measurable): number;
|
|
139
123
|
/**
|
|
@@ -141,7 +125,6 @@ declare class TypesContainer {
|
|
|
141
125
|
*
|
|
142
126
|
* @param elem The element to check.
|
|
143
127
|
* @returns 1 if the object stores information about a previous connection.
|
|
144
|
-
* @internal
|
|
145
128
|
*/
|
|
146
129
|
isPreviousConnection(elem: Measurable): number;
|
|
147
130
|
/**
|
|
@@ -149,7 +132,6 @@ declare class TypesContainer {
|
|
|
149
132
|
*
|
|
150
133
|
* @param elem The element to check.
|
|
151
134
|
* @returns 1 if the object stores information about a next connection.
|
|
152
|
-
* @internal
|
|
153
135
|
*/
|
|
154
136
|
isNextConnection(elem: Measurable): number;
|
|
155
137
|
/**
|
|
@@ -159,7 +141,6 @@ declare class TypesContainer {
|
|
|
159
141
|
* @param elem The element to check.
|
|
160
142
|
* @returns 1 if the object stores information about a previous or next
|
|
161
143
|
* connection.
|
|
162
|
-
* @internal
|
|
163
144
|
*/
|
|
164
145
|
isPreviousOrNextConnection(elem: Measurable): number;
|
|
165
146
|
/**
|
|
@@ -167,7 +148,6 @@ declare class TypesContainer {
|
|
|
167
148
|
*
|
|
168
149
|
* @param elem The element to check.
|
|
169
150
|
* @returns 1 if the object stores information about a left round corner.
|
|
170
|
-
* @internal
|
|
171
151
|
*/
|
|
172
152
|
isLeftRoundedCorner(elem: Measurable): number;
|
|
173
153
|
/**
|
|
@@ -175,7 +155,6 @@ declare class TypesContainer {
|
|
|
175
155
|
*
|
|
176
156
|
* @param elem The element to check.
|
|
177
157
|
* @returns 1 if the object stores information about a right round corner.
|
|
178
|
-
* @internal
|
|
179
158
|
*/
|
|
180
159
|
isRightRoundedCorner(elem: Measurable): number;
|
|
181
160
|
/**
|
|
@@ -183,7 +162,6 @@ declare class TypesContainer {
|
|
|
183
162
|
*
|
|
184
163
|
* @param elem The element to check.
|
|
185
164
|
* @returns 1 if the object stores information about a left square corner.
|
|
186
|
-
* @internal
|
|
187
165
|
*/
|
|
188
166
|
isLeftSquareCorner(elem: Measurable): number;
|
|
189
167
|
/**
|
|
@@ -191,7 +169,6 @@ declare class TypesContainer {
|
|
|
191
169
|
*
|
|
192
170
|
* @param elem The element to check.
|
|
193
171
|
* @returns 1 if the object stores information about a right square corner.
|
|
194
|
-
* @internal
|
|
195
172
|
*/
|
|
196
173
|
isRightSquareCorner(elem: Measurable): number;
|
|
197
174
|
/**
|
|
@@ -199,7 +176,6 @@ declare class TypesContainer {
|
|
|
199
176
|
*
|
|
200
177
|
* @param elem The element to check.
|
|
201
178
|
* @returns 1 if the object stores information about a corner.
|
|
202
|
-
* @internal
|
|
203
179
|
*/
|
|
204
180
|
isCorner(elem: Measurable): number;
|
|
205
181
|
/**
|
|
@@ -207,7 +183,6 @@ declare class TypesContainer {
|
|
|
207
183
|
*
|
|
208
184
|
* @param elem The element to check.
|
|
209
185
|
* @returns 1 if the object stores information about a jagged edge.
|
|
210
|
-
* @internal
|
|
211
186
|
*/
|
|
212
187
|
isJaggedEdge(elem: Measurable): number;
|
|
213
188
|
/**
|
|
@@ -215,7 +190,6 @@ declare class TypesContainer {
|
|
|
215
190
|
*
|
|
216
191
|
* @param row The row to check.
|
|
217
192
|
* @returns 1 if the object stores information about a row.
|
|
218
|
-
* @internal
|
|
219
193
|
*/
|
|
220
194
|
isRow(row: Row): number;
|
|
221
195
|
/**
|
|
@@ -223,7 +197,6 @@ declare class TypesContainer {
|
|
|
223
197
|
*
|
|
224
198
|
* @param row The row to check.
|
|
225
199
|
* @returns 1 if the object stores information about a between-row spacer.
|
|
226
|
-
* @internal
|
|
227
200
|
*/
|
|
228
201
|
isBetweenRowSpacer(row: Row): number;
|
|
229
202
|
/**
|
|
@@ -231,7 +204,6 @@ declare class TypesContainer {
|
|
|
231
204
|
*
|
|
232
205
|
* @param row The row to check.
|
|
233
206
|
* @returns 1 if the object stores information about a top row.
|
|
234
|
-
* @internal
|
|
235
207
|
*/
|
|
236
208
|
isTopRow(row: Row): number;
|
|
237
209
|
/**
|
|
@@ -239,7 +211,6 @@ declare class TypesContainer {
|
|
|
239
211
|
*
|
|
240
212
|
* @param row The row to check.
|
|
241
213
|
* @returns 1 if the object stores information about a bottom row.
|
|
242
|
-
* @internal
|
|
243
214
|
*/
|
|
244
215
|
isBottomRow(row: Row): number;
|
|
245
216
|
/**
|
|
@@ -247,7 +218,6 @@ declare class TypesContainer {
|
|
|
247
218
|
*
|
|
248
219
|
* @param row The row to check.
|
|
249
220
|
* @returns 1 if the object stores information about a top or bottom row.
|
|
250
|
-
* @internal
|
|
251
221
|
*/
|
|
252
222
|
isTopOrBottomRow(row: Row): number;
|
|
253
223
|
/**
|
|
@@ -255,7 +225,6 @@ declare class TypesContainer {
|
|
|
255
225
|
*
|
|
256
226
|
* @param row The row to check.
|
|
257
227
|
* @returns 1 if the object stores information about an input row.
|
|
258
|
-
* @internal
|
|
259
228
|
*/
|
|
260
229
|
isInputRow(row: Row): number;
|
|
261
230
|
}
|
|
@@ -5,12 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { ConstantProvider as BaseConstantProvider } from '../common/constants.js';
|
|
7
7
|
/**
|
|
8
|
-
* An object that provides constants for rendering blocks in the
|
|
9
|
-
*
|
|
10
|
-
* @alias Blockly.minimalist.ConstantProvider
|
|
8
|
+
* An object that provides constants for rendering blocks in the minimalist
|
|
9
|
+
* renderer.
|
|
11
10
|
*/
|
|
12
11
|
export declare class ConstantProvider extends BaseConstantProvider {
|
|
13
|
-
/** @internal */
|
|
14
12
|
constructor();
|
|
15
13
|
}
|
|
16
14
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -8,15 +8,12 @@ import { Drawer as BaseDrawer } from '../common/drawer.js';
|
|
|
8
8
|
import type { RenderInfo } from './info.js';
|
|
9
9
|
/**
|
|
10
10
|
* An object that draws a block based on the given rendering information.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.minimalist.Drawer
|
|
13
11
|
*/
|
|
14
12
|
export declare class Drawer extends BaseDrawer {
|
|
15
13
|
/**
|
|
16
14
|
* @param block The block to render.
|
|
17
15
|
* @param info An object containing all information needed to render this
|
|
18
16
|
* block.
|
|
19
|
-
* @internal
|
|
20
17
|
*/
|
|
21
18
|
constructor(block: BlockSvg, info: RenderInfo);
|
|
22
19
|
}
|
|
@@ -12,22 +12,18 @@ import type { Renderer } from './renderer.js';
|
|
|
12
12
|
* This measure pass does not propagate changes to the block (although fields
|
|
13
13
|
* may choose to rerender when getSize() is called). However, calling it
|
|
14
14
|
* repeatedly may be expensive.
|
|
15
|
-
*
|
|
16
|
-
* @alias Blockly.minimalist.RenderInfo
|
|
17
15
|
*/
|
|
18
16
|
export declare class RenderInfo extends BaseRenderInfo {
|
|
19
17
|
protected renderer_: Renderer;
|
|
20
18
|
/**
|
|
21
19
|
* @param renderer The renderer in use.
|
|
22
20
|
* @param block The block to measure.
|
|
23
|
-
* @internal
|
|
24
21
|
*/
|
|
25
22
|
constructor(renderer: Renderer, block: BlockSvg);
|
|
26
23
|
/**
|
|
27
24
|
* Get the block renderer in use.
|
|
28
25
|
*
|
|
29
26
|
* @returns The block renderer in use.
|
|
30
|
-
* @internal
|
|
31
27
|
*/
|
|
32
28
|
getRenderer(): Renderer;
|
|
33
29
|
}
|
|
@@ -11,13 +11,10 @@ import { Drawer } from './drawer.js';
|
|
|
11
11
|
import { RenderInfo } from './info.js';
|
|
12
12
|
/**
|
|
13
13
|
* The minimalist renderer.
|
|
14
|
-
*
|
|
15
|
-
* @alias Blockly.minimalist.Renderer
|
|
16
14
|
*/
|
|
17
15
|
export declare class Renderer extends BaseRenderer {
|
|
18
16
|
/**
|
|
19
17
|
* @param name The renderer name.
|
|
20
|
-
* @internal
|
|
21
18
|
*/
|
|
22
19
|
constructor(name: string);
|
|
23
20
|
/**
|
|
@@ -14,22 +14,18 @@ import type { Renderer } from './renderer.js';
|
|
|
14
14
|
* This measure pass does not propagate changes to the block (although fields
|
|
15
15
|
* may choose to rerender when getSize() is called). However, calling it
|
|
16
16
|
* repeatedly may be expensive.
|
|
17
|
-
*
|
|
18
|
-
* @alias Blockly.thrasos.RenderInfo
|
|
19
17
|
*/
|
|
20
18
|
export declare class RenderInfo extends BaseRenderInfo {
|
|
21
19
|
protected renderer_: Renderer;
|
|
22
20
|
/**
|
|
23
21
|
* @param renderer The renderer in use.
|
|
24
22
|
* @param block The block to measure.
|
|
25
|
-
* @internal
|
|
26
23
|
*/
|
|
27
24
|
constructor(renderer: Renderer, block: BlockSvg);
|
|
28
25
|
/**
|
|
29
26
|
* Get the block renderer in use.
|
|
30
27
|
*
|
|
31
28
|
* @returns The block renderer in use.
|
|
32
|
-
* @internal
|
|
33
29
|
*/
|
|
34
30
|
getRenderer(): Renderer;
|
|
35
31
|
addElemSpacing_(): void;
|
|
@@ -7,14 +7,14 @@ import type { BlockSvg } from '../../block_svg.js';
|
|
|
7
7
|
import { Renderer as BaseRenderer } from '../common/renderer.js';
|
|
8
8
|
import { RenderInfo } from './info.js';
|
|
9
9
|
/**
|
|
10
|
-
* The thrasos renderer.
|
|
10
|
+
* The thrasos renderer. This is a more modern take on the legacy geras
|
|
11
|
+
* renderer.
|
|
11
12
|
*
|
|
12
|
-
*
|
|
13
|
+
* Thrasos is the ancient Greek spirit of boldness.
|
|
13
14
|
*/
|
|
14
15
|
export declare class Renderer extends BaseRenderer {
|
|
15
16
|
/**
|
|
16
17
|
* @param name The renderer name.
|
|
17
|
-
* @internal
|
|
18
18
|
*/
|
|
19
19
|
constructor(name: string);
|
|
20
20
|
/**
|
|
@@ -20,8 +20,6 @@ export interface InsideCorners {
|
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* An object that provides constants for rendering blocks in Zelos mode.
|
|
23
|
-
*
|
|
24
|
-
* @alias Blockly.zelos.ConstantProvider
|
|
25
23
|
*/
|
|
26
24
|
export declare class ConstantProvider extends BaseConstantProvider {
|
|
27
25
|
GRID_UNIT: number;
|
|
@@ -29,8 +27,6 @@ export declare class ConstantProvider extends BaseConstantProvider {
|
|
|
29
27
|
CURSOR_COLOUR: string;
|
|
30
28
|
/**
|
|
31
29
|
* Radius of the cursor for input and output connections.
|
|
32
|
-
*
|
|
33
|
-
* @internal
|
|
34
30
|
*/
|
|
35
31
|
CURSOR_RADIUS: number;
|
|
36
32
|
JAGGED_TEETH_HEIGHT: number;
|
|
@@ -50,8 +46,6 @@ export declare class ConstantProvider extends BaseConstantProvider {
|
|
|
50
46
|
* When a block with the outer shape contains an input block with the inner
|
|
51
47
|
* shape on its left or right edge, the block elements are aligned such that
|
|
52
48
|
* the padding specified is reached.
|
|
53
|
-
*
|
|
54
|
-
* @internal
|
|
55
49
|
*/
|
|
56
50
|
SHAPE_IN_SHAPE_PADDING: {
|
|
57
51
|
[key: number]: {
|
|
@@ -78,8 +72,6 @@ export declare class ConstantProvider extends BaseConstantProvider {
|
|
|
78
72
|
/**
|
|
79
73
|
* The ID of the selected glow filter, or the empty string if no filter is
|
|
80
74
|
* set.
|
|
81
|
-
*
|
|
82
|
-
* @internal
|
|
83
75
|
*/
|
|
84
76
|
selectedGlowFilterId: string;
|
|
85
77
|
/**
|
|
@@ -89,8 +81,6 @@ export declare class ConstantProvider extends BaseConstantProvider {
|
|
|
89
81
|
/**
|
|
90
82
|
* The ID of the replacement glow filter, or the empty string if no filter
|
|
91
83
|
* is set.
|
|
92
|
-
*
|
|
93
|
-
* @internal
|
|
94
84
|
*/
|
|
95
85
|
replacementGlowFilterId: string;
|
|
96
86
|
/**
|
|
@@ -112,7 +102,6 @@ export declare class ConstantProvider extends BaseConstantProvider {
|
|
|
112
102
|
* rectangular reporter block. Null before init is called.
|
|
113
103
|
*/
|
|
114
104
|
SQUARED: Shape | null;
|
|
115
|
-
/** @internal */
|
|
116
105
|
constructor();
|
|
117
106
|
setFontConstants_(theme: Theme): void;
|
|
118
107
|
init(): void;
|
|
@@ -128,25 +117,22 @@ export declare class ConstantProvider extends BaseConstantProvider {
|
|
|
128
117
|
*
|
|
129
118
|
* @returns An object containing sizing and path information about a hexagonal
|
|
130
119
|
* shape for connections.
|
|
131
|
-
* @internal
|
|
132
120
|
*/
|
|
133
|
-
makeHexagonal(): Shape;
|
|
121
|
+
protected makeHexagonal(): Shape;
|
|
134
122
|
/**
|
|
135
123
|
* Create sizing and path information about a rounded shape.
|
|
136
124
|
*
|
|
137
125
|
* @returns An object containing sizing and path information about a rounded
|
|
138
126
|
* shape for connections.
|
|
139
|
-
* @internal
|
|
140
127
|
*/
|
|
141
|
-
makeRounded(): Shape;
|
|
128
|
+
protected makeRounded(): Shape;
|
|
142
129
|
/**
|
|
143
130
|
* Create sizing and path information about a squared shape.
|
|
144
131
|
*
|
|
145
132
|
* @returns An object containing sizing and path information about a squared
|
|
146
133
|
* shape for connections.
|
|
147
|
-
* @internal
|
|
148
134
|
*/
|
|
149
|
-
makeSquared(): Shape;
|
|
135
|
+
protected makeSquared(): Shape;
|
|
150
136
|
shapeFor(connection: RenderedConnection): Shape;
|
|
151
137
|
makeNotch(): {
|
|
152
138
|
type: number;
|
|
@@ -10,8 +10,6 @@ import type { Row } from '../measurables/row.js';
|
|
|
10
10
|
import type { RenderInfo } from './info.js';
|
|
11
11
|
/**
|
|
12
12
|
* An object that draws a block based on the given rendering information.
|
|
13
|
-
*
|
|
14
|
-
* @alias Blockly.zelos.Drawer
|
|
15
13
|
*/
|
|
16
14
|
export declare class Drawer extends BaseDrawer {
|
|
17
15
|
info_: RenderInfo;
|
|
@@ -19,7 +17,6 @@ export declare class Drawer extends BaseDrawer {
|
|
|
19
17
|
* @param block The block to render.
|
|
20
18
|
* @param info An object containing all information needed to render this
|
|
21
19
|
* block.
|
|
22
|
-
* @internal
|
|
23
20
|
*/
|
|
24
21
|
constructor(block: BlockSvg, info: RenderInfo);
|
|
25
22
|
draw(): void;
|
|
@@ -19,8 +19,6 @@ import type { Renderer } from './renderer.js';
|
|
|
19
19
|
* This measure pass does not propagate changes to the block (although fields
|
|
20
20
|
* may choose to rerender when getSize() is called). However, calling it
|
|
21
21
|
* repeatedly may be expensive.
|
|
22
|
-
*
|
|
23
|
-
* @alias Blockly.zelos.RenderInfo
|
|
24
22
|
*/
|
|
25
23
|
export declare class RenderInfo extends BaseRenderInfo {
|
|
26
24
|
topRow: TopRow;
|
|
@@ -35,14 +33,12 @@ export declare class RenderInfo extends BaseRenderInfo {
|
|
|
35
33
|
/**
|
|
36
34
|
* @param renderer The renderer in use.
|
|
37
35
|
* @param block The block to measure.
|
|
38
|
-
* @internal
|
|
39
36
|
*/
|
|
40
37
|
constructor(renderer: Renderer, block: BlockSvg);
|
|
41
38
|
/**
|
|
42
39
|
* Get the block renderer in use.
|
|
43
40
|
*
|
|
44
41
|
* @returns The block renderer in use.
|
|
45
|
-
* @internal
|
|
46
42
|
*/
|
|
47
43
|
getRenderer(): Renderer;
|
|
48
44
|
measure(): void;
|
|
@@ -11,8 +11,6 @@ import { MarkerSvg as BaseMarkerSvg } from '../common/marker_svg.js';
|
|
|
11
11
|
import type { ConstantProvider as ZelosConstantProvider } from './constants.js';
|
|
12
12
|
/**
|
|
13
13
|
* Class to draw a marker.
|
|
14
|
-
*
|
|
15
|
-
* @alias Blockly.zelos.MarkerSvg
|
|
16
14
|
*/
|
|
17
15
|
export declare class MarkerSvg extends BaseMarkerSvg {
|
|
18
16
|
constants_: ZelosConstantProvider;
|
|
@@ -11,13 +11,10 @@ import { BottomRow as BaseBottomRow } from '../../../renderers/measurables/botto
|
|
|
11
11
|
* a block as well as spacing information for the top row.
|
|
12
12
|
* Elements in a bottom row can consist of corners, spacers and next
|
|
13
13
|
* connections.
|
|
14
|
-
*
|
|
15
|
-
* @alias Blockly.zelos.BottomRow
|
|
16
14
|
*/
|
|
17
15
|
export declare class BottomRow extends BaseBottomRow {
|
|
18
16
|
/**
|
|
19
17
|
* @param constants The rendering constants provider.
|
|
20
|
-
* @internal
|
|
21
18
|
*/
|
|
22
19
|
constructor(constants: ConstantProvider);
|
|
23
20
|
endsWithElemSpacer(): boolean;
|
|
@@ -9,15 +9,12 @@ import { StatementInput as BaseStatementInput } from '../../../renderers/measura
|
|
|
9
9
|
/**
|
|
10
10
|
* An object containing information about the space a statement input takes up
|
|
11
11
|
* during rendering.
|
|
12
|
-
*
|
|
13
|
-
* @alias Blockly.zelos.StatementInput
|
|
14
12
|
*/
|
|
15
13
|
export declare class StatementInput extends BaseStatementInput {
|
|
16
14
|
connectedBottomNextConnection: boolean;
|
|
17
15
|
/**
|
|
18
16
|
* @param constants The rendering constants provider.
|
|
19
17
|
* @param input The statement input to measure and store information for.
|
|
20
|
-
* @internal
|
|
21
18
|
*/
|
|
22
19
|
constructor(constants: ConstantProvider, input: Input);
|
|
23
20
|
}
|
|
@@ -8,15 +8,12 @@ import { Measurable } from '../../../renderers/measurables/base.js';
|
|
|
8
8
|
/**
|
|
9
9
|
* An object containing information about the space a right connection shape
|
|
10
10
|
* takes up during rendering.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.zelos.RightConnectionShape
|
|
13
11
|
*/
|
|
14
12
|
export declare class RightConnectionShape extends Measurable {
|
|
15
13
|
height: number;
|
|
16
14
|
width: number;
|
|
17
15
|
/**
|
|
18
16
|
* @param constants The rendering constants provider.
|
|
19
|
-
* @internal
|
|
20
17
|
*/
|
|
21
18
|
constructor(constants: ConstantProvider);
|
|
22
19
|
}
|
|
@@ -13,13 +13,10 @@ import { TopRow as BaseTopRow } from '../../../renderers/measurables/top_row.js'
|
|
|
13
13
|
* connections.
|
|
14
14
|
* After this constructor is called, the row will contain all non-spacer
|
|
15
15
|
* elements it needs.
|
|
16
|
-
*
|
|
17
|
-
* @alias Blockly.zelos.TopRow
|
|
18
16
|
*/
|
|
19
17
|
export declare class TopRow extends BaseTopRow {
|
|
20
18
|
/**
|
|
21
19
|
* @param constants The rendering constants provider.
|
|
22
|
-
* @internal
|
|
23
20
|
*/
|
|
24
21
|
constructor(constants: ConstantProvider);
|
|
25
22
|
endsWithElemSpacer(): boolean;
|
|
@@ -11,8 +11,6 @@ import type { ConstantProvider } from './constants.js';
|
|
|
11
11
|
/**
|
|
12
12
|
* An object that handles creating and setting each of the SVG elements
|
|
13
13
|
* used by the renderer.
|
|
14
|
-
*
|
|
15
|
-
* @alias Blockly.zelos.PathObject
|
|
16
14
|
*/
|
|
17
15
|
export declare class PathObject extends BasePathObject {
|
|
18
16
|
/** The selected path of the block. */
|
|
@@ -31,13 +29,11 @@ export declare class PathObject extends BasePathObject {
|
|
|
31
29
|
* with an output connection is drawn.
|
|
32
30
|
*/
|
|
33
31
|
outputShapeType: number | null;
|
|
34
|
-
/** @internal */
|
|
35
32
|
constants: ConstantProvider;
|
|
36
33
|
/**
|
|
37
34
|
* @param root The root SVG element.
|
|
38
35
|
* @param style The style object to use for colouring.
|
|
39
36
|
* @param constants The renderer's constants.
|
|
40
|
-
* @internal
|
|
41
37
|
*/
|
|
42
38
|
constructor(root: SVGElement, style: BlockStyle, constants: ConstantProvider);
|
|
43
39
|
setPath(pathString: string): void;
|
|
@@ -48,14 +44,10 @@ export declare class PathObject extends BasePathObject {
|
|
|
48
44
|
updateShapeForInputHighlight(conn: Connection, enable: boolean): void;
|
|
49
45
|
/**
|
|
50
46
|
* Method that's called when the drawer is about to draw the block.
|
|
51
|
-
*
|
|
52
|
-
* @internal
|
|
53
47
|
*/
|
|
54
48
|
beginDrawing(): void;
|
|
55
49
|
/**
|
|
56
50
|
* Method that's called when the drawer is done drawing.
|
|
57
|
-
*
|
|
58
|
-
* @internal
|
|
59
51
|
*/
|
|
60
52
|
endDrawing(): void;
|
|
61
53
|
/**
|
|
@@ -64,7 +56,6 @@ export declare class PathObject extends BasePathObject {
|
|
|
64
56
|
*
|
|
65
57
|
* @param name The input name.
|
|
66
58
|
* @param pathString The path.
|
|
67
|
-
* @internal
|
|
68
59
|
*/
|
|
69
60
|
setOutlinePath(name: string, pathString: string): void;
|
|
70
61
|
/**
|
|
@@ -18,15 +18,15 @@ import { RenderInfo } from './info.js';
|
|
|
18
18
|
import { MarkerSvg } from './marker_svg.js';
|
|
19
19
|
import { PathObject } from './path_object.js';
|
|
20
20
|
/**
|
|
21
|
-
* The zelos renderer.
|
|
21
|
+
* The zelos renderer. This renderer emulates Scratch-style and MakeCode-style
|
|
22
|
+
* rendering.
|
|
22
23
|
*
|
|
23
|
-
*
|
|
24
|
+
* Zelos is the ancient Greek spirit of rivalry and emulation.
|
|
24
25
|
*/
|
|
25
26
|
export declare class Renderer extends BaseRenderer {
|
|
26
27
|
protected constants_: ConstantProvider;
|
|
27
28
|
/**
|
|
28
29
|
* @param name The renderer name.
|
|
29
|
-
* @internal
|
|
30
30
|
*/
|
|
31
31
|
constructor(name: string);
|
|
32
32
|
/**
|
|
@@ -57,7 +57,6 @@ export declare class Renderer extends BaseRenderer {
|
|
|
57
57
|
* @param workspace The workspace the cursor belongs to.
|
|
58
58
|
* @param marker The marker.
|
|
59
59
|
* @returns The object in charge of drawing the marker.
|
|
60
|
-
* @internal
|
|
61
60
|
*/
|
|
62
61
|
makeMarkerDrawer(workspace: WorkspaceSvg, marker: Marker): MarkerSvg;
|
|
63
62
|
/**
|
|
@@ -66,7 +65,6 @@ export declare class Renderer extends BaseRenderer {
|
|
|
66
65
|
* @param root The root SVG element.
|
|
67
66
|
* @param style The style object to use for colouring.
|
|
68
67
|
* @returns The renderer path object.
|
|
69
|
-
* @internal
|
|
70
68
|
*/
|
|
71
69
|
makePathObject(root: SVGElement, style: BlockStyle): PathObject;
|
|
72
70
|
/**
|
package/core/scrollbar.d.ts
CHANGED
|
@@ -15,8 +15,6 @@ import type { WorkspaceSvg } from './workspace_svg.js';
|
|
|
15
15
|
* Class for a pure SVG scrollbar.
|
|
16
16
|
* This technique offers a scrollbar that is guaranteed to work, but may not
|
|
17
17
|
* look or behave like the system's scrollbars.
|
|
18
|
-
*
|
|
19
|
-
* @alias Blockly.Scrollbar
|
|
20
18
|
*/
|
|
21
19
|
export declare class Scrollbar {
|
|
22
20
|
private workspace;
|
package/core/scrollbar_pair.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ import type { Metrics } from './utils/metrics.js';
|
|
|
8
8
|
import type { WorkspaceSvg } from './workspace_svg.js';
|
|
9
9
|
/**
|
|
10
10
|
* Class for a pair of scrollbars. Horizontal and vertical.
|
|
11
|
-
*
|
|
12
|
-
* @alias Blockly.ScrollbarPair
|
|
13
11
|
*/
|
|
14
12
|
export declare class ScrollbarPair {
|
|
15
13
|
private workspace;
|
|
@@ -9,8 +9,6 @@ import type { ISerializer } from '../interfaces/i_serializer.js';
|
|
|
9
9
|
import type { Workspace } from '../workspace.js';
|
|
10
10
|
/**
|
|
11
11
|
* Represents the state of a connection.
|
|
12
|
-
*
|
|
13
|
-
* @alias Blockly.serialization.blocks.ConnectionState
|
|
14
12
|
*/
|
|
15
13
|
export interface ConnectionState {
|
|
16
14
|
shadow: State | undefined;
|
|
@@ -18,8 +16,6 @@ export interface ConnectionState {
|
|
|
18
16
|
}
|
|
19
17
|
/**
|
|
20
18
|
* Represents the state of a given block.
|
|
21
|
-
*
|
|
22
|
-
* @alias Blockly.serialization.blocks.State
|
|
23
19
|
*/
|
|
24
20
|
export interface State {
|
|
25
21
|
type: string;
|
|
@@ -27,6 +23,9 @@ export interface State {
|
|
|
27
23
|
x?: number;
|
|
28
24
|
y?: number;
|
|
29
25
|
collapsed?: boolean;
|
|
26
|
+
deletable?: boolean;
|
|
27
|
+
movable?: boolean;
|
|
28
|
+
editable?: boolean;
|
|
30
29
|
enabled?: boolean;
|
|
31
30
|
inline?: boolean;
|
|
32
31
|
data?: string;
|
|
@@ -58,7 +57,6 @@ export interface State {
|
|
|
58
57
|
* exist. True by default.
|
|
59
58
|
* @returns The serialized state of the block, or null if the block could not be
|
|
60
59
|
* serialied (eg it was an insertion marker).
|
|
61
|
-
* @alias Blockly.serialization.blocks.save
|
|
62
60
|
*/
|
|
63
61
|
export declare function save(block: Block, { addCoordinates, addInputBlocks, addNextBlocks, doFullSerialization, }?: {
|
|
64
62
|
addCoordinates?: boolean;
|
|
@@ -74,7 +72,6 @@ export declare function save(block: Block, { addCoordinates, addInputBlocks, add
|
|
|
74
72
|
* @param param1 recordUndo: If true, events triggered by this function will be
|
|
75
73
|
* undo-able by the user. False by default.
|
|
76
74
|
* @returns The block that was just loaded.
|
|
77
|
-
* @alias Blockly.serialization.blocks.append
|
|
78
75
|
*/
|
|
79
76
|
export declare function append(state: State, workspace: Workspace, { recordUndo }?: {
|
|
80
77
|
recordUndo?: boolean;
|
|
@@ -94,7 +91,6 @@ export declare function append(state: State, workspace: Workspace, { recordUndo
|
|
|
94
91
|
* it is created. False by default. recordUndo: If true, events triggered by
|
|
95
92
|
* this function will be undo-able by the user. False by default.
|
|
96
93
|
* @returns The block that was just appended.
|
|
97
|
-
* @alias Blockly.serialization.blocks.appendInternal
|
|
98
94
|
* @internal
|
|
99
95
|
*/
|
|
100
96
|
export declare function appendInternal(state: State, workspace: Workspace, { parentConnection, isShadow, recordUndo }?: {
|
|
@@ -104,8 +100,6 @@ export declare function appendInternal(state: State, workspace: Workspace, { par
|
|
|
104
100
|
}): Block;
|
|
105
101
|
/**
|
|
106
102
|
* Serializer for saving and loading block state.
|
|
107
|
-
*
|
|
108
|
-
* @alias Blockly.serialization.blocks.BlockSerializer
|
|
109
103
|
*/
|
|
110
104
|
export declare class BlockSerializer implements ISerializer {
|
|
111
105
|
priority: number;
|