mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-27 08:00:51 +01:00
Update api
This commit is contained in:
parent
eadb3d5d1e
commit
4b31308e75
@ -36,7 +36,7 @@ export class RoomWidgetUpdateDimmerEvent extends RoomWidgetUpdateEvent
|
|||||||
this._selectedPresetId = k;
|
this._selectedPresetId = k;
|
||||||
}
|
}
|
||||||
|
|
||||||
public setPresetValues(id: number, type: number, color: number, brightness: number):void
|
public setPresetValues(id: number, type: number, color: number, brightness: number): void
|
||||||
{
|
{
|
||||||
const preset = new RoomDimmerPreset(id, type, color, brightness);
|
const preset = new RoomDimmerPreset(id, type, color, brightness);
|
||||||
|
|
||||||
|
20
src/api/nitro/session/GetFurnitureData.ts
Normal file
20
src/api/nitro/session/GetFurnitureData.ts
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import { IFurnitureData } from '@nitrots/nitro-renderer';
|
||||||
|
import { GetSessionDataManager } from '.';
|
||||||
|
import { ProductTypeEnum } from '../../../views/catalog/common/ProductTypeEnum';
|
||||||
|
|
||||||
|
export function GetFurnitureData(furniClassId: number, productType: string): IFurnitureData
|
||||||
|
{
|
||||||
|
let furniData: IFurnitureData = null;
|
||||||
|
|
||||||
|
switch(productType.toUpperCase())
|
||||||
|
{
|
||||||
|
case ProductTypeEnum.FLOOR:
|
||||||
|
furniData = GetSessionDataManager().getFloorItemData(furniClassId);
|
||||||
|
break;
|
||||||
|
case ProductTypeEnum.WALL:
|
||||||
|
furniData = GetSessionDataManager().getWallItemData(furniClassId);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return furniData;
|
||||||
|
}
|
@ -3,6 +3,7 @@ export * from './CreateRoomSession';
|
|||||||
export * from './GetCanStandUp';
|
export * from './GetCanStandUp';
|
||||||
export * from './GetCanUseExpression';
|
export * from './GetCanUseExpression';
|
||||||
export * from './GetClubMemberLevel';
|
export * from './GetClubMemberLevel';
|
||||||
|
export * from './GetFurnitureData';
|
||||||
export * from './GetFurnitureDataForProductOffer';
|
export * from './GetFurnitureDataForProductOffer';
|
||||||
export * from './GetFurnitureDataForRoomObject';
|
export * from './GetFurnitureDataForRoomObject';
|
||||||
export * from './GetOwnPosture';
|
export * from './GetOwnPosture';
|
||||||
|
Loading…
Reference in New Issue
Block a user