Справочник API

Slides sub-types

Composite types referenced by presentation snapshots, slide pages, transitions, themes, and animations.

Текст этой страницы API пока доступен на английском. Сигнатуры и идентификаторы не зависят от языка интерфейса.

Composite types referenced by presentation snapshots, slide pages, transitions, themes, and animations. Supporting ISlideData, ISlidePage. Types are ordered from direct top-level fields to deeper nested structures and enums.

Overview

TypeKindUsed by
ISlideAnimationSequenceinterfaceISlidePage
ISlideBackgroundDatatypeISlidePage, ISlidePageBase
ISlideHandoutMasterPageinterfaceISlideData
ISlideHeaderFooterDatainterfaceISlidePage, ISlidePageBase
ISlideLayoutPageinterfaceISlideData
ISlideMasterPageinterfaceISlideData
ISlideNotesMasterPageinterfaceISlideData
ISlidePageBaseinterfaceISlidePage, ISlideMasterPage, ISlideLayoutPage, ISlideHandoutMasterPage
ISlidePageElementtypeISlidePage, ISlidePageBase
ISlidePageSizeinterfaceISlideData, ISlidePage, ISlidePageBase
ISlideThemeDatainterfaceISlideData
ISlideTransitioninterfaceISlideData
PageTypeEnumenumISlidePage, ISlideMasterPage, ISlideLayoutPage, ISlideHandoutMasterPage
SlideCustomDatatypeISlideData, ISlidePage, ISlideThemeData, ISlidePageBase
ISlideAnimationEffectinterfaceISlideAnimationSequence
ISlideChartElementinterfaceISlidePageElement
ISlideConnectorElementinterfaceISlidePageElement
ISlideEmptyBackgroundinterfaceISlideBackgroundData
ISlideFmtSchemeinterfaceISlideThemeData
ISlideGradientBackgroundinterfaceISlideBackgroundData
ISlideGroupElementinterfaceISlidePageElement
ISlideHeaderFooterDateTimeSlotinterfaceISlideHeaderFooterData
ISlideHeaderFooterSlotinterfaceISlideHeaderFooterData, ISlideHeaderFooterDateTimeSlot
ISlideImageBackgroundinterfaceISlideBackgroundData
ISlideImageElementinterfaceISlidePageElement, ISlideOleElement
ISlideMediaElementinterfaceISlidePageElement
ISlideOleElementinterfaceISlidePageElement
ISlidePatternBackgroundinterfaceISlideBackgroundData
ISlidePlaceholderElementinterfaceISlidePageElement
ISlideShapeElementinterfaceISlidePageElement
ISlideSolidBackgroundinterfaceISlideBackgroundData
ISlideTableElementinterfaceISlidePageElement
ISlideTextElementinterfaceISlidePageElement
ISlideTransitionSoundinterfaceISlideTransition
SlidePageLayoutTypeEnumenumISlideLayoutPage
SlidePageSizePresetEnumenumISlidePageSize
SlideTransitionDirectionEnumenumISlideTransition
SlideTransitionSpeedEnumenumISlideTransition
SlideTransitionTypeEnumenumISlideTransition
IOleOnlineUnitinterfaceISlideOleElement
ISlideEffectStyleinterfaceISlideFmtScheme
ISlideElementBaseinterfaceISlidePlaceholderElement, ISlideTextElement, ISlideShapeElement, ISlideConnectorElement
ISlideFillStyletypeISlideFmtScheme
ISlideGradientStopinterfaceISlideGradientBackground
ISlideImageFillRectinterfaceISlideGradientBackground, ISlideImageBackground
ISlideLineStyletypeISlideFmtScheme
ISlidePlaceholderDatainterfaceISlidePlaceholderElement, ISlideChartElement, ISlideTableElement
ISlidePlaceholderStyleinterfaceISlidePlaceholderElement
ISlideTextStyleinterfaceISlideTextElement
PageElementTypeEnumenumISlidePlaceholderElement, ISlideTextElement, ISlideShapeElement, ISlideConnectorElement
SlideAnimationTriggertypeISlideAnimationEffect
SlideBackgroundTypeEnumenumISlideEmptyBackground, ISlideSolidBackground, ISlideGradientBackground, ISlideImageBackground
SlideHeaderFooterDateTimeModetypeISlideHeaderFooterDateTimeSlot
SlideMediaTypeEnumenumISlideMediaElement
SlidePresentationBackgroundGraphicFitWithoutRepeatEnumtypeISlideImageBackground
ISlideDrawingTransforminterfaceISlideElementBase, ISlidePlaceholderData
ISlidePlaceholderIconConfiginterfaceISlidePlaceholderData
ISlidePlaceholderTextConfiginterfaceISlidePlaceholderData
ISlideReflectionEffectinterfaceISlideEffectStyle
ISlideThemeColorModifiersinterfaceISlideFillStyle, ISlideLineStyle
PlaceholderTypeEnumenumISlidePlaceholderData
SlideElementManagedBytypeISlideElementBase
SlideElementRoletypeISlideElementBase
SlidePresentationBackgroundGraphicFitEnumenumSlidePresentationBackgroundGraphicFitWithoutRepeatEnum
UniverTypeenumIOleOnlineUnit
SlidePlaceholderTextLeveltypeISlidePlaceholderTextConfig

