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

12 lines
284 B
JavaScript
Raw Normal View History

2019-01-27 12:54:18 +01:00
import { box } from "./shared";
export default part => {
2019-01-30 14:21:59 +01: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)
.attr("data-text", "freesewingIsMadeByJoostDeCockAndContributors")
.attr("data-text-class", "center");
2019-01-27 12:54:18 +01:00
2019-05-20 16:25:55 +02:00
return box(part, 200, 50);
2019-01-27 12:54:18 +01:00
};