@univerjs/core v0.4.2 • Docs
Function: getCustomRangeSlice()
function getCustomRangeSlice(
body,
startOffset,
endOffset): {
customRanges: {
endIndex: number;
properties: Record<string, any>;
rangeId: string;
rangeType: number;
startIndex: number;
wholeEntity: boolean;
}[];
leftOffset: number;
rightOffset: number;
}
Parameters
Parameter | Type |
---|---|
body | IDocumentBody |
startOffset | number |
endOffset | number |
Returns
{
customRanges: {
endIndex: number;
properties: Record<string, any>;
rangeId: string;
rangeType: number;
startIndex: number;
wholeEntity: boolean;
}[];
leftOffset: number;
rightOffset: number;
}
Name | Type | Defined in |
---|---|---|
customRanges | { endIndex : number ; properties : Record <string , any >; rangeId : string ; rangeType : number ; startIndex : number ; wholeEntity : boolean ; }[] | submodules/univer/packages/core/src/docs/data-model/text-x/utils.ts:262 (opens in a new tab) |
leftOffset | number | submodules/univer/packages/core/src/docs/data-model/text-x/utils.ts:267 (opens in a new tab) |
rightOffset | number | submodules/univer/packages/core/src/docs/data-model/text-x/utils.ts:268 (opens in a new tab) |
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/utils.ts:226 (opens in a new tab)