1
0
Fork 0

wip(lab): Progess on Xray for points and paths

This commit is contained in:
Joost De Cock 2022-01-29 21:31:12 +01:00
parent 3f01f67087
commit e5df2a5ab8
6 changed files with 203 additions and 28 deletions

View file

@ -1,14 +1,26 @@
import { Ul, Li, Details, Summary, NoSumDiv, Deg } from 'shared/components/workbench/menu'
import ClearIcon from 'shared/components/icons/clear.js'
import Attributes from './attributes.js'
import Ops from './path-ops.js'
/*
* Things to add
*
* attributes
* ops
* render
*/
const XrayPath = props => {
return <pre>{JSON.stringify(props.gist.xray.parts[props.partName].paths[props.id], null ,2)}</pre>
}
const XrayPath = ({ path }) => (
<Ul>
<Li>
<NoSumDiv>
<Deg />
<span className="font-bold mr-2">Render =</span>
<span>{JSON.stringify(path.render)}</span>
</NoSumDiv>
</Li>
<Attributes attr={path.attributes} />
<Ops ops={path.ops} />
</Ul>
)
export default XrayPath