chore(react-components): Tweaks to pattern
This commit is contained in:
parent
ab6511f4b9
commit
57457ee841
2 changed files with 5 additions and 2 deletions
|
@ -7,7 +7,8 @@ const grids = {
|
|||
}
|
||||
|
||||
export const Defs = (props) => {
|
||||
let defs = props.svg.defs.render()
|
||||
if (!props.svg) return null
|
||||
let defs = props.svg.defs.forSvg
|
||||
if (props.settings[0].paperless) {
|
||||
defs += grids[props.settings[0].units || 'metric']
|
||||
for (let p in props.parts[0]) {
|
||||
|
|
|
@ -14,7 +14,9 @@ export const Path = ({ stackName, pathName, path, partName, part, settings, comp
|
|||
return (
|
||||
<>
|
||||
<path id={pathId} d={path.d} {...getProps(path)} />
|
||||
{path.attributes.text.length > 0 ? <TextOnPath {...{ path, pathId, t }} /> : null}
|
||||
{path.attributes.text && path.attributes.text.length > 0 ? (
|
||||
<TextOnPath {...{ path, pathId, t }} />
|
||||
) : null}
|
||||
</>
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue