1
0
Fork 0
freesewing/markdown/dev/reference/api/point/copy/en.md
2021-10-17 18:26:00 +02:00

475 B

title
copy()
Point point.copy()

Returns a new point with the same coordinates as this point.

let { Point, points, Snippet, snippets } = part.shorthand();

points.A = new Point(50, 25)
  .attr("data-text", "Point A")
  .attr("data-text-class", "text-xl");
points.B = points.A.copy().attr("data-text", "Point B");

snippets.x = new Snippet("notch", points.A);