Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > geras > PathObject > (konstruktor)
geras.PathObject.(constructor)
Membuat instance baru dari class PathObject
Tanda Tangan:
constructor(root: SVGElement, style: BlockStyle, constants: ConstantProvider);
Parameter
Parameter |
Jenis |
Deskripsi |
root |
SVGElement |
Elemen SVG root. |
gaya |
BlockStyle |
Objek gaya yang akan digunakan untuk pewarnaan. |
constants |
ConstantProvider |
Konstanta perender. |
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-08-22 UTC.
[null,null,["Terakhir diperbarui pada 2024-08-22 UTC."],[[["`geras.PathObject` is a class for creating and managing path elements within Blockly workspaces using the Geras renderer."],["This constructor initializes a `PathObject` instance with a root SVG element, a style object for coloring, and a ConstantProvider for renderer-specific constants."],["Developers use this constructor to create path elements that visually represent connections, shapes, and other components within Blockly blocks, using the Geras rendering style."]]],[]]