Class CommandFactory
Package: @aurigma/design-atoms-text
Constructors
(constructor)(_textManager, _fontRegistry, _clipboard)
Constructs a new instance of the CommandFactory
class
Declaration
constructor(_textManager: ITextManager, _fontRegistry: IFontRegistry, _clipboard: IClipboard);
Parameters
Type | Name | Description |
---|---|---|
ITextManager | _textManager | |
IFontRegistry | _fontRegistry | |
IClipboard | _clipboard |
Methods
create(type, initData)
Declaration
create(type: CommandType, initData?: any): ICommand;
Parameters
Type | Name | Description |
---|---|---|
CommandType | type | |
any | initData |
Returns
Type | Description |
---|---|
ICommand |
setFontRegistry(fontRegistry)
Declaration
setFontRegistry(fontRegistry: IFontRegistry): void;
Parameters
Type | Name | Description |
---|---|---|
IFontRegistry | fontRegistry |
Returns
Type | Description |
---|---|
void |