Skip to main content

CommandFactory

Classes

CommandFactory

Implements

Constructors

Constructor
new CommandFactory(
textManager,
fontRegistry,
clipboard): CommandFactory;
Parameters
ParameterType
textManagerITextManager
fontRegistryIFontRegistry
clipboardIClipboard
Returns

CommandFactory

Methods

create()
create(type, initData?): ICommand;

Creates a command of the required type.

Parameters
ParameterTypeDescription
typeCommandTypecommand type.
initData?anydata required to initialize the command.
Returns

ICommand

Implementation of

ICommandFactory.create

setFontRegistry()
setFontRegistry(fontRegistry): void;
Parameters
ParameterType
fontRegistryIFontRegistry
Returns

void

Was this page helpful?