AutomaticLinkDecorators
Helper class that ties together all LinkDecoratorAutomaticDefinition
and provides
the downcast dispatchers for them.
Properties
-
length : number
readonlymodule:link/utils/automaticdecorators~AutomaticLinkDecorators#length
Gives information about the number of decorators stored in the
AutomaticLinkDecorators
instance. -
_definitions : Set<NormalizedLinkDecoratorAutomaticDefinition>
privatemodule: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
add
method.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
add
method when linking images.Returns
( dispatcher: DowncastDispatcher ) => void
A dispatcher function used as conversion helper in
add
.