Private
Internal
_itPrivate
Readonly
Internal
_onReadonly
readAfterEvent keeper of current value.
The [AfterEvent__symbol]
property is an alias of this one.
Current value keeper.
The tracked value.
The tracked value.
An event supply of this value tracker.
Returns an AfterEvent instance of this event keeper.
AfterEvent instance registering event receivers sent by this keeper.
Updates the tracked value by the given value supplier
.
If the value is already updated by another supplier, then unbinds from the old one first.
Call the byNone method to unbind the tracked value from the source
.
Note that explicitly updating the value would override the value received from the source
.
The source value sender or keeper.
this
instance.
Updates the tracked value by value suppliers extracted from events sent by the given supplier
.
If the value is already updated by another value supplier, then unbinds from the old one first.
Call the byNone method to unbind the tracked value from the source
.
Note that explicitly updating the value would override the value received from the source
.
Source event type.
The event supplier to extract value suppliers from.
A function extracting value supplier from event received from supplier
.
May return undefined
to suspend receiving values.
Rest
...event: TSrcEventthis
instance.
Unbinds the tracked value from any value supplier this tracker is updated by.
If the tracker is not bound then does nothing.
Optional
reason: unknownArbitrary reason of unbinding the value.
this
instance.
Synchronizes the tracked value with the others.
Applies the value from this sync to the given tracker first.
A value tracker to keep in sync.
An event supply. Supply.off Cut it off to break synchronization.
Synchronizes the tracked value with the others in the given direction.
If set to "in"
the value from the given tracker takes precedence over the one in
ValueSync. Otherwise the value from the sync is applied to the given tracker first.
A value tracker to keep in sync.
An event supply. Supply.off Cut it off to break synchronization.
Synchronizes the tracked value with the ones extracted from the events sent by the given supplier
.
Once next value tracker extracted the previous one becomes out of sync.
Applies the value from this sync to extracted trackers.
A type of supplied events to extract value trackers from.
The event supplier to extract value trackers from.
A function extracting the value tracker to keep in sync from the event received from supplier
.
May return undefined
to just break the sync with previous tracker.
Rest
...event: TSrcEventAn event supply. Supply.off Cut it off to break synchronization.
Synchronizes the tracked value with the ones extracted from the events sent by the given supplier
in the given direction.
Once next value tracker extracted the previous one becomes out of sync.
A type of supplied events to extract value trackers from.
If set to "in"
the value from extracted tracker takes precedence over the one in
ValueSync. Otherwise the value from the sync is applied to extracted trackers first.
The event supplier to extract value trackers from.
A function extracting the value tracker to keep in sync from the event received from supplier
.
May return undefined
to just break the sync with previous tracker.
Rest
...event: TSrcEventAn event supply. Supply.off Cut it off to break synchronization.
Generated using TypeDoc
Synchronizes tracked values with each other.
Any change to any of the added tracked values would update all the others.