@univerjssheets-uiindexfunctionsCalculatedocskeletonrects

@univerjs/sheets-ui v0.5.4


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

ParameterTypeDefault value
docSkeletonDocumentSkeletonundefined
paddingLeftnumber0
paddingTopnumber0

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