import React from 'react' const DevelopPath = (props) => { let output = [] let i = 0 let from = null for (let op of props.path.ops) { let key = props.part + props.name + i if (op.type === 'curve') { output.push( ) i++ output.push( ) i++ output.push( ) i++ output.push( ) from = op.to } else if (op.type !== 'close') from = op.to } output.push( props.raiseEvent('path', { path: props.path, name: props.name, part: props.part }) } className="develop hovertrap" /> ) return output } export default DevelopPath