UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

2 lines (1 loc) • 154 B
export const LABEL_MARGIN_FRACTION=.05;export function getLabelBorderInset(t,n){const e=.05*Math.min(n.width,n.height);return t>0&&e>0?Math.min(t/2,e):0}