Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > blockRendering > MarkerSvg > setParent_
Metode blockRendering.MarkerSvg.setParent_()
Melampirkan root SVG penanda ke grup SVG induk.
Tanda Tangan:
protected setParent_(newParent: IASTNodeLocationSvg): void;
Parameter
Parameter |
Jenis |
Deskripsi |
newParent |
IASTNodeLocationSvg |
Ruang kerja, kolom, atau blok tempat elemen SVG penanda harus dilampirkan. |
Hasil:
void
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 `blockRendering.MarkerSvg.setParent_()` method attaches the marker's SVG root to its parent's SVG group."],["It takes one argument: `newParent`, which represents the location (workspace, field, or block) where the marker should be attached."],["This method is used internally for managing the visual representation of markers within Blockly and doesn't return any value."]]],["The `setParent_()` method within the `MarkerSvg` class attaches the marker's SVG root to a specified parent's SVG group. It accepts one parameter, `newParent`, which is of type `IASTNodeLocationSvg`. This parameter represents the workspace, field, or block that the marker's SVG element will be attached to. The method returns void, indicating no explicit return value. The main action is to connect the marker's visual representation to the visual element of the parent.\n"]]