blockly > blockRendering > MarkerSvg > showWithField_
blockRendering.MarkerSvg.showWithField_() method
Position and display the marker for a field. This is a box around the field.
Signature:
protected showWithField_(curNode: ASTNode): void;
Parameters
Parameter |
Type |
Description |
curNode |
ASTNode |
The node to draw the marker for. |
Returns:
void
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 `blockRendering.MarkerSvg.showWithField_()` method positions and displays a marker (a box) around a specific field within a Blockly block."],["This method is used internally by Blockly's rendering system and takes an ASTNode representing the target field as its input."],["The marker provides a visual cue to the user, highlighting the selected or active field within the block."]]],["The `showWithField_()` method within the `MarkerSvg` class positions and displays a marker around a specified field. It accepts an `ASTNode` as a parameter, designated as `curNode`, which represents the target field node. The method then draws a box around this node to visually indicate it. The method does not return any specific value.\n"]]