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

16 lines
403 B
JavaScript
Raw Normal View History

2019-01-27 12:54:18 +01:00
import { box } from "./shared";
export default part => {
let { Point, points, Snippet, snippets } = part.shorthand();
points.A = new Point(25, 25)
.attr("data-text", "Point A")
.attr("data-text-class", "text-xl")
.attr("data-text-fill-opacity", "0.5");
points.B = points.A.clone().attr("data-text", "Point B");
2019-05-25 11:11:46 +02:00
snippets.x = new Snippet("notch", points.A);
2019-01-27 12:54:18 +01:00
return box(part);
2019-01-27 12:54:18 +01:00
};