1
0
Fork 0
freesewing/packages/examples/src/snippet_attr.js

13 lines
292 B
JavaScript
Raw Normal View History

2019-08-03 15:03:33 +02:00
import { box } from './shared'
2021-01-31 09:22:15 +01:00
export default (part) => {
2019-08-03 15:03:33 +02:00
let { Point, points, Snippet, snippets } = part.shorthand()
2019-08-03 15:03:33 +02:00
points.anchor = new Point(50, 15)
snippets.demo = new Snippet('logo', points.anchor)
.attr('data-scale', 0.8)
.attr('data-rotate', 180)
2019-08-03 15:03:33 +02:00
return box(part)
}