API > @blocksuite/store > ReactiveYMap
Class: ReactiveYMap ​
Extends ​
BaseReactiveYData
<UnRecord
,Map
<unknown
> >
Constructors ​
constructor ​
new ReactiveYMap(
_source
,_ySource
,_options
):ReactiveYMap
Parameters ​
Parameter | Type |
---|---|
_source | UnRecord |
_ySource | Map < unknown > |
_options | ProxyOptions < UnRecord > |
Returns ​
Overrides ​
Defined In ​
packages/store/src/reactive/proxy.ts:122
Properties ​
_options ​
protected
readonly
_options:ProxyOptions
<UnRecord
>
Defined In ​
packages/store/src/reactive/proxy.ts:125
Inherited from ​
_proxy ​
protected
readonly
_proxy:UnRecord
Defined In ​
packages/store/src/reactive/proxy.ts:121
Overrides ​
_skipNext ​
protected
_skipNext:boolean
=false
Defined In ​
packages/store/src/reactive/utils.ts:103
Inherited from ​
_source ​
protected
readonly
_source:UnRecord
Defined In ​
packages/store/src/reactive/proxy.ts:123
Inherited from ​
_ySource ​
protected
readonly
_ySource:Map
<unknown
>
Defined In ​
packages/store/src/reactive/proxy.ts:124
Inherited from ​
Accessors ​
proxy ​
get
proxy():T
Defined In ​
packages/store/src/reactive/utils.ts:106
Inherited from ​
Methods ​
_getOrigin ​
protected
_getOrigin(doc
):object
Parameters ​
Parameter | Type |
---|---|
doc | Doc |
Returns ​
doc
​
doc:
Doc
proxy
​
proxy:
true
target
​
target:
BaseReactiveYData
<any
,any
>
Inherited from ​
Defined In ​
packages/store/src/reactive/utils.ts:110
_getProxy ​
protected
_getProxy():UnRecord
Returns ​
Overrides ​
Defined In ​
packages/store/src/reactive/proxy.ts:133
_observer ​
private
_observer(event
):void
Parameters ​
Parameter | Type |
---|---|
event | YMapEvent < unknown > |
Returns ​
void
Defined In ​
packages/store/src/reactive/proxy.ts:183
_onObserve ​
protected
_onObserve(event
,handler
):void
Parameters ​
Parameter | Type |
---|---|
event | YEvent < any > |
handler | function |
Returns ​
void
Inherited from ​
Defined In ​
packages/store/src/reactive/utils.ts:136
_transact ​
protected
_transact(doc
,fn
):void
Parameters ​
Parameter | Type |
---|---|
doc | Doc |
fn | function |
Returns ​
void
Inherited from ​
Defined In ​
packages/store/src/reactive/utils.ts:131
_updateWithSkip ​
protected
_updateWithSkip(fn
):void
Parameters ​
Parameter | Type |
---|---|
fn | function |
Returns ​
void
Inherited from ​
BaseReactiveYData
._updateWithSkip
Defined In ​
packages/store/src/reactive/utils.ts:125