2019-04-12 19:36:32 +02:00
|
|
|
export default function(part) {
|
2019-05-03 19:54:46 +02:00
|
|
|
let {
|
|
|
|
options,
|
|
|
|
Point,
|
|
|
|
Path,
|
|
|
|
points,
|
|
|
|
paths,
|
|
|
|
complete,
|
|
|
|
paperless
|
|
|
|
} = part.shorthand();
|
2019-04-12 19:36:32 +02:00
|
|
|
|
2019-05-03 19:54:46 +02:00
|
|
|
points.topLeft = new Point(0, 0);
|
|
|
|
points.topRight = new Point(options.size, 0);
|
|
|
|
points.bottomLeft = new Point(0, options.size);
|
|
|
|
points.bottomRight = new Point(options.size, options.size);
|
2019-04-12 19:36:32 +02:00
|
|
|
|
|
|
|
paths.demo = new Path()
|
2019-05-03 19:54:46 +02:00
|
|
|
.move(points.topLeft)
|
|
|
|
.line(points.bottomLeft)
|
|
|
|
.line(points.bottomRight)
|
|
|
|
.line(points.topRight)
|
|
|
|
.line(points.topLeft)
|
|
|
|
.close()
|
2019-04-12 19:36:32 +02:00
|
|
|
.attr("data-text", "thisIsTheFrontPart")
|
|
|
|
.attr("data-text-class", "center");
|
|
|
|
|
|
|
|
// Complete?
|
|
|
|
if (complete) {
|
|
|
|
}
|
|
|
|
|
|
|
|
// Paperless?
|
|
|
|
if (paperless) {
|
|
|
|
}
|
|
|
|
|
|
|
|
return part;
|
|
|
|
}
|