Class: ItemSlot<T>
Type parameters
Name | Type |
---|---|
T | number |
Constructors
constructor
• new ItemSlot<T
>(itemSlots
, row
, col
): ItemSlot
<T
>
Type parameters
Name | Type |
---|---|
T | number |
Parameters
Name | Type |
---|---|
itemSlots | ItemSlots <T > |
row | number |
col | number |
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
Name | Type |
---|---|
className | string |
Returns
void
applyStyles
▸ applyStyles(styles
): void
Parameters
Name | Type |
---|---|
styles | Partial <CSSStyleDeclaration > |
Returns
void
applySubscriptClass
▸ applySubscriptClass(className
): void
Parameters
Name | Type |
---|---|
className | string |
Returns
void
applySubscriptStyles
▸ applySubscriptStyles(styles
): void
Parameters
Name | Type |
---|---|
styles | Partial <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
Name | Type |
---|---|
className | string |
Returns
void
removeSubscriptClass
▸ removeSubscriptClass(className
): void
Parameters
Name | Type |
---|---|
className | string |
Returns
void
setContent
▸ setContent(content
): void
Parameters
Name | Type |
---|---|
content | T |
Returns
void
setObject
▸ setObject(object
): void
Parameters
Name | Type |
---|---|
object | Object3D <Object3DEventMap > | HTMLImageElement |
Returns
void
setPerspective
▸ setPerspective(perspective
): void
Parameters
Name | Type |
---|---|
perspective | CameraPerspective |
Returns
void
setSubscript
▸ setSubscript(subscript
): void
Parameters
Name | Type |
---|---|
subscript | string |
Returns
void
setZoom
▸ setZoom(zoom
): void
Parameters
Name | Type |
---|---|
zoom | number |
Returns
void
triggerChange
▸ triggerChange(): void
Returns
void