feat(components): More examples in the Examples component
This commit is contained in:
parent
44e4352d3e
commit
62e64f973f
13 changed files with 189 additions and 96 deletions
|
@ -1,10 +1,10 @@
|
|||
export default part => {
|
||||
export default (part) => {
|
||||
let { Point, points, Path, paths, macro } = part.shorthand()
|
||||
|
||||
points.topLeft = new Point(0, 0)
|
||||
points.topRight = new Point(150, 0)
|
||||
points.bottomRight = new Point(150, 50)
|
||||
points.bottomLeft = new Point(0, 50)
|
||||
points.bottomRight = new Point(150, 30)
|
||||
points.bottomLeft = new Point(0, 30)
|
||||
|
||||
paths.box = new Path()
|
||||
.move(points.topLeft)
|
||||
|
@ -14,8 +14,8 @@ export default part => {
|
|||
.close()
|
||||
|
||||
macro('cutonfold', {
|
||||
from: points.topRight,
|
||||
to: points.topLeft,
|
||||
from: points.bottomLeft,
|
||||
to: points.bottomRight,
|
||||
grainline: true
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue