Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
E
 each
 eachAdjacency, GraphUtil
 eachBFS, GraphUtil
 eachLevel
 eachNode, GraphUtil
 eachSubnode, GraphUtil
 enter, Config
 equals
 expand, ST
F
 filter, GraphUtil
 fitsInCanvas
 flagRoot
G
 getAdjacence, Graph
 getAdjacency, Graph.Node
 getBaseSize, Tree.Geometry
 getBoundingBox, Tree.Geometry
 getChildren, Tree.Children
 getClosestNodeToOrigin, GraphUtil
 getCtx, Canvas
 getEdge, Tree.Geometry
 getElement, Canvas
 getFirstPos, Tree.Geometry
 getLabel, GraphPlot
 getLabelContainer, GraphPlot
 getLeaves
 getLength, Tree.Children
 getLevel, Tree.Util
 getNode
 getNodeAndParentAngle, RGraph
 getNodesWithChildren, Tree.Group
 getOffsetSize, Tree.Geometry
 getParent, TreeUtil
 getParents, GraphUtil
 getRightLevelToShow, Tree.Geometry
 getRoot
 getScaledTreePosition, Tree.Geometry
 getSize
 getSubnodes, GraphUtil
 getSubtree
 getTreeBaseSize, Tree.Geometry
 Graph, Graph
H
 hasClass, Tree.Label
 hasNode, Graph
 headBox, Config
 hide
 hideLabel, GraphPlot
 hideLabels
 Hypertree, Hypertree
each: function(tree,
action)
Iterates over a nodes children performing an action.
each: function(tree,
action)
Iterates over tree nodes performing an action.
each: function(tree,
action)
A tree iterator.
eachAdjacency: function(node,
action,
flags)
Iterates over a node adjacencies applying the action function.
eachBFS: function(graph,
id,
action,
flags)
Performs a BFS traversal of a graph beginning by the node of id id and performing action on each node.
eachLevel: function(tree,
levelBegin,
levelEnd,
action)
Iterates over tree nodes to a certain tree level performing an action.
eachLevel: function(tree,
initLevel,
toLevel,
action)
Iterates on tree nodes which relative depth is less or equal than a specified level.
eachNode: function(graph,
action,
flags)
Iterates over graph nodes performing an action.
eachSubnode: function(graph,
node,
action,
flags)
After a BFS traversal the depth property of each node has been modified.
enter: function(elem)
Sets the elem parameter as root and performs the layout.
equals: function(c)
Comparison method.
equals: function(c)
Comparison method.
expand: function (node,
onComplete)
Determines which nodes to expand (and expands their subtrees).
filter: function(param)
For internal use only.
fitsInCanvas: function(pos,
canvas)
Returns true or false if the label for the node is contained on the canvas dom element or not.
fitsInCanvas: function(pos,
canvas)
Returns true or false if the current position is between canvas limits or not.
flagRoot: function(id)
Flags a node specified by id as root.
flagRoot: function(id)
Flags a node specified by id as root.
getAdjacence: function (id,
id2)
Returns an array of Graph.Adjacence that connects nodes with id id and id2.
getAdjacency: function(id)
Returns a Graph.Adjacence that connects the current Graph.Node with the node having id as id.
getBaseSize: function(tree,
contracted,
type)
Calculates a subtree base size.
getBoundingBox: function (tree)
Calculates a tree bounding box.
getChildren: function(tree,
property)
Returns a filtered array of children for the current node.
getClosestNodeToOrigin: function(graph,
prop,
flags)
Returns the closest node to the center of canvas.
getCtx: function()
Main canvas context.
getEdge: function(pos,
type)
Returns a Complex instance with the begin or end position of the edge to be plotted.
getElement: function()
DOM canvas wrapper generated.
getFirstPos: function(initialPos,
baseHeight)
Calculates the first children position given a node position.
getLabel: function(id)
Lazy fetcher for the label DOM element.
getLabelContainer: function()
Lazy fetcher for the label container.
getLeaves: function(tree)
Returns an array of the tree leaves.
getLeaves: function (node,
maxLevel)
Returns the leaves of the tree.
getLength: function(tree,
property)
Returns the length of a filtered children array.
getLevel: function(tree)
Returns the current level of the tree node.
getNode: function(id)
Returns a Graph.Node from a specified id.
getNode: function(graph,
id)
Returns a graph node with a specified id.
getNodeAndParentAngle: function(id)
Returns the parent of the given node, also calculating its angle span.
getNodesWithChildren: function(nodes)
Filters an array of nodes leaving only nodes with children.
getOffsetSize: function()
Returns label offsetHeight or offsetWidth, depending on the tree current orientation.
getParent: function(tree,
id)
Returns the parent node of the node having id.
getParents: function(graph,
node)
Returns all nodes having a depth that is less than the node’s depth property.
getRightLevelToShow: function(tree,
canvas)
Returns the right level to show for the current tree in order to fit in canvas.
getRoot: function()
Returns the node flagged as root.
getRoot: function()
Returns the node flagged as root.
getRoot: function(tree)
Returns the tree root node.
getScaledTreePosition: function(tree,
scale)
Adjusts the tree position due to canvas scaling or translation.
getSize: function()
Returns canvas dimensions.
getSize: function(invert)
Returns label height or with, depending on the tree current orientation.
getSubnodes: function(graph,
id,
level,
flags)
Collects all subnodes for a specified node.
getSubtree: function(tree,
id)
Returns the subtree of the node with specified id or null if it doesn’t find it.
getSubtree: function(tree,
id)
Returns the subtree that matches the given id.
getTreeBaseSize: function(tree,
type,
level)
Calculates a subtree base size.
var Graph= function()
Creates a new Graph instance.
hasClass: function(node,
cssClass)
Returns true if the specified class name is found in the label.
hasNode: function(id)
Returns a Boolean instance indicating if node belongs to graph or not.
headBox: function(json,
coord)
Creates the head div dom element that usually contains the name of a parent JSON tree node.
hide: function(nodes,
canvas,
controller)
Collapses group of nodes.
hide: function(node)
Hides the label by adding a “hidden” className to it.
hideLabel: function(node)
Hides a label having node.id as id.
hideLabels: function (hide)
Hides all labels.
hideLabels: function(subtree,
hide)
Hides all labels of the tree.
var Hypertree = function(canvas,
controller)
Creates a new Hypertree instance.
Close