[core] fix: stack anchoring (#261)
Fixes #54 Also adds the fabric class to lumina parts for proper line width and rainbow coloring. The last commit is probably not right. It works, but I'm not sure if these are the right functions to change.  Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/261 Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org> Co-authored-by: Jonathan Haas <haasjona@gmail.com> Co-committed-by: Jonathan Haas <haasjona@gmail.com>
This commit is contained in:
parent
44e04a4cef
commit
c9300e6739
8 changed files with 35 additions and 4 deletions
|
@ -54,7 +54,11 @@ export const Part = ({ stackName, partName, part, settings, components, strings,
|
|||
const { Group } = components
|
||||
|
||||
return (
|
||||
<Group {...getProps(part)} id={getId({ settings, stackName, partName })}>
|
||||
<Group
|
||||
{...getProps(part)}
|
||||
id={getId({ settings, stackName, partName })}
|
||||
transform={`translate(${-part.anchor.x}, ${-part.anchor.y})`}
|
||||
>
|
||||
<PartInner {...{ stackName, partName, part, settings, components, strings, drillProps }} />
|
||||
</Group>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue