@univerjscoreclassesJsonx

@univerjs/core v0.5.4


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

JSONX

Properties

PropertyModifierTypeDefault valueDefined in
uristaticstring'https://github.com/dream-num/univer#json-x'packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/json-x/json-x.ts:45

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

ParameterType
subOpTextXAction[]
pathstring[]

Returns

JSONOp


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

ParameterType
pathPath
valueany

Returns

JSONOp


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

ParameterType
fromPath
toPath

Returns

JSONOp


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

ParameterType
pathPath
value?any

Returns

JSONOp


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

ParameterType
pathPath
oldValany
newValany

Returns

JSONOp


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

ParameterType
docIDocumentData
actionsJSONOp

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

ParameterType
thisActionsJSONOp
otherActionsJSONOp

Returns

JSONOp


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

JSONX


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

ParameterType
actionsJSONOp
docIDocumentData

Returns

JSONOp


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

ParameterType
actionsJSONOp

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

ParameterType
subTypeISubType

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

ParameterType
thisActionsJSONOp
otherActionsJSONOp
priorityTPriority

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

ParameterTypeDefault value
thisActionsJSONOpundefined
indexnumberundefined
priorityTPriority'right'

Returns

number