Class: Shiviz

Shiviz

Shiviz is the class responsible for "global" application level aspects of the software. For example, this class is responsible for binding handlers to shiviz's various global UI elements. Shiviz is a singleton

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.
Source:

Methods

(static) getInstance() → {Shiviz}

Gets the instance of the Shiviz singleton
Source:
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
Source:

resetView()

Resets the visualization.
Source:

visualize()

This method creates the visualization. The user's input to UI elements are retrieved and used to construct the visualization accordingly.
Source: