Built-In Namespace _global_
Field Attributes | Field Name and Description |
---|---|
creates group element
|
|
creates link object
|
|
creates a background
creates a click functionality of the background
|
|
creates a new simulation
updates the positions of the links and nodes when the
state of the layout has changed (simulation has advanced by a tick)
|
|
creates svg object and associated attributes
applies the zoom behavior to svg
|
|
creates a new zoom behavior
|
Method Attributes | Method Name and Description |
---|---|
center()
transforms svg so that it is centered
|
|
clickNode(node)
colors the circle and its links black and removes the previous markings
|
|
removes the markings of the circles and their links
|
|
dragged(node)
applies the dragging to the node
|
|
dragstarted(node)
initializes the dragging of the node
|
|
firstauthor(authors)
returns last name of first author
|
|
isLinkForNode(node, link)
returns true if link is directly connected to node and false if it is not
|
|
marker(color)
creates arrowhead and returns its url
|
|
marklink(node)
sets color of link (line and arrowhead) to black if it is directly connected to node
and to grey otherwise
|
|
resets the positions of the nodes
|
|
transforms svg so that that the zoom is reset
|
|
textfunc(node)
outputs node info to textbox
|
|
updates the positions of the links and nodes
|
|
update(nodes, links)
calls update functions for links and nodes
adds the nodes and links to the simulation
|
|
updateLinks(links)
initializes and shows links
|
|
updateNodes(nodes)
initializes and shows nodes with circles and texts
creates a new drag behavior and applies it to the circles
creates a click functionality of the circles and texts
|
|
applies the transformation (zooming or dragging) to the g element
|
Field Detail
g
creates group element
Defined in: cn.js.
Defined in: cn.js.
link
creates link object
Defined in: cn.js.
Defined in: cn.js.
rect
creates a background
creates a click functionality of the background
Defined in: cn.js.
Defined in: cn.js.
simulation
creates a new simulation
updates the positions of the links and nodes when the
state of the layout has changed (simulation has advanced by a tick)
Defined in: cn.js.
Defined in: cn.js.
svg
creates svg object and associated attributes
applies the zoom behavior to svg
Defined in: cn.js.
Defined in: cn.js.
zoom
creates a new zoom behavior
Defined in: cn.js.
Defined in: cn.js.
Method Detail
center()
transforms svg so that it is centered
Defined in: cn.js.
Defined in: cn.js.
clickNode(node)
colors the circle and its links black and removes the previous markings
Defined in: cn.js.
Defined in: cn.js.
- Parameters:
- {object} node
- - node
clickRect()
removes the markings of the circles and their links
Defined in: cn.js.
Defined in: cn.js.
dragged(node)
applies the dragging to the node
Defined in: cn.js.
Defined in: cn.js.
- Parameters:
- {object} node
- - data of current node
dragstarted(node)
initializes the dragging of the node
Defined in: cn.js.
Defined in: cn.js.
- Parameters:
- {object} node
- - data of current node
firstauthor(authors)
returns last name of first author
Defined in: cn.js.
Defined in: cn.js.
- Parameters:
- {string} authors
- - the comma-separated string of authors
isLinkForNode(node, link)
returns true if link is directly connected to node and false if it is not
Defined in: cn.js.
Defined in: cn.js.
- Parameters:
- {object} node
- - node
- {object} link
- - link
marker(color)
creates arrowhead and returns its url
Defined in: cn.js.
Defined in: cn.js.
- Parameters:
- {string} color
- - color of arrowhead
marklink(node)
sets color of link (line and arrowhead) to black if it is directly connected to node
and to grey otherwise
Defined in: cn.js.
Defined in: cn.js.
- Parameters:
- {object} node
- - node
resetGraph()
resets the positions of the nodes
Defined in: cn.js.
Defined in: cn.js.
resetZoom()
transforms svg so that that the zoom is reset
Defined in: cn.js.
Defined in: cn.js.
textfunc(node)
outputs node info to textbox
Defined in: cn.js.
Defined in: cn.js.
- Parameters:
- {object} node
- - data of current node
tickHandler()
updates the positions of the links and nodes
Defined in: cn.js.
Defined in: cn.js.
update(nodes, links)
calls update functions for links and nodes
adds the nodes and links to the simulation
Defined in: cn.js.
Defined in: cn.js.
- Parameters:
- {object} nodes
- - nodes
- {object} links
- - links
updateLinks(links)
initializes and shows links
Defined in: cn.js.
Defined in: cn.js.
- Parameters:
- {object} links
- - links
updateNodes(nodes)
initializes and shows nodes with circles and texts
creates a new drag behavior and applies it to the circles
creates a click functionality of the circles and texts
Defined in: cn.js.
Defined in: cn.js.
- Parameters:
- {object} nodes
- - nodes
zoomHandler()
applies the transformation (zooming or dragging) to the g element
Defined in: cn.js.
Defined in: cn.js.