1
0
Fork 0

fix(yuri): SA on hoodcenter. See #1464

This commit is contained in:
Joost De Cock 2021-11-13 14:06:18 +01:00
parent b848e6e6ad
commit 52bbd6d7b5

View file

@ -42,9 +42,17 @@ export default function (part) {
// Complete pattern?
if (complete) {
if (sa) {
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
}
if (sa) paths.sa = new Path()
.move(points.topLeft.shift(180, sa))
.line(points.bottomLeft.shift(180, sa))
.line(points.bottomLeft.shift(-90, sa))
.line(points.bottomRight.shift(-90, sa))
.line(points.bottomRight.shift(0, sa))
.line(points.topRight.shift(0, sa))
.line(points.topRight.shift(90, sa))
.line(points.topLeft.shift(90, sa))
.close()
.attr('class', 'fabric sa')
points.title = points.bottomLeft.shiftFractionTowards(points.topRight, 0.5)
macro('title', { at: points.title, nr: 6, title: 'hoodCenter' })
macro('grainline', {