import React from 'react' const style = ` style="fill: none; stroke: currentColor;" ` const grids = { imperial: ` `, metric: ` ` } const Defs = (props) => { let defs = props.svg.defs if (props.settings.paperless) { defs += grids[props.settings.units || 'metric'] for (let p in props.parts) { let anchor = { x: 0, y: 0 } if (typeof props.parts[p].points.gridAnchor !== 'undefined') anchor = props.parts[p].points.gridAnchor else if (typeof props.parts[p].points.anchor !== 'undefined') anchor = props.parts[p].points.anchor defs += `` } } return } export default Defs