API > @blocksuite/store > ProxyManager
Class: ProxyManager ​
Constructors ​
constructor ​
new ProxyManager():
ProxyManager
Returns ​
Properties ​
_proxies ​
private
_proxies:WeakMap
<Array
<unknown
> |Map
<unknown
>,unknown
>
Defined In ​
packages/store/src/yjs/proxy.ts:14
readonly ​
readonly:
boolean
=false
Defined In ​
packages/store/src/yjs/proxy.ts:12
Methods ​
_applyYChanges ​
private
_applyYChanges<T
>(yData
,changes
):T
Type parameters ​
Parameter | Default |
---|---|
T | unknown |
Parameters ​
Parameter | Type |
---|---|
yData | Array < unknown > | Map < unknown > |
changes | function |
Returns ​
T
Defined In ​
packages/store/src/yjs/proxy.ts:102
_createYArrayProxy ​
private
_createYArrayProxy<T
>(yArray
):T
[]
Type parameters ​
Parameter | Default |
---|---|
T | unknown |
Parameters ​
Parameter | Type |
---|---|
yArray | Array < unknown > |
Returns ​
T
[]
Defined In ​
packages/store/src/yjs/proxy.ts:155
_createYMapProxy ​
private
_createYMapProxy<Data
>(yMap
):Data
Type parameters ​
Parameter |
---|
Data extends Record < string , unknown > |
Parameters ​
Parameter | Type |
---|---|
yMap | Map < unknown > |
Returns ​
Data
Defined In ​
packages/store/src/yjs/proxy.ts:215
_initialize ​
private
_initialize(array
,yArray
):void
Parameters ​
Parameter | Type |
---|---|
array | unknown [] |
yArray | Array < unknown > |
Returns ​
void
Defined In ​
packages/store/src/yjs/proxy.ts:17
private
_initialize(object
,yMap
):void
Parameters ​
Parameter | Type |
---|---|
object | UnRecord |
yMap | Map < unknown > |
Returns ​
void
Defined In ​
packages/store/src/yjs/proxy.ts:18
_subscribeYArray ​
private
_subscribeYArray(arr
,yArray
):void
Parameters ​
Parameter | Type |
---|---|
arr | unknown [] |
yArray | Array < unknown > |
Returns ​
void
Defined In ​
packages/store/src/yjs/proxy.ts:33
_subscribeYMap ​
private
_subscribeYMap(object
,yMap
):void
Parameters ​
Parameter | Type |
---|---|
object | UnRecord |
yMap | Map < unknown > |
Returns ​
void
Defined In ​
packages/store/src/yjs/proxy.ts:71
createYProxy ​
createYProxy<
Data
>(yAbstract
):Data
Type parameters ​
Parameter |
---|
Data |
Parameters ​
Parameter | Type |
---|---|
yAbstract | Array < unknown > | Map < unknown > |
Returns ​
Data
Defined In ​
packages/store/src/yjs/proxy.ts:116
transformData ​
transformData(
value
,onCreate
):unknown
Parameters ​
Parameter | Type |
---|---|
value | unknown |
onCreate | function |
Returns ​
unknown
Defined In ​
packages/store/src/yjs/proxy.ts:139