Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > bumpObjects > bumpIntoBoundsHandler
Fungsi bumpObjects.bumpIntoBoundsHandler()
Membuat pengendali untuk menempelkan objek saat objek tersebut melewati batas tetap.
Tanda Tangan:
export declare function bumpIntoBoundsHandler(workspace: WorkspaceSvg): (p1: Abstract) => void;
Parameter
Parameter |
Jenis |
Deskripsi |
ruang kerja |
WorkspaceSvg |
Ruang kerja yang akan ditangani. |
Hasil:
(p1: Abstrak) => kosong
Pengendali peristiwa.
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-10-15 UTC.
[null,null,["Terakhir diperbarui pada 2024-10-15 UTC."],[[["The `bumpObjects.bumpIntoBoundsHandler()` function generates an event handler that manages the behavior of objects colliding with the workspace boundaries."],["This function accepts the workspace as input and returns a handler function specifically designed for the `bumpIntoBounds` event."],["The returned handler function takes an `Abstract` event as input, typically triggered when an object interacts with the workspace bounds."]]],[]]