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
key as a key of alternative operations' names. Moreover it can update alternatives of an existing operation defined in an 'operation.json' file when the operation keeps the alternative as a 'string' which is a key rather than an array.
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.
operationsManager.addAlternativeOperation('shift-tab', 'row-delete', 75);
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.
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.
Operation State By Operation Name
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.
Operation States By Step Type
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.