DifferItemRemove
interface
A single diff item for removed nodes.
Properties
-
module:engine/model/differ~DifferItemRemove#action
Further specifies what kind of action led to generating this change.
The action is set in relation to the document state before any change. It means that, for example, if an element was renamed and then removed (during the same batch), the action will be set to
'remove'
, because when compared to the document state before changes, the element was removed, and it does not matter that it was also renamed at one point. -
attributes : Map<string, unknown>
module:engine/model/differ~DifferItemRemove#attributes
Map of attributes that were set on the item while it was removed.
-
length : number
module:engine/model/differ~DifferItemRemove#length
The length of a removed text node. For elements, it is always 1, as each removed element is counted as a one.
-
name : string
module:engine/model/differ~DifferItemRemove#name
The name of the removed element or
'$text'
for a text node. -
module:engine/model/differ~DifferItemRemove#position
The position where the node was removed.
-
type : 'remove'
module:engine/model/differ~DifferItemRemove#type
The type of diff item.