Readonly
changesReadonly
idProtected
onProtected
propertiesProtected
workingWhether this dataspec is ready to use
Optional
lang: anyRest
...val: Subject[] | LiteralValue[]Protected
enqueueEnqueue a change to the buffer which will be sent to upstream sources of truth for synchronization
Rest
...change: PropertyChange[]the change to enqueue
the (first) value of the given property with the given language (if set) or if no language is set or the language is optional and no values with the given language are present, the first value present
Optional
lang: stringthe language of the requested values. If set, only values with the given language will be returned. If no values of the given language are present and the language is optional (lang ends with '?'), all the values will be returned. If not set, all the values will be returned
an array consisting of all the values of the given property. If the values are string literals only values with the specified language are returned. Non string literals are transformed into js objects according to their set datatype. If threre are no values with the given language and teh
Optional
lang: stringthe language of the requested values. If set, only values with the given language will be returned. If no values of the given language are present and the language is optional (lang ends with '?'), all the values will be returned. If not set, all the values will be returned
Protected
notifyProtected
onlyProtected
parseParse the language string or if not set, parse the environment's default language setting
Optional
lang: stringOptional
language?: stringOptional
lang: stringProtected
resolveOptional
lang: stringRest
...object: Subject[] | LiteralValue[]Optional
lang: anyRest
...object: Subject[] | LiteralValue[]Construct a working copy of this dataspec.
Changes to a working copy will not be automatically applied to its backing object. In order to propagate the changes, the user needs to explicitly call WorkingCopy.commit()
When changes are applied to this object, they are automatically propagated to its working copies
Optional
reactivityDecorator: (<T>(original: T) => T)optional function which will apply reactivity to the working copy. The function is expected to take the working copy, wrap it in a reactive proxy and return the wrapper. If specified, it will be invoked with the created working copy and the resulting object will be stored as a working copy. Alternatively the graph itself could allow for setting of a reactivity decorator with the same function
Generated using TypeDoc
The main subject implementation of the Subject interface which works with the LocalGraph
This class is only exported so that it's accessible to the
graph.ts
module.