@univerjs/engine-render v0.5.4


Class: DocumentSkeleton

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:113

Extends

Constructors

new DocumentSkeleton()

new DocumentSkeleton(_docViewModel, localeService): DocumentSkeleton

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:128

Parameters

ParameterType
_docViewModelDocumentViewModel
localeServiceLocaleService

Returns

DocumentSkeleton

Overrides

Skeleton.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseSkeleton._disposedpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96
_localeServicereadonlyLocaleServiceundefinedSkeleton._localeServicepackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/skeleton.ts:25
dirty$readonlyObservable<boolean>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:115

Accessors

dirty

Get Signature

get dirty(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/skeleton.ts:31

Returns

boolean

Inherited from

Skeleton.dirty

Methods

calculate()

calculate(bounds?): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:154

Layout the document. PS: This method has significant impact on performance.

Parameters

ParameterType
bounds?IViewportInfo

Returns

void


dispose()

dispose(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:139

Returns

void

Overrides

Skeleton.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Skeleton.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Skeleton.ensureNotDisposed


findCharIndexByPosition()

findCharIndexByPosition(position): Nullable<number>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:276

Parameters

ParameterType
positionINodePosition

Returns

Nullable<number>


findEditAreaByCoord()

findEditAreaByCoord(
   coord, 
   pageLayoutType, 
   pageMarginLeft, 
   pageMarginTop): {
  editArea: DocumentEditArea;
  page: Nullable<IDocumentSkeletonPage>;
  pageNumber: number;
}

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:420

Parameters

ParameterType
coordVector2
pageLayoutTypePageLayoutType
pageMarginLeftnumber
pageMarginTopnumber

Returns

{
  editArea: DocumentEditArea;
  page: Nullable<IDocumentSkeletonPage>;
  pageNumber: number;
}
NameTypeDefined in
editAreaDocumentEditAreapackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:426
pageNullable<IDocumentSkeletonPage>packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:428
pageNumbernumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:427

findGlyphByPosition()

findGlyphByPosition(position): 
  | undefined
  | IDocumentSkeletonGlyph

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:362

Parameters

ParameterType
positionNullable<INodePosition>

Returns

| undefined | IDocumentSkeletonGlyph


findNodeByCharIndex()

findNodeByCharIndex(
   charIndex, 
   segmentId, 
segmentPageIndex): Nullable<IDocumentSkeletonGlyph>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:356

Parameters

ParameterTypeDefault value
charIndexnumberundefined
segmentIdstring''
segmentPageIndexnumber-1

Returns

Nullable<IDocumentSkeletonGlyph>


findNodeByCoord()

findNodeByCoord(
   coord, 
   pageLayoutType, 
   pageMarginLeft, 
   pageMarginTop, 
restrictions?): Nullable<INodeInfo>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:493

Parameters

ParameterType
coordVector2
pageLayoutTypePageLayoutType
pageMarginLeftnumber
pageMarginTopnumber
restrictions?IFindNodeRestrictions

Returns

Nullable<INodeInfo>


findNodePositionByCharIndex()

findNodePositionByCharIndex(
   charIndex, 
   isBack, 
   segmentId, 
segmentPIndex): Nullable<INodePosition>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:299

Parameters

ParameterTypeDefault value
charIndexnumberundefined
isBackbooleantrue
segmentIdstring''
segmentPIndexnumber-1

Returns

Nullable<INodePosition>


findPositionByGlyph()

findPositionByGlyph(glyph, segmentPage): Nullable<INodeSearch>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:213

Parameters

ParameterType
glyphIDocumentSkeletonGlyph
segmentPagenumber

Returns

Nullable<INodeSearch>


getActualSize()

getActualSize(): {
  actualHeight: number;
  actualWidth: number;
}

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:171

Returns

{
  actualHeight: number;
  actualWidth: number;
}
NameTypeDefined in
actualHeightnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:186
actualWidthnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:185

getFontLocale()

getFontLocale(): IFontLocale

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/skeleton.ts:35

Returns

IFontLocale

Inherited from

Skeleton.getFontLocale


getPageSize()

getPageSize(): undefined | ISize

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:209

Returns

undefined | ISize


getSkeletonData()

getSkeletonData(): Nullable<IDocumentSkeletonCached>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:167

Returns

Nullable<IDocumentSkeletonCached>


getViewModel()

getViewModel(): DocumentViewModel

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:146

Returns

DocumentViewModel


makeDirty()

makeDirty(state): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/skeleton.ts:39

Parameters

ParameterType
stateboolean

Returns

void

Inherited from

Skeleton.makeDirty


create()

static create(docViewModel, localeService): DocumentSkeleton

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:135

Parameters

ParameterType
docViewModelDocumentViewModel
localeServiceLocaleService

Returns

DocumentSkeleton