UNPKG

formio-export

Version:
21 lines (17 loc) 348 B
export default (component) => { let dims = { width: component._baseWidth, height: component._baseHeight }; if (component.label) { switch (component.labelPosition) { case 'top': case 'bottom': dims.height++; break; default: dims.width++; } } return dims; };