blockly 11.0.0-beta.0 → 11.0.0-beta.10
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 +852 -891
- package/blockly_compressed.js +794 -796
- package/blockly_compressed.js.map +1 -1
- package/blocks.js +4 -22
- package/blocks_compressed.js +38 -41
- package/blocks_compressed.js.map +1 -1
- package/core/block.d.ts +58 -10
- package/core/block_svg.d.ts +50 -44
- package/core/blockly.d.ts +22 -56
- package/core/bubbles/bubble.d.ts +17 -2
- package/core/bubbles/mini_workspace_bubble.d.ts +1 -1
- package/core/bubbles/text_bubble.d.ts +1 -1
- package/core/bubbles/textinput_bubble.d.ts +1 -1
- package/core/clipboard/workspace_comment_paster.d.ts +5 -4
- package/core/clipboard.d.ts +0 -19
- package/core/comments/comment_view.d.ts +217 -0
- package/core/comments/rendered_workspace_comment.d.ts +90 -0
- package/core/comments/workspace_comment.d.ts +107 -0
- package/core/comments.d.ts +9 -0
- package/core/connection.d.ts +1 -1
- package/core/constants.d.ts +5 -0
- package/core/contextmenu.d.ts +1 -34
- package/core/contextmenu_items.d.ts +8 -0
- package/core/contextmenu_registry.d.ts +18 -3
- package/core/delete_area.d.ts +1 -2
- package/core/dragging/block_drag_strategy.d.ts +105 -0
- package/core/dragging/bubble_drag_strategy.d.ts +20 -0
- package/core/dragging/comment_drag_strategy.d.ts +21 -0
- package/core/dragging/dragger.d.ts +48 -0
- package/core/dragging.d.ts +11 -0
- package/core/events/events.d.ts +3 -0
- package/core/events/events_block_change.d.ts +15 -0
- package/core/events/events_click.d.ts +1 -1
- package/core/events/events_comment_base.d.ts +6 -1
- package/core/events/events_comment_change.d.ts +1 -1
- package/core/events/events_comment_collapse.d.ts +39 -0
- package/core/events/events_comment_create.d.ts +5 -1
- package/core/events/events_comment_delete.d.ts +5 -1
- package/core/events/events_comment_move.d.ts +17 -1
- package/core/events/utils.d.ts +3 -3
- package/core/field_dropdown.d.ts +1 -0
- package/core/field_image.d.ts +1 -1
- package/core/flyout_base.d.ts +17 -1
- package/core/flyout_button.d.ts +26 -1
- package/core/generator.d.ts +1 -1
- package/core/gesture.d.ts +29 -53
- package/core/grid.d.ts +29 -8
- package/core/icons/comment_icon.d.ts +8 -3
- package/core/icons/icon.d.ts +0 -6
- package/core/icons/icon_types.d.ts +2 -2
- package/core/icons/mutator_icon.d.ts +1 -16
- package/core/icons/warning_icon.d.ts +1 -1
- package/core/inputs/input.d.ts +10 -19
- package/core/insertion_marker_manager.d.ts +2 -0
- package/core/insertion_marker_previewer.d.ts +56 -0
- package/core/interfaces/i_comment_icon.d.ts +21 -0
- package/core/interfaces/i_connection_previewer.d.ts +39 -0
- package/core/interfaces/i_deletable.d.ts +6 -0
- package/core/interfaces/i_delete_area.d.ts +1 -2
- package/core/interfaces/i_draggable.d.ts +47 -3
- package/core/interfaces/i_dragger.d.ts +32 -0
- package/core/interfaces/i_has_bubble.d.ts +1 -1
- package/core/interfaces/i_parameter_model.d.ts +7 -0
- package/core/interfaces/i_procedure_model.d.ts +7 -0
- package/core/interfaces/i_selectable.d.ts +5 -3
- package/core/internal_constants.d.ts +0 -7
- package/core/keyboard_nav/ast_node.d.ts +21 -2
- package/core/options.d.ts +1 -0
- package/core/registry.d.ts +10 -4
- package/core/render_management.d.ts +4 -1
- package/core/rendered_connection.d.ts +3 -1
- package/core/renderers/common/constants.d.ts +6 -2
- package/core/renderers/common/drawer.d.ts +18 -7
- package/core/renderers/common/i_path_object.d.ts +6 -15
- package/core/renderers/common/info.d.ts +5 -2
- package/core/renderers/common/marker_svg.d.ts +7 -0
- package/core/renderers/common/path_object.d.ts +13 -0
- package/core/renderers/common/renderer.d.ts +3 -0
- package/core/renderers/measurables/connection.d.ts +1 -0
- package/core/renderers/measurables/icon.d.ts +0 -5
- package/core/renderers/zelos/drawer.d.ts +4 -0
- package/core/renderers/zelos/renderer.d.ts +4 -2
- package/core/serialization/blocks.d.ts +1 -0
- package/core/serialization/priorities.d.ts +2 -0
- package/core/serialization/procedures.d.ts +28 -26
- package/core/serialization/workspace_comments.d.ts +45 -0
- package/core/serialization.d.ts +2 -1
- package/core/toolbox/toolbox.d.ts +1 -2
- package/core/utils/dom.d.ts +0 -9
- package/core/utils/keycodes.d.ts +32 -32
- package/core/utils/size.d.ts +10 -0
- package/core/utils/string.d.ts +0 -10
- package/core/utils/toolbox.d.ts +1 -0
- package/core/workspace.d.ts +9 -1
- package/core/workspace_audio.d.ts +10 -0
- package/core/workspace_svg.d.ts +10 -32
- package/core/xml.d.ts +9 -3
- package/core-node.js +31 -0
- package/core.js +4 -26
- package/dart.d.ts +1 -1
- package/dart.js +4 -22
- package/dart_compressed.js +22 -72
- package/dart_compressed.js.map +1 -1
- package/generators/dart/dart_generator.d.ts +17 -17
- package/generators/dart/text.d.ts +0 -1
- package/generators/javascript/javascript_generator.d.ts +34 -35
- package/generators/javascript/text.d.ts +0 -1
- package/generators/lua/lua_generator.d.ts +10 -10
- package/generators/lua/text.d.ts +0 -1
- package/generators/php/php_generator.d.ts +36 -36
- package/generators/php/text.d.ts +0 -1
- package/generators/python/python_generator.d.ts +20 -21
- package/generators/python/text.d.ts +0 -1
- package/index.js +19 -7
- package/javascript.d.ts +1 -1
- package/javascript.js +4 -23
- package/javascript_compressed.js +19 -54
- package/javascript_compressed.js.map +1 -1
- package/lua.d.ts +1 -1
- package/lua.js +4 -22
- package/lua_compressed.js +24 -47
- package/lua_compressed.js.map +1 -1
- package/media/delete-icon.svg +1 -0
- package/media/foldout-icon.svg +1 -0
- package/media/resize-handle.svg +3 -0
- package/msg/ab.js +1 -0
- package/msg/ace.js +1 -0
- package/msg/af.js +1 -0
- package/msg/am.js +1 -0
- package/msg/ar.js +2 -1
- package/msg/ast.js +1 -0
- package/msg/az.js +1 -0
- package/msg/ba.js +1 -0
- package/msg/bcc.js +1 -0
- package/msg/be-tarask.js +9 -8
- package/msg/be.js +1 -0
- package/msg/bg.js +1 -0
- package/msg/bn.js +6 -5
- package/msg/br.js +1 -0
- package/msg/bs.js +1 -0
- package/msg/ca.js +1 -0
- package/msg/cdo.js +1 -0
- package/msg/ce.d.ts +8 -0
- package/msg/ce.js +1 -0
- package/msg/cs.js +1 -0
- package/msg/da.js +5 -4
- package/msg/de.js +1 -0
- package/msg/diq.js +1 -0
- package/msg/dtp.d.ts +8 -0
- package/msg/dtp.js +1 -0
- package/msg/dty.js +1 -0
- package/msg/ee.js +1 -0
- package/msg/el.js +2 -1
- package/msg/en-gb.js +1 -0
- package/msg/en.js +1 -0
- package/msg/eo.js +1 -0
- package/msg/es.js +1 -0
- package/msg/et.js +1 -0
- package/msg/eu.js +1 -0
- package/msg/fa.js +1 -0
- package/msg/fi.js +1 -0
- package/msg/fo.js +1 -0
- package/msg/fr.js +1 -0
- package/msg/frr.js +1 -0
- package/msg/gl.js +1 -0
- package/msg/gn.js +1 -0
- package/msg/gor.js +1 -0
- package/msg/ha.js +1 -0
- package/msg/hak.js +1 -0
- package/msg/he.js +2 -1
- package/msg/hi.js +1 -0
- package/msg/hr.js +1 -0
- package/msg/hrx.js +1 -0
- package/msg/hsb.d.ts +8 -0
- package/msg/hsb.js +1 -0
- package/msg/hu.js +1 -0
- package/msg/hy.js +1 -0
- package/msg/ia.js +1 -0
- package/msg/id.js +7 -6
- package/msg/ig.js +1 -0
- package/msg/inh.js +4 -3
- package/msg/is.js +1 -0
- package/msg/it.js +1 -0
- package/msg/ja.js +2 -1
- package/msg/ka.js +1 -0
- package/msg/kab.js +1 -0
- package/msg/kbd-cyrl.js +1 -0
- package/msg/km.js +1 -0
- package/msg/kn.js +1 -0
- package/msg/ko.js +1 -0
- package/msg/ksh.js +1 -0
- package/msg/ku-latn.js +1 -0
- package/msg/ky.js +1 -0
- package/msg/la.js +1 -0
- package/msg/lb.js +1 -0
- package/msg/lki.js +1 -0
- package/msg/lo.js +1 -0
- package/msg/lrc.js +1 -0
- package/msg/lt.js +1 -0
- package/msg/lv.js +1 -0
- package/msg/mg.js +1 -0
- package/msg/mk.js +1 -0
- package/msg/ml.js +1 -0
- package/msg/mnw.js +1 -0
- package/msg/ms.js +1 -0
- package/msg/my.js +1 -0
- package/msg/mzn.js +1 -0
- package/msg/nb.js +1 -0
- package/msg/ne.js +1 -0
- package/msg/nl.js +4 -3
- package/msg/oc.js +1 -0
- package/msg/olo.js +1 -0
- package/msg/pa.js +1 -0
- package/msg/pl.js +1 -0
- package/msg/pms.js +1 -0
- package/msg/ps.js +1 -0
- package/msg/pt-br.js +1 -0
- package/msg/pt.js +2 -1
- package/msg/ro.js +1 -0
- package/msg/ru.js +1 -0
- package/msg/sc.js +1 -0
- package/msg/sco.js +1 -0
- package/msg/sd.js +1 -0
- package/msg/shn.js +1 -0
- package/msg/si.js +1 -0
- package/msg/sk.js +1 -0
- package/msg/skr-arab.js +1 -0
- package/msg/sl.js +1 -0
- package/msg/smn.js +1 -0
- package/msg/sq.js +1 -0
- package/msg/sr-latn.js +1 -0
- package/msg/sr.js +1 -0
- package/msg/sv.js +1 -0
- package/msg/sw.js +1 -0
- package/msg/ta.js +3 -2
- package/msg/tcy.js +1 -0
- package/msg/tdd.d.ts +8 -0
- package/msg/tdd.js +1 -0
- package/msg/te.js +1 -0
- package/msg/th.js +1 -0
- package/msg/ti.js +1 -0
- package/msg/tl.js +3 -2
- package/msg/tlh.js +1 -0
- package/msg/tr.js +1 -0
- package/msg/ug-arab.js +1 -0
- package/msg/uk.js +1 -0
- package/msg/ur.js +3 -2
- package/msg/uz.js +1 -0
- package/msg/vi.js +1 -0
- package/msg/xmf.js +1 -0
- package/msg/yo.js +1 -0
- package/msg/zgh.js +1 -0
- package/msg/zh-hans.js +1 -0
- package/msg/zh-hant.js +15 -14
- package/package.json +49 -15
- package/php.d.ts +1 -1
- package/php.js +4 -22
- package/php_compressed.js +13 -46
- package/php_compressed.js.map +1 -1
- package/python.d.ts +1 -1
- package/python.js +4 -23
- package/python_compressed.js +21 -40
- package/python_compressed.js.map +1 -1
- package/blockly.js +0 -22
- package/browser.js +0 -30
- package/core/block_dragger.d.ts +0 -162
- package/core/bubble_dragger.d.ts +0 -77
- package/core/field_angle.d.ts +0 -208
- package/core/field_colour.d.ts +0 -243
- package/core/field_multilineinput.d.ts +0 -182
- package/core/interfaces/i_block_dragger.d.ts +0 -47
- package/core/renderers/minimalist/constants.d.ts +0 -21
- package/core/renderers/minimalist/drawer.d.ts +0 -26
- package/core/renderers/minimalist/info.d.ts +0 -35
- package/core/renderers/minimalist/minimalist.d.ts +0 -12
- package/core/renderers/minimalist/renderer.d.ts +0 -48
- package/core/workspace_comment.d.ts +0 -190
- package/core/workspace_comment_svg.d.ts +0 -361
- package/core-browser.js +0 -26
- package/generators/dart/colour.d.ts +0 -16
- package/generators/javascript/colour.d.ts +0 -16
- package/generators/lua/colour.d.ts +0 -16
- package/generators/php/colour.d.ts +0 -16
- package/generators/python/colour.d.ts +0 -16
- package/msg/constants.d.ts +0 -14
- package/msg/qqq.d.ts +0 -14
- package/msg/synonyms.d.ts +0 -14
- package/msg/yue.js +0 -441
- package/node.js +0 -21
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright 2022 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
import { ParameterState } from '../serialization/procedures';
|
|
6
7
|
import { IProcedureModel } from './i_procedure_model';
|
|
7
8
|
/**
|
|
8
9
|
* A data model for a procedure.
|
|
@@ -33,5 +34,11 @@ export interface IParameterModel {
|
|
|
33
34
|
getId(): string;
|
|
34
35
|
/** Sets the procedure model this parameter is associated with. */
|
|
35
36
|
setProcedureModel(model: IProcedureModel): this;
|
|
37
|
+
/**
|
|
38
|
+
* Serializes the state of the parameter to JSON.
|
|
39
|
+
*
|
|
40
|
+
* @returns JSON serializable state of the parameter.
|
|
41
|
+
*/
|
|
42
|
+
saveState(): ParameterState;
|
|
36
43
|
}
|
|
37
44
|
//# sourceMappingURL=i_parameter_model.d.ts.map
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright 2022 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
+
import { State } from '../serialization/procedures.js';
|
|
6
7
|
import { IParameterModel } from './i_parameter_model.js';
|
|
7
8
|
/**
|
|
8
9
|
* A data model for a procedure.
|
|
@@ -48,5 +49,11 @@ export interface IProcedureModel {
|
|
|
48
49
|
* disabled, all procedure caller blocks should be disabled as well.
|
|
49
50
|
*/
|
|
50
51
|
getEnabled(): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Serializes the state of the procedure to JSON.
|
|
54
|
+
*
|
|
55
|
+
* @returns JSON serializable state of the procedure.
|
|
56
|
+
*/
|
|
57
|
+
saveState(): State;
|
|
51
58
|
}
|
|
52
59
|
//# sourceMappingURL=i_procedure_model.d.ts.map
|
|
@@ -3,16 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import type {
|
|
7
|
-
import type { IMovable } from './i_movable.js';
|
|
6
|
+
import type { Workspace } from '../workspace.js';
|
|
8
7
|
/**
|
|
9
8
|
* The interface for an object that is selectable.
|
|
10
9
|
*/
|
|
11
|
-
export interface ISelectable
|
|
10
|
+
export interface ISelectable {
|
|
12
11
|
id: string;
|
|
12
|
+
workspace: Workspace;
|
|
13
13
|
/** Select this. Highlight it visually. */
|
|
14
14
|
select(): void;
|
|
15
15
|
/** Unselect this. Unhighlight it visually. */
|
|
16
16
|
unselect(): void;
|
|
17
17
|
}
|
|
18
|
+
/** Checks whether the given object is an ISelectable. */
|
|
19
|
+
export declare function isSelectable(obj: Object): obj is ISelectable;
|
|
18
20
|
//# sourceMappingURL=i_selectable.d.ts.map
|
|
@@ -9,13 +9,6 @@
|
|
|
9
9
|
* @internal
|
|
10
10
|
*/
|
|
11
11
|
export declare const COLLAPSE_CHARS = 30;
|
|
12
|
-
/**
|
|
13
|
-
* When dragging a block out of a stack, split the stack in two (true), or drag
|
|
14
|
-
* out the block healing the stack (false).
|
|
15
|
-
*
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
export declare const DRAG_STACK = true;
|
|
19
12
|
/**
|
|
20
13
|
* Lookup table for determining the opposite type of a connection.
|
|
21
14
|
*
|
|
@@ -16,6 +16,7 @@ import type { Input } from '../inputs/input.js';
|
|
|
16
16
|
import type { IASTNodeLocation } from '../interfaces/i_ast_node_location.js';
|
|
17
17
|
import { Coordinate } from '../utils/coordinate.js';
|
|
18
18
|
import type { Workspace } from '../workspace.js';
|
|
19
|
+
import { FlyoutButton } from '../flyout_button.js';
|
|
19
20
|
/**
|
|
20
21
|
* Class for an AST node.
|
|
21
22
|
* It is recommended that you use one of the createNode methods instead of
|
|
@@ -119,6 +120,13 @@ export declare class ASTNode {
|
|
|
119
120
|
* on the workspace.
|
|
120
121
|
*/
|
|
121
122
|
private navigateBetweenStacks;
|
|
123
|
+
/**
|
|
124
|
+
* Navigate between buttons and stacks of blocks on the flyout workspace.
|
|
125
|
+
*
|
|
126
|
+
* @param forward True to go forward. False to go backwards.
|
|
127
|
+
* @returns The next button, or next stack's first block, or null
|
|
128
|
+
*/
|
|
129
|
+
private navigateFlyoutContents;
|
|
122
130
|
/**
|
|
123
131
|
* Finds the top most AST node for a given block.
|
|
124
132
|
* This is either the previous connection, output connection or block
|
|
@@ -150,7 +158,7 @@ export declare class ASTNode {
|
|
|
150
158
|
* Finds the source block of the location of this node.
|
|
151
159
|
*
|
|
152
160
|
* @returns The source block of the location, or null if the node is of type
|
|
153
|
-
* workspace.
|
|
161
|
+
* workspace or button.
|
|
154
162
|
*/
|
|
155
163
|
getSourceBlock(): Block | null;
|
|
156
164
|
/**
|
|
@@ -232,6 +240,16 @@ export declare class ASTNode {
|
|
|
232
240
|
* stack.
|
|
233
241
|
*/
|
|
234
242
|
static createStackNode(topBlock: Block): ASTNode | null;
|
|
243
|
+
/**
|
|
244
|
+
* Create an AST node of type button. A button in this case refers
|
|
245
|
+
* specifically to a button in a flyout.
|
|
246
|
+
*
|
|
247
|
+
* @param button A top block has no parent and can be found in the list
|
|
248
|
+
* returned by workspace.getTopBlocks().
|
|
249
|
+
* @returns An AST node of type stack that points to the top block on the
|
|
250
|
+
* stack.
|
|
251
|
+
*/
|
|
252
|
+
static createButtonNode(button: FlyoutButton): ASTNode | null;
|
|
235
253
|
/**
|
|
236
254
|
* Creates an AST node pointing to a workspace.
|
|
237
255
|
*
|
|
@@ -262,7 +280,8 @@ export declare namespace ASTNode {
|
|
|
262
280
|
NEXT = "next",
|
|
263
281
|
PREVIOUS = "previous",
|
|
264
282
|
STACK = "stack",
|
|
265
|
-
WORKSPACE = "workspace"
|
|
283
|
+
WORKSPACE = "workspace",
|
|
284
|
+
BUTTON = "button"
|
|
266
285
|
}
|
|
267
286
|
}
|
|
268
287
|
export type Params = ASTNode.Params;
|
package/core/options.d.ts
CHANGED
package/core/registry.d.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { Abstract } from './events/events_abstract.js';
|
|
7
7
|
import type { Field } from './field.js';
|
|
8
|
-
import type { IBlockDragger } from './interfaces/i_block_dragger.js';
|
|
9
8
|
import type { IConnectionChecker } from './interfaces/i_connection_checker.js';
|
|
10
9
|
import type { IFlyout } from './interfaces/i_flyout.js';
|
|
11
10
|
import type { IMetricsManager } from './interfaces/i_metrics_manager.js';
|
|
@@ -18,8 +17,10 @@ import type { Options } from './options.js';
|
|
|
18
17
|
import type { Renderer } from './renderers/common/renderer.js';
|
|
19
18
|
import type { Theme } from './theme.js';
|
|
20
19
|
import type { ToolboxItem } from './toolbox/toolbox_item.js';
|
|
21
|
-
import { IPaster } from './interfaces/i_paster.js';
|
|
22
|
-
import { ICopyable } from './interfaces/i_copyable.js';
|
|
20
|
+
import type { IPaster } from './interfaces/i_paster.js';
|
|
21
|
+
import type { ICopyable } from './interfaces/i_copyable.js';
|
|
22
|
+
import type { IConnectionPreviewer } from './interfaces/i_connection_previewer.js';
|
|
23
|
+
import type { IDragger } from './interfaces/i_dragger.js';
|
|
23
24
|
export declare const TEST_ONLY: {
|
|
24
25
|
typeMap: {
|
|
25
26
|
[key: string]: {
|
|
@@ -45,6 +46,7 @@ export declare class Type<_T> {
|
|
|
45
46
|
*/
|
|
46
47
|
toString(): string;
|
|
47
48
|
static CONNECTION_CHECKER: Type<IConnectionChecker>;
|
|
49
|
+
static CONNECTION_PREVIEWER: Type<IConnectionPreviewer>;
|
|
48
50
|
static CURSOR: Type<Cursor>;
|
|
49
51
|
static EVENT: Type<Abstract>;
|
|
50
52
|
static FIELD: Type<Field<any>>;
|
|
@@ -56,7 +58,11 @@ export declare class Type<_T> {
|
|
|
56
58
|
static FLYOUTS_VERTICAL_TOOLBOX: Type<IFlyout>;
|
|
57
59
|
static FLYOUTS_HORIZONTAL_TOOLBOX: Type<IFlyout>;
|
|
58
60
|
static METRICS_MANAGER: Type<IMetricsManager>;
|
|
59
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Type for an IDragger. Formerly behavior was mostly covered by
|
|
63
|
+
* BlockDraggeers, which is why the name is inaccurate.
|
|
64
|
+
*/
|
|
65
|
+
static BLOCK_DRAGGER: Type<IDragger>;
|
|
60
66
|
/** @internal */
|
|
61
67
|
static SERIALIZER: Type<ISerializer>;
|
|
62
68
|
/** @internal */
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { BlockSvg } from './block_svg.js';
|
|
7
|
+
import type { WorkspaceSvg } from './workspace_svg.js';
|
|
7
8
|
/**
|
|
8
9
|
* Registers that the given block and all of its parents need to be rerendered,
|
|
9
10
|
* and registers a callback to do so after a delay, to allowf or batching.
|
|
@@ -25,7 +26,9 @@ export declare function finishQueuedRenders(): Promise<void>;
|
|
|
25
26
|
* cases where queueing renders breaks functionality + backwards compatibility
|
|
26
27
|
* (such as rendering icons).
|
|
27
28
|
*
|
|
29
|
+
* @param workspace If provided, only rerender blocks in this workspace.
|
|
30
|
+
*
|
|
28
31
|
* @internal
|
|
29
32
|
*/
|
|
30
|
-
export declare function triggerQueuedRenders(): void;
|
|
33
|
+
export declare function triggerQueuedRenders(workspace?: WorkspaceSvg): void;
|
|
31
34
|
//# sourceMappingURL=render_management.d.ts.map
|
|
@@ -21,7 +21,7 @@ export declare class RenderedConnection extends Connection {
|
|
|
21
21
|
private readonly dbOpposite;
|
|
22
22
|
private readonly offsetInBlock;
|
|
23
23
|
private trackedState;
|
|
24
|
-
private
|
|
24
|
+
private highlighted;
|
|
25
25
|
/** Connection this connection connects to. Null if not connected. */
|
|
26
26
|
targetConnection: RenderedConnection | null;
|
|
27
27
|
/**
|
|
@@ -130,6 +130,8 @@ export declare class RenderedConnection extends Connection {
|
|
|
130
130
|
highlight(): void;
|
|
131
131
|
/** Remove the highlighting around this connection. */
|
|
132
132
|
unhighlight(): void;
|
|
133
|
+
/** Returns true if this connection is highlighted, false otherwise. */
|
|
134
|
+
isHighlighted(): boolean;
|
|
133
135
|
/**
|
|
134
136
|
* Set whether this connections is tracked in the database or not.
|
|
135
137
|
*
|
|
@@ -39,8 +39,8 @@ export interface PuzzleTab {
|
|
|
39
39
|
type: number;
|
|
40
40
|
width: number;
|
|
41
41
|
height: number;
|
|
42
|
-
pathDown: string
|
|
43
|
-
pathUp: string
|
|
42
|
+
pathDown: string;
|
|
43
|
+
pathUp: string;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* An object containing sizing and path information about collapsed block
|
|
@@ -78,6 +78,10 @@ export type Shape = BaseShape | DynamicShape;
|
|
|
78
78
|
* @returns Whether the shape is a dynamic shape or not.
|
|
79
79
|
*/
|
|
80
80
|
export declare function isDynamicShape(shape: Shape): shape is DynamicShape;
|
|
81
|
+
/** Returns whether the shape is a puzzle tab or not. */
|
|
82
|
+
export declare function isPuzzleTab(shape: Shape): shape is PuzzleTab;
|
|
83
|
+
/** Returns whether the shape is a notch or not. */
|
|
84
|
+
export declare function isNotch(shape: Shape): shape is Notch;
|
|
81
85
|
/**
|
|
82
86
|
* An object that provides constants for rendering blocks.
|
|
83
87
|
*/
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { BlockSvg } from '../../block_svg.js';
|
|
7
7
|
import { Coordinate } from '../../utils.js';
|
|
8
|
+
import { Connection } from '../measurables/connection.js';
|
|
8
9
|
import type { Field } from '../measurables/field.js';
|
|
9
10
|
import type { Icon } from '../measurables/icon.js';
|
|
10
11
|
import type { InlineInput } from '../measurables/inline_input.js';
|
|
@@ -37,13 +38,6 @@ export declare class Drawer {
|
|
|
37
38
|
* required.
|
|
38
39
|
*/
|
|
39
40
|
draw(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Hide icons that were marked as hidden.
|
|
42
|
-
*
|
|
43
|
-
* @deprecated Manually hiding icons is no longer necessary. To be removed
|
|
44
|
-
* in v11.
|
|
45
|
-
*/
|
|
46
|
-
protected hideHiddenIcons_(): void;
|
|
47
41
|
/**
|
|
48
42
|
* Save sizing information back to the block
|
|
49
43
|
* Most of the rendering information can be thrown away at the end of the
|
|
@@ -141,5 +135,22 @@ export declare class Drawer {
|
|
|
141
135
|
protected positionNextConnection_(): void;
|
|
142
136
|
/** Position the output connection on a block. */
|
|
143
137
|
protected positionOutputConnection_(): void;
|
|
138
|
+
/**
|
|
139
|
+
* Updates the path object to reflect which connections on the block are
|
|
140
|
+
* highlighted.
|
|
141
|
+
*/
|
|
142
|
+
protected updateConnectionHighlights(): void;
|
|
143
|
+
/** Returns a path to highlight the given connection. */
|
|
144
|
+
drawConnectionHighlightPath(measurable: Connection): void;
|
|
145
|
+
/**
|
|
146
|
+
* Returns a path to highlight the given conneciton, assuming it is an
|
|
147
|
+
* input or output connection.
|
|
148
|
+
*/
|
|
149
|
+
private getExpressionConnectionHighlightPath;
|
|
150
|
+
/**
|
|
151
|
+
* Returns a path to highlight the given conneciton, assuming it is a
|
|
152
|
+
* next or previous connection.
|
|
153
|
+
*/
|
|
154
|
+
private getStatementConnectionHighlightPath;
|
|
144
155
|
}
|
|
145
156
|
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
import type { BlockStyle } from '../../theme.js';
|
|
7
7
|
import type { BlockSvg } from '../../block_svg.js';
|
|
8
8
|
import type { ConstantProvider } from './constants.js';
|
|
9
|
-
import { RenderedConnection } from '../../rendered_connection.js';
|
|
9
|
+
import type { RenderedConnection } from '../../rendered_connection.js';
|
|
10
|
+
import type { Coordinate } from '../../utils/coordinate.js';
|
|
10
11
|
/**
|
|
11
12
|
* An interface for a block's path object.
|
|
12
13
|
*
|
|
@@ -101,21 +102,11 @@ export interface IPathObject {
|
|
|
101
102
|
* @param enable True if the block is movable, false otherwise.
|
|
102
103
|
*/
|
|
103
104
|
updateMovable(enabled: boolean): void;
|
|
105
|
+
/** Adds the given path as a connection highlight for the given connection. */
|
|
106
|
+
addConnectionHighlight?(connection: RenderedConnection, connectionPath: string, offset: Coordinate, rtl: boolean): void;
|
|
104
107
|
/**
|
|
105
|
-
*
|
|
106
|
-
* this block will be replaced. If a shadow block, it will disappear.
|
|
107
|
-
* Otherwise it will bump.
|
|
108
|
-
*
|
|
109
|
-
* @param enable True if styling should be added.
|
|
110
|
-
*/
|
|
111
|
-
updateReplacementFade(enabled: boolean): void;
|
|
112
|
-
/**
|
|
113
|
-
* Add or remove styling that shows that if the dragging block is dropped,
|
|
114
|
-
* this block will be connected to the input.
|
|
115
|
-
*
|
|
116
|
-
* @param conn The connection on the input to highlight.
|
|
117
|
-
* @param enable True if styling should be added.
|
|
108
|
+
* Removes any highlight associated with the given connection, if it exists.
|
|
118
109
|
*/
|
|
119
|
-
|
|
110
|
+
removeConnectionHighlight?(connection: RenderedConnection): void;
|
|
120
111
|
}
|
|
121
112
|
//# sourceMappingURL=i_path_object.d.ts.map
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { BlockSvg } from '../../block_svg.js';
|
|
7
7
|
import { Input } from '../../inputs/input.js';
|
|
8
|
+
import type { RenderedConnection } from '../../rendered_connection.js';
|
|
8
9
|
import type { Measurable } from '../measurables/base.js';
|
|
9
10
|
import { BottomRow } from '../measurables/bottom_row.js';
|
|
10
11
|
import { InputRow } from '../measurables/input_row.js';
|
|
@@ -14,6 +15,7 @@ import { SpacerRow } from '../measurables/spacer_row.js';
|
|
|
14
15
|
import { TopRow } from '../measurables/top_row.js';
|
|
15
16
|
import type { ConstantProvider } from './constants.js';
|
|
16
17
|
import type { Renderer } from './renderer.js';
|
|
18
|
+
import { Connection } from '../measurables/connection.js';
|
|
17
19
|
/**
|
|
18
20
|
* An object containing all sizing information needed to draw this block.
|
|
19
21
|
*
|
|
@@ -61,8 +63,7 @@ export declare class RenderInfo {
|
|
|
61
63
|
*/
|
|
62
64
|
getRenderer(): Renderer;
|
|
63
65
|
/**
|
|
64
|
-
* Populate
|
|
65
|
-
* draw this block.
|
|
66
|
+
* Populate this object with all sizing information needed to draw the block.
|
|
66
67
|
*
|
|
67
68
|
* This measure pass does not propagate changes to the block (although fields
|
|
68
69
|
* may choose to rerender when getSize() is called). However, calling it
|
|
@@ -194,5 +195,7 @@ export declare class RenderInfo {
|
|
|
194
195
|
* store the y position of each row, and record the height of the full block.
|
|
195
196
|
*/
|
|
196
197
|
protected finalize_(): void;
|
|
198
|
+
/** Returns the connection measurable associated with the given connection. */
|
|
199
|
+
getMeasureableForConnection(conn: RenderedConnection): Connection | null;
|
|
197
200
|
}
|
|
198
201
|
//# sourceMappingURL=info.d.ts.map
|
|
@@ -148,6 +148,13 @@ export declare class MarkerSvg {
|
|
|
148
148
|
* @param curNode The node to draw the marker for.
|
|
149
149
|
*/
|
|
150
150
|
protected showWithStack_(curNode: ASTNode): void;
|
|
151
|
+
/**
|
|
152
|
+
* Position and display the marker for a flyout button.
|
|
153
|
+
* This is a box with extra padding around the button.
|
|
154
|
+
*
|
|
155
|
+
* @param curNode The node to draw the marker for.
|
|
156
|
+
*/
|
|
157
|
+
protected showWithButton_(curNode: ASTNode): void;
|
|
151
158
|
/** Show the current marker. */
|
|
152
159
|
protected showCurrent_(): void;
|
|
153
160
|
/**************************
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { BlockSvg } from '../../block_svg.js';
|
|
7
7
|
import type { Connection } from '../../connection.js';
|
|
8
|
+
import { RenderedConnection } from '../../rendered_connection.js';
|
|
8
9
|
import type { BlockStyle } from '../../theme.js';
|
|
10
|
+
import { Coordinate } from '../../utils/coordinate.js';
|
|
9
11
|
import type { ConstantProvider } from './constants.js';
|
|
10
12
|
import type { IPathObject } from './i_path_object.js';
|
|
11
13
|
/**
|
|
@@ -27,6 +29,10 @@ export declare class PathObject implements IPathObject {
|
|
|
27
29
|
markerSvg: SVGElement | null;
|
|
28
30
|
constants: ConstantProvider;
|
|
29
31
|
style: BlockStyle;
|
|
32
|
+
/** Highlight paths associated with connections. */
|
|
33
|
+
private connectionHighlights;
|
|
34
|
+
/** Locations of connection highlights. */
|
|
35
|
+
private highlightOffsets;
|
|
30
36
|
/**
|
|
31
37
|
* @param root The root SVG element.
|
|
32
38
|
* @param style The style object to use for colouring.
|
|
@@ -138,5 +144,12 @@ export declare class PathObject implements IPathObject {
|
|
|
138
144
|
* @param _enable True if styling should be added.
|
|
139
145
|
*/
|
|
140
146
|
updateShapeForInputHighlight(_conn: Connection, _enable: boolean): void;
|
|
147
|
+
/** Adds the given path as a connection highlight for the given connection. */
|
|
148
|
+
addConnectionHighlight(connection: RenderedConnection, connectionPath: string, offset: Coordinate, rtl: boolean): void;
|
|
149
|
+
private currentHighlightMatchesNew;
|
|
150
|
+
/**
|
|
151
|
+
* Removes any highlight associated with the given connection, if it exists.
|
|
152
|
+
*/
|
|
153
|
+
removeConnectionHighlight(connection: RenderedConnection): void;
|
|
141
154
|
}
|
|
142
155
|
//# sourceMappingURL=path_object.d.ts.map
|
|
@@ -141,6 +141,9 @@ export declare class Renderer implements IRegistrable {
|
|
|
141
141
|
* @param local The connection currently being dragged.
|
|
142
142
|
* @param topBlock The block currently being dragged.
|
|
143
143
|
* @returns The preview type to display.
|
|
144
|
+
*
|
|
145
|
+
* @deprecated v10 - This function is no longer respected. A custom
|
|
146
|
+
* IConnectionPreviewer may be able to fulfill the functionality.
|
|
144
147
|
*/
|
|
145
148
|
getConnectionPreviewMethod(closest: RenderedConnection, local: RenderedConnection, topBlock: BlockSvg): PreviewType;
|
|
146
149
|
/**
|
|
@@ -14,6 +14,7 @@ export declare class Connection extends Measurable {
|
|
|
14
14
|
connectionModel: RenderedConnection;
|
|
15
15
|
shape: Shape;
|
|
16
16
|
isDynamicShape: boolean;
|
|
17
|
+
highlighted: boolean;
|
|
17
18
|
/**
|
|
18
19
|
* @param constants The rendering constants provider.
|
|
19
20
|
* @param connectionModel The connection object on the block that this
|
|
@@ -12,11 +12,6 @@ import { Measurable } from './base.js';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class Icon extends Measurable {
|
|
14
14
|
icon: BlocklyIcon;
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Will be removed in v11. Create a subclass of the Icon
|
|
17
|
-
* measurable if this data is necessary for you.
|
|
18
|
-
*/
|
|
19
|
-
isVisible: boolean;
|
|
20
15
|
flipRtl: boolean;
|
|
21
16
|
/**
|
|
22
17
|
* An object containing information about the space an icon takes up during
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { BlockSvg } from '../../block_svg.js';
|
|
7
7
|
import { Drawer as BaseDrawer } from '../common/drawer.js';
|
|
8
|
+
import { Connection } from '../measurables/connection.js';
|
|
8
9
|
import type { InlineInput } from '../measurables/inline_input.js';
|
|
9
10
|
import type { Row } from '../measurables/row.js';
|
|
10
11
|
import type { RenderInfo } from './info.js';
|
|
@@ -42,6 +43,9 @@ export declare class Drawer extends BaseDrawer {
|
|
|
42
43
|
/** Add steps to draw a flat bottom row. */
|
|
43
44
|
protected drawFlatBottom_(): void;
|
|
44
45
|
drawInlineInput_(input: InlineInput): void;
|
|
46
|
+
private getInlineInputPath;
|
|
45
47
|
drawStatementInput_(row: Row): void;
|
|
48
|
+
/** Returns a path to highlight the given connection. */
|
|
49
|
+
drawConnectionHighlightPath(measurable: Connection): void;
|
|
46
50
|
}
|
|
47
51
|
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { BlockSvg } from '../../block_svg.js';
|
|
7
|
-
import type { Connection } from '../../connection.js';
|
|
8
7
|
import { InsertionMarkerManager } from '../../insertion_marker_manager.js';
|
|
9
8
|
import type { Marker } from '../../keyboard_nav/marker.js';
|
|
10
9
|
import type { RenderedConnection } from '../../rendered_connection.js';
|
|
@@ -74,7 +73,10 @@ export declare class Renderer extends BaseRenderer {
|
|
|
74
73
|
* @returns The constant provider.
|
|
75
74
|
*/
|
|
76
75
|
getConstants(): ConstantProvider;
|
|
77
|
-
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated v10 - This function is no longer respected. A custom
|
|
78
|
+
* IConnectionPreviewer may be able to fulfill the functionality.
|
|
79
|
+
*/
|
|
78
80
|
getConnectionPreviewMethod(closest: RenderedConnection, local: RenderedConnection, topBlock: BlockSvg): InsertionMarkerManager.PREVIEW_TYPE;
|
|
79
81
|
}
|
|
80
82
|
//# sourceMappingURL=renderer.d.ts.map
|
|
@@ -15,4 +15,6 @@ export declare const PROCEDURES = 75;
|
|
|
15
15
|
* The priority for deserializing blocks.
|
|
16
16
|
*/
|
|
17
17
|
export declare const BLOCKS = 50;
|
|
18
|
+
/** The priority for deserializing workspace comments. */
|
|
19
|
+
export declare const WORKSPACE_COMMENTS = 25;
|
|
18
20
|
//# sourceMappingURL=priorities.d.ts.map
|
|
@@ -7,63 +7,65 @@ import { IParameterModel } from '../interfaces/i_parameter_model.js';
|
|
|
7
7
|
import { IProcedureModel } from '../interfaces/i_procedure_model.js';
|
|
8
8
|
import type { ISerializer } from '../interfaces/i_serializer.js';
|
|
9
9
|
import type { Workspace } from '../workspace.js';
|
|
10
|
-
/**
|
|
11
|
-
* Representation of a procedure data model.
|
|
12
|
-
*/
|
|
10
|
+
/** Represents the state of a procedure model. */
|
|
13
11
|
export interface State {
|
|
14
12
|
id: string;
|
|
15
13
|
name: string;
|
|
16
14
|
returnTypes: string[] | null;
|
|
17
15
|
parameters?: ParameterState[];
|
|
16
|
+
[key: string]: unknown;
|
|
18
17
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Representation of a parameter data model.
|
|
21
|
-
*/
|
|
18
|
+
/** Represents the state of a parameter model. */
|
|
22
19
|
export interface ParameterState {
|
|
23
20
|
id: string;
|
|
24
21
|
name: string;
|
|
25
22
|
types?: string[];
|
|
23
|
+
[key: string]: unknown;
|
|
26
24
|
}
|
|
27
25
|
/**
|
|
28
26
|
* A newable signature for an IProcedureModel.
|
|
29
27
|
*
|
|
30
28
|
* Refer to
|
|
31
|
-
* https://www.typescriptlang.org/docs/handbook/
|
|
29
|
+
* https://www.typescriptlang.org/docs/handbook/interfaces.html#difference-between-the-static-and-instance-sides-of-classes
|
|
32
30
|
* for what is going on with this.
|
|
33
31
|
*/
|
|
34
|
-
|
|
32
|
+
interface ProcedureModelConstructor<ProcedureModel extends IProcedureModel> {
|
|
33
|
+
new (workspace: Workspace, name: string, id: string): ProcedureModel;
|
|
34
|
+
/**
|
|
35
|
+
* Deserializes the JSON state and returns a procedure model.
|
|
36
|
+
*
|
|
37
|
+
* @param state The state to deserialize.
|
|
38
|
+
* @param workspace The workspace to load the procedure model into.
|
|
39
|
+
* @returns The constructed procedure model.
|
|
40
|
+
*/
|
|
41
|
+
loadState(state: Object, workspace: Workspace): ProcedureModel;
|
|
42
|
+
}
|
|
35
43
|
/**
|
|
36
44
|
* A newable signature for an IParameterModel.
|
|
37
45
|
*
|
|
38
46
|
* Refer to
|
|
39
|
-
* https://www.typescriptlang.org/docs/handbook/
|
|
47
|
+
* https://www.typescriptlang.org/docs/handbook/interfaces.html#difference-between-the-static-and-instance-sides-of-classes
|
|
40
48
|
* for what is going on with this.
|
|
41
49
|
*/
|
|
42
|
-
|
|
50
|
+
interface ParameterModelConstructor<ParameterModel extends IParameterModel> {
|
|
51
|
+
new (workspace: Workspace, name: string, id: string): ParameterModel;
|
|
52
|
+
/**
|
|
53
|
+
* Deserializes the JSON state and returns a parameter model.
|
|
54
|
+
*
|
|
55
|
+
* @param state The state to deserialize.
|
|
56
|
+
* @param workspace The workspace to load the parameter model into.
|
|
57
|
+
* @returns The constructed parameter model.
|
|
58
|
+
*/
|
|
59
|
+
loadState(state: Object, workspace: Workspace): ParameterModel;
|
|
60
|
+
}
|
|
43
61
|
/**
|
|
44
62
|
* Serializes the given IProcedureModel to JSON.
|
|
45
|
-
*
|
|
46
|
-
* @internal
|
|
47
63
|
*/
|
|
48
64
|
export declare function saveProcedure(proc: IProcedureModel): State;
|
|
49
|
-
/**
|
|
50
|
-
* Serializes the given IParameterModel to JSON.
|
|
51
|
-
*
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
|
-
export declare function saveParameter(param: IParameterModel): ParameterState;
|
|
55
65
|
/**
|
|
56
66
|
* Deserializes the given procedure model State from JSON.
|
|
57
|
-
*
|
|
58
|
-
* @internal
|
|
59
67
|
*/
|
|
60
68
|
export declare function loadProcedure<ProcedureModel extends IProcedureModel, ParameterModel extends IParameterModel>(procedureModelClass: ProcedureModelConstructor<ProcedureModel>, parameterModelClass: ParameterModelConstructor<ParameterModel>, state: State, workspace: Workspace): ProcedureModel;
|
|
61
|
-
/**
|
|
62
|
-
* Deserializes the given ParameterState from JSON.
|
|
63
|
-
*
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
export declare function loadParameter<ParameterModel extends IParameterModel>(parameterModelClass: ParameterModelConstructor<ParameterModel>, state: ParameterState, workspace: Workspace): ParameterModel;
|
|
67
69
|
/** Serializer for saving and loading procedure state. */
|
|
68
70
|
export declare class ProcedureSerializer<ProcedureModel extends IProcedureModel, ParameterModel extends IParameterModel> implements ISerializer {
|
|
69
71
|
private readonly procedureModelClass;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { ISerializer } from '../interfaces/i_serializer.js';
|
|
7
|
+
import { Workspace } from '../workspace.js';
|
|
8
|
+
import type { WorkspaceComment } from '../comments/workspace_comment.js';
|
|
9
|
+
export interface State {
|
|
10
|
+
id?: string;
|
|
11
|
+
text?: string;
|
|
12
|
+
x?: number;
|
|
13
|
+
y?: number;
|
|
14
|
+
width?: number;
|
|
15
|
+
height?: number;
|
|
16
|
+
collapsed?: boolean;
|
|
17
|
+
editable?: boolean;
|
|
18
|
+
movable?: boolean;
|
|
19
|
+
deletable?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** Serializes the state of the given comment to JSON. */
|
|
22
|
+
export declare function save(comment: WorkspaceComment, { addCoordinates, saveIds, }?: {
|
|
23
|
+
addCoordinates?: boolean;
|
|
24
|
+
saveIds?: boolean;
|
|
25
|
+
}): State;
|
|
26
|
+
/** Appends the comment defined by the given state to the given workspace. */
|
|
27
|
+
export declare function append(state: State, workspace: Workspace, { recordUndo }?: {
|
|
28
|
+
recordUndo?: boolean;
|
|
29
|
+
}): WorkspaceComment;
|
|
30
|
+
/** Serializer for saving and loading workspace comment state. */
|
|
31
|
+
export declare class WorkspaceCommentSerializer implements ISerializer {
|
|
32
|
+
priority: number;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the state of all workspace comments in the given workspace.
|
|
35
|
+
*/
|
|
36
|
+
save(workspace: Workspace): State[] | null;
|
|
37
|
+
/**
|
|
38
|
+
* Deserializes the comments defined by the given state into the given
|
|
39
|
+
* workspace.
|
|
40
|
+
*/
|
|
41
|
+
load(state: State[], workspace: Workspace): void;
|
|
42
|
+
/** Disposes of any comments that exist on the given workspace. */
|
|
43
|
+
clear(workspace: Workspace): void;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=workspace_comments.d.ts.map
|
package/core/serialization.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import * as procedures from './serialization/procedures.js';
|
|
|
13
13
|
import * as registry from './serialization/registry.js';
|
|
14
14
|
import * as variables from './serialization/variables.js';
|
|
15
15
|
import * as workspaces from './serialization/workspaces.js';
|
|
16
|
+
import * as workspaceComments from './serialization/workspace_comments.js';
|
|
16
17
|
import { ISerializer } from './interfaces/i_serializer.js';
|
|
17
|
-
export { blocks, exceptions, priorities, procedures, registry, variables, workspaces, ISerializer, };
|
|
18
|
+
export { blocks, exceptions, priorities, procedures, registry, variables, workspaces, workspaceComments, ISerializer, };
|
|
18
19
|
//# sourceMappingURL=serialization.d.ts.map
|