1
0
Fork 0

Added tutorial pattern

This commit is contained in:
Joost De Cock 2019-05-30 21:19:06 +02:00
parent a1e9badc2c
commit 7d9e41ec6f
28 changed files with 11984 additions and 0 deletions
packages/tutorial/src

View file

@ -0,0 +1,48 @@
export default function(part) {
let {
Point,
points,
Path,
paths,
measurements,
options,
macro,
complete,
snippets,
Snippet
} = part.shorthand();
// Complete?
if (complete) {
snippets.snapMale = new Snippet("snap-male", points.snapLeft);
snippets.snapFemale = new Snippet("snap-female", 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);
// Paperless?
if (paperless) {
}
}
return part;
}