blockly 12.0.0-beta.0 → 12.0.0-beta.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.
Files changed (58) hide show
  1. package/blockly.min.js +264 -250
  2. package/blockly.mjs +1 -0
  3. package/blockly_compressed.js +259 -245
  4. package/blockly_compressed.js.map +1 -1
  5. package/blocks_compressed.js +5 -5
  6. package/blocks_compressed.js.map +1 -1
  7. package/core/block.d.ts +8 -3
  8. package/core/block_flyout_inflater.d.ts +11 -5
  9. package/core/block_svg.d.ts +8 -2
  10. package/core/blockly.d.ts +2 -1
  11. package/core/button_flyout_inflater.d.ts +11 -5
  12. package/core/connection.d.ts +1 -1
  13. package/core/events/events_var_delete.d.ts +0 -2
  14. package/core/events/events_var_rename.d.ts +0 -2
  15. package/core/flyout_base.d.ts +1 -8
  16. package/core/flyout_horizontal.d.ts +2 -1
  17. package/core/flyout_item.d.ts +32 -0
  18. package/core/flyout_vertical.d.ts +2 -1
  19. package/core/interfaces/i_flyout.d.ts +1 -1
  20. package/core/interfaces/i_flyout_inflater.d.ts +13 -4
  21. package/core/interfaces/i_metrics_manager.d.ts +1 -1
  22. package/core/interfaces/i_rendered_element.d.ts +1 -4
  23. package/core/label_flyout_inflater.d.ts +11 -5
  24. package/core/menu.d.ts +1 -3
  25. package/core/metrics_manager.d.ts +1 -1
  26. package/core/procedures.d.ts +7 -4
  27. package/core/renderers/common/renderer.d.ts +1 -1
  28. package/core/renderers/measurables/in_row_spacer.d.ts +1 -0
  29. package/core/renderers/measurables/jagged_edge.d.ts +1 -0
  30. package/core/renderers/measurables/next_connection.d.ts +1 -0
  31. package/core/renderers/measurables/previous_connection.d.ts +1 -0
  32. package/core/renderers/measurables/round_corner.d.ts +1 -0
  33. package/core/renderers/measurables/square_corner.d.ts +1 -0
  34. package/core/renderers/measurables/statement_input.d.ts +1 -0
  35. package/core/renderers/measurables/types.d.ts +49 -24
  36. package/core/separator_flyout_inflater.d.ts +15 -5
  37. package/core/variables.d.ts +18 -4
  38. package/core/variables_dynamic.d.ts +7 -5
  39. package/core/workspace_svg.d.ts +1 -0
  40. package/index.mjs +1 -0
  41. package/media/1x1.gif +0 -0
  42. package/media/click.mp3 +0 -0
  43. package/media/click.ogg +0 -0
  44. package/media/click.wav +0 -0
  45. package/media/delete.mp3 +0 -0
  46. package/media/delete.ogg +0 -0
  47. package/media/delete.wav +0 -0
  48. package/media/disconnect.mp3 +0 -0
  49. package/media/disconnect.ogg +0 -0
  50. package/media/disconnect.wav +0 -0
  51. package/media/handclosed.cur +0 -0
  52. package/media/handdelete.cur +0 -0
  53. package/media/handopen.cur +0 -0
  54. package/media/pilcrow.png +0 -0
  55. package/media/quote0.png +0 -0
  56. package/media/quote1.png +0 -0
  57. package/media/sprites.png +0 -0
  58. package/package.json +1 -1
