Function: calculateDocSkeletonRects()
function calculateDocSkeletonRects(
docSkeleton,
paddingLeft,
paddingTop): {
checkLists: {
paragraph: IParagraph;
rect: {
bottom: number;
left: number;
right: number;
top: number;
};
segmentId: undefined;
segmentPageIndex: number;
}[];
drawings: {
drawingId: string;
rect: {
bottom: number;
left: number;
right: number;
top: number;
};
}[];
links: {
range: ICustomRange;
rects: {
bottom: number;
left: number;
right: number;
top: number;
}[];
}[];
}
Defined in: submodules/univer/packages/sheets-ui/src/services/utils/doc-skeleton-util.ts:136
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: number;
}[];
drawings: {
drawingId: string;
rect: {
bottom: number;
left: number;
right: number;
top: number;
};
}[];
links: {
range: ICustomRange;
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 : number ; }[] | submodules/univer/packages/sheets-ui/src/services/utils/doc-skeleton-util.ts:143 |
drawings | { drawingId : string ; rect : { bottom : number ; left : number ; right : number ; top : number ; }; }[] | submodules/univer/packages/sheets-ui/src/services/utils/doc-skeleton-util.ts:144 |
links | { range : ICustomRange ; rects : { bottom : number ; left : number ; right : number ; top : number ; }[]; }[] | submodules/univer/packages/sheets-ui/src/services/utils/doc-skeleton-util.ts:142 |