@expofp/floorplan
Version:
Interactive floor plan library for expos and events
2 lines (1 loc) • 561 B
JavaScript
import{runInAction as r,when as n}from"mobx";import e from"../../store";export function integrateKioskIntoMap(t,a){t&&r(()=>{e.uiState.setKioskData(t),e.uiState.kiosk=a,e.uiState.setMapSettings({centerxy:`${t.mapCenterX},${t.mapCenterY}`,z:t.z,bearing:t.mapRollDegrees}),t.mapPtScale&&e.uiState.changeZoom(t.mapInitialPtScale/t.mapPtScale)})}export function integrateKioskIntoWf(t){t&&(t.z!=null&&e.fp.activateFloor({name:t.z.toString()}),n(()=>!!e.uiState.selectedRoute,()=>{const a=e.uiState.selectedRoute;a.to&&!a.from&&e.routeStore.selectRoute(a,!1,!0)}))}