Visualizer: toggle between different output options (#122)

* added dynamic setting options based on graph outputs

* added functionality to view different types of outputs

* fixed first value set to nothing

* moved try except in smaller scope
This commit is contained in:
evonneng authored and GitHub committed 2022-07-12 18:52:04 -07:00
1 parent 437606e614
commit 25a1f91dee
5 files changed
+135 -12

No files matched your search

+22
View File
@@ -72,6 +72,28 @@ class SetTransform:
return {"type": "set_transform", "path": self.path.lower(), "matrix": list(self.matrix.T.flatten())}
class SetOutputOptions:
__slots__ = ["output_options", "path"]
def __init__(self, output_options, path):
self.output_options = output_options
self.path = path
def lower(self):
return {"type": "set_output_options", "path": self.path.lower(), "output_options": list(self.output_options)}
class SetOutputType:
__slots__ = ["output_type", "path"]
def __init__(self, output_type, path):
self.output_type = output_type
self.path = path
def lower(self):
return {"type": "set_output_options", "path": self.path.lower(), "output_options": list(self.output_type)}
class Delete:
__slots__ = ["path"]