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

13 lines
290 B
JavaScript
Raw Normal View History

2019-08-03 15:03:33 +02:00
import { box } from './shared'
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)
}