blockly 10.2.0-beta.1 → 10.2.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blockly.min.js +1726 -1899
- package/blockly_compressed.js +1463 -1614
- package/blockly_compressed.js.map +1 -1
- package/blocks_compressed.js +162 -173
- package/blocks_compressed.js.map +1 -1
- package/core/block.d.ts +10 -0
- package/core/block_dragger.d.ts +5 -0
- package/core/block_svg.d.ts +14 -4
- package/core/component_manager.d.ts +5 -0
- package/core/connection.d.ts +5 -0
- package/core/contextmenu.d.ts +5 -3
- package/core/contextmenu_registry.d.ts +7 -2
- package/core/drag_target.d.ts +6 -0
- package/core/dropdowndiv.d.ts +5 -0
- package/core/events/events_block_base.d.ts +5 -0
- package/core/events/events_block_change.d.ts +5 -0
- package/core/events/events_block_create.d.ts +5 -0
- package/core/events/events_block_delete.d.ts +5 -0
- package/core/events/events_block_drag.d.ts +5 -0
- package/core/events/events_block_field_intermediate_change.d.ts +6 -0
- package/core/events/events_block_move.d.ts +5 -0
- package/core/events/events_bubble_open.d.ts +5 -0
- package/core/events/events_click.d.ts +5 -0
- package/core/events/events_marker_move.d.ts +5 -0
- package/core/events/events_ui_base.d.ts +6 -0
- package/core/events/events_var_base.d.ts +5 -0
- package/core/field.d.ts +17 -3
- package/core/field_checkbox.d.ts +5 -0
- package/core/field_colour.d.ts +27 -7
- package/core/field_image.d.ts +5 -0
- package/core/field_input.d.ts +19 -1
- package/core/field_label_serializable.d.ts +7 -0
- package/core/field_number.d.ts +5 -0
- package/core/field_textinput.d.ts +5 -0
- package/core/field_variable.d.ts +5 -0
- package/core/flyout_metrics_manager.d.ts +5 -0
- package/core/generator.d.ts +29 -1
- package/core/gesture.d.ts +6 -0
- package/core/icons/mutator_icon.d.ts +8 -0
- package/core/inputs/input.d.ts +5 -0
- package/core/keyboard_nav/ast_node.d.ts +6 -0
- package/core/keyboard_nav/marker.d.ts +6 -0
- package/core/main.d.ts +6 -4
- package/core/marker_manager.d.ts +5 -0
- package/core/menuitem.d.ts +5 -0
- package/core/metrics_manager.d.ts +5 -0
- package/core/options.d.ts +5 -0
- package/core/rendered_connection.d.ts +5 -0
- package/core/renderers/geras/geras.d.ts +5 -0
- package/core/renderers/minimalist/minimalist.d.ts +5 -0
- package/core/renderers/thrasos/thrasos.d.ts +5 -0
- package/core/renderers/zelos/zelos.d.ts +5 -0
- package/core/scrollbar.d.ts +5 -0
- package/core/serialization.d.ts +3 -0
- package/core/shortcut_registry.d.ts +6 -0
- package/core/theme_manager.d.ts +6 -0
- package/core/toolbox/collapsible_category.d.ts +5 -0
- package/core/toolbox/toolbox.d.ts +5 -0
- package/core/toolbox/toolbox_item.d.ts +5 -0
- package/core/trashcan.d.ts +5 -0
- package/core/utils/coordinate.d.ts +7 -0
- package/core/utils/rect.d.ts +7 -0
- package/core/utils/size.d.ts +7 -0
- package/core/utils/svg.d.ts +6 -0
- package/core/variable_map.d.ts +5 -0
- package/core/variable_model.d.ts +5 -0
- package/core/workspace.d.ts +9 -4
- package/core/workspace_comment_svg.d.ts +5 -0
- package/core/workspace_svg.d.ts +13 -2
- package/core/zoom_controls.d.ts +5 -0
- package/dart_compressed.js +88 -97
- package/dart_compressed.js.map +1 -1
- package/javascript_compressed.js +101 -112
- package/javascript_compressed.js.map +1 -1
- package/lua_compressed.js +75 -82
- package/lua_compressed.js.map +1 -1
- package/package.json +5 -6
- package/php_compressed.js +92 -100
- package/php_compressed.js.map +1 -1
- package/python_compressed.js +82 -92
- package/python_compressed.js.map +1 -1
- package/closure/goog/base.d.ts +0 -2
- package/closure/goog/base_minimal.d.ts +0 -19
- package/closure/goog/goog.d.ts +0 -26
|
@@ -35,6 +35,14 @@ export declare class MutatorIcon extends Icon implements IHasBubble {
|
|
|
35
35
|
private rootBlock;
|
|
36
36
|
/** The PID tracking updating the workkspace in response to user events. */
|
|
37
37
|
private updateWorkspacePid;
|
|
38
|
+
/**
|
|
39
|
+
* The change listener in the main workspace that triggers the saveConnections
|
|
40
|
+
* method when anything in the main workspace changes.
|
|
41
|
+
*
|
|
42
|
+
* Only actually registered to listen for events while the mutator bubble is
|
|
43
|
+
* open.
|
|
44
|
+
*/
|
|
45
|
+
private saveConnectionsListener;
|
|
38
46
|
constructor(flyoutBlockTypes: string[], sourceBlock: BlockSvg);
|
|
39
47
|
getType(): IconType<MutatorIcon>;
|
|
40
48
|
initView(pointerdownListener: (e: PointerEvent) => void): void;
|
package/core/inputs/input.d.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2012 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Object representing an input (value, statement, or dummy).
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import '../field_label.js';
|
|
7
12
|
import type { Block } from '../block.js';
|
|
8
13
|
import type { BlockSvg } from '../block_svg.js';
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* The class representing an AST node.
|
|
8
|
+
* Used to traverse the Blockly AST.
|
|
9
|
+
*
|
|
10
|
+
* @class
|
|
11
|
+
*/
|
|
6
12
|
import type { Block } from '../block.js';
|
|
7
13
|
import type { Connection } from '../connection.js';
|
|
8
14
|
import type { Field } from '../field.js';
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* The class representing a marker.
|
|
8
|
+
* Used primarily for keyboard navigation to show a marked location.
|
|
9
|
+
*
|
|
10
|
+
* @class
|
|
11
|
+
*/
|
|
6
12
|
import type { MarkerSvg } from '../renderers/common/marker_svg.js';
|
|
7
13
|
import type { ASTNode } from './ast_node.js';
|
|
8
14
|
/**
|
package/core/main.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
export {};
|
|
5
7
|
//# sourceMappingURL=main.d.ts.map
|
package/core/marker_manager.d.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Object in charge of managing markers and the cursor.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import type { Cursor } from './keyboard_nav/cursor.js';
|
|
7
12
|
import type { Marker } from './keyboard_nav/marker.js';
|
|
8
13
|
import type { WorkspaceSvg } from './workspace_svg.js';
|
package/core/menuitem.d.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2021 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Calculates and reports workspace metrics.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import type { IFlyout } from './interfaces/i_flyout.js';
|
|
7
12
|
import type { IMetricsManager } from './interfaces/i_metrics_manager.js';
|
|
8
13
|
import type { IToolbox } from './interfaces/i_toolbox.js';
|
package/core/options.d.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2016 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Object that controls settings for the workspace.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import type { BlocklyOptions } from './blockly_options.js';
|
|
7
12
|
import { Theme } from './theme.js';
|
|
8
13
|
import type { Metrics } from './utils/metrics.js';
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2016 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Components for creating connections between blocks.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import type { Block } from './block.js';
|
|
7
12
|
import type { BlockSvg } from './block_svg.js';
|
|
8
13
|
import { Connection } from './connection.js';
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/** @file Re-exports of Blockly.geras.* modules. */
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
2
7
|
import { ConstantProvider } from './constants.js';
|
|
3
8
|
import { Drawer } from './drawer.js';
|
|
4
9
|
import { HighlightConstantProvider } from './highlight_constants.js';
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/** @file Re-exports of Blockly.minimalist.* modules. */
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
2
7
|
import { ConstantProvider } from './constants.js';
|
|
3
8
|
import { Drawer } from './drawer.js';
|
|
4
9
|
import { RenderInfo } from './info.js';
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/** @file Re-exports of Blockly.thrasos.* modules. */
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
2
7
|
import { RenderInfo } from './info.js';
|
|
3
8
|
import { Renderer } from './renderer.js';
|
|
4
9
|
export { Renderer, RenderInfo };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/** @file Re-exports of Blockly.zelos.* modules. */
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
2
7
|
import { ConstantProvider } from './constants.js';
|
|
3
8
|
import { Drawer } from './drawer.js';
|
|
4
9
|
import { RenderInfo } from './info.js';
|
package/core/scrollbar.d.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2011 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Object representing a scrollbar.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import * as browserEvents from './browser_events.js';
|
|
7
12
|
import { Coordinate } from './utils/coordinate.js';
|
|
8
13
|
import type { Metrics } from './utils/metrics.js';
|
package/core/serialization.d.ts
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* Copyright 2022 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Serialization methods.
|
|
8
|
+
*/
|
|
6
9
|
import * as blocks from './serialization/blocks.js';
|
|
7
10
|
import * as exceptions from './serialization/exceptions.js';
|
|
8
11
|
import * as priorities from './serialization/priorities.js';
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
* Copyright 2020 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* The namespace used to keep track of keyboard shortcuts and the
|
|
8
|
+
* key codes used to execute those shortcuts.
|
|
9
|
+
*
|
|
10
|
+
* @class
|
|
11
|
+
*/
|
|
6
12
|
import { KeyCodes } from './utils/keycodes.js';
|
|
7
13
|
import { WorkspaceSvg } from './workspace_svg.js';
|
|
8
14
|
/**
|
package/core/theme_manager.d.ts
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Object in charge of storing and updating a workspace theme
|
|
8
|
+
* and UI components.
|
|
9
|
+
*
|
|
10
|
+
* @class
|
|
11
|
+
*/
|
|
6
12
|
import type { Theme } from './theme.js';
|
|
7
13
|
import type { Workspace } from './workspace.js';
|
|
8
14
|
import type { WorkspaceSvg } from './workspace_svg.js';
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2020 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* A toolbox category used to organize blocks in the toolbox.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import type { ICollapsibleToolboxItem } from '../interfaces/i_collapsible_toolbox_item.js';
|
|
7
12
|
import type { IToolbox } from '../interfaces/i_toolbox.js';
|
|
8
13
|
import type { IToolboxItem } from '../interfaces/i_toolbox_item.js';
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2020 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Toolbox from whence to create blocks.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import '../events/events_toolbox_item_select.js';
|
|
7
12
|
import * as browserEvents from '../browser_events.js';
|
|
8
13
|
import { DeleteArea } from '../delete_area.js';
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2020 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* An item in the toolbox.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import type { ICollapsibleToolboxItem } from '../interfaces/i_collapsible_toolbox_item.js';
|
|
7
12
|
import type { IToolbox } from '../interfaces/i_toolbox.js';
|
|
8
13
|
import type { IToolboxItem } from '../interfaces/i_toolbox_item.js';
|
package/core/trashcan.d.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2011 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Object representing a trash can icon.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import './events/events_trashcan_open.js';
|
|
7
12
|
import { DeleteArea } from './delete_area.js';
|
|
8
13
|
import type { IAutoHideable } from './interfaces/i_autohideable.js';
|
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Utility methods for coordinate manipulation.
|
|
8
|
+
* These methods are not specific to Blockly, and could be factored out into
|
|
9
|
+
* a JavaScript framework such as Closure.
|
|
10
|
+
*
|
|
11
|
+
* @class
|
|
12
|
+
*/
|
|
6
13
|
/**
|
|
7
14
|
* Class for representing coordinates and positions.
|
|
8
15
|
*/
|
package/core/utils/rect.d.ts
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Utility methods for rectangle manipulation.
|
|
8
|
+
* These methods are not specific to Blockly, and could be factored out into
|
|
9
|
+
* a JavaScript framework such as Closure.
|
|
10
|
+
*
|
|
11
|
+
* @class
|
|
12
|
+
*/
|
|
6
13
|
/**
|
|
7
14
|
* Class for representing rectangular regions.
|
|
8
15
|
*/
|
package/core/utils/size.d.ts
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Utility methods for size calculation.
|
|
8
|
+
* These methods are not specific to Blockly, and could be factored out into
|
|
9
|
+
* a JavaScript framework such as Closure.
|
|
10
|
+
*
|
|
11
|
+
* @class
|
|
12
|
+
*/
|
|
6
13
|
/**
|
|
7
14
|
* Class for representing sizes consisting of a width and height.
|
|
8
15
|
*/
|
package/core/utils/svg.d.ts
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
* Copyright 2020 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Defines the Svg class. Its constants enumerate
|
|
8
|
+
* all SVG tag names used by Blockly.
|
|
9
|
+
*
|
|
10
|
+
* @class
|
|
11
|
+
*/
|
|
6
12
|
/**
|
|
7
13
|
* A name with the type of the SVG element stored in the generic.
|
|
8
14
|
*/
|
package/core/variable_map.d.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Object representing a map of variables and their types.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import './events/events_var_delete.js';
|
|
7
12
|
import './events/events_var_rename.js';
|
|
8
13
|
import type { Block } from './block.js';
|
package/core/variable_model.d.ts
CHANGED
package/core/workspace.d.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2012 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Object representing a workspace.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import './connection_checker.js';
|
|
7
12
|
import type { Block } from './block.js';
|
|
8
13
|
import type { ConnectionDB } from './connection_db.js';
|
|
@@ -122,7 +127,7 @@ export declare class Workspace implements IASTNodeLocation {
|
|
|
122
127
|
* @param ordered Sort the list if true.
|
|
123
128
|
* @returns The top-level block objects.
|
|
124
129
|
*/
|
|
125
|
-
getTopBlocks(ordered
|
|
130
|
+
getTopBlocks(ordered?: boolean): Block[];
|
|
126
131
|
/**
|
|
127
132
|
* Add a block to the list of blocks keyed by type.
|
|
128
133
|
*
|
|
@@ -143,7 +148,7 @@ export declare class Workspace implements IASTNodeLocation {
|
|
|
143
148
|
* @param ordered Sort the list if true.
|
|
144
149
|
* @returns The blocks of the given type.
|
|
145
150
|
*/
|
|
146
|
-
getBlocksByType(type: string, ordered
|
|
151
|
+
getBlocksByType(type: string, ordered?: boolean): Block[];
|
|
147
152
|
/**
|
|
148
153
|
* Adds a comment to the list of top comments.
|
|
149
154
|
*
|
|
@@ -166,7 +171,7 @@ export declare class Workspace implements IASTNodeLocation {
|
|
|
166
171
|
* @returns The top-level comment objects.
|
|
167
172
|
* @internal
|
|
168
173
|
*/
|
|
169
|
-
getTopComments(ordered
|
|
174
|
+
getTopComments(ordered?: boolean): WorkspaceComment[];
|
|
170
175
|
/**
|
|
171
176
|
* Find all blocks in workspace. Blocks are optionally sorted
|
|
172
177
|
* by position; top to bottom (with slight LTR or RTL bias).
|
|
@@ -174,7 +179,7 @@ export declare class Workspace implements IASTNodeLocation {
|
|
|
174
179
|
* @param ordered Sort the list if true.
|
|
175
180
|
* @returns Array of blocks.
|
|
176
181
|
*/
|
|
177
|
-
getAllBlocks(ordered
|
|
182
|
+
getAllBlocks(ordered?: boolean): Block[];
|
|
178
183
|
/** Dispose of all blocks and comments in workspace. */
|
|
179
184
|
clear(): void;
|
|
180
185
|
/**
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Object representing a code comment on a rendered workspace.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import './events/events_selected.js';
|
|
7
12
|
import type { IBoundedElement } from './interfaces/i_bounded_element.js';
|
|
8
13
|
import type { IBubble } from './interfaces/i_bubble.js';
|
package/core/workspace_svg.d.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2014 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Object representing a workspace rendered as SVG.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import './events/events_block_create.js';
|
|
7
12
|
import './events/events_theme_change.js';
|
|
8
13
|
import './events/events_viewport.js';
|
|
@@ -384,6 +389,12 @@ export declare class WorkspaceSvg extends Workspace implements IASTNodeLocationS
|
|
|
384
389
|
* @internal
|
|
385
390
|
*/
|
|
386
391
|
getInjectionDiv(): Element;
|
|
392
|
+
/**
|
|
393
|
+
* Returns the SVG group for the workspace.
|
|
394
|
+
*
|
|
395
|
+
* @returns The SVG group for the workspace.
|
|
396
|
+
*/
|
|
397
|
+
getSvgGroup(): Element;
|
|
387
398
|
/**
|
|
388
399
|
* Get the SVG block canvas for the workspace.
|
|
389
400
|
*
|
|
@@ -802,7 +813,7 @@ export declare class WorkspaceSvg extends Workspace implements IASTNodeLocationS
|
|
|
802
813
|
* @param ordered Sort the list if true.
|
|
803
814
|
* @returns Array of blocks.
|
|
804
815
|
*/
|
|
805
|
-
getAllBlocks(ordered
|
|
816
|
+
getAllBlocks(ordered?: boolean): BlockSvg[];
|
|
806
817
|
/**
|
|
807
818
|
* Finds the top-level blocks and returns them. Blocks are optionally sorted
|
|
808
819
|
* by position; top to bottom (with slight LTR or RTL bias).
|
|
@@ -810,7 +821,7 @@ export declare class WorkspaceSvg extends Workspace implements IASTNodeLocationS
|
|
|
810
821
|
* @param ordered Sort the list if true.
|
|
811
822
|
* @returns The top-level block objects.
|
|
812
823
|
*/
|
|
813
|
-
getTopBlocks(ordered
|
|
824
|
+
getTopBlocks(ordered?: boolean): BlockSvg[];
|
|
814
825
|
/**
|
|
815
826
|
* Adds a block to the list of top blocks.
|
|
816
827
|
*
|
package/core/zoom_controls.d.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Copyright 2015 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Object representing a zoom icons.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
*/
|
|
6
11
|
import './events/events_click.js';
|
|
7
12
|
import type { IPositionable } from './interfaces/i_positionable.js';
|
|
8
13
|
import type { UiMetrics } from './metrics_manager.js';
|