Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CSS3DRenderPluginExportType

Hierarchy

  • CSS3DRenderPluginExportType

Index

Methods

  • create3DDomContainer(points: Vector3[] | Vector3Position[], config?: ({ autoRender?: boolean; container?: HTMLElement; dpr?: number; ratio?: number } & { mode?: "front" }) & ({ autoRender?: boolean; container?: HTMLElement; dpr?: number; ratio?: number } & { behindFiveContainer: HTMLElement; mode: "behind" })): void | { container: HTMLElement; css3DObject: CSS3DObject; dispose: any; render?: any }
  • description:

    根据传入的四个点位创建一个3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中

    Parameters

    • points: Vector3[] | Vector3Position[]
    • Optional config: ({ autoRender?: boolean; container?: HTMLElement; dpr?: number; ratio?: number } & { mode?: "front" }) & ({ autoRender?: boolean; container?: HTMLElement; dpr?: number; ratio?: number } & { behindFiveContainer: HTMLElement; mode: "behind" })

    Returns void | { container: HTMLElement; css3DObject: CSS3DObject; dispose: any; render?: any }

    : container: dom容器, dispose: 清理函数

  • disposeAll(): void