@univerjs/core v0.1.17 • Docs
Class: TextX
Constructors
new TextX()
new TextX(): TextX
Returns
Properties
Property | Modifier | Type | Default value | Defined in |
---|---|---|---|---|
id | static | string | 'text-x' | submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:34 (opens in a new tab) |
uri | static | string | 'https://github.com/dream-num/univer#text-x' | submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:36 (opens in a new tab) |
Methods
delete()
delete(len, segmentId): this
Parameters
Parameter | Type | Default value |
---|---|---|
len | number | undefined |
segmentId | string | '' |
Returns
this
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:218 (opens in a new tab)
insert()
insert(
len,
body,
segmentId): this
Parameters
Parameter | Type | Default value |
---|---|---|
len | number | undefined |
body | IDocumentBody | undefined |
segmentId | string | '' |
Returns
this
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:184 (opens in a new tab)
push()
push(...args): this
Parameters
Parameter | Type |
---|---|
...args | TextXAction [] |
Returns
this
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:236 (opens in a new tab)
retain()
retain(
len,
segmentId,
body?,
coverType?): this
Parameters
Parameter | Type | Default value |
---|---|---|
len | number | undefined |
segmentId | string | '' |
body ? | IDocumentBody | undefined |
coverType ? | UpdateDocsAttributeType | undefined |
Returns
this
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:198 (opens in a new tab)
serialize()
serialize(): TextXAction[]
Returns
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:231 (opens in a new tab)
trimEndUselessRetainAction()
protected trimEndUselessRetainAction(): this
Returns
this
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:301 (opens in a new tab)
apply()
static apply(doc, actions): IDocumentBody
Parameters
Parameter | Type |
---|---|
doc | IDocumentBody |
actions | TextXAction [] |
Returns
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:38 (opens in a new tab)
compose()
static compose(thisActions, otherActions): TextXAction[]
Parameters
Parameter | Type |
---|---|
thisActions | TextXAction [] |
otherActions | TextXAction [] |
Returns
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:42 (opens in a new tab)
invert()
static invert(actions): TextXAction[]
Parameters
Parameter | Type |
---|---|
actions | TextXAction [] |
Returns
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:104 (opens in a new tab)
isNoop()
static isNoop(actions): boolean
Parameters
Parameter | Type |
---|---|
actions | TextXAction [] |
Returns
boolean
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:100 (opens in a new tab)
makeInvertible()
static makeInvertible(actions, doc): TextXAction[]
Parameters
Parameter | Type |
---|---|
actions | TextXAction [] |
doc | IDocumentBody |
Returns
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:151 (opens in a new tab)
transform()
static transform(
_thisActions,
_otherActions,
_priority): TextXAction[]
Parameters
Parameter | Type |
---|---|
_thisActions | TextXAction [] |
_otherActions | TextXAction [] |
_priority | TPriority |
Returns
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/text-x.ts:96 (opens in a new tab)