@archilogic/floor-plan-sdk 5.1.9 → 5.1.10

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.
package/dist/fpe.js CHANGED
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  /*!
5
- Archilogic Floor Plan Engine SDK v5.1.9 webgl build 250704-112743-84cf07
5
+ Archilogic Floor Plan Engine SDK v5.1.10 webgl build 250709-150249-53c0fd
6
6
 
7
7
  Copyright (c) 2025 Archilogic AG. All rights reserved.
8
8
 
@@ -43044,7 +43044,7 @@ function checkProductQueueStatus(element, floorPlan) {
43044
43044
  }
43045
43045
  }
43046
43046
  function getProductGraphics(element, nodeContainer, floorPlan, style) {
43047
- var _a, _b;
43047
+ var _a, _b, _c, _d;
43048
43048
  checkProductQueueStatus(element, floorPlan);
43049
43049
  const { view, settings: settings2, loader } = floorPlan;
43050
43050
  const { theme, showCeilingLamps } = settings2;
@@ -43054,7 +43054,9 @@ function getProductGraphics(element, nodeContainer, floorPlan, style) {
43054
43054
  const productId = (_a = element.product) == null ? void 0 : _a.id;
43055
43055
  const productData = loader.resources.productJson.get(
43056
43056
  productId
43057
- ) || { subCategories: [] };
43057
+ ) || {
43058
+ subCategories: []
43059
+ };
43058
43060
  const isComponent = ((_b = element.product) == null ? void 0 : _b.type) === "product:component";
43059
43061
  const productContours = loader.resources.productContour.get(productId);
43060
43062
  const textureData = loader.resources.texture.get(productId);
@@ -43099,6 +43101,16 @@ function getProductGraphics(element, nodeContainer, floorPlan, style) {
43099
43101
  gfx.anchor.x = textureData.anchor.x;
43100
43102
  gfx.anchor.y = textureData.anchor.y;
43101
43103
  gfx.zIndex = 1;
43104
+ if (((_c = productData.categories) == null ? void 0 : _c.includes("tables")) || ((_d = productData.categories) == null ? void 0 : _d.includes("seating"))) {
43105
+ const hitArea = new Polygon(
43106
+ contourShapes[0].polygons[0].flatMap((p2) => [
43107
+ p2[0] * scale / gfx.scale.x,
43108
+ p2[1] * scale / gfx.scale.y
43109
+ ])
43110
+ );
43111
+ gfx.hitArea = hitArea;
43112
+ gfx.interactive = true;
43113
+ }
43102
43114
  if (style === "selected") {
43103
43115
  if (!textureData.contourTexture) {
43104
43116
  textureData.contourTexture = textureFromShapes(contourShapes, {