@univerjs/sheets-ui v0.4.2 • 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 ; }[] | packages/sheets-ui/src/services/utils/doc-skeleton-util.ts:143 (opens in a new tab) |
links | { range : ICustomRange <Record <string , any >>; rects : { bottom : number ; left : number ; right : number ; top : number ; }[]; }[] | packages/sheets-ui/src/services/utils/doc-skeleton-util.ts:142 (opens in a new tab) |
Defined in
packages/sheets-ui/src/services/utils/doc-skeleton-util.ts:136 (opens in a new tab)