@blorkfield/overlay-core 0.5.6 → 0.5.7

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/index.cjs CHANGED
@@ -541,9 +541,10 @@ function createBoundariesWithFloorConfig(bounds, floorConfig) {
541
541
  for (let i = 0; i < segmentCount; i++) {
542
542
  const segmentWidth = segmentWidths[i];
543
543
  const thickness = floorConfig?.thickness !== void 0 ? Array.isArray(floorConfig.thickness) ? floorConfig.thickness[i] ?? BOUNDARY_THICKNESS : floorConfig.thickness : BOUNDARY_THICKNESS;
544
+ const visibleThickness = floorConfig?.visibleThickness !== void 0 ? Array.isArray(floorConfig.visibleThickness) ? floorConfig.visibleThickness[i] ?? thickness : floorConfig.visibleThickness : thickness;
544
545
  const color = floorConfig?.color !== void 0 ? Array.isArray(floorConfig.color) ? floorConfig.color[i] : floorConfig.color : void 0;
545
546
  const segmentX = currentX + segmentWidth / 2;
546
- const segmentY = bounds.bottom - thickness / 2;
547
+ const segmentY = bounds.bottom - visibleThickness + thickness / 2;
547
548
  const segmentOptions = {
548
549
  isStatic: true,
549
550
  label: `floor-segment-${i}`,