Skip to main content

Class: ItemSlot<T>

Type parameters

NameType
Tnumber

Constructors

constructor

new ItemSlot<T>(itemSlots, row, col): ItemSlot<T>

Type parameters

NameType
Tnumber

Parameters

NameType
itemSlotsItemSlots<T>
rownumber
colnumber

Returns

ItemSlot<T>

Properties

camera

camera: OrthographicCamera


col

col: number


content

content: T


element

element: HTMLDivElement


itemSlots

itemSlots: ItemSlots<T>


light

light: DirectionalLight


lightRotationOffset

lightRotationOffset: number


object

object: Object3D<Object3DEventMap>


offset

offset: Vector3


row

row: number


scene

scene: Scene


subscript

subscript: string


subscriptElement

subscriptElement: HTMLDivElement


zoom

zoom: number = 1

Methods

applyClass

applyClass(className): void

Parameters

NameType
classNamestring

Returns

void


applyStyles

applyStyles(styles): void

Parameters

NameType
stylesPartial<CSSStyleDeclaration>

Returns

void


applySubscriptClass

applySubscriptClass(className): void

Parameters

NameType
classNamestring

Returns

void


applySubscriptStyles

applySubscriptStyles(styles): void

Parameters

NameType
stylesPartial<CSSStyleDeclaration>

Returns

void


getContent

getContent(): T

Returns

T


getObject

getObject(): Object3D<Object3DEventMap>

Returns

Object3D<Object3DEventMap>


getSubscript

getSubscript(): string

Returns

string


removeClass

removeClass(className): void

Parameters

NameType
classNamestring

Returns

void


removeSubscriptClass

removeSubscriptClass(className): void

Parameters

NameType
classNamestring

Returns

void


setContent

setContent(content): void

Parameters

NameType
contentT

Returns

void


setObject

setObject(object): void

Parameters

NameType
objectObject3D<Object3DEventMap> | HTMLImageElement

Returns

void


setPerspective

setPerspective(perspective): void

Parameters

NameType
perspectiveCameraPerspective

Returns

void


setSubscript

setSubscript(subscript): void

Parameters

NameType
subscriptstring

Returns

void


setZoom

setZoom(zoom): void

Parameters

NameType
zoomnumber

Returns

void


triggerChange

triggerChange(): void

Returns

void