2020-12-29 18:33:20 +01:00
|
|
|
export default (part) => {
|
2019-08-03 15:03:33 +02:00
|
|
|
let { Point, points, Path, paths, macro } = part.shorthand()
|
2019-01-27 12:54:18 +01:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
points.topLeft = new Point(0, 0)
|
|
|
|
points.topRight = new Point(150, 0)
|
2020-12-29 18:33:20 +01:00
|
|
|
points.bottomRight = new Point(150, 30)
|
|
|
|
points.bottomLeft = new Point(0, 30)
|
2019-01-27 12:54:18 +01:00
|
|
|
|
|
|
|
paths.box = new Path()
|
|
|
|
.move(points.topLeft)
|
|
|
|
.line(points.topRight)
|
|
|
|
.line(points.bottomRight)
|
|
|
|
.line(points.bottomLeft)
|
2019-08-03 15:03:33 +02:00
|
|
|
.close()
|
2019-01-27 12:54:18 +01:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
macro('cutonfold', {
|
2020-12-29 18:33:20 +01:00
|
|
|
from: points.bottomLeft,
|
|
|
|
to: points.bottomRight,
|
2021-04-24 10:16:31 +02:00
|
|
|
grainline: true,
|
2019-08-03 15:03:33 +02:00
|
|
|
})
|
2019-01-27 12:54:18 +01:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
return part
|
|
|
|
}
|