Constructor
new Node(nameopt)
Constructor.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
name |
string |
<optional> |
utils.getName(this.getType())
|
Name of the Node. |
Members
to :Array.<Node>
Link to other nodes.
Type:
- Array.<Node>
Methods
getName() → {string}
Get name of the Node.
Returns:
Node's name.
- Type
- string
getType() → {string}
Get type of Node.
Returns:
Node's type.
- Type
- string
toJson(optsopt) → {Object}
Export node as JSON.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
opts |
Object |
<optional> |
{}
|
Options. |
Returns:
Node's properties.
- Type
- Object