Constructor
new Entity(dataopt) → {Entity}
Generic template for virtual objects.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
data |
Object |
<optional> |
{} | Pass an object to use. |
- Source:
Returns:
Instance of the Entity.
- Type
- Entity
Methods
_downsample(inputopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
input |
Mixed |
<optional> |
Input to downsample. If not provided, current Entity will be used. |
- Source:
toJSON() → {String}
Produces a string of JSON, representing the entity.
- Source:
Returns:
JSON-encoded object.
- Type
- String
toRaw() → {Buffer}
As a Buffer.
- Source:
Returns:
Slice of memory.
- Type
- Buffer