Event target for listening to node changes. You can subscribe to "view"
events, which are triggered every time the node's view changes.
node.events.on('view', () => {
// do something...
});
Returns a proxy object for this node.
Optionalpath: ApiPathReturns the API object of the extension if the node is an extension node.
When the ext parameter is provided, it checks if the node is an instance
of the given extension and returns the object's TypeScript type. Otherwise,
it returns the API object of the extension, but without any type checking.
API of the extension
Returns the API object of the extension if the node is an extension node.
When the ext parameter is provided, it checks if the node is an instance
of the given extension and returns the object's TypeScript type. Otherwise,
it returns the API object of the extension, but without any type checking.
API of the extension
Optionalpath: ApiPathOptionalpath: ApiPathDeletes a range of octets at a given position.
Position at which to delete octets.
Number of octets to delete.
Reference to itself.
Find a child node at the given path starting from this node.
Optionalpath: ApiPathPath to the child node to find.
JSON CRDT node at the given path.
Inserts octets at a given position.
Position at which to insert octets.
Octets to insert.
Reference to itself.
Get the length of the binary blob without materializing it to a view.
Length of the binary blob.
Optionalpath: ApiPathOptionalpath: ApiPathOptionalpath: ApiPathOptionalpath: ApiPathOptionalpath: ApiPath
Local changes API for the
binJSON CRDT node BinNode. This API allows to insert and delete bytes in the binary string by referencing their local index.