Methods
chooseColor(name) → {string}
Return the RGB color linked to the group name
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
Group name |
Returns:
- Type:
-
string
- RGB formated color
findConnectedNodes(nodeId) → {array}
Return metas from connected nodes
Parameters:
Name | Type | Description |
---|---|---|
nodeId |
number
|
Entity id |
Returns:
- Type:
-
array
objects array contains metadatas
getNodeMetas(nodeId) → {mixed}
Return the metadatas from a node (d3) element
Parameters:
Name | Type | Description |
---|---|---|
nodeId |
number
|
Entity id |
Returns:
- Type:
-
mixed
metadatas of false if malfunction
getNodeNetwork(nodeId) → {object}
Get d3 elts objects : the node, its links and its linked nodes
Parameters:
Name | Type | Description |
---|---|---|
nodeId |
number
|
Returns:
- Type:
-
object
- {node, links, connectedNodes}
highlightNodeNetwork(nodeId)
Highlight a node with the highlight color
Parameters:
Name | Type | Description |
---|---|---|
nodeId |
number
|
switchNode(nodeId, mustZoom) → {boolean}
Change view (graph focus & description bar content) about a node
Parameters:
Name | Type | Default | Description |
---|---|---|---|
nodeId |
number
|
Entity id | |
mustZoom |
boolean
|
true | if true : zoom on node |
Returns:
- Type:
-
boolean
if it works