Built-In Namespace _global_
Field Attributes | Field Name and Description |
---|---|
scale functions that return y coordinate/color of node depending on group
|
|
creates group element
|
|
draws x-axis
|
|
checks at a fixed interval whether the contents of the JSON file have changed
and reloads the program if necessary
|
|
creates link object
|
|
creates a background with a click functionality
|
|
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 svg object (legend) with text, circles and arrows
|
|
saves highlighted node for click functionality
|
|
creates x-axis element
|
|
creates a new zoom behavior
|
Method Attributes | Method Name and Description |
---|---|
removes the highlights of the circles and their links
|
|
click_node(node)
sets color of circle and its links to black and removes the previous highlights
displays overview info of node in textbox
|
|
display_abstract(a-)
displays abstract in textbox if a is true, overview text otherwise
|
|
dragged_node(node)
applies the dragging to the node
|
|
fix_nodes(this_node)
fix positions of all nodes except for the current node
|
|
get_svg_string(svgNode)
generate svgString
|
|
updates the positions of the links and nodes
|
|
applies the transformation (zooming or dragging) to the g element
|
|
highlight_button(btn)
sets color of btn to dark gray
|
|
is_link_for_node(node, link)
returns true if link is directly connected to node and false if it is not
|
|
mark_link(node)
sets color of link (line and arrowhead) to black if it is directly connected to node
and to grey otherwise
|
|
sets color of all buttons to default light gray
|
|
transforms svg so that the zoom and drag is reset
|
|
save_svg()
save svg as png
|
|
self_citation(source, target)
returns true if journals have a common author (self-citation)
|
|
start_drag_node(node)
initializes the dragging of the node
|
|
svg_string_to_image(svgString, width, height, format, callback)
convert svgString to image and export it
|
|
textbox_content(node)
saves text for overview and abstract of node
outputs node info to textbox
|
|
update(nodes, links)
calls update functions for links, nodes and x-axis
adds the nodes, links and tick functionality to the simulation
|
|
update_links(links)
initializes and shows links (edges)
|
|
update_marker(color, target)
creates arrowhead and returns its url
|
|
update_nodes(nodes)
initializes and shows nodes with circles, texts and a click functionality
creates a new drag behavior and applies it to the circles
|
|
update_xaxis(nodes)
initializes and shows x-axis
|
|
transforms svg so that the zoom is adapted to the size of the graph
|
Field Detail
color
scale functions that return y coordinate/color of node depending on group
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
g
creates group element
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
gX
draws x-axis
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
intervalId
checks at a fixed interval whether the contents of the JSON file have changed
and reloads the program if necessary
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
link
creates link object
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
rect
creates a background with a click functionality
Defined in: cn_timeline.js.
Defined in: cn_timeline.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_timeline.js.
Defined in: cn_timeline.js.
svg
creates svg object and associated attributes
applies the zoom behavior to svg
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
svg_legend
creates svg object (legend) with text, circles and arrows
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
to_remove
saves highlighted node for click functionality
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
xAxis
creates x-axis element
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
zoom
creates a new zoom behavior
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
Method Detail
click_background()
removes the highlights of the circles and their links
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
click_node(node)
sets color of circle and its links to black and removes the previous highlights
displays overview info of node in textbox
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} node
- - node
display_abstract(a-)
displays abstract in textbox if a is true, overview text otherwise
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {bool} a-
- bool
dragged_node(node)
applies the dragging to the node
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} node
- - node
fix_nodes(this_node)
fix positions of all nodes except for the current node
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} this_node
- - node
get_svg_string(svgNode)
generate svgString
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} svgNode
- - node
handle_tick()
updates the positions of the links and nodes
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
handle_transformation()
applies the transformation (zooming or dragging) to the g element
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
highlight_button(btn)
sets color of btn to dark gray
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} btn
- - button
is_link_for_node(node, link)
returns true if link is directly connected to node and false if it is not
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} node
- - node
- {object} link
- - link
mark_link(node)
sets color of link (line and arrowhead) to black if it is directly connected to node
and to grey otherwise
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} node
- - node
reset_button_highlight()
sets color of all buttons to default light gray
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
reset_view()
transforms svg so that the zoom and drag is reset
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
save_svg()
save svg as png
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
self_citation(source, target)
returns true if journals have a common author (self-citation)
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} source
- - node
- {object} target
- - node
start_drag_node(node)
initializes the dragging of the node
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} node
- - node
svg_string_to_image(svgString, width, height, format, callback)
convert svgString to image and export it
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} svgString
- - svgString
- {object} width
- - width of image
- {object} height
- - height of image
- {object} format
- - format to save image in
- {object} callback
- - callback function
textbox_content(node)
saves text for overview and abstract of node
outputs node info to textbox
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} node
- - node
update(nodes, links)
calls update functions for links, nodes and x-axis
adds the nodes, links and tick functionality to the simulation
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} nodes
- - nodes
- {object} links
- - links
update_links(links)
initializes and shows links (edges)
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} links
- - links
update_marker(color, target)
creates arrowhead and returns its url
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {string} color
- - color of arrowhead
- {string} target
- - target node
update_nodes(nodes)
initializes and shows nodes with circles, texts and a click functionality
creates a new drag behavior and applies it to the circles
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} nodes
- - nodes
update_xaxis(nodes)
initializes and shows x-axis
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.
- Parameters:
- {object} nodes
- - nodes
zoom_to_graph()
transforms svg so that the zoom is adapted to the size of the graph
Defined in: cn_timeline.js.
Defined in: cn_timeline.js.