@univerjssheets-uiindexfunctionsCalculatedocskeletonrects

@univerjs/sheets-ui v0.5.0-beta.1Docs


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

ParameterTypeDefault value
docSkeletonDocumentSkeletonundefined
paddingLeftnumber0
paddingTopnumber0

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;
       }[];
    }[];
}
NameTypeDefined 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