Classes
Namespaces
Methods
(static) _extend(dst, src) → {object}
Extend an object.
Parameters:
Name | Type | Description |
---|---|---|
dst |
object | Object to extend. |
src |
object | Source object. |
- Source:
Returns:
Extended object.
- Type
- object
(static) bind(_this, func) → {function}
Parameters:
Name | Type | Description |
---|---|---|
_this |
Object | |
func |
function |
- Source:
Returns:
- Type
- function
(static) defaultSimulation(simulationnullable, nodes, links) → {D3Simulation}
Default simulation update function.
This:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
simulation |
D3Simulation |
<nullable> |
Old simulation object. |
nodes |
Array.<ge.Node> | Graph nodes. | |
links |
Array.<ge.Link> | Graph links. |
- Source:
Returns:
New/updated simulation object.
- Type
- D3Simulation
(static) equal(u, v, epsopt) → {boolean}
Compare numbers or arrays of numbers.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
u |
number | Array.<number> | |||
v |
number | Array.<number> | |||
eps |
number |
<optional> |
1e-5 | Precision. |
- Source:
Returns:
- Type
- boolean
(static) extend(dst, …src) → {object}
Extend an object.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
dst |
object | Object to extend. | |
src |
object |
<repeatable> |
Source objects. |
- Source:
Returns:
Extended object.
- Type
- object
(static) id(objnullable) → (nullable) {ID}
Get object ID.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
obj |
Object | undefined |
<nullable> |
- Source:
Returns:
- Type
- ID