Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > blockRendering > MarkerSvg > Zeichnen
blockRendering.MarkerSvg.draw()-Methode
Aktualisieren Sie die Markierung.
Unterschrift:
draw(oldNode: ASTNode, curNode: ASTNode): void;
Parameter
Parameter |
Typ |
Beschreibung |
oldNode |
ASTNode |
Der vorherige Knoten, auf dem sich die Markierung befand, oder null. |
curNode |
ASTNode |
Der Knoten, für den die Markierung gezeichnet werden soll. |
Gibt zurück:
voidm
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-10-15 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-10-15 (UTC)."],[[["The `blockRendering.MarkerSvg.draw()` method updates the visual marker element associated with a given node in the Blockly workspace."],["This method takes two parameters: `oldNode`, representing the previous node the marker was attached to, and `curNode`, representing the current node to draw the marker for."],["The purpose of the method is to visually indicate the current position of the marker during operations like dragging or connecting blocks."]]],["The `draw` method of `MarkerSvg` updates a marker's position. It takes two `ASTNode` parameters: `oldNode`, representing the marker's previous location (or null), and `curNode`, specifying the new target node. The method's function is to redraw the marker at the `curNode`'s position, effectively moving it from `oldNode` to `curNode`. This method does not return any value.\n"]]