1
0
Fork 0

fix(bannerbox): Removed hardcoded values in call to banner

This commit is contained in:
Benjamin F 2023-05-07 15:40:27 -07:00
parent b77490204d
commit 0c55a868eb
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,
})
},
}