API Reference
@univerjs
@univerjs/engine-render
functions
Getdocsskeletonpagesize

@univerjs/engine-render v0.4.2Docs


Function: getDocsSkeletonPageSize()

function getDocsSkeletonPageSize(documentSkeleton, angleInDegree): Nullable<Required<ISize>>

Obtain the height and width of a cell's text, taking into account scenarios with rotated text.

Parameters

ParameterTypeDefault valueDescription
documentSkeletonDocumentSkeletonundefinedData of the document's ViewModel
angleInDegreenumber0The rotation angle of an Excel cell, it's degree

Returns

Nullable<Required<ISize>>

Defined in

submodules/univer/packages/engine-render/src/components/sheets/sheet-skeleton.ts:130 (opens in a new tab)


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