blockly > IPositionable > Position
Methode IPositionable.position()
Positioniert das Element. Wird aufgerufen, wenn die Größe des Fensters geändert wird.
Unterschrift:
position(metrics: UiMetrics, savedPositions: Rect[]): void;
Parameter
Parameter |
Typ |
Beschreibung |
Messwerte |
UiMetrics |
Die Arbeitsbereichsmesswerte. |
savedPositions |
Rect[] |
Liste der Rechtecke, die sich bereits im Arbeitsbereich befinden. |
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-09-12 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-09-12 (UTC)."],[[["The `IPositionable.position()` method in Blockly is used to position an element, typically when the window is resized."],["It takes `UiMetrics` and a list of existing `Rect` objects as input to determine the element's new position, ensuring it fits within the workspace and avoids overlapping other elements."],["This method doesn't return any value, it directly modifies the position of the element it's called upon."]]],[]]