BlockSuite API Documentation / @blocksuite/store / ReactiveYArray
Class: ReactiveYArray
Extends
BaseReactiveYData
<unknown
[],Array
<unknown
>>
Constructors
new ReactiveYArray()
new ReactiveYArray(
_source
,_ySource
,_options
):ReactiveYArray
Parameters
• _source: unknown
[]
• _ySource: Array
<unknown
>
• _options: ProxyOptions
<unknown
[]>
Returns
Overrides
Source
packages/framework/store/src/reactive/proxy.ts:22
Properties
_options
protected
readonly
_options:ProxyOptions
<unknown
[]>
Inherited from
Source
packages/framework/store/src/reactive/proxy.ts:25
_proxy
protected
readonly
_proxy:unknown
[]
Overrides
Source
packages/framework/store/src/reactive/proxy.ts:20
_skipNext
protected
_skipNext:boolean
=false
Inherited from
Source
packages/framework/store/src/reactive/utils.ts:112
_source
protected
readonly
_source:unknown
[]
Inherited from
Source
packages/framework/store/src/reactive/proxy.ts:23
_stashed
protected
readonly
_stashed:Set
<string
|number
>
Inherited from
Source
packages/framework/store/src/reactive/utils.ts:114
_ySource
protected
readonly
_ySource:Array
<unknown
>
Inherited from
Source
packages/framework/store/src/reactive/proxy.ts:24
Accessors
proxy
get
proxy():T
Returns
T
Source
packages/framework/store/src/reactive/utils.ts:100
Methods
_getOrigin()
protected
_getOrigin(doc
):object
Parameters
• doc: Doc
Returns
object
doc
doc:
Doc
proxy
proxy:
true
target
target:
BaseReactiveYData
<any
,any
>
Inherited from
Source
packages/framework/store/src/reactive/utils.ts:118
_getProxy()
protected
_getProxy():unknown
[]
Returns
unknown
[]
Overrides
Source
packages/framework/store/src/reactive/proxy.ts:62
_observer()
private
_observer(event
):void
Parameters
• event: YArrayEvent
<unknown
>
Returns
void
Source
packages/framework/store/src/reactive/proxy.ts:33
_onObserve()
protected
_onObserve(event
,handler
):void
Parameters
• event: YEvent
<any
>
• handler
Returns
void
Inherited from
Source
packages/framework/store/src/reactive/utils.ts:144
_transact()
protected
_transact(doc
,fn
):void
Parameters
• doc: Doc
• fn
Returns
void
Inherited from
Source
packages/framework/store/src/reactive/utils.ts:139
_updateWithSkip()
protected
_updateWithSkip(fn
):void
Parameters
• fn
Returns
void
Inherited from
BaseReactiveYData
._updateWithSkip
Source
packages/framework/store/src/reactive/utils.ts:133
pop()
pop(
prop
):void
Parameters
• prop: number
Returns
void
Overrides
Source
packages/framework/store/src/reactive/proxy.ts:128
stash()
stash(
prop
):void
Parameters
• prop: number
Returns
void
Overrides
Source
packages/framework/store/src/reactive/proxy.ts:124