Add properties for math and color attributes in Graph class
This commit is contained in:
parent
a30be96bf2
commit
6e373cd04f
39
compiler.py
39
compiler.py
|
|
@ -907,6 +907,45 @@ class Graph:
|
||||||
@property
|
@property
|
||||||
def file_info(self) -> FileInfo: return self._file_info
|
def file_info(self) -> FileInfo: return self._file_info
|
||||||
|
|
||||||
|
@property
|
||||||
|
def x(self) -> None | Expression | InlineAnimation: return self._x
|
||||||
|
|
||||||
|
@property
|
||||||
|
def y(self) -> None | Expression | InlineAnimation: return self._y
|
||||||
|
|
||||||
|
@property
|
||||||
|
def t(self) -> None | InlineAnimation: return self._t
|
||||||
|
|
||||||
|
@property
|
||||||
|
def r(self) -> None | Expression: return self._r
|
||||||
|
|
||||||
|
@property
|
||||||
|
def theta(self) -> None | InlineAnimation: return self._theta
|
||||||
|
|
||||||
|
@property
|
||||||
|
def color_alpha(self) -> None | Expression: return self._color_alpha
|
||||||
|
|
||||||
|
@property
|
||||||
|
def color_grey(self) -> None | Expression: return self._color_grey
|
||||||
|
|
||||||
|
@property
|
||||||
|
def color_red(self) -> None | Expression: return self._color_red
|
||||||
|
|
||||||
|
@property
|
||||||
|
def color_green(self) -> None | Expression: return self._color_green
|
||||||
|
|
||||||
|
@property
|
||||||
|
def color_blue(self) -> None | Expression: return self._color_blue
|
||||||
|
|
||||||
|
@property
|
||||||
|
def color_hue(self) -> None | Expression: return self._color_hue
|
||||||
|
|
||||||
|
@property
|
||||||
|
def color_saturation(self) -> None | Expression: return self._color_saturation
|
||||||
|
|
||||||
|
@property
|
||||||
|
def color_luminosity(self) -> None | Expression: return self._color_luminosity
|
||||||
|
|
||||||
def tree_str(self, pre: str = "", pre_cont: str = "") -> str:
|
def tree_str(self, pre: str = "", pre_cont: str = "") -> str:
|
||||||
s: str = f"{pre} Graph\n"
|
s: str = f"{pre} Graph\n"
|
||||||
if self._x is not None:
|
if self._x is not None:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue