blockly > geras > PathObject

Klasa geras.PathObject

Obiekt, który obsługuje tworzenie i ustawienie każdego z elementów SVG używanych przez mechanizm renderowania.

Podpis:

export declare class PathObject extends BasePathObject 

Rozszerza: BasePathObject

Zespoły

Zespół Modyfikatory Opis
(konstruktor)(root, styl, stałe) Konstruuje nową instancję klasy PathObject

Właściwości

Właściwość Modyfikatory Typ Opis
colourDark ciąg znaków Kolor ciemnej ścieżki na bryle w formacie „#RRGGBB”.
constants ConstantProvider
svgPathDark SVGElement
svgPathLight SVGElement

Metody

Metoda Modyfikatory Opis
applyColour(block)
flipRTL()
setHighlightPath(highlightPath) Ustaw na elemencie SVG ścieżkę zaznaczenia wygenerowaną przez mechanizm renderowania.
setPath(mainPath)
setStyle(blockStyle)
updateDisabled_(disabled)
updateHighlighted(highlighted)
updateShadow_(shadow)