5180 fichiers 38.5 Mo 0 téléchargements 208 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / api / catalog / GetImageIconUrlForProduct.ts
GetImageIconUrlForProduct.ts 615 o Télécharger le fichier
import { GetRoomEngine } from '@octane/renderer';
import { ProductTypeEnum } from './ProductTypeEnum';

export const GetImageIconUrlForProduct = (productType: string, productClassId: number, extraData: string = null) => {
    let imageUrl: string = null;

    switch (productType.toLocaleLowerCase()) {
        case ProductTypeEnum.FLOOR:
            imageUrl = GetRoomEngine().getFurnitureFloorIconUrl(productClassId);
            break;
        case ProductTypeEnum.WALL:
            imageUrl = GetRoomEngine().getFurnitureWallIconUrl(productClassId, extraData);
            break;
    }

    return imageUrl;
};
15Sujets
1Dépôts
20Membres
2En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser