diff --git a/README.md b/README.md index be3d80b5..f33c138c 100644 --- a/README.md +++ b/README.md @@ -320,6 +320,8 @@ or any of its children.
parent:Y.AbstractType|null
+ size: number +
Total number of key/value pairs.
get(key:string):object|boolean|string|number|Uint8Array|Y.Type
set(key:string, value:object|boolean|string|number|Uint8Array|Y.Type) @@ -410,7 +412,7 @@ YTextEvents compute changes as deltas.
format(index:number, length:number, formattingAttributes:Object<string,string>)
Assign formatting attributes to a range in the text
- applyDelta(delta, opts:Object<string,any>) + applyDelta(delta: Delta, opts:Object<string,any>)
See Quill Delta Can set options for preventing remove ending newLines, default is true. @@ -483,6 +485,8 @@ or any of its children.
Get the XML serialization of all descendants.
toJSON():string
See toString.
+ createTreeWalker(filter: function(AbstractType<any>):boolean):Iterable +
Create an Iterable that walks through the children.
observe(function(YXmlEvent, Transaction):void)
Adds an event listener to this type that will be called synchronously every time @@ -540,7 +544,7 @@ content and be actually XML compliant.
getAttribute(attributeName:string):string
- getAttributes(attributeName:string):Object<string,string> + getAttributes():Object<string,string>
get(i:number):Y.XmlElement|Y.XmlText
Retrieve the i-th element.
@@ -609,7 +613,9 @@ parameter that is stored on transaction.origin and toJSON():any
-Converts the entire document into a js object, recursively traversing each yjs type. +Deprecated: It is recommended to call toJSON directly on the shared types. +Converts the entire document into a js object, recursively traversing each yjs type. Doesn't +log types that have not been defined (using ydoc.getType(..)).
get(string, Y.[TypeClass]):[Type]
Define a shared type.