@univerjs/docs v0.2.11 • Docs
Function: getRetainAndDeleteFromReplace()
function getRetainAndDeleteFromReplace(
range,
segmentId,
memoryCursor,
body): {
cursor: number;
dos: (IRetainAction | IDeleteAction)[];
retain: retainPoints.size;
}
Parameters
Parameter | Type | Default value |
---|---|---|
range | ITextRange | undefined |
segmentId | string | '' |
memoryCursor | number | undefined |
body | IDocumentBody | undefined |
Returns
{
cursor: number;
dos: (IRetainAction | IDeleteAction)[];
retain: retainPoints.size;
}
Name | Type | Default value | Defined in |
---|---|---|---|
cursor | number | - | docs/src/basics/retain-delete-params.ts:92 (opens in a new tab) |
dos | (IRetainAction | IDeleteAction )[] | - | docs/src/basics/retain-delete-params.ts:91 (opens in a new tab) |
retain | number | retainPoints.size | docs/src/basics/retain-delete-params.ts:93 (opens in a new tab) |
Defined in
docs/src/basics/retain-delete-params.ts:21 (opens in a new tab)