Stay organized with collections
Save and categorize content based on your preferences.
blockly > Events > MarkerMove > (constructor)
Events.MarkerMove.(constructor)
Constructs a new instance of the MarkerMove
class
Signature:
constructor(opt_block?: Block | null, isCursor?: boolean, opt_oldNode?: ASTNode | null, opt_newNode?: ASTNode);
Parameters
Parameter |
Type |
Description |
opt_block |
Block | null |
(Optional) The affected block. Null if current node is of type workspace. Undefined for a blank event. |
isCursor |
boolean |
(Optional) Whether this is a cursor event. Undefined for a blank event. |
opt_oldNode |
ASTNode | null |
(Optional) The old node the marker used to be on. Undefined for a blank event. |
opt_newNode |
ASTNode |
(Optional) The new node the marker is now on. Undefined for a blank event. |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `Events.MarkerMove` class constructor creates new instances of marker move events, representing changes in marker positions."],["It optionally accepts parameters specifying the affected block, whether it's a cursor event, and the old and new nodes associated with the marker."],["These events are crucial for tracking and responding to marker movements within the Blockly workspace, enabling features like cursor tracking and code highlighting."]]],[]]