blockly > geras > PathObject
Klasa geras.PathObject
Obiekt, który obsługuje tworzenie i konfigurowanie 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)(pierwiastek, styl, stałe) | Tworzy 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 haśle „#RRGGBB” . | |
| stałe | ConstantProvider | ||
| svgPathDark | SVGElement | ||
| svgPathLight | SVGElement |
Metody
| Metoda | Modyfikatory | Opis |
|---|---|---|
| applyColour(block) | ||
| flipRTL() | ||
| setHighlightPath(highlightPath) | Ustaw ścieżkę wyróżnienia wygenerowaną przez mechanizm renderowania do elementu SVG. | |
| setPath(mainPath) | ||
| setStyle(blockStyle) | ||
| updateDisabled_(disabled) | ||
| updateHighlighted(highlighted) | ||
| updateShadow_(shadow) |