Function Index
Returns the result of adding two complex numbers. Connects nodes specified by id1 and id2. Connects the node to the specified by id. Adds a node. Indicates if the node is adjacent to the node indicated by the specified id For private use only. Intended for private use: calculates positions for children and grandchildren of root node. Intended for private use: calculates node positions on canvas by performing a BFS-like algorithm Canvas initializer. Captures mouse position. Clears the canvas object. Complex constructor. Returns the conjugate por this complex. For private use only: corrects angle value based on quadrant. Draws the boundary circle for the Hyperbolic Tree. Canvas context handler. Returns a node info property. Canvas absolute position to the HTML document. Returns mouse position relative to canvas. An object that contains the canvas width and height. Returns a Boolean instance indicating if node belongs to graph or not. Creates a new HT instance. HyperLine constructor. Loads parameters and places the HT. Loads an HT with the depth, children and prob parameters stored in the Config object. Loads an HT with the loadTreeArray parameter stored in the Config object.
Creates and displays labels for the centered node and its adjacent nodes. Calculates a moebius transformation for this point / complex. Calculates a moebius transformation for the hyperbolic tree. Node constructor. Calculates the complex norm. Calculates node’s distance to origin. Prints graph / tree edges Creates a label containing the root node information. Creates a label containing the node information. Used for drawing the HT on a frame Prints the HT nodes after being translated to a relative position. Prints the HT on canvas Draws the HyperLine on canvas. Plots the node on canvas. Returns the result of multiplying two complex numbers. Returns the result of scaling a Complex instance. For private use only: sets angle direction to clockwise (true) or counterclockwise (false). Intended for private use: sets some label properties, such as positioning and className. For private use: sets a flag. Calculates canvas absolute position on HTML document. Calculates the complex squared norm. Returns a string that shows the Complex properties. Translates the HT to the mouse position. Tranlates the HT to a given position Translates canvas coordinates system to the center of the canvas object. |