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

12 lines
279 B
JavaScript
Raw Normal View History

2019-08-03 15:03:33 +02:00
import { box } from './shared'
2019-01-27 12:54:18 +01:00
export default part => {
2019-08-03 15:03:33 +02:00
let { Point, points } = part.shorthand()
2019-01-27 12:54:18 +01:00
2019-05-20 16:25:55 +02:00
points.anchor = new Point(100, 25)
2019-08-03 15:03:33 +02:00
.attr('data-text', 'freesewingIsMadeByJoostDeCockAndContributors')
.attr('data-text-class', 'center')
2019-01-27 12:54:18 +01:00
2019-08-03 15:03:33 +02:00
return box(part, 200, 50)
}