Class: TileGroup

PANOLENS. TileGroup


new TileGroup(tileArray, verticalGap, depthGap, animationDuration, offset)

Group consists of tile array
Parameters:
Name Type Description
tileArray array Tile array of PANOLENS.Tile
verticalGap number Vertical gap between each tile
depthGap number Depth gap between each tile
animationDuration number Animation duration
offset number Offset index
Source:

Methods


getIndex()

Get current index
Source:
Returns:
Index of the group. Range from 0 to this.tileArray.length
Type
number

getTileCount()

Get visible tile counts
Source:
Returns:
Number of visible tiles
Type
number

scrollDown(duration)

Scroll down
Parameters:
Name Type Description
duration number Scroll up duration
Source:

scrollUp(duration)

Scroll up
Parameters:
Name Type Description
duration number Scroll up duration
Source:

setTexture(texture)

Set individual texture
Parameters:
Name Type Description
texture THREE.Texture Texture to be updated
Source:

updateAllTexture(imageArray)

Update all tile textures and hide the remaining ones
Parameters:
Name Type Description
imageArray array Image array with index to index image update
Source:

updateTexture(imageArray)

Update corresponding tile textures
Parameters:
Name Type Description
imageArray array Image array with index to index image update
Source:

updateVisbility()

Update visibility
Source: