Options
All
  • Public
  • Public/Protected
  • All
Menu

PPT 控制器实例

Hierarchy

  • PptControllerTarget

Implemented by

Index

Properties

animationUrl

animationUrl: undefined | string

当前打开的动画 PPT 地址

api
description

当没打开 PPT 时返回 undefined

currentAutoId

currentAutoId: string | number

当前打开的 PPT 的标识 ID,当没有打开 PPT 的时候返回 0

api
description

当没打开 PPT 时返回 undefined

fileName

fileName: undefined | string

当前打开的 PPT 的文件名

api
description

当没打开 PPT 时返回 undefined

isAnimationPpt

isAnimationPpt: boolean

当前是否正在打开一个动画 PPT

api

isOpenedPpt

isOpenedPpt: boolean

是否已打开了 PPT

api

pptImages

pptImages: undefined | PptImageData[]

PPT 图片列表

api
description

当没打开 PPT 时返回 undefined

pptJson

pptJson: undefined | PptJsonType

当前正在打开的 PPT 数据

api

pptType

pptType: undefined | PptType

当前打开的 PPT 类型

api
description

当没打开 PPT 时返回 undefined

stepIndex

stepIndex: number

当前动画步骤索引

api

thumbnails

thumbnails: undefined | string[]

PPT 缩略图列表

api
description

当没打开 PPT 时返回 undefined

Methods

animationGoToNextStep

  • 动画 PPT 切到下一步动画

    api
    description

    当前打开的 PPT 非动画的情况下不生效

    Returns PptControllerTarget

animationGoToPreviousStep

  • 动画 PPT 切到上一步动画

    api
    description

    当前打开的 PPT 非动画的情况下不生效

    Returns PptControllerTarget

closePpt

getPptImgByPage

  • getPptImgByPage(page?: number, thumbnail?: false): undefined | PptImageData
  • getPptImgByPage(page?: number, thumbnail?: true): undefined | string
  • getPptImgByPage(page?: number, thumbnail?: boolean): undefined | string | PptImageData
  • 根据页数获取 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

  • Parameters

    • Optional page: number
    • Optional thumbnail: boolean

    Returns undefined | string | PptImageData

openPpt

switchAnimationStepIndex

  • 切换到当前页的指定动画步骤中

    api
    description

    当前打开的 PPT 非动画的情况下不生效

    Parameters

    • stepIndex: number

      动画步骤数

    Returns PptControllerTarget