kitchen-simulator 2.0.40 → 2.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,7 +76,8 @@ export function createArea(element, layer, scene, textures) {
76
76
  color = SharedStyle.AREA_MESH_COLOR.unselected;
77
77
  }
78
78
  if (texture.uri === undefined || texture.uri == '') {
79
- texture.uri = layer.floorStyle.uri;
79
+ // @todo THIS IS A TEMPORARY FIX TO HAVE A DEFAULT FLOOR TEXTURE
80
+ texture.uri = layer.floorStyle.uri || 'https://media.test.diydesignspace.com/uploads/CountTop/202203162950_2/texture/oak-barcelona-s.jpg';
80
81
  }
81
82
  var shape = new Shape();
82
83
  shape.moveTo(vertices[0].x, vertices[0].y);
@@ -995,6 +995,8 @@ export function render3DItem(element, layer, scene, sizeinfo, structure_json, is
995
995
  try {
996
996
  counterTop = counterTop.toJS();
997
997
  } catch (error) {
998
+ //@todo THIS IS A TEMPORARY FIX FOR COUNTERTOP TEXTURE UNDEFINED ISSUE
999
+ counterTop.uri = 'https://media.test.diydesignspace.com/uploads/CountTop/202105074107_5/texture/Unique_Calcatta_texture.jpg';
998
1000
  console.log(error);
999
1001
  }
1000
1002
  }
@@ -85,7 +85,8 @@ function createArea(element, layer, scene, textures) {
85
85
  color = SharedStyle.AREA_MESH_COLOR.unselected;
86
86
  }
87
87
  if (texture.uri === undefined || texture.uri == '') {
88
- texture.uri = layer.floorStyle.uri;
88
+ // @todo THIS IS A TEMPORARY FIX TO HAVE A DEFAULT FLOOR TEXTURE
89
+ texture.uri = layer.floorStyle.uri || 'https://media.test.diydesignspace.com/uploads/CountTop/202203162950_2/texture/oak-barcelona-s.jpg';
89
90
  }
90
91
  var shape = new _three.Shape();
91
92
  shape.moveTo(vertices[0].x, vertices[0].y);
@@ -1009,6 +1009,8 @@ function render3DItem(element, layer, scene, sizeinfo, structure_json, is_corner
1009
1009
  try {
1010
1010
  counterTop = counterTop.toJS();
1011
1011
  } catch (error) {
1012
+ //@todo THIS IS A TEMPORARY FIX FOR COUNTERTOP TEXTURE UNDEFINED ISSUE
1013
+ counterTop.uri = 'https://media.test.diydesignspace.com/uploads/CountTop/202105074107_5/texture/Unique_Calcatta_texture.jpg';
1012
1014
  console.log(error);
1013
1015
  }
1014
1016
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitchen-simulator",
3
- "version": "2.0.40",
3
+ "version": "2.0.41",
4
4
  "description": "It is a kitchen simulator (self-contained micro-frontend).",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",