1
0
Fork 0

fix(cornelius): Use API to align title

This commit is contained in:
joostdecock 2023-09-08 11:40:07 +02:00
parent 2cbc7ccecc
commit 55d7b403a6
7 changed files with 8 additions and 22 deletions

View file

@ -273,10 +273,8 @@ function draftCorneliusBack({
nr: 77,
at: points.title,
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 dist = points.p11.dist(points.p4)

View file

@ -142,10 +142,8 @@ function draftCorneliusFront({
nr: 76,
at: points.title,
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)
macro('scalebox', { at: points.scaleboxAnchor })

View file

@ -141,10 +141,8 @@ function draftCorneliusLegband({
nr: 78,
at: points.title,
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) {
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')

View file

@ -78,10 +78,8 @@ function draftCorneliusPocket({
nr: 2,
at: points.title,
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) {
paths.sa = paths.seam.offset(sa).attr('class', 'fabric sa')

View file

@ -64,12 +64,10 @@ function draftCorneliusPocketFacing({
at: points.title,
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', {
from: points.pU,
to: new Point(points.pU.x, points.__titleNr.y),
to: new Point(points.pU.x, points.title.y),
})
if (sa) {

View file

@ -53,10 +53,8 @@ function draftCorneliusWaistband({
nr: 1,
at: points.title,
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) {
paths.sa = new Path()

View file

@ -49,10 +49,8 @@ function draftCorneliusZipperguard({
nr: 4,
at: points.title,
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) {
paths.sa = new Path()