Select or create a sceneGroup and build/update its nodes and edges.
Structure Pattern:
D3 selection of the parent.
render node of a metanode or series node.
class attribute of the scene (default='scene').
Helper method for fitting the graph in the svg view.
The main svg.
The svg group used for panning and zooming.
The zoom behavior.
Called when the fitting is done.
Helper method for panning the graph to center on the provided node, if the node is currently off-screen.
The node to center the graph on
The root SVG element for the graph
The svg group used for panning and zooming.
The zoom behavior.
True if the graph had to be panned to display the provided node.
Given a scene's svg group, set g.in-extract, g.coreGraph, g.out-extract svg groups' position relative to the scene.
render node of a metanode or series node.
Helper for setting position of a svg expand/collapse button
container group
the render node of the group node to position the button on.
Helper for setting position of a svg ellipse
ellipse to set position of.
Center x.
Center x.
Width to set.
Height to set.
Helper for setting position of a svg rect
rect to set position of.
Center x.
Center x.
Width to set.
Height to set.
Given a container d3 selection, select a child element of a given tag and class. If multiple children matches the tag and class name, returns only the first one.
tag name.
(optional) Class name or list of class names.
selection of the element, or an empty selection
Given a container d3 selection, select a child svg element of a given tag and class if exists or append / insert one otherwise. If multiple children matches the tag and class name, returns only the first one.
tag name.
(optional) Class name or a list of class names.
(optional) reference DOM node for insertion.
selection of the element
Helper for adding transform: translate(x0, y0)
Enums element class of objects in the scene
Generated using TypeDoc
Adds a click listener to a group that fires a graph-select event