1
0
Fork 0
freesewing/packages/examples/src/point_attr.js
2019-04-19 08:31:41 +02:00

16 lines
393 B
JavaScript

import { box } from "./shared";
export default part => {
let { Point, points, Snippet, snippets } = part.shorthand();
box(part);
points.anchor = new Point(50, 25)
.attr("data-text", "Hello world!\nThis is\na line break.")
.attr("data-text-class", "text-xl center")
.attr("data-text-lineheight", 10);
snippets.notch = new Snippet("x", points.anchor);
return part;
};