blockly 12.0.0-beta.4 → 12.0.0-beta.5
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 +552 -494
- package/blockly.mjs +10 -0
- package/blockly_compressed.js +517 -492
- package/blockly_compressed.js.map +1 -1
- package/blocks_compressed.js +2 -2
- package/blocks_compressed.js.map +1 -1
- package/core/block_svg.d.ts +36 -20
- package/core/blockly.d.ts +13 -1
- package/core/connection.d.ts +2 -0
- package/core/contextmenu_registry.d.ts +11 -9
- package/core/dialog.d.ts +36 -16
- package/core/field.d.ts +29 -31
- package/core/field_checkbox.d.ts +9 -0
- package/core/field_dropdown.d.ts +19 -2
- package/core/field_image.d.ts +9 -0
- package/core/field_label.d.ts +9 -0
- package/core/field_number.d.ts +9 -0
- package/core/field_textinput.d.ts +9 -0
- package/core/flyout_base.d.ts +23 -1
- package/core/flyout_button.d.ts +30 -7
- package/core/flyout_item.d.ts +3 -9
- package/core/flyout_separator.d.ts +18 -1
- package/core/focus_manager.d.ts +82 -14
- package/core/interfaces/i_ast_node_location_svg.d.ts +0 -12
- package/core/interfaces/i_autohideable.d.ts +2 -0
- package/core/interfaces/i_flyout.d.ts +2 -1
- package/core/interfaces/i_focusable_node.d.ts +31 -2
- package/core/interfaces/i_focusable_tree.d.ts +67 -0
- package/core/interfaces/i_navigable.d.ts +30 -0
- package/core/interfaces/i_navigation_policy.d.ts +42 -0
- package/core/interfaces/i_toolbox.d.ts +2 -1
- package/core/interfaces/i_toolbox_item.d.ts +2 -1
- package/core/keyboard_nav/ast_node.d.ts +1 -113
- package/core/keyboard_nav/block_navigation_policy.d.ts +56 -0
- package/core/keyboard_nav/connection_navigation_policy.d.ts +53 -0
- package/core/keyboard_nav/field_navigation_policy.d.ts +42 -0
- package/core/keyboard_nav/flyout_button_navigation_policy.d.ts +42 -0
- package/core/keyboard_nav/flyout_navigation_policy.d.ts +51 -0
- package/core/keyboard_nav/flyout_separator_navigation_policy.d.ts +19 -0
- package/core/keyboard_nav/line_cursor.d.ts +32 -103
- package/core/keyboard_nav/marker.d.ts +20 -29
- package/core/keyboard_nav/workspace_navigation_policy.d.ts +42 -0
- package/core/marker_manager.d.ts +0 -26
- package/core/navigator.d.ts +65 -0
- package/core/rendered_connection.d.ts +35 -1
- package/core/renderers/common/block_rendering.d.ts +1 -2
- package/core/renderers/common/drawer.d.ts +1 -1
- package/core/renderers/common/i_path_object.d.ts +1 -25
- package/core/renderers/common/path_object.d.ts +1 -26
- package/core/renderers/common/renderer.d.ts +0 -11
- package/core/renderers/zelos/drawer.d.ts +1 -1
- package/core/renderers/zelos/renderer.d.ts +0 -11
- package/core/renderers/zelos/zelos.d.ts +1 -2
- package/core/shortcut_registry.d.ts +7 -2
- package/core/toast.d.ts +74 -0
- package/core/toolbox/toolbox.d.ts +23 -1
- package/core/toolbox/toolbox_item.d.ts +9 -0
- package/core/utils/aria.d.ts +5 -2
- package/core/variable_map.d.ts +4 -4
- package/core/variables.d.ts +3 -1
- package/core/workspace.d.ts +10 -9
- package/core/workspace_svg.d.ts +103 -47
- package/index.mjs +10 -0
- package/msg/ab.js +33 -0
- package/msg/ab.mjs +33 -0
- package/msg/ace.js +33 -0
- package/msg/ace.mjs +33 -0
- package/msg/af.js +33 -0
- package/msg/af.mjs +33 -0
- package/msg/am.js +33 -0
- package/msg/am.mjs +33 -0
- package/msg/ar.js +33 -0
- package/msg/ar.mjs +33 -0
- package/msg/ast.js +33 -0
- package/msg/ast.mjs +33 -0
- package/msg/az.js +33 -0
- package/msg/az.mjs +33 -0
- package/msg/ba.js +33 -0
- package/msg/ba.mjs +33 -0
- package/msg/bcc.js +33 -0
- package/msg/bcc.mjs +33 -0
- package/msg/be-tarask.js +33 -0
- package/msg/be-tarask.mjs +33 -0
- package/msg/be.js +33 -0
- package/msg/be.mjs +33 -0
- package/msg/bg.js +33 -0
- package/msg/bg.mjs +33 -0
- package/msg/bn.js +33 -0
- package/msg/bn.mjs +33 -0
- package/msg/br.js +33 -0
- package/msg/br.mjs +33 -0
- package/msg/bs.js +33 -0
- package/msg/bs.mjs +33 -0
- package/msg/ca.js +33 -0
- package/msg/ca.mjs +33 -0
- package/msg/cdo.js +33 -0
- package/msg/cdo.mjs +33 -0
- package/msg/ce.js +33 -0
- package/msg/ce.mjs +33 -0
- package/msg/cs.js +33 -0
- package/msg/cs.mjs +33 -0
- package/msg/da.js +33 -0
- package/msg/da.mjs +33 -0
- package/msg/de.js +33 -0
- package/msg/de.mjs +33 -0
- package/msg/diq.js +33 -0
- package/msg/diq.mjs +33 -0
- package/msg/dtp.js +33 -0
- package/msg/dtp.mjs +33 -0
- package/msg/dty.js +33 -0
- package/msg/dty.mjs +33 -0
- package/msg/ee.js +33 -0
- package/msg/ee.mjs +33 -0
- package/msg/el.js +33 -0
- package/msg/el.mjs +33 -0
- package/msg/en-gb.js +33 -0
- package/msg/en-gb.mjs +33 -0
- package/msg/en.js +33 -0
- package/msg/en.mjs +33 -0
- package/msg/eo.js +33 -0
- package/msg/eo.mjs +33 -0
- package/msg/es.js +33 -0
- package/msg/es.mjs +33 -0
- package/msg/et.js +33 -0
- package/msg/et.mjs +33 -0
- package/msg/eu.js +33 -0
- package/msg/eu.mjs +33 -0
- package/msg/fa.js +33 -0
- package/msg/fa.mjs +33 -0
- package/msg/fi.js +33 -0
- package/msg/fi.mjs +33 -0
- package/msg/fo.js +33 -0
- package/msg/fo.mjs +33 -0
- package/msg/fr.js +33 -0
- package/msg/fr.mjs +33 -0
- package/msg/frr.js +33 -0
- package/msg/frr.mjs +33 -0
- package/msg/gl.js +33 -0
- package/msg/gl.mjs +33 -0
- package/msg/gn.js +33 -0
- package/msg/gn.mjs +33 -0
- package/msg/gor.js +33 -0
- package/msg/gor.mjs +33 -0
- package/msg/ha.js +33 -0
- package/msg/ha.mjs +33 -0
- package/msg/hak.js +33 -0
- package/msg/hak.mjs +33 -0
- package/msg/he.js +33 -0
- package/msg/he.mjs +33 -0
- package/msg/hi.js +33 -0
- package/msg/hi.mjs +33 -0
- package/msg/hr.js +33 -0
- package/msg/hr.mjs +33 -0
- package/msg/hrx.js +33 -0
- package/msg/hrx.mjs +33 -0
- package/msg/hsb.js +33 -0
- package/msg/hsb.mjs +33 -0
- package/msg/hu.js +33 -0
- package/msg/hu.mjs +33 -0
- package/msg/hy.js +33 -0
- package/msg/hy.mjs +33 -0
- package/msg/ia.js +33 -0
- package/msg/ia.mjs +33 -0
- package/msg/id.js +33 -0
- package/msg/id.mjs +33 -0
- package/msg/ig.js +33 -0
- package/msg/ig.mjs +33 -0
- package/msg/inh.js +33 -0
- package/msg/inh.mjs +33 -0
- package/msg/is.js +33 -0
- package/msg/is.mjs +33 -0
- package/msg/it.js +33 -0
- package/msg/it.mjs +33 -0
- package/msg/ja.js +33 -0
- package/msg/ja.mjs +33 -0
- package/msg/ka.js +33 -0
- package/msg/ka.mjs +33 -0
- package/msg/kab.js +33 -0
- package/msg/kab.mjs +33 -0
- package/msg/kbd-cyrl.js +33 -0
- package/msg/kbd-cyrl.mjs +33 -0
- package/msg/km.js +33 -0
- package/msg/km.mjs +33 -0
- package/msg/kn.js +33 -0
- package/msg/kn.mjs +33 -0
- package/msg/ko.js +33 -0
- package/msg/ko.mjs +33 -0
- package/msg/ksh.js +33 -0
- package/msg/ksh.mjs +33 -0
- package/msg/ku-latn.js +33 -0
- package/msg/ku-latn.mjs +33 -0
- package/msg/ky.js +33 -0
- package/msg/ky.mjs +33 -0
- package/msg/la.js +33 -0
- package/msg/la.mjs +33 -0
- package/msg/lb.js +33 -0
- package/msg/lb.mjs +33 -0
- package/msg/lki.js +33 -0
- package/msg/lki.mjs +33 -0
- package/msg/lo.js +33 -0
- package/msg/lo.mjs +33 -0
- package/msg/lrc.js +33 -0
- package/msg/lrc.mjs +33 -0
- package/msg/lt.js +33 -0
- package/msg/lt.mjs +33 -0
- package/msg/lv.js +33 -0
- package/msg/lv.mjs +33 -0
- package/msg/mg.js +33 -0
- package/msg/mg.mjs +33 -0
- package/msg/mk.js +33 -0
- package/msg/mk.mjs +33 -0
- package/msg/ml.js +33 -0
- package/msg/ml.mjs +33 -0
- package/msg/mnw.js +33 -0
- package/msg/mnw.mjs +33 -0
- package/msg/ms.js +33 -0
- package/msg/ms.mjs +33 -0
- package/msg/my.js +33 -0
- package/msg/my.mjs +33 -0
- package/msg/mzn.js +33 -0
- package/msg/mzn.mjs +33 -0
- package/msg/nb.js +33 -0
- package/msg/nb.mjs +33 -0
- package/msg/ne.js +33 -0
- package/msg/ne.mjs +33 -0
- package/msg/nl.js +33 -0
- package/msg/nl.mjs +33 -0
- package/msg/oc.js +33 -0
- package/msg/oc.mjs +33 -0
- package/msg/olo.js +33 -0
- package/msg/olo.mjs +33 -0
- package/msg/pa.js +33 -0
- package/msg/pa.mjs +33 -0
- package/msg/pl.js +33 -0
- package/msg/pl.mjs +33 -0
- package/msg/pms.js +33 -0
- package/msg/pms.mjs +33 -0
- package/msg/ps.js +33 -0
- package/msg/ps.mjs +33 -0
- package/msg/pt-br.js +33 -0
- package/msg/pt-br.mjs +33 -0
- package/msg/pt.js +33 -0
- package/msg/pt.mjs +33 -0
- package/msg/ro.js +33 -0
- package/msg/ro.mjs +33 -0
- package/msg/ru.js +33 -0
- package/msg/ru.mjs +33 -0
- package/msg/sc.js +33 -0
- package/msg/sc.mjs +33 -0
- package/msg/sco.js +33 -0
- package/msg/sco.mjs +33 -0
- package/msg/sd.js +33 -0
- package/msg/sd.mjs +33 -0
- package/msg/shn.js +33 -0
- package/msg/shn.mjs +33 -0
- package/msg/si.js +33 -0
- package/msg/si.mjs +33 -0
- package/msg/sk.js +33 -0
- package/msg/sk.mjs +33 -0
- package/msg/skr-arab.js +33 -0
- package/msg/skr-arab.mjs +33 -0
- package/msg/sl.js +33 -0
- package/msg/sl.mjs +33 -0
- package/msg/smn.js +33 -0
- package/msg/smn.mjs +33 -0
- package/msg/sq.js +33 -0
- package/msg/sq.mjs +33 -0
- package/msg/sr-latn.js +33 -0
- package/msg/sr-latn.mjs +33 -0
- package/msg/sr.js +33 -0
- package/msg/sr.mjs +33 -0
- package/msg/sv.js +33 -0
- package/msg/sv.mjs +33 -0
- package/msg/sw.js +33 -0
- package/msg/sw.mjs +33 -0
- package/msg/ta.js +33 -0
- package/msg/ta.mjs +33 -0
- package/msg/tcy.js +33 -0
- package/msg/tcy.mjs +33 -0
- package/msg/tdd.js +33 -0
- package/msg/tdd.mjs +33 -0
- package/msg/te.js +33 -0
- package/msg/te.mjs +33 -0
- package/msg/th.js +33 -0
- package/msg/th.mjs +33 -0
- package/msg/ti.js +33 -0
- package/msg/ti.mjs +33 -0
- package/msg/tl.js +33 -0
- package/msg/tl.mjs +33 -0
- package/msg/tlh.js +33 -0
- package/msg/tlh.mjs +33 -0
- package/msg/tr.js +33 -0
- package/msg/tr.mjs +33 -0
- package/msg/ug-arab.js +33 -0
- package/msg/ug-arab.mjs +33 -0
- package/msg/uk.js +33 -0
- package/msg/uk.mjs +33 -0
- package/msg/ur.js +33 -0
- package/msg/ur.mjs +33 -0
- package/msg/uz.js +33 -0
- package/msg/uz.mjs +33 -0
- package/msg/vi.js +33 -0
- package/msg/vi.mjs +33 -0
- package/msg/xmf.js +33 -0
- package/msg/xmf.mjs +33 -0
- package/msg/yo.js +33 -0
- package/msg/yo.mjs +33 -0
- package/msg/zgh.js +33 -0
- package/msg/zgh.mjs +33 -0
- package/msg/zh-hans.js +33 -0
- package/msg/zh-hans.mjs +33 -0
- package/msg/zh-hant.js +33 -0
- package/msg/zh-hant.mjs +33 -0
- package/package.json +4 -4
- package/core/renderers/common/marker_svg.d.ts +0 -256
- package/core/renderers/zelos/marker_svg.d.ts +0 -49
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { BlockSvg } from '../block_svg.js';
|
|
7
|
+
import type { INavigable } from '../interfaces/i_navigable.js';
|
|
8
|
+
import type { INavigationPolicy } from '../interfaces/i_navigation_policy.js';
|
|
9
|
+
import type { RenderedConnection } from '../rendered_connection.js';
|
|
10
|
+
/**
|
|
11
|
+
* Set of rules controlling keyboard navigation from a connection.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ConnectionNavigationPolicy implements INavigationPolicy<RenderedConnection> {
|
|
14
|
+
/**
|
|
15
|
+
* Returns the first child of the given connection.
|
|
16
|
+
*
|
|
17
|
+
* @param current The connection to return the first child of.
|
|
18
|
+
* @returns The connection's first child element, or null if not none.
|
|
19
|
+
*/
|
|
20
|
+
getFirstChild(current: RenderedConnection): INavigable<unknown> | null;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the parent of the given connection.
|
|
23
|
+
*
|
|
24
|
+
* @param current The connection to return the parent of.
|
|
25
|
+
* @returns The given connection's parent connection or block.
|
|
26
|
+
*/
|
|
27
|
+
getParent(current: RenderedConnection): INavigable<unknown> | null;
|
|
28
|
+
/**
|
|
29
|
+
* Returns the next element following the given connection.
|
|
30
|
+
*
|
|
31
|
+
* @param current The connection to navigate from.
|
|
32
|
+
* @returns The field, input connection or block following this connection.
|
|
33
|
+
*/
|
|
34
|
+
getNextSibling(current: RenderedConnection): INavigable<unknown> | null;
|
|
35
|
+
/**
|
|
36
|
+
* Returns the element preceding the given connection.
|
|
37
|
+
*
|
|
38
|
+
* @param current The connection to navigate from.
|
|
39
|
+
* @returns The field, input connection or block preceding this connection.
|
|
40
|
+
*/
|
|
41
|
+
getPreviousSibling(current: RenderedConnection): INavigable<unknown> | null;
|
|
42
|
+
/**
|
|
43
|
+
* Gets the parent connection on a block.
|
|
44
|
+
* This is either an output connection, previous connection or undefined.
|
|
45
|
+
* If both connections exist return the one that is actually connected
|
|
46
|
+
* to another block.
|
|
47
|
+
*
|
|
48
|
+
* @param block The block to find the parent connection on.
|
|
49
|
+
* @returns The connection connecting to the parent of the block.
|
|
50
|
+
*/
|
|
51
|
+
protected getParentConnection(block: BlockSvg): RenderedConnection;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=connection_navigation_policy.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { Field } from '../field.js';
|
|
7
|
+
import type { INavigable } from '../interfaces/i_navigable.js';
|
|
8
|
+
import type { INavigationPolicy } from '../interfaces/i_navigation_policy.js';
|
|
9
|
+
/**
|
|
10
|
+
* Set of rules controlling keyboard navigation from a field.
|
|
11
|
+
*/
|
|
12
|
+
export declare class FieldNavigationPolicy implements INavigationPolicy<Field<any>> {
|
|
13
|
+
/**
|
|
14
|
+
* Returns null since fields do not have children.
|
|
15
|
+
*
|
|
16
|
+
* @param _current The field to navigate from.
|
|
17
|
+
* @returns Null.
|
|
18
|
+
*/
|
|
19
|
+
getFirstChild(_current: Field<any>): INavigable<unknown> | null;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the parent block of the given field.
|
|
22
|
+
*
|
|
23
|
+
* @param current The field to navigate from.
|
|
24
|
+
* @returns The given field's parent block.
|
|
25
|
+
*/
|
|
26
|
+
getParent(current: Field<any>): INavigable<unknown> | null;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the next field or input following the given field.
|
|
29
|
+
*
|
|
30
|
+
* @param current The field to navigate from.
|
|
31
|
+
* @returns The next field or input in the given field's block.
|
|
32
|
+
*/
|
|
33
|
+
getNextSibling(current: Field<any>): INavigable<unknown> | null;
|
|
34
|
+
/**
|
|
35
|
+
* Returns the field or input preceding the given field.
|
|
36
|
+
*
|
|
37
|
+
* @param current The field to navigate from.
|
|
38
|
+
* @returns The preceding field or input in the given field's block.
|
|
39
|
+
*/
|
|
40
|
+
getPreviousSibling(current: Field<any>): INavigable<unknown> | null;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=field_navigation_policy.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { FlyoutButton } from '../flyout_button.js';
|
|
7
|
+
import type { INavigable } from '../interfaces/i_navigable.js';
|
|
8
|
+
import type { INavigationPolicy } from '../interfaces/i_navigation_policy.js';
|
|
9
|
+
/**
|
|
10
|
+
* Set of rules controlling keyboard navigation from a flyout button.
|
|
11
|
+
*/
|
|
12
|
+
export declare class FlyoutButtonNavigationPolicy implements INavigationPolicy<FlyoutButton> {
|
|
13
|
+
/**
|
|
14
|
+
* Returns null since flyout buttons have no children.
|
|
15
|
+
*
|
|
16
|
+
* @param _current The FlyoutButton instance to navigate from.
|
|
17
|
+
* @returns Null.
|
|
18
|
+
*/
|
|
19
|
+
getFirstChild(_current: FlyoutButton): INavigable<unknown> | null;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the parent workspace of the given flyout button.
|
|
22
|
+
*
|
|
23
|
+
* @param current The FlyoutButton instance to navigate from.
|
|
24
|
+
* @returns The given flyout button's parent workspace.
|
|
25
|
+
*/
|
|
26
|
+
getParent(current: FlyoutButton): INavigable<unknown> | null;
|
|
27
|
+
/**
|
|
28
|
+
* Returns null since inter-item navigation is done by FlyoutNavigationPolicy.
|
|
29
|
+
*
|
|
30
|
+
* @param _current The FlyoutButton instance to navigate from.
|
|
31
|
+
* @returns Null.
|
|
32
|
+
*/
|
|
33
|
+
getNextSibling(_current: FlyoutButton): INavigable<unknown> | null;
|
|
34
|
+
/**
|
|
35
|
+
* Returns null since inter-item navigation is done by FlyoutNavigationPolicy.
|
|
36
|
+
*
|
|
37
|
+
* @param _current The FlyoutButton instance to navigate from.
|
|
38
|
+
* @returns Null.
|
|
39
|
+
*/
|
|
40
|
+
getPreviousSibling(_current: FlyoutButton): INavigable<unknown> | null;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=flyout_button_navigation_policy.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { IFlyout } from '../interfaces/i_flyout.js';
|
|
7
|
+
import type { INavigable } from '../interfaces/i_navigable.js';
|
|
8
|
+
import type { INavigationPolicy } from '../interfaces/i_navigation_policy.js';
|
|
9
|
+
/**
|
|
10
|
+
* Generic navigation policy that navigates between items in the flyout.
|
|
11
|
+
*/
|
|
12
|
+
export declare class FlyoutNavigationPolicy<T> implements INavigationPolicy<T> {
|
|
13
|
+
private policy;
|
|
14
|
+
private flyout;
|
|
15
|
+
/**
|
|
16
|
+
* Creates a new FlyoutNavigationPolicy instance.
|
|
17
|
+
*
|
|
18
|
+
* @param policy The policy to defer to for parents/children.
|
|
19
|
+
* @param flyout The flyout this policy will control navigation in.
|
|
20
|
+
*/
|
|
21
|
+
constructor(policy: INavigationPolicy<T>, flyout: IFlyout);
|
|
22
|
+
/**
|
|
23
|
+
* Returns null to prevent navigating into flyout items.
|
|
24
|
+
*
|
|
25
|
+
* @param _current The flyout item to navigate from.
|
|
26
|
+
* @returns Null to prevent navigating into flyout items.
|
|
27
|
+
*/
|
|
28
|
+
getFirstChild(_current: T): INavigable<unknown> | null;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the parent of the given flyout item.
|
|
31
|
+
*
|
|
32
|
+
* @param current The flyout item to navigate from.
|
|
33
|
+
* @returns The parent of the given flyout item.
|
|
34
|
+
*/
|
|
35
|
+
getParent(current: T): INavigable<unknown> | null;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the next item in the flyout relative to the given item.
|
|
38
|
+
*
|
|
39
|
+
* @param current The flyout item to navigate from.
|
|
40
|
+
* @returns The flyout item following the given one.
|
|
41
|
+
*/
|
|
42
|
+
getNextSibling(current: T): INavigable<unknown> | null;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the previous item in the flyout relative to the given item.
|
|
45
|
+
*
|
|
46
|
+
* @param current The flyout item to navigate from.
|
|
47
|
+
* @returns The flyout item preceding the given one.
|
|
48
|
+
*/
|
|
49
|
+
getPreviousSibling(current: T): INavigable<unknown> | null;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=flyout_navigation_policy.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { FlyoutSeparator } from '../flyout_separator.js';
|
|
7
|
+
import type { INavigable } from '../interfaces/i_navigable.js';
|
|
8
|
+
import type { INavigationPolicy } from '../interfaces/i_navigation_policy.js';
|
|
9
|
+
/**
|
|
10
|
+
* Set of rules controlling keyboard navigation from a flyout separator.
|
|
11
|
+
* This is a no-op placeholder, since flyout separators can't be navigated to.
|
|
12
|
+
*/
|
|
13
|
+
export declare class FlyoutSeparatorNavigationPolicy implements INavigationPolicy<FlyoutSeparator> {
|
|
14
|
+
getFirstChild(_current: FlyoutSeparator): INavigable<unknown> | null;
|
|
15
|
+
getParent(_current: FlyoutSeparator): INavigable<unknown> | null;
|
|
16
|
+
getNextSibling(_current: FlyoutSeparator): INavigable<unknown> | null;
|
|
17
|
+
getPreviousSibling(_current: FlyoutSeparator): INavigable<unknown> | null;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=flyout_separator_navigation_policy.d.ts.map
|
|
@@ -11,10 +11,9 @@
|
|
|
11
11
|
* connections and fields.
|
|
12
12
|
* @author aschmiedt@google.com (Abby Schmiedt)
|
|
13
13
|
*/
|
|
14
|
-
import
|
|
15
|
-
import type {
|
|
16
|
-
import
|
|
17
|
-
import { ASTNode } from './ast_node.js';
|
|
14
|
+
import { BlockSvg } from '../block_svg.js';
|
|
15
|
+
import type { INavigable } from '../interfaces/i_navigable.js';
|
|
16
|
+
import { WorkspaceSvg } from '../workspace_svg.js';
|
|
18
17
|
import { Marker } from './marker.js';
|
|
19
18
|
/** Options object for LineCursor instances. */
|
|
20
19
|
export interface CursorOptions {
|
|
@@ -28,7 +27,7 @@ export interface CursorOptions {
|
|
|
28
27
|
* Class for a line cursor.
|
|
29
28
|
*/
|
|
30
29
|
export declare class LineCursor extends Marker {
|
|
31
|
-
|
|
30
|
+
protected readonly workspace: WorkspaceSvg;
|
|
32
31
|
type: string;
|
|
33
32
|
/** Options for this line cursor. */
|
|
34
33
|
private readonly options;
|
|
@@ -42,9 +41,10 @@ export declare class LineCursor extends Marker {
|
|
|
42
41
|
*/
|
|
43
42
|
constructor(workspace: WorkspaceSvg, options?: Partial<CursorOptions>);
|
|
44
43
|
/**
|
|
45
|
-
*
|
|
44
|
+
* Registers default navigation policies for Blockly's built-in types with
|
|
45
|
+
* this cursor's workspace.
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
protected registerNavigationPolicies(): void;
|
|
48
48
|
/**
|
|
49
49
|
* Moves the cursor to the next previous connection, next connection or block
|
|
50
50
|
* in the pre order traversal. Finds the next node in the pre order traversal.
|
|
@@ -52,7 +52,7 @@ export declare class LineCursor extends Marker {
|
|
|
52
52
|
* @returns The next node, or null if the current node is
|
|
53
53
|
* not set or there is no next value.
|
|
54
54
|
*/
|
|
55
|
-
next():
|
|
55
|
+
next(): INavigable<any> | null;
|
|
56
56
|
/**
|
|
57
57
|
* Moves the cursor to the next input connection or field
|
|
58
58
|
* in the pre order traversal.
|
|
@@ -60,7 +60,7 @@ export declare class LineCursor extends Marker {
|
|
|
60
60
|
* @returns The next node, or null if the current node is
|
|
61
61
|
* not set or there is no next value.
|
|
62
62
|
*/
|
|
63
|
-
in():
|
|
63
|
+
in(): INavigable<any> | null;
|
|
64
64
|
/**
|
|
65
65
|
* Moves the cursor to the previous next connection or previous connection in
|
|
66
66
|
* the pre order traversal.
|
|
@@ -68,7 +68,7 @@ export declare class LineCursor extends Marker {
|
|
|
68
68
|
* @returns The previous node, or null if the current node
|
|
69
69
|
* is not set or there is no previous value.
|
|
70
70
|
*/
|
|
71
|
-
prev():
|
|
71
|
+
prev(): INavigable<any> | null;
|
|
72
72
|
/**
|
|
73
73
|
* Moves the cursor to the previous input connection or field in the pre order
|
|
74
74
|
* traversal.
|
|
@@ -76,7 +76,7 @@ export declare class LineCursor extends Marker {
|
|
|
76
76
|
* @returns The previous node, or null if the current node
|
|
77
77
|
* is not set or there is no previous value.
|
|
78
78
|
*/
|
|
79
|
-
out():
|
|
79
|
+
out(): INavigable<any> | null;
|
|
80
80
|
/**
|
|
81
81
|
* Returns true iff the node to which we would navigate if in() were
|
|
82
82
|
* called, which will be a validInLineNode, is also a validLineNode
|
|
@@ -107,11 +107,11 @@ export declare class LineCursor extends Marker {
|
|
|
107
107
|
* @param node The AST node to check.
|
|
108
108
|
* @returns True if the node should be visited, false otherwise.
|
|
109
109
|
*/
|
|
110
|
-
protected validLineNode(node:
|
|
110
|
+
protected validLineNode(node: INavigable<any> | null): boolean;
|
|
111
111
|
/**
|
|
112
112
|
* Returns true iff the given node can be visited by the cursor when
|
|
113
113
|
* using the left/right arrow keys. Specifically, if the node is
|
|
114
|
-
* any node for which
|
|
114
|
+
* any node for which validLineNode would return true, plus:
|
|
115
115
|
*
|
|
116
116
|
* - Any block.
|
|
117
117
|
* - Any field that is not a full block field.
|
|
@@ -121,7 +121,7 @@ export declare class LineCursor extends Marker {
|
|
|
121
121
|
* @param node The AST node to check whether it is valid.
|
|
122
122
|
* @returns True if the node should be visited, false otherwise.
|
|
123
123
|
*/
|
|
124
|
-
protected validInLineNode(node:
|
|
124
|
+
protected validInLineNode(node: INavigable<any> | null): boolean;
|
|
125
125
|
/**
|
|
126
126
|
* Returns true iff the given node can be visited by the cursor.
|
|
127
127
|
* Specifically, if the node is any for which validInLineNode would
|
|
@@ -130,7 +130,7 @@ export declare class LineCursor extends Marker {
|
|
|
130
130
|
* @param node The AST node to check whether it is valid.
|
|
131
131
|
* @returns True if the node should be visited, false otherwise.
|
|
132
132
|
*/
|
|
133
|
-
protected validNode(node:
|
|
133
|
+
protected validNode(node: INavigable<any> | null): boolean;
|
|
134
134
|
/**
|
|
135
135
|
* Uses pre order traversal to navigate the Blockly AST. This will allow
|
|
136
136
|
* a user to easily navigate the entire Blockly AST without having to go in
|
|
@@ -139,6 +139,7 @@ export declare class LineCursor extends Marker {
|
|
|
139
139
|
* @param node The current position in the AST.
|
|
140
140
|
* @param isValid A function true/false depending on whether the given node
|
|
141
141
|
* should be traversed.
|
|
142
|
+
* @param visitedNodes A set of previously visited nodes used to avoid cycles.
|
|
142
143
|
* @returns The next node in the traversal.
|
|
143
144
|
*/
|
|
144
145
|
private getNextNodeImpl;
|
|
@@ -148,11 +149,11 @@ export declare class LineCursor extends Marker {
|
|
|
148
149
|
* @param node The current position in the AST.
|
|
149
150
|
* @param isValid A function true/false depending on whether the given node
|
|
150
151
|
* should be traversed.
|
|
151
|
-
* @param loop Whether to loop around to the beginning of the workspace if
|
|
152
|
-
*
|
|
152
|
+
* @param loop Whether to loop around to the beginning of the workspace if no
|
|
153
|
+
* valid node was found.
|
|
153
154
|
* @returns The next node in the traversal.
|
|
154
155
|
*/
|
|
155
|
-
getNextNode(node:
|
|
156
|
+
getNextNode(node: INavigable<any> | null, isValid: (p1: INavigable<any> | null) => boolean, loop: boolean): INavigable<any> | null;
|
|
156
157
|
/**
|
|
157
158
|
* Reverses the pre order traversal in order to find the previous node. This
|
|
158
159
|
* will allow a user to easily navigate the entire Blockly AST without having
|
|
@@ -161,6 +162,7 @@ export declare class LineCursor extends Marker {
|
|
|
161
162
|
* @param node The current position in the AST.
|
|
162
163
|
* @param isValid A function true/false depending on whether the given node
|
|
163
164
|
* should be traversed.
|
|
165
|
+
* @param visitedNodes A set of previously visited nodes used to avoid cycles.
|
|
164
166
|
* @returns The previous node in the traversal or null if no previous node
|
|
165
167
|
* exists.
|
|
166
168
|
*/
|
|
@@ -171,12 +173,12 @@ export declare class LineCursor extends Marker {
|
|
|
171
173
|
* @param node The current position in the AST.
|
|
172
174
|
* @param isValid A function true/false depending on whether the given node
|
|
173
175
|
* should be traversed.
|
|
174
|
-
* @param loop Whether to loop around to the end of the workspace if no
|
|
175
|
-
*
|
|
176
|
+
* @param loop Whether to loop around to the end of the workspace if no valid
|
|
177
|
+
* node was found.
|
|
176
178
|
* @returns The previous node in the traversal or null if no previous node
|
|
177
179
|
* exists.
|
|
178
180
|
*/
|
|
179
|
-
getPreviousNode(node:
|
|
181
|
+
getPreviousNode(node: INavigable<any> | null, isValid: (p1: INavigable<any> | null) => boolean, loop: boolean): INavigable<any> | null;
|
|
180
182
|
/**
|
|
181
183
|
* From the given node find either the next valid sibling or the parent's
|
|
182
184
|
* next sibling.
|
|
@@ -215,7 +217,7 @@ export declare class LineCursor extends Marker {
|
|
|
215
217
|
*
|
|
216
218
|
* @param deletedBlock The block that is being deleted.
|
|
217
219
|
*/
|
|
218
|
-
preDelete(deletedBlock:
|
|
220
|
+
preDelete(deletedBlock: BlockSvg): void;
|
|
219
221
|
/**
|
|
220
222
|
* Move the cursor to the first valid location in
|
|
221
223
|
* this.potentialNodes, following a block deletion.
|
|
@@ -232,18 +234,7 @@ export declare class LineCursor extends Marker {
|
|
|
232
234
|
*
|
|
233
235
|
* @returns The current field, connection, or block the cursor is on.
|
|
234
236
|
*/
|
|
235
|
-
getCurNode():
|
|
236
|
-
/**
|
|
237
|
-
* Sets the object in charge of drawing the marker.
|
|
238
|
-
*
|
|
239
|
-
* We want to customize drawing, so rather than directly setting the given
|
|
240
|
-
* object, we instead set a wrapper proxy object that passes through all
|
|
241
|
-
* method calls and property accesses except for draw(), which it delegates
|
|
242
|
-
* to the drawMarker() method in this class.
|
|
243
|
-
*
|
|
244
|
-
* @param drawer The object ~in charge of drawing the marker.
|
|
245
|
-
*/
|
|
246
|
-
setDrawer(drawer: MarkerSvg): void;
|
|
237
|
+
getCurNode(): INavigable<any> | null;
|
|
247
238
|
/**
|
|
248
239
|
* Set the location of the cursor and draw it.
|
|
249
240
|
*
|
|
@@ -251,65 +242,8 @@ export declare class LineCursor extends Marker {
|
|
|
251
242
|
* this.drawMarker() instead of this.drawer.draw() directly.
|
|
252
243
|
*
|
|
253
244
|
* @param newNode The new location of the cursor.
|
|
254
|
-
* @param updateSelection If true (the default) we'll update the selection
|
|
255
|
-
* too.
|
|
256
|
-
*/
|
|
257
|
-
setCurNode(newNode: ASTNode | null, updateSelection?: boolean): void;
|
|
258
|
-
/**
|
|
259
|
-
* Draw this cursor's marker.
|
|
260
|
-
*
|
|
261
|
-
* This is a wrapper around this.drawer.draw (usually implemented by
|
|
262
|
-
* MarkerSvg.prototype.draw) that will, if newNode is a BLOCK node,
|
|
263
|
-
* instead call `setSelected` to select it (if it's a regular block)
|
|
264
|
-
* or `addSelect` (if it's a shadow block, since shadow blocks can't
|
|
265
|
-
* be selected) instead of using the normal drawer logic.
|
|
266
|
-
*
|
|
267
|
-
* TODO(#142): The selection and fake-selection code was originally
|
|
268
|
-
* a hack added for testing on October 28 2024, because the default
|
|
269
|
-
* drawer (MarkerSvg) behaviour in Zelos was to draw a box around
|
|
270
|
-
* the block and all attached child blocks, which was confusing when
|
|
271
|
-
* navigating stacks.
|
|
272
|
-
*
|
|
273
|
-
* Since then we have decided that we probably _do_ in most cases
|
|
274
|
-
* want navigating to a block to select the block, but more
|
|
275
|
-
* particularly that we want navigation to move _focus_. Replace
|
|
276
|
-
* this selection hack with non-hacky changing of focus once that's
|
|
277
|
-
* possible.
|
|
278
|
-
*
|
|
279
|
-
* @param oldNode The previous node.
|
|
280
|
-
* @param curNode The current node.
|
|
281
|
-
* @param realDrawer The object ~in charge of drawing the marker.
|
|
282
|
-
*/
|
|
283
|
-
private drawMarker;
|
|
284
|
-
/**
|
|
285
|
-
* Check whether the node represents a value input connection.
|
|
286
|
-
*
|
|
287
|
-
* @param node The node to check
|
|
288
|
-
* @returns True if the node represents a value input connection.
|
|
289
245
|
*/
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Hide the cursor rendering at the given input node.
|
|
293
|
-
*
|
|
294
|
-
* @param node The input node to hide.
|
|
295
|
-
*/
|
|
296
|
-
private hideAtInput;
|
|
297
|
-
/**
|
|
298
|
-
* Show the cursor rendering at the given input node.
|
|
299
|
-
*
|
|
300
|
-
* @param node The input node to show.
|
|
301
|
-
*/
|
|
302
|
-
private showAtInput;
|
|
303
|
-
/**
|
|
304
|
-
* Event listener that syncs the cursor location to the selected block on
|
|
305
|
-
* SELECTED events.
|
|
306
|
-
*
|
|
307
|
-
* This does not run early enough in all cases so `getCurNode()` also updates
|
|
308
|
-
* the node from the selection.
|
|
309
|
-
*
|
|
310
|
-
* @param event The `Selected` event.
|
|
311
|
-
*/
|
|
312
|
-
private changeListener;
|
|
246
|
+
setCurNode(newNode: INavigable<any> | null): void;
|
|
313
247
|
/**
|
|
314
248
|
* Updates the current node to match the selection.
|
|
315
249
|
*
|
|
@@ -321,28 +255,23 @@ export declare class LineCursor extends Marker {
|
|
|
321
255
|
*/
|
|
322
256
|
private updateCurNodeFromSelection;
|
|
323
257
|
/**
|
|
324
|
-
* Updates the
|
|
325
|
-
*
|
|
326
|
-
* Clears the selection for non-block nodes.
|
|
327
|
-
* Clears the selection for shadow blocks as the selection is drawn on
|
|
328
|
-
* the parent but the cursor will be drawn on the shadow block itself.
|
|
329
|
-
* We need to take care not to later clear the current node due to that null
|
|
330
|
-
* selection, so we track the latest selection we're in sync with.
|
|
258
|
+
* Updates the current node to match what's currently focused.
|
|
331
259
|
*
|
|
332
|
-
* @
|
|
260
|
+
* @returns Whether the current node has been set successfully from the
|
|
261
|
+
* current focused node.
|
|
333
262
|
*/
|
|
334
|
-
private
|
|
263
|
+
private updateCurNodeFromFocus;
|
|
335
264
|
/**
|
|
336
265
|
* Get the first navigable node on the workspace, or null if none exist.
|
|
337
266
|
*
|
|
338
267
|
* @returns The first navigable node on the workspace, or null.
|
|
339
268
|
*/
|
|
340
|
-
getFirstNode():
|
|
269
|
+
getFirstNode(): INavigable<any> | null;
|
|
341
270
|
/**
|
|
342
271
|
* Get the last navigable node on the workspace, or null if none exist.
|
|
343
272
|
*
|
|
344
273
|
* @returns The last navigable node on the workspace, or null.
|
|
345
274
|
*/
|
|
346
|
-
getLastNode():
|
|
275
|
+
getLastNode(): INavigable<any> | null;
|
|
347
276
|
}
|
|
348
277
|
//# sourceMappingURL=line_cursor.d.ts.map
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @class
|
|
11
11
|
*/
|
|
12
|
-
import
|
|
13
|
-
import type {
|
|
12
|
+
import { BlockSvg } from '../block_svg.js';
|
|
13
|
+
import type { INavigable } from '../interfaces/i_navigable.js';
|
|
14
|
+
import { ASTNode } from './ast_node.js';
|
|
14
15
|
/**
|
|
15
16
|
* Class for a marker.
|
|
16
17
|
* This is used in keyboard navigation to save a location in the Blockly AST.
|
|
@@ -19,47 +20,37 @@ export declare class Marker {
|
|
|
19
20
|
/** The colour of the marker. */
|
|
20
21
|
colour: string | null;
|
|
21
22
|
/** The current location of the marker. */
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The object in charge of drawing the visual representation of the current
|
|
25
|
-
* node.
|
|
26
|
-
*/
|
|
27
|
-
private drawer;
|
|
23
|
+
protected curNode: INavigable<any> | null;
|
|
28
24
|
/** The type of the marker. */
|
|
29
25
|
type: string;
|
|
30
|
-
/**
|
|
31
|
-
* Sets the object in charge of drawing the marker.
|
|
32
|
-
*
|
|
33
|
-
* @param drawer The object in charge of drawing the marker.
|
|
34
|
-
*/
|
|
35
|
-
setDrawer(drawer: MarkerSvg): void;
|
|
36
|
-
/**
|
|
37
|
-
* Get the current drawer for the marker.
|
|
38
|
-
*
|
|
39
|
-
* @returns The object in charge of drawing the marker.
|
|
40
|
-
*/
|
|
41
|
-
getDrawer(): MarkerSvg | null;
|
|
42
26
|
/**
|
|
43
27
|
* Gets the current location of the marker.
|
|
44
28
|
*
|
|
45
29
|
* @returns The current field, connection, or block the marker is on.
|
|
46
30
|
*/
|
|
47
|
-
getCurNode():
|
|
31
|
+
getCurNode(): INavigable<any> | null;
|
|
48
32
|
/**
|
|
49
33
|
* Set the location of the marker and call the update method.
|
|
50
34
|
*
|
|
51
35
|
* @param newNode The new location of the marker, or null to remove it.
|
|
52
36
|
*/
|
|
53
|
-
setCurNode(newNode:
|
|
37
|
+
setCurNode(newNode: INavigable<any> | null): void;
|
|
38
|
+
/** Dispose of this marker. */
|
|
39
|
+
dispose(): void;
|
|
54
40
|
/**
|
|
55
|
-
*
|
|
41
|
+
* Converts an INavigable to a legacy ASTNode.
|
|
56
42
|
*
|
|
57
|
-
* @
|
|
43
|
+
* @param node The INavigable instance to convert.
|
|
44
|
+
* @returns An ASTNode representation of the given object if possible,
|
|
45
|
+
* otherwise null.
|
|
58
46
|
*/
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
47
|
+
toASTNode(node: INavigable<any> | null): ASTNode | null;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the block that this marker's current node is a child of.
|
|
50
|
+
*
|
|
51
|
+
* @returns The parent block of the marker's current node if any, otherwise
|
|
52
|
+
* null.
|
|
53
|
+
*/
|
|
54
|
+
getSourceBlock(): BlockSvg | null;
|
|
64
55
|
}
|
|
65
56
|
//# sourceMappingURL=marker.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { INavigable } from '../interfaces/i_navigable.js';
|
|
7
|
+
import type { INavigationPolicy } from '../interfaces/i_navigation_policy.js';
|
|
8
|
+
import type { WorkspaceSvg } from '../workspace_svg.js';
|
|
9
|
+
/**
|
|
10
|
+
* Set of rules controlling keyboard navigation from a workspace.
|
|
11
|
+
*/
|
|
12
|
+
export declare class WorkspaceNavigationPolicy implements INavigationPolicy<WorkspaceSvg> {
|
|
13
|
+
/**
|
|
14
|
+
* Returns the first child of the given workspace.
|
|
15
|
+
*
|
|
16
|
+
* @param current The workspace to return the first child of.
|
|
17
|
+
* @returns The top block of the first block stack, if any.
|
|
18
|
+
*/
|
|
19
|
+
getFirstChild(current: WorkspaceSvg): INavigable<unknown> | null;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the parent of the given workspace.
|
|
22
|
+
*
|
|
23
|
+
* @param _current The workspace to return the parent of.
|
|
24
|
+
* @returns Null.
|
|
25
|
+
*/
|
|
26
|
+
getParent(_current: WorkspaceSvg): INavigable<unknown> | null;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the next sibling of the given workspace.
|
|
29
|
+
*
|
|
30
|
+
* @param _current The workspace to return the next sibling of.
|
|
31
|
+
* @returns Null.
|
|
32
|
+
*/
|
|
33
|
+
getNextSibling(_current: WorkspaceSvg): INavigable<unknown> | null;
|
|
34
|
+
/**
|
|
35
|
+
* Returns the previous sibling of the given workspace.
|
|
36
|
+
*
|
|
37
|
+
* @param _current The workspace to return the previous sibling of.
|
|
38
|
+
* @returns Null.
|
|
39
|
+
*/
|
|
40
|
+
getPreviousSibling(_current: WorkspaceSvg): INavigable<unknown> | null;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=workspace_navigation_policy.d.ts.map
|
package/core/marker_manager.d.ts
CHANGED
|
@@ -20,12 +20,8 @@ export declare class MarkerManager {
|
|
|
20
20
|
static readonly LOCAL_MARKER = "local_marker_1";
|
|
21
21
|
/** The cursor. */
|
|
22
22
|
private cursor;
|
|
23
|
-
/** The cursor's SVG element. */
|
|
24
|
-
private cursorSvg;
|
|
25
23
|
/** The map of markers for the workspace. */
|
|
26
24
|
private markers;
|
|
27
|
-
/** The marker's SVG element. */
|
|
28
|
-
private markerSvg;
|
|
29
25
|
/**
|
|
30
26
|
* @param workspace The workspace for the marker manager.
|
|
31
27
|
* @internal
|
|
@@ -65,28 +61,6 @@ export declare class MarkerManager {
|
|
|
65
61
|
* @param cursor The cursor used to move around this workspace.
|
|
66
62
|
*/
|
|
67
63
|
setCursor(cursor: LineCursor): void;
|
|
68
|
-
/**
|
|
69
|
-
* Add the cursor SVG to this workspace SVG group.
|
|
70
|
-
*
|
|
71
|
-
* @param cursorSvg The SVG root of the cursor to be added to the workspace
|
|
72
|
-
* SVG group.
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
|
-
setCursorSvg(cursorSvg: SVGElement | null): void;
|
|
76
|
-
/**
|
|
77
|
-
* Add the marker SVG to this workspaces SVG group.
|
|
78
|
-
*
|
|
79
|
-
* @param markerSvg The SVG root of the marker to be added to the workspace
|
|
80
|
-
* SVG group.
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
83
|
-
setMarkerSvg(markerSvg: SVGElement | null): void;
|
|
84
|
-
/**
|
|
85
|
-
* Redraw the attached cursor SVG if needed.
|
|
86
|
-
*
|
|
87
|
-
* @internal
|
|
88
|
-
*/
|
|
89
|
-
updateMarkers(): void;
|
|
90
64
|
/**
|
|
91
65
|
* Dispose of the marker manager.
|
|
92
66
|
* Go through and delete all markers associated with this marker manager.
|