Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > IPositionable
IPositionable Interface
Oberfläche für eine Komponente, die über dem Arbeitsbereich positioniert wird
Unterschrift:
export interface IPositionable extends IComponent
Erweitert: IComponent
Methoden
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-09 (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-09-09 (UTC)."],[[["The `IPositionable` interface in Blockly defines components positioned on the workspace, extending the `IComponent` interface."],["It provides methods to get the bounding rectangle of the element and to position it, particularly during window resizing."]]],["The `IPositionable` interface defines components positioned on top of a workspace. It extends the `IComponent` interface. Key actions include retrieving the UI element's bounding rectangle via `getBoundingRectangle()`, which returns pixel units relative to the injection div. The `position()` method is used to reposition the element, typically when the window size changes. These methods ensure the component's location and dimensions are accurately tracked and managed within the workspace.\n"]]