package/core/block.d.ts CHANGED
@@ -540,6 +540,12 @@ export declare class Block implements IASTNodeLocation {
540
540
  * @returns Named field, or null if field does not exist.
541
541
  */
542
542
  getField(name: string): Field | null;
543
+ /**
544
+ * Returns a generator that provides every field on the block.
545
+ *
546
+ * @yields A generator that can be used to iterate the fields on the block.
547
+ */
548
+ getFields(): Generator<Field>;
543
549
  /**
544
550
  * Return all variables referenced by this block.
545
551
  *
@@ -641,9 +647,8 @@ export declare class Block implements IASTNodeLocation {
641
647
  * @returns True if enabled.
642
648
  */
643
649
  isEnabled(): boolean;
644
- /** @deprecated v11 - Get whether the block is manually disabled. */
650
+ /** @deprecated v11 - Get or sets whether the block is manually disabled. */
645
651
  private get disabled();
646
- /** @deprecated v11 - Set whether the block is manually disabled. */
647
652
  private set disabled(value);
648
653
  /**
649
654
  * @deprecated v11 - Set whether the block is manually enabled or disabled.
@@ -999,7 +1004,7 @@ export declare class Block implements IASTNodeLocation {
999
1004
  *
1000
1005
  * Intended to on be used in console logs and errors. If you need a string
1001
1006
  * that uses the user's native language (including block text, field values,
1002
- * and child blocks), use [toString()]{@link Block#toString}.
1007
+ * and child blocks), use {@link (Block:class).toString | toString()}.
1003
1008
  *
1004
1009
  * @returns The description.
1005
1010
  */
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { BlockSvg } from './block_svg.js';
7
7
  import * as browserEvents from './browser_events.js';
8
- import type { IBoundedElement } from './interfaces/i_bounded_element.js';
8
+ import { FlyoutItem } from './flyout_item.js';
9
9
  import type { IFlyout } from './interfaces/i_flyout.js';
10
10
  import type { IFlyoutInflater } from './interfaces/i_flyout_inflater.js';
11
11
  import type { BlockInfo } from './utils/toolbox.js';
@@ -30,7 +30,7 @@ export declare class BlockFlyoutInflater implements IFlyoutInflater {
30
30
  * @param flyoutWorkspace The workspace to create the block on.
31
31
  * @returns A newly created block.
32
32
  */
33
- load(state: object, flyoutWorkspace: WorkspaceSvg): IBoundedElement;
33
+ load(state: object, flyoutWorkspace: WorkspaceSvg): FlyoutItem;
34
34
  /**
35
35
  * Creates a block on the given workspace.
36
36
  *
@@ -46,13 +46,13 @@ export declare class BlockFlyoutInflater implements IFlyoutInflater {
46
46
  * @param defaultGap The default spacing for flyout items.
47
47
  * @returns The amount of space that should follow this block.
48
48
  */
49
- gapForElement(state: object, defaultGap: number): number;
49
+ gapForItem(state: object, defaultGap: number): number;
50
50
  /**
51
51
  * Disposes of the given block.
52
52
  *
53
- * @param element The flyout block to dispose of.
53
+ * @param item The flyout block to dispose of.
54
54
  */
55
- disposeElement(element: IBoundedElement): void;
55
+ disposeItem(item: FlyoutItem): void;
56
56
  /**
57
57
  * Removes event listeners for the block with the given ID.
58
58
  *
@@ -85,5 +85,11 @@ export declare class BlockFlyoutInflater implements IFlyoutInflater {
85
85
  * @param event The event that triggered this update.
86
86
  */
87
87
  private filterFlyoutBasedOnCapacity;
88
+ /**
89
+ * Returns the type of items this inflater is responsible for creating.
90
+ *
91
+ * @returns An identifier for the type of items this inflater creates.
92
+ */
93
+ getType(): string;
88
94
  }
89
95
  //# sourceMappingURL=block_flyout_inflater.d.ts.map
@@ -132,13 +132,13 @@ export declare class BlockSvg extends Block implements IASTNodeLocationSvg, IBou
132
132
  *
133
133
  * @returns #RRGGBB string.
134
134
  */
135
- getColourSecondary(): string | undefined;
135
+ getColourSecondary(): string;
136
136
  /**
137
137
  * Get the tertiary colour of a block.
138
138
  *
139
139
  * @returns #RRGGBB string.
140
140
  */
141
- getColourTertiary(): string | undefined;
141
+ getColourTertiary(): string;
142
142
  /** Selects this block. Highlights the block visually. */
143
143
  select(): void;
144
144
  /** Unselects this block. Unhighlights the block visually. */
@@ -470,6 +470,12 @@ export declare class BlockSvg extends Block implements IASTNodeLocationSvg, IBou
470
470
  * @throws {Error} if the block style does not exist.
471
471
  */
472
472
  setStyle(blockStyleName: string): void;
473
+ /**
474
+ * Returns the BlockStyle object used to style this block.
475
+ *
476
+ * @returns This block's style object.
477
+ */
478
+ getStyle(): BlockStyle;
473
479
  /**
474
480
  * Move this block to the front of the visible workspace.
475
481
  * <g> tags do not respect z-index so SVG renders them in the
package/core/blockly.d.ts CHANGED
@@ -48,9 +48,10 @@ import { FieldNumber, FieldNumberConfig, FieldNumberFromJsonConfig, FieldNumberV
48
48
  import * as fieldRegistry from './field_registry.js';
49
49
  import { FieldTextInput, FieldTextInputConfig, FieldTextInputFromJsonConfig, FieldTextInputValidator } from './field_textinput.js';
50
50
  import { FieldVariable, FieldVariableConfig, FieldVariableFromJsonConfig, FieldVariableValidator } from './field_variable.js';
51
- import { Flyout, FlyoutItem } from './flyout_base.js';
51
+ import { Flyout } from './flyout_base.js';
52
52
  import { FlyoutButton } from './flyout_button.js';
53
53
  import { HorizontalFlyout } from './flyout_horizontal.js';
54
+ import { FlyoutItem } from './flyout_item.js';
54
55
  import { FlyoutMetricsManager } from './flyout_metrics_manager.js';
55
56
  import { FlyoutSeparator } from './flyout_separator.js';
56
57
  import { VerticalFlyout } from './flyout_vertical.js';
@@ -3,7 +3,7 @@
3
3
  * Copyright 2024 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import type { IBoundedElement } from './interfaces/i_bounded_element.js';
6
+ import { FlyoutItem } from './flyout_item.js';
7
7
  import type { IFlyoutInflater } from './interfaces/i_flyout_inflater.js';
8
8
  import type { WorkspaceSvg } from './workspace_svg.js';
9
9
  /**
@@ -17,7 +17,7 @@ export declare class ButtonFlyoutInflater implements IFlyoutInflater {
17
17
  * @param flyoutWorkspace The workspace to create the button on.
18
18
  * @returns A newly created FlyoutButton.
19
19
  */
20
- load(state: object, flyoutWorkspace: WorkspaceSvg): IBoundedElement;
20
+ load(state: object, flyoutWorkspace: WorkspaceSvg): FlyoutItem;
21
21
  /**
22
22
  * Returns the amount of space that should follow this button.
23
23
  *
@@ -25,12 +25,18 @@ export declare class ButtonFlyoutInflater implements IFlyoutInflater {
25
25
  * @param defaultGap The default spacing for flyout items.
26
26
  * @returns The amount of space that should follow this button.
27
27
  */
28
- gapForElement(state: object, defaultGap: number): number;
28
+ gapForItem(state: object, defaultGap: number): number;
29
29
  /**
30
30
  * Disposes of the given button.
31
31
  *
32
- * @param element The flyout button to dispose of.
32
+ * @param item The flyout button to dispose of.
33
33
  */
34
- disposeElement(element: IBoundedElement): void;
34
+ disposeItem(item: FlyoutItem): void;
35
+ /**
36
+ * Returns the type of items this inflater is responsible for creating.
37
+ *
38
+ * @returns An identifier for the type of items this inflater creates.
39
+ */
40
+ getType(): string;
35
41
  }
