Home Reference Source
public class | source

ImageComponent

Extends:

potassium-es/src/Component~ComponentCubeComponent → ImageComponent

ImageComponent handles the display of a single image.

Static Method Summary

Static Public Methods
public static

Constructor Summary

Public Constructor
public

constructor(options: Object)

Member Summary

Public Members
public get
public set

imageURL(value: string)

Method Summary

Public Methods
public

Inherited Summary

From class CubeComponent
public get

immersiveCube: THREE.BoxBufferedGeometry?

public get

material: THREE.Material?

public set

material(mat: THREE.Material)

public get

portalCube: THREE.BoxBufferedGeometry?

public

setCubeSides(x: *, y: *, z: *)

Static Public Methods

public static GenerateCubeMaterial(url: *): * source

Params:

NameTypeAttributeDescription
url *

Return:

*

Public Constructors

public constructor(options: Object) source

Override:

CubeComponent#constructor

Params:

NameTypeAttributeDescription
options Object

see the Component options

options.image string
  • optional
  • default: null

the URL of an image

options.imageField string
  • optional
  • default: null

the name of the field in dataObject that holds the URL to the image

Public Members

public get imageURL: string source

public set imageURL(value: string) source

Public Methods

public cleanup() source