ISlideAnimationSequence

Nested type in @univerjs-pro/slides · Used by ISlidePage

An ordered group of effects (one "click sequence" in PPTX).

TypeScript
interface ISlideAnimationSequence {  id: string  effects: ISlideAnimationEffect[]}

Related types: ISlideAnimationEffect

ISlideBackgroundData

import type { ISlideBackgroundData } from '@univerjs-pro/slides' · Used by ISlidePage · ISlidePageBase

TypeScript
type ISlideBackgroundData =  | ISlideEmptyBackground  | ISlideSolidBackground  | ISlideGradientBackground  | ISlideImageBackground  | ISlidePatternBackground

Related types: ISlideEmptyBackground · ISlideSolidBackground · ISlideGradientBackground · ISlideImageBackground · ISlidePatternBackground

ISlideHandoutMasterPage

Nested type in @univerjs-pro/slides · Used by ISlideData

TypeScript
interface ISlideHandoutMasterPage extends ISlidePageBase {  pageType: PageTypeEnum.HandoutMaster}

Related types: ISlidePageBase · PageTypeEnum.HandoutMaster

ISlideHeaderFooterData

Nested type in @univerjs-pro/slides · Used by ISlidePage · ISlidePageBase

TypeScript
interface ISlideHeaderFooterData {  header?: ISlideHeaderFooterSlot  footer?: ISlideHeaderFooterSlot  dateTime?: ISlideHeaderFooterDateTimeSlot  slideNumber?: ISlideHeaderFooterSlot}

Related types: ISlideHeaderFooterSlot · ISlideHeaderFooterDateTimeSlot

ISlideLayoutPage

Nested type in @univerjs-pro/slides · Used by ISlideData

TypeScript
interface ISlideLayoutPage extends ISlidePageBase {  pageType: PageTypeEnum.Layout  layoutType: SlidePageLayoutTypeEnum  masterPageId?: string}

Related types: ISlidePageBase · PageTypeEnum.Layout · SlidePageLayoutTypeEnum

ISlideMasterPage

import type { ISlideMasterPage } from '@univerjs-pro/slides' · Used by ISlideData

TypeScript
interface ISlideMasterPage extends ISlidePageBase {  pageType: PageTypeEnum.Master  themeId?: string}

Related types: ISlidePageBase · PageTypeEnum.Master

ISlideNotesMasterPage

Nested type in @univerjs-pro/slides · Used by ISlideData

TypeScript
interface ISlideNotesMasterPage extends ISlidePageBase {  pageType: PageTypeEnum.NotesMaster}

Related types: ISlidePageBase · PageTypeEnum.NotesMaster

ISlidePageBase

import type { ISlidePageBase } from '@univerjs-pro/slides' · Used by ISlidePage · ISlideMasterPage · ISlideLayoutPage · ISlideHandoutMasterPage · ISlideNotesMasterPage

