API Reference
@univerjs
@univerjs/core
interfaces
Idocumentrenderconfig

@univerjs/core v0.1.17Docs


Interface: IDocumentRenderConfig

the alignment mode is returned with respect to the offset of the sheet cell, because the document needs to render the layout for cells and support alignment across multiple cells (e.g., horizontal alignment of long text in overflow mode). The alignment mode of the document itself cannot meet this requirement, so an additional renderConfig needs to be added during the rendering of the document component. This means that there are two coexisting alignment modes. In certain cases, such as in an editor, conflicts may arise, requiring only one alignment mode to be retained. By removing the relevant configurations in renderConfig, the alignment mode of the sheet cell can be modified. The alternative alignment mode is applied to paragraphs within the document.

Properties

PropertyTypeDefined in
background?IColorStylesubmodules/univer/packages/core/src/types/interfaces/i-document-data.ts:378 (opens in a new tab)
cellValueType?CellValueTypesubmodules/univer/packages/core/src/types/interfaces/i-document-data.ts:380 (opens in a new tab)
centerAngle?numbersubmodules/univer/packages/core/src/types/interfaces/i-document-data.ts:374 (opens in a new tab)
horizontalAlign?HorizontalAlignsubmodules/univer/packages/core/src/types/interfaces/i-document-data.ts:376 (opens in a new tab)
isRenderStyle?BooleanNumbersubmodules/univer/packages/core/src/types/interfaces/i-document-data.ts:381 (opens in a new tab)
isRotateNonEastAsian?BooleanNumbersubmodules/univer/packages/core/src/types/interfaces/i-document-data.ts:377 (opens in a new tab)
vertexAngle?numbersubmodules/univer/packages/core/src/types/interfaces/i-document-data.ts:375 (opens in a new tab)
verticalAlign?VerticalAlignsubmodules/univer/packages/core/src/types/interfaces/i-document-data.ts:373 (opens in a new tab)
wrapStrategy?WrapStrategysubmodules/univer/packages/core/src/types/interfaces/i-document-data.ts:379 (opens in a new tab)

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