import React from 'react' import { getProps, defaultComponents as patternComponents, } from '@freesewing/react/components/Pattern' const coords = (point) => `${point.x},${point.y}` const Cp = ({ at }) => ( ) export const Xray = ({ path, components }) => { const output = [] let prev let i = 0 for (const op of path.ops) { if (op.type === 'curve') { output.push( , , ) } prev = op i++ } output.push( ) return output } export const PathXray = ({ stackName, pathName, part, path, settings, components, t }) => { /* * We use the Path component from Pattern here * If we would extract Path from the components passed down, * we'd create a recursion loop as the Path we call below * would be this very PathXray component. */ const { Path } = patternComponents return ( ) }