Class: ImageArea

ImageArea()

An area somewhere in space, like a screen, displaying a texture.

Constructor

new ImageArea()

Creates the area with default values. By default, it's sized and positioned to be attached to the camera, and includes manipulation handles
Source:

Classes

ImageArea

Methods

(async) click()

Called on pointer event, passed texture coordinates. Executes callback
Source:

createHandles()

Creates manipulation handles. Left and right handle resize, and top and bottom move it.
Source:

dispose()

Clean up.
Source:

fullyVisible()

Internally used after texture is set, sets emissiveColor and visibility
Source:

loadData()

Load texture from the data buffer, e.g. blob
Source:

loadStream()

Load a MediaStream, and resize the plane
Source:

loadUrl()

Load the texture from the url
Source:

loadVideo()

Load video texture from the url, and by default also creates and plays the spatial sound.
Source:

onClick(callback)

Set click event handler here
Parameters:
Name Type Description
callback executed on pointer click, passed Control argument
Source:

pointerDrag()

Called on pointer event, passed texture coordinates
Source:

pointerUp()

Called on pointer event
Source:

resizeArea()

Internally used to resize the plane once video/image resolution is known
Source:

show()

Show the area, optionally also creates manipulation handles
Source: