@univerjsengine-renderfunctionsGetdocsskeletonpagesize

@univerjs/engine-render v0.5.0-beta.1Docs


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

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/sheet-skeleton.ts:95