1
0
Fork 0
freesewing/packages/tutorial/src/step11.js
starfetch d71b96c045
fix(dev:tutorial): update names of snap snippets (#1264)
* fix(dev:tutorial): update names of snap snippets

Update deprecated gendered snap snippets to new ones (see commit dbda0bc3fe)

* fix(dev:tutorial): update names of snap snippets 

Update deprecated gendered snap snippets to new ones (see commit freesewing@dbda0bc)
2021-08-21 19:24:47 +02:00

30 lines
839 B
JavaScript

export default function (part) {
let { Point, points, paths, macro, complete, snippets, Snippet } = part.shorthand()
// Complete?
if (complete) {
snippets.snapStud = new Snippet('snap-stud', points.snapLeft)
snippets.snapSocket = new Snippet('snap-socket', points.snapRight).attr('opacity', 0.5)
paths.bias = paths.seam
.offset(-5)
.attr('class', 'various dashed')
.attr('data-text', 'finishWithBiasTape')
.attr('data-text-class', 'center fill-various')
points.title = points.bottom.shift(-90, 45)
macro('title', {
at: points.title,
nr: 1,
title: 'bib',
})
points.scalebox = points.title.shift(-90, 55)
macro('scalebox', { at: points.scalebox })
points.logo = new Point(0, 0)
snippets.logo = new Snippet('logo', points.logo)
}
return part
}