- Download an office floor plan as a SVG - https://www.smartdraw.com/office-floor-plan/examples/cubicle-floor-plan/
- Open Adobe Illustrator
- Update art board to
width: 900 pt
andheight: 600 pt
- Resize the floor plan to fit within the updated art board bounds
- Using the
pen
tool, draw a path throughout the office floor plan - Re-name the
path
toWayFinding
for easily finding in the SVG file
- Update art board to
- Copy the updated SVG to the
/src/assets/data
directory - Install svgo to convert shapes to paths
npm install svgo --global
svgo --pretty --config='{"full":true}' --enable=convertShapeToPath src/assets/data/<name-of-file>.svg
- Find the WayFinding
<path/>
in the SVG file and re-name the class name toway__finding
so we can find within the code - Update the reference SVG in
Visualization/index.js
import { ReactComponent as OfficeFloorPlan } from '../../../assets/data/<name-of-file>.svg';
Ensure you have yarn
or npm
installed.
yarn // npm install
yarn start // npm start