API Reference
@univerjs
@univerjs/sheets-ui
functions
Calculatedocskeletonrects

@univerjs/sheets-ui v0.4.2Docs


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


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.