kitchen-simulator 11.30.1 → 11.30.2

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.
Files changed (53) hide show
  1. package/es/assets/img/svg/accessories.svg +4 -4
  2. package/es/assets/img/svg/bottombar/elevation-back.svg +6 -6
  3. package/es/assets/img/svg/bottombar/elevation-front.svg +6 -6
  4. package/es/assets/img/svg/bottombar/elevation-left.svg +6 -6
  5. package/es/assets/img/svg/bottombar/elevation-right.svg +7 -7
  6. package/es/assets/img/svg/bottombar/elevation.svg +13 -13
  7. package/es/assets/img/svg/detail.svg +77 -77
  8. package/es/assets/img/svg/filtersActive.svg +19 -19
  9. package/es/assets/img/svg/invert.svg +12 -12
  10. package/es/assets/img/svg/menubar/login.svg +84 -84
  11. package/es/assets/img/svg/menubar/my_projects.svg +85 -85
  12. package/es/assets/img/svg/menubar/new_project.svg +110 -110
  13. package/es/assets/img/svg/menubar/save_project.svg +84 -84
  14. package/es/assets/img/svg/options.svg +3 -3
  15. package/es/assets/img/svg/positioning.svg +3 -3
  16. package/es/assets/img/svg/toggleFilters.svg +19 -19
  17. package/es/assets/img/svg/toolbar/shopping-cart.svg +13 -13
  18. package/es/assets/img/svg/wizardstep/detail_view.svg +87 -87
  19. package/es/assets/img/svg/wizardstep/tile_view.svg +95 -95
  20. package/es/class/vertex.js +7 -1
  21. package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +556 -556
  22. package/es/mappings/external-events/mapExternalEventPayload.js +4 -4
  23. package/es/mappings/external-events/mappers/addItemMapper.js +9 -9
  24. package/es/shared/domain/asset/sanitize-asset-url.js +5 -5
  25. package/es/shared/math/line-metrics.js +11 -11
  26. package/es/utils/skinPanelEngine.js +14 -14
  27. package/lib/assets/img/svg/accessories.svg +4 -4
  28. package/lib/assets/img/svg/bottombar/elevation-back.svg +6 -6
  29. package/lib/assets/img/svg/bottombar/elevation-front.svg +6 -6
  30. package/lib/assets/img/svg/bottombar/elevation-left.svg +6 -6
  31. package/lib/assets/img/svg/bottombar/elevation-right.svg +7 -7
  32. package/lib/assets/img/svg/bottombar/elevation.svg +13 -13
  33. package/lib/assets/img/svg/detail.svg +77 -77
  34. package/lib/assets/img/svg/filtersActive.svg +19 -19
  35. package/lib/assets/img/svg/invert.svg +12 -12
  36. package/lib/assets/img/svg/menubar/login.svg +84 -84
  37. package/lib/assets/img/svg/menubar/my_projects.svg +85 -85
  38. package/lib/assets/img/svg/menubar/new_project.svg +110 -110
  39. package/lib/assets/img/svg/menubar/save_project.svg +84 -84
  40. package/lib/assets/img/svg/options.svg +3 -3
  41. package/lib/assets/img/svg/positioning.svg +3 -3
  42. package/lib/assets/img/svg/toggleFilters.svg +19 -19
  43. package/lib/assets/img/svg/toolbar/shopping-cart.svg +13 -13
  44. package/lib/assets/img/svg/wizardstep/detail_view.svg +87 -87
  45. package/lib/assets/img/svg/wizardstep/tile_view.svg +95 -95
  46. package/lib/class/vertex.js +7 -1
  47. package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +556 -556
  48. package/lib/mappings/external-events/mapExternalEventPayload.js +4 -4
  49. package/lib/mappings/external-events/mappers/addItemMapper.js +9 -9
  50. package/lib/shared/domain/asset/sanitize-asset-url.js +5 -5
  51. package/lib/shared/math/line-metrics.js +11 -11
  52. package/lib/utils/skinPanelEngine.js +14 -14
  53. package/package.json +1 -1
@@ -9,10 +9,10 @@ var _helper = require("../../utils/helper");
9
9
  var _addItemMapper = require("./mappers/addItemMapper");
10
10
  var _changeDoorStyleMapper = require("./mappers/changeDoorStyleMapper");
11
11
  var _loadProjectMapper = require("./mappers/loadProjectMapper");
12
- /**
13
- * Main dispatcher for external event payload mapping.
14
- * Converts new API formats into legacy internal formats (e.g. assets3d -> structure_json)
15
- * without changing the behavior of the existing 3D tool.
12
+ /**
13
+ * Main dispatcher for external event payload mapping.
14
+ * Converts new API formats into legacy internal formats (e.g. assets3d -> structure_json)
15
+ * without changing the behavior of the existing 3D tool.
16
16
  */
