Constructor
new Shiviz()
Constructs a new Shiviz object. As Shiviz is a singleton, do not call this
constructor directly. This constructor is the "entry-point" for the
application. That is, this is the first function to run on Shiviz's startup.
Methods
(static) getInstance() → {Shiviz}
Gets the instance of the Shiviz singleton
Returns:
The singleton instance
- Type
- Shiviz
go(index, store, force)
Navigates to tab index and pushes history state to browser so user can use
back button to navigate between tabs.
Parameters:
Name | Type | Description |
---|---|---|
index |
Integer | The index of the tab: 0 of home, 1 for input, 2 for visualization |
store |
Boolean | Whether or not to store the history state |
force |
Boolean | Whether or not to force redrawing of graph |
resetView()
Resets the visualization.
visualize()
This method creates the visualization. The user's input to UI elements are
retrieved and used to construct the visualization accordingly.