TypeScript
interface ISlidePageBase {  id: string  pageType: PageTypeEnum  name: string  themeId?: string  pageSize?: ISlidePageSize  background?: ISlideBackgroundData  headerFooter?: ISlideHeaderFooterData  showMasterSp?: boolean  elementOrder: string[]  elements: Record<string, ISlidePageElement>  visible?: boolean  custom?: SlideCustomData}

Related types: PageTypeEnum · ISlidePageSize · ISlideBackgroundData · ISlideHeaderFooterData · ISlidePageElement · SlideCustomData

ISlidePageElement

import type { ISlidePageElement } from '@univerjs-pro/slides' · Used by ISlidePage · ISlidePageBase

TypeScript
type ISlidePageElement =  | ISlidePlaceholderElement  | ISlideTextElement  | ISlideShapeElement  | ISlideConnectorElement  | ISlideImageElement  | ISlideOleElement  | ISlideChartElement  | ISlideTableElement  | ISlideMediaElement  | ISlideGroupElement

Related types: ISlidePlaceholderElement · ISlideTextElement · ISlideShapeElement · ISlideConnectorElement · ISlideImageElement · ISlideOleElement · ISlideChartElement · ISlideTableElement · ISlideMediaElement · ISlideGroupElement

ISlidePageSize

import type { ISlidePageSize } from '@univerjs-pro/slides' · Used by ISlideData · ISlidePage · ISlidePageBase

TypeScript
interface ISlidePageSize {  width: number  height: number  preset?: SlidePageSizePresetEnum}

Related types: SlidePageSizePresetEnum

ISlideThemeData

import type { ISlideThemeData } from '@univerjs-pro/slides' · Used by ISlideData

TypeScript
interface ISlideThemeData {  id?: string  name?: string  colorScheme?: Record<string, string>  fontScheme?: {    heading?: string    body?: string  }  fmtScheme?: ISlideFmtScheme  custom?: SlideCustomData}

Related types: ISlideFmtScheme · SlideCustomData

ISlideTransition

import type { ISlideTransition } from '@univerjs-pro/slides' · Used by ISlideData

Slide transition effect.

TypeScript
interface ISlideTransition {  type: SlideTransitionTypeEnum  duration?: number  direction?: SlideTransitionDirectionEnum  advanceOnClick?: boolean  advanceAfterTime?: number  speed?: SlideTransitionSpeedEnum  sound?: ISlideTransitionSound  loopSoundUntilNext?: boolean  effectOptions?: Record<string, unknown>  extension?: Record<string, unknown>}

Related types: SlideTransitionTypeEnum · SlideTransitionDirectionEnum · SlideTransitionSpeedEnum · ISlideTransitionSound

PageTypeEnum

import { PageTypeEnum } from '@univerjs-pro/slides' · Used by ISlidePage · ISlideMasterPage · ISlideLayoutPage · ISlideHandoutMasterPage · ISlideNotesMasterPage · ISlidePageBase

TypeScript
enum PageTypeEnum {  Slide = 'slide',  Master = 'master',  Layout = 'layout',  HandoutMaster = 'handoutMaster',  NotesMaster = 'notesMaster',}

SlideCustomData

import type { SlideCustomData } from '@univerjs-pro/slides' · Used by ISlideData · ISlidePage · ISlideThemeData · ISlidePageBase · ISlideElementBase · ISlidePlaceholderData

TypeScript
type SlideCustomData = Record<string, unknown> | null

ISlideAnimationEffect

Nested type in @univerjs-pro/slides · Used by ISlideAnimationSequence

A single animation effect bound to one page element.

TypeScript
interface ISlideAnimationEffect {  id: string  targetElementId: string  effectType: string  duration: number  delay?: number  trigger?: SlideAnimationTrigger  params?: Record<string, unknown>}

Related types: SlideAnimationTrigger

ISlideChartElement

import type { ISlideChartElement } from '@univerjs-pro/slides' · Used by ISlidePageElement

TypeScript
interface ISlideChartElement extends ISlideElementBase {  type: PageElementTypeEnum.Chart  chartId: string  placeholder?: ISlidePlaceholderData  stroke?: IShapeLineStyle}

Related types: ISlideElementBase · PageElementTypeEnum.Chart · ISlidePlaceholderData · IShapeLineStyle

