blockly > Cursor
Cursor class
Class for a cursor. A cursor controls how a user navigates the Blockly AST.
Signature:
export declare class Cursor extends Marker
Extends: Marker
Constructors
Constructor |
Modifiers |
Description |
(constructor)() |
|
Constructs a new instance of the Cursor class |
Properties
Property |
Modifiers |
Type |
Description |
type |
|
string |
|
Methods
Method |
Modifiers |
Description |
in() |
|
Find the in connection or field. |
next() |
|
Find the next connection, field, or block. |
out() |
|
Find the out connection, field, or block. |
prev() |
|
Find the previous connection, field, or block. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `Cursor` class in Blockly manages user navigation within the Abstract Syntax Tree (AST)."],["It provides methods for traversing connections, fields, and blocks, including `next()`, `prev()`, `in()`, and `out()`."],["Extending the `Marker` class, `Cursor` includes a `type` property and a constructor for object initialization."]]],[]]