Home Reference Source
public class | source

CubeComponent

Extends:

potassium-es/src/Component~Component → CubeComponent

CubeComponent is mostly used as a base class for Components that are some sort of cube.

For example, the VideoComponent is a cube that shows a video so it extends CubeComponent and adds its own methods for controlling the video.

The flat and portal display of this is just an unstyled div, so extending classes will need to style and populate those DOM elements.

Constructor Summary

Public Constructor
public

constructor(dataObject: DataObject, options: Object)

Member Summary

Public Members
public get

immersiveCube: THREE.BoxBufferedGeometry?

public get

material: THREE.Material?

public get

portalCube: THREE.BoxBufferedGeometry?

Public Constructors

public constructor(dataObject: DataObject, options: Object) source

Params:

NameTypeAttributeDescription
dataObject DataObject
  • optional
options Object
  • optional
options.material THREE.Material
  • optional

Public Members

public get immersiveCube: THREE.BoxBufferedGeometry? source

public get material: THREE.Material? source

public get portalCube: THREE.BoxBufferedGeometry? source