Replaced old code with .addTest(...)
This commit is contained in:
parent
4a81924e1e
commit
b0c91d0124
1 changed files with 1 additions and 4 deletions
|
@ -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')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue