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