17
17
  function mapExternalEventPayload(evt, state, defaultTextures) {
18
18
  if ((0, _helper.isEmpty)(evt)) return null;
@@ -11,15 +11,15 @@ var _constants = require("../../../constants");
11
11
  var _helper = require("../../../utils/helper");
12
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
- /**
15
- * Mapping logic for EXTERNAL_EVENT_ADD_ITEM.
16
- *
17
- * Converts the new assets3d payload shape into the legacy structure_json format
18
- * expected by the existing 3D tool.
19
- *
20
- * @param {Object} evt.payload External event payload
21
- * @param {Immutable.Map} state Planner state
22
- * @returns {Object|null} Updated event (or null when payload is empty)
14
+ /**
15
+ * Mapping logic for EXTERNAL_EVENT_ADD_ITEM.
16
+ *
17
+ * Converts the new assets3d payload shape into the legacy structure_json format
18
+ * expected by the existing 3D tool.
19
+ *
20
+ * @param {Object} evt.payload External event payload
21
+ * @param {Immutable.Map} state Planner state
22
+ * @returns {Object|null} Updated event (or null when payload is empty)
23
23
  */
24
24
  function mapAddItemEvent(orgEvtPayload, state) {
25
25
  var _evtPayload, _evtPayload3;
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.sanitizeAssetUrl = void 0;
7
- /**
8
- * Strip stray dots from the **path portion** of a GLTF/BIN URL.
9
- * e.g. `…/B36_36x34.5x24.gltf` → `…/B36_36x345x24.gltf`
10
- *
11
- * Leaves the protocol/domain and the final file extension untouched.
7
+ /**
8
+ * Strip stray dots from the **path portion** of a GLTF/BIN URL.
9
+ * e.g. `…/B36_36x34.5x24.gltf` → `…/B36_36x345x24.gltf`
10
+ *
11
+ * Leaves the protocol/domain and the final file extension untouched.
12
12
  */
13
13
  var sanitizeAssetUrl = exports.sanitizeAssetUrl = function sanitizeAssetUrl(url) {
14
14
  if (!url) return url;
@@ -14,17 +14,17 @@ function getVertex(vertices, vertexId) {
14
14
  return typeof vertices.get === 'function' ? vertices.get(vertexId) : vertices[vertexId];
15
15
  }
16
16
 
17
- /**
18
- * Computes a line length using its 2 vertices.
19
- *
20
- * Assumptions (matches existing DRAG logic):
21
- * - vertex coordinates are stored in centimeters
22
- * - result is converted to the provided unit
23
- *
24
- * @param {object} line - line object/record with `vertices` (array or immutable List)
25
- * @param {object} vertices - vertices collection (plain object map or immutable Map)
26
- * @param {string} unit - target unit (e.g. 'in', 'cm')
27
- * @returns {number|null}
17
+ /**
18
+ * Computes a line length using its 2 vertices.
19
+ *
20
+ * Assumptions (matches existing DRAG logic):
21
+ * - vertex coordinates are stored in centimeters
22
+ * - result is converted to the provided unit
23
+ *
24
+ * @param {object} line - line object/record with `vertices` (array or immutable List)
25
+ * @param {object} vertices - vertices collection (plain object map or immutable Map)
26
+ * @param {string} unit - target unit (e.g. 'in', 'cm')
27
+ * @returns {number|null}
28
28
  */
29
29
  function getLineLength(line, vertices) {
30
30
  var _v0$x, _v1$x, _v0$y, _v1$y;
@@ -145,10 +145,10 @@ function isSnappedWithCornerCabient(srcItem, desItem) {
145
145
  } else return false;
146
146
  }
147
147
 
148
- /**
149
- * @param {*} faceSegs
150
- * @param {*} otherFaces
151
- * @returns
148
+ /**
149
+ * @param {*} faceSegs
150
+ * @param {*} otherFaces
151
+ * @returns
152
152
  */
153
153
  function getTrimmedFaceSegs(faceSegs, otherFaces, cnt) {
154
154
  try {
@@ -309,8 +309,8 @@ function applyGroupingRules(faces) {
309
309
  };
310
310
  }
311
311
 
312
- /**
313
- * Horizontal Grouping (for base cabinets back-to-back : BSV48 48" x 34.5")
312
+ /**
313
+ * Horizontal Grouping (for base cabinets back-to-back : BSV48 48" x 34.5")
314
314
  */
315
315
  function applyHorizontalGrouping(faces) {
316
316
  var removeIdxs = [];
@@ -352,8 +352,8 @@ function applyHorizontalGrouping(faces) {
352
352
  };
353
353
  }
354
354
 
355
- /**
356
- * Vertical Grouping (For CT3DR or CT2DR SKUs + stacked wall cabinets)
355
+ /**
356
+ * Vertical Grouping (For CT3DR or CT2DR SKUs + stacked wall cabinets)
357
357
  */
358
358
  function applyVerticalGrouping(faces) {
359
359
  var removeIdxs = [];
@@ -444,8 +444,8 @@ function buildMP3SkinPanelArray(bottomHeight, topHeight, mp3SkinPanelArray) {
444
444
  return skinPanelTypeArray;
445
445
  }
446
446
 
447
- /**
448
- * Decide which skin panel pieces are needed for a tall cabinet.
447
+ /**
448
+ * Decide which skin panel pieces are needed for a tall cabinet.
449
449
  */
450
450
  function resolveTallCabinetBundle(face) {
451
451
  var item = face.itemInfo;
@@ -465,8 +465,8 @@ function resolveTallCabinetBundle(face) {
465
465
  return face !== null && face !== void 0 && face.skinPanelSKU ? [face.skinPanelSKU] : [];
466
466
  }
467
467
 
468
- /**
469
- * Converts a face → list of SKUs
468
+ /**
469
+ * Converts a face → list of SKUs
470
470
  */
471
471
  function resolveSkinPanelSKU(face) {
472
472
  var layout = face.itemInfo.layoutpos;
@@ -476,8 +476,8 @@ function resolveSkinPanelSKU(face) {
476
476
  return [face.skinPanelSKU];
477
477
  }
478
478
 
479
- /**
480
- * Make skin panel data with grouping skinPanelSKU & doorStyle
479
+ /**
480
+ * Make skin panel data with grouping skinPanelSKU & doorStyle
481
481
  */
482
482
  function buildSkinPanelData(faces) {
483
483
  var tempResult = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitchen-simulator",
3
- "version": "11.30.1",
3
+ "version": "11.30.2",
4
4
  "description": "It is a kitchen simulator (self-contained micro-frontend).",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",