Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
blockly > IDraggable
Antarmuka IDraggable
Menampilkan objek yang dapat ditarik.
Tanda Tangan:
export interface IDraggable extends IDragStrategy
Memperluas: IDragStrategy
Metode
Metode |
Deskripsi |
getRelativeToSurfaceXY() |
Menampilkan lokasi saat ini dari item yang dapat ditarik di koordinat ruang kerja. |
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 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[],["The `IDraggable` interface defines an object that can be dragged, extending the `IDragStrategy` interface. It provides a method, `getRelativeToSurfaceXY()`, which is the core action. This method returns the present location of the draggable object within the workspace's coordinate system. Essentially, it allows tracking the dragged item's position relative to the workspace.\n"],null,[]]