Slide Pages and Elements

ISlidePage

ISlidePage describes a single page-like object in Univer Slides. Normal slides, masters, layouts, handout masters, and notes masters all use this structure and differ by pageType and their optional property block.

Page Properties

PropertyTypeDescription
idstringUnique page id.
pageTypePageTypePage kind, such as SLIDE, MASTER, or LAYOUT.
zIndexnumberRender order of the page.
titlestringPage title.
descriptionstringPage description.
pageBackgroundFillIColorStylePage background fill.
colorScheme?ThemeColorTypeTheme color scheme used by the page.
pageElements{ [elementId: string]: IPageElement }Elements on this page, keyed by element id.
slideProperties?ISlidePropertiesProperties for normal slide pages.
layoutProperties?ILayoutPropertiesProperties for layout pages.
masterProperties?IMasterPropertiesProperties for master pages.

IPageElement

IPageElement is the common element container. Every element has transform fields such as left, top, width, height, angle, scaleX, scaleY, flipX, and flipY, plus one content payload selected by type.

Element typePayloadDescription
PageElementType.SHAPEshapePreset or custom shape, including shape text and shape properties.
PageElementType.IMAGEimageImage properties and optional placeholder/link metadata.
PageElementType.TEXTrichTextRich-text element. The rich field can store IDocumentData.
PageElementType.SPREADSHEETspreadsheetDeprecated embedded worksheet payload.
PageElementType.DOCUMENTdocumentDeprecated embedded document payload.
PageElementType.SLIDEslideDeprecated embedded slide payload.

Example

TypeScript
const page: ISlidePage = {  id: 'slide-1',  pageType: PageType.SLIDE,  zIndex: 10,  title: 'Agenda',  description: '',  pageBackgroundFill: { rgb: 'rgb(255,255,255)' },  pageElements: {    title: {      id: 'title',      zIndex: 1,      left: 72,      top: 64,      width: 600,      height: 80,      title: 'Title',      description: '',      type: PageElementType.TEXT,      richText: {        text: 'Quarterly Review',      },    },  },}

Notes

  • pageOrder controls visible slide order; zIndex controls drawing order.
  • Text elements can store plain text or richer document data through richText.rich.
  • Use customBlock for plugin-owned element payloads instead of overloading deprecated embedded payloads.

How is this guide?

© 2026 DreamNum Co., Ltd.