ISlideConnectorElement

import type { ISlideConnectorElement } from '@univerjs-pro/slides' · Used by ISlidePageElement

TypeScript
interface ISlideConnectorElement extends ISlideElementBase {  type: PageElementTypeEnum.Connector  connectorData: ICxnShapeData}

Related types: ISlideElementBase · PageElementTypeEnum.Connector · ICxnShapeData

ISlideEmptyBackground

Nested type in @univerjs-pro/slides · Used by ISlideBackgroundData

TypeScript
interface ISlideEmptyBackground {  type: SlideBackgroundTypeEnum.None}

Related types: SlideBackgroundTypeEnum.None

ISlideFmtScheme

Nested type in @univerjs-pro/slides · Used by ISlideThemeData

fmtScheme — the format scheme embedded in a presentation theme.

Matches the OOXML <a:fmtScheme> structure with three ordered style lists. Each list has (at least) three entries: [0] subtle (OOXML idx 1) [1] moderate (OOXML idx 2) [2] intense (OOXML idx 3)

When a shape references a theme style, it picks an entry by 1-based index from the appropriate list.

TypeScript
interface ISlideFmtScheme {  name?: string  fillStyleLst: ISlideFillStyle[]  lnStyleLst: ISlideLineStyle[]  effectStyleLst: ISlideEffectStyle[]  bgFillStyleLst: ISlideFillStyle[]}

Related types: ISlideFillStyle · ISlideLineStyle · ISlideEffectStyle

ISlideGradientBackground

import type { ISlideGradientBackground } from '@univerjs-pro/slides' · Used by ISlideBackgroundData

TypeScript
interface ISlideGradientBackground {  type: SlideBackgroundTypeEnum.Gradient  angle?: number  colorInterpolation?: 'srgb' | 'gamma-corrected'  gradientPath?: string  gradientFillToRect?: ISlideImageFillRect  shadeToTitle?: boolean  stops: ISlideGradientStop[]}

Related types: SlideBackgroundTypeEnum.Gradient · ISlideImageFillRect · ISlideGradientStop

ISlideGroupElement

import type { ISlideGroupElement } from '@univerjs-pro/slides' · Used by ISlidePageElement

TypeScript
interface ISlideGroupElement extends ISlideElementBase {  type: PageElementTypeEnum.Group  children: string[]  outerShadow?: IShadowEffect  glow?: IGlowEffect}

Related types: ISlideElementBase · PageElementTypeEnum.Group · IShadowEffect · IGlowEffect

ISlideHeaderFooterDateTimeSlot

Nested type in @univerjs-pro/slides · Used by ISlideHeaderFooterData

TypeScript
interface ISlideHeaderFooterDateTimeSlot extends ISlideHeaderFooterSlot {  mode?: SlideHeaderFooterDateTimeMode  format?: string}

Related types: ISlideHeaderFooterSlot · SlideHeaderFooterDateTimeMode

ISlideHeaderFooterSlot

Nested type in @univerjs-pro/slides · Used by ISlideHeaderFooterData · ISlideHeaderFooterDateTimeSlot

TypeScript
interface ISlideHeaderFooterSlot {  enabled?: boolean  text?: string}

ISlideImageBackground

import type { ISlideImageBackground } from '@univerjs-pro/slides' · Used by ISlideBackgroundData

TypeScript
interface ISlideImageBackground {  type: SlideBackgroundTypeEnum.Image  source: string  imageSourceType?: ImageSourceType  fit?: SlidePresentationBackgroundGraphicFitWithoutRepeatEnum  srcRect?: ISlideImageFillRect  stretchFillRect?: ISlideImageFillRect}

Related types: SlideBackgroundTypeEnum.Image · ImageSourceType · SlidePresentationBackgroundGraphicFitWithoutRepeatEnum · ISlideImageFillRect

ISlideImageElement

import type { ISlideImageElement } from '@univerjs-pro/slides' · Used by ISlidePageElement · ISlideOleElement

TypeScript
interface ISlideImageElement extends ISlideElementBase {  type: PageElementTypeEnum.Image  source: string  imageSourceType?: ImageSourceType  crop?: {    left?: number    top?: number    right?: number    bottom?: number  }  prstGeom?: ShapeTypeEnum  adjustValues?: Record<string, number>  shapeData?: Pick<IBasicShapeData, 'fill' | 'stroke' | 'outerShadow' | 'glow'>}

Related types: ISlideElementBase · PageElementTypeEnum.Image · ImageSourceType · ShapeTypeEnum · IBasicShapeData

ISlideMediaElement

Nested type in @univerjs-pro/slides · Used by ISlidePageElement

TypeScript
interface ISlideMediaElement extends ISlideElementBase {  type: PageElementTypeEnum.Media  mediaType: SlideMediaTypeEnum  source: string  poster?: string}

Related types: ISlideElementBase · PageElementTypeEnum.Media · SlideMediaTypeEnum

ISlideOleElement

Nested type in @univerjs-pro/slides · Used by ISlidePageElement

TypeScript
interface ISlideOleElement extends Omit<ISlideImageElement, 'type'> {  type: PageElementTypeEnum.Ole  oleAttachmentId: string  oleFileName?: string  oleOnlineUnit?: IOleOnlineUnit}

Related types: PageElementTypeEnum.Ole · IOleOnlineUnit

ISlidePatternBackground

Nested type in @univerjs-pro/slides · Used by ISlideBackgroundData

TypeScript
interface ISlidePatternBackground {  type: SlideBackgroundTypeEnum.Pattern  pattern: string  foregroundColor?: string  backgroundColor?: string}

Related types: SlideBackgroundTypeEnum.Pattern

ISlidePlaceholderElement

import type { ISlidePlaceholderElement } from '@univerjs-pro/slides' · Used by ISlidePageElement

TypeScript
interface ISlidePlaceholderElement extends ISlideElementBase {  placeholderOrderOverride?: boolean  type: PageElementTypeEnum.Placeholder  placeholder: ISlidePlaceholderData  text?: string  style?: ISlidePlaceholderStyle}

Related types: ISlideElementBase · PageElementTypeEnum.Placeholder · ISlidePlaceholderData · ISlidePlaceholderStyle

ISlideShapeElement

import type { ISlideShapeElement } from '@univerjs-pro/slides' · Used by ISlidePageElement

TypeScript
interface ISlideShapeElement extends ISlideElementBase {  type: PageElementTypeEnum.Shape  shapeData: IShapeData}

Related types: ISlideElementBase · PageElementTypeEnum.Shape · IShapeData

ISlideSolidBackground

import type { ISlideSolidBackground } from '@univerjs-pro/slides' · Used by ISlideBackgroundData

TypeScript
interface ISlideSolidBackground {  type: SlideBackgroundTypeEnum.Solid  color: string  alpha?: number}

Related types: SlideBackgroundTypeEnum.Solid

ISlideTableElement

import type { ISlideTableElement } from '@univerjs-pro/slides' · Used by ISlidePageElement

TypeScript
interface ISlideTableElement extends ISlideElementBase {  type: PageElementTypeEnum.Table  tableId: string  placeholder?: ISlidePlaceholderData}

Related types: ISlideElementBase · PageElementTypeEnum.Table · ISlidePlaceholderData

ISlideTextElement

import type { ISlideTextElement } from '@univerjs-pro/slides' · Used by ISlidePageElement

TypeScript
interface ISlideTextElement extends ISlideElementBase {  type: PageElementTypeEnum.Text  text?: string  textStyle?: ISlideTextStyle  textData?: IDocumentData}

Related types: ISlideElementBase · PageElementTypeEnum.Text · ISlideTextStyle · IDocumentData

ISlideTransitionSound

Nested type in @univerjs-pro/slides · Used by ISlideTransition

TypeScript
interface ISlideTransitionSound {  name?: string  source?: string  loopUntilNext?: boolean}

SlidePageLayoutTypeEnum

import { SlidePageLayoutTypeEnum } from '@univerjs-pro/slides' · Used by ISlideLayoutPage

TypeScript
enum SlidePageLayoutTypeEnum {  Blank = 'blank',  Title = 'title',  TitleAndBody = 'titleAndBody',  TitleOnly = 'titleOnly',  SectionHeader = 'sectionHeader',  TwoColumns = 'twoColumns',  Comparison = 'comparison',  PictureWithCaption = 'pictureWithCaption',  Custom = 'custom',}

SlidePageSizePresetEnum

import { SlidePageSizePresetEnum } from '@univerjs-pro/slides' · Used by ISlidePageSize

TypeScript
enum SlidePageSizePresetEnum {  Standard4By3 = 'standard4By3',  WideScreen16By9 = 'wideScreen16By9',  WideScreen16By10 = 'wideScreen16By10',  Custom = 'custom',}

SlideTransitionDirectionEnum

import { SlideTransitionDirectionEnum } from '@univerjs-pro/slides' · Used by ISlideTransition

TypeScript
enum SlideTransitionDirectionEnum {  Left = 'left',  Right = 'right',  Up = 'up',  Down = 'down',}

SlideTransitionSpeedEnum

import { SlideTransitionSpeedEnum } from '@univerjs-pro/slides' · Used by ISlideTransition

TypeScript
enum SlideTransitionSpeedEnum {  Slow = 'slow',  Medium = 'medium',  Fast = 'fast',}

SlideTransitionTypeEnum

import { SlideTransitionTypeEnum } from '@univerjs-pro/slides' · Used by ISlideTransition

TypeScript
enum SlideTransitionTypeEnum {  None = 'none',  Fade = 'fade',  Push = 'push',  Wipe = 'wipe',  Cut = 'cut',  Cover = 'cover',  Uncover = 'uncover',  Reveal = 'reveal',  Split = 'split',  Zoom = 'zoom',}

IOleOnlineUnit

import type { IOleOnlineUnit } from '@univerjs/drawing' · Used by ISlideOleElement

TypeScript
interface IOleOnlineUnit {  unitId: string  type: UniverInstanceType}

Related types: UniverInstanceType

ISlideEffectStyle

Nested type in @univerjs-pro/slides · Used by ISlideFmtScheme

One complete effect style entry inside fmtScheme.effectStyleLst. OOXML effectStyle groups shadow, reflection, glow, etc.

TypeScript
interface ISlideEffectStyle {  outerShadow?: IShadowEffect  innerShadow?: IShadowEffect  reflection?: ISlideReflectionEffect  glow?: IGlowEffect}

Related types: IShadowEffect · ISlideReflectionEffect · IGlowEffect

ISlideElementBase

import type { ISlideElementBase } from '@univerjs-pro/slides' · Used by ISlidePlaceholderElement · ISlideTextElement · ISlideShapeElement · ISlideConnectorElement · ISlideImageElement · ISlideChartElement · ISlideTableElement · ISlideMediaElement · ISlideGroupElement

TypeScript
interface ISlideElementBase {  id: string  type: PageElementTypeEnum  transform: ISlideDrawingTransform  role?: SlideElementRole  managedBy?: SlideElementManagedBy  name?: string  description?: string  visible?: boolean  selectable?: boolean  custom?: SlideCustomData}

Related types: PageElementTypeEnum · ISlideDrawingTransform · SlideElementRole · SlideElementManagedBy · SlideCustomData

ISlideFillStyle

Nested type in @univerjs-pro/slides · Used by ISlideFmtScheme

TypeScript
type ISlideFillStyle = Omit<NonNullable<IBasicShapeData['fill']>, 'gradientStops'> & {  colorModifiers?: ISlideThemeColorModifiers  gradientStops?: Array<{    position: number    color?: string    opacity?: number    colorModifiers?: ISlideThemeColorModifiers  }>}

Related types: ISlideThemeColorModifiers

ISlideGradientStop

import type { ISlideGradientStop } from '@univerjs-pro/slides' · Used by ISlideGradientBackground

TypeScript
interface ISlideGradientStop {  color: string  position: number  alpha?: number}

ISlideImageFillRect

Nested type in @univerjs-pro/slides · Used by ISlideGradientBackground · ISlideImageBackground

TypeScript
interface ISlideImageFillRect {  left?: number  top?: number  right?: number  bottom?: number}

ISlideLineStyle

Nested type in @univerjs-pro/slides · Used by ISlideFmtScheme

TypeScript
type ISlideLineStyle = IShapeLineStyle & {  colorModifiers?: ISlideThemeColorModifiers}

Related types: IShapeLineStyle · ISlideThemeColorModifiers

ISlidePlaceholderData

import type { ISlidePlaceholderData } from '@univerjs-pro/slides' · Used by ISlidePlaceholderElement · ISlideChartElement · ISlideTableElement

TypeScript
interface ISlidePlaceholderData {  id: string  type: PlaceholderTypeEnum  index?: number  transform?: ISlideDrawingTransform  defaultText?: string  textConfig?: ISlidePlaceholderTextConfig  icons?: ISlidePlaceholderIconConfig[]  custom?: SlideCustomData}

Related types: PlaceholderTypeEnum · ISlideDrawingTransform · ISlidePlaceholderTextConfig · ISlidePlaceholderIconConfig · SlideCustomData

ISlidePlaceholderStyle

import type { ISlidePlaceholderStyle } from '@univerjs-pro/slides' · Used by ISlidePlaceholderElement

TypeScript
interface ISlidePlaceholderStyle {  fill?: IBasicShapeData['fill']  stroke?: IShapeLineStyle}

Related types: IBasicShapeData · IShapeLineStyle

ISlideTextStyle

import type { ISlideTextStyle } from '@univerjs-pro/slides' · Used by ISlideTextElement

TypeScript
interface ISlideTextStyle {  color?: string  fontFamily?: string  fontSize?: number  bold?: boolean  italic?: boolean  underline?: boolean}

PageElementTypeEnum

import { PageElementTypeEnum } from '@univerjs-pro/slides' · Used by ISlidePlaceholderElement · ISlideTextElement · ISlideShapeElement · ISlideConnectorElement · ISlideImageElement · ISlideOleElement · ISlideChartElement · ISlideTableElement · ISlideMediaElement · ISlideGroupElement · ISlideElementBase

TypeScript
enum PageElementTypeEnum {  Placeholder = 'placeholder',  Text = 'text',  Shape = 'shape',  Image = 'image',  Ole = 'ole',  Chart = 'chart',  Table = 'table',  Diagram = 'diagram',  Media = 'media',  Group = 'group',  Connector = 'connector',}

SlideAnimationTrigger

Nested type in @univerjs-pro/slides · Used by ISlideAnimationEffect

What triggers an animation effect to start.

TypeScript
type SlideAnimationTrigger = 'onClick' | 'afterPrev' | 'withPrev'

SlideBackgroundTypeEnum

import { SlideBackgroundTypeEnum } from '@univerjs-pro/slides' · Used by ISlideEmptyBackground · ISlideSolidBackground · ISlideGradientBackground · ISlideImageBackground · ISlidePatternBackground

TypeScript
enum SlideBackgroundTypeEnum {  None = 'none',  Solid = 'solid',  Gradient = 'gradient',  Image = 'image',  Pattern = 'pattern',}

SlideHeaderFooterDateTimeMode

Nested type in @univerjs-pro/slides · Used by ISlideHeaderFooterDateTimeSlot

TypeScript
type SlideHeaderFooterDateTimeMode = 'auto' | 'fixed'

SlideMediaTypeEnum

Nested type in @univerjs-pro/slides · Used by ISlideMediaElement

TypeScript
enum SlideMediaTypeEnum {  Audio = 'audio',  Video = 'video',}

SlidePresentationBackgroundGraphicFitWithoutRepeatEnum

import type { SlidePresentationBackgroundGraphicFitWithoutRepeatEnum } from '@univerjs-pro/slides' · Used by ISlideImageBackground

TypeScript
type SlidePresentationBackgroundGraphicFitWithoutRepeatEnum = Exclude<  SlidePresentationBackgroundGraphicFitEnum,  SlidePresentationBackgroundGraphicFitEnum.Repeat>

Related types: SlidePresentationBackgroundGraphicFitEnum · SlidePresentationBackgroundGraphicFitEnum.Repeat

ISlideDrawingTransform

import type { ISlideDrawingTransform } from '@univerjs-pro/slides' · Used by ISlideElementBase · ISlidePlaceholderData

