Class: JSONX
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:42
Constructors
new JSONX()
new JSONX(): JSONX
Returns
Properties
Methods
editOp()
editOp(subOp, path): JSONOp
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:125
Parameters
Parameter | Type |
---|---|
subOp | TextXAction [] |
path | string [] |
Returns
insertOp()
insertOp(path, value): JSONOp
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:116
Parameters
Parameter | Type |
---|---|
path | Path |
value | any |
Returns
moveOp()
moveOp(from, to): JSONOp
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:111
Parameters
Parameter | Type |
---|---|
from | Path |
to | Path |
Returns
removeOp()
removeOp(path, value?): JSONOp
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:107
Parameters
Parameter | Type |
---|---|
path | Path |
value ? | any |
Returns
replaceOp()
replaceOp(
path,
oldVal,
newVal): JSONOp
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:121
Parameters
Parameter | Type |
---|---|
path | Path |
oldVal | any |
newVal | any |
Returns
apply()
static apply(doc, actions):
| undefined
| null
| string
| number
| boolean
| Doc[]
| {}
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:59
Parameters
Parameter | Type |
---|---|
doc | IDocumentData |
actions | JSONOp |
Returns
| undefined
| null
| string
| number
| boolean
| Doc
[]
| {}
compose()
static compose(thisActions, otherActions): JSONOp
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:67
Parameters
Parameter | Type |
---|---|
thisActions | JSONOp |
otherActions | JSONOp |
Returns
getInstance()
static getInstance(): JSONX
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:98
Returns
invertWithDoc()
static invertWithDoc(actions, doc): JSONOp
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:84
Parameters
Parameter | Type |
---|---|
actions | JSONOp |
doc | IDocumentData |
Returns
isNoop()
static isNoop(actions): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:92
Parameters
Parameter | Type |
---|---|
actions | JSONOp |
Returns
boolean
registerSubtype()
static registerSubtype(subType): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:49
Parameters
Parameter | Type |
---|---|
subType | ISubType |
Returns
void
transform()
static transform(
thisActions,
otherActions,
priority):
| undefined
| null
| JSONOpList
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:71
Parameters
Parameter | Type |
---|---|
thisActions | JSONOp |
otherActions | JSONOp |
priority | TPriority |
Returns
| undefined
| null
| JSONOpList
transformPosition()
static transformPosition(
thisActions,
index,
priority): number
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:76
Parameters
Parameter | Type | Default value |
---|---|---|
thisActions | JSONOp | undefined |
index | number | undefined |
priority | TPriority | 'right' |
Returns
number