UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

2 lines (1 loc) • 296 B
import{Box as t}from"@expofp/geometry";import e,{uiState as n}from"../../store";import{areLayersEnabled as i}from"../../utils/areLayersEnabled.js";export function withKiosk(r){const o=n.kioskData;return!o||!(i()?o.z===e.routeStore.currentRouteLayer?.name:!0)?r:t.fromUnion(r,new t(o.x,o.y,1,1))}