blockly > geras > PathObject

kelas geras.PathObject

Objek yang menangani pembuatan dan setelan setiap elemen SVG yang digunakan oleh perender.

Tanda Tangan:

export declare class PathObject extends BasePathObject 

Memperluas: BasePathObject

Konstruktor

Konstruktor Pengubah Deskripsi
(konstruktor)(root, gaya, konstanta) Membuat instance baru dari class PathObject

Properti

Properti Pengubah Jenis Deskripsi
colourDark string Warna jalur gelap pada blok dalam format '#RRGGBB'.
constants ConstantProvider
svgPathDark SVGElement
svgPathLight SVGElement

Metode

Metode Pengubah Deskripsi
applyColour(block)
flipRTL()
setHighlightPath(highlightPath) Setel jalur sorotan yang dihasilkan oleh perender ke elemen SVG.
setPath(mainPath)
setStyle(blockStyle)
updateDisabled_(disabled)
updateHighlighted(highlighted)
updateShadow_(shadow)