UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

17 lines (16 loc) 518 B
import { Object3D } from 'three'; export declare class CSS2DObject extends Object3D { element: HTMLDivElement; readonly isCSS2DObject = true; constructor(element?: HTMLDivElement); copy(source: CSS2DObject, recursive: boolean): this; } export interface CSS2DObjectOptions { object?: Object3D; id: string; className: string; html: string; copyAttributes: boolean; attributesToCopy: string[]; } export declare function createCSS2DObject(options: CSS2DObjectOptions): CSS2DObject;