DifferItemRoot
interface
A single diff item for a changed root.
Properties
-
attributes : Record<string, object> | undefinedmodule:engine/model/differ~DifferItemRoot#attributesKeeps all attribute changes that happened on the root.
The keys are keys of the changed attributes. The values are objects containing the attribute value before the change (
oldValue) and after the change (newValue).Note, that if the root state changed (
stateis set), thenattributesproperty will not be set. All attributes should be handled together with the root being attached or detached. -
name : stringmodule:engine/model/differ~DifferItemRoot#nameName of the changed root.
-
state : 'attached' | 'detached' | undefinedmodule:engine/model/differ~DifferItemRoot#stateSet accordingly if the root got attached or detached. Otherwise, not set.