How to get operationsManager
import operationsManager from 'fontoxml-operations/src/operationsManager.js'
Operations control all interaction with the document and most state of the application. The operationManager manages the operations pipeline. It may execute operations and retrieve the state of an operation.
Provides a way to dynamically compose a set of alternatives. This method uses
Example usage: tab, shift-tab, move-item-up and move-item-down operation handles their keybindings. A few alternative operations are already added and new alternatives can be added as below. For example, to add row-delete operation for deleting a row from a table to shift+tab key.
Execute the Operation with the specified operationName, optionally passing the specified initialData as its step data. Returns a promise that resolves to the resulting step data when the operation completes.
Code calling this method should always handle rejection, to prevent console errors about unhandled rejections.
May reject without a value to represent cancellation, or with a value to represent failure.
Compute the state of the operation with the specified operationName, optionally passing the specified initialData as its step data.
If resultAsStepData is true, this function returns the resulting step data with the operation state object under the operationState property.
Otherwise, directly returns the resulting state object.
Cause the state of the given operation to be re-evaluated.
This will also re-evaluate the state of any operation that uses this operation.
Cause the state of any operation using the given step type to be re-evaluated.
This includes any operation using the step type indirectly through another operation.