AutomaticLinkDecorators
Helper class that ties together all LinkDecoratorAutomaticDefinition and provides the downcast dispatchers for them.
Properties
- length : numberreadonly- module:link/utils/automaticdecorators~AutomaticLinkDecorators#length- Gives information about the number of decorators stored in the - AutomaticLinkDecoratorsinstance.
- _definitions : Set<NormalizedLinkDecoratorAutomaticDefinition>private- module:link/utils/automaticdecorators~AutomaticLinkDecorators#_definitions- Stores the definition of automatic decorators. This data is used as a source for a downcast dispatcher to create a proper conversion to output data. 
Methods
- add( item ) → void- module:link/utils/automaticdecorators~AutomaticLinkDecorators#add- Adds automatic decorator objects or an array with them to be used during downcasting. - Parameters- item : ArrayOrItem<NormalizedLinkDecoratorAutomaticDefinition>
- A configuration object of automatic rules for decorating links. It might also be an array of such objects. 
 - Returns- void
 
- getDispatcher() → ( dispatcher: DowncastDispatcher ) => void- module:link/utils/automaticdecorators~AutomaticLinkDecorators#getDispatcher- Provides the conversion helper used in the - addmethod.- Returns- ( dispatcher: DowncastDispatcher ) => void
- A dispatcher function used as conversion helper in - add.
 
- getDispatcherForLinkedImage() → ( dispatcher: DowncastDispatcher ) => void- module:link/utils/automaticdecorators~AutomaticLinkDecorators#getDispatcherForLinkedImage- Provides the conversion helper used in the - addmethod when linking images.- Returns- ( dispatcher: DowncastDispatcher ) => void
- A dispatcher function used as conversion helper in - add.