Back to Website
Show / Hide Table of Contents

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
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback