1
0
Fork 0

Merge pull request #4014 from BenJamesBen/bannerbox-fixes

fix(bannerbox): Removed hardcoded values in call to `banner`
This commit is contained in:
Joost De Cock 2023-05-18 08:50:11 +02:00 committed by GitHub
commit 2fc5508330
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 7 deletions

View file

@ -11,11 +11,10 @@ export const bannerboxMacros = {
boxClassName: 'stroke-xs stroke-note lashed',
dy: 4,
spaces: 12,
repeat: 10,
repeat: 99,
...so,
}
const offset = Math.sqrt(2 * Math.pow(so.margin, 2))
const id = getId()
paths[id] = new Path()
.move(so.topLeft.shift(135, offset))
@ -30,8 +29,9 @@ export const bannerboxMacros = {
path: paths[id],
text: so.text,
className: so.textClassName,
repeat: 99,
dy: 4,
repeat: so.repeat,
spaces: so.spaces,
dy: so.dy,
})
},
}