36
42
  //# sourceMappingURL=button_flyout_inflater.d.ts.map
@@ -216,7 +216,7 @@ export declare class Connection implements IASTNodeLocationWithBlock {
216
216
  *
217
217
  * Headless configurations (the default) do not have neighboring connection,
218
218
  * and always return an empty list (the default).
219
- * {@link RenderedConnection#neighbours} overrides this behavior with a list
219
+ * {@link (RenderedConnection:class).neighbours} overrides this behavior with a list
220
220
  * computed from the rendered positioning.
221
221
  *
222
222
  * @param _maxLimit The maximum radius to another connection.
@@ -9,8 +9,6 @@ import { VarBase, VarBaseJson } from './events_var_base.js';
9
9
  import { EventType } from './type.js';
10
10
  /**
11
11
  * Notifies listeners that a variable model has been deleted.
12
- *
13
- * @class
14
12
  */
15
13
  export declare class VarDelete extends VarBase {
16
14
  type: EventType;
@@ -9,8 +9,6 @@ import { VarBase, VarBaseJson } from './events_var_base.js';
9
9
  import { EventType } from './type.js';
10
10
  /**
11
11
  * Notifies listeners that a variable model was renamed.
12
- *
13
- * @class
14
12
  */
15
13
  export declare class VarRename extends VarBase {
16
14
  type: EventType;
@@ -10,8 +10,8 @@
10
10
  */
11
11
  import { BlockSvg } from './block_svg.js';
12
12
  import { DeleteArea } from './delete_area.js';
13
+ import { FlyoutItem } from './flyout_item.js';
13
14
  import { IAutoHideable } from './interfaces/i_autohideable.js';
14
- import type { IBoundedElement } from './interfaces/i_bounded_element.js';
15
15
  import type { IFlyout } from './interfaces/i_flyout.js';
16
16
  import type { IFlyoutInflater } from './interfaces/i_flyout_inflater.js';
17
17
  import type { Options } from './options.js';
@@ -400,11 +400,4 @@ export declare abstract class Flyout extends DeleteArea implements IAutoHideable
400
400
  */
401
401
  protected getInflaterForType(type: string): IFlyoutInflater | null;
402
402
  }
403
- /**
404
- * A flyout content item.
405
- */
406
- export interface FlyoutItem {
407
- type: string;
408
- element: IBoundedElement;
409
- }
410
403
  //# sourceMappingURL=flyout_base.d.ts.map
@@ -3,7 +3,8 @@
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Flyout, FlyoutItem } from './flyout_base.js';
6
+ import { Flyout } from './flyout_base.js';
7
+ import type { FlyoutItem } from './flyout_item.js';
7
8
  import type { Options } from './options.js';
8
9
  import type { Coordinate } from './utils/coordinate.js';
9
10
  import { Rect } from './utils/rect.js';
@@ -0,0 +1,32 @@
1
+ import type { IBoundedElement } from './interfaces/i_bounded_element.js';
2
+ /**
3
+ * Representation of an item displayed in a flyout.
4
+ */
5
+ export declare class FlyoutItem {
6
+ private element;
7
+ private type;
8
+ private focusable;
9
+ /**
10
+ * Creates a new FlyoutItem.
11
+ *
12
+ * @param element The element that will be displayed in the flyout.
13
+ * @param type The type of element. Should correspond to the type of the
14
+ * flyout inflater that created this object.
15
+ * @param focusable True if the element should be allowed to be focused by
16
+ * e.g. keyboard navigation in the flyout.
17
+ */
18
+ constructor(element: IBoundedElement, type: string, focusable: boolean);
19
+ /**
20
+ * Returns the element displayed in the flyout.
21
+ */
22
+ getElement(): IBoundedElement;
23
+ /**
24
+ * Returns the type of flyout element this item represents.
25
+ */
26
+ getType(): string;
27
+ /**
28
+ * Returns whether or not the flyout element can receive focus.
29
+ */
30
+ isFocusable(): boolean;
31
+ }
32
+ //# sourceMappingURL=flyout_item.d.ts.map
@@ -3,7 +3,8 @@
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Flyout, FlyoutItem } from './flyout_base.js';
6
+ import { Flyout } from './flyout_base.js';
7
+ import type { FlyoutItem } from './flyout_item.js';
7
8
  import type { Options } from './options.js';
8
9
  import type { Coordinate } from './utils/coordinate.js';
9
10
  import { Rect } from './utils/rect.js';
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { BlockSvg } from '../block_svg.js';
7
- import { FlyoutItem } from '../flyout_base.js';
7
+ import type { FlyoutItem } from '../flyout_item.js';
8
8
  import type { Coordinate } from '../utils/coordinate.js';
9
9
  import type { Svg } from '../utils/svg.js';
10
10
  import type { FlyoutDefinition } from '../utils/toolbox.js';
@@ -1,5 +1,5 @@
1
+ import type { FlyoutItem } from '../flyout_item.js';
1
2
  import type { WorkspaceSvg } from '../workspace_svg.js';
2
- import type { IBoundedElement } from './i_bounded_element.js';
3
3
  export interface IFlyoutInflater {
4
4
  /**
5
5
  * Loads the object represented by the given state onto the workspace.
@@ -15,7 +15,7 @@ export interface IFlyoutInflater {
15
15
  * element, however.
16
16
  * @returns The newly inflated flyout element.
17
17
  */
18
- load(state: object, flyoutWorkspace: WorkspaceSvg): IBoundedElement;
18
+ load(state: object, flyoutWorkspace: WorkspaceSvg): FlyoutItem;
19
19
  /**
20
20
  * Returns the amount of spacing that should follow the element corresponding
21
21
  * to the given JSON representation.
@@ -24,7 +24,7 @@ export interface IFlyoutInflater {
24
24
  * @param defaultGap The default gap for elements in this flyout.
25
25
  * @returns The gap that should follow the given element.
26
26
  */
27
- gapForElement(state: object, defaultGap: number): number;
27
+ gapForItem(state: object, defaultGap: number): number;
28
28
  /**
29
29
  * Disposes of the given element.
30
30
  *
@@ -34,6 +34,15 @@ export interface IFlyoutInflater {
34
34
  *
35
35
  * @param element The flyout element to dispose of.
36
36
  */
37
- disposeElement(element: IBoundedElement): void;
37
+ disposeItem(item: FlyoutItem): void;
38
+ /**
39
+ * Returns the type of items that this inflater is responsible for inflating.
40
+ * This should be the same as the name under which this inflater registers
41
+ * itself, as well as the value returned by `getType()` on the `FlyoutItem`
42
+ * objects returned by `load()`.
43
+ *
44
+ * @returns The type of items this inflater creates.
45
+ */
46
+ getType(): string;
38
47
  }
39
48
  //# sourceMappingURL=i_flyout_inflater.d.ts.map
@@ -47,7 +47,7 @@ export interface IMetricsManager {
47
47
  * Gets the width, height and position of the toolbox on the workspace in
48
48
  * pixel coordinates. Returns 0 for the width and height if the workspace has
49
49
  * a simple toolbox instead of a category toolbox. To get the width and height
50
- * of a simple toolbox, see {@link IMetricsManager#getFlyoutMetrics}.
50
+ * of a simple toolbox, see {@link IMetricsManager.getFlyoutMetrics}.
51
51
  *
52
52
  * @returns The object with the width, height and position of the toolbox.
53
53
  */
@@ -3,17 +3,14 @@
3
3
  * Copyright 2023 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- /** @internal */
7
6
  export interface IRenderedElement {
8
7
  /**
9
- * @returns The root SVG element of htis rendered element.
8
+ * @returns The root SVG element of this rendered element.
10
9
  */
11
10
  getSvgRoot(): SVGElement;
12
11
  }
13
12
  /**
14
13
  * @returns True if the given object is an IRenderedElement.
15
- *
16
- * @internal
17
14
  */
18
15
  export declare function isRenderedElement(obj: any): obj is IRenderedElement;
19
16
  //# sourceMappingURL=i_rendered_element.d.ts.map
@@ -3,7 +3,7 @@
3
3
  * Copyright 2024 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import type { IBoundedElement } from './interfaces/i_bounded_element.js';
6
+ import { FlyoutItem } from './flyout_item.js';
7
7
  import type { IFlyoutInflater } from './interfaces/i_flyout_inflater.js';
8
8
  import type { WorkspaceSvg } from './workspace_svg.js';
9
9
  /**
@@ -17,7 +17,7 @@ export declare class LabelFlyoutInflater implements IFlyoutInflater {
17
17
  * @param flyoutWorkspace The workspace to create the label on.
18
18
  * @returns A FlyoutButton configured as a label.
19
19
  */
20
- load(state: object, flyoutWorkspace: WorkspaceSvg): IBoundedElement;
20
+ load(state: object, flyoutWorkspace: WorkspaceSvg): FlyoutItem;
21
21
  /**
22
22
  * Returns the amount of space that should follow this label.
23
23
  *
@@ -25,12 +25,18 @@ export declare class LabelFlyoutInflater implements IFlyoutInflater {
25
25
  * @param defaultGap The default spacing for flyout items.
26
26
  * @returns The amount of space that should follow this label.
27
27
  */
28
- gapForElement(state: object, defaultGap: number): number;
28
+ gapForItem(state: object, defaultGap: number): number;
29
29
  /**
30
30
  * Disposes of the given label.
31
31
  *
32
- * @param element The flyout label to dispose of.
32
+ * @param item The flyout label to dispose of.
33
33
  */
34
- disposeElement(element: IBoundedElement): void;
34
+ disposeItem(item: FlyoutItem): void;
35
+ /**
36
+ * Returns the type of items this inflater is responsible for creating.
37
+ *
38
+ * @returns An identifier for the type of items this inflater creates.
39
+ */
40
+ getType(): string;
35
41
  }
36
42
  //# sourceMappingURL=label_flyout_inflater.d.ts.map
package/core/menu.d.ts CHANGED
@@ -148,9 +148,7 @@ export declare class Menu {
148
148
  */
149
149
  private handleMouseLeave;
150
150
  /**
151
- * Attempts to handle a keyboard event, if the menu item is enabled, by
152
- * calling
153
- * {@link Menu#handleKeyEventInternal_}.
151
+ * Attempts to handle a keyboard event.
154
152
  *
155
153
  * @param e Key event to handle.
156
154
  */
@@ -48,7 +48,7 @@ export declare class MetricsManager implements IMetricsManager {
48
48
  * Gets the width, height and position of the toolbox on the workspace in
49
49
  * pixel coordinates. Returns 0 for the width and height if the workspace has
50
50
  * a simple toolbox instead of a category toolbox. To get the width and height
51
- * of a simple toolbox, see {@link MetricsManager#getFlyoutMetrics}.
51
+ * of a simple toolbox, see {@link (MetricsManager:class).getFlyoutMetrics}.
52
52
  *
53
53
  * @returns The object with the width, height and position of the toolbox.
54
54
  */
@@ -13,6 +13,7 @@ import { IProcedureBlock, isProcedureBlock } from './interfaces/i_procedure_bloc
13
13
  import { IProcedureMap } from './interfaces/i_procedure_map.js';
14
14
  import { IProcedureModel } from './interfaces/i_procedure_model.js';
15
15
  import { ObservableProcedureMap } from './observable_procedure_map.js';
16
+ import type { FlyoutItemInfo } from './utils/toolbox.js';
16
17
  import type { Workspace } from './workspace.js';
17
18
  import type { WorkspaceSvg } from './workspace_svg.js';
18
19
  /**
@@ -64,12 +65,14 @@ export declare function isNameUsed(name: string, workspace: Workspace, opt_exclu
64
65
  */
65
66
  export declare function rename(this: Field, name: string): string;
66
67
  /**
67
- * Construct the blocks required by the flyout for the procedure category.
68
+ * Internal wrapper that returns the contents of the procedure category.
68
69
  *
69
- * @param workspace The workspace containing procedures.
70
- * @returns Array of XML block elements.
70
+ * @internal
71
+ * @param workspace The workspace to populate procedure blocks for.
71
72
  */
72
- export declare function flyoutCategory(workspace: WorkspaceSvg): Element[];
73
+ export declare function internalFlyoutCategory(workspace: WorkspaceSvg): FlyoutItemInfo[];
74
+ export declare function flyoutCategory(workspace: WorkspaceSvg, useXml: true): Element[];
75
+ export declare function flyoutCategory(workspace: WorkspaceSvg, useXml: false): FlyoutItemInfo[];
73
76
  /**
74
77
  * Listens for when a procedure mutator is opened. Then it triggers a flyout
75
78
  * update and adds a mutator change listener to the mutator workspace.
@@ -47,7 +47,7 @@ export declare class Renderer implements IRegistrable {
47
47
  /**
48
48
  * Create any DOM elements that this renderer needs.
49
49
  * If you need to create additional DOM elements, override the
50
- * {@link ConstantProvider#createDom} method instead.
50
+ * {@link blockRendering#ConstantProvider.createDom} method instead.
51
51
  *
52
52
  * @param svg The root of the workspace's SVG.
53
53
  * @param theme The workspace theme object.
@@ -10,6 +10,7 @@ import { Measurable } from './base.js';
10
10
  * row.
11
11
  */
12
12
  export declare class InRowSpacer extends Measurable {
13
+ private inRowSpacer;
13
14
  /**
14
15
  * @param constants The rendering constants provider.
15
16
  * @param width The width of the spacer.
@@ -10,6 +10,7 @@ import { Measurable } from './base.js';
10
10
  * collapsed block takes up during rendering.
11
11
  */
12
12
  export declare class JaggedEdge extends Measurable {
13
+ private jaggedEdge;
13
14
  /**
14
15
  * @param constants The rendering constants provider.
15
16
  */
@@ -11,6 +11,7 @@ import { Connection } from './connection.js';
11
11
  * up during rendering.
12
12
  */
13
13
  export declare class NextConnection extends Connection {
14
+ private nextConnection;
14
15
  /**
15
16
  * @param constants The rendering constants provider.
16
17
  * @param connectionModel The connection object on the block that this
@@ -11,6 +11,7 @@ import { Connection } from './connection.js';
11
11
  * up during rendering.
12
12
  */
13
13
  export declare class PreviousConnection extends Connection {
14
+ private previousConnection;
14
15
  /**
15
16
  * @param constants The rendering constants provider.
16
17
  * @param connectionModel The connection object on the block that this
@@ -10,6 +10,7 @@ import { Measurable } from './base.js';
10
10
  * during rendering.
11
11
  */
12
12
  export declare class RoundCorner extends Measurable {
13
+ private roundCorner;
13
14
  /**
14
15
  * @param constants The rendering constants provider.
15
16
  * @param opt_position The position of this corner.
@@ -10,6 +10,7 @@ import { Measurable } from './base.js';
10
10
  * during rendering.
11
11
  */
12
12
  export declare class SquareCorner extends Measurable {
13
+ private squareCorner;
13
14
  /**
14
15
  * @param constants The rendering constants provider.
15
16
  * @param opt_position The position of this corner.
@@ -11,6 +11,7 @@ import { InputConnection } from './input_connection.js';
11
11
  * during rendering
12
12
  */
13
13
  export declare class StatementInput extends InputConnection {
14
+ private statementInput;
14
15
  /**
15
16
  * @param constants The rendering constants provider.
16
17
  * @param input The statement input to measure and store information for.