fix(cornelius): Use API to align title
This commit is contained in:
parent
2cbc7ccecc
commit
55d7b403a6
7 changed files with 8 additions and 22 deletions
|
@ -273,10 +273,8 @@ function draftCorneliusBack({
|
||||||
nr: 77,
|
nr: 77,
|
||||||
at: points.title,
|
at: points.title,
|
||||||
title: 'Back',
|
title: 'Back',
|
||||||
|
align: 'center',
|
||||||
})
|
})
|
||||||
points.__titleNr.attr('data-text-class', 'center')
|
|
||||||
points.__titleName.attr('data-text-class', 'center')
|
|
||||||
points.__titlePattern.attr('data-text-class', 'center')
|
|
||||||
|
|
||||||
let angle = points.p11.angle(points.p4)
|
let angle = points.p11.angle(points.p4)
|
||||||
let dist = points.p11.dist(points.p4)
|
let dist = points.p11.dist(points.p4)
|
||||||
|
|
|
@ -142,10 +142,8 @@ function draftCorneliusFront({
|
||||||
nr: 76,
|
nr: 76,
|
||||||
at: points.title,
|
at: points.title,
|
||||||
title: 'Front',
|
title: 'Front',
|
||||||
|
align: 'center',
|
||||||
})
|
})
|
||||||
points.__titleNr.attr('data-text-class', 'center')
|
|
||||||
points.__titleName.attr('data-text-class', 'center')
|
|
||||||
points.__titlePattern.attr('data-text-class', 'center')
|
|
||||||
|
|
||||||
points.scaleboxAnchor = points.pD.shift(270, 60)
|
points.scaleboxAnchor = points.pD.shift(270, 60)
|
||||||
macro('scalebox', { at: points.scaleboxAnchor })
|
macro('scalebox', { at: points.scaleboxAnchor })
|
||||||
|
|
|
@ -141,10 +141,8 @@ function draftCorneliusLegband({
|
||||||
nr: 78,
|
nr: 78,
|
||||||
at: points.title,
|
at: points.title,
|
||||||
title: 'LegBand',
|
title: 'LegBand',
|
||||||
|
align: 'center',
|
||||||
})
|
})
|
||||||
points.__titleNr.attr('data-text-class', 'center')
|
|
||||||
points.__titleName.attr('data-text-class', 'center')
|
|
||||||
points.__titlePattern.attr('data-text-class', 'center')
|
|
||||||
|
|
||||||
if (sa) {
|
if (sa) {
|
||||||
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
|
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
|
||||||
|
|
|
@ -78,10 +78,8 @@ function draftCorneliusPocket({
|
||||||
nr: 2,
|
nr: 2,
|
||||||
at: points.title,
|
at: points.title,
|
||||||
title: 'Pocket',
|
title: 'Pocket',
|
||||||
|
align: 'center',
|
||||||
})
|
})
|
||||||
points.__titleNr.attr('data-text-class', 'center')
|
|
||||||
points.__titleName.attr('data-text-class', 'center')
|
|
||||||
points.__titlePattern.attr('data-text-class', 'center')
|
|
||||||
|
|
||||||
if (sa) {
|
if (sa) {
|
||||||
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
|
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')
|
||||||
|
|
|
@ -64,12 +64,10 @@ function draftCorneliusPocketFacing({
|
||||||
at: points.title,
|
at: points.title,
|
||||||
title: 'PocketFacing',
|
title: 'PocketFacing',
|
||||||
})
|
})
|
||||||
// points.__titleNr.attr('data-text-class', 'center')
|
|
||||||
// points.__titleName.attr('data-text-class', 'center')
|
|
||||||
// points.__titlePattern.attr('data-text-class', 'center')
|
|
||||||
macro('grainline', {
|
macro('grainline', {
|
||||||
from: points.pU,
|
from: points.pU,
|
||||||
to: new Point(points.pU.x, points.__titleNr.y),
|
to: new Point(points.pU.x, points.title.y),
|
||||||
})
|
})
|
||||||
|
|
||||||
if (sa) {
|
if (sa) {
|
||||||
|
|
|
@ -53,10 +53,8 @@ function draftCorneliusWaistband({
|
||||||
nr: 1,
|
nr: 1,
|
||||||
at: points.title,
|
at: points.title,
|
||||||
title: 'WaistBand',
|
title: 'WaistBand',
|
||||||
|
align: 'center',
|
||||||
})
|
})
|
||||||
points.__titleNr.attr('data-text-class', 'center')
|
|
||||||
points.__titleName.attr('data-text-class', 'center')
|
|
||||||
points.__titlePattern.attr('data-text-class', 'center')
|
|
||||||
|
|
||||||
if (sa) {
|
if (sa) {
|
||||||
paths.sa = new Path()
|
paths.sa = new Path()
|
||||||
|
|
|
@ -49,10 +49,8 @@ function draftCorneliusZipperguard({
|
||||||
nr: 4,
|
nr: 4,
|
||||||
at: points.title,
|
at: points.title,
|
||||||
title: 'ZipperGuard',
|
title: 'ZipperGuard',
|
||||||
|
align: 'center',
|
||||||
})
|
})
|
||||||
points.__titleNr.attr('data-text-class', 'center')
|
|
||||||
points.__titleName.attr('data-text-class', 'center')
|
|
||||||
points.__titlePattern.attr('data-text-class', 'center')
|
|
||||||
|
|
||||||
if (sa) {
|
if (sa) {
|
||||||
paths.sa = new Path()
|
paths.sa = new Path()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue