diff --git a/packages/freesewing.shared/components/workbench/menu/xray/list.js b/packages/freesewing.shared/components/workbench/menu/xray/list.js index 5f09ad9cb14..1c794750cca 100644 --- a/packages/freesewing.shared/components/workbench/menu/xray/list.js +++ b/packages/freesewing.shared/components/workbench/menu/xray/list.js @@ -1,9 +1,13 @@ import { Chevron } from 'shared/components/navigation/primary.js' import ClearIcon from 'shared/components/icons/clear.js' import { Ul, Li, Details, Summary, SumDiv, Deg } from 'shared/components/workbench/menu' +import Path from './path.js' +import Point from './point.js' - -const Path = props =>

{props.pathName}

+const types = { + paths: Path, + points: Point +} const XrayList = props => { @@ -27,22 +31,35 @@ const XrayList = props => { - {props.gist.xray.parts[props.partName].paths && ( + {Object.keys(types).map(type => props.gist.xray.parts[props.partName][type] && ( - )} + ))} ) diff --git a/packages/freesewing.shared/components/workbench/menu/xray/path.js b/packages/freesewing.shared/components/workbench/menu/xray/path.js index 7ce2713d319..814d1ec6060 100644 --- a/packages/freesewing.shared/components/workbench/menu/xray/path.js +++ b/packages/freesewing.shared/components/workbench/menu/xray/path.js @@ -1,5 +1,14 @@ -const XrayPath = props => { +/* + * Things to add + * + * attributes + * ops + * render + */ + +const XrayPath = props => { + return
{JSON.stringify(props.gist.xray.parts[props.partName].paths[props.id], null ,2)}
} export default XrayPath diff --git a/packages/freesewing.shared/components/workbench/menu/xray/point.js b/packages/freesewing.shared/components/workbench/menu/xray/point.js new file mode 100644 index 00000000000..9f36eb966a4 --- /dev/null +++ b/packages/freesewing.shared/components/workbench/menu/xray/point.js @@ -0,0 +1,9 @@ +import { Ul, Li, Details, Summary, SumDiv, Deg } from 'shared/components/workbench/menu' + +const XrayPoint = props => [ +
  • x: {props.x}
  • , +
  • x: {props.y}
  • , +
  • Attributes: {props.y}
  • , +] + +export default XrayPoint