Hierarchy

  • Controller<Object3DHelperPluginState, Object3DHelperPluginEventMap>
    • Object3DHelperController

Constructors

  • Parameters

    • five: Five

    Returns Object3DHelperController

Properties

five: Five
fiveUtil: FiveUtil
hooks: Subscribe<Object3DHelperPluginEventMap> = ...

@description: 插件事件钩子

name: string = PLUGIN_NAME
NAME?: string
objectHelperMap: Map<Object3D, {
    disposers: (() => any)[];
    helper: Object3DHelper;
}> = ...
state: Object3DHelperState = ...

当前状态

可以通过 plugin.state 和 plugin.setState 来获取和设置。
通过 state 设置后,plugin 会通过合适的动画运动来达到设置的效果。
来迎合一些通过数据驱动的场景。
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 Object3DHelperPluginState

  • Parameters

    • object3D: Object3D

    Returns {
        disposers: (() => any)[];
        helper: Object3DHelper;
    }

    • disposers: (() => any)[]
    • helper: Object3DHelper
  • Parameters

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

    Returns Promise<void>

    Hide guide line

  • Parameters

    • object3D: Object3D

    Returns void

  • 设置state

    Parameters

    • state: Partial<Object3DHelperState>

      插件的目标状态

    • Optionaloptions: {
          userAction?: boolean;
      } & Record<string, any>

      配置项

    Returns void

  • Parameters

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

    Returns Promise<void>

    Show guide line

  • Parameters

    • five: Five

    Returns void