Back to Website
Show / Hide Table of Contents

Class HandlerFactoryByItem

Package: @aurigma/design-atoms

Constructors

(constructor)(canvas, textEditorControllerFactory, colorPreviewService, colorParser)

Constructs a new instance of the HandlerFactoryByItem class

Declaration
constructor(canvas: ICanvas, textEditorControllerFactory: ITextEditorControllerFactory, colorPreviewService: IListenableColorPreviewService, colorParser: IColorParser);
Parameters
Type Name Description
ICanvas canvas
ITextEditorControllerFactory textEditorControllerFactory
IListenableColorPreviewService colorPreviewService
IColorParser colorParser

Properties

afterReplaceItemHandlerEvent

Declaration
get afterReplaceItemHandlerEvent(): EventObject<ItemHandler>;
Property Value
Type Description
EventObject<ItemHandler>

beforeReplaceItemHandlerEvent

Declaration
get beforeReplaceItemHandlerEvent(): EventObject<ItemHandler>;
Property Value
Type Description
EventObject<ItemHandler>

get

Declaration
get: <THandler extends ItemHandler>(item: Item) => THandler;
Property Value
Type Description
<THandler extends ItemHandler>(item: Item) => THandler

Methods

clear()

Declaration
clear(): void;
Returns
Type Description
void

delete(handler)

Declaration
delete(handler: ItemHandler): void;
Parameters
Type Name Description
ItemHandler handler
Returns
Type Description
void

getUseLegacyTextReasons(item)

Declaration
static getUseLegacyTextReasons(item: BaseTextItem): string[];
Parameters
Type Name Description
BaseTextItem item
Returns
Type Description
string[]

replaceItemHandler(item, newItem)

Declaration
replaceItemHandler(item: Item, newItem?: Item): void;
Parameters
Type Name Description
Item item
Item newItem
Returns
Type Description
void

replaceTextItemHandler(item)

Declaration
replaceTextItemHandler(item: BaseTextItem): void;
Parameters
Type Name Description
BaseTextItem item
Returns
Type Description
void

setFontRegistry(fontRegistry)

Declaration
setFontRegistry(fontRegistry: FontRegistry): void;
Parameters
Type Name Description
FontRegistry fontRegistry
Returns
Type Description
void
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback