Options
All
  • Public
  • Public/Protected
  • All
Menu

PPT 控制器

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly pptIdent

pptIdent: string

ppt 身份标识,用于跟当前白板实例创建的 iframe 进行信息传递

whiteBoard

whiteBoard: WhiteBoard

Static controllerName

controllerName: string = ...

Accessors

animationUrl

  • get animationUrl(): undefined | string
  • 当前打开的动画 PPT 地址

    api
    description

    当没打开 PPT 时返回 undefined

    Returns undefined | string

currentAutoId

  • get currentAutoId(): string | number
  • 当前打开的 PPT 的标识 ID,当没有打开 PPT 的时候返回 0

    api
    description

    当没打开 PPT 时返回 undefined

    Returns string | number

fileName

  • get fileName(): undefined | string
  • 当前打开的 PPT 的文件名

    api
    description

    当没打开 PPT 时返回 undefined

    Returns undefined | string

isAnimationPpt

  • get isAnimationPpt(): boolean

isOpenedPpt

  • get isOpenedPpt(): boolean

pptImages

pptJson

pptType

stepIndex

  • get stepIndex(): number

thumbnails

  • get thumbnails(): undefined | string[]
  • PPT 缩略图列表

    api
    description

    当没打开 PPT 时返回 undefined

    Returns undefined | string[]

Methods

animationGoToNextStep

animationGoToPreviousStep

closePpt

getPptImgByPage

  • getPptImgByPage(page?: number, thumbnail?: false): undefined | PptImageData
  • getPptImgByPage(page?: number, thumbnail?: true): undefined | string
  • 根据页数获取 PPT 图片

    api

    Parameters

    • Optional page: number

      页数

    • Optional thumbnail: false

      是否返回缩略图地址,默认:false

    Returns undefined | PptImageData

    当没有打开 PPT 或传入的页数不正确时,返回 undefined,当 thumbnail 为 true 时,返回大图的对象,即 PptImageData 类型,当 thumbnail 为 false 时,返回 string 类型的地址。

  • Parameters

    • Optional page: number
    • Optional thumbnail: true

    Returns undefined | string

openPpt

setStepIndex

  • setStepIndex(stepIndex: number): void
  • 设置动画步骤数

    Parameters

    • stepIndex: number

      动画步骤数

    Returns void

switchAnimationStepIndex