UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

2 lines (1 loc) 263 B
import e from"../../core/Polygon";export function boothToEndpoint(y){const r=e.fromRect(y.rect).rotate(y.rotate,y.rect.cx,y.rect.cy);return{x:y.rect.cx,y:y.rect.cy,layer:y.layer?.name??"",bounds:[{x:r.x1,y:r.y1},{x:r.x2,y:r.y2},{x:r.x3,y:r.y3},{x:r.x4,y:r.y4}]}}