Constructor
new Operation(operationDefinition)
Parameters:
| Name | Type | Description |
|---|---|---|
operationDefinition |
OperationDefinition |
- Source:
Members
_registeredOperations
Key-value store of modules and their types
Properties:
| Name | Type | Description |
|---|---|---|
_registeredOperations |
object |
- Source:
type
Operation Type
Identifies the operation in its definition.
- Source:
Methods
(static) from(operationDefinition)
Generate a operation instance from its definition.
Parameters:
| Name | Type | Description |
|---|---|---|
operationDefinition |
OperationDefinition | A operation definition |
- Source:
(static) registerOperation(OperationClass)
Registeres a operation so that its definitions may be used dynamically.
Parameters:
| Name | Type | Description |
|---|---|---|
OperationClass |
Operation | Any operation |
- Source:
transform(value, character) → {Number|String|Boolean}
Operational transformation
Parameters:
| Name | Type | Description |
|---|---|---|
value |
||
character |
- Source:
Returns:
- Type
- Number | String | Boolean