@univerjs/sheets-ui v0.5.0-beta.1 • Docs
Function: calculateDocSkeletonRects()
function calculateDocSkeletonRects(
docSkeleton,
paddingLeft,
paddingTop): {
checkLists: {
paragraph: IParagraph;
rect: {
bottom: number;
left: number;
right: number;
top: number;
};
segmentId: undefined;
segmentPageIndex: -1;
}[];
links: {
range: ICustomRange<Record<string, any>>;
rects: {
bottom: number;
left: number;
right: number;
top: number;
}[];
}[];
}
Parameters
Parameter | Type | Default value |
---|---|---|
docSkeleton | DocumentSkeleton | undefined |
paddingLeft | number | 0 |
paddingTop | number | 0 |
Returns
{
checkLists: {
paragraph: IParagraph;
rect: {
bottom: number;
left: number;
right: number;
top: number;
};
segmentId: undefined;
segmentPageIndex: -1;
}[];
links: {
range: ICustomRange<Record<string, any>>;
rects: {
bottom: number;
left: number;
right: number;
top: number;
}[];
}[];
}
Name | Type | Defined in |
---|---|---|
checkLists | { paragraph : IParagraph ; rect : { bottom : number ; left : number ; right : number ; top : number ; }; segmentId : undefined ; segmentPageIndex : -1 ; }[] | submodules/univer/packages/sheets-ui/src/services/utils/doc-skeleton-util.ts:143 |
links | { range : ICustomRange <Record <string , any >>; rects : { bottom : number ; left : number ; right : number ; top : number ; }[]; }[] | submodules/univer/packages/sheets-ui/src/services/utils/doc-skeleton-util.ts:142 |
Defined in
submodules/univer/packages/sheets-ui/src/services/utils/doc-skeleton-util.ts:136