new AbstractType()
Classes
Members
-
_dEH :EventHandler.<Array.<YEvent>, Transaction>
-
Deep event handlers
-
_eH :EventHandler.<EventType, Transaction>
-
Event handlers
-
_first
-
The first non-deleted item
-
_item :Item|null
-
-
_map :Map.<string, Item>
-
-
_searchMarker :null|Array.<ArraySearchMarker>
-
-
_start :Item|null
-
-
doc :Doc|null
-
Methods
-
_callObserver(transaction, parentSubs)
-
Creates YEvent and calls all type observers. Must be implemented by each type.
Parameters:
Name Type Description transactionTransaction parentSubsSet.<(null|string)> Keys changed on this type.
nullif list was modified. -
_copy() → {AbstractType.<EventType>}
-
Returns:
AbstractType.<EventType> -
_integrate(y, item)
-
Integrate this type into the Yjs instance.
- Save this struct in the os
- This type is sent to other client
- Observer functions are fired
Parameters:
Name Type Description yDoc The Yjs instance
itemItem | null -
_write(encoder)
-
Parameters:
Name Type Description encoderAbstractUpdateEncoder -
clone() → {AbstractType.<EventType>}
-
Returns:
AbstractType.<EventType> -
observe(f)
-
Observe all events that are created on this type.
Parameters:
Name Type Description ffunction Observer function
-
observeDeep(f)
-
Observe all events that are created by this type and its children.
Parameters:
Name Type Description ffunction Observer function
-
abstract toJSON() → {any}
-
Returns:
any -
unobserve(f)
-
Unregister an observer function.
Parameters:
Name Type Description ffunction Observer function
-
unobserveDeep(f)
-
Unregister an observer function.
Parameters:
Name Type Description ffunction Observer function