TypeScript
interface ISlideDrawingTransform {  left?: number  top?: number  width?: number  height?: number  rotation?: number  scaleX?: number  scaleY?: number  skewX?: number  skewY?: number  flipX?: boolean  flipY?: boolean}

ISlidePlaceholderIconConfig

import type { ISlidePlaceholderIconConfig } from '@univerjs-pro/slides' · Used by ISlidePlaceholderData

TypeScript
interface ISlidePlaceholderIconConfig {  key: string  labelKey?: string  label?: string  iconUrl?: string  enabled?: boolean}

ISlidePlaceholderTextConfig

import type { ISlidePlaceholderTextConfig } from '@univerjs-pro/slides' · Used by ISlidePlaceholderData

TypeScript
interface ISlidePlaceholderTextConfig {  textKey?: string  textByLocale?: Record<string, string>  defaultText?: string  textData?: IDocumentData  textDataByLevel?: Partial<Record<SlidePlaceholderTextLevel, IDocumentData>>}

Related types: IDocumentData

ISlideReflectionEffect

Nested type in @univerjs-pro/slides · Used by ISlideEffectStyle

A single line (stroke) style entry inside fmtScheme.lnStyleLst. Reuses IShapeLineStyle from engine-shape.

A single reflection effect.

TypeScript
interface ISlideReflectionEffect {  blurRadius?: number  startAlpha?: number  endAlpha?: number  distance?: number  direction?: number}

ISlideThemeColorModifiers

Nested type in @univerjs-pro/slides · Used by ISlideFillStyle · ISlideLineStyle

A single fill style entry inside fmtScheme.fillStyleLst / bgFillStyleLst. Reuses the fill field from engine-shape's IBasicShapeData so the renderer can consume it directly without re-mapping.

TypeScript
interface ISlideThemeColorModifiers {  tint?: number  shade?: number  saturation?: number  luminance?: number  luminanceOffset?: number}

PlaceholderTypeEnum

import { PlaceholderTypeEnum } from '@univerjs-pro/slides' · Used by ISlidePlaceholderData

TypeScript
enum PlaceholderTypeEnum {  Title = 'title',  CenterTitle = 'centerTitle',  Subtitle = 'subtitle',  Body = 'body',  Text = 'text',  Object = 'object',  Picture = 'picture',  Chart = 'chart',  Table = 'table',  Diagram = 'diagram',  Media = 'media',  SlideNumber = 'slideNumber',  Date = 'date',  Footer = 'footer',  Header = 'header',}

SlideElementManagedBy

Nested type in @univerjs-pro/slides · Used by ISlideElementBase

TypeScript
type SlideElementManagedBy = 'presentationBackground'

SlideElementRole

Nested type in @univerjs-pro/slides · Used by ISlideElementBase

TypeScript
type SlideElementRole = 'backgroundGraphic'

SlidePresentationBackgroundGraphicFitEnum

import { SlidePresentationBackgroundGraphicFitEnum } from '@univerjs-pro/slides' · Used by SlidePresentationBackgroundGraphicFitWithoutRepeatEnum

TypeScript
enum SlidePresentationBackgroundGraphicFitEnum {  Cover = 'cover',  Contain = 'contain',  Stretch = 'stretch',  Repeat = 'repeat',}

UniverType

import { UniverType } from '@univerjs/protocol' · Used by IOleOnlineUnit

TypeScript
enum UniverType {  UNIVER_UNKNOWN = 0,  UNIVER_DOC = 1,  UNIVER_SHEET = 2,  UNIVER_SLIDE = 3,  UNIVER_PROJECT = 4,  UNIVER_BASE = 5,  UNIVER_BOARD = 6,  UNIVER_PDF = 7,  UNRECOGNIZED = -1,}

SlidePlaceholderTextLevel

import type { SlidePlaceholderTextLevel } from '@univerjs-pro/slides' · Used by ISlidePlaceholderTextConfig

TypeScript
type SlidePlaceholderTextLevel = 'master' | 'layout' | 'slide'

Насколько полезно это руководство?

© 2026 DreamNum Co., Ltd.