1
0
Fork 0

feat(lab): Bring up info on paths when clicked upon

This commit is contained in:
Joost De Cock 2022-06-18 12:15:05 +02:00
parent e153fbc925
commit a37e66c0e5
11 changed files with 473 additions and 35 deletions

View file

@ -26,7 +26,7 @@ import Part from './part'
*/
const SvgWrapper = props => {
const { patternProps, gist, app, updateGist, unsetGist } = props
const { patternProps, gist, app, updateGist, unsetGist, showInfo } = props
return <SizeMe>{({ size }) => (
<TransformWrapper
@ -41,7 +41,7 @@ const SvgWrapper = props => {
<style>{`:root { --pattern-scale: ${gist.scale || 1}}`}</style>
<g>
{Object.keys(patternProps.parts).map((name) => (
<Part {...{ app, gist, updateGist, unsetGist }}
<Part {...{ app, gist, updateGist, unsetGist, showInfo }}
key={name}
partName={name}
part={patternProps.parts[name]}