Hierarchy

Constructors

Properties

five: Five
fiveUtil: FiveUtil
hooks: Subscribe<CruisePluginTypes.EventMap> = ...

@description: 插件事件钩子

NAME?: string
staticPrefix: string = '//vr-image-4.realsee-cdn.cn'
VERSION: string = __DNALOGEL_VERSION__

@realsee/dnalogel 版本号

workUtil: WorkUtil

Accessors

  • get workCode(): string
  • Returns string

  • set workCode(workCode): void
  • Parameters

    • workCode: string

    Returns void

Methods

  • @description: 获取静态资源的url

    Parameters

    • url: string

    Returns string

  • 插件自身DOM添加到父容器

    Parameters

    • wrapper: Element

    Returns void

  • Parameters

    • Optionaloptions: {
          userAction?: boolean;
      }
      • OptionaluserAction?: boolean

    Returns void

    Disable

  • Returns void

    Dispose

  • Parameters

    • Optionaloptions: {
          userAction?: boolean;
      }
      • OptionaluserAction?: boolean

    Returns void

    Enable

  • 获取当前的插件状态,如果当初插件内存在需要通过动画变更的 state 值,则通过此方法可以得到中间状态

    Returns CruisePluginTypes.PluginState

  • Parameters

    • Optionaloptions: {
          userAction?: boolean;
      }
      • OptionaluserAction?: boolean

    Returns Promise<void>

    Hide guide line

  • Parameters

    • Optionaloptions: {
          userAction?: boolean;
      }
      • OptionaluserAction?: boolean

    Returns void

    Pause

  • Parameters

    • Optionaloptions: {
          userAction?: boolean;
      }
      • OptionaluserAction?: boolean

    Returns void

    Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing

  • Parameters

    • options: {
          id?: string;
          index?: number;
          userAction?: boolean;
      }
      • Optionalid?: string

        play from keyframes id

      • Optionalindex?: number

        play from keyframes index

      • OptionaluserAction?: boolean

    Returns void

    If playing, first pause, then play from keyframes index/id

  • Parameters

    • Optionaloptions: {
          userAction?: boolean;
      }
      • OptionaluserAction?: boolean

    Returns void

    Play from first keyframe

  • Parameters

    Returns void

    Set state

  • Parameters

    • Optionaloptions: {
          userAction?: boolean;
      }
      • OptionaluserAction?: boolean

    Returns Promise<void>

    Show guide line

  • Parameters

    • five: Five

    Returns void