1
0
Fork 0

Replaced old code with .addTest(...)

This commit is contained in:
Thrunic 2023-11-10 16:32:05 -05:00
parent 4a81924e1e
commit b0c91d0124

View file

@ -16,10 +16,7 @@ function draftBox({ options, Point, Path, points, paths, Snippet, snippets, sa,
points.logo = points.topLeft.shiftFractionTowards(points.bottomRight, 0.5) points.logo = points.topLeft.shiftFractionTowards(points.bottomRight, 0.5)
snippets.logo = new Snippet('logo', points.logo) snippets.logo = new Snippet('logo', points.logo)
points.text = points.logo points.text = points.logo.shift(-90, w / 8).addText('hello', 'center')
.shift(-90, w / 8)
.attr('data-text', 'hello')
.attr('data-text-class', 'center')
if (sa) { if (sa) {
paths.sa = paths.seam.offset(sa).addClass('fabric sa') paths.sa = paths.seam.offset(sa).addClass('fabric sa')