Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
blockly > IPositionable
Antarmuka IPositionable
Antarmuka untuk komponen yang diposisikan di atas ruang kerja.
Tanda Tangan:
export interface IPositionable extends IComponent
Memperluas: IComponent
Metode
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-09 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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"]]