DowncastConversionApi
Conversion interface that is registered for given DowncastDispatcher
and is passed as one of parameters when dispatcher
fires its events.
Properties
-
module:engine/conversion/downcastdispatcher~DowncastConversionApi#consumable
Stores the information about what parts of a processed model item are still waiting to be handled. After a piece of a model item was converted, an appropriate consumable value should be consumed.
-
module:engine/conversion/downcastdispatcher~DowncastConversionApi#dispatcher
The
DowncastDispatcher
instance. -
module:engine/conversion/downcastdispatcher~DowncastConversionApi#mapper
The
Mapper
instance. -
options : Record<string, unknown>
module:engine/conversion/downcastdispatcher~DowncastConversionApi#options
An object with an additional configuration which can be used during the conversion process. Available only for data downcast conversion.
-
module:engine/conversion/downcastdispatcher~DowncastConversionApi#schema
The
ModelSchema
instance set for the model that is downcast. -
module:engine/conversion/downcastdispatcher~DowncastConversionApi#writer
The
ViewDowncastWriter
instance used to manipulate the data during conversion.
Methods
-
canReuseView( element ) → boolean
module:engine/conversion/downcastdispatcher~DowncastConversionApi#canReuseView
-
convertAttributes( item ) → void
module:engine/conversion/downcastdispatcher~DowncastConversionApi#convertAttributes
Triggers conversion of attributes of a specified item.
Parameters
item : ModelItem
The model item to trigger attribute conversion on.
Returns
void
-
convertChildren( element ) → void
module:engine/conversion/downcastdispatcher~DowncastConversionApi#convertChildren
Triggers conversion of children of a specified element.
Parameters
element : ModelElement
The model element to trigger children insert conversion on.
Returns
void
-
convertItem( item ) → void
module:engine/conversion/downcastdispatcher~DowncastConversionApi#convertItem
Triggers conversion of a specified item. This conversion is triggered within (as a separate process of) the parent conversion.
Parameters
item : ModelItem
The model item to trigger nested insert conversion on.
Returns
void