@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
Parameter | Type |
---|---|
_docViewModel | DocumentViewModel |
localeService | LocaleService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Skeleton ._disposed | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
_localeService | readonly | LocaleService | undefined | Skeleton ._localeService | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/skeleton.ts:25 |
dirty$ | readonly | Observable <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
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
Parameter | Type |
---|---|
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
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
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
Parameter | Type |
---|---|
position | INodePosition |
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
Parameter | Type |
---|---|
coord | Vector2 |
pageLayoutType | PageLayoutType |
pageMarginLeft | number |
pageMarginTop | number |
Returns
{
editArea: DocumentEditArea;
page: Nullable<IDocumentSkeletonPage>;
pageNumber: number;
}
Name | Type | Defined in |
---|---|---|
editArea | DocumentEditArea | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:426 |
page | Nullable <IDocumentSkeletonPage > | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/layout/doc-skeleton.ts:428 |
pageNumber | number | packages/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
Parameter | Type |
---|---|
position | Nullable <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
Parameter | Type | Default value |
---|---|---|
charIndex | number | undefined |
segmentId | string | '' |
segmentPageIndex | number | -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
Parameter | Type |
---|---|
coord | Vector2 |
pageLayoutType | PageLayoutType |
pageMarginLeft | number |
pageMarginTop | number |
restrictions ? | IFindNodeRestrictions |
Returns
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
Parameter | Type | Default value |
---|---|---|
charIndex | number | undefined |
isBack | boolean | true |
segmentId | string | '' |
segmentPIndex | number | -1 |
Returns
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
Parameter | Type |
---|---|
glyph | IDocumentSkeletonGlyph |
segmentPage | number |
Returns
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;
}
getFontLocale()
getFontLocale(): IFontLocale
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/skeleton.ts:35
Returns
Inherited from
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
makeDirty()
makeDirty(state): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/skeleton.ts:39
Parameters
Parameter | Type |
---|---|
state | boolean |
Returns
void
Inherited from
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
Parameter | Type |
---|---|
docViewModel | DocumentViewModel |
localeService | LocaleService |