CommandFactory
Classes
CommandFactory
Implements
Constructors
Constructor
new CommandFactory(
textManager,
fontRegistry,
clipboard): CommandFactory;
Parameters
| Parameter | Type |
|---|---|
textManager | ITextManager |
fontRegistry | IFontRegistry |
clipboard | IClipboard |
Returns
Methods
create()
create(type, initData?): ICommand;
Creates a command of the required type.
Parameters
| Parameter | Type | Description |
|---|---|---|
type | CommandType | command type. |
initData? | any | data required to initialize the command. |
Returns
Implementation of
setFontRegistry()
setFontRegistry(fontRegistry): void;
Parameters
| Parameter | Type |
|---|---|
fontRegistry | IFontRegistry |
Returns
void