BlockSuite API Documentation / @blocksuite/store / ReactiveYArray
Class: ReactiveYArray ​
Contents ​
Extends ​
BaseReactiveYData<unknown[],Array<unknown>>
Constructors ​
new ReactiveYArray(_source, _ySource, _options) ​
new ReactiveYArray(
_source,_ySource,_options):ReactiveYArray
Parameters ​
• _source: unknown[]
• _ySource: Array<unknown>
• _options: ProxyOptions<unknown[]>
Returns ​
Overrides ​
@blocksuite/store.BaseReactiveYData.constructor
Source ​
packages/store/src/reactive/proxy.ts:21
Properties ​
_options ​
protectedreadonly_options:ProxyOptions<unknown[]>
Inherited from ​
@blocksuite/store.BaseReactiveYData._options
Source ​
packages/store/src/reactive/proxy.ts:24
_proxy ​
protectedreadonly_proxy:unknown[]
Overrides ​
@blocksuite/store.BaseReactiveYData._proxy
Source ​
packages/store/src/reactive/proxy.ts:20
_skipNext ​
protected_skipNext:boolean=false
Inherited from ​
@blocksuite/store.BaseReactiveYData._skipNext
Source ​
packages/store/src/reactive/utils.ts:103
_source ​
protectedreadonly_source:unknown[]
Inherited from ​
@blocksuite/store.BaseReactiveYData._source
Source ​
packages/store/src/reactive/proxy.ts:22
_stashed ​
protectedreadonly_stashed:Set<string|number>
Inherited from ​
@blocksuite/store.BaseReactiveYData._stashed
Source ​
packages/store/src/reactive/utils.ts:105
_ySource ​
protectedreadonly_ySource:Array<unknown>
Inherited from ​
@blocksuite/store.BaseReactiveYData._ySource
Source ​
packages/store/src/reactive/proxy.ts:23
Accessors ​
proxy ​
getproxy():T
Returns ​
T
Source ​
packages/store/src/reactive/utils.ts:110
Methods ​
_getOrigin() ​
protected_getOrigin(doc):Object
Parameters ​
• doc: Doc
Returns ​
Object
doc ​
doc:
Docproxy ​
proxy:
truetarget ​
target:
BaseReactiveYData<any,any>
Inherited from ​
@blocksuite/store.BaseReactiveYData._getOrigin
Source ​
packages/store/src/reactive/utils.ts:114
_getProxy() ​
protected_getProxy():unknown[]
Returns ​
unknown[]
Overrides ​
@blocksuite/store.BaseReactiveYData._getProxy
Source ​
packages/store/src/reactive/proxy.ts:42
_observer() ​
private_observer(event):void
Parameters ​
• event: YArrayEvent<unknown>
Returns ​
void
Source ​
packages/store/src/reactive/proxy.ts:104
_onObserve() ​
protected_onObserve(event,handler):void
Parameters ​
• event: YEvent<any>
• handler: () => void
Returns ​
void
Inherited from ​
@blocksuite/store.BaseReactiveYData._onObserve
Source ​
packages/store/src/reactive/utils.ts:140
_transact() ​
protected_transact(doc,fn):void
Parameters ​
• doc: Doc
• fn: () => void
Returns ​
void
Inherited from ​
@blocksuite/store.BaseReactiveYData._transact
Source ​
packages/store/src/reactive/utils.ts:135
_updateWithSkip() ​
protected_updateWithSkip(fn):void
Parameters ​
• fn: () => void
Returns ​
void
Inherited from ​
@blocksuite/store.BaseReactiveYData._updateWithSkip
Source ​
packages/store/src/reactive/utils.ts:129
pop() ​
pop(
prop):void
Parameters ​
• prop: number
Returns ​
void
Overrides ​
@blocksuite/store.BaseReactiveYData.pop
Source ​
packages/store/src/reactive/proxy.ts:36
stash() ​
stash(
prop):void
Parameters ​
• prop: number
Returns ​
void
Overrides ​
@blocksuite/store.BaseReactiveYData.stash
Source ​
packages/store/src/reactive/proxy.ts:32
Generated using typedoc-plugin-markdown and TypeDoc