Graph

Graph

Graph attributs and methods
Source:

Members

(static) graph.elts.circles

Graph circle (into nodes) (d3) elements
Source:

(static) graph.elts.images

Graph images (into nodes) (d3) elements
Source:

(static) graph.elts.labels

Graph texts (into nodes) (d3) elements
Source:
Graph links (d3) elements
Source:

(static) graph.elts.nodes

Graph nodes (d3) elements
Source:

(static) graph.elts.tip

Infotip (on hover links)
Source:

(static) graph.height :number

Graph svg height
Source:
Type:
  • number

(static) graph.params :obj

Parameters for graph : node gravity, appearance
Default Value:
  • {"nodeSize":12,"nodeStrokeSize":2,"force":800,"distanceMax":400,"highlightColor":"red"}
Source:
Type:
  • obj

(static) graph.width :number

Graph svg with
Source:
Type:
  • number

(static) graph.zoomParams

Graph zoom parameters
Default Value:
  • {"zoomInterval":0.3,"zoomMax":3,"zoomMin":1}
Source:
All links attributes
Source:
Type:
  • array

(static) nodeContainImage :bool

If the nodes must contain an image
Source:
Type:
  • bool

(static) nodes :array

All nodes attributes
Source:
Type:
  • array

(static) pos :obj

Graph SVG position as the user view parameters
Default Value:
  • {"zoom":1,"x":0,"y":0}
Source:
Type:
  • obj

(static) selectedNodeId :obj

Id of the current selected node
Source:
Type:
  • obj

(static) svg :obj

Selected SVG as a d3 object
Source:
Type:
  • obj

Methods

(static) graph.init()

Graph initialisation
Source: