UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

2 lines (1 loc) • 329 B
import{useEffect as f}from"react";import n from"../../store";import{createWayfinding as e}from"../../wayfinding";import{configMarkers as m}from"../Map/drawing/config/config-markers";export function useWayfindingAndMarkers(r,o){f(()=>{if(!r)return;const i=e({scene:r,store:n,canvas:o}),t=m({scene:r});return()=>{i(),t()}},[r,o])}